mirror of
https://github.com/immich-app/immich.git
synced 2025-10-29 09:42:36 -04:00
chore: version v1.139.1
This commit is contained in:
parent
dc5a0f8c33
commit
89533a858f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@immich/cli",
|
"name": "@immich/cli",
|
||||||
"version": "2.2.80",
|
"version": "2.2.81",
|
||||||
"description": "Command Line Interface (CLI) for Immich",
|
"description": "Command Line Interface (CLI) for Immich",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": "./dist/index.js",
|
"exports": "./dist/index.js",
|
||||||
|
|||||||
4
docs/static/archived-versions.json
vendored
4
docs/static/archived-versions.json
vendored
@ -1,4 +1,8 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"label": "v1.139.1",
|
||||||
|
"url": "https://v1.139.1.archive.immich.app"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "v1.139.0",
|
"label": "v1.139.0",
|
||||||
"url": "https://v1.139.0.archive.immich.app"
|
"url": "https://v1.139.0.archive.immich.app"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-e2e",
|
"name": "immich-e2e",
|
||||||
"version": "1.139.0",
|
"version": "1.139.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@ -35,8 +35,8 @@ platform :android do
|
|||||||
task: 'bundle',
|
task: 'bundle',
|
||||||
build_type: 'Release',
|
build_type: 'Release',
|
||||||
properties: {
|
properties: {
|
||||||
"android.injected.version.code" => 3005,
|
"android.injected.version.code" => 3006,
|
||||||
"android.injected.version.name" => "1.139.0",
|
"android.injected.version.name" => "1.139.1",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
upload_to_play_store(skip_upload_apk: true, skip_upload_images: true, skip_upload_screenshots: true, aab: '../build/app/outputs/bundle/release/app-release.aab')
|
upload_to_play_store(skip_upload_apk: true, skip_upload_images: true, skip_upload_screenshots: true, aab: '../build/app/outputs/bundle/release/app-release.aab')
|
||||||
|
|||||||
@ -22,7 +22,7 @@ platform :ios do
|
|||||||
path: "./Runner.xcodeproj",
|
path: "./Runner.xcodeproj",
|
||||||
)
|
)
|
||||||
increment_version_number(
|
increment_version_number(
|
||||||
version_number: "1.139.0"
|
version_number: "1.139.1"
|
||||||
)
|
)
|
||||||
increment_build_number(
|
increment_build_number(
|
||||||
build_number: latest_testflight_build_number + 1,
|
build_number: latest_testflight_build_number + 1,
|
||||||
|
|||||||
19
mobile/openapi/.gitignore
vendored
19
mobile/openapi/.gitignore
vendored
@ -1,19 +0,0 @@
|
|||||||
# See https://dart.dev/guides/libraries/private-files
|
|
||||||
|
|
||||||
.dart_tool/
|
|
||||||
.packages
|
|
||||||
build/
|
|
||||||
|
|
||||||
# Except for application packages
|
|
||||||
pubspec.lock
|
|
||||||
|
|
||||||
doc/api/
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
*.iml
|
|
||||||
*.ipr
|
|
||||||
*.iws
|
|
||||||
.idea/
|
|
||||||
|
|
||||||
# Mac
|
|
||||||
.DS_Store
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
# OpenAPI Generator Ignore
|
|
||||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
||||||
|
|
||||||
# Use this file to prevent files from being overwritten by the generator.
|
|
||||||
# The patterns follow closely to .gitignore or .dockerignore.
|
|
||||||
|
|
||||||
# As an example, the C# client generator defines ApiClient.cs.
|
|
||||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
||||||
#ApiClient.cs
|
|
||||||
|
|
||||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
||||||
#foo/*/qux
|
|
||||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
||||||
#foo/**/qux
|
|
||||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can also negate patterns with an exclamation (!).
|
|
||||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
||||||
#docs/*.md
|
|
||||||
# Then explicitly reverse the ignore rule for a single file:
|
|
||||||
#!docs/README.md
|
|
||||||
@ -1 +0,0 @@
|
|||||||
7.8.0
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
#
|
|
||||||
# https://docs.travis-ci.com/user/languages/dart/
|
|
||||||
#
|
|
||||||
language: dart
|
|
||||||
dart:
|
|
||||||
# Install a specific stable release
|
|
||||||
- "2.12"
|
|
||||||
install:
|
|
||||||
- pub get
|
|
||||||
|
|
||||||
script:
|
|
||||||
- pub run test
|
|
||||||
606
mobile/openapi/README.md
generated
606
mobile/openapi/README.md
generated
@ -1,606 +0,0 @@
|
|||||||
# openapi
|
|
||||||
Immich API
|
|
||||||
|
|
||||||
This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
||||||
|
|
||||||
- API version: 1.139.0
|
|
||||||
- Generator version: 7.8.0
|
|
||||||
- Build package: org.openapitools.codegen.languages.DartClientCodegen
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
Dart 2.12 or later
|
|
||||||
|
|
||||||
## Installation & Usage
|
|
||||||
|
|
||||||
### Github
|
|
||||||
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
|
|
||||||
```
|
|
||||||
dependencies:
|
|
||||||
openapi:
|
|
||||||
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
||||||
```
|
|
||||||
|
|
||||||
### Local
|
|
||||||
To use the package in your local drive, add the following dependency to your pubspec.yaml
|
|
||||||
```
|
|
||||||
dependencies:
|
|
||||||
openapi:
|
|
||||||
path: /path/to/openapi
|
|
||||||
```
|
|
||||||
|
|
||||||
## Tests
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
||||||
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = APIKeysApi();
|
|
||||||
final aPIKeyCreateDto = APIKeyCreateDto(); // APIKeyCreateDto |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.createApiKey(aPIKeyCreateDto);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling APIKeysApi->createApiKey: $e\n');
|
|
||||||
}
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation for API Endpoints
|
|
||||||
|
|
||||||
All URIs are relative to */api*
|
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
*APIKeysApi* | [**createApiKey**](doc//APIKeysApi.md#createapikey) | **POST** /api-keys |
|
|
||||||
*APIKeysApi* | [**deleteApiKey**](doc//APIKeysApi.md#deleteapikey) | **DELETE** /api-keys/{id} |
|
|
||||||
*APIKeysApi* | [**getApiKey**](doc//APIKeysApi.md#getapikey) | **GET** /api-keys/{id} |
|
|
||||||
*APIKeysApi* | [**getApiKeys**](doc//APIKeysApi.md#getapikeys) | **GET** /api-keys |
|
|
||||||
*APIKeysApi* | [**getMyApiKey**](doc//APIKeysApi.md#getmyapikey) | **GET** /api-keys/me |
|
|
||||||
*APIKeysApi* | [**updateApiKey**](doc//APIKeysApi.md#updateapikey) | **PUT** /api-keys/{id} |
|
|
||||||
*ActivitiesApi* | [**createActivity**](doc//ActivitiesApi.md#createactivity) | **POST** /activities |
|
|
||||||
*ActivitiesApi* | [**deleteActivity**](doc//ActivitiesApi.md#deleteactivity) | **DELETE** /activities/{id} |
|
|
||||||
*ActivitiesApi* | [**getActivities**](doc//ActivitiesApi.md#getactivities) | **GET** /activities |
|
|
||||||
*ActivitiesApi* | [**getActivityStatistics**](doc//ActivitiesApi.md#getactivitystatistics) | **GET** /activities/statistics |
|
|
||||||
*AlbumsApi* | [**addAssetsToAlbum**](doc//AlbumsApi.md#addassetstoalbum) | **PUT** /albums/{id}/assets |
|
|
||||||
*AlbumsApi* | [**addAssetsToAlbums**](doc//AlbumsApi.md#addassetstoalbums) | **PUT** /albums/assets |
|
|
||||||
*AlbumsApi* | [**addUsersToAlbum**](doc//AlbumsApi.md#adduserstoalbum) | **PUT** /albums/{id}/users |
|
|
||||||
*AlbumsApi* | [**createAlbum**](doc//AlbumsApi.md#createalbum) | **POST** /albums |
|
|
||||||
*AlbumsApi* | [**deleteAlbum**](doc//AlbumsApi.md#deletealbum) | **DELETE** /albums/{id} |
|
|
||||||
*AlbumsApi* | [**getAlbumInfo**](doc//AlbumsApi.md#getalbuminfo) | **GET** /albums/{id} |
|
|
||||||
*AlbumsApi* | [**getAlbumStatistics**](doc//AlbumsApi.md#getalbumstatistics) | **GET** /albums/statistics |
|
|
||||||
*AlbumsApi* | [**getAllAlbums**](doc//AlbumsApi.md#getallalbums) | **GET** /albums |
|
|
||||||
*AlbumsApi* | [**removeAssetFromAlbum**](doc//AlbumsApi.md#removeassetfromalbum) | **DELETE** /albums/{id}/assets |
|
|
||||||
*AlbumsApi* | [**removeUserFromAlbum**](doc//AlbumsApi.md#removeuserfromalbum) | **DELETE** /albums/{id}/user/{userId} |
|
|
||||||
*AlbumsApi* | [**updateAlbumInfo**](doc//AlbumsApi.md#updatealbuminfo) | **PATCH** /albums/{id} |
|
|
||||||
*AlbumsApi* | [**updateAlbumUser**](doc//AlbumsApi.md#updatealbumuser) | **PUT** /albums/{id}/user/{userId} |
|
|
||||||
*AssetsApi* | [**checkBulkUpload**](doc//AssetsApi.md#checkbulkupload) | **POST** /assets/bulk-upload-check | checkBulkUpload
|
|
||||||
*AssetsApi* | [**checkExistingAssets**](doc//AssetsApi.md#checkexistingassets) | **POST** /assets/exist | checkExistingAssets
|
|
||||||
*AssetsApi* | [**deleteAssets**](doc//AssetsApi.md#deleteassets) | **DELETE** /assets |
|
|
||||||
*AssetsApi* | [**downloadAsset**](doc//AssetsApi.md#downloadasset) | **GET** /assets/{id}/original |
|
|
||||||
*AssetsApi* | [**getAllUserAssetsByDeviceId**](doc//AssetsApi.md#getalluserassetsbydeviceid) | **GET** /assets/device/{deviceId} | getAllUserAssetsByDeviceId
|
|
||||||
*AssetsApi* | [**getAssetInfo**](doc//AssetsApi.md#getassetinfo) | **GET** /assets/{id} |
|
|
||||||
*AssetsApi* | [**getAssetStatistics**](doc//AssetsApi.md#getassetstatistics) | **GET** /assets/statistics |
|
|
||||||
*AssetsApi* | [**getRandom**](doc//AssetsApi.md#getrandom) | **GET** /assets/random |
|
|
||||||
*AssetsApi* | [**playAssetVideo**](doc//AssetsApi.md#playassetvideo) | **GET** /assets/{id}/video/playback |
|
|
||||||
*AssetsApi* | [**replaceAsset**](doc//AssetsApi.md#replaceasset) | **PUT** /assets/{id}/original | replaceAsset
|
|
||||||
*AssetsApi* | [**runAssetJobs**](doc//AssetsApi.md#runassetjobs) | **POST** /assets/jobs |
|
|
||||||
*AssetsApi* | [**updateAsset**](doc//AssetsApi.md#updateasset) | **PUT** /assets/{id} |
|
|
||||||
*AssetsApi* | [**updateAssets**](doc//AssetsApi.md#updateassets) | **PUT** /assets |
|
|
||||||
*AssetsApi* | [**uploadAsset**](doc//AssetsApi.md#uploadasset) | **POST** /assets |
|
|
||||||
*AssetsApi* | [**viewAsset**](doc//AssetsApi.md#viewasset) | **GET** /assets/{id}/thumbnail |
|
|
||||||
*AuthAdminApi* | [**unlinkAllOAuthAccountsAdmin**](doc//AuthAdminApi.md#unlinkalloauthaccountsadmin) | **POST** /admin/auth/unlink-all |
|
|
||||||
*AuthenticationApi* | [**changePassword**](doc//AuthenticationApi.md#changepassword) | **POST** /auth/change-password |
|
|
||||||
*AuthenticationApi* | [**changePinCode**](doc//AuthenticationApi.md#changepincode) | **PUT** /auth/pin-code |
|
|
||||||
*AuthenticationApi* | [**getAuthStatus**](doc//AuthenticationApi.md#getauthstatus) | **GET** /auth/status |
|
|
||||||
*AuthenticationApi* | [**lockAuthSession**](doc//AuthenticationApi.md#lockauthsession) | **POST** /auth/session/lock |
|
|
||||||
*AuthenticationApi* | [**login**](doc//AuthenticationApi.md#login) | **POST** /auth/login |
|
|
||||||
*AuthenticationApi* | [**logout**](doc//AuthenticationApi.md#logout) | **POST** /auth/logout |
|
|
||||||
*AuthenticationApi* | [**resetPinCode**](doc//AuthenticationApi.md#resetpincode) | **DELETE** /auth/pin-code |
|
|
||||||
*AuthenticationApi* | [**setupPinCode**](doc//AuthenticationApi.md#setuppincode) | **POST** /auth/pin-code |
|
|
||||||
*AuthenticationApi* | [**signUpAdmin**](doc//AuthenticationApi.md#signupadmin) | **POST** /auth/admin-sign-up |
|
|
||||||
*AuthenticationApi* | [**unlockAuthSession**](doc//AuthenticationApi.md#unlockauthsession) | **POST** /auth/session/unlock |
|
|
||||||
*AuthenticationApi* | [**validateAccessToken**](doc//AuthenticationApi.md#validateaccesstoken) | **POST** /auth/validateToken |
|
|
||||||
*DeprecatedApi* | [**getRandom**](doc//DeprecatedApi.md#getrandom) | **GET** /assets/random |
|
|
||||||
*DownloadApi* | [**downloadArchive**](doc//DownloadApi.md#downloadarchive) | **POST** /download/archive |
|
|
||||||
*DownloadApi* | [**getDownloadInfo**](doc//DownloadApi.md#getdownloadinfo) | **POST** /download/info |
|
|
||||||
*DuplicatesApi* | [**deleteDuplicate**](doc//DuplicatesApi.md#deleteduplicate) | **DELETE** /duplicates/{id} |
|
|
||||||
*DuplicatesApi* | [**deleteDuplicates**](doc//DuplicatesApi.md#deleteduplicates) | **DELETE** /duplicates |
|
|
||||||
*DuplicatesApi* | [**getAssetDuplicates**](doc//DuplicatesApi.md#getassetduplicates) | **GET** /duplicates |
|
|
||||||
*FacesApi* | [**createFace**](doc//FacesApi.md#createface) | **POST** /faces |
|
|
||||||
*FacesApi* | [**deleteFace**](doc//FacesApi.md#deleteface) | **DELETE** /faces/{id} |
|
|
||||||
*FacesApi* | [**getFaces**](doc//FacesApi.md#getfaces) | **GET** /faces |
|
|
||||||
*FacesApi* | [**reassignFacesById**](doc//FacesApi.md#reassignfacesbyid) | **PUT** /faces/{id} |
|
|
||||||
*JobsApi* | [**createJob**](doc//JobsApi.md#createjob) | **POST** /jobs |
|
|
||||||
*JobsApi* | [**getAllJobsStatus**](doc//JobsApi.md#getalljobsstatus) | **GET** /jobs |
|
|
||||||
*JobsApi* | [**sendJobCommand**](doc//JobsApi.md#sendjobcommand) | **PUT** /jobs/{id} |
|
|
||||||
*LibrariesApi* | [**createLibrary**](doc//LibrariesApi.md#createlibrary) | **POST** /libraries |
|
|
||||||
*LibrariesApi* | [**deleteLibrary**](doc//LibrariesApi.md#deletelibrary) | **DELETE** /libraries/{id} |
|
|
||||||
*LibrariesApi* | [**getAllLibraries**](doc//LibrariesApi.md#getalllibraries) | **GET** /libraries |
|
|
||||||
*LibrariesApi* | [**getLibrary**](doc//LibrariesApi.md#getlibrary) | **GET** /libraries/{id} |
|
|
||||||
*LibrariesApi* | [**getLibraryStatistics**](doc//LibrariesApi.md#getlibrarystatistics) | **GET** /libraries/{id}/statistics |
|
|
||||||
*LibrariesApi* | [**scanLibrary**](doc//LibrariesApi.md#scanlibrary) | **POST** /libraries/{id}/scan |
|
|
||||||
*LibrariesApi* | [**updateLibrary**](doc//LibrariesApi.md#updatelibrary) | **PUT** /libraries/{id} |
|
|
||||||
*LibrariesApi* | [**validate**](doc//LibrariesApi.md#validate) | **POST** /libraries/{id}/validate |
|
|
||||||
*MapApi* | [**getMapMarkers**](doc//MapApi.md#getmapmarkers) | **GET** /map/markers |
|
|
||||||
*MapApi* | [**reverseGeocode**](doc//MapApi.md#reversegeocode) | **GET** /map/reverse-geocode |
|
|
||||||
*MemoriesApi* | [**addMemoryAssets**](doc//MemoriesApi.md#addmemoryassets) | **PUT** /memories/{id}/assets |
|
|
||||||
*MemoriesApi* | [**createMemory**](doc//MemoriesApi.md#creatememory) | **POST** /memories |
|
|
||||||
*MemoriesApi* | [**deleteMemory**](doc//MemoriesApi.md#deletememory) | **DELETE** /memories/{id} |
|
|
||||||
*MemoriesApi* | [**getMemory**](doc//MemoriesApi.md#getmemory) | **GET** /memories/{id} |
|
|
||||||
*MemoriesApi* | [**memoriesStatistics**](doc//MemoriesApi.md#memoriesstatistics) | **GET** /memories/statistics |
|
|
||||||
*MemoriesApi* | [**removeMemoryAssets**](doc//MemoriesApi.md#removememoryassets) | **DELETE** /memories/{id}/assets |
|
|
||||||
*MemoriesApi* | [**searchMemories**](doc//MemoriesApi.md#searchmemories) | **GET** /memories |
|
|
||||||
*MemoriesApi* | [**updateMemory**](doc//MemoriesApi.md#updatememory) | **PUT** /memories/{id} |
|
|
||||||
*NotificationsApi* | [**deleteNotification**](doc//NotificationsApi.md#deletenotification) | **DELETE** /notifications/{id} |
|
|
||||||
*NotificationsApi* | [**deleteNotifications**](doc//NotificationsApi.md#deletenotifications) | **DELETE** /notifications |
|
|
||||||
*NotificationsApi* | [**getNotification**](doc//NotificationsApi.md#getnotification) | **GET** /notifications/{id} |
|
|
||||||
*NotificationsApi* | [**getNotifications**](doc//NotificationsApi.md#getnotifications) | **GET** /notifications |
|
|
||||||
*NotificationsApi* | [**updateNotification**](doc//NotificationsApi.md#updatenotification) | **PUT** /notifications/{id} |
|
|
||||||
*NotificationsApi* | [**updateNotifications**](doc//NotificationsApi.md#updatenotifications) | **PUT** /notifications |
|
|
||||||
*NotificationsAdminApi* | [**createNotification**](doc//NotificationsAdminApi.md#createnotification) | **POST** /admin/notifications |
|
|
||||||
*NotificationsAdminApi* | [**getNotificationTemplateAdmin**](doc//NotificationsAdminApi.md#getnotificationtemplateadmin) | **POST** /admin/notifications/templates/{name} |
|
|
||||||
*NotificationsAdminApi* | [**sendTestEmailAdmin**](doc//NotificationsAdminApi.md#sendtestemailadmin) | **POST** /admin/notifications/test-email |
|
|
||||||
*OAuthApi* | [**finishOAuth**](doc//OAuthApi.md#finishoauth) | **POST** /oauth/callback |
|
|
||||||
*OAuthApi* | [**linkOAuthAccount**](doc//OAuthApi.md#linkoauthaccount) | **POST** /oauth/link |
|
|
||||||
*OAuthApi* | [**redirectOAuthToMobile**](doc//OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect |
|
|
||||||
*OAuthApi* | [**startOAuth**](doc//OAuthApi.md#startoauth) | **POST** /oauth/authorize |
|
|
||||||
*OAuthApi* | [**unlinkOAuthAccount**](doc//OAuthApi.md#unlinkoauthaccount) | **POST** /oauth/unlink |
|
|
||||||
*PartnersApi* | [**createPartner**](doc//PartnersApi.md#createpartner) | **POST** /partners/{id} |
|
|
||||||
*PartnersApi* | [**getPartners**](doc//PartnersApi.md#getpartners) | **GET** /partners |
|
|
||||||
*PartnersApi* | [**removePartner**](doc//PartnersApi.md#removepartner) | **DELETE** /partners/{id} |
|
|
||||||
*PartnersApi* | [**updatePartner**](doc//PartnersApi.md#updatepartner) | **PUT** /partners/{id} |
|
|
||||||
*PeopleApi* | [**createPerson**](doc//PeopleApi.md#createperson) | **POST** /people |
|
|
||||||
*PeopleApi* | [**deletePeople**](doc//PeopleApi.md#deletepeople) | **DELETE** /people |
|
|
||||||
*PeopleApi* | [**deletePerson**](doc//PeopleApi.md#deleteperson) | **DELETE** /people/{id} |
|
|
||||||
*PeopleApi* | [**getAllPeople**](doc//PeopleApi.md#getallpeople) | **GET** /people |
|
|
||||||
*PeopleApi* | [**getPerson**](doc//PeopleApi.md#getperson) | **GET** /people/{id} |
|
|
||||||
*PeopleApi* | [**getPersonStatistics**](doc//PeopleApi.md#getpersonstatistics) | **GET** /people/{id}/statistics |
|
|
||||||
*PeopleApi* | [**getPersonThumbnail**](doc//PeopleApi.md#getpersonthumbnail) | **GET** /people/{id}/thumbnail |
|
|
||||||
*PeopleApi* | [**mergePerson**](doc//PeopleApi.md#mergeperson) | **POST** /people/{id}/merge |
|
|
||||||
*PeopleApi* | [**reassignFaces**](doc//PeopleApi.md#reassignfaces) | **PUT** /people/{id}/reassign |
|
|
||||||
*PeopleApi* | [**updatePeople**](doc//PeopleApi.md#updatepeople) | **PUT** /people |
|
|
||||||
*PeopleApi* | [**updatePerson**](doc//PeopleApi.md#updateperson) | **PUT** /people/{id} |
|
|
||||||
*SearchApi* | [**getAssetsByCity**](doc//SearchApi.md#getassetsbycity) | **GET** /search/cities |
|
|
||||||
*SearchApi* | [**getExploreData**](doc//SearchApi.md#getexploredata) | **GET** /search/explore |
|
|
||||||
*SearchApi* | [**getSearchSuggestions**](doc//SearchApi.md#getsearchsuggestions) | **GET** /search/suggestions |
|
|
||||||
*SearchApi* | [**searchAssetStatistics**](doc//SearchApi.md#searchassetstatistics) | **POST** /search/statistics |
|
|
||||||
*SearchApi* | [**searchAssets**](doc//SearchApi.md#searchassets) | **POST** /search/metadata |
|
|
||||||
*SearchApi* | [**searchLargeAssets**](doc//SearchApi.md#searchlargeassets) | **POST** /search/large-assets |
|
|
||||||
*SearchApi* | [**searchPerson**](doc//SearchApi.md#searchperson) | **GET** /search/person |
|
|
||||||
*SearchApi* | [**searchPlaces**](doc//SearchApi.md#searchplaces) | **GET** /search/places |
|
|
||||||
*SearchApi* | [**searchRandom**](doc//SearchApi.md#searchrandom) | **POST** /search/random |
|
|
||||||
*SearchApi* | [**searchSmart**](doc//SearchApi.md#searchsmart) | **POST** /search/smart |
|
|
||||||
*ServerApi* | [**deleteServerLicense**](doc//ServerApi.md#deleteserverlicense) | **DELETE** /server/license |
|
|
||||||
*ServerApi* | [**getAboutInfo**](doc//ServerApi.md#getaboutinfo) | **GET** /server/about |
|
|
||||||
*ServerApi* | [**getApkLinks**](doc//ServerApi.md#getapklinks) | **GET** /server/apk-links |
|
|
||||||
*ServerApi* | [**getServerConfig**](doc//ServerApi.md#getserverconfig) | **GET** /server/config |
|
|
||||||
*ServerApi* | [**getServerFeatures**](doc//ServerApi.md#getserverfeatures) | **GET** /server/features |
|
|
||||||
*ServerApi* | [**getServerLicense**](doc//ServerApi.md#getserverlicense) | **GET** /server/license |
|
|
||||||
*ServerApi* | [**getServerStatistics**](doc//ServerApi.md#getserverstatistics) | **GET** /server/statistics |
|
|
||||||
*ServerApi* | [**getServerVersion**](doc//ServerApi.md#getserverversion) | **GET** /server/version |
|
|
||||||
*ServerApi* | [**getStorage**](doc//ServerApi.md#getstorage) | **GET** /server/storage |
|
|
||||||
*ServerApi* | [**getSupportedMediaTypes**](doc//ServerApi.md#getsupportedmediatypes) | **GET** /server/media-types |
|
|
||||||
*ServerApi* | [**getTheme**](doc//ServerApi.md#gettheme) | **GET** /server/theme |
|
|
||||||
*ServerApi* | [**getVersionCheck**](doc//ServerApi.md#getversioncheck) | **GET** /server/version-check |
|
|
||||||
*ServerApi* | [**getVersionHistory**](doc//ServerApi.md#getversionhistory) | **GET** /server/version-history |
|
|
||||||
*ServerApi* | [**pingServer**](doc//ServerApi.md#pingserver) | **GET** /server/ping |
|
|
||||||
*ServerApi* | [**setServerLicense**](doc//ServerApi.md#setserverlicense) | **PUT** /server/license |
|
|
||||||
*SessionsApi* | [**createSession**](doc//SessionsApi.md#createsession) | **POST** /sessions |
|
|
||||||
*SessionsApi* | [**deleteAllSessions**](doc//SessionsApi.md#deleteallsessions) | **DELETE** /sessions |
|
|
||||||
*SessionsApi* | [**deleteSession**](doc//SessionsApi.md#deletesession) | **DELETE** /sessions/{id} |
|
|
||||||
*SessionsApi* | [**getSessions**](doc//SessionsApi.md#getsessions) | **GET** /sessions |
|
|
||||||
*SessionsApi* | [**lockSession**](doc//SessionsApi.md#locksession) | **POST** /sessions/{id}/lock |
|
|
||||||
*SessionsApi* | [**updateSession**](doc//SessionsApi.md#updatesession) | **PUT** /sessions/{id} |
|
|
||||||
*SharedLinksApi* | [**addSharedLinkAssets**](doc//SharedLinksApi.md#addsharedlinkassets) | **PUT** /shared-links/{id}/assets |
|
|
||||||
*SharedLinksApi* | [**createSharedLink**](doc//SharedLinksApi.md#createsharedlink) | **POST** /shared-links |
|
|
||||||
*SharedLinksApi* | [**getAllSharedLinks**](doc//SharedLinksApi.md#getallsharedlinks) | **GET** /shared-links |
|
|
||||||
*SharedLinksApi* | [**getMySharedLink**](doc//SharedLinksApi.md#getmysharedlink) | **GET** /shared-links/me |
|
|
||||||
*SharedLinksApi* | [**getSharedLinkById**](doc//SharedLinksApi.md#getsharedlinkbyid) | **GET** /shared-links/{id} |
|
|
||||||
*SharedLinksApi* | [**removeSharedLink**](doc//SharedLinksApi.md#removesharedlink) | **DELETE** /shared-links/{id} |
|
|
||||||
*SharedLinksApi* | [**removeSharedLinkAssets**](doc//SharedLinksApi.md#removesharedlinkassets) | **DELETE** /shared-links/{id}/assets |
|
|
||||||
*SharedLinksApi* | [**updateSharedLink**](doc//SharedLinksApi.md#updatesharedlink) | **PATCH** /shared-links/{id} |
|
|
||||||
*StacksApi* | [**createStack**](doc//StacksApi.md#createstack) | **POST** /stacks |
|
|
||||||
*StacksApi* | [**deleteStack**](doc//StacksApi.md#deletestack) | **DELETE** /stacks/{id} |
|
|
||||||
*StacksApi* | [**deleteStacks**](doc//StacksApi.md#deletestacks) | **DELETE** /stacks |
|
|
||||||
*StacksApi* | [**getStack**](doc//StacksApi.md#getstack) | **GET** /stacks/{id} |
|
|
||||||
*StacksApi* | [**removeAssetFromStack**](doc//StacksApi.md#removeassetfromstack) | **DELETE** /stacks/{id}/assets/{assetId} |
|
|
||||||
*StacksApi* | [**searchStacks**](doc//StacksApi.md#searchstacks) | **GET** /stacks |
|
|
||||||
*StacksApi* | [**updateStack**](doc//StacksApi.md#updatestack) | **PUT** /stacks/{id} |
|
|
||||||
*SyncApi* | [**deleteSyncAck**](doc//SyncApi.md#deletesyncack) | **DELETE** /sync/ack |
|
|
||||||
*SyncApi* | [**getDeltaSync**](doc//SyncApi.md#getdeltasync) | **POST** /sync/delta-sync |
|
|
||||||
*SyncApi* | [**getFullSyncForUser**](doc//SyncApi.md#getfullsyncforuser) | **POST** /sync/full-sync |
|
|
||||||
*SyncApi* | [**getSyncAck**](doc//SyncApi.md#getsyncack) | **GET** /sync/ack |
|
|
||||||
*SyncApi* | [**getSyncStream**](doc//SyncApi.md#getsyncstream) | **POST** /sync/stream |
|
|
||||||
*SyncApi* | [**sendSyncAck**](doc//SyncApi.md#sendsyncack) | **POST** /sync/ack |
|
|
||||||
*SystemConfigApi* | [**getConfig**](doc//SystemConfigApi.md#getconfig) | **GET** /system-config |
|
|
||||||
*SystemConfigApi* | [**getConfigDefaults**](doc//SystemConfigApi.md#getconfigdefaults) | **GET** /system-config/defaults |
|
|
||||||
*SystemConfigApi* | [**getStorageTemplateOptions**](doc//SystemConfigApi.md#getstoragetemplateoptions) | **GET** /system-config/storage-template-options |
|
|
||||||
*SystemConfigApi* | [**updateConfig**](doc//SystemConfigApi.md#updateconfig) | **PUT** /system-config |
|
|
||||||
*SystemMetadataApi* | [**getAdminOnboarding**](doc//SystemMetadataApi.md#getadminonboarding) | **GET** /system-metadata/admin-onboarding |
|
|
||||||
*SystemMetadataApi* | [**getReverseGeocodingState**](doc//SystemMetadataApi.md#getreversegeocodingstate) | **GET** /system-metadata/reverse-geocoding-state |
|
|
||||||
*SystemMetadataApi* | [**getVersionCheckState**](doc//SystemMetadataApi.md#getversioncheckstate) | **GET** /system-metadata/version-check-state |
|
|
||||||
*SystemMetadataApi* | [**updateAdminOnboarding**](doc//SystemMetadataApi.md#updateadminonboarding) | **POST** /system-metadata/admin-onboarding |
|
|
||||||
*TagsApi* | [**bulkTagAssets**](doc//TagsApi.md#bulktagassets) | **PUT** /tags/assets |
|
|
||||||
*TagsApi* | [**createTag**](doc//TagsApi.md#createtag) | **POST** /tags |
|
|
||||||
*TagsApi* | [**deleteTag**](doc//TagsApi.md#deletetag) | **DELETE** /tags/{id} |
|
|
||||||
*TagsApi* | [**getAllTags**](doc//TagsApi.md#getalltags) | **GET** /tags |
|
|
||||||
*TagsApi* | [**getTagById**](doc//TagsApi.md#gettagbyid) | **GET** /tags/{id} |
|
|
||||||
*TagsApi* | [**tagAssets**](doc//TagsApi.md#tagassets) | **PUT** /tags/{id}/assets |
|
|
||||||
*TagsApi* | [**untagAssets**](doc//TagsApi.md#untagassets) | **DELETE** /tags/{id}/assets |
|
|
||||||
*TagsApi* | [**updateTag**](doc//TagsApi.md#updatetag) | **PUT** /tags/{id} |
|
|
||||||
*TagsApi* | [**upsertTags**](doc//TagsApi.md#upserttags) | **PUT** /tags |
|
|
||||||
*TimelineApi* | [**getTimeBucket**](doc//TimelineApi.md#gettimebucket) | **GET** /timeline/bucket |
|
|
||||||
*TimelineApi* | [**getTimeBuckets**](doc//TimelineApi.md#gettimebuckets) | **GET** /timeline/buckets |
|
|
||||||
*TrashApi* | [**emptyTrash**](doc//TrashApi.md#emptytrash) | **POST** /trash/empty |
|
|
||||||
*TrashApi* | [**restoreAssets**](doc//TrashApi.md#restoreassets) | **POST** /trash/restore/assets |
|
|
||||||
*TrashApi* | [**restoreTrash**](doc//TrashApi.md#restoretrash) | **POST** /trash/restore |
|
|
||||||
*UsersApi* | [**createProfileImage**](doc//UsersApi.md#createprofileimage) | **POST** /users/profile-image |
|
|
||||||
*UsersApi* | [**deleteProfileImage**](doc//UsersApi.md#deleteprofileimage) | **DELETE** /users/profile-image |
|
|
||||||
*UsersApi* | [**deleteUserLicense**](doc//UsersApi.md#deleteuserlicense) | **DELETE** /users/me/license |
|
|
||||||
*UsersApi* | [**deleteUserOnboarding**](doc//UsersApi.md#deleteuseronboarding) | **DELETE** /users/me/onboarding |
|
|
||||||
*UsersApi* | [**getMyPreferences**](doc//UsersApi.md#getmypreferences) | **GET** /users/me/preferences |
|
|
||||||
*UsersApi* | [**getMyUser**](doc//UsersApi.md#getmyuser) | **GET** /users/me |
|
|
||||||
*UsersApi* | [**getProfileImage**](doc//UsersApi.md#getprofileimage) | **GET** /users/{id}/profile-image |
|
|
||||||
*UsersApi* | [**getUser**](doc//UsersApi.md#getuser) | **GET** /users/{id} |
|
|
||||||
*UsersApi* | [**getUserLicense**](doc//UsersApi.md#getuserlicense) | **GET** /users/me/license |
|
|
||||||
*UsersApi* | [**getUserOnboarding**](doc//UsersApi.md#getuseronboarding) | **GET** /users/me/onboarding |
|
|
||||||
*UsersApi* | [**searchUsers**](doc//UsersApi.md#searchusers) | **GET** /users |
|
|
||||||
*UsersApi* | [**setUserLicense**](doc//UsersApi.md#setuserlicense) | **PUT** /users/me/license |
|
|
||||||
*UsersApi* | [**setUserOnboarding**](doc//UsersApi.md#setuseronboarding) | **PUT** /users/me/onboarding |
|
|
||||||
*UsersApi* | [**updateMyPreferences**](doc//UsersApi.md#updatemypreferences) | **PUT** /users/me/preferences |
|
|
||||||
*UsersApi* | [**updateMyUser**](doc//UsersApi.md#updatemyuser) | **PUT** /users/me |
|
|
||||||
*UsersAdminApi* | [**createUserAdmin**](doc//UsersAdminApi.md#createuseradmin) | **POST** /admin/users |
|
|
||||||
*UsersAdminApi* | [**deleteUserAdmin**](doc//UsersAdminApi.md#deleteuseradmin) | **DELETE** /admin/users/{id} |
|
|
||||||
*UsersAdminApi* | [**getUserAdmin**](doc//UsersAdminApi.md#getuseradmin) | **GET** /admin/users/{id} |
|
|
||||||
*UsersAdminApi* | [**getUserPreferencesAdmin**](doc//UsersAdminApi.md#getuserpreferencesadmin) | **GET** /admin/users/{id}/preferences |
|
|
||||||
*UsersAdminApi* | [**getUserStatisticsAdmin**](doc//UsersAdminApi.md#getuserstatisticsadmin) | **GET** /admin/users/{id}/statistics |
|
|
||||||
*UsersAdminApi* | [**restoreUserAdmin**](doc//UsersAdminApi.md#restoreuseradmin) | **POST** /admin/users/{id}/restore |
|
|
||||||
*UsersAdminApi* | [**searchUsersAdmin**](doc//UsersAdminApi.md#searchusersadmin) | **GET** /admin/users |
|
|
||||||
*UsersAdminApi* | [**updateUserAdmin**](doc//UsersAdminApi.md#updateuseradmin) | **PUT** /admin/users/{id} |
|
|
||||||
*UsersAdminApi* | [**updateUserPreferencesAdmin**](doc//UsersAdminApi.md#updateuserpreferencesadmin) | **PUT** /admin/users/{id}/preferences |
|
|
||||||
*ViewApi* | [**getAssetsByOriginalPath**](doc//ViewApi.md#getassetsbyoriginalpath) | **GET** /view/folder |
|
|
||||||
*ViewApi* | [**getUniqueOriginalPaths**](doc//ViewApi.md#getuniqueoriginalpaths) | **GET** /view/folder/unique-paths |
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Models
|
|
||||||
|
|
||||||
- [APIKeyCreateDto](doc//APIKeyCreateDto.md)
|
|
||||||
- [APIKeyCreateResponseDto](doc//APIKeyCreateResponseDto.md)
|
|
||||||
- [APIKeyResponseDto](doc//APIKeyResponseDto.md)
|
|
||||||
- [APIKeyUpdateDto](doc//APIKeyUpdateDto.md)
|
|
||||||
- [ActivityCreateDto](doc//ActivityCreateDto.md)
|
|
||||||
- [ActivityResponseDto](doc//ActivityResponseDto.md)
|
|
||||||
- [ActivityStatisticsResponseDto](doc//ActivityStatisticsResponseDto.md)
|
|
||||||
- [AddUsersDto](doc//AddUsersDto.md)
|
|
||||||
- [AdminOnboardingUpdateDto](doc//AdminOnboardingUpdateDto.md)
|
|
||||||
- [AlbumResponseDto](doc//AlbumResponseDto.md)
|
|
||||||
- [AlbumStatisticsResponseDto](doc//AlbumStatisticsResponseDto.md)
|
|
||||||
- [AlbumUserAddDto](doc//AlbumUserAddDto.md)
|
|
||||||
- [AlbumUserCreateDto](doc//AlbumUserCreateDto.md)
|
|
||||||
- [AlbumUserResponseDto](doc//AlbumUserResponseDto.md)
|
|
||||||
- [AlbumUserRole](doc//AlbumUserRole.md)
|
|
||||||
- [AlbumsAddAssetsDto](doc//AlbumsAddAssetsDto.md)
|
|
||||||
- [AlbumsAddAssetsResponseDto](doc//AlbumsAddAssetsResponseDto.md)
|
|
||||||
- [AlbumsResponse](doc//AlbumsResponse.md)
|
|
||||||
- [AlbumsUpdate](doc//AlbumsUpdate.md)
|
|
||||||
- [AllJobStatusResponseDto](doc//AllJobStatusResponseDto.md)
|
|
||||||
- [AssetBulkDeleteDto](doc//AssetBulkDeleteDto.md)
|
|
||||||
- [AssetBulkUpdateDto](doc//AssetBulkUpdateDto.md)
|
|
||||||
- [AssetBulkUploadCheckDto](doc//AssetBulkUploadCheckDto.md)
|
|
||||||
- [AssetBulkUploadCheckItem](doc//AssetBulkUploadCheckItem.md)
|
|
||||||
- [AssetBulkUploadCheckResponseDto](doc//AssetBulkUploadCheckResponseDto.md)
|
|
||||||
- [AssetBulkUploadCheckResult](doc//AssetBulkUploadCheckResult.md)
|
|
||||||
- [AssetDeltaSyncDto](doc//AssetDeltaSyncDto.md)
|
|
||||||
- [AssetDeltaSyncResponseDto](doc//AssetDeltaSyncResponseDto.md)
|
|
||||||
- [AssetFaceCreateDto](doc//AssetFaceCreateDto.md)
|
|
||||||
- [AssetFaceDeleteDto](doc//AssetFaceDeleteDto.md)
|
|
||||||
- [AssetFaceResponseDto](doc//AssetFaceResponseDto.md)
|
|
||||||
- [AssetFaceUpdateDto](doc//AssetFaceUpdateDto.md)
|
|
||||||
- [AssetFaceUpdateItem](doc//AssetFaceUpdateItem.md)
|
|
||||||
- [AssetFaceWithoutPersonResponseDto](doc//AssetFaceWithoutPersonResponseDto.md)
|
|
||||||
- [AssetFullSyncDto](doc//AssetFullSyncDto.md)
|
|
||||||
- [AssetIdsDto](doc//AssetIdsDto.md)
|
|
||||||
- [AssetIdsResponseDto](doc//AssetIdsResponseDto.md)
|
|
||||||
- [AssetJobName](doc//AssetJobName.md)
|
|
||||||
- [AssetJobsDto](doc//AssetJobsDto.md)
|
|
||||||
- [AssetMediaResponseDto](doc//AssetMediaResponseDto.md)
|
|
||||||
- [AssetMediaSize](doc//AssetMediaSize.md)
|
|
||||||
- [AssetMediaStatus](doc//AssetMediaStatus.md)
|
|
||||||
- [AssetOrder](doc//AssetOrder.md)
|
|
||||||
- [AssetResponseDto](doc//AssetResponseDto.md)
|
|
||||||
- [AssetStackResponseDto](doc//AssetStackResponseDto.md)
|
|
||||||
- [AssetStatsResponseDto](doc//AssetStatsResponseDto.md)
|
|
||||||
- [AssetTypeEnum](doc//AssetTypeEnum.md)
|
|
||||||
- [AssetVisibility](doc//AssetVisibility.md)
|
|
||||||
- [AudioCodec](doc//AudioCodec.md)
|
|
||||||
- [AuthStatusResponseDto](doc//AuthStatusResponseDto.md)
|
|
||||||
- [AvatarUpdate](doc//AvatarUpdate.md)
|
|
||||||
- [BulkIdErrorReason](doc//BulkIdErrorReason.md)
|
|
||||||
- [BulkIdResponseDto](doc//BulkIdResponseDto.md)
|
|
||||||
- [BulkIdsDto](doc//BulkIdsDto.md)
|
|
||||||
- [CLIPConfig](doc//CLIPConfig.md)
|
|
||||||
- [CQMode](doc//CQMode.md)
|
|
||||||
- [CastResponse](doc//CastResponse.md)
|
|
||||||
- [CastUpdate](doc//CastUpdate.md)
|
|
||||||
- [ChangePasswordDto](doc//ChangePasswordDto.md)
|
|
||||||
- [CheckExistingAssetsDto](doc//CheckExistingAssetsDto.md)
|
|
||||||
- [CheckExistingAssetsResponseDto](doc//CheckExistingAssetsResponseDto.md)
|
|
||||||
- [Colorspace](doc//Colorspace.md)
|
|
||||||
- [CreateAlbumDto](doc//CreateAlbumDto.md)
|
|
||||||
- [CreateLibraryDto](doc//CreateLibraryDto.md)
|
|
||||||
- [CreateProfileImageResponseDto](doc//CreateProfileImageResponseDto.md)
|
|
||||||
- [DatabaseBackupConfig](doc//DatabaseBackupConfig.md)
|
|
||||||
- [DownloadArchiveInfo](doc//DownloadArchiveInfo.md)
|
|
||||||
- [DownloadInfoDto](doc//DownloadInfoDto.md)
|
|
||||||
- [DownloadResponse](doc//DownloadResponse.md)
|
|
||||||
- [DownloadResponseDto](doc//DownloadResponseDto.md)
|
|
||||||
- [DownloadUpdate](doc//DownloadUpdate.md)
|
|
||||||
- [DuplicateDetectionConfig](doc//DuplicateDetectionConfig.md)
|
|
||||||
- [DuplicateResponseDto](doc//DuplicateResponseDto.md)
|
|
||||||
- [EmailNotificationsResponse](doc//EmailNotificationsResponse.md)
|
|
||||||
- [EmailNotificationsUpdate](doc//EmailNotificationsUpdate.md)
|
|
||||||
- [ExifResponseDto](doc//ExifResponseDto.md)
|
|
||||||
- [FaceDto](doc//FaceDto.md)
|
|
||||||
- [FacialRecognitionConfig](doc//FacialRecognitionConfig.md)
|
|
||||||
- [FoldersResponse](doc//FoldersResponse.md)
|
|
||||||
- [FoldersUpdate](doc//FoldersUpdate.md)
|
|
||||||
- [ImageFormat](doc//ImageFormat.md)
|
|
||||||
- [JobCommand](doc//JobCommand.md)
|
|
||||||
- [JobCommandDto](doc//JobCommandDto.md)
|
|
||||||
- [JobCountsDto](doc//JobCountsDto.md)
|
|
||||||
- [JobCreateDto](doc//JobCreateDto.md)
|
|
||||||
- [JobName](doc//JobName.md)
|
|
||||||
- [JobSettingsDto](doc//JobSettingsDto.md)
|
|
||||||
- [JobStatusDto](doc//JobStatusDto.md)
|
|
||||||
- [LibraryResponseDto](doc//LibraryResponseDto.md)
|
|
||||||
- [LibraryStatsResponseDto](doc//LibraryStatsResponseDto.md)
|
|
||||||
- [LicenseKeyDto](doc//LicenseKeyDto.md)
|
|
||||||
- [LicenseResponseDto](doc//LicenseResponseDto.md)
|
|
||||||
- [LogLevel](doc//LogLevel.md)
|
|
||||||
- [LoginCredentialDto](doc//LoginCredentialDto.md)
|
|
||||||
- [LoginResponseDto](doc//LoginResponseDto.md)
|
|
||||||
- [LogoutResponseDto](doc//LogoutResponseDto.md)
|
|
||||||
- [ManualJobName](doc//ManualJobName.md)
|
|
||||||
- [MapMarkerResponseDto](doc//MapMarkerResponseDto.md)
|
|
||||||
- [MapReverseGeocodeResponseDto](doc//MapReverseGeocodeResponseDto.md)
|
|
||||||
- [MemoriesResponse](doc//MemoriesResponse.md)
|
|
||||||
- [MemoriesUpdate](doc//MemoriesUpdate.md)
|
|
||||||
- [MemoryCreateDto](doc//MemoryCreateDto.md)
|
|
||||||
- [MemoryResponseDto](doc//MemoryResponseDto.md)
|
|
||||||
- [MemoryStatisticsResponseDto](doc//MemoryStatisticsResponseDto.md)
|
|
||||||
- [MemoryType](doc//MemoryType.md)
|
|
||||||
- [MemoryUpdateDto](doc//MemoryUpdateDto.md)
|
|
||||||
- [MergePersonDto](doc//MergePersonDto.md)
|
|
||||||
- [MetadataSearchDto](doc//MetadataSearchDto.md)
|
|
||||||
- [NotificationCreateDto](doc//NotificationCreateDto.md)
|
|
||||||
- [NotificationDeleteAllDto](doc//NotificationDeleteAllDto.md)
|
|
||||||
- [NotificationDto](doc//NotificationDto.md)
|
|
||||||
- [NotificationLevel](doc//NotificationLevel.md)
|
|
||||||
- [NotificationType](doc//NotificationType.md)
|
|
||||||
- [NotificationUpdateAllDto](doc//NotificationUpdateAllDto.md)
|
|
||||||
- [NotificationUpdateDto](doc//NotificationUpdateDto.md)
|
|
||||||
- [OAuthAuthorizeResponseDto](doc//OAuthAuthorizeResponseDto.md)
|
|
||||||
- [OAuthCallbackDto](doc//OAuthCallbackDto.md)
|
|
||||||
- [OAuthConfigDto](doc//OAuthConfigDto.md)
|
|
||||||
- [OAuthTokenEndpointAuthMethod](doc//OAuthTokenEndpointAuthMethod.md)
|
|
||||||
- [OnThisDayDto](doc//OnThisDayDto.md)
|
|
||||||
- [OnboardingDto](doc//OnboardingDto.md)
|
|
||||||
- [OnboardingResponseDto](doc//OnboardingResponseDto.md)
|
|
||||||
- [PartnerDirection](doc//PartnerDirection.md)
|
|
||||||
- [PartnerResponseDto](doc//PartnerResponseDto.md)
|
|
||||||
- [PeopleResponse](doc//PeopleResponse.md)
|
|
||||||
- [PeopleResponseDto](doc//PeopleResponseDto.md)
|
|
||||||
- [PeopleUpdate](doc//PeopleUpdate.md)
|
|
||||||
- [PeopleUpdateDto](doc//PeopleUpdateDto.md)
|
|
||||||
- [PeopleUpdateItem](doc//PeopleUpdateItem.md)
|
|
||||||
- [Permission](doc//Permission.md)
|
|
||||||
- [PersonCreateDto](doc//PersonCreateDto.md)
|
|
||||||
- [PersonResponseDto](doc//PersonResponseDto.md)
|
|
||||||
- [PersonStatisticsResponseDto](doc//PersonStatisticsResponseDto.md)
|
|
||||||
- [PersonUpdateDto](doc//PersonUpdateDto.md)
|
|
||||||
- [PersonWithFacesResponseDto](doc//PersonWithFacesResponseDto.md)
|
|
||||||
- [PinCodeChangeDto](doc//PinCodeChangeDto.md)
|
|
||||||
- [PinCodeResetDto](doc//PinCodeResetDto.md)
|
|
||||||
- [PinCodeSetupDto](doc//PinCodeSetupDto.md)
|
|
||||||
- [PlacesResponseDto](doc//PlacesResponseDto.md)
|
|
||||||
- [PurchaseResponse](doc//PurchaseResponse.md)
|
|
||||||
- [PurchaseUpdate](doc//PurchaseUpdate.md)
|
|
||||||
- [QueueStatusDto](doc//QueueStatusDto.md)
|
|
||||||
- [RandomSearchDto](doc//RandomSearchDto.md)
|
|
||||||
- [RatingsResponse](doc//RatingsResponse.md)
|
|
||||||
- [RatingsUpdate](doc//RatingsUpdate.md)
|
|
||||||
- [ReactionLevel](doc//ReactionLevel.md)
|
|
||||||
- [ReactionType](doc//ReactionType.md)
|
|
||||||
- [ReverseGeocodingStateResponseDto](doc//ReverseGeocodingStateResponseDto.md)
|
|
||||||
- [SearchAlbumResponseDto](doc//SearchAlbumResponseDto.md)
|
|
||||||
- [SearchAssetResponseDto](doc//SearchAssetResponseDto.md)
|
|
||||||
- [SearchExploreItem](doc//SearchExploreItem.md)
|
|
||||||
- [SearchExploreResponseDto](doc//SearchExploreResponseDto.md)
|
|
||||||
- [SearchFacetCountResponseDto](doc//SearchFacetCountResponseDto.md)
|
|
||||||
- [SearchFacetResponseDto](doc//SearchFacetResponseDto.md)
|
|
||||||
- [SearchResponseDto](doc//SearchResponseDto.md)
|
|
||||||
- [SearchStatisticsResponseDto](doc//SearchStatisticsResponseDto.md)
|
|
||||||
- [SearchSuggestionType](doc//SearchSuggestionType.md)
|
|
||||||
- [ServerAboutResponseDto](doc//ServerAboutResponseDto.md)
|
|
||||||
- [ServerApkLinksDto](doc//ServerApkLinksDto.md)
|
|
||||||
- [ServerConfigDto](doc//ServerConfigDto.md)
|
|
||||||
- [ServerFeaturesDto](doc//ServerFeaturesDto.md)
|
|
||||||
- [ServerMediaTypesResponseDto](doc//ServerMediaTypesResponseDto.md)
|
|
||||||
- [ServerPingResponse](doc//ServerPingResponse.md)
|
|
||||||
- [ServerStatsResponseDto](doc//ServerStatsResponseDto.md)
|
|
||||||
- [ServerStorageResponseDto](doc//ServerStorageResponseDto.md)
|
|
||||||
- [ServerThemeDto](doc//ServerThemeDto.md)
|
|
||||||
- [ServerVersionHistoryResponseDto](doc//ServerVersionHistoryResponseDto.md)
|
|
||||||
- [ServerVersionResponseDto](doc//ServerVersionResponseDto.md)
|
|
||||||
- [SessionCreateDto](doc//SessionCreateDto.md)
|
|
||||||
- [SessionCreateResponseDto](doc//SessionCreateResponseDto.md)
|
|
||||||
- [SessionResponseDto](doc//SessionResponseDto.md)
|
|
||||||
- [SessionUnlockDto](doc//SessionUnlockDto.md)
|
|
||||||
- [SessionUpdateDto](doc//SessionUpdateDto.md)
|
|
||||||
- [SharedLinkCreateDto](doc//SharedLinkCreateDto.md)
|
|
||||||
- [SharedLinkEditDto](doc//SharedLinkEditDto.md)
|
|
||||||
- [SharedLinkResponseDto](doc//SharedLinkResponseDto.md)
|
|
||||||
- [SharedLinkType](doc//SharedLinkType.md)
|
|
||||||
- [SharedLinksResponse](doc//SharedLinksResponse.md)
|
|
||||||
- [SharedLinksUpdate](doc//SharedLinksUpdate.md)
|
|
||||||
- [SignUpDto](doc//SignUpDto.md)
|
|
||||||
- [SmartSearchDto](doc//SmartSearchDto.md)
|
|
||||||
- [SourceType](doc//SourceType.md)
|
|
||||||
- [StackCreateDto](doc//StackCreateDto.md)
|
|
||||||
- [StackResponseDto](doc//StackResponseDto.md)
|
|
||||||
- [StackUpdateDto](doc//StackUpdateDto.md)
|
|
||||||
- [StatisticsSearchDto](doc//StatisticsSearchDto.md)
|
|
||||||
- [SyncAckDeleteDto](doc//SyncAckDeleteDto.md)
|
|
||||||
- [SyncAckDto](doc//SyncAckDto.md)
|
|
||||||
- [SyncAckSetDto](doc//SyncAckSetDto.md)
|
|
||||||
- [SyncAlbumDeleteV1](doc//SyncAlbumDeleteV1.md)
|
|
||||||
- [SyncAlbumToAssetDeleteV1](doc//SyncAlbumToAssetDeleteV1.md)
|
|
||||||
- [SyncAlbumToAssetV1](doc//SyncAlbumToAssetV1.md)
|
|
||||||
- [SyncAlbumUserDeleteV1](doc//SyncAlbumUserDeleteV1.md)
|
|
||||||
- [SyncAlbumUserV1](doc//SyncAlbumUserV1.md)
|
|
||||||
- [SyncAlbumV1](doc//SyncAlbumV1.md)
|
|
||||||
- [SyncAssetDeleteV1](doc//SyncAssetDeleteV1.md)
|
|
||||||
- [SyncAssetExifV1](doc//SyncAssetExifV1.md)
|
|
||||||
- [SyncAssetFaceDeleteV1](doc//SyncAssetFaceDeleteV1.md)
|
|
||||||
- [SyncAssetFaceV1](doc//SyncAssetFaceV1.md)
|
|
||||||
- [SyncAssetV1](doc//SyncAssetV1.md)
|
|
||||||
- [SyncAuthUserV1](doc//SyncAuthUserV1.md)
|
|
||||||
- [SyncEntityType](doc//SyncEntityType.md)
|
|
||||||
- [SyncMemoryAssetDeleteV1](doc//SyncMemoryAssetDeleteV1.md)
|
|
||||||
- [SyncMemoryAssetV1](doc//SyncMemoryAssetV1.md)
|
|
||||||
- [SyncMemoryDeleteV1](doc//SyncMemoryDeleteV1.md)
|
|
||||||
- [SyncMemoryV1](doc//SyncMemoryV1.md)
|
|
||||||
- [SyncPartnerDeleteV1](doc//SyncPartnerDeleteV1.md)
|
|
||||||
- [SyncPartnerV1](doc//SyncPartnerV1.md)
|
|
||||||
- [SyncPersonDeleteV1](doc//SyncPersonDeleteV1.md)
|
|
||||||
- [SyncPersonV1](doc//SyncPersonV1.md)
|
|
||||||
- [SyncRequestType](doc//SyncRequestType.md)
|
|
||||||
- [SyncStackDeleteV1](doc//SyncStackDeleteV1.md)
|
|
||||||
- [SyncStackV1](doc//SyncStackV1.md)
|
|
||||||
- [SyncStreamDto](doc//SyncStreamDto.md)
|
|
||||||
- [SyncUserDeleteV1](doc//SyncUserDeleteV1.md)
|
|
||||||
- [SyncUserMetadataDeleteV1](doc//SyncUserMetadataDeleteV1.md)
|
|
||||||
- [SyncUserMetadataV1](doc//SyncUserMetadataV1.md)
|
|
||||||
- [SyncUserV1](doc//SyncUserV1.md)
|
|
||||||
- [SystemConfigBackupsDto](doc//SystemConfigBackupsDto.md)
|
|
||||||
- [SystemConfigDto](doc//SystemConfigDto.md)
|
|
||||||
- [SystemConfigFFmpegDto](doc//SystemConfigFFmpegDto.md)
|
|
||||||
- [SystemConfigFacesDto](doc//SystemConfigFacesDto.md)
|
|
||||||
- [SystemConfigGeneratedFullsizeImageDto](doc//SystemConfigGeneratedFullsizeImageDto.md)
|
|
||||||
- [SystemConfigGeneratedImageDto](doc//SystemConfigGeneratedImageDto.md)
|
|
||||||
- [SystemConfigImageDto](doc//SystemConfigImageDto.md)
|
|
||||||
- [SystemConfigJobDto](doc//SystemConfigJobDto.md)
|
|
||||||
- [SystemConfigLibraryDto](doc//SystemConfigLibraryDto.md)
|
|
||||||
- [SystemConfigLibraryScanDto](doc//SystemConfigLibraryScanDto.md)
|
|
||||||
- [SystemConfigLibraryWatchDto](doc//SystemConfigLibraryWatchDto.md)
|
|
||||||
- [SystemConfigLoggingDto](doc//SystemConfigLoggingDto.md)
|
|
||||||
- [SystemConfigMachineLearningDto](doc//SystemConfigMachineLearningDto.md)
|
|
||||||
- [SystemConfigMapDto](doc//SystemConfigMapDto.md)
|
|
||||||
- [SystemConfigMetadataDto](doc//SystemConfigMetadataDto.md)
|
|
||||||
- [SystemConfigNewVersionCheckDto](doc//SystemConfigNewVersionCheckDto.md)
|
|
||||||
- [SystemConfigNightlyTasksDto](doc//SystemConfigNightlyTasksDto.md)
|
|
||||||
- [SystemConfigNotificationsDto](doc//SystemConfigNotificationsDto.md)
|
|
||||||
- [SystemConfigOAuthDto](doc//SystemConfigOAuthDto.md)
|
|
||||||
- [SystemConfigPasswordLoginDto](doc//SystemConfigPasswordLoginDto.md)
|
|
||||||
- [SystemConfigReverseGeocodingDto](doc//SystemConfigReverseGeocodingDto.md)
|
|
||||||
- [SystemConfigServerDto](doc//SystemConfigServerDto.md)
|
|
||||||
- [SystemConfigSmtpDto](doc//SystemConfigSmtpDto.md)
|
|
||||||
- [SystemConfigSmtpTransportDto](doc//SystemConfigSmtpTransportDto.md)
|
|
||||||
- [SystemConfigStorageTemplateDto](doc//SystemConfigStorageTemplateDto.md)
|
|
||||||
- [SystemConfigTemplateEmailsDto](doc//SystemConfigTemplateEmailsDto.md)
|
|
||||||
- [SystemConfigTemplateStorageOptionDto](doc//SystemConfigTemplateStorageOptionDto.md)
|
|
||||||
- [SystemConfigTemplatesDto](doc//SystemConfigTemplatesDto.md)
|
|
||||||
- [SystemConfigThemeDto](doc//SystemConfigThemeDto.md)
|
|
||||||
- [SystemConfigTrashDto](doc//SystemConfigTrashDto.md)
|
|
||||||
- [SystemConfigUserDto](doc//SystemConfigUserDto.md)
|
|
||||||
- [TagBulkAssetsDto](doc//TagBulkAssetsDto.md)
|
|
||||||
- [TagBulkAssetsResponseDto](doc//TagBulkAssetsResponseDto.md)
|
|
||||||
- [TagCreateDto](doc//TagCreateDto.md)
|
|
||||||
- [TagResponseDto](doc//TagResponseDto.md)
|
|
||||||
- [TagUpdateDto](doc//TagUpdateDto.md)
|
|
||||||
- [TagUpsertDto](doc//TagUpsertDto.md)
|
|
||||||
- [TagsResponse](doc//TagsResponse.md)
|
|
||||||
- [TagsUpdate](doc//TagsUpdate.md)
|
|
||||||
- [TemplateDto](doc//TemplateDto.md)
|
|
||||||
- [TemplateResponseDto](doc//TemplateResponseDto.md)
|
|
||||||
- [TestEmailResponseDto](doc//TestEmailResponseDto.md)
|
|
||||||
- [TimeBucketAssetResponseDto](doc//TimeBucketAssetResponseDto.md)
|
|
||||||
- [TimeBucketsResponseDto](doc//TimeBucketsResponseDto.md)
|
|
||||||
- [ToneMapping](doc//ToneMapping.md)
|
|
||||||
- [TranscodeHWAccel](doc//TranscodeHWAccel.md)
|
|
||||||
- [TranscodePolicy](doc//TranscodePolicy.md)
|
|
||||||
- [TrashResponseDto](doc//TrashResponseDto.md)
|
|
||||||
- [UpdateAlbumDto](doc//UpdateAlbumDto.md)
|
|
||||||
- [UpdateAlbumUserDto](doc//UpdateAlbumUserDto.md)
|
|
||||||
- [UpdateAssetDto](doc//UpdateAssetDto.md)
|
|
||||||
- [UpdateLibraryDto](doc//UpdateLibraryDto.md)
|
|
||||||
- [UpdatePartnerDto](doc//UpdatePartnerDto.md)
|
|
||||||
- [UsageByUserDto](doc//UsageByUserDto.md)
|
|
||||||
- [UserAdminCreateDto](doc//UserAdminCreateDto.md)
|
|
||||||
- [UserAdminDeleteDto](doc//UserAdminDeleteDto.md)
|
|
||||||
- [UserAdminResponseDto](doc//UserAdminResponseDto.md)
|
|
||||||
- [UserAdminUpdateDto](doc//UserAdminUpdateDto.md)
|
|
||||||
- [UserAvatarColor](doc//UserAvatarColor.md)
|
|
||||||
- [UserLicense](doc//UserLicense.md)
|
|
||||||
- [UserMetadataKey](doc//UserMetadataKey.md)
|
|
||||||
- [UserPreferencesResponseDto](doc//UserPreferencesResponseDto.md)
|
|
||||||
- [UserPreferencesUpdateDto](doc//UserPreferencesUpdateDto.md)
|
|
||||||
- [UserResponseDto](doc//UserResponseDto.md)
|
|
||||||
- [UserStatus](doc//UserStatus.md)
|
|
||||||
- [UserUpdateMeDto](doc//UserUpdateMeDto.md)
|
|
||||||
- [ValidateAccessTokenResponseDto](doc//ValidateAccessTokenResponseDto.md)
|
|
||||||
- [ValidateLibraryDto](doc//ValidateLibraryDto.md)
|
|
||||||
- [ValidateLibraryImportPathResponseDto](doc//ValidateLibraryImportPathResponseDto.md)
|
|
||||||
- [ValidateLibraryResponseDto](doc//ValidateLibraryResponseDto.md)
|
|
||||||
- [VersionCheckStateResponseDto](doc//VersionCheckStateResponseDto.md)
|
|
||||||
- [VideoCodec](doc//VideoCodec.md)
|
|
||||||
- [VideoContainer](doc//VideoContainer.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
|
||||||
|
|
||||||
|
|
||||||
Authentication schemes defined for the API:
|
|
||||||
### bearer
|
|
||||||
|
|
||||||
- **Type**: HTTP Bearer authentication
|
|
||||||
|
|
||||||
### cookie
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: immich_access_token
|
|
||||||
- **Location**:
|
|
||||||
|
|
||||||
### api_key
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: x-api-key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
|
|
||||||
## Author
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
||||||
#
|
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
||||||
|
|
||||||
git_user_id=$1
|
|
||||||
git_repo_id=$2
|
|
||||||
release_note=$3
|
|
||||||
git_host=$4
|
|
||||||
|
|
||||||
if [ "$git_host" = "" ]; then
|
|
||||||
git_host="github.com"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
|
||||||
git_user_id="GIT_USER_ID"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
|
||||||
git_repo_id="GIT_REPO_ID"
|
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$release_note" = "" ]; then
|
|
||||||
release_note="Minor update"
|
|
||||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Initialize the local directory as a Git repository
|
|
||||||
git init
|
|
||||||
|
|
||||||
# Adds the files in the local repository and stages them for commit.
|
|
||||||
git add .
|
|
||||||
|
|
||||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
||||||
git commit -m "$release_note"
|
|
||||||
|
|
||||||
# Sets the new remote
|
|
||||||
git_remote=$(git remote)
|
|
||||||
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
||||||
|
|
||||||
if [ "$GIT_TOKEN" = "" ]; then
|
|
||||||
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
||||||
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
||||||
else
|
|
||||||
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
git pull origin master
|
|
||||||
|
|
||||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
||||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
||||||
git push origin master 2>&1 | grep -v 'To https'
|
|
||||||
372
mobile/openapi/lib/api.dart
generated
372
mobile/openapi/lib/api.dart
generated
@ -1,372 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
library openapi.api;
|
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:immich_mobile/utils/openapi_patching.dart';
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
import 'package:intl/intl.dart';
|
|
||||||
import 'package:meta/meta.dart';
|
|
||||||
|
|
||||||
part 'api_client.dart';
|
|
||||||
part 'api_helper.dart';
|
|
||||||
part 'api_exception.dart';
|
|
||||||
part 'auth/authentication.dart';
|
|
||||||
part 'auth/api_key_auth.dart';
|
|
||||||
part 'auth/oauth.dart';
|
|
||||||
part 'auth/http_basic_auth.dart';
|
|
||||||
part 'auth/http_bearer_auth.dart';
|
|
||||||
|
|
||||||
part 'api/api_keys_api.dart';
|
|
||||||
part 'api/activities_api.dart';
|
|
||||||
part 'api/albums_api.dart';
|
|
||||||
part 'api/assets_api.dart';
|
|
||||||
part 'api/auth_admin_api.dart';
|
|
||||||
part 'api/authentication_api.dart';
|
|
||||||
part 'api/deprecated_api.dart';
|
|
||||||
part 'api/download_api.dart';
|
|
||||||
part 'api/duplicates_api.dart';
|
|
||||||
part 'api/faces_api.dart';
|
|
||||||
part 'api/jobs_api.dart';
|
|
||||||
part 'api/libraries_api.dart';
|
|
||||||
part 'api/map_api.dart';
|
|
||||||
part 'api/memories_api.dart';
|
|
||||||
part 'api/notifications_api.dart';
|
|
||||||
part 'api/notifications_admin_api.dart';
|
|
||||||
part 'api/o_auth_api.dart';
|
|
||||||
part 'api/partners_api.dart';
|
|
||||||
part 'api/people_api.dart';
|
|
||||||
part 'api/search_api.dart';
|
|
||||||
part 'api/server_api.dart';
|
|
||||||
part 'api/sessions_api.dart';
|
|
||||||
part 'api/shared_links_api.dart';
|
|
||||||
part 'api/stacks_api.dart';
|
|
||||||
part 'api/sync_api.dart';
|
|
||||||
part 'api/system_config_api.dart';
|
|
||||||
part 'api/system_metadata_api.dart';
|
|
||||||
part 'api/tags_api.dart';
|
|
||||||
part 'api/timeline_api.dart';
|
|
||||||
part 'api/trash_api.dart';
|
|
||||||
part 'api/users_api.dart';
|
|
||||||
part 'api/users_admin_api.dart';
|
|
||||||
part 'api/view_api.dart';
|
|
||||||
|
|
||||||
part 'model/api_key_create_dto.dart';
|
|
||||||
part 'model/api_key_create_response_dto.dart';
|
|
||||||
part 'model/api_key_response_dto.dart';
|
|
||||||
part 'model/api_key_update_dto.dart';
|
|
||||||
part 'model/activity_create_dto.dart';
|
|
||||||
part 'model/activity_response_dto.dart';
|
|
||||||
part 'model/activity_statistics_response_dto.dart';
|
|
||||||
part 'model/add_users_dto.dart';
|
|
||||||
part 'model/admin_onboarding_update_dto.dart';
|
|
||||||
part 'model/album_response_dto.dart';
|
|
||||||
part 'model/album_statistics_response_dto.dart';
|
|
||||||
part 'model/album_user_add_dto.dart';
|
|
||||||
part 'model/album_user_create_dto.dart';
|
|
||||||
part 'model/album_user_response_dto.dart';
|
|
||||||
part 'model/album_user_role.dart';
|
|
||||||
part 'model/albums_add_assets_dto.dart';
|
|
||||||
part 'model/albums_add_assets_response_dto.dart';
|
|
||||||
part 'model/albums_response.dart';
|
|
||||||
part 'model/albums_update.dart';
|
|
||||||
part 'model/all_job_status_response_dto.dart';
|
|
||||||
part 'model/asset_bulk_delete_dto.dart';
|
|
||||||
part 'model/asset_bulk_update_dto.dart';
|
|
||||||
part 'model/asset_bulk_upload_check_dto.dart';
|
|
||||||
part 'model/asset_bulk_upload_check_item.dart';
|
|
||||||
part 'model/asset_bulk_upload_check_response_dto.dart';
|
|
||||||
part 'model/asset_bulk_upload_check_result.dart';
|
|
||||||
part 'model/asset_delta_sync_dto.dart';
|
|
||||||
part 'model/asset_delta_sync_response_dto.dart';
|
|
||||||
part 'model/asset_face_create_dto.dart';
|
|
||||||
part 'model/asset_face_delete_dto.dart';
|
|
||||||
part 'model/asset_face_response_dto.dart';
|
|
||||||
part 'model/asset_face_update_dto.dart';
|
|
||||||
part 'model/asset_face_update_item.dart';
|
|
||||||
part 'model/asset_face_without_person_response_dto.dart';
|
|
||||||
part 'model/asset_full_sync_dto.dart';
|
|
||||||
part 'model/asset_ids_dto.dart';
|
|
||||||
part 'model/asset_ids_response_dto.dart';
|
|
||||||
part 'model/asset_job_name.dart';
|
|
||||||
part 'model/asset_jobs_dto.dart';
|
|
||||||
part 'model/asset_media_response_dto.dart';
|
|
||||||
part 'model/asset_media_size.dart';
|
|
||||||
part 'model/asset_media_status.dart';
|
|
||||||
part 'model/asset_order.dart';
|
|
||||||
part 'model/asset_response_dto.dart';
|
|
||||||
part 'model/asset_stack_response_dto.dart';
|
|
||||||
part 'model/asset_stats_response_dto.dart';
|
|
||||||
part 'model/asset_type_enum.dart';
|
|
||||||
part 'model/asset_visibility.dart';
|
|
||||||
part 'model/audio_codec.dart';
|
|
||||||
part 'model/auth_status_response_dto.dart';
|
|
||||||
part 'model/avatar_update.dart';
|
|
||||||
part 'model/bulk_id_error_reason.dart';
|
|
||||||
part 'model/bulk_id_response_dto.dart';
|
|
||||||
part 'model/bulk_ids_dto.dart';
|
|
||||||
part 'model/clip_config.dart';
|
|
||||||
part 'model/cq_mode.dart';
|
|
||||||
part 'model/cast_response.dart';
|
|
||||||
part 'model/cast_update.dart';
|
|
||||||
part 'model/change_password_dto.dart';
|
|
||||||
part 'model/check_existing_assets_dto.dart';
|
|
||||||
part 'model/check_existing_assets_response_dto.dart';
|
|
||||||
part 'model/colorspace.dart';
|
|
||||||
part 'model/create_album_dto.dart';
|
|
||||||
part 'model/create_library_dto.dart';
|
|
||||||
part 'model/create_profile_image_response_dto.dart';
|
|
||||||
part 'model/database_backup_config.dart';
|
|
||||||
part 'model/download_archive_info.dart';
|
|
||||||
part 'model/download_info_dto.dart';
|
|
||||||
part 'model/download_response.dart';
|
|
||||||
part 'model/download_response_dto.dart';
|
|
||||||
part 'model/download_update.dart';
|
|
||||||
part 'model/duplicate_detection_config.dart';
|
|
||||||
part 'model/duplicate_response_dto.dart';
|
|
||||||
part 'model/email_notifications_response.dart';
|
|
||||||
part 'model/email_notifications_update.dart';
|
|
||||||
part 'model/exif_response_dto.dart';
|
|
||||||
part 'model/face_dto.dart';
|
|
||||||
part 'model/facial_recognition_config.dart';
|
|
||||||
part 'model/folders_response.dart';
|
|
||||||
part 'model/folders_update.dart';
|
|
||||||
part 'model/image_format.dart';
|
|
||||||
part 'model/job_command.dart';
|
|
||||||
part 'model/job_command_dto.dart';
|
|
||||||
part 'model/job_counts_dto.dart';
|
|
||||||
part 'model/job_create_dto.dart';
|
|
||||||
part 'model/job_name.dart';
|
|
||||||
part 'model/job_settings_dto.dart';
|
|
||||||
part 'model/job_status_dto.dart';
|
|
||||||
part 'model/library_response_dto.dart';
|
|
||||||
part 'model/library_stats_response_dto.dart';
|
|
||||||
part 'model/license_key_dto.dart';
|
|
||||||
part 'model/license_response_dto.dart';
|
|
||||||
part 'model/log_level.dart';
|
|
||||||
part 'model/login_credential_dto.dart';
|
|
||||||
part 'model/login_response_dto.dart';
|
|
||||||
part 'model/logout_response_dto.dart';
|
|
||||||
part 'model/manual_job_name.dart';
|
|
||||||
part 'model/map_marker_response_dto.dart';
|
|
||||||
part 'model/map_reverse_geocode_response_dto.dart';
|
|
||||||
part 'model/memories_response.dart';
|
|
||||||
part 'model/memories_update.dart';
|
|
||||||
part 'model/memory_create_dto.dart';
|
|
||||||
part 'model/memory_response_dto.dart';
|
|
||||||
part 'model/memory_statistics_response_dto.dart';
|
|
||||||
part 'model/memory_type.dart';
|
|
||||||
part 'model/memory_update_dto.dart';
|
|
||||||
part 'model/merge_person_dto.dart';
|
|
||||||
part 'model/metadata_search_dto.dart';
|
|
||||||
part 'model/notification_create_dto.dart';
|
|
||||||
part 'model/notification_delete_all_dto.dart';
|
|
||||||
part 'model/notification_dto.dart';
|
|
||||||
part 'model/notification_level.dart';
|
|
||||||
part 'model/notification_type.dart';
|
|
||||||
part 'model/notification_update_all_dto.dart';
|
|
||||||
part 'model/notification_update_dto.dart';
|
|
||||||
part 'model/o_auth_authorize_response_dto.dart';
|
|
||||||
part 'model/o_auth_callback_dto.dart';
|
|
||||||
part 'model/o_auth_config_dto.dart';
|
|
||||||
part 'model/o_auth_token_endpoint_auth_method.dart';
|
|
||||||
part 'model/on_this_day_dto.dart';
|
|
||||||
part 'model/onboarding_dto.dart';
|
|
||||||
part 'model/onboarding_response_dto.dart';
|
|
||||||
part 'model/partner_direction.dart';
|
|
||||||
part 'model/partner_response_dto.dart';
|
|
||||||
part 'model/people_response.dart';
|
|
||||||
part 'model/people_response_dto.dart';
|
|
||||||
part 'model/people_update.dart';
|
|
||||||
part 'model/people_update_dto.dart';
|
|
||||||
part 'model/people_update_item.dart';
|
|
||||||
part 'model/permission.dart';
|
|
||||||
part 'model/person_create_dto.dart';
|
|
||||||
part 'model/person_response_dto.dart';
|
|
||||||
part 'model/person_statistics_response_dto.dart';
|
|
||||||
part 'model/person_update_dto.dart';
|
|
||||||
part 'model/person_with_faces_response_dto.dart';
|
|
||||||
part 'model/pin_code_change_dto.dart';
|
|
||||||
part 'model/pin_code_reset_dto.dart';
|
|
||||||
part 'model/pin_code_setup_dto.dart';
|
|
||||||
part 'model/places_response_dto.dart';
|
|
||||||
part 'model/purchase_response.dart';
|
|
||||||
part 'model/purchase_update.dart';
|
|
||||||
part 'model/queue_status_dto.dart';
|
|
||||||
part 'model/random_search_dto.dart';
|
|
||||||
part 'model/ratings_response.dart';
|
|
||||||
part 'model/ratings_update.dart';
|
|
||||||
part 'model/reaction_level.dart';
|
|
||||||
part 'model/reaction_type.dart';
|
|
||||||
part 'model/reverse_geocoding_state_response_dto.dart';
|
|
||||||
part 'model/search_album_response_dto.dart';
|
|
||||||
part 'model/search_asset_response_dto.dart';
|
|
||||||
part 'model/search_explore_item.dart';
|
|
||||||
part 'model/search_explore_response_dto.dart';
|
|
||||||
part 'model/search_facet_count_response_dto.dart';
|
|
||||||
part 'model/search_facet_response_dto.dart';
|
|
||||||
part 'model/search_response_dto.dart';
|
|
||||||
part 'model/search_statistics_response_dto.dart';
|
|
||||||
part 'model/search_suggestion_type.dart';
|
|
||||||
part 'model/server_about_response_dto.dart';
|
|
||||||
part 'model/server_apk_links_dto.dart';
|
|
||||||
part 'model/server_config_dto.dart';
|
|
||||||
part 'model/server_features_dto.dart';
|
|
||||||
part 'model/server_media_types_response_dto.dart';
|
|
||||||
part 'model/server_ping_response.dart';
|
|
||||||
part 'model/server_stats_response_dto.dart';
|
|
||||||
part 'model/server_storage_response_dto.dart';
|
|
||||||
part 'model/server_theme_dto.dart';
|
|
||||||
part 'model/server_version_history_response_dto.dart';
|
|
||||||
part 'model/server_version_response_dto.dart';
|
|
||||||
part 'model/session_create_dto.dart';
|
|
||||||
part 'model/session_create_response_dto.dart';
|
|
||||||
part 'model/session_response_dto.dart';
|
|
||||||
part 'model/session_unlock_dto.dart';
|
|
||||||
part 'model/session_update_dto.dart';
|
|
||||||
part 'model/shared_link_create_dto.dart';
|
|
||||||
part 'model/shared_link_edit_dto.dart';
|
|
||||||
part 'model/shared_link_response_dto.dart';
|
|
||||||
part 'model/shared_link_type.dart';
|
|
||||||
part 'model/shared_links_response.dart';
|
|
||||||
part 'model/shared_links_update.dart';
|
|
||||||
part 'model/sign_up_dto.dart';
|
|
||||||
part 'model/smart_search_dto.dart';
|
|
||||||
part 'model/source_type.dart';
|
|
||||||
part 'model/stack_create_dto.dart';
|
|
||||||
part 'model/stack_response_dto.dart';
|
|
||||||
part 'model/stack_update_dto.dart';
|
|
||||||
part 'model/statistics_search_dto.dart';
|
|
||||||
part 'model/sync_ack_delete_dto.dart';
|
|
||||||
part 'model/sync_ack_dto.dart';
|
|
||||||
part 'model/sync_ack_set_dto.dart';
|
|
||||||
part 'model/sync_album_delete_v1.dart';
|
|
||||||
part 'model/sync_album_to_asset_delete_v1.dart';
|
|
||||||
part 'model/sync_album_to_asset_v1.dart';
|
|
||||||
part 'model/sync_album_user_delete_v1.dart';
|
|
||||||
part 'model/sync_album_user_v1.dart';
|
|
||||||
part 'model/sync_album_v1.dart';
|
|
||||||
part 'model/sync_asset_delete_v1.dart';
|
|
||||||
part 'model/sync_asset_exif_v1.dart';
|
|
||||||
part 'model/sync_asset_face_delete_v1.dart';
|
|
||||||
part 'model/sync_asset_face_v1.dart';
|
|
||||||
part 'model/sync_asset_v1.dart';
|
|
||||||
part 'model/sync_auth_user_v1.dart';
|
|
||||||
part 'model/sync_entity_type.dart';
|
|
||||||
part 'model/sync_memory_asset_delete_v1.dart';
|
|
||||||
part 'model/sync_memory_asset_v1.dart';
|
|
||||||
part 'model/sync_memory_delete_v1.dart';
|
|
||||||
part 'model/sync_memory_v1.dart';
|
|
||||||
part 'model/sync_partner_delete_v1.dart';
|
|
||||||
part 'model/sync_partner_v1.dart';
|
|
||||||
part 'model/sync_person_delete_v1.dart';
|
|
||||||
part 'model/sync_person_v1.dart';
|
|
||||||
part 'model/sync_request_type.dart';
|
|
||||||
part 'model/sync_stack_delete_v1.dart';
|
|
||||||
part 'model/sync_stack_v1.dart';
|
|
||||||
part 'model/sync_stream_dto.dart';
|
|
||||||
part 'model/sync_user_delete_v1.dart';
|
|
||||||
part 'model/sync_user_metadata_delete_v1.dart';
|
|
||||||
part 'model/sync_user_metadata_v1.dart';
|
|
||||||
part 'model/sync_user_v1.dart';
|
|
||||||
part 'model/system_config_backups_dto.dart';
|
|
||||||
part 'model/system_config_dto.dart';
|
|
||||||
part 'model/system_config_f_fmpeg_dto.dart';
|
|
||||||
part 'model/system_config_faces_dto.dart';
|
|
||||||
part 'model/system_config_generated_fullsize_image_dto.dart';
|
|
||||||
part 'model/system_config_generated_image_dto.dart';
|
|
||||||
part 'model/system_config_image_dto.dart';
|
|
||||||
part 'model/system_config_job_dto.dart';
|
|
||||||
part 'model/system_config_library_dto.dart';
|
|
||||||
part 'model/system_config_library_scan_dto.dart';
|
|
||||||
part 'model/system_config_library_watch_dto.dart';
|
|
||||||
part 'model/system_config_logging_dto.dart';
|
|
||||||
part 'model/system_config_machine_learning_dto.dart';
|
|
||||||
part 'model/system_config_map_dto.dart';
|
|
||||||
part 'model/system_config_metadata_dto.dart';
|
|
||||||
part 'model/system_config_new_version_check_dto.dart';
|
|
||||||
part 'model/system_config_nightly_tasks_dto.dart';
|
|
||||||
part 'model/system_config_notifications_dto.dart';
|
|
||||||
part 'model/system_config_o_auth_dto.dart';
|
|
||||||
part 'model/system_config_password_login_dto.dart';
|
|
||||||
part 'model/system_config_reverse_geocoding_dto.dart';
|
|
||||||
part 'model/system_config_server_dto.dart';
|
|
||||||
part 'model/system_config_smtp_dto.dart';
|
|
||||||
part 'model/system_config_smtp_transport_dto.dart';
|
|
||||||
part 'model/system_config_storage_template_dto.dart';
|
|
||||||
part 'model/system_config_template_emails_dto.dart';
|
|
||||||
part 'model/system_config_template_storage_option_dto.dart';
|
|
||||||
part 'model/system_config_templates_dto.dart';
|
|
||||||
part 'model/system_config_theme_dto.dart';
|
|
||||||
part 'model/system_config_trash_dto.dart';
|
|
||||||
part 'model/system_config_user_dto.dart';
|
|
||||||
part 'model/tag_bulk_assets_dto.dart';
|
|
||||||
part 'model/tag_bulk_assets_response_dto.dart';
|
|
||||||
part 'model/tag_create_dto.dart';
|
|
||||||
part 'model/tag_response_dto.dart';
|
|
||||||
part 'model/tag_update_dto.dart';
|
|
||||||
part 'model/tag_upsert_dto.dart';
|
|
||||||
part 'model/tags_response.dart';
|
|
||||||
part 'model/tags_update.dart';
|
|
||||||
part 'model/template_dto.dart';
|
|
||||||
part 'model/template_response_dto.dart';
|
|
||||||
part 'model/test_email_response_dto.dart';
|
|
||||||
part 'model/time_bucket_asset_response_dto.dart';
|
|
||||||
part 'model/time_buckets_response_dto.dart';
|
|
||||||
part 'model/tone_mapping.dart';
|
|
||||||
part 'model/transcode_hw_accel.dart';
|
|
||||||
part 'model/transcode_policy.dart';
|
|
||||||
part 'model/trash_response_dto.dart';
|
|
||||||
part 'model/update_album_dto.dart';
|
|
||||||
part 'model/update_album_user_dto.dart';
|
|
||||||
part 'model/update_asset_dto.dart';
|
|
||||||
part 'model/update_library_dto.dart';
|
|
||||||
part 'model/update_partner_dto.dart';
|
|
||||||
part 'model/usage_by_user_dto.dart';
|
|
||||||
part 'model/user_admin_create_dto.dart';
|
|
||||||
part 'model/user_admin_delete_dto.dart';
|
|
||||||
part 'model/user_admin_response_dto.dart';
|
|
||||||
part 'model/user_admin_update_dto.dart';
|
|
||||||
part 'model/user_avatar_color.dart';
|
|
||||||
part 'model/user_license.dart';
|
|
||||||
part 'model/user_metadata_key.dart';
|
|
||||||
part 'model/user_preferences_response_dto.dart';
|
|
||||||
part 'model/user_preferences_update_dto.dart';
|
|
||||||
part 'model/user_response_dto.dart';
|
|
||||||
part 'model/user_status.dart';
|
|
||||||
part 'model/user_update_me_dto.dart';
|
|
||||||
part 'model/validate_access_token_response_dto.dart';
|
|
||||||
part 'model/validate_library_dto.dart';
|
|
||||||
part 'model/validate_library_import_path_response_dto.dart';
|
|
||||||
part 'model/validate_library_response_dto.dart';
|
|
||||||
part 'model/version_check_state_response_dto.dart';
|
|
||||||
part 'model/video_codec.dart';
|
|
||||||
part 'model/video_container.dart';
|
|
||||||
|
|
||||||
|
|
||||||
/// An [ApiClient] instance that uses the default values obtained from
|
|
||||||
/// the OpenAPI specification file.
|
|
||||||
var defaultApiClient = ApiClient();
|
|
||||||
|
|
||||||
const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
|
||||||
const _dateEpochMarker = 'epoch';
|
|
||||||
const _deepEquality = DeepCollectionEquality();
|
|
||||||
final _dateFormatter = DateFormat('yyyy-MM-dd');
|
|
||||||
final _regList = RegExp(r'^List<(.*)>$');
|
|
||||||
final _regSet = RegExp(r'^Set<(.*)>$');
|
|
||||||
final _regMap = RegExp(r'^Map<String,(.*)>$');
|
|
||||||
|
|
||||||
bool _isEpochMarker(String? pattern) => pattern == _dateEpochMarker || pattern == '/$_dateEpochMarker/';
|
|
||||||
11
mobile/openapi/lib/api.dart.rej
Normal file
11
mobile/openapi/lib/api.dart.rej
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- /dev/null
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -15,6 +15,8 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:collection/collection.dart';
|
||||||
|
+import 'package:flutter/foundation.dart';
|
||||||
|
+import 'package:immich_mobile/utils/openapi_patching.dart';
|
||||||
|
import 'package:http/http.dart';
|
||||||
|
import 'package:intl/intl.dart';
|
||||||
|
import 'package:meta/meta.dart';
|
||||||
261
mobile/openapi/lib/api/activities_api.dart
generated
261
mobile/openapi/lib/api/activities_api.dart
generated
@ -1,261 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class ActivitiesApi {
|
|
||||||
ActivitiesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [ActivityCreateDto] activityCreateDto (required):
|
|
||||||
Future<Response> createActivityWithHttpInfo(ActivityCreateDto activityCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/activities';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = activityCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [ActivityCreateDto] activityCreateDto (required):
|
|
||||||
Future<ActivityResponseDto?> createActivity(ActivityCreateDto activityCreateDto,) async {
|
|
||||||
final response = await createActivityWithHttpInfo(activityCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ActivityResponseDto',) as ActivityResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteActivityWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/activities/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteActivity(String id,) async {
|
|
||||||
final response = await deleteActivityWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId (required):
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
///
|
|
||||||
/// * [ReactionLevel] level:
|
|
||||||
///
|
|
||||||
/// * [ReactionType] type:
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
Future<Response> getActivitiesWithHttpInfo(String albumId, { String? assetId, ReactionLevel? level, ReactionType? type, String? userId, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/activities';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'albumId', albumId));
|
|
||||||
if (assetId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'assetId', assetId));
|
|
||||||
}
|
|
||||||
if (level != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'level', level));
|
|
||||||
}
|
|
||||||
if (type != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
}
|
|
||||||
if (userId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'userId', userId));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId (required):
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
///
|
|
||||||
/// * [ReactionLevel] level:
|
|
||||||
///
|
|
||||||
/// * [ReactionType] type:
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
Future<List<ActivityResponseDto>?> getActivities(String albumId, { String? assetId, ReactionLevel? level, ReactionType? type, String? userId, }) async {
|
|
||||||
final response = await getActivitiesWithHttpInfo(albumId, assetId: assetId, level: level, type: type, userId: userId, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<ActivityResponseDto>') as List)
|
|
||||||
.cast<ActivityResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId (required):
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
Future<Response> getActivityStatisticsWithHttpInfo(String albumId, { String? assetId, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/activities/statistics';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'albumId', albumId));
|
|
||||||
if (assetId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'assetId', assetId));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `activity.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId (required):
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
Future<ActivityStatisticsResponseDto?> getActivityStatistics(String albumId, { String? assetId, }) async {
|
|
||||||
final response = await getActivityStatisticsWithHttpInfo(albumId, assetId: assetId, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ActivityStatisticsResponseDto',) as ActivityStatisticsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
722
mobile/openapi/lib/api/albums_api.dart
generated
722
mobile/openapi/lib/api/albums_api.dart
generated
@ -1,722 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AlbumsApi {
|
|
||||||
AlbumsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> addAssetsToAlbumWithHttpInfo(String id, BulkIdsDto bulkIdsDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<List<BulkIdResponseDto>?> addAssetsToAlbum(String id, BulkIdsDto bulkIdsDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await addAssetsToAlbumWithHttpInfo(id, bulkIdsDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AlbumsAddAssetsDto] albumsAddAssetsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> addAssetsToAlbumsWithHttpInfo(AlbumsAddAssetsDto albumsAddAssetsDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/assets';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = albumsAddAssetsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AlbumsAddAssetsDto] albumsAddAssetsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<AlbumsAddAssetsResponseDto?> addAssetsToAlbums(AlbumsAddAssetsDto albumsAddAssetsDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await addAssetsToAlbumsWithHttpInfo(albumsAddAssetsDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumsAddAssetsResponseDto',) as AlbumsAddAssetsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AddUsersDto] addUsersDto (required):
|
|
||||||
Future<Response> addUsersToAlbumWithHttpInfo(String id, AddUsersDto addUsersDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}/users'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = addUsersDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AddUsersDto] addUsersDto (required):
|
|
||||||
Future<AlbumResponseDto?> addUsersToAlbum(String id, AddUsersDto addUsersDto,) async {
|
|
||||||
final response = await addUsersToAlbumWithHttpInfo(id, addUsersDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumResponseDto',) as AlbumResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [CreateAlbumDto] createAlbumDto (required):
|
|
||||||
Future<Response> createAlbumWithHttpInfo(CreateAlbumDto createAlbumDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = createAlbumDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [CreateAlbumDto] createAlbumDto (required):
|
|
||||||
Future<AlbumResponseDto?> createAlbum(CreateAlbumDto createAlbumDto,) async {
|
|
||||||
final response = await createAlbumWithHttpInfo(createAlbumDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumResponseDto',) as AlbumResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteAlbumWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteAlbum(String id,) async {
|
|
||||||
final response = await deleteAlbumWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [bool] withoutAssets:
|
|
||||||
Future<Response> getAlbumInfoWithHttpInfo(String id, { String? key, String? slug, bool? withoutAssets, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
if (withoutAssets != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withoutAssets', withoutAssets));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [bool] withoutAssets:
|
|
||||||
Future<AlbumResponseDto?> getAlbumInfo(String id, { String? key, String? slug, bool? withoutAssets, }) async {
|
|
||||||
final response = await getAlbumInfoWithHttpInfo(id, key: key, slug: slug, withoutAssets: withoutAssets, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumResponseDto',) as AlbumResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAlbumStatisticsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/statistics';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.statistics` permission.
|
|
||||||
Future<AlbumStatisticsResponseDto?> getAlbumStatistics() async {
|
|
||||||
final response = await getAlbumStatisticsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumStatisticsResponseDto',) as AlbumStatisticsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
/// Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
|
|
||||||
///
|
|
||||||
/// * [bool] shared:
|
|
||||||
Future<Response> getAllAlbumsWithHttpInfo({ String? assetId, bool? shared, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (assetId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'assetId', assetId));
|
|
||||||
}
|
|
||||||
if (shared != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'shared', shared));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] assetId:
|
|
||||||
/// Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
|
|
||||||
///
|
|
||||||
/// * [bool] shared:
|
|
||||||
Future<List<AlbumResponseDto>?> getAllAlbums({ String? assetId, bool? shared, }) async {
|
|
||||||
final response = await getAllAlbumsWithHttpInfo( assetId: assetId, shared: shared, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AlbumResponseDto>') as List)
|
|
||||||
.cast<AlbumResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> removeAssetFromAlbumWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumAsset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> removeAssetFromAlbum(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await removeAssetFromAlbumWithHttpInfo(id, bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] userId (required):
|
|
||||||
Future<Response> removeUserFromAlbumWithHttpInfo(String id, String userId,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}/user/{userId}'
|
|
||||||
.replaceAll('{id}', id)
|
|
||||||
.replaceAll('{userId}', userId);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] userId (required):
|
|
||||||
Future<void> removeUserFromAlbum(String id, String userId,) async {
|
|
||||||
final response = await removeUserFromAlbumWithHttpInfo(id, userId,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateAlbumDto] updateAlbumDto (required):
|
|
||||||
Future<Response> updateAlbumInfoWithHttpInfo(String id, UpdateAlbumDto updateAlbumDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = updateAlbumDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PATCH',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `album.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateAlbumDto] updateAlbumDto (required):
|
|
||||||
Future<AlbumResponseDto?> updateAlbumInfo(String id, UpdateAlbumDto updateAlbumDto,) async {
|
|
||||||
final response = await updateAlbumInfoWithHttpInfo(id, updateAlbumDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AlbumResponseDto',) as AlbumResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] userId (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateAlbumUserDto] updateAlbumUserDto (required):
|
|
||||||
Future<Response> updateAlbumUserWithHttpInfo(String id, String userId, UpdateAlbumUserDto updateAlbumUserDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/albums/{id}/user/{userId}'
|
|
||||||
.replaceAll('{id}', id)
|
|
||||||
.replaceAll('{userId}', userId);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = updateAlbumUserDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `albumUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] userId (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateAlbumUserDto] updateAlbumUserDto (required):
|
|
||||||
Future<void> updateAlbumUser(String id, String userId, UpdateAlbumUserDto updateAlbumUserDto,) async {
|
|
||||||
final response = await updateAlbumUserWithHttpInfo(id, userId, updateAlbumUserDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
313
mobile/openapi/lib/api/api_keys_api.dart
generated
313
mobile/openapi/lib/api/api_keys_api.dart
generated
@ -1,313 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class APIKeysApi {
|
|
||||||
APIKeysApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [APIKeyCreateDto] aPIKeyCreateDto (required):
|
|
||||||
Future<Response> createApiKeyWithHttpInfo(APIKeyCreateDto aPIKeyCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = aPIKeyCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [APIKeyCreateDto] aPIKeyCreateDto (required):
|
|
||||||
Future<APIKeyCreateResponseDto?> createApiKey(APIKeyCreateDto aPIKeyCreateDto,) async {
|
|
||||||
final response = await createApiKeyWithHttpInfo(aPIKeyCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIKeyCreateResponseDto',) as APIKeyCreateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteApiKeyWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteApiKey(String id,) async {
|
|
||||||
final response = await deleteApiKeyWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getApiKeyWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<APIKeyResponseDto?> getApiKey(String id,) async {
|
|
||||||
final response = await getApiKeyWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIKeyResponseDto',) as APIKeyResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getApiKeysWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.read` permission.
|
|
||||||
Future<List<APIKeyResponseDto>?> getApiKeys() async {
|
|
||||||
final response = await getApiKeysWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<APIKeyResponseDto>') as List)
|
|
||||||
.cast<APIKeyResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /api-keys/me' operation and returns the [Response].
|
|
||||||
Future<Response> getMyApiKeyWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys/me';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<APIKeyResponseDto?> getMyApiKey() async {
|
|
||||||
final response = await getMyApiKeyWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIKeyResponseDto',) as APIKeyResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [APIKeyUpdateDto] aPIKeyUpdateDto (required):
|
|
||||||
Future<Response> updateApiKeyWithHttpInfo(String id, APIKeyUpdateDto aPIKeyUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/api-keys/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = aPIKeyUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `apiKey.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [APIKeyUpdateDto] aPIKeyUpdateDto (required):
|
|
||||||
Future<APIKeyResponseDto?> updateApiKey(String id, APIKeyUpdateDto aPIKeyUpdateDto,) async {
|
|
||||||
final response = await updateApiKeyWithHttpInfo(id, aPIKeyUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'APIKeyResponseDto',) as APIKeyResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
1084
mobile/openapi/lib/api/assets_api.dart
generated
1084
mobile/openapi/lib/api/assets_api.dart
generated
File diff suppressed because it is too large
Load Diff
54
mobile/openapi/lib/api/auth_admin_api.dart
generated
54
mobile/openapi/lib/api/auth_admin_api.dart
generated
@ -1,54 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AuthAdminApi {
|
|
||||||
AuthAdminApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminAuth.unlinkAll` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> unlinkAllOAuthAccountsAdminWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/auth/unlink-all';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminAuth.unlinkAll` permission.
|
|
||||||
Future<void> unlinkAllOAuthAccountsAdmin() async {
|
|
||||||
final response = await unlinkAllOAuthAccountsAdminWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
491
mobile/openapi/lib/api/authentication_api.dart
generated
491
mobile/openapi/lib/api/authentication_api.dart
generated
@ -1,491 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AuthenticationApi {
|
|
||||||
AuthenticationApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `auth.changePassword` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [ChangePasswordDto] changePasswordDto (required):
|
|
||||||
Future<Response> changePasswordWithHttpInfo(ChangePasswordDto changePasswordDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/change-password';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = changePasswordDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `auth.changePassword` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [ChangePasswordDto] changePasswordDto (required):
|
|
||||||
Future<UserAdminResponseDto?> changePassword(ChangePasswordDto changePasswordDto,) async {
|
|
||||||
final response = await changePasswordWithHttpInfo(changePasswordDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeChangeDto] pinCodeChangeDto (required):
|
|
||||||
Future<Response> changePinCodeWithHttpInfo(PinCodeChangeDto pinCodeChangeDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/pin-code';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = pinCodeChangeDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeChangeDto] pinCodeChangeDto (required):
|
|
||||||
Future<void> changePinCode(PinCodeChangeDto pinCodeChangeDto,) async {
|
|
||||||
final response = await changePinCodeWithHttpInfo(pinCodeChangeDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /auth/status' operation and returns the [Response].
|
|
||||||
Future<Response> getAuthStatusWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/status';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<AuthStatusResponseDto?> getAuthStatus() async {
|
|
||||||
final response = await getAuthStatusWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AuthStatusResponseDto',) as AuthStatusResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/session/lock' operation and returns the [Response].
|
|
||||||
Future<Response> lockAuthSessionWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/session/lock';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> lockAuthSession() async {
|
|
||||||
final response = await lockAuthSessionWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/login' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LoginCredentialDto] loginCredentialDto (required):
|
|
||||||
Future<Response> loginWithHttpInfo(LoginCredentialDto loginCredentialDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/login';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = loginCredentialDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LoginCredentialDto] loginCredentialDto (required):
|
|
||||||
Future<LoginResponseDto?> login(LoginCredentialDto loginCredentialDto,) async {
|
|
||||||
final response = await loginWithHttpInfo(loginCredentialDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LoginResponseDto',) as LoginResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/logout' operation and returns the [Response].
|
|
||||||
Future<Response> logoutWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/logout';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<LogoutResponseDto?> logout() async {
|
|
||||||
final response = await logoutWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LogoutResponseDto',) as LogoutResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeResetDto] pinCodeResetDto (required):
|
|
||||||
Future<Response> resetPinCodeWithHttpInfo(PinCodeResetDto pinCodeResetDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/pin-code';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = pinCodeResetDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeResetDto] pinCodeResetDto (required):
|
|
||||||
Future<void> resetPinCode(PinCodeResetDto pinCodeResetDto,) async {
|
|
||||||
final response = await resetPinCodeWithHttpInfo(pinCodeResetDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeSetupDto] pinCodeSetupDto (required):
|
|
||||||
Future<Response> setupPinCodeWithHttpInfo(PinCodeSetupDto pinCodeSetupDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/pin-code';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = pinCodeSetupDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `pinCode.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PinCodeSetupDto] pinCodeSetupDto (required):
|
|
||||||
Future<void> setupPinCode(PinCodeSetupDto pinCodeSetupDto,) async {
|
|
||||||
final response = await setupPinCodeWithHttpInfo(pinCodeSetupDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/admin-sign-up' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SignUpDto] signUpDto (required):
|
|
||||||
Future<Response> signUpAdminWithHttpInfo(SignUpDto signUpDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/admin-sign-up';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = signUpDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SignUpDto] signUpDto (required):
|
|
||||||
Future<UserAdminResponseDto?> signUpAdmin(SignUpDto signUpDto,) async {
|
|
||||||
final response = await signUpAdminWithHttpInfo(signUpDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/session/unlock' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SessionUnlockDto] sessionUnlockDto (required):
|
|
||||||
Future<Response> unlockAuthSessionWithHttpInfo(SessionUnlockDto sessionUnlockDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/session/unlock';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = sessionUnlockDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SessionUnlockDto] sessionUnlockDto (required):
|
|
||||||
Future<void> unlockAuthSession(SessionUnlockDto sessionUnlockDto,) async {
|
|
||||||
final response = await unlockAuthSessionWithHttpInfo(sessionUnlockDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /auth/validateToken' operation and returns the [Response].
|
|
||||||
Future<Response> validateAccessTokenWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/auth/validateToken';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ValidateAccessTokenResponseDto?> validateAccessToken() async {
|
|
||||||
final response = await validateAccessTokenWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ValidateAccessTokenResponseDto',) as ValidateAccessTokenResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
77
mobile/openapi/lib/api/deprecated_api.dart
generated
77
mobile/openapi/lib/api/deprecated_api.dart
generated
@ -1,77 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class DeprecatedApi {
|
|
||||||
DeprecatedApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This property was deprecated in v1.116.0. This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [num] count:
|
|
||||||
Future<Response> getRandomWithHttpInfo({ num? count, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/assets/random';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (count != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'count', count));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This property was deprecated in v1.116.0. This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [num] count:
|
|
||||||
Future<List<AssetResponseDto>?> getRandom({ num? count, }) async {
|
|
||||||
final response = await getRandomWithHttpInfo( count: count, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
152
mobile/openapi/lib/api/download_api.dart
generated
152
mobile/openapi/lib/api/download_api.dart
generated
@ -1,152 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class DownloadApi {
|
|
||||||
DownloadApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.download` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> downloadArchiveWithHttpInfo(AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/download/archive';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.download` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<MultipartFile?> downloadArchive(AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await downloadArchiveWithHttpInfo(assetIdsDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.download` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DownloadInfoDto] downloadInfoDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> getDownloadInfoWithHttpInfo(DownloadInfoDto downloadInfoDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/download/info';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = downloadInfoDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.download` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DownloadInfoDto] downloadInfoDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<DownloadResponseDto?> getDownloadInfo(DownloadInfoDto downloadInfoDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await getDownloadInfoWithHttpInfo(downloadInfoDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DownloadResponseDto',) as DownloadResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
154
mobile/openapi/lib/api/duplicates_api.dart
generated
154
mobile/openapi/lib/api/duplicates_api.dart
generated
@ -1,154 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class DuplicatesApi {
|
|
||||||
DuplicatesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteDuplicateWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/duplicates/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteDuplicate(String id,) async {
|
|
||||||
final response = await deleteDuplicateWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> deleteDuplicatesWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/duplicates';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<void> deleteDuplicates(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await deleteDuplicatesWithHttpInfo(bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAssetDuplicatesWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/duplicates';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `duplicate.read` permission.
|
|
||||||
Future<List<DuplicateResponseDto>?> getAssetDuplicates() async {
|
|
||||||
final response = await getAssetDuplicatesWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<DuplicateResponseDto>') as List)
|
|
||||||
.cast<DuplicateResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
225
mobile/openapi/lib/api/faces_api.dart
generated
225
mobile/openapi/lib/api/faces_api.dart
generated
@ -1,225 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class FacesApi {
|
|
||||||
FacesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetFaceCreateDto] assetFaceCreateDto (required):
|
|
||||||
Future<Response> createFaceWithHttpInfo(AssetFaceCreateDto assetFaceCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/faces';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetFaceCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetFaceCreateDto] assetFaceCreateDto (required):
|
|
||||||
Future<void> createFace(AssetFaceCreateDto assetFaceCreateDto,) async {
|
|
||||||
final response = await createFaceWithHttpInfo(assetFaceCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetFaceDeleteDto] assetFaceDeleteDto (required):
|
|
||||||
Future<Response> deleteFaceWithHttpInfo(String id, AssetFaceDeleteDto assetFaceDeleteDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/faces/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetFaceDeleteDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetFaceDeleteDto] assetFaceDeleteDto (required):
|
|
||||||
Future<void> deleteFace(String id, AssetFaceDeleteDto assetFaceDeleteDto,) async {
|
|
||||||
final response = await deleteFaceWithHttpInfo(id, assetFaceDeleteDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getFacesWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/faces';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'id', id));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<List<AssetFaceResponseDto>?> getFaces(String id,) async {
|
|
||||||
final response = await getFacesWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetFaceResponseDto>') as List)
|
|
||||||
.cast<AssetFaceResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [FaceDto] faceDto (required):
|
|
||||||
Future<Response> reassignFacesByIdWithHttpInfo(String id, FaceDto faceDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/faces/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = faceDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `face.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [FaceDto] faceDto (required):
|
|
||||||
Future<PersonResponseDto?> reassignFacesById(String id, FaceDto faceDto,) async {
|
|
||||||
final response = await reassignFacesByIdWithHttpInfo(id, faceDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PersonResponseDto',) as PersonResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
163
mobile/openapi/lib/api/jobs_api.dart
generated
163
mobile/openapi/lib/api/jobs_api.dart
generated
@ -1,163 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class JobsApi {
|
|
||||||
JobsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [JobCreateDto] jobCreateDto (required):
|
|
||||||
Future<Response> createJobWithHttpInfo(JobCreateDto jobCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/jobs';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = jobCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [JobCreateDto] jobCreateDto (required):
|
|
||||||
Future<void> createJob(JobCreateDto jobCreateDto,) async {
|
|
||||||
final response = await createJobWithHttpInfo(jobCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAllJobsStatusWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/jobs';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.read` permission.
|
|
||||||
Future<AllJobStatusResponseDto?> getAllJobsStatus() async {
|
|
||||||
final response = await getAllJobsStatusWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AllJobStatusResponseDto',) as AllJobStatusResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [JobName] id (required):
|
|
||||||
///
|
|
||||||
/// * [JobCommandDto] jobCommandDto (required):
|
|
||||||
Future<Response> sendJobCommandWithHttpInfo(JobName id, JobCommandDto jobCommandDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/jobs/{id}'
|
|
||||||
.replaceAll('{id}', id.toString());
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = jobCommandDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `job.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [JobName] id (required):
|
|
||||||
///
|
|
||||||
/// * [JobCommandDto] jobCommandDto (required):
|
|
||||||
Future<JobStatusDto?> sendJobCommand(JobName id, JobCommandDto jobCommandDto,) async {
|
|
||||||
final response = await sendJobCommandWithHttpInfo(id, jobCommandDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'JobStatusDto',) as JobStatusDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
422
mobile/openapi/lib/api/libraries_api.dart
generated
422
mobile/openapi/lib/api/libraries_api.dart
generated
@ -1,422 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class LibrariesApi {
|
|
||||||
LibrariesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [CreateLibraryDto] createLibraryDto (required):
|
|
||||||
Future<Response> createLibraryWithHttpInfo(CreateLibraryDto createLibraryDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = createLibraryDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [CreateLibraryDto] createLibraryDto (required):
|
|
||||||
Future<LibraryResponseDto?> createLibrary(CreateLibraryDto createLibraryDto,) async {
|
|
||||||
final response = await createLibraryWithHttpInfo(createLibraryDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LibraryResponseDto',) as LibraryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteLibraryWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteLibrary(String id,) async {
|
|
||||||
final response = await deleteLibraryWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAllLibrariesWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.read` permission.
|
|
||||||
Future<List<LibraryResponseDto>?> getAllLibraries() async {
|
|
||||||
final response = await getAllLibrariesWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<LibraryResponseDto>') as List)
|
|
||||||
.cast<LibraryResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getLibraryWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<LibraryResponseDto?> getLibrary(String id,) async {
|
|
||||||
final response = await getLibraryWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LibraryResponseDto',) as LibraryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getLibraryStatisticsWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}/statistics'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<LibraryStatsResponseDto?> getLibraryStatistics(String id,) async {
|
|
||||||
final response = await getLibraryStatisticsWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LibraryStatsResponseDto',) as LibraryStatsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> scanLibraryWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}/scan'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> scanLibrary(String id,) async {
|
|
||||||
final response = await scanLibraryWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateLibraryDto] updateLibraryDto (required):
|
|
||||||
Future<Response> updateLibraryWithHttpInfo(String id, UpdateLibraryDto updateLibraryDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = updateLibraryDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `library.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdateLibraryDto] updateLibraryDto (required):
|
|
||||||
Future<LibraryResponseDto?> updateLibrary(String id, UpdateLibraryDto updateLibraryDto,) async {
|
|
||||||
final response = await updateLibraryWithHttpInfo(id, updateLibraryDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LibraryResponseDto',) as LibraryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /libraries/{id}/validate' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [ValidateLibraryDto] validateLibraryDto (required):
|
|
||||||
Future<Response> validateWithHttpInfo(String id, ValidateLibraryDto validateLibraryDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/libraries/{id}/validate'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = validateLibraryDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [ValidateLibraryDto] validateLibraryDto (required):
|
|
||||||
Future<ValidateLibraryResponseDto?> validate(String id, ValidateLibraryDto validateLibraryDto,) async {
|
|
||||||
final response = await validateWithHttpInfo(id, validateLibraryDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ValidateLibraryResponseDto',) as ValidateLibraryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
164
mobile/openapi/lib/api/map_api.dart
generated
164
mobile/openapi/lib/api/map_api.dart
generated
@ -1,164 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class MapApi {
|
|
||||||
MapApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /map/markers' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [bool] isArchived:
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [DateTime] fileCreatedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] fileCreatedBefore:
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
///
|
|
||||||
/// * [bool] withSharedAlbums:
|
|
||||||
Future<Response> getMapMarkersWithHttpInfo({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, bool? withPartners, bool? withSharedAlbums, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/map/markers';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (isArchived != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
|
|
||||||
}
|
|
||||||
if (isFavorite != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
|
|
||||||
}
|
|
||||||
if (fileCreatedAfter != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'fileCreatedAfter', fileCreatedAfter));
|
|
||||||
}
|
|
||||||
if (fileCreatedBefore != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'fileCreatedBefore', fileCreatedBefore));
|
|
||||||
}
|
|
||||||
if (withPartners != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withPartners', withPartners));
|
|
||||||
}
|
|
||||||
if (withSharedAlbums != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withSharedAlbums', withSharedAlbums));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [bool] isArchived:
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [DateTime] fileCreatedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] fileCreatedBefore:
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
///
|
|
||||||
/// * [bool] withSharedAlbums:
|
|
||||||
Future<List<MapMarkerResponseDto>?> getMapMarkers({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, bool? withPartners, bool? withSharedAlbums, }) async {
|
|
||||||
final response = await getMapMarkersWithHttpInfo( isArchived: isArchived, isFavorite: isFavorite, fileCreatedAfter: fileCreatedAfter, fileCreatedBefore: fileCreatedBefore, withPartners: withPartners, withSharedAlbums: withSharedAlbums, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<MapMarkerResponseDto>') as List)
|
|
||||||
.cast<MapMarkerResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /map/reverse-geocode' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [double] lat (required):
|
|
||||||
///
|
|
||||||
/// * [double] lon (required):
|
|
||||||
Future<Response> reverseGeocodeWithHttpInfo(double lat, double lon,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/map/reverse-geocode';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'lat', lat));
|
|
||||||
queryParams.addAll(_queryParams('', 'lon', lon));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [double] lat (required):
|
|
||||||
///
|
|
||||||
/// * [double] lon (required):
|
|
||||||
Future<List<MapReverseGeocodeResponseDto>?> reverseGeocode(double lat, double lon,) async {
|
|
||||||
final response = await reverseGeocodeWithHttpInfo(lat, lon,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<MapReverseGeocodeResponseDto>') as List)
|
|
||||||
.cast<MapReverseGeocodeResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
502
mobile/openapi/lib/api/memories_api.dart
generated
502
mobile/openapi/lib/api/memories_api.dart
generated
@ -1,502 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class MemoriesApi {
|
|
||||||
MemoriesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `memoryAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> addMemoryAssetsWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memoryAsset.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> addMemoryAssets(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await addMemoryAssetsWithHttpInfo(id, bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MemoryCreateDto] memoryCreateDto (required):
|
|
||||||
Future<Response> createMemoryWithHttpInfo(MemoryCreateDto memoryCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = memoryCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MemoryCreateDto] memoryCreateDto (required):
|
|
||||||
Future<MemoryResponseDto?> createMemory(MemoryCreateDto memoryCreateDto,) async {
|
|
||||||
final response = await createMemoryWithHttpInfo(memoryCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MemoryResponseDto',) as MemoryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteMemoryWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteMemory(String id,) async {
|
|
||||||
final response = await deleteMemoryWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getMemoryWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<MemoryResponseDto?> getMemory(String id,) async {
|
|
||||||
final response = await getMemoryWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MemoryResponseDto',) as MemoryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DateTime] for_:
|
|
||||||
///
|
|
||||||
/// * [bool] isSaved:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [MemoryType] type:
|
|
||||||
Future<Response> memoriesStatisticsWithHttpInfo({ DateTime? for_, bool? isSaved, bool? isTrashed, MemoryType? type, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/statistics';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (for_ != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'for', for_));
|
|
||||||
}
|
|
||||||
if (isSaved != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isSaved', isSaved));
|
|
||||||
}
|
|
||||||
if (isTrashed != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
|
|
||||||
}
|
|
||||||
if (type != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DateTime] for_:
|
|
||||||
///
|
|
||||||
/// * [bool] isSaved:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [MemoryType] type:
|
|
||||||
Future<MemoryStatisticsResponseDto?> memoriesStatistics({ DateTime? for_, bool? isSaved, bool? isTrashed, MemoryType? type, }) async {
|
|
||||||
final response = await memoriesStatisticsWithHttpInfo( for_: for_, isSaved: isSaved, isTrashed: isTrashed, type: type, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MemoryStatisticsResponseDto',) as MemoryStatisticsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memoryAsset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> removeMemoryAssetsWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memoryAsset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> removeMemoryAssets(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await removeMemoryAssetsWithHttpInfo(id, bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DateTime] for_:
|
|
||||||
///
|
|
||||||
/// * [bool] isSaved:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [MemoryType] type:
|
|
||||||
Future<Response> searchMemoriesWithHttpInfo({ DateTime? for_, bool? isSaved, bool? isTrashed, MemoryType? type, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (for_ != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'for', for_));
|
|
||||||
}
|
|
||||||
if (isSaved != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isSaved', isSaved));
|
|
||||||
}
|
|
||||||
if (isTrashed != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
|
|
||||||
}
|
|
||||||
if (type != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DateTime] for_:
|
|
||||||
///
|
|
||||||
/// * [bool] isSaved:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [MemoryType] type:
|
|
||||||
Future<List<MemoryResponseDto>?> searchMemories({ DateTime? for_, bool? isSaved, bool? isTrashed, MemoryType? type, }) async {
|
|
||||||
final response = await searchMemoriesWithHttpInfo( for_: for_, isSaved: isSaved, isTrashed: isTrashed, type: type, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<MemoryResponseDto>') as List)
|
|
||||||
.cast<MemoryResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [MemoryUpdateDto] memoryUpdateDto (required):
|
|
||||||
Future<Response> updateMemoryWithHttpInfo(String id, MemoryUpdateDto memoryUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/memories/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = memoryUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `memory.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [MemoryUpdateDto] memoryUpdateDto (required):
|
|
||||||
Future<MemoryResponseDto?> updateMemory(String id, MemoryUpdateDto memoryUpdateDto,) async {
|
|
||||||
final response = await updateMemoryWithHttpInfo(id, memoryUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MemoryResponseDto',) as MemoryResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
164
mobile/openapi/lib/api/notifications_admin_api.dart
generated
164
mobile/openapi/lib/api/notifications_admin_api.dart
generated
@ -1,164 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class NotificationsAdminApi {
|
|
||||||
NotificationsAdminApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /admin/notifications' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationCreateDto] notificationCreateDto (required):
|
|
||||||
Future<Response> createNotificationWithHttpInfo(NotificationCreateDto notificationCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/notifications';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = notificationCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationCreateDto] notificationCreateDto (required):
|
|
||||||
Future<NotificationDto?> createNotification(NotificationCreateDto notificationCreateDto,) async {
|
|
||||||
final response = await createNotificationWithHttpInfo(notificationCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'NotificationDto',) as NotificationDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /admin/notifications/templates/{name}' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
///
|
|
||||||
/// * [TemplateDto] templateDto (required):
|
|
||||||
Future<Response> getNotificationTemplateAdminWithHttpInfo(String name, TemplateDto templateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/notifications/templates/{name}'
|
|
||||||
.replaceAll('{name}', name);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = templateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
///
|
|
||||||
/// * [TemplateDto] templateDto (required):
|
|
||||||
Future<TemplateResponseDto?> getNotificationTemplateAdmin(String name, TemplateDto templateDto,) async {
|
|
||||||
final response = await getNotificationTemplateAdminWithHttpInfo(name, templateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TemplateResponseDto',) as TemplateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /admin/notifications/test-email' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SystemConfigSmtpDto] systemConfigSmtpDto (required):
|
|
||||||
Future<Response> sendTestEmailAdminWithHttpInfo(SystemConfigSmtpDto systemConfigSmtpDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/notifications/test-email';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = systemConfigSmtpDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SystemConfigSmtpDto] systemConfigSmtpDto (required):
|
|
||||||
Future<TestEmailResponseDto?> sendTestEmailAdmin(SystemConfigSmtpDto systemConfigSmtpDto,) async {
|
|
||||||
final response = await sendTestEmailAdminWithHttpInfo(systemConfigSmtpDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TestEmailResponseDto',) as TestEmailResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
341
mobile/openapi/lib/api/notifications_api.dart
generated
341
mobile/openapi/lib/api/notifications_api.dart
generated
@ -1,341 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class NotificationsApi {
|
|
||||||
NotificationsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteNotificationWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteNotification(String id,) async {
|
|
||||||
final response = await deleteNotificationWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationDeleteAllDto] notificationDeleteAllDto (required):
|
|
||||||
Future<Response> deleteNotificationsWithHttpInfo(NotificationDeleteAllDto notificationDeleteAllDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = notificationDeleteAllDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationDeleteAllDto] notificationDeleteAllDto (required):
|
|
||||||
Future<void> deleteNotifications(NotificationDeleteAllDto notificationDeleteAllDto,) async {
|
|
||||||
final response = await deleteNotificationsWithHttpInfo(notificationDeleteAllDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getNotificationWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<NotificationDto?> getNotification(String id,) async {
|
|
||||||
final response = await getNotificationWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'NotificationDto',) as NotificationDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id:
|
|
||||||
///
|
|
||||||
/// * [NotificationLevel] level:
|
|
||||||
///
|
|
||||||
/// * [NotificationType] type:
|
|
||||||
///
|
|
||||||
/// * [bool] unread:
|
|
||||||
Future<Response> getNotificationsWithHttpInfo({ String? id, NotificationLevel? level, NotificationType? type, bool? unread, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (id != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'id', id));
|
|
||||||
}
|
|
||||||
if (level != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'level', level));
|
|
||||||
}
|
|
||||||
if (type != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
}
|
|
||||||
if (unread != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'unread', unread));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id:
|
|
||||||
///
|
|
||||||
/// * [NotificationLevel] level:
|
|
||||||
///
|
|
||||||
/// * [NotificationType] type:
|
|
||||||
///
|
|
||||||
/// * [bool] unread:
|
|
||||||
Future<List<NotificationDto>?> getNotifications({ String? id, NotificationLevel? level, NotificationType? type, bool? unread, }) async {
|
|
||||||
final response = await getNotificationsWithHttpInfo( id: id, level: level, type: type, unread: unread, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<NotificationDto>') as List)
|
|
||||||
.cast<NotificationDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [NotificationUpdateDto] notificationUpdateDto (required):
|
|
||||||
Future<Response> updateNotificationWithHttpInfo(String id, NotificationUpdateDto notificationUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = notificationUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [NotificationUpdateDto] notificationUpdateDto (required):
|
|
||||||
Future<NotificationDto?> updateNotification(String id, NotificationUpdateDto notificationUpdateDto,) async {
|
|
||||||
final response = await updateNotificationWithHttpInfo(id, notificationUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'NotificationDto',) as NotificationDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationUpdateAllDto] notificationUpdateAllDto (required):
|
|
||||||
Future<Response> updateNotificationsWithHttpInfo(NotificationUpdateAllDto notificationUpdateAllDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/notifications';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = notificationUpdateAllDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `notification.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [NotificationUpdateAllDto] notificationUpdateAllDto (required):
|
|
||||||
Future<void> updateNotifications(NotificationUpdateAllDto notificationUpdateAllDto,) async {
|
|
||||||
final response = await updateNotificationsWithHttpInfo(notificationUpdateAllDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
233
mobile/openapi/lib/api/o_auth_api.dart
generated
233
mobile/openapi/lib/api/o_auth_api.dart
generated
@ -1,233 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class OAuthApi {
|
|
||||||
OAuthApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /oauth/callback' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
|
|
||||||
Future<Response> finishOAuthWithHttpInfo(OAuthCallbackDto oAuthCallbackDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/oauth/callback';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = oAuthCallbackDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
|
|
||||||
Future<LoginResponseDto?> finishOAuth(OAuthCallbackDto oAuthCallbackDto,) async {
|
|
||||||
final response = await finishOAuthWithHttpInfo(oAuthCallbackDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LoginResponseDto',) as LoginResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /oauth/link' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
|
|
||||||
Future<Response> linkOAuthAccountWithHttpInfo(OAuthCallbackDto oAuthCallbackDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/oauth/link';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = oAuthCallbackDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
|
|
||||||
Future<UserAdminResponseDto?> linkOAuthAccount(OAuthCallbackDto oAuthCallbackDto,) async {
|
|
||||||
final response = await linkOAuthAccountWithHttpInfo(oAuthCallbackDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /oauth/mobile-redirect' operation and returns the [Response].
|
|
||||||
Future<Response> redirectOAuthToMobileWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/oauth/mobile-redirect';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> redirectOAuthToMobile() async {
|
|
||||||
final response = await redirectOAuthToMobileWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /oauth/authorize' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthConfigDto] oAuthConfigDto (required):
|
|
||||||
Future<Response> startOAuthWithHttpInfo(OAuthConfigDto oAuthConfigDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/oauth/authorize';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = oAuthConfigDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthConfigDto] oAuthConfigDto (required):
|
|
||||||
Future<OAuthAuthorizeResponseDto?> startOAuth(OAuthConfigDto oAuthConfigDto,) async {
|
|
||||||
final response = await startOAuthWithHttpInfo(oAuthConfigDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'OAuthAuthorizeResponseDto',) as OAuthAuthorizeResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /oauth/unlink' operation and returns the [Response].
|
|
||||||
Future<Response> unlinkOAuthAccountWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/oauth/unlink';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<UserAdminResponseDto?> unlinkOAuthAccount() async {
|
|
||||||
final response = await unlinkOAuthAccountWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
230
mobile/openapi/lib/api/partners_api.dart
generated
230
mobile/openapi/lib/api/partners_api.dart
generated
@ -1,230 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class PartnersApi {
|
|
||||||
PartnersApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> createPartnerWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/partners/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<PartnerResponseDto?> createPartner(String id,) async {
|
|
||||||
final response = await createPartnerWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PartnerResponseDto',) as PartnerResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PartnerDirection] direction (required):
|
|
||||||
Future<Response> getPartnersWithHttpInfo(PartnerDirection direction,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/partners';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'direction', direction));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PartnerDirection] direction (required):
|
|
||||||
Future<List<PartnerResponseDto>?> getPartners(PartnerDirection direction,) async {
|
|
||||||
final response = await getPartnersWithHttpInfo(direction,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<PartnerResponseDto>') as List)
|
|
||||||
.cast<PartnerResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> removePartnerWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/partners/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> removePartner(String id,) async {
|
|
||||||
final response = await removePartnerWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdatePartnerDto] updatePartnerDto (required):
|
|
||||||
Future<Response> updatePartnerWithHttpInfo(String id, UpdatePartnerDto updatePartnerDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/partners/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = updatePartnerDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `partner.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UpdatePartnerDto] updatePartnerDto (required):
|
|
||||||
Future<PartnerResponseDto?> updatePartner(String id, UpdatePartnerDto updatePartnerDto,) async {
|
|
||||||
final response = await updatePartnerWithHttpInfo(id, updatePartnerDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PartnerResponseDto',) as PartnerResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
638
mobile/openapi/lib/api/people_api.dart
generated
638
mobile/openapi/lib/api/people_api.dart
generated
@ -1,638 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class PeopleApi {
|
|
||||||
PeopleApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PersonCreateDto] personCreateDto (required):
|
|
||||||
Future<Response> createPersonWithHttpInfo(PersonCreateDto personCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = personCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PersonCreateDto] personCreateDto (required):
|
|
||||||
Future<PersonResponseDto?> createPerson(PersonCreateDto personCreateDto,) async {
|
|
||||||
final response = await createPersonWithHttpInfo(personCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PersonResponseDto',) as PersonResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> deletePeopleWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<void> deletePeople(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await deletePeopleWithHttpInfo(bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deletePersonWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deletePerson(String id,) async {
|
|
||||||
final response = await deletePersonWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] closestAssetId:
|
|
||||||
///
|
|
||||||
/// * [String] closestPersonId:
|
|
||||||
///
|
|
||||||
/// * [num] page:
|
|
||||||
/// Page number for pagination
|
|
||||||
///
|
|
||||||
/// * [num] size:
|
|
||||||
/// Number of items per page
|
|
||||||
///
|
|
||||||
/// * [bool] withHidden:
|
|
||||||
Future<Response> getAllPeopleWithHttpInfo({ String? closestAssetId, String? closestPersonId, num? page, num? size, bool? withHidden, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (closestAssetId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'closestAssetId', closestAssetId));
|
|
||||||
}
|
|
||||||
if (closestPersonId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'closestPersonId', closestPersonId));
|
|
||||||
}
|
|
||||||
if (page != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'page', page));
|
|
||||||
}
|
|
||||||
if (size != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'size', size));
|
|
||||||
}
|
|
||||||
if (withHidden != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withHidden', withHidden));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] closestAssetId:
|
|
||||||
///
|
|
||||||
/// * [String] closestPersonId:
|
|
||||||
///
|
|
||||||
/// * [num] page:
|
|
||||||
/// Page number for pagination
|
|
||||||
///
|
|
||||||
/// * [num] size:
|
|
||||||
/// Number of items per page
|
|
||||||
///
|
|
||||||
/// * [bool] withHidden:
|
|
||||||
Future<PeopleResponseDto?> getAllPeople({ String? closestAssetId, String? closestPersonId, num? page, num? size, bool? withHidden, }) async {
|
|
||||||
final response = await getAllPeopleWithHttpInfo( closestAssetId: closestAssetId, closestPersonId: closestPersonId, page: page, size: size, withHidden: withHidden, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PeopleResponseDto',) as PeopleResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getPersonWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<PersonResponseDto?> getPerson(String id,) async {
|
|
||||||
final response = await getPersonWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PersonResponseDto',) as PersonResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getPersonStatisticsWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}/statistics'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<PersonStatisticsResponseDto?> getPersonStatistics(String id,) async {
|
|
||||||
final response = await getPersonStatisticsWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PersonStatisticsResponseDto',) as PersonStatisticsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getPersonThumbnailWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}/thumbnail'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<MultipartFile?> getPersonThumbnail(String id,) async {
|
|
||||||
final response = await getPersonThumbnailWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.merge` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [MergePersonDto] mergePersonDto (required):
|
|
||||||
Future<Response> mergePersonWithHttpInfo(String id, MergePersonDto mergePersonDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}/merge'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = mergePersonDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.merge` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [MergePersonDto] mergePersonDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> mergePerson(String id, MergePersonDto mergePersonDto,) async {
|
|
||||||
final response = await mergePersonWithHttpInfo(id, mergePersonDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.reassign` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetFaceUpdateDto] assetFaceUpdateDto (required):
|
|
||||||
Future<Response> reassignFacesWithHttpInfo(String id, AssetFaceUpdateDto assetFaceUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}/reassign'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetFaceUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.reassign` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetFaceUpdateDto] assetFaceUpdateDto (required):
|
|
||||||
Future<List<PersonResponseDto>?> reassignFaces(String id, AssetFaceUpdateDto assetFaceUpdateDto,) async {
|
|
||||||
final response = await reassignFacesWithHttpInfo(id, assetFaceUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List)
|
|
||||||
.cast<PersonResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PeopleUpdateDto] peopleUpdateDto (required):
|
|
||||||
Future<Response> updatePeopleWithHttpInfo(PeopleUpdateDto peopleUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = peopleUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [PeopleUpdateDto] peopleUpdateDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> updatePeople(PeopleUpdateDto peopleUpdateDto,) async {
|
|
||||||
final response = await updatePeopleWithHttpInfo(peopleUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [PersonUpdateDto] personUpdateDto (required):
|
|
||||||
Future<Response> updatePersonWithHttpInfo(String id, PersonUpdateDto personUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/people/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = personUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [PersonUpdateDto] personUpdateDto (required):
|
|
||||||
Future<PersonResponseDto?> updatePerson(String id, PersonUpdateDto personUpdateDto,) async {
|
|
||||||
final response = await updatePersonWithHttpInfo(id, personUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PersonResponseDto',) as PersonResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
807
mobile/openapi/lib/api/search_api.dart
generated
807
mobile/openapi/lib/api/search_api.dart
generated
@ -1,807 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SearchApi {
|
|
||||||
SearchApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAssetsByCityWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/cities';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
Future<List<AssetResponseDto>?> getAssetsByCity() async {
|
|
||||||
final response = await getAssetsByCityWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getExploreDataWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/explore';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
Future<List<SearchExploreResponseDto>?> getExploreData() async {
|
|
||||||
final response = await getExploreDataWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<SearchExploreResponseDto>') as List)
|
|
||||||
.cast<SearchExploreResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SearchSuggestionType] type (required):
|
|
||||||
///
|
|
||||||
/// * [String] country:
|
|
||||||
///
|
|
||||||
/// * [bool] includeNull:
|
|
||||||
/// This property was added in v111.0.0
|
|
||||||
///
|
|
||||||
/// * [String] make:
|
|
||||||
///
|
|
||||||
/// * [String] model:
|
|
||||||
///
|
|
||||||
/// * [String] state:
|
|
||||||
Future<Response> getSearchSuggestionsWithHttpInfo(SearchSuggestionType type, { String? country, bool? includeNull, String? make, String? model, String? state, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/suggestions';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (country != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'country', country));
|
|
||||||
}
|
|
||||||
if (includeNull != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'includeNull', includeNull));
|
|
||||||
}
|
|
||||||
if (make != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'make', make));
|
|
||||||
}
|
|
||||||
if (model != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'model', model));
|
|
||||||
}
|
|
||||||
if (state != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'state', state));
|
|
||||||
}
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SearchSuggestionType] type (required):
|
|
||||||
///
|
|
||||||
/// * [String] country:
|
|
||||||
///
|
|
||||||
/// * [bool] includeNull:
|
|
||||||
/// This property was added in v111.0.0
|
|
||||||
///
|
|
||||||
/// * [String] make:
|
|
||||||
///
|
|
||||||
/// * [String] model:
|
|
||||||
///
|
|
||||||
/// * [String] state:
|
|
||||||
Future<List<String>?> getSearchSuggestions(SearchSuggestionType type, { String? country, bool? includeNull, String? make, String? model, String? state, }) async {
|
|
||||||
final response = await getSearchSuggestionsWithHttpInfo(type, country: country, includeNull: includeNull, make: make, model: model, state: state, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
|
|
||||||
.cast<String>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [StatisticsSearchDto] statisticsSearchDto (required):
|
|
||||||
Future<Response> searchAssetStatisticsWithHttpInfo(StatisticsSearchDto statisticsSearchDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/statistics';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = statisticsSearchDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [StatisticsSearchDto] statisticsSearchDto (required):
|
|
||||||
Future<SearchStatisticsResponseDto?> searchAssetStatistics(StatisticsSearchDto statisticsSearchDto,) async {
|
|
||||||
final response = await searchAssetStatisticsWithHttpInfo(statisticsSearchDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SearchStatisticsResponseDto',) as SearchStatisticsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MetadataSearchDto] metadataSearchDto (required):
|
|
||||||
Future<Response> searchAssetsWithHttpInfo(MetadataSearchDto metadataSearchDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/metadata';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = metadataSearchDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MetadataSearchDto] metadataSearchDto (required):
|
|
||||||
Future<SearchResponseDto?> searchAssets(MetadataSearchDto metadataSearchDto,) async {
|
|
||||||
final response = await searchAssetsWithHttpInfo(metadataSearchDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SearchResponseDto',) as SearchResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [List<String>] albumIds:
|
|
||||||
///
|
|
||||||
/// * [String] city:
|
|
||||||
///
|
|
||||||
/// * [String] country:
|
|
||||||
///
|
|
||||||
/// * [DateTime] createdAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] createdBefore:
|
|
||||||
///
|
|
||||||
/// * [String] deviceId:
|
|
||||||
///
|
|
||||||
/// * [bool] isEncoded:
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [bool] isMotion:
|
|
||||||
///
|
|
||||||
/// * [bool] isNotInAlbum:
|
|
||||||
///
|
|
||||||
/// * [bool] isOffline:
|
|
||||||
///
|
|
||||||
/// * [String] lensModel:
|
|
||||||
///
|
|
||||||
/// * [String] libraryId:
|
|
||||||
///
|
|
||||||
/// * [String] make:
|
|
||||||
///
|
|
||||||
/// * [int] minFileSize:
|
|
||||||
///
|
|
||||||
/// * [String] model:
|
|
||||||
///
|
|
||||||
/// * [List<String>] personIds:
|
|
||||||
///
|
|
||||||
/// * [num] rating:
|
|
||||||
///
|
|
||||||
/// * [num] size:
|
|
||||||
///
|
|
||||||
/// * [String] state:
|
|
||||||
///
|
|
||||||
/// * [List<String>] tagIds:
|
|
||||||
///
|
|
||||||
/// * [DateTime] takenAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] takenBefore:
|
|
||||||
///
|
|
||||||
/// * [DateTime] trashedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] trashedBefore:
|
|
||||||
///
|
|
||||||
/// * [AssetTypeEnum] type:
|
|
||||||
///
|
|
||||||
/// * [DateTime] updatedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] updatedBefore:
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
///
|
|
||||||
/// * [bool] withDeleted:
|
|
||||||
///
|
|
||||||
/// * [bool] withExif:
|
|
||||||
Future<Response> searchLargeAssetsWithHttpInfo({ List<String>? albumIds, String? city, String? country, DateTime? createdAfter, DateTime? createdBefore, String? deviceId, bool? isEncoded, bool? isFavorite, bool? isMotion, bool? isNotInAlbum, bool? isOffline, String? lensModel, String? libraryId, String? make, int? minFileSize, String? model, List<String>? personIds, num? rating, num? size, String? state, List<String>? tagIds, DateTime? takenAfter, DateTime? takenBefore, DateTime? trashedAfter, DateTime? trashedBefore, AssetTypeEnum? type, DateTime? updatedAfter, DateTime? updatedBefore, AssetVisibility? visibility, bool? withDeleted, bool? withExif, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/large-assets';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (albumIds != null) {
|
|
||||||
queryParams.addAll(_queryParams('multi', 'albumIds', albumIds));
|
|
||||||
}
|
|
||||||
if (city != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'city', city));
|
|
||||||
}
|
|
||||||
if (country != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'country', country));
|
|
||||||
}
|
|
||||||
if (createdAfter != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'createdAfter', createdAfter));
|
|
||||||
}
|
|
||||||
if (createdBefore != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'createdBefore', createdBefore));
|
|
||||||
}
|
|
||||||
if (deviceId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'deviceId', deviceId));
|
|
||||||
}
|
|
||||||
if (isEncoded != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isEncoded', isEncoded));
|
|
||||||
}
|
|
||||||
if (isFavorite != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
|
|
||||||
}
|
|
||||||
if (isMotion != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isMotion', isMotion));
|
|
||||||
}
|
|
||||||
if (isNotInAlbum != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isNotInAlbum', isNotInAlbum));
|
|
||||||
}
|
|
||||||
if (isOffline != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isOffline', isOffline));
|
|
||||||
}
|
|
||||||
if (lensModel != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'lensModel', lensModel));
|
|
||||||
}
|
|
||||||
if (libraryId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'libraryId', libraryId));
|
|
||||||
}
|
|
||||||
if (make != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'make', make));
|
|
||||||
}
|
|
||||||
if (minFileSize != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'minFileSize', minFileSize));
|
|
||||||
}
|
|
||||||
if (model != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'model', model));
|
|
||||||
}
|
|
||||||
if (personIds != null) {
|
|
||||||
queryParams.addAll(_queryParams('multi', 'personIds', personIds));
|
|
||||||
}
|
|
||||||
if (rating != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'rating', rating));
|
|
||||||
}
|
|
||||||
if (size != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'size', size));
|
|
||||||
}
|
|
||||||
if (state != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'state', state));
|
|
||||||
}
|
|
||||||
if (tagIds != null) {
|
|
||||||
queryParams.addAll(_queryParams('multi', 'tagIds', tagIds));
|
|
||||||
}
|
|
||||||
if (takenAfter != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'takenAfter', takenAfter));
|
|
||||||
}
|
|
||||||
if (takenBefore != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'takenBefore', takenBefore));
|
|
||||||
}
|
|
||||||
if (trashedAfter != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'trashedAfter', trashedAfter));
|
|
||||||
}
|
|
||||||
if (trashedBefore != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'trashedBefore', trashedBefore));
|
|
||||||
}
|
|
||||||
if (type != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'type', type));
|
|
||||||
}
|
|
||||||
if (updatedAfter != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'updatedAfter', updatedAfter));
|
|
||||||
}
|
|
||||||
if (updatedBefore != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'updatedBefore', updatedBefore));
|
|
||||||
}
|
|
||||||
if (visibility != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'visibility', visibility));
|
|
||||||
}
|
|
||||||
if (withDeleted != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withDeleted', withDeleted));
|
|
||||||
}
|
|
||||||
if (withExif != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withExif', withExif));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [List<String>] albumIds:
|
|
||||||
///
|
|
||||||
/// * [String] city:
|
|
||||||
///
|
|
||||||
/// * [String] country:
|
|
||||||
///
|
|
||||||
/// * [DateTime] createdAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] createdBefore:
|
|
||||||
///
|
|
||||||
/// * [String] deviceId:
|
|
||||||
///
|
|
||||||
/// * [bool] isEncoded:
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [bool] isMotion:
|
|
||||||
///
|
|
||||||
/// * [bool] isNotInAlbum:
|
|
||||||
///
|
|
||||||
/// * [bool] isOffline:
|
|
||||||
///
|
|
||||||
/// * [String] lensModel:
|
|
||||||
///
|
|
||||||
/// * [String] libraryId:
|
|
||||||
///
|
|
||||||
/// * [String] make:
|
|
||||||
///
|
|
||||||
/// * [int] minFileSize:
|
|
||||||
///
|
|
||||||
/// * [String] model:
|
|
||||||
///
|
|
||||||
/// * [List<String>] personIds:
|
|
||||||
///
|
|
||||||
/// * [num] rating:
|
|
||||||
///
|
|
||||||
/// * [num] size:
|
|
||||||
///
|
|
||||||
/// * [String] state:
|
|
||||||
///
|
|
||||||
/// * [List<String>] tagIds:
|
|
||||||
///
|
|
||||||
/// * [DateTime] takenAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] takenBefore:
|
|
||||||
///
|
|
||||||
/// * [DateTime] trashedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] trashedBefore:
|
|
||||||
///
|
|
||||||
/// * [AssetTypeEnum] type:
|
|
||||||
///
|
|
||||||
/// * [DateTime] updatedAfter:
|
|
||||||
///
|
|
||||||
/// * [DateTime] updatedBefore:
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
///
|
|
||||||
/// * [bool] withDeleted:
|
|
||||||
///
|
|
||||||
/// * [bool] withExif:
|
|
||||||
Future<List<AssetResponseDto>?> searchLargeAssets({ List<String>? albumIds, String? city, String? country, DateTime? createdAfter, DateTime? createdBefore, String? deviceId, bool? isEncoded, bool? isFavorite, bool? isMotion, bool? isNotInAlbum, bool? isOffline, String? lensModel, String? libraryId, String? make, int? minFileSize, String? model, List<String>? personIds, num? rating, num? size, String? state, List<String>? tagIds, DateTime? takenAfter, DateTime? takenBefore, DateTime? trashedAfter, DateTime? trashedBefore, AssetTypeEnum? type, DateTime? updatedAfter, DateTime? updatedBefore, AssetVisibility? visibility, bool? withDeleted, bool? withExif, }) async {
|
|
||||||
final response = await searchLargeAssetsWithHttpInfo( albumIds: albumIds, city: city, country: country, createdAfter: createdAfter, createdBefore: createdBefore, deviceId: deviceId, isEncoded: isEncoded, isFavorite: isFavorite, isMotion: isMotion, isNotInAlbum: isNotInAlbum, isOffline: isOffline, lensModel: lensModel, libraryId: libraryId, make: make, minFileSize: minFileSize, model: model, personIds: personIds, rating: rating, size: size, state: state, tagIds: tagIds, takenAfter: takenAfter, takenBefore: takenBefore, trashedAfter: trashedAfter, trashedBefore: trashedBefore, type: type, updatedAfter: updatedAfter, updatedBefore: updatedBefore, visibility: visibility, withDeleted: withDeleted, withExif: withExif, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
///
|
|
||||||
/// * [bool] withHidden:
|
|
||||||
Future<Response> searchPersonWithHttpInfo(String name, { bool? withHidden, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/person';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'name', name));
|
|
||||||
if (withHidden != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withHidden', withHidden));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `person.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
///
|
|
||||||
/// * [bool] withHidden:
|
|
||||||
Future<List<PersonResponseDto>?> searchPerson(String name, { bool? withHidden, }) async {
|
|
||||||
final response = await searchPersonWithHttpInfo(name, withHidden: withHidden, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List)
|
|
||||||
.cast<PersonResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
Future<Response> searchPlacesWithHttpInfo(String name,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/places';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'name', name));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] name (required):
|
|
||||||
Future<List<PlacesResponseDto>?> searchPlaces(String name,) async {
|
|
||||||
final response = await searchPlacesWithHttpInfo(name,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<PlacesResponseDto>') as List)
|
|
||||||
.cast<PlacesResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [RandomSearchDto] randomSearchDto (required):
|
|
||||||
Future<Response> searchRandomWithHttpInfo(RandomSearchDto randomSearchDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/random';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = randomSearchDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [RandomSearchDto] randomSearchDto (required):
|
|
||||||
Future<List<AssetResponseDto>?> searchRandom(RandomSearchDto randomSearchDto,) async {
|
|
||||||
final response = await searchRandomWithHttpInfo(randomSearchDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SmartSearchDto] smartSearchDto (required):
|
|
||||||
Future<Response> searchSmartWithHttpInfo(SmartSearchDto smartSearchDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/search/smart';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = smartSearchDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SmartSearchDto] smartSearchDto (required):
|
|
||||||
Future<SearchResponseDto?> searchSmart(SmartSearchDto smartSearchDto,) async {
|
|
||||||
final response = await searchSmartWithHttpInfo(smartSearchDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SearchResponseDto',) as SearchResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
660
mobile/openapi/lib/api/server_api.dart
generated
660
mobile/openapi/lib/api/server_api.dart
generated
@ -1,660 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class ServerApi {
|
|
||||||
ServerApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> deleteServerLicenseWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.delete` permission.
|
|
||||||
Future<void> deleteServerLicense() async {
|
|
||||||
final response = await deleteServerLicenseWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.about` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAboutInfoWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/about';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.about` permission.
|
|
||||||
Future<ServerAboutResponseDto?> getAboutInfo() async {
|
|
||||||
final response = await getAboutInfoWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerAboutResponseDto',) as ServerAboutResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.apkLinks` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getApkLinksWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/apk-links';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.apkLinks` permission.
|
|
||||||
Future<ServerApkLinksDto?> getApkLinks() async {
|
|
||||||
final response = await getApkLinksWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerApkLinksDto',) as ServerApkLinksDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/config' operation and returns the [Response].
|
|
||||||
Future<Response> getServerConfigWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/config';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerConfigDto?> getServerConfig() async {
|
|
||||||
final response = await getServerConfigWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerConfigDto',) as ServerConfigDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/features' operation and returns the [Response].
|
|
||||||
Future<Response> getServerFeaturesWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/features';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerFeaturesDto?> getServerFeatures() async {
|
|
||||||
final response = await getServerFeaturesWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerFeaturesDto',) as ServerFeaturesDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getServerLicenseWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.read` permission.
|
|
||||||
Future<LicenseResponseDto?> getServerLicense() async {
|
|
||||||
final response = await getServerLicenseWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LicenseResponseDto',) as LicenseResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `server.statistics` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getServerStatisticsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/statistics';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `server.statistics` permission.
|
|
||||||
Future<ServerStatsResponseDto?> getServerStatistics() async {
|
|
||||||
final response = await getServerStatisticsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerStatsResponseDto',) as ServerStatsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/version' operation and returns the [Response].
|
|
||||||
Future<Response> getServerVersionWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/version';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerVersionResponseDto?> getServerVersion() async {
|
|
||||||
final response = await getServerVersionWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerVersionResponseDto',) as ServerVersionResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.storage` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getStorageWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/storage';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.storage` permission.
|
|
||||||
Future<ServerStorageResponseDto?> getStorage() async {
|
|
||||||
final response = await getStorageWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerStorageResponseDto',) as ServerStorageResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/media-types' operation and returns the [Response].
|
|
||||||
Future<Response> getSupportedMediaTypesWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/media-types';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerMediaTypesResponseDto?> getSupportedMediaTypes() async {
|
|
||||||
final response = await getSupportedMediaTypesWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerMediaTypesResponseDto',) as ServerMediaTypesResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/theme' operation and returns the [Response].
|
|
||||||
Future<Response> getThemeWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/theme';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerThemeDto?> getTheme() async {
|
|
||||||
final response = await getThemeWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerThemeDto',) as ServerThemeDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.versionCheck` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getVersionCheckWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/version-check';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `server.versionCheck` permission.
|
|
||||||
Future<VersionCheckStateResponseDto?> getVersionCheck() async {
|
|
||||||
final response = await getVersionCheckWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VersionCheckStateResponseDto',) as VersionCheckStateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/version-history' operation and returns the [Response].
|
|
||||||
Future<Response> getVersionHistoryWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/version-history';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<ServerVersionHistoryResponseDto>?> getVersionHistory() async {
|
|
||||||
final response = await getVersionHistoryWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<ServerVersionHistoryResponseDto>') as List)
|
|
||||||
.cast<ServerVersionHistoryResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /server/ping' operation and returns the [Response].
|
|
||||||
Future<Response> pingServerWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/ping';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<ServerPingResponse?> pingServer() async {
|
|
||||||
final response = await pingServerWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ServerPingResponse',) as ServerPingResponse;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LicenseKeyDto] licenseKeyDto (required):
|
|
||||||
Future<Response> setServerLicenseWithHttpInfo(LicenseKeyDto licenseKeyDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/server/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = licenseKeyDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `serverLicense.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LicenseKeyDto] licenseKeyDto (required):
|
|
||||||
Future<LicenseResponseDto?> setServerLicense(LicenseKeyDto licenseKeyDto,) async {
|
|
||||||
final response = await setServerLicenseWithHttpInfo(licenseKeyDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LicenseResponseDto',) as LicenseResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
300
mobile/openapi/lib/api/sessions_api.dart
generated
300
mobile/openapi/lib/api/sessions_api.dart
generated
@ -1,300 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SessionsApi {
|
|
||||||
SessionsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SessionCreateDto] sessionCreateDto (required):
|
|
||||||
Future<Response> createSessionWithHttpInfo(SessionCreateDto sessionCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = sessionCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SessionCreateDto] sessionCreateDto (required):
|
|
||||||
Future<SessionCreateResponseDto?> createSession(SessionCreateDto sessionCreateDto,) async {
|
|
||||||
final response = await createSessionWithHttpInfo(sessionCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SessionCreateResponseDto',) as SessionCreateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> deleteAllSessionsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.delete` permission.
|
|
||||||
Future<void> deleteAllSessions() async {
|
|
||||||
final response = await deleteAllSessionsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteSessionWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteSession(String id,) async {
|
|
||||||
final response = await deleteSessionWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getSessionsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.read` permission.
|
|
||||||
Future<List<SessionResponseDto>?> getSessions() async {
|
|
||||||
final response = await getSessionsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<SessionResponseDto>') as List)
|
|
||||||
.cast<SessionResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.lock` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> lockSessionWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions/{id}/lock'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.lock` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> lockSession(String id,) async {
|
|
||||||
final response = await lockSessionWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [SessionUpdateDto] sessionUpdateDto (required):
|
|
||||||
Future<Response> updateSessionWithHttpInfo(String id, SessionUpdateDto sessionUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sessions/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = sessionUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `session.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [SessionUpdateDto] sessionUpdateDto (required):
|
|
||||||
Future<SessionResponseDto?> updateSession(String id, SessionUpdateDto sessionUpdateDto,) async {
|
|
||||||
final response = await updateSessionWithHttpInfo(id, sessionUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SessionResponseDto',) as SessionResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
496
mobile/openapi/lib/api/shared_links_api.dart
generated
496
mobile/openapi/lib/api/shared_links_api.dart
generated
@ -1,496 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SharedLinksApi {
|
|
||||||
SharedLinksApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// Performs an HTTP 'PUT /shared-links/{id}/assets' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> addSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<List<AssetIdsResponseDto>?> addSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await addSharedLinkAssetsWithHttpInfo(id, assetIdsDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
|
|
||||||
.cast<AssetIdsResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SharedLinkCreateDto] sharedLinkCreateDto (required):
|
|
||||||
Future<Response> createSharedLinkWithHttpInfo(SharedLinkCreateDto sharedLinkCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = sharedLinkCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SharedLinkCreateDto] sharedLinkCreateDto (required):
|
|
||||||
Future<SharedLinkResponseDto?> createSharedLink(SharedLinkCreateDto sharedLinkCreateDto,) async {
|
|
||||||
final response = await createSharedLinkWithHttpInfo(sharedLinkCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SharedLinkResponseDto',) as SharedLinkResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
Future<Response> getAllSharedLinksWithHttpInfo({ String? albumId, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (albumId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'albumId', albumId));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
Future<List<SharedLinkResponseDto>?> getAllSharedLinks({ String? albumId, }) async {
|
|
||||||
final response = await getAllSharedLinksWithHttpInfo( albumId: albumId, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<SharedLinkResponseDto>') as List)
|
|
||||||
.cast<SharedLinkResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /shared-links/me' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] password:
|
|
||||||
///
|
|
||||||
/// * [String] token:
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> getMySharedLinkWithHttpInfo({ String? password, String? token, String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/me';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (password != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'password', password));
|
|
||||||
}
|
|
||||||
if (token != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'token', token));
|
|
||||||
}
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] password:
|
|
||||||
///
|
|
||||||
/// * [String] token:
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<SharedLinkResponseDto?> getMySharedLink({ String? password, String? token, String? key, String? slug, }) async {
|
|
||||||
final response = await getMySharedLinkWithHttpInfo( password: password, token: token, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SharedLinkResponseDto',) as SharedLinkResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getSharedLinkByIdWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<SharedLinkResponseDto?> getSharedLinkById(String id,) async {
|
|
||||||
final response = await getSharedLinkByIdWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SharedLinkResponseDto',) as SharedLinkResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> removeSharedLinkWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> removeSharedLink(String id,) async {
|
|
||||||
final response = await removeSharedLinkWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'DELETE /shared-links/{id}/assets' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<Response> removeSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
Future<List<AssetIdsResponseDto>?> removeSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String? key, String? slug, }) async {
|
|
||||||
final response = await removeSharedLinkAssetsWithHttpInfo(id, assetIdsDto, key: key, slug: slug, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
|
|
||||||
.cast<AssetIdsResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [SharedLinkEditDto] sharedLinkEditDto (required):
|
|
||||||
Future<Response> updateSharedLinkWithHttpInfo(String id, SharedLinkEditDto sharedLinkEditDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/shared-links/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = sharedLinkEditDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PATCH',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sharedLink.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [SharedLinkEditDto] sharedLinkEditDto (required):
|
|
||||||
Future<SharedLinkResponseDto?> updateSharedLink(String id, SharedLinkEditDto sharedLinkEditDto,) async {
|
|
||||||
final response = await updateSharedLinkWithHttpInfo(id, sharedLinkEditDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SharedLinkResponseDto',) as SharedLinkResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
378
mobile/openapi/lib/api/stacks_api.dart
generated
378
mobile/openapi/lib/api/stacks_api.dart
generated
@ -1,378 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class StacksApi {
|
|
||||||
StacksApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [StackCreateDto] stackCreateDto (required):
|
|
||||||
Future<Response> createStackWithHttpInfo(StackCreateDto stackCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = stackCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [StackCreateDto] stackCreateDto (required):
|
|
||||||
Future<StackResponseDto?> createStack(StackCreateDto stackCreateDto,) async {
|
|
||||||
final response = await createStackWithHttpInfo(stackCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'StackResponseDto',) as StackResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteStackWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteStack(String id,) async {
|
|
||||||
final response = await deleteStackWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> deleteStacksWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<void> deleteStacks(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await deleteStacksWithHttpInfo(bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getStackWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<StackResponseDto?> getStack(String id,) async {
|
|
||||||
final response = await getStackWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'StackResponseDto',) as StackResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] assetId (required):
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> removeAssetFromStackWithHttpInfo(String assetId, String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks/{id}/assets/{assetId}'
|
|
||||||
.replaceAll('{assetId}', assetId)
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] assetId (required):
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> removeAssetFromStack(String assetId, String id,) async {
|
|
||||||
final response = await removeAssetFromStackWithHttpInfo(assetId, id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] primaryAssetId:
|
|
||||||
Future<Response> searchStacksWithHttpInfo({ String? primaryAssetId, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (primaryAssetId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'primaryAssetId', primaryAssetId));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] primaryAssetId:
|
|
||||||
Future<List<StackResponseDto>?> searchStacks({ String? primaryAssetId, }) async {
|
|
||||||
final response = await searchStacksWithHttpInfo( primaryAssetId: primaryAssetId, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<StackResponseDto>') as List)
|
|
||||||
.cast<StackResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [StackUpdateDto] stackUpdateDto (required):
|
|
||||||
Future<Response> updateStackWithHttpInfo(String id, StackUpdateDto stackUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/stacks/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = stackUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `stack.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [StackUpdateDto] stackUpdateDto (required):
|
|
||||||
Future<StackResponseDto?> updateStack(String id, StackUpdateDto stackUpdateDto,) async {
|
|
||||||
final response = await updateStackWithHttpInfo(id, stackUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'StackResponseDto',) as StackResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
294
mobile/openapi/lib/api/sync_api.dart
generated
294
mobile/openapi/lib/api/sync_api.dart
generated
@ -1,294 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SyncApi {
|
|
||||||
SyncApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncAckDeleteDto] syncAckDeleteDto (required):
|
|
||||||
Future<Response> deleteSyncAckWithHttpInfo(SyncAckDeleteDto syncAckDeleteDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/ack';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = syncAckDeleteDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncAckDeleteDto] syncAckDeleteDto (required):
|
|
||||||
Future<void> deleteSyncAck(SyncAckDeleteDto syncAckDeleteDto,) async {
|
|
||||||
final response = await deleteSyncAckWithHttpInfo(syncAckDeleteDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /sync/delta-sync' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetDeltaSyncDto] assetDeltaSyncDto (required):
|
|
||||||
Future<Response> getDeltaSyncWithHttpInfo(AssetDeltaSyncDto assetDeltaSyncDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/delta-sync';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetDeltaSyncDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetDeltaSyncDto] assetDeltaSyncDto (required):
|
|
||||||
Future<AssetDeltaSyncResponseDto?> getDeltaSync(AssetDeltaSyncDto assetDeltaSyncDto,) async {
|
|
||||||
final response = await getDeltaSyncWithHttpInfo(assetDeltaSyncDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetDeltaSyncResponseDto',) as AssetDeltaSyncResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /sync/full-sync' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetFullSyncDto] assetFullSyncDto (required):
|
|
||||||
Future<Response> getFullSyncForUserWithHttpInfo(AssetFullSyncDto assetFullSyncDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/full-sync';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetFullSyncDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetFullSyncDto] assetFullSyncDto (required):
|
|
||||||
Future<List<AssetResponseDto>?> getFullSyncForUser(AssetFullSyncDto assetFullSyncDto,) async {
|
|
||||||
final response = await getFullSyncForUserWithHttpInfo(assetFullSyncDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getSyncAckWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/ack';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.read` permission.
|
|
||||||
Future<List<SyncAckDto>?> getSyncAck() async {
|
|
||||||
final response = await getSyncAckWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<SyncAckDto>') as List)
|
|
||||||
.cast<SyncAckDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sync.stream` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncStreamDto] syncStreamDto (required):
|
|
||||||
Future<Response> getSyncStreamWithHttpInfo(SyncStreamDto syncStreamDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/stream';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = syncStreamDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `sync.stream` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncStreamDto] syncStreamDto (required):
|
|
||||||
Future<void> getSyncStream(SyncStreamDto syncStreamDto,) async {
|
|
||||||
final response = await getSyncStreamWithHttpInfo(syncStreamDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncAckSetDto] syncAckSetDto (required):
|
|
||||||
Future<Response> sendSyncAckWithHttpInfo(SyncAckSetDto syncAckSetDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/sync/ack';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = syncAckSetDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `syncCheckpoint.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SyncAckSetDto] syncAckSetDto (required):
|
|
||||||
Future<void> sendSyncAck(SyncAckSetDto syncAckSetDto,) async {
|
|
||||||
final response = await sendSyncAckWithHttpInfo(syncAckSetDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
202
mobile/openapi/lib/api/system_config_api.dart
generated
202
mobile/openapi/lib/api/system_config_api.dart
generated
@ -1,202 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SystemConfigApi {
|
|
||||||
SystemConfigApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getConfigWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-config';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
Future<SystemConfigDto?> getConfig() async {
|
|
||||||
final response = await getConfigWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getConfigDefaultsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-config/defaults';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
Future<SystemConfigDto?> getConfigDefaults() async {
|
|
||||||
final response = await getConfigDefaultsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getStorageTemplateOptionsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-config/storage-template-options';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.read` permission.
|
|
||||||
Future<SystemConfigTemplateStorageOptionDto?> getStorageTemplateOptions() async {
|
|
||||||
final response = await getStorageTemplateOptionsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigTemplateStorageOptionDto',) as SystemConfigTemplateStorageOptionDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SystemConfigDto] systemConfigDto (required):
|
|
||||||
Future<Response> updateConfigWithHttpInfo(SystemConfigDto systemConfigDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-config';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = systemConfigDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemConfig.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [SystemConfigDto] systemConfigDto (required):
|
|
||||||
Future<SystemConfigDto?> updateConfig(SystemConfigDto systemConfigDto,) async {
|
|
||||||
final response = await updateConfigWithHttpInfo(systemConfigDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigDto',) as SystemConfigDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
194
mobile/openapi/lib/api/system_metadata_api.dart
generated
194
mobile/openapi/lib/api/system_metadata_api.dart
generated
@ -1,194 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class SystemMetadataApi {
|
|
||||||
SystemMetadataApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAdminOnboardingWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-metadata/admin-onboarding';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
Future<AdminOnboardingUpdateDto?> getAdminOnboarding() async {
|
|
||||||
final response = await getAdminOnboardingWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AdminOnboardingUpdateDto',) as AdminOnboardingUpdateDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getReverseGeocodingStateWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-metadata/reverse-geocoding-state';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
Future<ReverseGeocodingStateResponseDto?> getReverseGeocodingState() async {
|
|
||||||
final response = await getReverseGeocodingStateWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ReverseGeocodingStateResponseDto',) as ReverseGeocodingStateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getVersionCheckStateWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-metadata/version-check-state';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.read` permission.
|
|
||||||
Future<VersionCheckStateResponseDto?> getVersionCheckState() async {
|
|
||||||
final response = await getVersionCheckStateWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'VersionCheckStateResponseDto',) as VersionCheckStateResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AdminOnboardingUpdateDto] adminOnboardingUpdateDto (required):
|
|
||||||
Future<Response> updateAdminOnboardingWithHttpInfo(AdminOnboardingUpdateDto adminOnboardingUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/system-metadata/admin-onboarding';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = adminOnboardingUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `systemMetadata.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AdminOnboardingUpdateDto] adminOnboardingUpdateDto (required):
|
|
||||||
Future<void> updateAdminOnboarding(AdminOnboardingUpdateDto adminOnboardingUpdateDto,) async {
|
|
||||||
final response = await updateAdminOnboardingWithHttpInfo(adminOnboardingUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
499
mobile/openapi/lib/api/tags_api.dart
generated
499
mobile/openapi/lib/api/tags_api.dart
generated
@ -1,499 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class TagsApi {
|
|
||||||
TagsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagBulkAssetsDto] tagBulkAssetsDto (required):
|
|
||||||
Future<Response> bulkTagAssetsWithHttpInfo(TagBulkAssetsDto tagBulkAssetsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/assets';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = tagBulkAssetsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagBulkAssetsDto] tagBulkAssetsDto (required):
|
|
||||||
Future<TagBulkAssetsResponseDto?> bulkTagAssets(TagBulkAssetsDto tagBulkAssetsDto,) async {
|
|
||||||
final response = await bulkTagAssetsWithHttpInfo(tagBulkAssetsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TagBulkAssetsResponseDto',) as TagBulkAssetsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagCreateDto] tagCreateDto (required):
|
|
||||||
Future<Response> createTagWithHttpInfo(TagCreateDto tagCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = tagCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagCreateDto] tagCreateDto (required):
|
|
||||||
Future<TagResponseDto?> createTag(TagCreateDto tagCreateDto,) async {
|
|
||||||
final response = await createTagWithHttpInfo(tagCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TagResponseDto',) as TagResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> deleteTagWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<void> deleteTag(String id,) async {
|
|
||||||
final response = await deleteTagWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getAllTagsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.read` permission.
|
|
||||||
Future<List<TagResponseDto>?> getAllTags() async {
|
|
||||||
final response = await getAllTagsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<TagResponseDto>') as List)
|
|
||||||
.cast<TagResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getTagByIdWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<TagResponseDto?> getTagById(String id,) async {
|
|
||||||
final response = await getTagByIdWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TagResponseDto',) as TagResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> tagAssetsWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> tagAssets(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await tagAssetsWithHttpInfo(id, bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> untagAssetsWithHttpInfo(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/{id}/assets'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.asset` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<List<BulkIdResponseDto>?> untagAssets(String id, BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await untagAssetsWithHttpInfo(id, bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
|
|
||||||
.cast<BulkIdResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [TagUpdateDto] tagUpdateDto (required):
|
|
||||||
Future<Response> updateTagWithHttpInfo(String id, TagUpdateDto tagUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = tagUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [TagUpdateDto] tagUpdateDto (required):
|
|
||||||
Future<TagResponseDto?> updateTag(String id, TagUpdateDto tagUpdateDto,) async {
|
|
||||||
final response = await updateTagWithHttpInfo(id, tagUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TagResponseDto',) as TagResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagUpsertDto] tagUpsertDto (required):
|
|
||||||
Future<Response> upsertTagsWithHttpInfo(TagUpsertDto tagUpsertDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/tags';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = tagUpsertDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `tag.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [TagUpsertDto] tagUpsertDto (required):
|
|
||||||
Future<List<TagResponseDto>?> upsertTags(TagUpsertDto tagUpsertDto,) async {
|
|
||||||
final response = await upsertTagsWithHttpInfo(tagUpsertDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<TagResponseDto>') as List)
|
|
||||||
.cast<TagResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
334
mobile/openapi/lib/api/timeline_api.dart
generated
334
mobile/openapi/lib/api/timeline_api.dart
generated
@ -1,334 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class TimelineApi {
|
|
||||||
TimelineApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] timeBucket (required):
|
|
||||||
/// Time bucket identifier in YYYY-MM-DD format (e.g., \"2024-01-01\" for January 2024)
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
/// Filter assets belonging to a specific album
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
/// Filter by favorite status (true for favorites only, false for non-favorites only)
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
/// Filter by trash status (true for trashed assets only, false for non-trashed only)
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [AssetOrder] order:
|
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
|
||||||
///
|
|
||||||
/// * [String] personId:
|
|
||||||
/// Filter assets containing a specific person (face recognition)
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [String] tagId:
|
|
||||||
/// Filter assets with a specific tag
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
/// Filter assets by specific user ID
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
/// Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
/// Include assets shared by partners
|
|
||||||
///
|
|
||||||
/// * [bool] withStacked:
|
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
|
||||||
Future<Response> getTimeBucketWithHttpInfo(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withPartners, bool? withStacked, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/timeline/bucket';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (albumId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'albumId', albumId));
|
|
||||||
}
|
|
||||||
if (isFavorite != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
|
|
||||||
}
|
|
||||||
if (isTrashed != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
|
|
||||||
}
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (order != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'order', order));
|
|
||||||
}
|
|
||||||
if (personId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'personId', personId));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
if (tagId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'tagId', tagId));
|
|
||||||
}
|
|
||||||
queryParams.addAll(_queryParams('', 'timeBucket', timeBucket));
|
|
||||||
if (userId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'userId', userId));
|
|
||||||
}
|
|
||||||
if (visibility != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'visibility', visibility));
|
|
||||||
}
|
|
||||||
if (withPartners != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withPartners', withPartners));
|
|
||||||
}
|
|
||||||
if (withStacked != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withStacked', withStacked));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] timeBucket (required):
|
|
||||||
/// Time bucket identifier in YYYY-MM-DD format (e.g., \"2024-01-01\" for January 2024)
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
/// Filter assets belonging to a specific album
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
/// Filter by favorite status (true for favorites only, false for non-favorites only)
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
/// Filter by trash status (true for trashed assets only, false for non-trashed only)
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [AssetOrder] order:
|
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
|
||||||
///
|
|
||||||
/// * [String] personId:
|
|
||||||
/// Filter assets containing a specific person (face recognition)
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [String] tagId:
|
|
||||||
/// Filter assets with a specific tag
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
/// Filter assets by specific user ID
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
/// Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
/// Include assets shared by partners
|
|
||||||
///
|
|
||||||
/// * [bool] withStacked:
|
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
|
||||||
Future<TimeBucketAssetResponseDto?> getTimeBucket(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withPartners, bool? withStacked, }) async {
|
|
||||||
final response = await getTimeBucketWithHttpInfo(timeBucket, albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withPartners: withPartners, withStacked: withStacked, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TimeBucketAssetResponseDto',) as TimeBucketAssetResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
/// Filter assets belonging to a specific album
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
/// Filter by favorite status (true for favorites only, false for non-favorites only)
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
/// Filter by trash status (true for trashed assets only, false for non-trashed only)
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [AssetOrder] order:
|
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
|
||||||
///
|
|
||||||
/// * [String] personId:
|
|
||||||
/// Filter assets containing a specific person (face recognition)
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [String] tagId:
|
|
||||||
/// Filter assets with a specific tag
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
/// Filter assets by specific user ID
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
/// Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
/// Include assets shared by partners
|
|
||||||
///
|
|
||||||
/// * [bool] withStacked:
|
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
|
||||||
Future<Response> getTimeBucketsWithHttpInfo({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withPartners, bool? withStacked, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/timeline/buckets';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (albumId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'albumId', albumId));
|
|
||||||
}
|
|
||||||
if (isFavorite != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
|
|
||||||
}
|
|
||||||
if (isTrashed != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
|
|
||||||
}
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
if (order != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'order', order));
|
|
||||||
}
|
|
||||||
if (personId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'personId', personId));
|
|
||||||
}
|
|
||||||
if (slug != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'slug', slug));
|
|
||||||
}
|
|
||||||
if (tagId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'tagId', tagId));
|
|
||||||
}
|
|
||||||
if (userId != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'userId', userId));
|
|
||||||
}
|
|
||||||
if (visibility != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'visibility', visibility));
|
|
||||||
}
|
|
||||||
if (withPartners != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withPartners', withPartners));
|
|
||||||
}
|
|
||||||
if (withStacked != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withStacked', withStacked));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] albumId:
|
|
||||||
/// Filter assets belonging to a specific album
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
/// Filter by favorite status (true for favorites only, false for non-favorites only)
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
/// Filter by trash status (true for trashed assets only, false for non-trashed only)
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
///
|
|
||||||
/// * [AssetOrder] order:
|
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
|
||||||
///
|
|
||||||
/// * [String] personId:
|
|
||||||
/// Filter assets containing a specific person (face recognition)
|
|
||||||
///
|
|
||||||
/// * [String] slug:
|
|
||||||
///
|
|
||||||
/// * [String] tagId:
|
|
||||||
/// Filter assets with a specific tag
|
|
||||||
///
|
|
||||||
/// * [String] userId:
|
|
||||||
/// Filter assets by specific user ID
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
/// Filter by asset visibility status (ARCHIVE, TIMELINE, HIDDEN, LOCKED)
|
|
||||||
///
|
|
||||||
/// * [bool] withPartners:
|
|
||||||
/// Include assets shared by partners
|
|
||||||
///
|
|
||||||
/// * [bool] withStacked:
|
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
|
||||||
Future<List<TimeBucketsResponseDto>?> getTimeBuckets({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withPartners, bool? withStacked, }) async {
|
|
||||||
final response = await getTimeBucketsWithHttpInfo( albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withPartners: withPartners, withStacked: withStacked, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<TimeBucketsResponseDto>') as List)
|
|
||||||
.cast<TimeBucketsResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
158
mobile/openapi/lib/api/trash_api.dart
generated
158
mobile/openapi/lib/api/trash_api.dart
generated
@ -1,158 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class TrashApi {
|
|
||||||
TrashApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> emptyTrashWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/trash/empty';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
Future<TrashResponseDto?> emptyTrash() async {
|
|
||||||
final response = await emptyTrashWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TrashResponseDto',) as TrashResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> restoreAssetsWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/trash/restore/assets';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<TrashResponseDto?> restoreAssets(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await restoreAssetsWithHttpInfo(bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TrashResponseDto',) as TrashResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> restoreTrashWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/trash/restore';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `asset.delete` permission.
|
|
||||||
Future<TrashResponseDto?> restoreTrash() async {
|
|
||||||
final response = await restoreTrashWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'TrashResponseDto',) as TrashResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
541
mobile/openapi/lib/api/users_admin_api.dart
generated
541
mobile/openapi/lib/api/users_admin_api.dart
generated
@ -1,541 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class UsersAdminApi {
|
|
||||||
UsersAdminApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.create` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserAdminCreateDto] userAdminCreateDto (required):
|
|
||||||
Future<Response> createUserAdminWithHttpInfo(UserAdminCreateDto userAdminCreateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userAdminCreateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.create` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserAdminCreateDto] userAdminCreateDto (required):
|
|
||||||
Future<UserAdminResponseDto?> createUserAdmin(UserAdminCreateDto userAdminCreateDto,) async {
|
|
||||||
final response = await createUserAdminWithHttpInfo(userAdminCreateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserAdminDeleteDto] userAdminDeleteDto (required):
|
|
||||||
Future<Response> deleteUserAdminWithHttpInfo(String id, UserAdminDeleteDto userAdminDeleteDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userAdminDeleteDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserAdminDeleteDto] userAdminDeleteDto (required):
|
|
||||||
Future<UserAdminResponseDto?> deleteUserAdmin(String id, UserAdminDeleteDto userAdminDeleteDto,) async {
|
|
||||||
final response = await deleteUserAdminWithHttpInfo(id, userAdminDeleteDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getUserAdminWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<UserAdminResponseDto?> getUserAdmin(String id,) async {
|
|
||||||
final response = await getUserAdminWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getUserPreferencesAdminWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}/preferences'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<UserPreferencesResponseDto?> getUserPreferencesAdmin(String id,) async {
|
|
||||||
final response = await getUserPreferencesAdminWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
Future<Response> getUserStatisticsAdminWithHttpInfo(String id, { bool? isFavorite, bool? isTrashed, AssetVisibility? visibility, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}/statistics'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (isFavorite != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
|
|
||||||
}
|
|
||||||
if (isTrashed != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
|
|
||||||
}
|
|
||||||
if (visibility != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'visibility', visibility));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [bool] isFavorite:
|
|
||||||
///
|
|
||||||
/// * [bool] isTrashed:
|
|
||||||
///
|
|
||||||
/// * [AssetVisibility] visibility:
|
|
||||||
Future<AssetStatsResponseDto?> getUserStatisticsAdmin(String id, { bool? isFavorite, bool? isTrashed, AssetVisibility? visibility, }) async {
|
|
||||||
final response = await getUserStatisticsAdminWithHttpInfo(id, isFavorite: isFavorite, isTrashed: isTrashed, visibility: visibility, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetStatsResponseDto',) as AssetStatsResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> restoreUserAdminWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}/restore'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.delete` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<UserAdminResponseDto?> restoreUserAdmin(String id,) async {
|
|
||||||
final response = await restoreUserAdminWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id:
|
|
||||||
///
|
|
||||||
/// * [bool] withDeleted:
|
|
||||||
Future<Response> searchUsersAdminWithHttpInfo({ String? id, bool? withDeleted, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (id != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'id', id));
|
|
||||||
}
|
|
||||||
if (withDeleted != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withDeleted', withDeleted));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id:
|
|
||||||
///
|
|
||||||
/// * [bool] withDeleted:
|
|
||||||
Future<List<UserAdminResponseDto>?> searchUsersAdmin({ String? id, bool? withDeleted, }) async {
|
|
||||||
final response = await searchUsersAdminWithHttpInfo( id: id, withDeleted: withDeleted, );
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<UserAdminResponseDto>') as List)
|
|
||||||
.cast<UserAdminResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserAdminUpdateDto] userAdminUpdateDto (required):
|
|
||||||
Future<Response> updateUserAdminWithHttpInfo(String id, UserAdminUpdateDto userAdminUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userAdminUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserAdminUpdateDto] userAdminUpdateDto (required):
|
|
||||||
Future<UserAdminResponseDto?> updateUserAdmin(String id, UserAdminUpdateDto userAdminUpdateDto,) async {
|
|
||||||
final response = await updateUserAdminWithHttpInfo(id, userAdminUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required):
|
|
||||||
Future<Response> updateUserPreferencesAdminWithHttpInfo(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/admin/users/{id}/preferences'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userPreferencesUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint is an admin-only route, and requires the `adminUser.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required):
|
|
||||||
Future<UserPreferencesResponseDto?> updateUserPreferencesAdmin(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async {
|
|
||||||
final response = await updateUserPreferencesAdminWithHttpInfo(id, userPreferencesUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
725
mobile/openapi/lib/api/users_api.dart
generated
725
mobile/openapi/lib/api/users_api.dart
generated
@ -1,725 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class UsersApi {
|
|
||||||
UsersApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MultipartFile] file (required):
|
|
||||||
Future<Response> createProfileImageWithHttpInfo(MultipartFile file,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/profile-image';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['multipart/form-data'];
|
|
||||||
|
|
||||||
bool hasFields = false;
|
|
||||||
final mp = MultipartRequest('POST', Uri.parse(apiPath));
|
|
||||||
if (file != null) {
|
|
||||||
hasFields = true;
|
|
||||||
mp.fields[r'file'] = file.field;
|
|
||||||
mp.files.add(file);
|
|
||||||
}
|
|
||||||
if (hasFields) {
|
|
||||||
postBody = mp;
|
|
||||||
}
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [MultipartFile] file (required):
|
|
||||||
Future<CreateProfileImageResponseDto?> createProfileImage(MultipartFile file,) async {
|
|
||||||
final response = await createProfileImageWithHttpInfo(file,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateProfileImageResponseDto',) as CreateProfileImageResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> deleteProfileImageWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/profile-image';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.delete` permission.
|
|
||||||
Future<void> deleteProfileImage() async {
|
|
||||||
final response = await deleteProfileImageWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> deleteUserLicenseWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.delete` permission.
|
|
||||||
Future<void> deleteUserLicense() async {
|
|
||||||
final response = await deleteUserLicenseWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.delete` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> deleteUserOnboardingWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/onboarding';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'DELETE',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.delete` permission.
|
|
||||||
Future<void> deleteUserOnboarding() async {
|
|
||||||
final response = await deleteUserOnboardingWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userPreference.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getMyPreferencesWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/preferences';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userPreference.read` permission.
|
|
||||||
Future<UserPreferencesResponseDto?> getMyPreferences() async {
|
|
||||||
final response = await getMyPreferencesWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getMyUserWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
Future<UserAdminResponseDto?> getMyUser() async {
|
|
||||||
final response = await getMyUserWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getProfileImageWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/{id}/profile-image'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userProfileImage.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<MultipartFile?> getProfileImage(String id,) async {
|
|
||||||
final response = await getProfileImageWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<Response> getUserWithHttpInfo(String id,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
Future<UserResponseDto?> getUser(String id,) async {
|
|
||||||
final response = await getUserWithHttpInfo(id,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getUserLicenseWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.read` permission.
|
|
||||||
Future<LicenseResponseDto?> getUserLicense() async {
|
|
||||||
final response = await getUserLicenseWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LicenseResponseDto',) as LicenseResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> getUserOnboardingWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/onboarding';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.read` permission.
|
|
||||||
Future<OnboardingResponseDto?> getUserOnboarding() async {
|
|
||||||
final response = await getUserOnboardingWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'OnboardingResponseDto',) as OnboardingResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
Future<Response> searchUsersWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.read` permission.
|
|
||||||
Future<List<UserResponseDto>?> searchUsers() async {
|
|
||||||
final response = await searchUsersWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<UserResponseDto>') as List)
|
|
||||||
.cast<UserResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LicenseKeyDto] licenseKeyDto (required):
|
|
||||||
Future<Response> setUserLicenseWithHttpInfo(LicenseKeyDto licenseKeyDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/license';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = licenseKeyDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userLicense.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [LicenseKeyDto] licenseKeyDto (required):
|
|
||||||
Future<LicenseResponseDto?> setUserLicense(LicenseKeyDto licenseKeyDto,) async {
|
|
||||||
final response = await setUserLicenseWithHttpInfo(licenseKeyDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'LicenseResponseDto',) as LicenseResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OnboardingDto] onboardingDto (required):
|
|
||||||
Future<Response> setUserOnboardingWithHttpInfo(OnboardingDto onboardingDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/onboarding';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = onboardingDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userOnboarding.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OnboardingDto] onboardingDto (required):
|
|
||||||
Future<OnboardingResponseDto?> setUserOnboarding(OnboardingDto onboardingDto,) async {
|
|
||||||
final response = await setUserOnboardingWithHttpInfo(onboardingDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'OnboardingResponseDto',) as OnboardingResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userPreference.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required):
|
|
||||||
Future<Response> updateMyPreferencesWithHttpInfo(UserPreferencesUpdateDto userPreferencesUpdateDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me/preferences';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userPreferencesUpdateDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `userPreference.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required):
|
|
||||||
Future<UserPreferencesResponseDto?> updateMyPreferences(UserPreferencesUpdateDto userPreferencesUpdateDto,) async {
|
|
||||||
final response = await updateMyPreferencesWithHttpInfo(userPreferencesUpdateDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.update` permission.
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserUpdateMeDto] userUpdateMeDto (required):
|
|
||||||
Future<Response> updateMyUserWithHttpInfo(UserUpdateMeDto userUpdateMeDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/users/me';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = userUpdateMeDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'PUT',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// This endpoint requires the `user.update` permission.
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [UserUpdateMeDto] userUpdateMeDto (required):
|
|
||||||
Future<UserAdminResponseDto?> updateMyUser(UserUpdateMeDto userUpdateMeDto,) async {
|
|
||||||
final response = await updateMyUserWithHttpInfo(userUpdateMeDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
114
mobile/openapi/lib/api/view_api.dart
generated
114
mobile/openapi/lib/api/view_api.dart
generated
@ -1,114 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class ViewApi {
|
|
||||||
ViewApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
|
|
||||||
|
|
||||||
final ApiClient apiClient;
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /view/folder' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] path (required):
|
|
||||||
Future<Response> getAssetsByOriginalPathWithHttpInfo(String path,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/view/folder';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
queryParams.addAll(_queryParams('', 'path', path));
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] path (required):
|
|
||||||
Future<List<AssetResponseDto>?> getAssetsByOriginalPath(String path,) async {
|
|
||||||
final response = await getAssetsByOriginalPathWithHttpInfo(path,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
|
|
||||||
.cast<AssetResponseDto>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /view/folder/unique-paths' operation and returns the [Response].
|
|
||||||
Future<Response> getUniqueOriginalPathsWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final apiPath = r'/view/folder/unique-paths';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
apiPath,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<List<String>?> getUniqueOriginalPaths() async {
|
|
||||||
final response = await getUniqueOriginalPathsWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
// When a remote server returns no body with a status of 204, we shall not decode it.
|
|
||||||
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
|
|
||||||
// FormatException when trying to decode an empty string.
|
|
||||||
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
|
|
||||||
final responseBody = await _decodeBodyBytes(response);
|
|
||||||
return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
|
|
||||||
.cast<String>()
|
|
||||||
.toList(growable: false);
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
838
mobile/openapi/lib/api_client.dart
generated
838
mobile/openapi/lib/api_client.dart
generated
@ -1,838 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ApiClient {
|
|
||||||
ApiClient({this.basePath = '/api', this.authentication,});
|
|
||||||
|
|
||||||
final String basePath;
|
|
||||||
final Authentication? authentication;
|
|
||||||
|
|
||||||
var _client = Client();
|
|
||||||
final _defaultHeaderMap = <String, String>{};
|
|
||||||
|
|
||||||
/// Returns the current HTTP [Client] instance to use in this class.
|
|
||||||
///
|
|
||||||
/// The return value is guaranteed to never be null.
|
|
||||||
Client get client => _client;
|
|
||||||
|
|
||||||
/// Requests to use a new HTTP [Client] in this class.
|
|
||||||
set client(Client newClient) {
|
|
||||||
_client = newClient;
|
|
||||||
}
|
|
||||||
|
|
||||||
Map<String, String> get defaultHeaderMap => _defaultHeaderMap;
|
|
||||||
|
|
||||||
void addDefaultHeader(String key, String value) {
|
|
||||||
_defaultHeaderMap[key] = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// We don't use a Map<String, String> for queryParams.
|
|
||||||
// If collectionFormat is 'multi', a key might appear multiple times.
|
|
||||||
Future<Response> invokeAPI(
|
|
||||||
String path,
|
|
||||||
String method,
|
|
||||||
List<QueryParam> queryParams,
|
|
||||||
Object? body,
|
|
||||||
Map<String, String> headerParams,
|
|
||||||
Map<String, String> formParams,
|
|
||||||
String? contentType,
|
|
||||||
) async {
|
|
||||||
await authentication?.applyToParams(queryParams, headerParams);
|
|
||||||
|
|
||||||
headerParams.addAll(_defaultHeaderMap);
|
|
||||||
if (contentType != null) {
|
|
||||||
headerParams['Content-Type'] = contentType;
|
|
||||||
}
|
|
||||||
|
|
||||||
final urlEncodedQueryParams = queryParams.map((param) => '$param');
|
|
||||||
final queryString = urlEncodedQueryParams.isNotEmpty ? '?${urlEncodedQueryParams.join('&')}' : '';
|
|
||||||
final uri = Uri.parse('$basePath$path$queryString');
|
|
||||||
|
|
||||||
try {
|
|
||||||
// Special case for uploading a single file which isn't a 'multipart/form-data'.
|
|
||||||
if (
|
|
||||||
body is MultipartFile && (contentType == null ||
|
|
||||||
!contentType.toLowerCase().startsWith('multipart/form-data'))
|
|
||||||
) {
|
|
||||||
final request = StreamedRequest(method, uri);
|
|
||||||
request.headers.addAll(headerParams);
|
|
||||||
request.contentLength = body.length;
|
|
||||||
body.finalize().listen(
|
|
||||||
request.sink.add,
|
|
||||||
onDone: request.sink.close,
|
|
||||||
// ignore: avoid_types_on_closure_parameters
|
|
||||||
onError: (Object error, StackTrace trace) => request.sink.close(),
|
|
||||||
cancelOnError: true,
|
|
||||||
);
|
|
||||||
final response = await _client.send(request);
|
|
||||||
return Response.fromStream(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (body is MultipartRequest) {
|
|
||||||
final request = MultipartRequest(method, uri);
|
|
||||||
request.fields.addAll(body.fields);
|
|
||||||
request.files.addAll(body.files);
|
|
||||||
request.headers.addAll(body.headers);
|
|
||||||
request.headers.addAll(headerParams);
|
|
||||||
final response = await _client.send(request);
|
|
||||||
return Response.fromStream(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
final msgBody = contentType == 'application/x-www-form-urlencoded'
|
|
||||||
? formParams
|
|
||||||
: await serializeAsync(body);
|
|
||||||
final nullableHeaderParams = headerParams.isEmpty ? null : headerParams;
|
|
||||||
|
|
||||||
switch(method) {
|
|
||||||
case 'POST': return await _client.post(uri, headers: nullableHeaderParams, body: msgBody,);
|
|
||||||
case 'PUT': return await _client.put(uri, headers: nullableHeaderParams, body: msgBody,);
|
|
||||||
case 'DELETE': return await _client.delete(uri, headers: nullableHeaderParams, body: msgBody,);
|
|
||||||
case 'PATCH': return await _client.patch(uri, headers: nullableHeaderParams, body: msgBody,);
|
|
||||||
case 'HEAD': return await _client.head(uri, headers: nullableHeaderParams,);
|
|
||||||
case 'GET': return await _client.get(uri, headers: nullableHeaderParams,);
|
|
||||||
}
|
|
||||||
} on SocketException catch (error, trace) {
|
|
||||||
throw ApiException.withInner(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'Socket operation failed: $method $path',
|
|
||||||
error,
|
|
||||||
trace,
|
|
||||||
);
|
|
||||||
} on TlsException catch (error, trace) {
|
|
||||||
throw ApiException.withInner(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'TLS/SSL communication failed: $method $path',
|
|
||||||
error,
|
|
||||||
trace,
|
|
||||||
);
|
|
||||||
} on IOException catch (error, trace) {
|
|
||||||
throw ApiException.withInner(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'I/O operation failed: $method $path',
|
|
||||||
error,
|
|
||||||
trace,
|
|
||||||
);
|
|
||||||
} on ClientException catch (error, trace) {
|
|
||||||
throw ApiException.withInner(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'HTTP connection failed: $method $path',
|
|
||||||
error,
|
|
||||||
trace,
|
|
||||||
);
|
|
||||||
} on Exception catch (error, trace) {
|
|
||||||
throw ApiException.withInner(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'Exception occurred: $method $path',
|
|
||||||
error,
|
|
||||||
trace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
throw ApiException(
|
|
||||||
HttpStatus.badRequest,
|
|
||||||
'Invalid HTTP operation: $method $path',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) =>
|
|
||||||
// ignore: deprecated_member_use_from_same_package
|
|
||||||
deserialize(value, targetType, growable: growable);
|
|
||||||
|
|
||||||
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
|
|
||||||
Future<dynamic> deserialize(String value, String targetType, {bool growable = false,}) async {
|
|
||||||
// Remove all spaces. Necessary for regular expressions as well.
|
|
||||||
targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
|
|
||||||
|
|
||||||
// If the expected target type is String, nothing to do...
|
|
||||||
return targetType == 'String'
|
|
||||||
? value
|
|
||||||
: fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ignore: deprecated_member_use_from_same_package
|
|
||||||
Future<String> serializeAsync(Object? value) async => serialize(value);
|
|
||||||
|
|
||||||
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use serializeAsync() instead.')
|
|
||||||
String serialize(Object? value) => value == null ? '' : json.encode(value);
|
|
||||||
|
|
||||||
/// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
|
|
||||||
static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
|
|
||||||
try {
|
|
||||||
switch (targetType) {
|
|
||||||
case 'String':
|
|
||||||
return value is String ? value : value.toString();
|
|
||||||
case 'int':
|
|
||||||
return value is int ? value : int.parse('$value');
|
|
||||||
case 'double':
|
|
||||||
return value is double ? value : double.parse('$value');
|
|
||||||
case 'bool':
|
|
||||||
if (value is bool) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
final valueString = '$value'.toLowerCase();
|
|
||||||
return valueString == 'true' || valueString == '1';
|
|
||||||
case 'DateTime':
|
|
||||||
return value is DateTime ? value : DateTime.tryParse(value);
|
|
||||||
case 'APIKeyCreateDto':
|
|
||||||
return APIKeyCreateDto.fromJson(value);
|
|
||||||
case 'APIKeyCreateResponseDto':
|
|
||||||
return APIKeyCreateResponseDto.fromJson(value);
|
|
||||||
case 'APIKeyResponseDto':
|
|
||||||
return APIKeyResponseDto.fromJson(value);
|
|
||||||
case 'APIKeyUpdateDto':
|
|
||||||
return APIKeyUpdateDto.fromJson(value);
|
|
||||||
case 'ActivityCreateDto':
|
|
||||||
return ActivityCreateDto.fromJson(value);
|
|
||||||
case 'ActivityResponseDto':
|
|
||||||
return ActivityResponseDto.fromJson(value);
|
|
||||||
case 'ActivityStatisticsResponseDto':
|
|
||||||
return ActivityStatisticsResponseDto.fromJson(value);
|
|
||||||
case 'AddUsersDto':
|
|
||||||
return AddUsersDto.fromJson(value);
|
|
||||||
case 'AdminOnboardingUpdateDto':
|
|
||||||
return AdminOnboardingUpdateDto.fromJson(value);
|
|
||||||
case 'AlbumResponseDto':
|
|
||||||
return AlbumResponseDto.fromJson(value);
|
|
||||||
case 'AlbumStatisticsResponseDto':
|
|
||||||
return AlbumStatisticsResponseDto.fromJson(value);
|
|
||||||
case 'AlbumUserAddDto':
|
|
||||||
return AlbumUserAddDto.fromJson(value);
|
|
||||||
case 'AlbumUserCreateDto':
|
|
||||||
return AlbumUserCreateDto.fromJson(value);
|
|
||||||
case 'AlbumUserResponseDto':
|
|
||||||
return AlbumUserResponseDto.fromJson(value);
|
|
||||||
case 'AlbumUserRole':
|
|
||||||
return AlbumUserRoleTypeTransformer().decode(value);
|
|
||||||
case 'AlbumsAddAssetsDto':
|
|
||||||
return AlbumsAddAssetsDto.fromJson(value);
|
|
||||||
case 'AlbumsAddAssetsResponseDto':
|
|
||||||
return AlbumsAddAssetsResponseDto.fromJson(value);
|
|
||||||
case 'AlbumsResponse':
|
|
||||||
return AlbumsResponse.fromJson(value);
|
|
||||||
case 'AlbumsUpdate':
|
|
||||||
return AlbumsUpdate.fromJson(value);
|
|
||||||
case 'AllJobStatusResponseDto':
|
|
||||||
return AllJobStatusResponseDto.fromJson(value);
|
|
||||||
case 'AssetBulkDeleteDto':
|
|
||||||
return AssetBulkDeleteDto.fromJson(value);
|
|
||||||
case 'AssetBulkUpdateDto':
|
|
||||||
return AssetBulkUpdateDto.fromJson(value);
|
|
||||||
case 'AssetBulkUploadCheckDto':
|
|
||||||
return AssetBulkUploadCheckDto.fromJson(value);
|
|
||||||
case 'AssetBulkUploadCheckItem':
|
|
||||||
return AssetBulkUploadCheckItem.fromJson(value);
|
|
||||||
case 'AssetBulkUploadCheckResponseDto':
|
|
||||||
return AssetBulkUploadCheckResponseDto.fromJson(value);
|
|
||||||
case 'AssetBulkUploadCheckResult':
|
|
||||||
return AssetBulkUploadCheckResult.fromJson(value);
|
|
||||||
case 'AssetDeltaSyncDto':
|
|
||||||
return AssetDeltaSyncDto.fromJson(value);
|
|
||||||
case 'AssetDeltaSyncResponseDto':
|
|
||||||
return AssetDeltaSyncResponseDto.fromJson(value);
|
|
||||||
case 'AssetFaceCreateDto':
|
|
||||||
return AssetFaceCreateDto.fromJson(value);
|
|
||||||
case 'AssetFaceDeleteDto':
|
|
||||||
return AssetFaceDeleteDto.fromJson(value);
|
|
||||||
case 'AssetFaceResponseDto':
|
|
||||||
return AssetFaceResponseDto.fromJson(value);
|
|
||||||
case 'AssetFaceUpdateDto':
|
|
||||||
return AssetFaceUpdateDto.fromJson(value);
|
|
||||||
case 'AssetFaceUpdateItem':
|
|
||||||
return AssetFaceUpdateItem.fromJson(value);
|
|
||||||
case 'AssetFaceWithoutPersonResponseDto':
|
|
||||||
return AssetFaceWithoutPersonResponseDto.fromJson(value);
|
|
||||||
case 'AssetFullSyncDto':
|
|
||||||
return AssetFullSyncDto.fromJson(value);
|
|
||||||
case 'AssetIdsDto':
|
|
||||||
return AssetIdsDto.fromJson(value);
|
|
||||||
case 'AssetIdsResponseDto':
|
|
||||||
return AssetIdsResponseDto.fromJson(value);
|
|
||||||
case 'AssetJobName':
|
|
||||||
return AssetJobNameTypeTransformer().decode(value);
|
|
||||||
case 'AssetJobsDto':
|
|
||||||
return AssetJobsDto.fromJson(value);
|
|
||||||
case 'AssetMediaResponseDto':
|
|
||||||
return AssetMediaResponseDto.fromJson(value);
|
|
||||||
case 'AssetMediaSize':
|
|
||||||
return AssetMediaSizeTypeTransformer().decode(value);
|
|
||||||
case 'AssetMediaStatus':
|
|
||||||
return AssetMediaStatusTypeTransformer().decode(value);
|
|
||||||
case 'AssetOrder':
|
|
||||||
return AssetOrderTypeTransformer().decode(value);
|
|
||||||
case 'AssetResponseDto':
|
|
||||||
return AssetResponseDto.fromJson(value);
|
|
||||||
case 'AssetStackResponseDto':
|
|
||||||
return AssetStackResponseDto.fromJson(value);
|
|
||||||
case 'AssetStatsResponseDto':
|
|
||||||
return AssetStatsResponseDto.fromJson(value);
|
|
||||||
case 'AssetTypeEnum':
|
|
||||||
return AssetTypeEnumTypeTransformer().decode(value);
|
|
||||||
case 'AssetVisibility':
|
|
||||||
return AssetVisibilityTypeTransformer().decode(value);
|
|
||||||
case 'AudioCodec':
|
|
||||||
return AudioCodecTypeTransformer().decode(value);
|
|
||||||
case 'AuthStatusResponseDto':
|
|
||||||
return AuthStatusResponseDto.fromJson(value);
|
|
||||||
case 'AvatarUpdate':
|
|
||||||
return AvatarUpdate.fromJson(value);
|
|
||||||
case 'BulkIdErrorReason':
|
|
||||||
return BulkIdErrorReasonTypeTransformer().decode(value);
|
|
||||||
case 'BulkIdResponseDto':
|
|
||||||
return BulkIdResponseDto.fromJson(value);
|
|
||||||
case 'BulkIdsDto':
|
|
||||||
return BulkIdsDto.fromJson(value);
|
|
||||||
case 'CLIPConfig':
|
|
||||||
return CLIPConfig.fromJson(value);
|
|
||||||
case 'CQMode':
|
|
||||||
return CQModeTypeTransformer().decode(value);
|
|
||||||
case 'CastResponse':
|
|
||||||
return CastResponse.fromJson(value);
|
|
||||||
case 'CastUpdate':
|
|
||||||
return CastUpdate.fromJson(value);
|
|
||||||
case 'ChangePasswordDto':
|
|
||||||
return ChangePasswordDto.fromJson(value);
|
|
||||||
case 'CheckExistingAssetsDto':
|
|
||||||
return CheckExistingAssetsDto.fromJson(value);
|
|
||||||
case 'CheckExistingAssetsResponseDto':
|
|
||||||
return CheckExistingAssetsResponseDto.fromJson(value);
|
|
||||||
case 'Colorspace':
|
|
||||||
return ColorspaceTypeTransformer().decode(value);
|
|
||||||
case 'CreateAlbumDto':
|
|
||||||
return CreateAlbumDto.fromJson(value);
|
|
||||||
case 'CreateLibraryDto':
|
|
||||||
return CreateLibraryDto.fromJson(value);
|
|
||||||
case 'CreateProfileImageResponseDto':
|
|
||||||
return CreateProfileImageResponseDto.fromJson(value);
|
|
||||||
case 'DatabaseBackupConfig':
|
|
||||||
return DatabaseBackupConfig.fromJson(value);
|
|
||||||
case 'DownloadArchiveInfo':
|
|
||||||
return DownloadArchiveInfo.fromJson(value);
|
|
||||||
case 'DownloadInfoDto':
|
|
||||||
return DownloadInfoDto.fromJson(value);
|
|
||||||
case 'DownloadResponse':
|
|
||||||
return DownloadResponse.fromJson(value);
|
|
||||||
case 'DownloadResponseDto':
|
|
||||||
return DownloadResponseDto.fromJson(value);
|
|
||||||
case 'DownloadUpdate':
|
|
||||||
return DownloadUpdate.fromJson(value);
|
|
||||||
case 'DuplicateDetectionConfig':
|
|
||||||
return DuplicateDetectionConfig.fromJson(value);
|
|
||||||
case 'DuplicateResponseDto':
|
|
||||||
return DuplicateResponseDto.fromJson(value);
|
|
||||||
case 'EmailNotificationsResponse':
|
|
||||||
return EmailNotificationsResponse.fromJson(value);
|
|
||||||
case 'EmailNotificationsUpdate':
|
|
||||||
return EmailNotificationsUpdate.fromJson(value);
|
|
||||||
case 'ExifResponseDto':
|
|
||||||
return ExifResponseDto.fromJson(value);
|
|
||||||
case 'FaceDto':
|
|
||||||
return FaceDto.fromJson(value);
|
|
||||||
case 'FacialRecognitionConfig':
|
|
||||||
return FacialRecognitionConfig.fromJson(value);
|
|
||||||
case 'FoldersResponse':
|
|
||||||
return FoldersResponse.fromJson(value);
|
|
||||||
case 'FoldersUpdate':
|
|
||||||
return FoldersUpdate.fromJson(value);
|
|
||||||
case 'ImageFormat':
|
|
||||||
return ImageFormatTypeTransformer().decode(value);
|
|
||||||
case 'JobCommand':
|
|
||||||
return JobCommandTypeTransformer().decode(value);
|
|
||||||
case 'JobCommandDto':
|
|
||||||
return JobCommandDto.fromJson(value);
|
|
||||||
case 'JobCountsDto':
|
|
||||||
return JobCountsDto.fromJson(value);
|
|
||||||
case 'JobCreateDto':
|
|
||||||
return JobCreateDto.fromJson(value);
|
|
||||||
case 'JobName':
|
|
||||||
return JobNameTypeTransformer().decode(value);
|
|
||||||
case 'JobSettingsDto':
|
|
||||||
return JobSettingsDto.fromJson(value);
|
|
||||||
case 'JobStatusDto':
|
|
||||||
return JobStatusDto.fromJson(value);
|
|
||||||
case 'LibraryResponseDto':
|
|
||||||
return LibraryResponseDto.fromJson(value);
|
|
||||||
case 'LibraryStatsResponseDto':
|
|
||||||
return LibraryStatsResponseDto.fromJson(value);
|
|
||||||
case 'LicenseKeyDto':
|
|
||||||
return LicenseKeyDto.fromJson(value);
|
|
||||||
case 'LicenseResponseDto':
|
|
||||||
return LicenseResponseDto.fromJson(value);
|
|
||||||
case 'LogLevel':
|
|
||||||
return LogLevelTypeTransformer().decode(value);
|
|
||||||
case 'LoginCredentialDto':
|
|
||||||
return LoginCredentialDto.fromJson(value);
|
|
||||||
case 'LoginResponseDto':
|
|
||||||
return LoginResponseDto.fromJson(value);
|
|
||||||
case 'LogoutResponseDto':
|
|
||||||
return LogoutResponseDto.fromJson(value);
|
|
||||||
case 'ManualJobName':
|
|
||||||
return ManualJobNameTypeTransformer().decode(value);
|
|
||||||
case 'MapMarkerResponseDto':
|
|
||||||
return MapMarkerResponseDto.fromJson(value);
|
|
||||||
case 'MapReverseGeocodeResponseDto':
|
|
||||||
return MapReverseGeocodeResponseDto.fromJson(value);
|
|
||||||
case 'MemoriesResponse':
|
|
||||||
return MemoriesResponse.fromJson(value);
|
|
||||||
case 'MemoriesUpdate':
|
|
||||||
return MemoriesUpdate.fromJson(value);
|
|
||||||
case 'MemoryCreateDto':
|
|
||||||
return MemoryCreateDto.fromJson(value);
|
|
||||||
case 'MemoryResponseDto':
|
|
||||||
return MemoryResponseDto.fromJson(value);
|
|
||||||
case 'MemoryStatisticsResponseDto':
|
|
||||||
return MemoryStatisticsResponseDto.fromJson(value);
|
|
||||||
case 'MemoryType':
|
|
||||||
return MemoryTypeTypeTransformer().decode(value);
|
|
||||||
case 'MemoryUpdateDto':
|
|
||||||
return MemoryUpdateDto.fromJson(value);
|
|
||||||
case 'MergePersonDto':
|
|
||||||
return MergePersonDto.fromJson(value);
|
|
||||||
case 'MetadataSearchDto':
|
|
||||||
return MetadataSearchDto.fromJson(value);
|
|
||||||
case 'NotificationCreateDto':
|
|
||||||
return NotificationCreateDto.fromJson(value);
|
|
||||||
case 'NotificationDeleteAllDto':
|
|
||||||
return NotificationDeleteAllDto.fromJson(value);
|
|
||||||
case 'NotificationDto':
|
|
||||||
return NotificationDto.fromJson(value);
|
|
||||||
case 'NotificationLevel':
|
|
||||||
return NotificationLevelTypeTransformer().decode(value);
|
|
||||||
case 'NotificationType':
|
|
||||||
return NotificationTypeTypeTransformer().decode(value);
|
|
||||||
case 'NotificationUpdateAllDto':
|
|
||||||
return NotificationUpdateAllDto.fromJson(value);
|
|
||||||
case 'NotificationUpdateDto':
|
|
||||||
return NotificationUpdateDto.fromJson(value);
|
|
||||||
case 'OAuthAuthorizeResponseDto':
|
|
||||||
return OAuthAuthorizeResponseDto.fromJson(value);
|
|
||||||
case 'OAuthCallbackDto':
|
|
||||||
return OAuthCallbackDto.fromJson(value);
|
|
||||||
case 'OAuthConfigDto':
|
|
||||||
return OAuthConfigDto.fromJson(value);
|
|
||||||
case 'OAuthTokenEndpointAuthMethod':
|
|
||||||
return OAuthTokenEndpointAuthMethodTypeTransformer().decode(value);
|
|
||||||
case 'OnThisDayDto':
|
|
||||||
return OnThisDayDto.fromJson(value);
|
|
||||||
case 'OnboardingDto':
|
|
||||||
return OnboardingDto.fromJson(value);
|
|
||||||
case 'OnboardingResponseDto':
|
|
||||||
return OnboardingResponseDto.fromJson(value);
|
|
||||||
case 'PartnerDirection':
|
|
||||||
return PartnerDirectionTypeTransformer().decode(value);
|
|
||||||
case 'PartnerResponseDto':
|
|
||||||
return PartnerResponseDto.fromJson(value);
|
|
||||||
case 'PeopleResponse':
|
|
||||||
return PeopleResponse.fromJson(value);
|
|
||||||
case 'PeopleResponseDto':
|
|
||||||
return PeopleResponseDto.fromJson(value);
|
|
||||||
case 'PeopleUpdate':
|
|
||||||
return PeopleUpdate.fromJson(value);
|
|
||||||
case 'PeopleUpdateDto':
|
|
||||||
return PeopleUpdateDto.fromJson(value);
|
|
||||||
case 'PeopleUpdateItem':
|
|
||||||
return PeopleUpdateItem.fromJson(value);
|
|
||||||
case 'Permission':
|
|
||||||
return PermissionTypeTransformer().decode(value);
|
|
||||||
case 'PersonCreateDto':
|
|
||||||
return PersonCreateDto.fromJson(value);
|
|
||||||
case 'PersonResponseDto':
|
|
||||||
return PersonResponseDto.fromJson(value);
|
|
||||||
case 'PersonStatisticsResponseDto':
|
|
||||||
return PersonStatisticsResponseDto.fromJson(value);
|
|
||||||
case 'PersonUpdateDto':
|
|
||||||
return PersonUpdateDto.fromJson(value);
|
|
||||||
case 'PersonWithFacesResponseDto':
|
|
||||||
return PersonWithFacesResponseDto.fromJson(value);
|
|
||||||
case 'PinCodeChangeDto':
|
|
||||||
return PinCodeChangeDto.fromJson(value);
|
|
||||||
case 'PinCodeResetDto':
|
|
||||||
return PinCodeResetDto.fromJson(value);
|
|
||||||
case 'PinCodeSetupDto':
|
|
||||||
return PinCodeSetupDto.fromJson(value);
|
|
||||||
case 'PlacesResponseDto':
|
|
||||||
return PlacesResponseDto.fromJson(value);
|
|
||||||
case 'PurchaseResponse':
|
|
||||||
return PurchaseResponse.fromJson(value);
|
|
||||||
case 'PurchaseUpdate':
|
|
||||||
return PurchaseUpdate.fromJson(value);
|
|
||||||
case 'QueueStatusDto':
|
|
||||||
return QueueStatusDto.fromJson(value);
|
|
||||||
case 'RandomSearchDto':
|
|
||||||
return RandomSearchDto.fromJson(value);
|
|
||||||
case 'RatingsResponse':
|
|
||||||
return RatingsResponse.fromJson(value);
|
|
||||||
case 'RatingsUpdate':
|
|
||||||
return RatingsUpdate.fromJson(value);
|
|
||||||
case 'ReactionLevel':
|
|
||||||
return ReactionLevelTypeTransformer().decode(value);
|
|
||||||
case 'ReactionType':
|
|
||||||
return ReactionTypeTypeTransformer().decode(value);
|
|
||||||
case 'ReverseGeocodingStateResponseDto':
|
|
||||||
return ReverseGeocodingStateResponseDto.fromJson(value);
|
|
||||||
case 'SearchAlbumResponseDto':
|
|
||||||
return SearchAlbumResponseDto.fromJson(value);
|
|
||||||
case 'SearchAssetResponseDto':
|
|
||||||
return SearchAssetResponseDto.fromJson(value);
|
|
||||||
case 'SearchExploreItem':
|
|
||||||
return SearchExploreItem.fromJson(value);
|
|
||||||
case 'SearchExploreResponseDto':
|
|
||||||
return SearchExploreResponseDto.fromJson(value);
|
|
||||||
case 'SearchFacetCountResponseDto':
|
|
||||||
return SearchFacetCountResponseDto.fromJson(value);
|
|
||||||
case 'SearchFacetResponseDto':
|
|
||||||
return SearchFacetResponseDto.fromJson(value);
|
|
||||||
case 'SearchResponseDto':
|
|
||||||
return SearchResponseDto.fromJson(value);
|
|
||||||
case 'SearchStatisticsResponseDto':
|
|
||||||
return SearchStatisticsResponseDto.fromJson(value);
|
|
||||||
case 'SearchSuggestionType':
|
|
||||||
return SearchSuggestionTypeTypeTransformer().decode(value);
|
|
||||||
case 'ServerAboutResponseDto':
|
|
||||||
return ServerAboutResponseDto.fromJson(value);
|
|
||||||
case 'ServerApkLinksDto':
|
|
||||||
return ServerApkLinksDto.fromJson(value);
|
|
||||||
case 'ServerConfigDto':
|
|
||||||
return ServerConfigDto.fromJson(value);
|
|
||||||
case 'ServerFeaturesDto':
|
|
||||||
return ServerFeaturesDto.fromJson(value);
|
|
||||||
case 'ServerMediaTypesResponseDto':
|
|
||||||
return ServerMediaTypesResponseDto.fromJson(value);
|
|
||||||
case 'ServerPingResponse':
|
|
||||||
return ServerPingResponse.fromJson(value);
|
|
||||||
case 'ServerStatsResponseDto':
|
|
||||||
return ServerStatsResponseDto.fromJson(value);
|
|
||||||
case 'ServerStorageResponseDto':
|
|
||||||
return ServerStorageResponseDto.fromJson(value);
|
|
||||||
case 'ServerThemeDto':
|
|
||||||
return ServerThemeDto.fromJson(value);
|
|
||||||
case 'ServerVersionHistoryResponseDto':
|
|
||||||
return ServerVersionHistoryResponseDto.fromJson(value);
|
|
||||||
case 'ServerVersionResponseDto':
|
|
||||||
return ServerVersionResponseDto.fromJson(value);
|
|
||||||
case 'SessionCreateDto':
|
|
||||||
return SessionCreateDto.fromJson(value);
|
|
||||||
case 'SessionCreateResponseDto':
|
|
||||||
return SessionCreateResponseDto.fromJson(value);
|
|
||||||
case 'SessionResponseDto':
|
|
||||||
return SessionResponseDto.fromJson(value);
|
|
||||||
case 'SessionUnlockDto':
|
|
||||||
return SessionUnlockDto.fromJson(value);
|
|
||||||
case 'SessionUpdateDto':
|
|
||||||
return SessionUpdateDto.fromJson(value);
|
|
||||||
case 'SharedLinkCreateDto':
|
|
||||||
return SharedLinkCreateDto.fromJson(value);
|
|
||||||
case 'SharedLinkEditDto':
|
|
||||||
return SharedLinkEditDto.fromJson(value);
|
|
||||||
case 'SharedLinkResponseDto':
|
|
||||||
return SharedLinkResponseDto.fromJson(value);
|
|
||||||
case 'SharedLinkType':
|
|
||||||
return SharedLinkTypeTypeTransformer().decode(value);
|
|
||||||
case 'SharedLinksResponse':
|
|
||||||
return SharedLinksResponse.fromJson(value);
|
|
||||||
case 'SharedLinksUpdate':
|
|
||||||
return SharedLinksUpdate.fromJson(value);
|
|
||||||
case 'SignUpDto':
|
|
||||||
return SignUpDto.fromJson(value);
|
|
||||||
case 'SmartSearchDto':
|
|
||||||
return SmartSearchDto.fromJson(value);
|
|
||||||
case 'SourceType':
|
|
||||||
return SourceTypeTypeTransformer().decode(value);
|
|
||||||
case 'StackCreateDto':
|
|
||||||
return StackCreateDto.fromJson(value);
|
|
||||||
case 'StackResponseDto':
|
|
||||||
return StackResponseDto.fromJson(value);
|
|
||||||
case 'StackUpdateDto':
|
|
||||||
return StackUpdateDto.fromJson(value);
|
|
||||||
case 'StatisticsSearchDto':
|
|
||||||
return StatisticsSearchDto.fromJson(value);
|
|
||||||
case 'SyncAckDeleteDto':
|
|
||||||
return SyncAckDeleteDto.fromJson(value);
|
|
||||||
case 'SyncAckDto':
|
|
||||||
return SyncAckDto.fromJson(value);
|
|
||||||
case 'SyncAckSetDto':
|
|
||||||
return SyncAckSetDto.fromJson(value);
|
|
||||||
case 'SyncAlbumDeleteV1':
|
|
||||||
return SyncAlbumDeleteV1.fromJson(value);
|
|
||||||
case 'SyncAlbumToAssetDeleteV1':
|
|
||||||
return SyncAlbumToAssetDeleteV1.fromJson(value);
|
|
||||||
case 'SyncAlbumToAssetV1':
|
|
||||||
return SyncAlbumToAssetV1.fromJson(value);
|
|
||||||
case 'SyncAlbumUserDeleteV1':
|
|
||||||
return SyncAlbumUserDeleteV1.fromJson(value);
|
|
||||||
case 'SyncAlbumUserV1':
|
|
||||||
return SyncAlbumUserV1.fromJson(value);
|
|
||||||
case 'SyncAlbumV1':
|
|
||||||
return SyncAlbumV1.fromJson(value);
|
|
||||||
case 'SyncAssetDeleteV1':
|
|
||||||
return SyncAssetDeleteV1.fromJson(value);
|
|
||||||
case 'SyncAssetExifV1':
|
|
||||||
return SyncAssetExifV1.fromJson(value);
|
|
||||||
case 'SyncAssetFaceDeleteV1':
|
|
||||||
return SyncAssetFaceDeleteV1.fromJson(value);
|
|
||||||
case 'SyncAssetFaceV1':
|
|
||||||
return SyncAssetFaceV1.fromJson(value);
|
|
||||||
case 'SyncAssetV1':
|
|
||||||
return SyncAssetV1.fromJson(value);
|
|
||||||
case 'SyncAuthUserV1':
|
|
||||||
return SyncAuthUserV1.fromJson(value);
|
|
||||||
case 'SyncEntityType':
|
|
||||||
return SyncEntityTypeTypeTransformer().decode(value);
|
|
||||||
case 'SyncMemoryAssetDeleteV1':
|
|
||||||
return SyncMemoryAssetDeleteV1.fromJson(value);
|
|
||||||
case 'SyncMemoryAssetV1':
|
|
||||||
return SyncMemoryAssetV1.fromJson(value);
|
|
||||||
case 'SyncMemoryDeleteV1':
|
|
||||||
return SyncMemoryDeleteV1.fromJson(value);
|
|
||||||
case 'SyncMemoryV1':
|
|
||||||
return SyncMemoryV1.fromJson(value);
|
|
||||||
case 'SyncPartnerDeleteV1':
|
|
||||||
return SyncPartnerDeleteV1.fromJson(value);
|
|
||||||
case 'SyncPartnerV1':
|
|
||||||
return SyncPartnerV1.fromJson(value);
|
|
||||||
case 'SyncPersonDeleteV1':
|
|
||||||
return SyncPersonDeleteV1.fromJson(value);
|
|
||||||
case 'SyncPersonV1':
|
|
||||||
return SyncPersonV1.fromJson(value);
|
|
||||||
case 'SyncRequestType':
|
|
||||||
return SyncRequestTypeTypeTransformer().decode(value);
|
|
||||||
case 'SyncStackDeleteV1':
|
|
||||||
return SyncStackDeleteV1.fromJson(value);
|
|
||||||
case 'SyncStackV1':
|
|
||||||
return SyncStackV1.fromJson(value);
|
|
||||||
case 'SyncStreamDto':
|
|
||||||
return SyncStreamDto.fromJson(value);
|
|
||||||
case 'SyncUserDeleteV1':
|
|
||||||
return SyncUserDeleteV1.fromJson(value);
|
|
||||||
case 'SyncUserMetadataDeleteV1':
|
|
||||||
return SyncUserMetadataDeleteV1.fromJson(value);
|
|
||||||
case 'SyncUserMetadataV1':
|
|
||||||
return SyncUserMetadataV1.fromJson(value);
|
|
||||||
case 'SyncUserV1':
|
|
||||||
return SyncUserV1.fromJson(value);
|
|
||||||
case 'SystemConfigBackupsDto':
|
|
||||||
return SystemConfigBackupsDto.fromJson(value);
|
|
||||||
case 'SystemConfigDto':
|
|
||||||
return SystemConfigDto.fromJson(value);
|
|
||||||
case 'SystemConfigFFmpegDto':
|
|
||||||
return SystemConfigFFmpegDto.fromJson(value);
|
|
||||||
case 'SystemConfigFacesDto':
|
|
||||||
return SystemConfigFacesDto.fromJson(value);
|
|
||||||
case 'SystemConfigGeneratedFullsizeImageDto':
|
|
||||||
return SystemConfigGeneratedFullsizeImageDto.fromJson(value);
|
|
||||||
case 'SystemConfigGeneratedImageDto':
|
|
||||||
return SystemConfigGeneratedImageDto.fromJson(value);
|
|
||||||
case 'SystemConfigImageDto':
|
|
||||||
return SystemConfigImageDto.fromJson(value);
|
|
||||||
case 'SystemConfigJobDto':
|
|
||||||
return SystemConfigJobDto.fromJson(value);
|
|
||||||
case 'SystemConfigLibraryDto':
|
|
||||||
return SystemConfigLibraryDto.fromJson(value);
|
|
||||||
case 'SystemConfigLibraryScanDto':
|
|
||||||
return SystemConfigLibraryScanDto.fromJson(value);
|
|
||||||
case 'SystemConfigLibraryWatchDto':
|
|
||||||
return SystemConfigLibraryWatchDto.fromJson(value);
|
|
||||||
case 'SystemConfigLoggingDto':
|
|
||||||
return SystemConfigLoggingDto.fromJson(value);
|
|
||||||
case 'SystemConfigMachineLearningDto':
|
|
||||||
return SystemConfigMachineLearningDto.fromJson(value);
|
|
||||||
case 'SystemConfigMapDto':
|
|
||||||
return SystemConfigMapDto.fromJson(value);
|
|
||||||
case 'SystemConfigMetadataDto':
|
|
||||||
return SystemConfigMetadataDto.fromJson(value);
|
|
||||||
case 'SystemConfigNewVersionCheckDto':
|
|
||||||
return SystemConfigNewVersionCheckDto.fromJson(value);
|
|
||||||
case 'SystemConfigNightlyTasksDto':
|
|
||||||
return SystemConfigNightlyTasksDto.fromJson(value);
|
|
||||||
case 'SystemConfigNotificationsDto':
|
|
||||||
return SystemConfigNotificationsDto.fromJson(value);
|
|
||||||
case 'SystemConfigOAuthDto':
|
|
||||||
return SystemConfigOAuthDto.fromJson(value);
|
|
||||||
case 'SystemConfigPasswordLoginDto':
|
|
||||||
return SystemConfigPasswordLoginDto.fromJson(value);
|
|
||||||
case 'SystemConfigReverseGeocodingDto':
|
|
||||||
return SystemConfigReverseGeocodingDto.fromJson(value);
|
|
||||||
case 'SystemConfigServerDto':
|
|
||||||
return SystemConfigServerDto.fromJson(value);
|
|
||||||
case 'SystemConfigSmtpDto':
|
|
||||||
return SystemConfigSmtpDto.fromJson(value);
|
|
||||||
case 'SystemConfigSmtpTransportDto':
|
|
||||||
return SystemConfigSmtpTransportDto.fromJson(value);
|
|
||||||
case 'SystemConfigStorageTemplateDto':
|
|
||||||
return SystemConfigStorageTemplateDto.fromJson(value);
|
|
||||||
case 'SystemConfigTemplateEmailsDto':
|
|
||||||
return SystemConfigTemplateEmailsDto.fromJson(value);
|
|
||||||
case 'SystemConfigTemplateStorageOptionDto':
|
|
||||||
return SystemConfigTemplateStorageOptionDto.fromJson(value);
|
|
||||||
case 'SystemConfigTemplatesDto':
|
|
||||||
return SystemConfigTemplatesDto.fromJson(value);
|
|
||||||
case 'SystemConfigThemeDto':
|
|
||||||
return SystemConfigThemeDto.fromJson(value);
|
|
||||||
case 'SystemConfigTrashDto':
|
|
||||||
return SystemConfigTrashDto.fromJson(value);
|
|
||||||
case 'SystemConfigUserDto':
|
|
||||||
return SystemConfigUserDto.fromJson(value);
|
|
||||||
case 'TagBulkAssetsDto':
|
|
||||||
return TagBulkAssetsDto.fromJson(value);
|
|
||||||
case 'TagBulkAssetsResponseDto':
|
|
||||||
return TagBulkAssetsResponseDto.fromJson(value);
|
|
||||||
case 'TagCreateDto':
|
|
||||||
return TagCreateDto.fromJson(value);
|
|
||||||
case 'TagResponseDto':
|
|
||||||
return TagResponseDto.fromJson(value);
|
|
||||||
case 'TagUpdateDto':
|
|
||||||
return TagUpdateDto.fromJson(value);
|
|
||||||
case 'TagUpsertDto':
|
|
||||||
return TagUpsertDto.fromJson(value);
|
|
||||||
case 'TagsResponse':
|
|
||||||
return TagsResponse.fromJson(value);
|
|
||||||
case 'TagsUpdate':
|
|
||||||
return TagsUpdate.fromJson(value);
|
|
||||||
case 'TemplateDto':
|
|
||||||
return TemplateDto.fromJson(value);
|
|
||||||
case 'TemplateResponseDto':
|
|
||||||
return TemplateResponseDto.fromJson(value);
|
|
||||||
case 'TestEmailResponseDto':
|
|
||||||
return TestEmailResponseDto.fromJson(value);
|
|
||||||
case 'TimeBucketAssetResponseDto':
|
|
||||||
return TimeBucketAssetResponseDto.fromJson(value);
|
|
||||||
case 'TimeBucketsResponseDto':
|
|
||||||
return TimeBucketsResponseDto.fromJson(value);
|
|
||||||
case 'ToneMapping':
|
|
||||||
return ToneMappingTypeTransformer().decode(value);
|
|
||||||
case 'TranscodeHWAccel':
|
|
||||||
return TranscodeHWAccelTypeTransformer().decode(value);
|
|
||||||
case 'TranscodePolicy':
|
|
||||||
return TranscodePolicyTypeTransformer().decode(value);
|
|
||||||
case 'TrashResponseDto':
|
|
||||||
return TrashResponseDto.fromJson(value);
|
|
||||||
case 'UpdateAlbumDto':
|
|
||||||
return UpdateAlbumDto.fromJson(value);
|
|
||||||
case 'UpdateAlbumUserDto':
|
|
||||||
return UpdateAlbumUserDto.fromJson(value);
|
|
||||||
case 'UpdateAssetDto':
|
|
||||||
return UpdateAssetDto.fromJson(value);
|
|
||||||
case 'UpdateLibraryDto':
|
|
||||||
return UpdateLibraryDto.fromJson(value);
|
|
||||||
case 'UpdatePartnerDto':
|
|
||||||
return UpdatePartnerDto.fromJson(value);
|
|
||||||
case 'UsageByUserDto':
|
|
||||||
return UsageByUserDto.fromJson(value);
|
|
||||||
case 'UserAdminCreateDto':
|
|
||||||
return UserAdminCreateDto.fromJson(value);
|
|
||||||
case 'UserAdminDeleteDto':
|
|
||||||
return UserAdminDeleteDto.fromJson(value);
|
|
||||||
case 'UserAdminResponseDto':
|
|
||||||
return UserAdminResponseDto.fromJson(value);
|
|
||||||
case 'UserAdminUpdateDto':
|
|
||||||
return UserAdminUpdateDto.fromJson(value);
|
|
||||||
case 'UserAvatarColor':
|
|
||||||
return UserAvatarColorTypeTransformer().decode(value);
|
|
||||||
case 'UserLicense':
|
|
||||||
return UserLicense.fromJson(value);
|
|
||||||
case 'UserMetadataKey':
|
|
||||||
return UserMetadataKeyTypeTransformer().decode(value);
|
|
||||||
case 'UserPreferencesResponseDto':
|
|
||||||
return UserPreferencesResponseDto.fromJson(value);
|
|
||||||
case 'UserPreferencesUpdateDto':
|
|
||||||
return UserPreferencesUpdateDto.fromJson(value);
|
|
||||||
case 'UserResponseDto':
|
|
||||||
return UserResponseDto.fromJson(value);
|
|
||||||
case 'UserStatus':
|
|
||||||
return UserStatusTypeTransformer().decode(value);
|
|
||||||
case 'UserUpdateMeDto':
|
|
||||||
return UserUpdateMeDto.fromJson(value);
|
|
||||||
case 'ValidateAccessTokenResponseDto':
|
|
||||||
return ValidateAccessTokenResponseDto.fromJson(value);
|
|
||||||
case 'ValidateLibraryDto':
|
|
||||||
return ValidateLibraryDto.fromJson(value);
|
|
||||||
case 'ValidateLibraryImportPathResponseDto':
|
|
||||||
return ValidateLibraryImportPathResponseDto.fromJson(value);
|
|
||||||
case 'ValidateLibraryResponseDto':
|
|
||||||
return ValidateLibraryResponseDto.fromJson(value);
|
|
||||||
case 'VersionCheckStateResponseDto':
|
|
||||||
return VersionCheckStateResponseDto.fromJson(value);
|
|
||||||
case 'VideoCodec':
|
|
||||||
return VideoCodecTypeTransformer().decode(value);
|
|
||||||
case 'VideoContainer':
|
|
||||||
return VideoContainerTypeTransformer().decode(value);
|
|
||||||
default:
|
|
||||||
dynamic match;
|
|
||||||
if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) {
|
|
||||||
return value
|
|
||||||
.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
|
|
||||||
.toList(growable: growable);
|
|
||||||
}
|
|
||||||
if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) {
|
|
||||||
return value
|
|
||||||
.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
|
|
||||||
.toSet();
|
|
||||||
}
|
|
||||||
if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) {
|
|
||||||
return Map<String, dynamic>.fromIterables(
|
|
||||||
value.keys.cast<String>(),
|
|
||||||
value.values.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,)),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} on Exception catch (error, trace) {
|
|
||||||
throw ApiException.withInner(HttpStatus.internalServerError, 'Exception during deserialization.', error, trace,);
|
|
||||||
}
|
|
||||||
throw ApiException(HttpStatus.internalServerError, 'Could not find a suitable class for deserialization',);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Primarily intended for use in an isolate.
|
|
||||||
class DeserializationMessage {
|
|
||||||
const DeserializationMessage({
|
|
||||||
required this.json,
|
|
||||||
required this.targetType,
|
|
||||||
this.growable = false,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// The JSON value to deserialize.
|
|
||||||
final String json;
|
|
||||||
|
|
||||||
/// Target type to deserialize to.
|
|
||||||
final String targetType;
|
|
||||||
|
|
||||||
/// Whether to make deserialized lists or maps growable.
|
|
||||||
final bool growable;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Primarily intended for use in an isolate.
|
|
||||||
Future<dynamic> decodeAsync(DeserializationMessage message) async {
|
|
||||||
// Remove all spaces. Necessary for regular expressions as well.
|
|
||||||
final targetType = message.targetType.replaceAll(' ', '');
|
|
||||||
|
|
||||||
// If the expected target type is String, nothing to do...
|
|
||||||
return targetType == 'String'
|
|
||||||
? message.json
|
|
||||||
: json.decode(message.json);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Primarily intended for use in an isolate.
|
|
||||||
Future<dynamic> deserializeAsync(DeserializationMessage message) async {
|
|
||||||
// Remove all spaces. Necessary for regular expressions as well.
|
|
||||||
final targetType = message.targetType.replaceAll(' ', '');
|
|
||||||
|
|
||||||
// If the expected target type is String, nothing to do...
|
|
||||||
return targetType == 'String'
|
|
||||||
? message.json
|
|
||||||
: ApiClient.fromJson(
|
|
||||||
json.decode(message.json),
|
|
||||||
targetType,
|
|
||||||
growable: message.growable,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Primarily intended for use in an isolate.
|
|
||||||
Future<String> serializeAsync(Object? value) async => value == null ? '' : json.encode(value);
|
|
||||||
25
mobile/openapi/lib/api_client.dart.rej
Normal file
25
mobile/openapi/lib/api_client.dart.rej
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- /dev/null
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -143,19 +143,19 @@
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
- Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) async =>
|
||||||
|
+ Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) =>
|
||||||
|
// ignore: deprecated_member_use_from_same_package
|
||||||
|
deserialize(value, targetType, growable: growable);
|
||||||
|
|
||||||
|
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
|
||||||
|
- dynamic deserialize(String value, String targetType, {bool growable = false,}) {
|
||||||
|
+ Future<dynamic> deserialize(String value, String targetType, {bool growable = false,}) async {
|
||||||
|
// Remove all spaces. Necessary for regular expressions as well.
|
||||||
|
targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
|
||||||
|
|
||||||
|
// If the expected target type is String, nothing to do...
|
||||||
|
return targetType == 'String'
|
||||||
|
? value
|
||||||
|
- : fromJson(json.decode(value), targetType, growable: growable);
|
||||||
|
+ : fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
33
mobile/openapi/lib/api_exception.dart
generated
33
mobile/openapi/lib/api_exception.dart
generated
@ -1,33 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ApiException implements Exception {
|
|
||||||
ApiException(this.code, this.message);
|
|
||||||
|
|
||||||
ApiException.withInner(this.code, this.message, this.innerException, this.stackTrace);
|
|
||||||
|
|
||||||
int code = 0;
|
|
||||||
String? message;
|
|
||||||
Exception? innerException;
|
|
||||||
StackTrace? stackTrace;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
if (message == null) {
|
|
||||||
return 'ApiException';
|
|
||||||
}
|
|
||||||
if (innerException == null) {
|
|
||||||
return 'ApiException $code: $message';
|
|
||||||
}
|
|
||||||
return 'ApiException $code: $message (Inner exception: $innerException)\n\n$stackTrace';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
212
mobile/openapi/lib/api_helper.dart
generated
212
mobile/openapi/lib/api_helper.dart
generated
@ -1,212 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class QueryParam {
|
|
||||||
const QueryParam(this.name, this.value);
|
|
||||||
|
|
||||||
final String name;
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => '${Uri.encodeQueryComponent(name)}=${Uri.encodeQueryComponent(value)}';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ported from the Java version.
|
|
||||||
Iterable<QueryParam> _queryParams(String collectionFormat, String name, dynamic value,) {
|
|
||||||
// Assertions to run in debug mode only.
|
|
||||||
assert(name.isNotEmpty, 'Parameter cannot be an empty string.');
|
|
||||||
|
|
||||||
final params = <QueryParam>[];
|
|
||||||
|
|
||||||
if (value is List) {
|
|
||||||
if (collectionFormat == 'multi') {
|
|
||||||
return value.map((dynamic v) => QueryParam(name, parameterToString(v)),);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Default collection format is 'csv'.
|
|
||||||
if (collectionFormat.isEmpty) {
|
|
||||||
collectionFormat = 'csv'; // ignore: parameter_assignments
|
|
||||||
}
|
|
||||||
|
|
||||||
final delimiter = _delimiters[collectionFormat] ?? ',';
|
|
||||||
|
|
||||||
params.add(QueryParam(name, value.map<dynamic>(parameterToString).join(delimiter),));
|
|
||||||
} else if (value != null) {
|
|
||||||
params.add(QueryParam(name, parameterToString(value)));
|
|
||||||
}
|
|
||||||
|
|
||||||
return params;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Format the given parameter object into a [String].
|
|
||||||
String parameterToString(dynamic value) {
|
|
||||||
if (value == null) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
if (value is DateTime) {
|
|
||||||
return value.toUtc().toIso8601String();
|
|
||||||
}
|
|
||||||
if (value is AlbumUserRole) {
|
|
||||||
return AlbumUserRoleTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetJobName) {
|
|
||||||
return AssetJobNameTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetMediaSize) {
|
|
||||||
return AssetMediaSizeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetMediaStatus) {
|
|
||||||
return AssetMediaStatusTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetOrder) {
|
|
||||||
return AssetOrderTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetTypeEnum) {
|
|
||||||
return AssetTypeEnumTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AssetVisibility) {
|
|
||||||
return AssetVisibilityTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is AudioCodec) {
|
|
||||||
return AudioCodecTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is BulkIdErrorReason) {
|
|
||||||
return BulkIdErrorReasonTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is CQMode) {
|
|
||||||
return CQModeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is Colorspace) {
|
|
||||||
return ColorspaceTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is ImageFormat) {
|
|
||||||
return ImageFormatTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is JobCommand) {
|
|
||||||
return JobCommandTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is JobName) {
|
|
||||||
return JobNameTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is LogLevel) {
|
|
||||||
return LogLevelTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is ManualJobName) {
|
|
||||||
return ManualJobNameTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is MemoryType) {
|
|
||||||
return MemoryTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is NotificationLevel) {
|
|
||||||
return NotificationLevelTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is NotificationType) {
|
|
||||||
return NotificationTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is OAuthTokenEndpointAuthMethod) {
|
|
||||||
return OAuthTokenEndpointAuthMethodTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is PartnerDirection) {
|
|
||||||
return PartnerDirectionTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is Permission) {
|
|
||||||
return PermissionTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is ReactionLevel) {
|
|
||||||
return ReactionLevelTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is ReactionType) {
|
|
||||||
return ReactionTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is SearchSuggestionType) {
|
|
||||||
return SearchSuggestionTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is SharedLinkType) {
|
|
||||||
return SharedLinkTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is SourceType) {
|
|
||||||
return SourceTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is SyncEntityType) {
|
|
||||||
return SyncEntityTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is SyncRequestType) {
|
|
||||||
return SyncRequestTypeTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is ToneMapping) {
|
|
||||||
return ToneMappingTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is TranscodeHWAccel) {
|
|
||||||
return TranscodeHWAccelTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is TranscodePolicy) {
|
|
||||||
return TranscodePolicyTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is UserAvatarColor) {
|
|
||||||
return UserAvatarColorTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is UserMetadataKey) {
|
|
||||||
return UserMetadataKeyTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is UserStatus) {
|
|
||||||
return UserStatusTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is VideoCodec) {
|
|
||||||
return VideoCodecTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
if (value is VideoContainer) {
|
|
||||||
return VideoContainerTypeTransformer().encode(value).toString();
|
|
||||||
}
|
|
||||||
return value.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the decoded body as UTF-8 if the given headers indicate an 'application/json'
|
|
||||||
/// content type. Otherwise, returns the decoded body as decoded by dart:http package.
|
|
||||||
Future<String> _decodeBodyBytes(Response response) async {
|
|
||||||
final contentType = response.headers['content-type'];
|
|
||||||
return contentType != null && contentType.toLowerCase().startsWith('application/json')
|
|
||||||
? response.bodyBytes.isEmpty ? '' : utf8.decode(response.bodyBytes)
|
|
||||||
: response.body;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a valid [T] value found at the specified Map [key], null otherwise.
|
|
||||||
T? mapValueOfType<T>(dynamic map, String key) {
|
|
||||||
final dynamic value = map is Map ? map[key] : null;
|
|
||||||
return value is T ? value : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a valid Map<K, V> found at the specified Map [key], null otherwise.
|
|
||||||
Map<K, V>? mapCastOfType<K, V>(dynamic map, String key) {
|
|
||||||
final dynamic value = map is Map ? map[key] : null;
|
|
||||||
return value is Map ? value.cast<K, V>() : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a valid [DateTime] found at the specified Map [key], null otherwise.
|
|
||||||
DateTime? mapDateTime(dynamic map, String key, [String? pattern]) {
|
|
||||||
final dynamic value = map is Map ? map[key] : null;
|
|
||||||
if (value != null) {
|
|
||||||
int? millis;
|
|
||||||
if (value is int) {
|
|
||||||
millis = value;
|
|
||||||
} else if (value is String) {
|
|
||||||
if (_isEpochMarker(pattern)) {
|
|
||||||
millis = int.tryParse(value);
|
|
||||||
} else {
|
|
||||||
return DateTime.tryParse(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (millis != null) {
|
|
||||||
return DateTime.fromMillisecondsSinceEpoch(millis, isUtc: true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
40
mobile/openapi/lib/auth/api_key_auth.dart
generated
40
mobile/openapi/lib/auth/api_key_auth.dart
generated
@ -1,40 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ApiKeyAuth implements Authentication {
|
|
||||||
ApiKeyAuth(this.location, this.paramName);
|
|
||||||
|
|
||||||
final String location;
|
|
||||||
final String paramName;
|
|
||||||
|
|
||||||
String apiKeyPrefix = '';
|
|
||||||
String apiKey = '';
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams,) async {
|
|
||||||
final paramValue = apiKeyPrefix.isEmpty ? apiKey : '$apiKeyPrefix $apiKey';
|
|
||||||
|
|
||||||
if (paramValue.isNotEmpty) {
|
|
||||||
if (location == 'query') {
|
|
||||||
queryParams.add(QueryParam(paramName, paramValue));
|
|
||||||
} else if (location == 'header') {
|
|
||||||
headerParams[paramName] = paramValue;
|
|
||||||
} else if (location == 'cookie') {
|
|
||||||
headerParams.update(
|
|
||||||
'Cookie',
|
|
||||||
(existingCookie) => '$existingCookie; $paramName=$paramValue',
|
|
||||||
ifAbsent: () => '$paramName=$paramValue',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
17
mobile/openapi/lib/auth/authentication.dart
generated
17
mobile/openapi/lib/auth/authentication.dart
generated
@ -1,17 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
// ignore: one_member_abstracts
|
|
||||||
abstract class Authentication {
|
|
||||||
/// Apply authentication settings to header and query params.
|
|
||||||
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams);
|
|
||||||
}
|
|
||||||
26
mobile/openapi/lib/auth/http_basic_auth.dart
generated
26
mobile/openapi/lib/auth/http_basic_auth.dart
generated
@ -1,26 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class HttpBasicAuth implements Authentication {
|
|
||||||
HttpBasicAuth({this.username = '', this.password = ''});
|
|
||||||
|
|
||||||
String username;
|
|
||||||
String password;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams,) async {
|
|
||||||
if (username.isNotEmpty && password.isNotEmpty) {
|
|
||||||
final credentials = '$username:$password';
|
|
||||||
headerParams['Authorization'] = 'Basic ${base64.encode(utf8.encode(credentials))}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
49
mobile/openapi/lib/auth/http_bearer_auth.dart
generated
49
mobile/openapi/lib/auth/http_bearer_auth.dart
generated
@ -1,49 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
typedef HttpBearerAuthProvider = String Function();
|
|
||||||
|
|
||||||
class HttpBearerAuth implements Authentication {
|
|
||||||
HttpBearerAuth();
|
|
||||||
|
|
||||||
dynamic _accessToken;
|
|
||||||
|
|
||||||
dynamic get accessToken => _accessToken;
|
|
||||||
|
|
||||||
set accessToken(dynamic accessToken) {
|
|
||||||
if (accessToken is! String && accessToken is! HttpBearerAuthProvider) {
|
|
||||||
throw ArgumentError('accessToken value must be either a String or a String Function().');
|
|
||||||
}
|
|
||||||
_accessToken = accessToken;
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams,) async {
|
|
||||||
if (_accessToken == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
String accessToken;
|
|
||||||
|
|
||||||
if (_accessToken is String) {
|
|
||||||
accessToken = _accessToken;
|
|
||||||
} else if (_accessToken is HttpBearerAuthProvider) {
|
|
||||||
accessToken = _accessToken!();
|
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (accessToken.isNotEmpty) {
|
|
||||||
headerParams['Authorization'] = 'Bearer $accessToken';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
24
mobile/openapi/lib/auth/oauth.dart
generated
24
mobile/openapi/lib/auth/oauth.dart
generated
@ -1,24 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class OAuth implements Authentication {
|
|
||||||
OAuth({this.accessToken = ''});
|
|
||||||
|
|
||||||
String accessToken;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams,) async {
|
|
||||||
if (accessToken.isNotEmpty) {
|
|
||||||
headerParams['Authorization'] = 'Bearer $accessToken';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
141
mobile/openapi/lib/model/activity_create_dto.dart
generated
141
mobile/openapi/lib/model/activity_create_dto.dart
generated
@ -1,141 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ActivityCreateDto {
|
|
||||||
/// Returns a new [ActivityCreateDto] instance.
|
|
||||||
ActivityCreateDto({
|
|
||||||
required this.albumId,
|
|
||||||
this.assetId,
|
|
||||||
this.comment,
|
|
||||||
required this.type,
|
|
||||||
});
|
|
||||||
|
|
||||||
String albumId;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? assetId;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? comment;
|
|
||||||
|
|
||||||
ReactionType type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ActivityCreateDto &&
|
|
||||||
other.albumId == albumId &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.comment == comment &&
|
|
||||||
other.type == type;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(albumId.hashCode) +
|
|
||||||
(assetId == null ? 0 : assetId!.hashCode) +
|
|
||||||
(comment == null ? 0 : comment!.hashCode) +
|
|
||||||
(type.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'ActivityCreateDto[albumId=$albumId, assetId=$assetId, comment=$comment, type=$type]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'albumId'] = this.albumId;
|
|
||||||
if (this.assetId != null) {
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
} else {
|
|
||||||
// json[r'assetId'] = null;
|
|
||||||
}
|
|
||||||
if (this.comment != null) {
|
|
||||||
json[r'comment'] = this.comment;
|
|
||||||
} else {
|
|
||||||
// json[r'comment'] = null;
|
|
||||||
}
|
|
||||||
json[r'type'] = this.type;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [ActivityCreateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static ActivityCreateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "ActivityCreateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return ActivityCreateDto(
|
|
||||||
albumId: mapValueOfType<String>(json, r'albumId')!,
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId'),
|
|
||||||
comment: mapValueOfType<String>(json, r'comment'),
|
|
||||||
type: ReactionType.fromJson(json[r'type'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<ActivityCreateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <ActivityCreateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = ActivityCreateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, ActivityCreateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, ActivityCreateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = ActivityCreateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of ActivityCreateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<ActivityCreateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<ActivityCreateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = ActivityCreateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'albumId',
|
|
||||||
'type',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
146
mobile/openapi/lib/model/activity_response_dto.dart
generated
146
mobile/openapi/lib/model/activity_response_dto.dart
generated
@ -1,146 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ActivityResponseDto {
|
|
||||||
/// Returns a new [ActivityResponseDto] instance.
|
|
||||||
ActivityResponseDto({
|
|
||||||
required this.assetId,
|
|
||||||
this.comment,
|
|
||||||
required this.createdAt,
|
|
||||||
required this.id,
|
|
||||||
required this.type,
|
|
||||||
required this.user,
|
|
||||||
});
|
|
||||||
|
|
||||||
String? assetId;
|
|
||||||
|
|
||||||
String? comment;
|
|
||||||
|
|
||||||
DateTime createdAt;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
ReactionType type;
|
|
||||||
|
|
||||||
UserResponseDto user;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ActivityResponseDto &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.comment == comment &&
|
|
||||||
other.createdAt == createdAt &&
|
|
||||||
other.id == id &&
|
|
||||||
other.type == type &&
|
|
||||||
other.user == user;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetId == null ? 0 : assetId!.hashCode) +
|
|
||||||
(comment == null ? 0 : comment!.hashCode) +
|
|
||||||
(createdAt.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(type.hashCode) +
|
|
||||||
(user.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'ActivityResponseDto[assetId=$assetId, comment=$comment, createdAt=$createdAt, id=$id, type=$type, user=$user]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.assetId != null) {
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
} else {
|
|
||||||
// json[r'assetId'] = null;
|
|
||||||
}
|
|
||||||
if (this.comment != null) {
|
|
||||||
json[r'comment'] = this.comment;
|
|
||||||
} else {
|
|
||||||
// json[r'comment'] = null;
|
|
||||||
}
|
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'type'] = this.type;
|
|
||||||
json[r'user'] = this.user;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [ActivityResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static ActivityResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "ActivityResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return ActivityResponseDto(
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId'),
|
|
||||||
comment: mapValueOfType<String>(json, r'comment'),
|
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
type: ReactionType.fromJson(json[r'type'])!,
|
|
||||||
user: UserResponseDto.fromJson(json[r'user'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<ActivityResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <ActivityResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = ActivityResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, ActivityResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, ActivityResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = ActivityResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of ActivityResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<ActivityResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<ActivityResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = ActivityResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetId',
|
|
||||||
'createdAt',
|
|
||||||
'id',
|
|
||||||
'type',
|
|
||||||
'user',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class ActivityStatisticsResponseDto {
|
|
||||||
/// Returns a new [ActivityStatisticsResponseDto] instance.
|
|
||||||
ActivityStatisticsResponseDto({
|
|
||||||
required this.comments,
|
|
||||||
required this.likes,
|
|
||||||
});
|
|
||||||
|
|
||||||
int comments;
|
|
||||||
|
|
||||||
int likes;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ActivityStatisticsResponseDto &&
|
|
||||||
other.comments == comments &&
|
|
||||||
other.likes == likes;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(comments.hashCode) +
|
|
||||||
(likes.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'ActivityStatisticsResponseDto[comments=$comments, likes=$likes]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'comments'] = this.comments;
|
|
||||||
json[r'likes'] = this.likes;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [ActivityStatisticsResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static ActivityStatisticsResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "ActivityStatisticsResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return ActivityStatisticsResponseDto(
|
|
||||||
comments: mapValueOfType<int>(json, r'comments')!,
|
|
||||||
likes: mapValueOfType<int>(json, r'likes')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<ActivityStatisticsResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <ActivityStatisticsResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = ActivityStatisticsResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, ActivityStatisticsResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, ActivityStatisticsResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = ActivityStatisticsResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of ActivityStatisticsResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<ActivityStatisticsResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<ActivityStatisticsResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = ActivityStatisticsResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'comments',
|
|
||||||
'likes',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
99
mobile/openapi/lib/model/add_users_dto.dart
generated
99
mobile/openapi/lib/model/add_users_dto.dart
generated
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AddUsersDto {
|
|
||||||
/// Returns a new [AddUsersDto] instance.
|
|
||||||
AddUsersDto({
|
|
||||||
this.albumUsers = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<AlbumUserAddDto> albumUsers;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AddUsersDto &&
|
|
||||||
_deepEquality.equals(other.albumUsers, albumUsers);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(albumUsers.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AddUsersDto[albumUsers=$albumUsers]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'albumUsers'] = this.albumUsers;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AddUsersDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AddUsersDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AddUsersDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AddUsersDto(
|
|
||||||
albumUsers: AlbumUserAddDto.listFromJson(json[r'albumUsers']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AddUsersDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AddUsersDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AddUsersDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AddUsersDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AddUsersDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AddUsersDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AddUsersDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AddUsersDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AddUsersDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AddUsersDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'albumUsers',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AdminOnboardingUpdateDto {
|
|
||||||
/// Returns a new [AdminOnboardingUpdateDto] instance.
|
|
||||||
AdminOnboardingUpdateDto({
|
|
||||||
required this.isOnboarded,
|
|
||||||
});
|
|
||||||
|
|
||||||
bool isOnboarded;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AdminOnboardingUpdateDto &&
|
|
||||||
other.isOnboarded == isOnboarded;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(isOnboarded.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AdminOnboardingUpdateDto[isOnboarded=$isOnboarded]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'isOnboarded'] = this.isOnboarded;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AdminOnboardingUpdateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AdminOnboardingUpdateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AdminOnboardingUpdateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AdminOnboardingUpdateDto(
|
|
||||||
isOnboarded: mapValueOfType<bool>(json, r'isOnboarded')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AdminOnboardingUpdateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AdminOnboardingUpdateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AdminOnboardingUpdateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AdminOnboardingUpdateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AdminOnboardingUpdateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AdminOnboardingUpdateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AdminOnboardingUpdateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AdminOnboardingUpdateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AdminOnboardingUpdateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AdminOnboardingUpdateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'isOnboarded',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
275
mobile/openapi/lib/model/album_response_dto.dart
generated
275
mobile/openapi/lib/model/album_response_dto.dart
generated
@ -1,275 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumResponseDto {
|
|
||||||
/// Returns a new [AlbumResponseDto] instance.
|
|
||||||
AlbumResponseDto({
|
|
||||||
required this.albumName,
|
|
||||||
required this.albumThumbnailAssetId,
|
|
||||||
this.albumUsers = const [],
|
|
||||||
required this.assetCount,
|
|
||||||
this.assets = const [],
|
|
||||||
required this.createdAt,
|
|
||||||
required this.description,
|
|
||||||
this.endDate,
|
|
||||||
required this.hasSharedLink,
|
|
||||||
required this.id,
|
|
||||||
required this.isActivityEnabled,
|
|
||||||
this.lastModifiedAssetTimestamp,
|
|
||||||
this.order,
|
|
||||||
required this.owner,
|
|
||||||
required this.ownerId,
|
|
||||||
required this.shared,
|
|
||||||
this.startDate,
|
|
||||||
required this.updatedAt,
|
|
||||||
});
|
|
||||||
|
|
||||||
String albumName;
|
|
||||||
|
|
||||||
String? albumThumbnailAssetId;
|
|
||||||
|
|
||||||
List<AlbumUserResponseDto> albumUsers;
|
|
||||||
|
|
||||||
int assetCount;
|
|
||||||
|
|
||||||
List<AssetResponseDto> assets;
|
|
||||||
|
|
||||||
DateTime createdAt;
|
|
||||||
|
|
||||||
String description;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
DateTime? endDate;
|
|
||||||
|
|
||||||
bool hasSharedLink;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
bool isActivityEnabled;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
DateTime? lastModifiedAssetTimestamp;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
AssetOrder? order;
|
|
||||||
|
|
||||||
UserResponseDto owner;
|
|
||||||
|
|
||||||
String ownerId;
|
|
||||||
|
|
||||||
bool shared;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
DateTime? startDate;
|
|
||||||
|
|
||||||
DateTime updatedAt;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto &&
|
|
||||||
other.albumName == albumName &&
|
|
||||||
other.albumThumbnailAssetId == albumThumbnailAssetId &&
|
|
||||||
_deepEquality.equals(other.albumUsers, albumUsers) &&
|
|
||||||
other.assetCount == assetCount &&
|
|
||||||
_deepEquality.equals(other.assets, assets) &&
|
|
||||||
other.createdAt == createdAt &&
|
|
||||||
other.description == description &&
|
|
||||||
other.endDate == endDate &&
|
|
||||||
other.hasSharedLink == hasSharedLink &&
|
|
||||||
other.id == id &&
|
|
||||||
other.isActivityEnabled == isActivityEnabled &&
|
|
||||||
other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
|
|
||||||
other.order == order &&
|
|
||||||
other.owner == owner &&
|
|
||||||
other.ownerId == ownerId &&
|
|
||||||
other.shared == shared &&
|
|
||||||
other.startDate == startDate &&
|
|
||||||
other.updatedAt == updatedAt;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(albumName.hashCode) +
|
|
||||||
(albumThumbnailAssetId == null ? 0 : albumThumbnailAssetId!.hashCode) +
|
|
||||||
(albumUsers.hashCode) +
|
|
||||||
(assetCount.hashCode) +
|
|
||||||
(assets.hashCode) +
|
|
||||||
(createdAt.hashCode) +
|
|
||||||
(description.hashCode) +
|
|
||||||
(endDate == null ? 0 : endDate!.hashCode) +
|
|
||||||
(hasSharedLink.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(isActivityEnabled.hashCode) +
|
|
||||||
(lastModifiedAssetTimestamp == null ? 0 : lastModifiedAssetTimestamp!.hashCode) +
|
|
||||||
(order == null ? 0 : order!.hashCode) +
|
|
||||||
(owner.hashCode) +
|
|
||||||
(ownerId.hashCode) +
|
|
||||||
(shared.hashCode) +
|
|
||||||
(startDate == null ? 0 : startDate!.hashCode) +
|
|
||||||
(updatedAt.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumResponseDto[albumName=$albumName, albumThumbnailAssetId=$albumThumbnailAssetId, albumUsers=$albumUsers, assetCount=$assetCount, assets=$assets, createdAt=$createdAt, description=$description, endDate=$endDate, hasSharedLink=$hasSharedLink, id=$id, isActivityEnabled=$isActivityEnabled, lastModifiedAssetTimestamp=$lastModifiedAssetTimestamp, order=$order, owner=$owner, ownerId=$ownerId, shared=$shared, startDate=$startDate, updatedAt=$updatedAt]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'albumName'] = this.albumName;
|
|
||||||
if (this.albumThumbnailAssetId != null) {
|
|
||||||
json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId;
|
|
||||||
} else {
|
|
||||||
// json[r'albumThumbnailAssetId'] = null;
|
|
||||||
}
|
|
||||||
json[r'albumUsers'] = this.albumUsers;
|
|
||||||
json[r'assetCount'] = this.assetCount;
|
|
||||||
json[r'assets'] = this.assets;
|
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
|
||||||
json[r'description'] = this.description;
|
|
||||||
if (this.endDate != null) {
|
|
||||||
json[r'endDate'] = this.endDate!.toUtc().toIso8601String();
|
|
||||||
} else {
|
|
||||||
// json[r'endDate'] = null;
|
|
||||||
}
|
|
||||||
json[r'hasSharedLink'] = this.hasSharedLink;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'isActivityEnabled'] = this.isActivityEnabled;
|
|
||||||
if (this.lastModifiedAssetTimestamp != null) {
|
|
||||||
json[r'lastModifiedAssetTimestamp'] = this.lastModifiedAssetTimestamp!.toUtc().toIso8601String();
|
|
||||||
} else {
|
|
||||||
// json[r'lastModifiedAssetTimestamp'] = null;
|
|
||||||
}
|
|
||||||
if (this.order != null) {
|
|
||||||
json[r'order'] = this.order;
|
|
||||||
} else {
|
|
||||||
// json[r'order'] = null;
|
|
||||||
}
|
|
||||||
json[r'owner'] = this.owner;
|
|
||||||
json[r'ownerId'] = this.ownerId;
|
|
||||||
json[r'shared'] = this.shared;
|
|
||||||
if (this.startDate != null) {
|
|
||||||
json[r'startDate'] = this.startDate!.toUtc().toIso8601String();
|
|
||||||
} else {
|
|
||||||
// json[r'startDate'] = null;
|
|
||||||
}
|
|
||||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumResponseDto(
|
|
||||||
albumName: mapValueOfType<String>(json, r'albumName')!,
|
|
||||||
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
|
|
||||||
albumUsers: AlbumUserResponseDto.listFromJson(json[r'albumUsers']),
|
|
||||||
assetCount: mapValueOfType<int>(json, r'assetCount')!,
|
|
||||||
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
|
||||||
description: mapValueOfType<String>(json, r'description')!,
|
|
||||||
endDate: mapDateTime(json, r'endDate', r''),
|
|
||||||
hasSharedLink: mapValueOfType<bool>(json, r'hasSharedLink')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
isActivityEnabled: mapValueOfType<bool>(json, r'isActivityEnabled')!,
|
|
||||||
lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''),
|
|
||||||
order: AssetOrder.fromJson(json[r'order']),
|
|
||||||
owner: UserResponseDto.fromJson(json[r'owner'])!,
|
|
||||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
|
||||||
shared: mapValueOfType<bool>(json, r'shared')!,
|
|
||||||
startDate: mapDateTime(json, r'startDate', r''),
|
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'albumName',
|
|
||||||
'albumThumbnailAssetId',
|
|
||||||
'albumUsers',
|
|
||||||
'assetCount',
|
|
||||||
'assets',
|
|
||||||
'createdAt',
|
|
||||||
'description',
|
|
||||||
'hasSharedLink',
|
|
||||||
'id',
|
|
||||||
'isActivityEnabled',
|
|
||||||
'owner',
|
|
||||||
'ownerId',
|
|
||||||
'shared',
|
|
||||||
'updatedAt',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumStatisticsResponseDto {
|
|
||||||
/// Returns a new [AlbumStatisticsResponseDto] instance.
|
|
||||||
AlbumStatisticsResponseDto({
|
|
||||||
required this.notShared,
|
|
||||||
required this.owned,
|
|
||||||
required this.shared,
|
|
||||||
});
|
|
||||||
|
|
||||||
int notShared;
|
|
||||||
|
|
||||||
int owned;
|
|
||||||
|
|
||||||
int shared;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumStatisticsResponseDto &&
|
|
||||||
other.notShared == notShared &&
|
|
||||||
other.owned == owned &&
|
|
||||||
other.shared == shared;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(notShared.hashCode) +
|
|
||||||
(owned.hashCode) +
|
|
||||||
(shared.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumStatisticsResponseDto[notShared=$notShared, owned=$owned, shared=$shared]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'notShared'] = this.notShared;
|
|
||||||
json[r'owned'] = this.owned;
|
|
||||||
json[r'shared'] = this.shared;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumStatisticsResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumStatisticsResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumStatisticsResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumStatisticsResponseDto(
|
|
||||||
notShared: mapValueOfType<int>(json, r'notShared')!,
|
|
||||||
owned: mapValueOfType<int>(json, r'owned')!,
|
|
||||||
shared: mapValueOfType<int>(json, r'shared')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumStatisticsResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumStatisticsResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumStatisticsResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumStatisticsResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumStatisticsResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumStatisticsResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumStatisticsResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumStatisticsResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumStatisticsResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumStatisticsResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'notShared',
|
|
||||||
'owned',
|
|
||||||
'shared',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
106
mobile/openapi/lib/model/album_user_add_dto.dart
generated
106
mobile/openapi/lib/model/album_user_add_dto.dart
generated
@ -1,106 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumUserAddDto {
|
|
||||||
/// Returns a new [AlbumUserAddDto] instance.
|
|
||||||
AlbumUserAddDto({
|
|
||||||
this.role = AlbumUserRole.editor,
|
|
||||||
required this.userId,
|
|
||||||
});
|
|
||||||
|
|
||||||
AlbumUserRole role;
|
|
||||||
|
|
||||||
String userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumUserAddDto &&
|
|
||||||
other.role == role &&
|
|
||||||
other.userId == userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(role.hashCode) +
|
|
||||||
(userId.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumUserAddDto[role=$role, userId=$userId]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'role'] = this.role;
|
|
||||||
json[r'userId'] = this.userId;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumUserAddDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumUserAddDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumUserAddDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumUserAddDto(
|
|
||||||
role: AlbumUserRole.fromJson(json[r'role']) ?? AlbumUserRole.editor,
|
|
||||||
userId: mapValueOfType<String>(json, r'userId')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumUserAddDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumUserAddDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumUserAddDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumUserAddDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumUserAddDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumUserAddDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumUserAddDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumUserAddDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumUserAddDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumUserAddDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'userId',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
107
mobile/openapi/lib/model/album_user_create_dto.dart
generated
107
mobile/openapi/lib/model/album_user_create_dto.dart
generated
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumUserCreateDto {
|
|
||||||
/// Returns a new [AlbumUserCreateDto] instance.
|
|
||||||
AlbumUserCreateDto({
|
|
||||||
required this.role,
|
|
||||||
required this.userId,
|
|
||||||
});
|
|
||||||
|
|
||||||
AlbumUserRole role;
|
|
||||||
|
|
||||||
String userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumUserCreateDto &&
|
|
||||||
other.role == role &&
|
|
||||||
other.userId == userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(role.hashCode) +
|
|
||||||
(userId.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumUserCreateDto[role=$role, userId=$userId]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'role'] = this.role;
|
|
||||||
json[r'userId'] = this.userId;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumUserCreateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumUserCreateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumUserCreateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumUserCreateDto(
|
|
||||||
role: AlbumUserRole.fromJson(json[r'role'])!,
|
|
||||||
userId: mapValueOfType<String>(json, r'userId')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumUserCreateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumUserCreateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumUserCreateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumUserCreateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumUserCreateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumUserCreateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumUserCreateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumUserCreateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumUserCreateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumUserCreateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'role',
|
|
||||||
'userId',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
107
mobile/openapi/lib/model/album_user_response_dto.dart
generated
107
mobile/openapi/lib/model/album_user_response_dto.dart
generated
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumUserResponseDto {
|
|
||||||
/// Returns a new [AlbumUserResponseDto] instance.
|
|
||||||
AlbumUserResponseDto({
|
|
||||||
required this.role,
|
|
||||||
required this.user,
|
|
||||||
});
|
|
||||||
|
|
||||||
AlbumUserRole role;
|
|
||||||
|
|
||||||
UserResponseDto user;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumUserResponseDto &&
|
|
||||||
other.role == role &&
|
|
||||||
other.user == user;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(role.hashCode) +
|
|
||||||
(user.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumUserResponseDto[role=$role, user=$user]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'role'] = this.role;
|
|
||||||
json[r'user'] = this.user;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumUserResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumUserResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumUserResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumUserResponseDto(
|
|
||||||
role: AlbumUserRole.fromJson(json[r'role'])!,
|
|
||||||
user: UserResponseDto.fromJson(json[r'user'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumUserResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumUserResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumUserResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumUserResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumUserResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumUserResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumUserResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumUserResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumUserResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumUserResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'role',
|
|
||||||
'user',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
85
mobile/openapi/lib/model/album_user_role.dart
generated
85
mobile/openapi/lib/model/album_user_role.dart
generated
@ -1,85 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AlbumUserRole {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AlbumUserRole._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const editor = AlbumUserRole._(r'editor');
|
|
||||||
static const viewer = AlbumUserRole._(r'viewer');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AlbumUserRole].
|
|
||||||
static const values = <AlbumUserRole>[
|
|
||||||
editor,
|
|
||||||
viewer,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AlbumUserRole? fromJson(dynamic value) => AlbumUserRoleTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AlbumUserRole> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumUserRole>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumUserRole.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AlbumUserRole] to String,
|
|
||||||
/// and [decode] dynamic data back to [AlbumUserRole].
|
|
||||||
class AlbumUserRoleTypeTransformer {
|
|
||||||
factory AlbumUserRoleTypeTransformer() => _instance ??= const AlbumUserRoleTypeTransformer._();
|
|
||||||
|
|
||||||
const AlbumUserRoleTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AlbumUserRole data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AlbumUserRole.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AlbumUserRole? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'editor': return AlbumUserRole.editor;
|
|
||||||
case r'viewer': return AlbumUserRole.viewer;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AlbumUserRoleTypeTransformer] instance.
|
|
||||||
static AlbumUserRoleTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
111
mobile/openapi/lib/model/albums_add_assets_dto.dart
generated
111
mobile/openapi/lib/model/albums_add_assets_dto.dart
generated
@ -1,111 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumsAddAssetsDto {
|
|
||||||
/// Returns a new [AlbumsAddAssetsDto] instance.
|
|
||||||
AlbumsAddAssetsDto({
|
|
||||||
this.albumIds = const [],
|
|
||||||
this.assetIds = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<String> albumIds;
|
|
||||||
|
|
||||||
List<String> assetIds;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumsAddAssetsDto &&
|
|
||||||
_deepEquality.equals(other.albumIds, albumIds) &&
|
|
||||||
_deepEquality.equals(other.assetIds, assetIds);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(albumIds.hashCode) +
|
|
||||||
(assetIds.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumsAddAssetsDto[albumIds=$albumIds, assetIds=$assetIds]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'albumIds'] = this.albumIds;
|
|
||||||
json[r'assetIds'] = this.assetIds;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumsAddAssetsDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumsAddAssetsDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumsAddAssetsDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumsAddAssetsDto(
|
|
||||||
albumIds: json[r'albumIds'] is Iterable
|
|
||||||
? (json[r'albumIds'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
assetIds: json[r'assetIds'] is Iterable
|
|
||||||
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumsAddAssetsDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumsAddAssetsDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumsAddAssetsDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumsAddAssetsDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumsAddAssetsDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumsAddAssetsDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumsAddAssetsDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumsAddAssetsDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumsAddAssetsDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumsAddAssetsDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'albumIds',
|
|
||||||
'assetIds',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,132 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumsAddAssetsResponseDto {
|
|
||||||
/// Returns a new [AlbumsAddAssetsResponseDto] instance.
|
|
||||||
AlbumsAddAssetsResponseDto({
|
|
||||||
required this.albumSuccessCount,
|
|
||||||
required this.assetSuccessCount,
|
|
||||||
this.error,
|
|
||||||
required this.success,
|
|
||||||
});
|
|
||||||
|
|
||||||
int albumSuccessCount;
|
|
||||||
|
|
||||||
int assetSuccessCount;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
BulkIdErrorReason? error;
|
|
||||||
|
|
||||||
bool success;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumsAddAssetsResponseDto &&
|
|
||||||
other.albumSuccessCount == albumSuccessCount &&
|
|
||||||
other.assetSuccessCount == assetSuccessCount &&
|
|
||||||
other.error == error &&
|
|
||||||
other.success == success;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(albumSuccessCount.hashCode) +
|
|
||||||
(assetSuccessCount.hashCode) +
|
|
||||||
(error == null ? 0 : error!.hashCode) +
|
|
||||||
(success.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumsAddAssetsResponseDto[albumSuccessCount=$albumSuccessCount, assetSuccessCount=$assetSuccessCount, error=$error, success=$success]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'albumSuccessCount'] = this.albumSuccessCount;
|
|
||||||
json[r'assetSuccessCount'] = this.assetSuccessCount;
|
|
||||||
if (this.error != null) {
|
|
||||||
json[r'error'] = this.error;
|
|
||||||
} else {
|
|
||||||
// json[r'error'] = null;
|
|
||||||
}
|
|
||||||
json[r'success'] = this.success;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumsAddAssetsResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumsAddAssetsResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumsAddAssetsResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumsAddAssetsResponseDto(
|
|
||||||
albumSuccessCount: mapValueOfType<int>(json, r'albumSuccessCount')!,
|
|
||||||
assetSuccessCount: mapValueOfType<int>(json, r'assetSuccessCount')!,
|
|
||||||
error: BulkIdErrorReason.fromJson(json[r'error']),
|
|
||||||
success: mapValueOfType<bool>(json, r'success')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumsAddAssetsResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumsAddAssetsResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumsAddAssetsResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumsAddAssetsResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumsAddAssetsResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumsAddAssetsResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumsAddAssetsResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumsAddAssetsResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumsAddAssetsResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumsAddAssetsResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'albumSuccessCount',
|
|
||||||
'assetSuccessCount',
|
|
||||||
'success',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
99
mobile/openapi/lib/model/albums_response.dart
generated
99
mobile/openapi/lib/model/albums_response.dart
generated
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumsResponse {
|
|
||||||
/// Returns a new [AlbumsResponse] instance.
|
|
||||||
AlbumsResponse({
|
|
||||||
this.defaultAssetOrder = AssetOrder.desc,
|
|
||||||
});
|
|
||||||
|
|
||||||
AssetOrder defaultAssetOrder;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumsResponse &&
|
|
||||||
other.defaultAssetOrder == defaultAssetOrder;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(defaultAssetOrder.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumsResponse[defaultAssetOrder=$defaultAssetOrder]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'defaultAssetOrder'] = this.defaultAssetOrder;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumsResponse] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumsResponse? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumsResponse");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumsResponse(
|
|
||||||
defaultAssetOrder: AssetOrder.fromJson(json[r'defaultAssetOrder'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumsResponse> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumsResponse>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumsResponse.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumsResponse> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumsResponse>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumsResponse.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumsResponse-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumsResponse>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumsResponse>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumsResponse.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'defaultAssetOrder',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
108
mobile/openapi/lib/model/albums_update.dart
generated
108
mobile/openapi/lib/model/albums_update.dart
generated
@ -1,108 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AlbumsUpdate {
|
|
||||||
/// Returns a new [AlbumsUpdate] instance.
|
|
||||||
AlbumsUpdate({
|
|
||||||
this.defaultAssetOrder,
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
AssetOrder? defaultAssetOrder;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AlbumsUpdate &&
|
|
||||||
other.defaultAssetOrder == defaultAssetOrder;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(defaultAssetOrder == null ? 0 : defaultAssetOrder!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AlbumsUpdate[defaultAssetOrder=$defaultAssetOrder]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.defaultAssetOrder != null) {
|
|
||||||
json[r'defaultAssetOrder'] = this.defaultAssetOrder;
|
|
||||||
} else {
|
|
||||||
// json[r'defaultAssetOrder'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AlbumsUpdate] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AlbumsUpdate? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AlbumsUpdate");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AlbumsUpdate(
|
|
||||||
defaultAssetOrder: AssetOrder.fromJson(json[r'defaultAssetOrder']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AlbumsUpdate> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AlbumsUpdate>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AlbumsUpdate.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AlbumsUpdate> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AlbumsUpdate>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AlbumsUpdate.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AlbumsUpdate-objects as value to a dart map
|
|
||||||
static Map<String, List<AlbumsUpdate>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AlbumsUpdate>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AlbumsUpdate.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,211 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AllJobStatusResponseDto {
|
|
||||||
/// Returns a new [AllJobStatusResponseDto] instance.
|
|
||||||
AllJobStatusResponseDto({
|
|
||||||
required this.backgroundTask,
|
|
||||||
required this.backupDatabase,
|
|
||||||
required this.duplicateDetection,
|
|
||||||
required this.faceDetection,
|
|
||||||
required this.facialRecognition,
|
|
||||||
required this.library_,
|
|
||||||
required this.metadataExtraction,
|
|
||||||
required this.migration,
|
|
||||||
required this.notifications,
|
|
||||||
required this.search,
|
|
||||||
required this.sidecar,
|
|
||||||
required this.smartSearch,
|
|
||||||
required this.storageTemplateMigration,
|
|
||||||
required this.thumbnailGeneration,
|
|
||||||
required this.videoConversion,
|
|
||||||
});
|
|
||||||
|
|
||||||
JobStatusDto backgroundTask;
|
|
||||||
|
|
||||||
JobStatusDto backupDatabase;
|
|
||||||
|
|
||||||
JobStatusDto duplicateDetection;
|
|
||||||
|
|
||||||
JobStatusDto faceDetection;
|
|
||||||
|
|
||||||
JobStatusDto facialRecognition;
|
|
||||||
|
|
||||||
JobStatusDto library_;
|
|
||||||
|
|
||||||
JobStatusDto metadataExtraction;
|
|
||||||
|
|
||||||
JobStatusDto migration;
|
|
||||||
|
|
||||||
JobStatusDto notifications;
|
|
||||||
|
|
||||||
JobStatusDto search;
|
|
||||||
|
|
||||||
JobStatusDto sidecar;
|
|
||||||
|
|
||||||
JobStatusDto smartSearch;
|
|
||||||
|
|
||||||
JobStatusDto storageTemplateMigration;
|
|
||||||
|
|
||||||
JobStatusDto thumbnailGeneration;
|
|
||||||
|
|
||||||
JobStatusDto videoConversion;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
|
|
||||||
other.backgroundTask == backgroundTask &&
|
|
||||||
other.backupDatabase == backupDatabase &&
|
|
||||||
other.duplicateDetection == duplicateDetection &&
|
|
||||||
other.faceDetection == faceDetection &&
|
|
||||||
other.facialRecognition == facialRecognition &&
|
|
||||||
other.library_ == library_ &&
|
|
||||||
other.metadataExtraction == metadataExtraction &&
|
|
||||||
other.migration == migration &&
|
|
||||||
other.notifications == notifications &&
|
|
||||||
other.search == search &&
|
|
||||||
other.sidecar == sidecar &&
|
|
||||||
other.smartSearch == smartSearch &&
|
|
||||||
other.storageTemplateMigration == storageTemplateMigration &&
|
|
||||||
other.thumbnailGeneration == thumbnailGeneration &&
|
|
||||||
other.videoConversion == videoConversion;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(backgroundTask.hashCode) +
|
|
||||||
(backupDatabase.hashCode) +
|
|
||||||
(duplicateDetection.hashCode) +
|
|
||||||
(faceDetection.hashCode) +
|
|
||||||
(facialRecognition.hashCode) +
|
|
||||||
(library_.hashCode) +
|
|
||||||
(metadataExtraction.hashCode) +
|
|
||||||
(migration.hashCode) +
|
|
||||||
(notifications.hashCode) +
|
|
||||||
(search.hashCode) +
|
|
||||||
(sidecar.hashCode) +
|
|
||||||
(smartSearch.hashCode) +
|
|
||||||
(storageTemplateMigration.hashCode) +
|
|
||||||
(thumbnailGeneration.hashCode) +
|
|
||||||
(videoConversion.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AllJobStatusResponseDto[backgroundTask=$backgroundTask, backupDatabase=$backupDatabase, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, notifications=$notifications, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'backgroundTask'] = this.backgroundTask;
|
|
||||||
json[r'backupDatabase'] = this.backupDatabase;
|
|
||||||
json[r'duplicateDetection'] = this.duplicateDetection;
|
|
||||||
json[r'faceDetection'] = this.faceDetection;
|
|
||||||
json[r'facialRecognition'] = this.facialRecognition;
|
|
||||||
json[r'library'] = this.library_;
|
|
||||||
json[r'metadataExtraction'] = this.metadataExtraction;
|
|
||||||
json[r'migration'] = this.migration;
|
|
||||||
json[r'notifications'] = this.notifications;
|
|
||||||
json[r'search'] = this.search;
|
|
||||||
json[r'sidecar'] = this.sidecar;
|
|
||||||
json[r'smartSearch'] = this.smartSearch;
|
|
||||||
json[r'storageTemplateMigration'] = this.storageTemplateMigration;
|
|
||||||
json[r'thumbnailGeneration'] = this.thumbnailGeneration;
|
|
||||||
json[r'videoConversion'] = this.videoConversion;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AllJobStatusResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AllJobStatusResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AllJobStatusResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AllJobStatusResponseDto(
|
|
||||||
backgroundTask: JobStatusDto.fromJson(json[r'backgroundTask'])!,
|
|
||||||
backupDatabase: JobStatusDto.fromJson(json[r'backupDatabase'])!,
|
|
||||||
duplicateDetection: JobStatusDto.fromJson(json[r'duplicateDetection'])!,
|
|
||||||
faceDetection: JobStatusDto.fromJson(json[r'faceDetection'])!,
|
|
||||||
facialRecognition: JobStatusDto.fromJson(json[r'facialRecognition'])!,
|
|
||||||
library_: JobStatusDto.fromJson(json[r'library'])!,
|
|
||||||
metadataExtraction: JobStatusDto.fromJson(json[r'metadataExtraction'])!,
|
|
||||||
migration: JobStatusDto.fromJson(json[r'migration'])!,
|
|
||||||
notifications: JobStatusDto.fromJson(json[r'notifications'])!,
|
|
||||||
search: JobStatusDto.fromJson(json[r'search'])!,
|
|
||||||
sidecar: JobStatusDto.fromJson(json[r'sidecar'])!,
|
|
||||||
smartSearch: JobStatusDto.fromJson(json[r'smartSearch'])!,
|
|
||||||
storageTemplateMigration: JobStatusDto.fromJson(json[r'storageTemplateMigration'])!,
|
|
||||||
thumbnailGeneration: JobStatusDto.fromJson(json[r'thumbnailGeneration'])!,
|
|
||||||
videoConversion: JobStatusDto.fromJson(json[r'videoConversion'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AllJobStatusResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AllJobStatusResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AllJobStatusResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AllJobStatusResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AllJobStatusResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AllJobStatusResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AllJobStatusResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AllJobStatusResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AllJobStatusResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AllJobStatusResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'backgroundTask',
|
|
||||||
'backupDatabase',
|
|
||||||
'duplicateDetection',
|
|
||||||
'faceDetection',
|
|
||||||
'facialRecognition',
|
|
||||||
'library',
|
|
||||||
'metadataExtraction',
|
|
||||||
'migration',
|
|
||||||
'notifications',
|
|
||||||
'search',
|
|
||||||
'sidecar',
|
|
||||||
'smartSearch',
|
|
||||||
'storageTemplateMigration',
|
|
||||||
'thumbnailGeneration',
|
|
||||||
'videoConversion',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
116
mobile/openapi/lib/model/api_key_create_dto.dart
generated
116
mobile/openapi/lib/model/api_key_create_dto.dart
generated
@ -1,116 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class APIKeyCreateDto {
|
|
||||||
/// Returns a new [APIKeyCreateDto] instance.
|
|
||||||
APIKeyCreateDto({
|
|
||||||
this.name,
|
|
||||||
this.permissions = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? name;
|
|
||||||
|
|
||||||
List<Permission> permissions;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto &&
|
|
||||||
other.name == name &&
|
|
||||||
_deepEquality.equals(other.permissions, permissions);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(name == null ? 0 : name!.hashCode) +
|
|
||||||
(permissions.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'APIKeyCreateDto[name=$name, permissions=$permissions]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.name != null) {
|
|
||||||
json[r'name'] = this.name;
|
|
||||||
} else {
|
|
||||||
// json[r'name'] = null;
|
|
||||||
}
|
|
||||||
json[r'permissions'] = this.permissions;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [APIKeyCreateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static APIKeyCreateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "APIKeyCreateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return APIKeyCreateDto(
|
|
||||||
name: mapValueOfType<String>(json, r'name'),
|
|
||||||
permissions: Permission.listFromJson(json[r'permissions']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<APIKeyCreateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <APIKeyCreateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = APIKeyCreateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, APIKeyCreateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, APIKeyCreateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = APIKeyCreateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of APIKeyCreateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<APIKeyCreateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<APIKeyCreateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = APIKeyCreateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'permissions',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class APIKeyCreateResponseDto {
|
|
||||||
/// Returns a new [APIKeyCreateResponseDto] instance.
|
|
||||||
APIKeyCreateResponseDto({
|
|
||||||
required this.apiKey,
|
|
||||||
required this.secret,
|
|
||||||
});
|
|
||||||
|
|
||||||
APIKeyResponseDto apiKey;
|
|
||||||
|
|
||||||
String secret;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto &&
|
|
||||||
other.apiKey == apiKey &&
|
|
||||||
other.secret == secret;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(apiKey.hashCode) +
|
|
||||||
(secret.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'APIKeyCreateResponseDto[apiKey=$apiKey, secret=$secret]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'apiKey'] = this.apiKey;
|
|
||||||
json[r'secret'] = this.secret;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [APIKeyCreateResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static APIKeyCreateResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "APIKeyCreateResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return APIKeyCreateResponseDto(
|
|
||||||
apiKey: APIKeyResponseDto.fromJson(json[r'apiKey'])!,
|
|
||||||
secret: mapValueOfType<String>(json, r'secret')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<APIKeyCreateResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <APIKeyCreateResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = APIKeyCreateResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, APIKeyCreateResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, APIKeyCreateResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = APIKeyCreateResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of APIKeyCreateResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<APIKeyCreateResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<APIKeyCreateResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = APIKeyCreateResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'apiKey',
|
|
||||||
'secret',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
131
mobile/openapi/lib/model/api_key_response_dto.dart
generated
131
mobile/openapi/lib/model/api_key_response_dto.dart
generated
@ -1,131 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class APIKeyResponseDto {
|
|
||||||
/// Returns a new [APIKeyResponseDto] instance.
|
|
||||||
APIKeyResponseDto({
|
|
||||||
required this.createdAt,
|
|
||||||
required this.id,
|
|
||||||
required this.name,
|
|
||||||
this.permissions = const [],
|
|
||||||
required this.updatedAt,
|
|
||||||
});
|
|
||||||
|
|
||||||
DateTime createdAt;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
String name;
|
|
||||||
|
|
||||||
List<Permission> permissions;
|
|
||||||
|
|
||||||
DateTime updatedAt;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto &&
|
|
||||||
other.createdAt == createdAt &&
|
|
||||||
other.id == id &&
|
|
||||||
other.name == name &&
|
|
||||||
_deepEquality.equals(other.permissions, permissions) &&
|
|
||||||
other.updatedAt == updatedAt;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(createdAt.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(name.hashCode) +
|
|
||||||
(permissions.hashCode) +
|
|
||||||
(updatedAt.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'APIKeyResponseDto[createdAt=$createdAt, id=$id, name=$name, permissions=$permissions, updatedAt=$updatedAt]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'name'] = this.name;
|
|
||||||
json[r'permissions'] = this.permissions;
|
|
||||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [APIKeyResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static APIKeyResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "APIKeyResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return APIKeyResponseDto(
|
|
||||||
createdAt: mapDateTime(json, r'createdAt', r'')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
name: mapValueOfType<String>(json, r'name')!,
|
|
||||||
permissions: Permission.listFromJson(json[r'permissions']),
|
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<APIKeyResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <APIKeyResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = APIKeyResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, APIKeyResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, APIKeyResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = APIKeyResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of APIKeyResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<APIKeyResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<APIKeyResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = APIKeyResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'createdAt',
|
|
||||||
'id',
|
|
||||||
'name',
|
|
||||||
'permissions',
|
|
||||||
'updatedAt',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
115
mobile/openapi/lib/model/api_key_update_dto.dart
generated
115
mobile/openapi/lib/model/api_key_update_dto.dart
generated
@ -1,115 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class APIKeyUpdateDto {
|
|
||||||
/// Returns a new [APIKeyUpdateDto] instance.
|
|
||||||
APIKeyUpdateDto({
|
|
||||||
this.name,
|
|
||||||
this.permissions = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? name;
|
|
||||||
|
|
||||||
List<Permission> permissions;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is APIKeyUpdateDto &&
|
|
||||||
other.name == name &&
|
|
||||||
_deepEquality.equals(other.permissions, permissions);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(name == null ? 0 : name!.hashCode) +
|
|
||||||
(permissions.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'APIKeyUpdateDto[name=$name, permissions=$permissions]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.name != null) {
|
|
||||||
json[r'name'] = this.name;
|
|
||||||
} else {
|
|
||||||
// json[r'name'] = null;
|
|
||||||
}
|
|
||||||
json[r'permissions'] = this.permissions;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [APIKeyUpdateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static APIKeyUpdateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "APIKeyUpdateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return APIKeyUpdateDto(
|
|
||||||
name: mapValueOfType<String>(json, r'name'),
|
|
||||||
permissions: Permission.listFromJson(json[r'permissions']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<APIKeyUpdateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <APIKeyUpdateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = APIKeyUpdateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, APIKeyUpdateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, APIKeyUpdateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = APIKeyUpdateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of APIKeyUpdateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<APIKeyUpdateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<APIKeyUpdateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = APIKeyUpdateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
118
mobile/openapi/lib/model/asset_bulk_delete_dto.dart
generated
118
mobile/openapi/lib/model/asset_bulk_delete_dto.dart
generated
@ -1,118 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkDeleteDto {
|
|
||||||
/// Returns a new [AssetBulkDeleteDto] instance.
|
|
||||||
AssetBulkDeleteDto({
|
|
||||||
this.force,
|
|
||||||
this.ids = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? force;
|
|
||||||
|
|
||||||
List<String> ids;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkDeleteDto &&
|
|
||||||
other.force == force &&
|
|
||||||
_deepEquality.equals(other.ids, ids);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(force == null ? 0 : force!.hashCode) +
|
|
||||||
(ids.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkDeleteDto[force=$force, ids=$ids]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.force != null) {
|
|
||||||
json[r'force'] = this.force;
|
|
||||||
} else {
|
|
||||||
// json[r'force'] = null;
|
|
||||||
}
|
|
||||||
json[r'ids'] = this.ids;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkDeleteDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkDeleteDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkDeleteDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkDeleteDto(
|
|
||||||
force: mapValueOfType<bool>(json, r'force'),
|
|
||||||
ids: json[r'ids'] is Iterable
|
|
||||||
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkDeleteDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkDeleteDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkDeleteDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkDeleteDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkDeleteDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkDeleteDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkDeleteDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkDeleteDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkDeleteDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkDeleteDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'ids',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
267
mobile/openapi/lib/model/asset_bulk_update_dto.dart
generated
267
mobile/openapi/lib/model/asset_bulk_update_dto.dart
generated
@ -1,267 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkUpdateDto {
|
|
||||||
/// Returns a new [AssetBulkUpdateDto] instance.
|
|
||||||
AssetBulkUpdateDto({
|
|
||||||
this.dateTimeOriginal,
|
|
||||||
this.dateTimeRelative,
|
|
||||||
this.description,
|
|
||||||
this.duplicateId,
|
|
||||||
this.ids = const [],
|
|
||||||
this.isFavorite,
|
|
||||||
this.latitude,
|
|
||||||
this.longitude,
|
|
||||||
this.rating,
|
|
||||||
this.timeZone,
|
|
||||||
this.visibility,
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? dateTimeOriginal;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
num? dateTimeRelative;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? description;
|
|
||||||
|
|
||||||
String? duplicateId;
|
|
||||||
|
|
||||||
List<String> ids;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? isFavorite;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
num? latitude;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
num? longitude;
|
|
||||||
|
|
||||||
/// Minimum value: -1
|
|
||||||
/// Maximum value: 5
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
num? rating;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? timeZone;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
AssetVisibility? visibility;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUpdateDto &&
|
|
||||||
other.dateTimeOriginal == dateTimeOriginal &&
|
|
||||||
other.dateTimeRelative == dateTimeRelative &&
|
|
||||||
other.description == description &&
|
|
||||||
other.duplicateId == duplicateId &&
|
|
||||||
_deepEquality.equals(other.ids, ids) &&
|
|
||||||
other.isFavorite == isFavorite &&
|
|
||||||
other.latitude == latitude &&
|
|
||||||
other.longitude == longitude &&
|
|
||||||
other.rating == rating &&
|
|
||||||
other.timeZone == timeZone &&
|
|
||||||
other.visibility == visibility;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
|
|
||||||
(dateTimeRelative == null ? 0 : dateTimeRelative!.hashCode) +
|
|
||||||
(description == null ? 0 : description!.hashCode) +
|
|
||||||
(duplicateId == null ? 0 : duplicateId!.hashCode) +
|
|
||||||
(ids.hashCode) +
|
|
||||||
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
|
||||||
(longitude == null ? 0 : longitude!.hashCode) +
|
|
||||||
(rating == null ? 0 : rating!.hashCode) +
|
|
||||||
(timeZone == null ? 0 : timeZone!.hashCode) +
|
|
||||||
(visibility == null ? 0 : visibility!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkUpdateDto[dateTimeOriginal=$dateTimeOriginal, dateTimeRelative=$dateTimeRelative, description=$description, duplicateId=$duplicateId, ids=$ids, isFavorite=$isFavorite, latitude=$latitude, longitude=$longitude, rating=$rating, timeZone=$timeZone, visibility=$visibility]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.dateTimeOriginal != null) {
|
|
||||||
json[r'dateTimeOriginal'] = this.dateTimeOriginal;
|
|
||||||
} else {
|
|
||||||
// json[r'dateTimeOriginal'] = null;
|
|
||||||
}
|
|
||||||
if (this.dateTimeRelative != null) {
|
|
||||||
json[r'dateTimeRelative'] = this.dateTimeRelative;
|
|
||||||
} else {
|
|
||||||
// json[r'dateTimeRelative'] = null;
|
|
||||||
}
|
|
||||||
if (this.description != null) {
|
|
||||||
json[r'description'] = this.description;
|
|
||||||
} else {
|
|
||||||
// json[r'description'] = null;
|
|
||||||
}
|
|
||||||
if (this.duplicateId != null) {
|
|
||||||
json[r'duplicateId'] = this.duplicateId;
|
|
||||||
} else {
|
|
||||||
// json[r'duplicateId'] = null;
|
|
||||||
}
|
|
||||||
json[r'ids'] = this.ids;
|
|
||||||
if (this.isFavorite != null) {
|
|
||||||
json[r'isFavorite'] = this.isFavorite;
|
|
||||||
} else {
|
|
||||||
// json[r'isFavorite'] = null;
|
|
||||||
}
|
|
||||||
if (this.latitude != null) {
|
|
||||||
json[r'latitude'] = this.latitude;
|
|
||||||
} else {
|
|
||||||
// json[r'latitude'] = null;
|
|
||||||
}
|
|
||||||
if (this.longitude != null) {
|
|
||||||
json[r'longitude'] = this.longitude;
|
|
||||||
} else {
|
|
||||||
// json[r'longitude'] = null;
|
|
||||||
}
|
|
||||||
if (this.rating != null) {
|
|
||||||
json[r'rating'] = this.rating;
|
|
||||||
} else {
|
|
||||||
// json[r'rating'] = null;
|
|
||||||
}
|
|
||||||
if (this.timeZone != null) {
|
|
||||||
json[r'timeZone'] = this.timeZone;
|
|
||||||
} else {
|
|
||||||
// json[r'timeZone'] = null;
|
|
||||||
}
|
|
||||||
if (this.visibility != null) {
|
|
||||||
json[r'visibility'] = this.visibility;
|
|
||||||
} else {
|
|
||||||
// json[r'visibility'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkUpdateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkUpdateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkUpdateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkUpdateDto(
|
|
||||||
dateTimeOriginal: mapValueOfType<String>(json, r'dateTimeOriginal'),
|
|
||||||
dateTimeRelative: num.parse('${json[r'dateTimeRelative']}'),
|
|
||||||
description: mapValueOfType<String>(json, r'description'),
|
|
||||||
duplicateId: mapValueOfType<String>(json, r'duplicateId'),
|
|
||||||
ids: json[r'ids'] is Iterable
|
|
||||||
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
|
||||||
latitude: num.parse('${json[r'latitude']}'),
|
|
||||||
longitude: num.parse('${json[r'longitude']}'),
|
|
||||||
rating: num.parse('${json[r'rating']}'),
|
|
||||||
timeZone: mapValueOfType<String>(json, r'timeZone'),
|
|
||||||
visibility: AssetVisibility.fromJson(json[r'visibility']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkUpdateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUpdateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUpdateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkUpdateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkUpdateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkUpdateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkUpdateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkUpdateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkUpdateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkUpdateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'ids',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckDto {
|
|
||||||
/// Returns a new [AssetBulkUploadCheckDto] instance.
|
|
||||||
AssetBulkUploadCheckDto({
|
|
||||||
this.assets = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<AssetBulkUploadCheckItem> assets;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto &&
|
|
||||||
_deepEquality.equals(other.assets, assets);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assets.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkUploadCheckDto[assets=$assets]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assets'] = this.assets;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkUploadCheckDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkUploadCheckDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkUploadCheckDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkUploadCheckDto(
|
|
||||||
assets: AssetBulkUploadCheckItem.listFromJson(json[r'assets']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkUploadCheckDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkUploadCheckDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkUploadCheckDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkUploadCheckDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkUploadCheckDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkUploadCheckDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkUploadCheckDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assets',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,108 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckItem {
|
|
||||||
/// Returns a new [AssetBulkUploadCheckItem] instance.
|
|
||||||
AssetBulkUploadCheckItem({
|
|
||||||
required this.checksum,
|
|
||||||
required this.id,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// base64 or hex encoded sha1 hash
|
|
||||||
String checksum;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem &&
|
|
||||||
other.checksum == checksum &&
|
|
||||||
other.id == id;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(checksum.hashCode) +
|
|
||||||
(id.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkUploadCheckItem[checksum=$checksum, id=$id]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'checksum'] = this.checksum;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkUploadCheckItem] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkUploadCheckItem? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkUploadCheckItem");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkUploadCheckItem(
|
|
||||||
checksum: mapValueOfType<String>(json, r'checksum')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckItem> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckItem>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckItem.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkUploadCheckItem> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkUploadCheckItem>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkUploadCheckItem.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkUploadCheckItem-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkUploadCheckItem>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkUploadCheckItem>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkUploadCheckItem.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'checksum',
|
|
||||||
'id',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckResponseDto {
|
|
||||||
/// Returns a new [AssetBulkUploadCheckResponseDto] instance.
|
|
||||||
AssetBulkUploadCheckResponseDto({
|
|
||||||
this.results = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<AssetBulkUploadCheckResult> results;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto &&
|
|
||||||
_deepEquality.equals(other.results, results);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(results.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkUploadCheckResponseDto[results=$results]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'results'] = this.results;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkUploadCheckResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkUploadCheckResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkUploadCheckResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkUploadCheckResponseDto(
|
|
||||||
results: AssetBulkUploadCheckResult.listFromJson(json[r'results']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkUploadCheckResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkUploadCheckResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkUploadCheckResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkUploadCheckResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkUploadCheckResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkUploadCheckResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkUploadCheckResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'results',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,300 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckResult {
|
|
||||||
/// Returns a new [AssetBulkUploadCheckResult] instance.
|
|
||||||
AssetBulkUploadCheckResult({
|
|
||||||
required this.action,
|
|
||||||
this.assetId,
|
|
||||||
required this.id,
|
|
||||||
this.isTrashed,
|
|
||||||
this.reason,
|
|
||||||
});
|
|
||||||
|
|
||||||
AssetBulkUploadCheckResultActionEnum action;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? assetId;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? isTrashed;
|
|
||||||
|
|
||||||
AssetBulkUploadCheckResultReasonEnum? reason;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult &&
|
|
||||||
other.action == action &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.id == id &&
|
|
||||||
other.isTrashed == isTrashed &&
|
|
||||||
other.reason == reason;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(action.hashCode) +
|
|
||||||
(assetId == null ? 0 : assetId!.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(isTrashed == null ? 0 : isTrashed!.hashCode) +
|
|
||||||
(reason == null ? 0 : reason!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetBulkUploadCheckResult[action=$action, assetId=$assetId, id=$id, isTrashed=$isTrashed, reason=$reason]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'action'] = this.action;
|
|
||||||
if (this.assetId != null) {
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
} else {
|
|
||||||
// json[r'assetId'] = null;
|
|
||||||
}
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
if (this.isTrashed != null) {
|
|
||||||
json[r'isTrashed'] = this.isTrashed;
|
|
||||||
} else {
|
|
||||||
// json[r'isTrashed'] = null;
|
|
||||||
}
|
|
||||||
if (this.reason != null) {
|
|
||||||
json[r'reason'] = this.reason;
|
|
||||||
} else {
|
|
||||||
// json[r'reason'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetBulkUploadCheckResult] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetBulkUploadCheckResult? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetBulkUploadCheckResult");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetBulkUploadCheckResult(
|
|
||||||
action: AssetBulkUploadCheckResultActionEnum.fromJson(json[r'action'])!,
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId'),
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
isTrashed: mapValueOfType<bool>(json, r'isTrashed'),
|
|
||||||
reason: AssetBulkUploadCheckResultReasonEnum.fromJson(json[r'reason']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckResult> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckResult>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckResult.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetBulkUploadCheckResult> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetBulkUploadCheckResult>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetBulkUploadCheckResult.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetBulkUploadCheckResult-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetBulkUploadCheckResult>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetBulkUploadCheckResult>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetBulkUploadCheckResult.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'action',
|
|
||||||
'id',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckResultActionEnum {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetBulkUploadCheckResultActionEnum._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const accept = AssetBulkUploadCheckResultActionEnum._(r'accept');
|
|
||||||
static const reject = AssetBulkUploadCheckResultActionEnum._(r'reject');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetBulkUploadCheckResultActionEnum].
|
|
||||||
static const values = <AssetBulkUploadCheckResultActionEnum>[
|
|
||||||
accept,
|
|
||||||
reject,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetBulkUploadCheckResultActionEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultActionEnumTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckResultActionEnum> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckResultActionEnum>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckResultActionEnum.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetBulkUploadCheckResultActionEnum] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetBulkUploadCheckResultActionEnum].
|
|
||||||
class AssetBulkUploadCheckResultActionEnumTypeTransformer {
|
|
||||||
factory AssetBulkUploadCheckResultActionEnumTypeTransformer() => _instance ??= const AssetBulkUploadCheckResultActionEnumTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetBulkUploadCheckResultActionEnumTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetBulkUploadCheckResultActionEnum data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetBulkUploadCheckResultActionEnum.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetBulkUploadCheckResultActionEnum? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'accept': return AssetBulkUploadCheckResultActionEnum.accept;
|
|
||||||
case r'reject': return AssetBulkUploadCheckResultActionEnum.reject;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetBulkUploadCheckResultActionEnumTypeTransformer] instance.
|
|
||||||
static AssetBulkUploadCheckResultActionEnumTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AssetBulkUploadCheckResultReasonEnum {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetBulkUploadCheckResultReasonEnum._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const duplicate = AssetBulkUploadCheckResultReasonEnum._(r'duplicate');
|
|
||||||
static const unsupportedFormat = AssetBulkUploadCheckResultReasonEnum._(r'unsupported-format');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetBulkUploadCheckResultReasonEnum].
|
|
||||||
static const values = <AssetBulkUploadCheckResultReasonEnum>[
|
|
||||||
duplicate,
|
|
||||||
unsupportedFormat,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetBulkUploadCheckResultReasonEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultReasonEnumTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetBulkUploadCheckResultReasonEnum> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetBulkUploadCheckResultReasonEnum>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetBulkUploadCheckResultReasonEnum.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetBulkUploadCheckResultReasonEnum] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetBulkUploadCheckResultReasonEnum].
|
|
||||||
class AssetBulkUploadCheckResultReasonEnumTypeTransformer {
|
|
||||||
factory AssetBulkUploadCheckResultReasonEnumTypeTransformer() => _instance ??= const AssetBulkUploadCheckResultReasonEnumTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetBulkUploadCheckResultReasonEnumTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetBulkUploadCheckResultReasonEnum data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetBulkUploadCheckResultReasonEnum.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetBulkUploadCheckResultReasonEnum? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'duplicate': return AssetBulkUploadCheckResultReasonEnum.duplicate;
|
|
||||||
case r'unsupported-format': return AssetBulkUploadCheckResultReasonEnum.unsupportedFormat;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetBulkUploadCheckResultReasonEnumTypeTransformer] instance.
|
|
||||||
static AssetBulkUploadCheckResultReasonEnumTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
109
mobile/openapi/lib/model/asset_delta_sync_dto.dart
generated
109
mobile/openapi/lib/model/asset_delta_sync_dto.dart
generated
@ -1,109 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetDeltaSyncDto {
|
|
||||||
/// Returns a new [AssetDeltaSyncDto] instance.
|
|
||||||
AssetDeltaSyncDto({
|
|
||||||
required this.updatedAfter,
|
|
||||||
this.userIds = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
DateTime updatedAfter;
|
|
||||||
|
|
||||||
List<String> userIds;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetDeltaSyncDto &&
|
|
||||||
other.updatedAfter == updatedAfter &&
|
|
||||||
_deepEquality.equals(other.userIds, userIds);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(updatedAfter.hashCode) +
|
|
||||||
(userIds.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetDeltaSyncDto[updatedAfter=$updatedAfter, userIds=$userIds]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'updatedAfter'] = this.updatedAfter.toUtc().toIso8601String();
|
|
||||||
json[r'userIds'] = this.userIds;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetDeltaSyncDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetDeltaSyncDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetDeltaSyncDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetDeltaSyncDto(
|
|
||||||
updatedAfter: mapDateTime(json, r'updatedAfter', r'')!,
|
|
||||||
userIds: json[r'userIds'] is Iterable
|
|
||||||
? (json[r'userIds'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetDeltaSyncDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetDeltaSyncDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetDeltaSyncDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetDeltaSyncDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetDeltaSyncDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetDeltaSyncDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetDeltaSyncDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetDeltaSyncDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetDeltaSyncDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetDeltaSyncDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'updatedAfter',
|
|
||||||
'userIds',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,117 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetDeltaSyncResponseDto {
|
|
||||||
/// Returns a new [AssetDeltaSyncResponseDto] instance.
|
|
||||||
AssetDeltaSyncResponseDto({
|
|
||||||
this.deleted = const [],
|
|
||||||
required this.needsFullSync,
|
|
||||||
this.upserted = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<String> deleted;
|
|
||||||
|
|
||||||
bool needsFullSync;
|
|
||||||
|
|
||||||
List<AssetResponseDto> upserted;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetDeltaSyncResponseDto &&
|
|
||||||
_deepEquality.equals(other.deleted, deleted) &&
|
|
||||||
other.needsFullSync == needsFullSync &&
|
|
||||||
_deepEquality.equals(other.upserted, upserted);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(deleted.hashCode) +
|
|
||||||
(needsFullSync.hashCode) +
|
|
||||||
(upserted.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetDeltaSyncResponseDto[deleted=$deleted, needsFullSync=$needsFullSync, upserted=$upserted]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'deleted'] = this.deleted;
|
|
||||||
json[r'needsFullSync'] = this.needsFullSync;
|
|
||||||
json[r'upserted'] = this.upserted;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetDeltaSyncResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetDeltaSyncResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetDeltaSyncResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetDeltaSyncResponseDto(
|
|
||||||
deleted: json[r'deleted'] is Iterable
|
|
||||||
? (json[r'deleted'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
needsFullSync: mapValueOfType<bool>(json, r'needsFullSync')!,
|
|
||||||
upserted: AssetResponseDto.listFromJson(json[r'upserted']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetDeltaSyncResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetDeltaSyncResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetDeltaSyncResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetDeltaSyncResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetDeltaSyncResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetDeltaSyncResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetDeltaSyncResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetDeltaSyncResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetDeltaSyncResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetDeltaSyncResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'deleted',
|
|
||||||
'needsFullSync',
|
|
||||||
'upserted',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
155
mobile/openapi/lib/model/asset_face_create_dto.dart
generated
155
mobile/openapi/lib/model/asset_face_create_dto.dart
generated
@ -1,155 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceCreateDto {
|
|
||||||
/// Returns a new [AssetFaceCreateDto] instance.
|
|
||||||
AssetFaceCreateDto({
|
|
||||||
required this.assetId,
|
|
||||||
required this.height,
|
|
||||||
required this.imageHeight,
|
|
||||||
required this.imageWidth,
|
|
||||||
required this.personId,
|
|
||||||
required this.width,
|
|
||||||
required this.x,
|
|
||||||
required this.y,
|
|
||||||
});
|
|
||||||
|
|
||||||
String assetId;
|
|
||||||
|
|
||||||
int height;
|
|
||||||
|
|
||||||
int imageHeight;
|
|
||||||
|
|
||||||
int imageWidth;
|
|
||||||
|
|
||||||
String personId;
|
|
||||||
|
|
||||||
int width;
|
|
||||||
|
|
||||||
int x;
|
|
||||||
|
|
||||||
int y;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceCreateDto &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.height == height &&
|
|
||||||
other.imageHeight == imageHeight &&
|
|
||||||
other.imageWidth == imageWidth &&
|
|
||||||
other.personId == personId &&
|
|
||||||
other.width == width &&
|
|
||||||
other.x == x &&
|
|
||||||
other.y == y;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetId.hashCode) +
|
|
||||||
(height.hashCode) +
|
|
||||||
(imageHeight.hashCode) +
|
|
||||||
(imageWidth.hashCode) +
|
|
||||||
(personId.hashCode) +
|
|
||||||
(width.hashCode) +
|
|
||||||
(x.hashCode) +
|
|
||||||
(y.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceCreateDto[assetId=$assetId, height=$height, imageHeight=$imageHeight, imageWidth=$imageWidth, personId=$personId, width=$width, x=$x, y=$y]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
json[r'height'] = this.height;
|
|
||||||
json[r'imageHeight'] = this.imageHeight;
|
|
||||||
json[r'imageWidth'] = this.imageWidth;
|
|
||||||
json[r'personId'] = this.personId;
|
|
||||||
json[r'width'] = this.width;
|
|
||||||
json[r'x'] = this.x;
|
|
||||||
json[r'y'] = this.y;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceCreateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceCreateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceCreateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceCreateDto(
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId')!,
|
|
||||||
height: mapValueOfType<int>(json, r'height')!,
|
|
||||||
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
|
||||||
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
|
||||||
personId: mapValueOfType<String>(json, r'personId')!,
|
|
||||||
width: mapValueOfType<int>(json, r'width')!,
|
|
||||||
x: mapValueOfType<int>(json, r'x')!,
|
|
||||||
y: mapValueOfType<int>(json, r'y')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceCreateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceCreateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceCreateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceCreateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceCreateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceCreateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceCreateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceCreateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceCreateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceCreateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetId',
|
|
||||||
'height',
|
|
||||||
'imageHeight',
|
|
||||||
'imageWidth',
|
|
||||||
'personId',
|
|
||||||
'width',
|
|
||||||
'x',
|
|
||||||
'y',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
99
mobile/openapi/lib/model/asset_face_delete_dto.dart
generated
99
mobile/openapi/lib/model/asset_face_delete_dto.dart
generated
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceDeleteDto {
|
|
||||||
/// Returns a new [AssetFaceDeleteDto] instance.
|
|
||||||
AssetFaceDeleteDto({
|
|
||||||
required this.force,
|
|
||||||
});
|
|
||||||
|
|
||||||
bool force;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceDeleteDto &&
|
|
||||||
other.force == force;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(force.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceDeleteDto[force=$force]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'force'] = this.force;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceDeleteDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceDeleteDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceDeleteDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceDeleteDto(
|
|
||||||
force: mapValueOfType<bool>(json, r'force')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceDeleteDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceDeleteDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceDeleteDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceDeleteDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceDeleteDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceDeleteDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceDeleteDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceDeleteDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceDeleteDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceDeleteDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'force',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
176
mobile/openapi/lib/model/asset_face_response_dto.dart
generated
176
mobile/openapi/lib/model/asset_face_response_dto.dart
generated
@ -1,176 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceResponseDto {
|
|
||||||
/// Returns a new [AssetFaceResponseDto] instance.
|
|
||||||
AssetFaceResponseDto({
|
|
||||||
required this.boundingBoxX1,
|
|
||||||
required this.boundingBoxX2,
|
|
||||||
required this.boundingBoxY1,
|
|
||||||
required this.boundingBoxY2,
|
|
||||||
required this.id,
|
|
||||||
required this.imageHeight,
|
|
||||||
required this.imageWidth,
|
|
||||||
required this.person,
|
|
||||||
this.sourceType,
|
|
||||||
});
|
|
||||||
|
|
||||||
int boundingBoxX1;
|
|
||||||
|
|
||||||
int boundingBoxX2;
|
|
||||||
|
|
||||||
int boundingBoxY1;
|
|
||||||
|
|
||||||
int boundingBoxY2;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
int imageHeight;
|
|
||||||
|
|
||||||
int imageWidth;
|
|
||||||
|
|
||||||
PersonResponseDto? person;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
SourceType? sourceType;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceResponseDto &&
|
|
||||||
other.boundingBoxX1 == boundingBoxX1 &&
|
|
||||||
other.boundingBoxX2 == boundingBoxX2 &&
|
|
||||||
other.boundingBoxY1 == boundingBoxY1 &&
|
|
||||||
other.boundingBoxY2 == boundingBoxY2 &&
|
|
||||||
other.id == id &&
|
|
||||||
other.imageHeight == imageHeight &&
|
|
||||||
other.imageWidth == imageWidth &&
|
|
||||||
other.person == person &&
|
|
||||||
other.sourceType == sourceType;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(boundingBoxX1.hashCode) +
|
|
||||||
(boundingBoxX2.hashCode) +
|
|
||||||
(boundingBoxY1.hashCode) +
|
|
||||||
(boundingBoxY2.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(imageHeight.hashCode) +
|
|
||||||
(imageWidth.hashCode) +
|
|
||||||
(person == null ? 0 : person!.hashCode) +
|
|
||||||
(sourceType == null ? 0 : sourceType!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceResponseDto[boundingBoxX1=$boundingBoxX1, boundingBoxX2=$boundingBoxX2, boundingBoxY1=$boundingBoxY1, boundingBoxY2=$boundingBoxY2, id=$id, imageHeight=$imageHeight, imageWidth=$imageWidth, person=$person, sourceType=$sourceType]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'boundingBoxX1'] = this.boundingBoxX1;
|
|
||||||
json[r'boundingBoxX2'] = this.boundingBoxX2;
|
|
||||||
json[r'boundingBoxY1'] = this.boundingBoxY1;
|
|
||||||
json[r'boundingBoxY2'] = this.boundingBoxY2;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'imageHeight'] = this.imageHeight;
|
|
||||||
json[r'imageWidth'] = this.imageWidth;
|
|
||||||
if (this.person != null) {
|
|
||||||
json[r'person'] = this.person;
|
|
||||||
} else {
|
|
||||||
// json[r'person'] = null;
|
|
||||||
}
|
|
||||||
if (this.sourceType != null) {
|
|
||||||
json[r'sourceType'] = this.sourceType;
|
|
||||||
} else {
|
|
||||||
// json[r'sourceType'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceResponseDto(
|
|
||||||
boundingBoxX1: mapValueOfType<int>(json, r'boundingBoxX1')!,
|
|
||||||
boundingBoxX2: mapValueOfType<int>(json, r'boundingBoxX2')!,
|
|
||||||
boundingBoxY1: mapValueOfType<int>(json, r'boundingBoxY1')!,
|
|
||||||
boundingBoxY2: mapValueOfType<int>(json, r'boundingBoxY2')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
|
||||||
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
|
||||||
person: PersonResponseDto.fromJson(json[r'person']),
|
|
||||||
sourceType: SourceType.fromJson(json[r'sourceType']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'boundingBoxX1',
|
|
||||||
'boundingBoxX2',
|
|
||||||
'boundingBoxY1',
|
|
||||||
'boundingBoxY2',
|
|
||||||
'id',
|
|
||||||
'imageHeight',
|
|
||||||
'imageWidth',
|
|
||||||
'person',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
99
mobile/openapi/lib/model/asset_face_update_dto.dart
generated
99
mobile/openapi/lib/model/asset_face_update_dto.dart
generated
@ -1,99 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceUpdateDto {
|
|
||||||
/// Returns a new [AssetFaceUpdateDto] instance.
|
|
||||||
AssetFaceUpdateDto({
|
|
||||||
this.data = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<AssetFaceUpdateItem> data;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateDto &&
|
|
||||||
_deepEquality.equals(other.data, data);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(data.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceUpdateDto[data=$data]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'data'] = this.data;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceUpdateDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceUpdateDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceUpdateDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceUpdateDto(
|
|
||||||
data: AssetFaceUpdateItem.listFromJson(json[r'data']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceUpdateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceUpdateDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceUpdateDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceUpdateDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceUpdateDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceUpdateDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceUpdateDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceUpdateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceUpdateDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceUpdateDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'data',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
107
mobile/openapi/lib/model/asset_face_update_item.dart
generated
107
mobile/openapi/lib/model/asset_face_update_item.dart
generated
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceUpdateItem {
|
|
||||||
/// Returns a new [AssetFaceUpdateItem] instance.
|
|
||||||
AssetFaceUpdateItem({
|
|
||||||
required this.assetId,
|
|
||||||
required this.personId,
|
|
||||||
});
|
|
||||||
|
|
||||||
String assetId;
|
|
||||||
|
|
||||||
String personId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateItem &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.personId == personId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetId.hashCode) +
|
|
||||||
(personId.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceUpdateItem[assetId=$assetId, personId=$personId]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
json[r'personId'] = this.personId;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceUpdateItem] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceUpdateItem? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceUpdateItem");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceUpdateItem(
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId')!,
|
|
||||||
personId: mapValueOfType<String>(json, r'personId')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceUpdateItem> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceUpdateItem>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceUpdateItem.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceUpdateItem> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceUpdateItem>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceUpdateItem.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceUpdateItem-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceUpdateItem>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceUpdateItem>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceUpdateItem.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetId',
|
|
||||||
'personId',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,164 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFaceWithoutPersonResponseDto {
|
|
||||||
/// Returns a new [AssetFaceWithoutPersonResponseDto] instance.
|
|
||||||
AssetFaceWithoutPersonResponseDto({
|
|
||||||
required this.boundingBoxX1,
|
|
||||||
required this.boundingBoxX2,
|
|
||||||
required this.boundingBoxY1,
|
|
||||||
required this.boundingBoxY2,
|
|
||||||
required this.id,
|
|
||||||
required this.imageHeight,
|
|
||||||
required this.imageWidth,
|
|
||||||
this.sourceType,
|
|
||||||
});
|
|
||||||
|
|
||||||
int boundingBoxX1;
|
|
||||||
|
|
||||||
int boundingBoxX2;
|
|
||||||
|
|
||||||
int boundingBoxY1;
|
|
||||||
|
|
||||||
int boundingBoxY2;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
int imageHeight;
|
|
||||||
|
|
||||||
int imageWidth;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
SourceType? sourceType;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFaceWithoutPersonResponseDto &&
|
|
||||||
other.boundingBoxX1 == boundingBoxX1 &&
|
|
||||||
other.boundingBoxX2 == boundingBoxX2 &&
|
|
||||||
other.boundingBoxY1 == boundingBoxY1 &&
|
|
||||||
other.boundingBoxY2 == boundingBoxY2 &&
|
|
||||||
other.id == id &&
|
|
||||||
other.imageHeight == imageHeight &&
|
|
||||||
other.imageWidth == imageWidth &&
|
|
||||||
other.sourceType == sourceType;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(boundingBoxX1.hashCode) +
|
|
||||||
(boundingBoxX2.hashCode) +
|
|
||||||
(boundingBoxY1.hashCode) +
|
|
||||||
(boundingBoxY2.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(imageHeight.hashCode) +
|
|
||||||
(imageWidth.hashCode) +
|
|
||||||
(sourceType == null ? 0 : sourceType!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFaceWithoutPersonResponseDto[boundingBoxX1=$boundingBoxX1, boundingBoxX2=$boundingBoxX2, boundingBoxY1=$boundingBoxY1, boundingBoxY2=$boundingBoxY2, id=$id, imageHeight=$imageHeight, imageWidth=$imageWidth, sourceType=$sourceType]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'boundingBoxX1'] = this.boundingBoxX1;
|
|
||||||
json[r'boundingBoxX2'] = this.boundingBoxX2;
|
|
||||||
json[r'boundingBoxY1'] = this.boundingBoxY1;
|
|
||||||
json[r'boundingBoxY2'] = this.boundingBoxY2;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'imageHeight'] = this.imageHeight;
|
|
||||||
json[r'imageWidth'] = this.imageWidth;
|
|
||||||
if (this.sourceType != null) {
|
|
||||||
json[r'sourceType'] = this.sourceType;
|
|
||||||
} else {
|
|
||||||
// json[r'sourceType'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFaceWithoutPersonResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFaceWithoutPersonResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFaceWithoutPersonResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFaceWithoutPersonResponseDto(
|
|
||||||
boundingBoxX1: mapValueOfType<int>(json, r'boundingBoxX1')!,
|
|
||||||
boundingBoxX2: mapValueOfType<int>(json, r'boundingBoxX2')!,
|
|
||||||
boundingBoxY1: mapValueOfType<int>(json, r'boundingBoxY1')!,
|
|
||||||
boundingBoxY2: mapValueOfType<int>(json, r'boundingBoxY2')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
|
||||||
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
|
||||||
sourceType: SourceType.fromJson(json[r'sourceType']),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFaceWithoutPersonResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFaceWithoutPersonResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFaceWithoutPersonResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFaceWithoutPersonResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFaceWithoutPersonResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFaceWithoutPersonResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFaceWithoutPersonResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFaceWithoutPersonResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFaceWithoutPersonResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFaceWithoutPersonResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'boundingBoxX1',
|
|
||||||
'boundingBoxX2',
|
|
||||||
'boundingBoxY1',
|
|
||||||
'boundingBoxY2',
|
|
||||||
'id',
|
|
||||||
'imageHeight',
|
|
||||||
'imageWidth',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
142
mobile/openapi/lib/model/asset_full_sync_dto.dart
generated
142
mobile/openapi/lib/model/asset_full_sync_dto.dart
generated
@ -1,142 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetFullSyncDto {
|
|
||||||
/// Returns a new [AssetFullSyncDto] instance.
|
|
||||||
AssetFullSyncDto({
|
|
||||||
this.lastId,
|
|
||||||
required this.limit,
|
|
||||||
required this.updatedUntil,
|
|
||||||
this.userId,
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? lastId;
|
|
||||||
|
|
||||||
/// Minimum value: 1
|
|
||||||
int limit;
|
|
||||||
|
|
||||||
DateTime updatedUntil;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetFullSyncDto &&
|
|
||||||
other.lastId == lastId &&
|
|
||||||
other.limit == limit &&
|
|
||||||
other.updatedUntil == updatedUntil &&
|
|
||||||
other.userId == userId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(lastId == null ? 0 : lastId!.hashCode) +
|
|
||||||
(limit.hashCode) +
|
|
||||||
(updatedUntil.hashCode) +
|
|
||||||
(userId == null ? 0 : userId!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetFullSyncDto[lastId=$lastId, limit=$limit, updatedUntil=$updatedUntil, userId=$userId]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.lastId != null) {
|
|
||||||
json[r'lastId'] = this.lastId;
|
|
||||||
} else {
|
|
||||||
// json[r'lastId'] = null;
|
|
||||||
}
|
|
||||||
json[r'limit'] = this.limit;
|
|
||||||
json[r'updatedUntil'] = this.updatedUntil.toUtc().toIso8601String();
|
|
||||||
if (this.userId != null) {
|
|
||||||
json[r'userId'] = this.userId;
|
|
||||||
} else {
|
|
||||||
// json[r'userId'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetFullSyncDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetFullSyncDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetFullSyncDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetFullSyncDto(
|
|
||||||
lastId: mapValueOfType<String>(json, r'lastId'),
|
|
||||||
limit: mapValueOfType<int>(json, r'limit')!,
|
|
||||||
updatedUntil: mapDateTime(json, r'updatedUntil', r'')!,
|
|
||||||
userId: mapValueOfType<String>(json, r'userId'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetFullSyncDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetFullSyncDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetFullSyncDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetFullSyncDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetFullSyncDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetFullSyncDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetFullSyncDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetFullSyncDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetFullSyncDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetFullSyncDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'limit',
|
|
||||||
'updatedUntil',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
101
mobile/openapi/lib/model/asset_ids_dto.dart
generated
101
mobile/openapi/lib/model/asset_ids_dto.dart
generated
@ -1,101 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetIdsDto {
|
|
||||||
/// Returns a new [AssetIdsDto] instance.
|
|
||||||
AssetIdsDto({
|
|
||||||
this.assetIds = const [],
|
|
||||||
});
|
|
||||||
|
|
||||||
List<String> assetIds;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto &&
|
|
||||||
_deepEquality.equals(other.assetIds, assetIds);
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetIds.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetIdsDto[assetIds=$assetIds]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetIds'] = this.assetIds;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetIdsDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetIdsDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetIdsDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetIdsDto(
|
|
||||||
assetIds: json[r'assetIds'] is Iterable
|
|
||||||
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetIdsDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetIdsDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetIdsDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetIdsDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetIdsDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetIdsDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetIdsDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetIdsDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetIdsDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetIdsDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetIds',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
195
mobile/openapi/lib/model/asset_ids_response_dto.dart
generated
195
mobile/openapi/lib/model/asset_ids_response_dto.dart
generated
@ -1,195 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetIdsResponseDto {
|
|
||||||
/// Returns a new [AssetIdsResponseDto] instance.
|
|
||||||
AssetIdsResponseDto({
|
|
||||||
required this.assetId,
|
|
||||||
this.error,
|
|
||||||
required this.success,
|
|
||||||
});
|
|
||||||
|
|
||||||
String assetId;
|
|
||||||
|
|
||||||
AssetIdsResponseDtoErrorEnum? error;
|
|
||||||
|
|
||||||
bool success;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto &&
|
|
||||||
other.assetId == assetId &&
|
|
||||||
other.error == error &&
|
|
||||||
other.success == success;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetId.hashCode) +
|
|
||||||
(error == null ? 0 : error!.hashCode) +
|
|
||||||
(success.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetIdsResponseDto[assetId=$assetId, error=$error, success=$success]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetId'] = this.assetId;
|
|
||||||
if (this.error != null) {
|
|
||||||
json[r'error'] = this.error;
|
|
||||||
} else {
|
|
||||||
// json[r'error'] = null;
|
|
||||||
}
|
|
||||||
json[r'success'] = this.success;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetIdsResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetIdsResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetIdsResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetIdsResponseDto(
|
|
||||||
assetId: mapValueOfType<String>(json, r'assetId')!,
|
|
||||||
error: AssetIdsResponseDtoErrorEnum.fromJson(json[r'error']),
|
|
||||||
success: mapValueOfType<bool>(json, r'success')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetIdsResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetIdsResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetIdsResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetIdsResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetIdsResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetIdsResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetIdsResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetIdsResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetIdsResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetIdsResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetId',
|
|
||||||
'success',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class AssetIdsResponseDtoErrorEnum {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetIdsResponseDtoErrorEnum._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const duplicate = AssetIdsResponseDtoErrorEnum._(r'duplicate');
|
|
||||||
static const noPermission = AssetIdsResponseDtoErrorEnum._(r'no_permission');
|
|
||||||
static const notFound = AssetIdsResponseDtoErrorEnum._(r'not_found');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetIdsResponseDtoErrorEnum].
|
|
||||||
static const values = <AssetIdsResponseDtoErrorEnum>[
|
|
||||||
duplicate,
|
|
||||||
noPermission,
|
|
||||||
notFound,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetIdsResponseDtoErrorEnum? fromJson(dynamic value) => AssetIdsResponseDtoErrorEnumTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetIdsResponseDtoErrorEnum> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetIdsResponseDtoErrorEnum>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetIdsResponseDtoErrorEnum.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetIdsResponseDtoErrorEnum] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetIdsResponseDtoErrorEnum].
|
|
||||||
class AssetIdsResponseDtoErrorEnumTypeTransformer {
|
|
||||||
factory AssetIdsResponseDtoErrorEnumTypeTransformer() => _instance ??= const AssetIdsResponseDtoErrorEnumTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetIdsResponseDtoErrorEnumTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetIdsResponseDtoErrorEnum data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetIdsResponseDtoErrorEnum.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetIdsResponseDtoErrorEnum? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'duplicate': return AssetIdsResponseDtoErrorEnum.duplicate;
|
|
||||||
case r'no_permission': return AssetIdsResponseDtoErrorEnum.noPermission;
|
|
||||||
case r'not_found': return AssetIdsResponseDtoErrorEnum.notFound;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetIdsResponseDtoErrorEnumTypeTransformer] instance.
|
|
||||||
static AssetIdsResponseDtoErrorEnumTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
91
mobile/openapi/lib/model/asset_job_name.dart
generated
91
mobile/openapi/lib/model/asset_job_name.dart
generated
@ -1,91 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AssetJobName {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetJobName._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const refreshFaces = AssetJobName._(r'refresh-faces');
|
|
||||||
static const refreshMetadata = AssetJobName._(r'refresh-metadata');
|
|
||||||
static const regenerateThumbnail = AssetJobName._(r'regenerate-thumbnail');
|
|
||||||
static const transcodeVideo = AssetJobName._(r'transcode-video');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetJobName].
|
|
||||||
static const values = <AssetJobName>[
|
|
||||||
refreshFaces,
|
|
||||||
refreshMetadata,
|
|
||||||
regenerateThumbnail,
|
|
||||||
transcodeVideo,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetJobName? fromJson(dynamic value) => AssetJobNameTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetJobName> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetJobName>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetJobName.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetJobName] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetJobName].
|
|
||||||
class AssetJobNameTypeTransformer {
|
|
||||||
factory AssetJobNameTypeTransformer() => _instance ??= const AssetJobNameTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetJobNameTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetJobName data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetJobName.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetJobName? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'refresh-faces': return AssetJobName.refreshFaces;
|
|
||||||
case r'refresh-metadata': return AssetJobName.refreshMetadata;
|
|
||||||
case r'regenerate-thumbnail': return AssetJobName.regenerateThumbnail;
|
|
||||||
case r'transcode-video': return AssetJobName.transcodeVideo;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetJobNameTypeTransformer] instance.
|
|
||||||
static AssetJobNameTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
109
mobile/openapi/lib/model/asset_jobs_dto.dart
generated
109
mobile/openapi/lib/model/asset_jobs_dto.dart
generated
@ -1,109 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetJobsDto {
|
|
||||||
/// Returns a new [AssetJobsDto] instance.
|
|
||||||
AssetJobsDto({
|
|
||||||
this.assetIds = const [],
|
|
||||||
required this.name,
|
|
||||||
});
|
|
||||||
|
|
||||||
List<String> assetIds;
|
|
||||||
|
|
||||||
AssetJobName name;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetJobsDto &&
|
|
||||||
_deepEquality.equals(other.assetIds, assetIds) &&
|
|
||||||
other.name == name;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetIds.hashCode) +
|
|
||||||
(name.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetJobsDto[assetIds=$assetIds, name=$name]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetIds'] = this.assetIds;
|
|
||||||
json[r'name'] = this.name;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetJobsDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetJobsDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetJobsDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetJobsDto(
|
|
||||||
assetIds: json[r'assetIds'] is Iterable
|
|
||||||
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
|
|
||||||
: const [],
|
|
||||||
name: AssetJobName.fromJson(json[r'name'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetJobsDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetJobsDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetJobsDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetJobsDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetJobsDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetJobsDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetJobsDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetJobsDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetJobsDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetJobsDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetIds',
|
|
||||||
'name',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
107
mobile/openapi/lib/model/asset_media_response_dto.dart
generated
107
mobile/openapi/lib/model/asset_media_response_dto.dart
generated
@ -1,107 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetMediaResponseDto {
|
|
||||||
/// Returns a new [AssetMediaResponseDto] instance.
|
|
||||||
AssetMediaResponseDto({
|
|
||||||
required this.id,
|
|
||||||
required this.status,
|
|
||||||
});
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
AssetMediaStatus status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetMediaResponseDto &&
|
|
||||||
other.id == id &&
|
|
||||||
other.status == status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(id.hashCode) +
|
|
||||||
(status.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetMediaResponseDto[id=$id, status=$status]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'status'] = this.status;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetMediaResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetMediaResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetMediaResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetMediaResponseDto(
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
status: AssetMediaStatus.fromJson(json[r'status'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetMediaResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetMediaResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetMediaResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetMediaResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetMediaResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetMediaResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetMediaResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetMediaResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetMediaResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetMediaResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'id',
|
|
||||||
'status',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
88
mobile/openapi/lib/model/asset_media_size.dart
generated
88
mobile/openapi/lib/model/asset_media_size.dart
generated
@ -1,88 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AssetMediaSize {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetMediaSize._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const fullsize = AssetMediaSize._(r'fullsize');
|
|
||||||
static const preview = AssetMediaSize._(r'preview');
|
|
||||||
static const thumbnail = AssetMediaSize._(r'thumbnail');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetMediaSize].
|
|
||||||
static const values = <AssetMediaSize>[
|
|
||||||
fullsize,
|
|
||||||
preview,
|
|
||||||
thumbnail,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetMediaSize? fromJson(dynamic value) => AssetMediaSizeTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetMediaSize> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetMediaSize>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetMediaSize.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetMediaSize] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetMediaSize].
|
|
||||||
class AssetMediaSizeTypeTransformer {
|
|
||||||
factory AssetMediaSizeTypeTransformer() => _instance ??= const AssetMediaSizeTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetMediaSizeTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetMediaSize data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetMediaSize.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetMediaSize? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'fullsize': return AssetMediaSize.fullsize;
|
|
||||||
case r'preview': return AssetMediaSize.preview;
|
|
||||||
case r'thumbnail': return AssetMediaSize.thumbnail;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetMediaSizeTypeTransformer] instance.
|
|
||||||
static AssetMediaSizeTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
88
mobile/openapi/lib/model/asset_media_status.dart
generated
88
mobile/openapi/lib/model/asset_media_status.dart
generated
@ -1,88 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AssetMediaStatus {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetMediaStatus._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const created = AssetMediaStatus._(r'created');
|
|
||||||
static const replaced = AssetMediaStatus._(r'replaced');
|
|
||||||
static const duplicate = AssetMediaStatus._(r'duplicate');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetMediaStatus].
|
|
||||||
static const values = <AssetMediaStatus>[
|
|
||||||
created,
|
|
||||||
replaced,
|
|
||||||
duplicate,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetMediaStatus? fromJson(dynamic value) => AssetMediaStatusTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetMediaStatus> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetMediaStatus>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetMediaStatus.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetMediaStatus] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetMediaStatus].
|
|
||||||
class AssetMediaStatusTypeTransformer {
|
|
||||||
factory AssetMediaStatusTypeTransformer() => _instance ??= const AssetMediaStatusTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetMediaStatusTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetMediaStatus data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetMediaStatus.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetMediaStatus? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'created': return AssetMediaStatus.created;
|
|
||||||
case r'replaced': return AssetMediaStatus.replaced;
|
|
||||||
case r'duplicate': return AssetMediaStatus.duplicate;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetMediaStatusTypeTransformer] instance.
|
|
||||||
static AssetMediaStatusTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
85
mobile/openapi/lib/model/asset_order.dart
generated
85
mobile/openapi/lib/model/asset_order.dart
generated
@ -1,85 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
|
|
||||||
class AssetOrder {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const AssetOrder._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const asc = AssetOrder._(r'asc');
|
|
||||||
static const desc = AssetOrder._(r'desc');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][AssetOrder].
|
|
||||||
static const values = <AssetOrder>[
|
|
||||||
asc,
|
|
||||||
desc,
|
|
||||||
];
|
|
||||||
|
|
||||||
static AssetOrder? fromJson(dynamic value) => AssetOrderTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<AssetOrder> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetOrder>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetOrder.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [AssetOrder] to String,
|
|
||||||
/// and [decode] dynamic data back to [AssetOrder].
|
|
||||||
class AssetOrderTypeTransformer {
|
|
||||||
factory AssetOrderTypeTransformer() => _instance ??= const AssetOrderTypeTransformer._();
|
|
||||||
|
|
||||||
const AssetOrderTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(AssetOrder data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a AssetOrder.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
AssetOrder? decode(dynamic data, {bool allowNull = true}) {
|
|
||||||
if (data != null) {
|
|
||||||
switch (data) {
|
|
||||||
case r'asc': return AssetOrder.asc;
|
|
||||||
case r'desc': return AssetOrder.desc;
|
|
||||||
default:
|
|
||||||
if (!allowNull) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [AssetOrderTypeTransformer] instance.
|
|
||||||
static AssetOrderTypeTransformer? _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
395
mobile/openapi/lib/model/asset_response_dto.dart
generated
395
mobile/openapi/lib/model/asset_response_dto.dart
generated
@ -1,395 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetResponseDto {
|
|
||||||
/// Returns a new [AssetResponseDto] instance.
|
|
||||||
AssetResponseDto({
|
|
||||||
required this.checksum,
|
|
||||||
required this.deviceAssetId,
|
|
||||||
required this.deviceId,
|
|
||||||
this.duplicateId,
|
|
||||||
required this.duration,
|
|
||||||
this.exifInfo,
|
|
||||||
required this.fileCreatedAt,
|
|
||||||
required this.fileModifiedAt,
|
|
||||||
required this.hasMetadata,
|
|
||||||
required this.id,
|
|
||||||
required this.isArchived,
|
|
||||||
required this.isFavorite,
|
|
||||||
required this.isOffline,
|
|
||||||
required this.isTrashed,
|
|
||||||
this.libraryId,
|
|
||||||
this.livePhotoVideoId,
|
|
||||||
required this.localDateTime,
|
|
||||||
required this.originalFileName,
|
|
||||||
this.originalMimeType,
|
|
||||||
required this.originalPath,
|
|
||||||
this.owner,
|
|
||||||
required this.ownerId,
|
|
||||||
this.people = const [],
|
|
||||||
this.resized,
|
|
||||||
this.stack,
|
|
||||||
this.tags = const [],
|
|
||||||
required this.thumbhash,
|
|
||||||
required this.type,
|
|
||||||
this.unassignedFaces = const [],
|
|
||||||
required this.updatedAt,
|
|
||||||
required this.visibility,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// base64 encoded sha1 hash
|
|
||||||
String checksum;
|
|
||||||
|
|
||||||
String deviceAssetId;
|
|
||||||
|
|
||||||
String deviceId;
|
|
||||||
|
|
||||||
String? duplicateId;
|
|
||||||
|
|
||||||
String duration;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
ExifResponseDto? exifInfo;
|
|
||||||
|
|
||||||
/// The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken.
|
|
||||||
DateTime fileCreatedAt;
|
|
||||||
|
|
||||||
/// The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken.
|
|
||||||
DateTime fileModifiedAt;
|
|
||||||
|
|
||||||
bool hasMetadata;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
bool isArchived;
|
|
||||||
|
|
||||||
bool isFavorite;
|
|
||||||
|
|
||||||
bool isOffline;
|
|
||||||
|
|
||||||
bool isTrashed;
|
|
||||||
|
|
||||||
/// This property was deprecated in v1.106.0
|
|
||||||
String? libraryId;
|
|
||||||
|
|
||||||
String? livePhotoVideoId;
|
|
||||||
|
|
||||||
/// The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by \"local\" days and months.
|
|
||||||
DateTime localDateTime;
|
|
||||||
|
|
||||||
String originalFileName;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? originalMimeType;
|
|
||||||
|
|
||||||
String originalPath;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
UserResponseDto? owner;
|
|
||||||
|
|
||||||
String ownerId;
|
|
||||||
|
|
||||||
List<PersonWithFacesResponseDto> people;
|
|
||||||
|
|
||||||
/// This property was deprecated in v1.113.0
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? resized;
|
|
||||||
|
|
||||||
AssetStackResponseDto? stack;
|
|
||||||
|
|
||||||
List<TagResponseDto> tags;
|
|
||||||
|
|
||||||
String? thumbhash;
|
|
||||||
|
|
||||||
AssetTypeEnum type;
|
|
||||||
|
|
||||||
List<AssetFaceWithoutPersonResponseDto> unassignedFaces;
|
|
||||||
|
|
||||||
/// The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified.
|
|
||||||
DateTime updatedAt;
|
|
||||||
|
|
||||||
AssetVisibility visibility;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto &&
|
|
||||||
other.checksum == checksum &&
|
|
||||||
other.deviceAssetId == deviceAssetId &&
|
|
||||||
other.deviceId == deviceId &&
|
|
||||||
other.duplicateId == duplicateId &&
|
|
||||||
other.duration == duration &&
|
|
||||||
other.exifInfo == exifInfo &&
|
|
||||||
other.fileCreatedAt == fileCreatedAt &&
|
|
||||||
other.fileModifiedAt == fileModifiedAt &&
|
|
||||||
other.hasMetadata == hasMetadata &&
|
|
||||||
other.id == id &&
|
|
||||||
other.isArchived == isArchived &&
|
|
||||||
other.isFavorite == isFavorite &&
|
|
||||||
other.isOffline == isOffline &&
|
|
||||||
other.isTrashed == isTrashed &&
|
|
||||||
other.libraryId == libraryId &&
|
|
||||||
other.livePhotoVideoId == livePhotoVideoId &&
|
|
||||||
other.localDateTime == localDateTime &&
|
|
||||||
other.originalFileName == originalFileName &&
|
|
||||||
other.originalMimeType == originalMimeType &&
|
|
||||||
other.originalPath == originalPath &&
|
|
||||||
other.owner == owner &&
|
|
||||||
other.ownerId == ownerId &&
|
|
||||||
_deepEquality.equals(other.people, people) &&
|
|
||||||
other.resized == resized &&
|
|
||||||
other.stack == stack &&
|
|
||||||
_deepEquality.equals(other.tags, tags) &&
|
|
||||||
other.thumbhash == thumbhash &&
|
|
||||||
other.type == type &&
|
|
||||||
_deepEquality.equals(other.unassignedFaces, unassignedFaces) &&
|
|
||||||
other.updatedAt == updatedAt &&
|
|
||||||
other.visibility == visibility;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(checksum.hashCode) +
|
|
||||||
(deviceAssetId.hashCode) +
|
|
||||||
(deviceId.hashCode) +
|
|
||||||
(duplicateId == null ? 0 : duplicateId!.hashCode) +
|
|
||||||
(duration.hashCode) +
|
|
||||||
(exifInfo == null ? 0 : exifInfo!.hashCode) +
|
|
||||||
(fileCreatedAt.hashCode) +
|
|
||||||
(fileModifiedAt.hashCode) +
|
|
||||||
(hasMetadata.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(isArchived.hashCode) +
|
|
||||||
(isFavorite.hashCode) +
|
|
||||||
(isOffline.hashCode) +
|
|
||||||
(isTrashed.hashCode) +
|
|
||||||
(libraryId == null ? 0 : libraryId!.hashCode) +
|
|
||||||
(livePhotoVideoId == null ? 0 : livePhotoVideoId!.hashCode) +
|
|
||||||
(localDateTime.hashCode) +
|
|
||||||
(originalFileName.hashCode) +
|
|
||||||
(originalMimeType == null ? 0 : originalMimeType!.hashCode) +
|
|
||||||
(originalPath.hashCode) +
|
|
||||||
(owner == null ? 0 : owner!.hashCode) +
|
|
||||||
(ownerId.hashCode) +
|
|
||||||
(people.hashCode) +
|
|
||||||
(resized == null ? 0 : resized!.hashCode) +
|
|
||||||
(stack == null ? 0 : stack!.hashCode) +
|
|
||||||
(tags.hashCode) +
|
|
||||||
(thumbhash == null ? 0 : thumbhash!.hashCode) +
|
|
||||||
(type.hashCode) +
|
|
||||||
(unassignedFaces.hashCode) +
|
|
||||||
(updatedAt.hashCode) +
|
|
||||||
(visibility.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetResponseDto[checksum=$checksum, deviceAssetId=$deviceAssetId, deviceId=$deviceId, duplicateId=$duplicateId, duration=$duration, exifInfo=$exifInfo, fileCreatedAt=$fileCreatedAt, fileModifiedAt=$fileModifiedAt, hasMetadata=$hasMetadata, id=$id, isArchived=$isArchived, isFavorite=$isFavorite, isOffline=$isOffline, isTrashed=$isTrashed, libraryId=$libraryId, livePhotoVideoId=$livePhotoVideoId, localDateTime=$localDateTime, originalFileName=$originalFileName, originalMimeType=$originalMimeType, originalPath=$originalPath, owner=$owner, ownerId=$ownerId, people=$people, resized=$resized, stack=$stack, tags=$tags, thumbhash=$thumbhash, type=$type, unassignedFaces=$unassignedFaces, updatedAt=$updatedAt, visibility=$visibility]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'checksum'] = this.checksum;
|
|
||||||
json[r'deviceAssetId'] = this.deviceAssetId;
|
|
||||||
json[r'deviceId'] = this.deviceId;
|
|
||||||
if (this.duplicateId != null) {
|
|
||||||
json[r'duplicateId'] = this.duplicateId;
|
|
||||||
} else {
|
|
||||||
// json[r'duplicateId'] = null;
|
|
||||||
}
|
|
||||||
json[r'duration'] = this.duration;
|
|
||||||
if (this.exifInfo != null) {
|
|
||||||
json[r'exifInfo'] = this.exifInfo;
|
|
||||||
} else {
|
|
||||||
// json[r'exifInfo'] = null;
|
|
||||||
}
|
|
||||||
json[r'fileCreatedAt'] = this.fileCreatedAt.toUtc().toIso8601String();
|
|
||||||
json[r'fileModifiedAt'] = this.fileModifiedAt.toUtc().toIso8601String();
|
|
||||||
json[r'hasMetadata'] = this.hasMetadata;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'isArchived'] = this.isArchived;
|
|
||||||
json[r'isFavorite'] = this.isFavorite;
|
|
||||||
json[r'isOffline'] = this.isOffline;
|
|
||||||
json[r'isTrashed'] = this.isTrashed;
|
|
||||||
if (this.libraryId != null) {
|
|
||||||
json[r'libraryId'] = this.libraryId;
|
|
||||||
} else {
|
|
||||||
// json[r'libraryId'] = null;
|
|
||||||
}
|
|
||||||
if (this.livePhotoVideoId != null) {
|
|
||||||
json[r'livePhotoVideoId'] = this.livePhotoVideoId;
|
|
||||||
} else {
|
|
||||||
// json[r'livePhotoVideoId'] = null;
|
|
||||||
}
|
|
||||||
json[r'localDateTime'] = this.localDateTime.toUtc().toIso8601String();
|
|
||||||
json[r'originalFileName'] = this.originalFileName;
|
|
||||||
if (this.originalMimeType != null) {
|
|
||||||
json[r'originalMimeType'] = this.originalMimeType;
|
|
||||||
} else {
|
|
||||||
// json[r'originalMimeType'] = null;
|
|
||||||
}
|
|
||||||
json[r'originalPath'] = this.originalPath;
|
|
||||||
if (this.owner != null) {
|
|
||||||
json[r'owner'] = this.owner;
|
|
||||||
} else {
|
|
||||||
// json[r'owner'] = null;
|
|
||||||
}
|
|
||||||
json[r'ownerId'] = this.ownerId;
|
|
||||||
json[r'people'] = this.people;
|
|
||||||
if (this.resized != null) {
|
|
||||||
json[r'resized'] = this.resized;
|
|
||||||
} else {
|
|
||||||
// json[r'resized'] = null;
|
|
||||||
}
|
|
||||||
if (this.stack != null) {
|
|
||||||
json[r'stack'] = this.stack;
|
|
||||||
} else {
|
|
||||||
// json[r'stack'] = null;
|
|
||||||
}
|
|
||||||
json[r'tags'] = this.tags;
|
|
||||||
if (this.thumbhash != null) {
|
|
||||||
json[r'thumbhash'] = this.thumbhash;
|
|
||||||
} else {
|
|
||||||
// json[r'thumbhash'] = null;
|
|
||||||
}
|
|
||||||
json[r'type'] = this.type;
|
|
||||||
json[r'unassignedFaces'] = this.unassignedFaces;
|
|
||||||
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
|
|
||||||
json[r'visibility'] = this.visibility;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetResponseDto(
|
|
||||||
checksum: mapValueOfType<String>(json, r'checksum')!,
|
|
||||||
deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
|
|
||||||
deviceId: mapValueOfType<String>(json, r'deviceId')!,
|
|
||||||
duplicateId: mapValueOfType<String>(json, r'duplicateId'),
|
|
||||||
duration: mapValueOfType<String>(json, r'duration')!,
|
|
||||||
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
|
|
||||||
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
|
|
||||||
fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!,
|
|
||||||
hasMetadata: mapValueOfType<bool>(json, r'hasMetadata')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
isArchived: mapValueOfType<bool>(json, r'isArchived')!,
|
|
||||||
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
|
||||||
isOffline: mapValueOfType<bool>(json, r'isOffline')!,
|
|
||||||
isTrashed: mapValueOfType<bool>(json, r'isTrashed')!,
|
|
||||||
libraryId: mapValueOfType<String>(json, r'libraryId'),
|
|
||||||
livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'),
|
|
||||||
localDateTime: mapDateTime(json, r'localDateTime', r'')!,
|
|
||||||
originalFileName: mapValueOfType<String>(json, r'originalFileName')!,
|
|
||||||
originalMimeType: mapValueOfType<String>(json, r'originalMimeType'),
|
|
||||||
originalPath: mapValueOfType<String>(json, r'originalPath')!,
|
|
||||||
owner: UserResponseDto.fromJson(json[r'owner']),
|
|
||||||
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
|
||||||
people: PersonWithFacesResponseDto.listFromJson(json[r'people']),
|
|
||||||
resized: mapValueOfType<bool>(json, r'resized'),
|
|
||||||
stack: AssetStackResponseDto.fromJson(json[r'stack']),
|
|
||||||
tags: TagResponseDto.listFromJson(json[r'tags']),
|
|
||||||
thumbhash: mapValueOfType<String>(json, r'thumbhash'),
|
|
||||||
type: AssetTypeEnum.fromJson(json[r'type'])!,
|
|
||||||
unassignedFaces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'unassignedFaces']),
|
|
||||||
updatedAt: mapDateTime(json, r'updatedAt', r'')!,
|
|
||||||
visibility: AssetVisibility.fromJson(json[r'visibility'])!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'checksum',
|
|
||||||
'deviceAssetId',
|
|
||||||
'deviceId',
|
|
||||||
'duration',
|
|
||||||
'fileCreatedAt',
|
|
||||||
'fileModifiedAt',
|
|
||||||
'hasMetadata',
|
|
||||||
'id',
|
|
||||||
'isArchived',
|
|
||||||
'isFavorite',
|
|
||||||
'isOffline',
|
|
||||||
'isTrashed',
|
|
||||||
'localDateTime',
|
|
||||||
'originalFileName',
|
|
||||||
'originalPath',
|
|
||||||
'ownerId',
|
|
||||||
'thumbhash',
|
|
||||||
'type',
|
|
||||||
'updatedAt',
|
|
||||||
'visibility',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
115
mobile/openapi/lib/model/asset_stack_response_dto.dart
generated
115
mobile/openapi/lib/model/asset_stack_response_dto.dart
generated
@ -1,115 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.18
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: constant_identifier_names
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class AssetStackResponseDto {
|
|
||||||
/// Returns a new [AssetStackResponseDto] instance.
|
|
||||||
AssetStackResponseDto({
|
|
||||||
required this.assetCount,
|
|
||||||
required this.id,
|
|
||||||
required this.primaryAssetId,
|
|
||||||
});
|
|
||||||
|
|
||||||
int assetCount;
|
|
||||||
|
|
||||||
String id;
|
|
||||||
|
|
||||||
String primaryAssetId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AssetStackResponseDto &&
|
|
||||||
other.assetCount == assetCount &&
|
|
||||||
other.id == id &&
|
|
||||||
other.primaryAssetId == primaryAssetId;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(assetCount.hashCode) +
|
|
||||||
(id.hashCode) +
|
|
||||||
(primaryAssetId.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'AssetStackResponseDto[assetCount=$assetCount, id=$id, primaryAssetId=$primaryAssetId]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
json[r'assetCount'] = this.assetCount;
|
|
||||||
json[r'id'] = this.id;
|
|
||||||
json[r'primaryAssetId'] = this.primaryAssetId;
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [AssetStackResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static AssetStackResponseDto? fromJson(dynamic value) {
|
|
||||||
upgradeDto(value, "AssetStackResponseDto");
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return AssetStackResponseDto(
|
|
||||||
assetCount: mapValueOfType<int>(json, r'assetCount')!,
|
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
|
||||||
primaryAssetId: mapValueOfType<String>(json, r'primaryAssetId')!,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<AssetStackResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <AssetStackResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = AssetStackResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, AssetStackResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, AssetStackResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = AssetStackResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of AssetStackResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<AssetStackResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<AssetStackResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = AssetStackResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'assetCount',
|
|
||||||
'id',
|
|
||||||
'primaryAssetId',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user