From 2654895808c3dcd617599810a0dd945aba9971e7 Mon Sep 17 00:00:00 2001 From: dmitry-brazhenko Date: Sat, 8 Jul 2023 22:08:45 +0200 Subject: [PATCH] removed duplicated row --- mobile/openapi/.gitignore | 17 - mobile/openapi/.openapi-generator-ignore | 23 - mobile/openapi/.openapi-generator/FILES | 358 ---- mobile/openapi/.openapi-generator/VERSION | 1 - mobile/openapi/.travis.yml | 14 - mobile/openapi/README.md | 304 ---- mobile/openapi/analysis_options.yaml | 0 mobile/openapi/doc/APIKeyApi.md | 290 ---- mobile/openapi/doc/APIKeyCreateDto.md | 15 - mobile/openapi/doc/APIKeyCreateResponseDto.md | 16 - mobile/openapi/doc/APIKeyResponseDto.md | 18 - mobile/openapi/doc/APIKeyUpdateDto.md | 15 - mobile/openapi/doc/AddAssetsDto.md | 15 - mobile/openapi/doc/AddAssetsResponseDto.md | 17 - mobile/openapi/doc/AddUsersDto.md | 15 - mobile/openapi/doc/AdminSignupResponseDto.md | 19 - mobile/openapi/doc/AlbumApi.md | 583 ------- mobile/openapi/doc/AlbumCountResponseDto.md | 17 - mobile/openapi/doc/AlbumResponseDto.md | 26 - mobile/openapi/doc/AllJobStatusResponseDto.md | 24 - mobile/openapi/doc/AssetApi.md | 1479 ---------------- mobile/openapi/doc/AssetBulkUploadCheckDto.md | 15 - .../openapi/doc/AssetBulkUploadCheckItem.md | 16 - .../doc/AssetBulkUploadCheckResponseDto.md | 15 - .../openapi/doc/AssetBulkUploadCheckResult.md | 18 - mobile/openapi/doc/AssetCountByTimeBucket.md | 16 - .../doc/AssetCountByTimeBucketResponseDto.md | 16 - .../doc/AssetCountByUserIdResponseDto.md | 19 - .../openapi/doc/AssetFileUploadResponseDto.md | 16 - mobile/openapi/doc/AssetIdsDto.md | 15 - mobile/openapi/doc/AssetIdsResponseDto.md | 17 - mobile/openapi/doc/AssetResponseDto.md | 37 - mobile/openapi/doc/AssetTypeEnum.md | 14 - mobile/openapi/doc/AuthDeviceResponseDto.md | 20 - mobile/openapi/doc/AuthenticationApi.md | 415 ----- mobile/openapi/doc/ChangePasswordDto.md | 16 - mobile/openapi/doc/CheckDuplicateAssetDto.md | 16 - .../doc/CheckDuplicateAssetResponseDto.md | 16 - mobile/openapi/doc/CheckExistingAssetsDto.md | 16 - .../doc/CheckExistingAssetsResponseDto.md | 15 - mobile/openapi/doc/CreateAlbumDto.md | 17 - .../doc/CreateProfileImageResponseDto.md | 16 - mobile/openapi/doc/CreateTagDto.md | 16 - mobile/openapi/doc/CreateUserDto.md | 20 - .../doc/CuratedLocationsResponseDto.md | 19 - .../openapi/doc/CuratedObjectsResponseDto.md | 19 - mobile/openapi/doc/DeleteAssetDto.md | 15 - mobile/openapi/doc/DeleteAssetResponseDto.md | 16 - mobile/openapi/doc/DeleteAssetStatus.md | 14 - mobile/openapi/doc/DownloadArchiveInfo.md | 16 - mobile/openapi/doc/DownloadResponseDto.md | 16 - mobile/openapi/doc/ExifResponseDto.md | 34 - mobile/openapi/doc/GetAssetByTimeBucketDto.md | 17 - .../doc/GetAssetCountByTimeBucketDto.md | 17 - mobile/openapi/doc/ImportAssetDto.md | 27 - mobile/openapi/doc/JobApi.md | 123 -- mobile/openapi/doc/JobCommand.md | 14 - mobile/openapi/doc/JobCommandDto.md | 16 - mobile/openapi/doc/JobCountsDto.md | 20 - mobile/openapi/doc/JobName.md | 14 - mobile/openapi/doc/JobSettingsDto.md | 15 - mobile/openapi/doc/JobStatusDto.md | 16 - mobile/openapi/doc/LoginCredentialDto.md | 16 - mobile/openapi/doc/LoginResponseDto.md | 22 - mobile/openapi/doc/LogoutResponseDto.md | 16 - mobile/openapi/doc/MapMarkerResponseDto.md | 17 - mobile/openapi/doc/MemoryLaneResponseDto.md | 16 - mobile/openapi/doc/OAuthApi.md | 242 --- mobile/openapi/doc/OAuthCallbackDto.md | 15 - mobile/openapi/doc/OAuthConfigDto.md | 15 - mobile/openapi/doc/OAuthConfigResponseDto.md | 19 - mobile/openapi/doc/PartnerApi.md | 180 -- mobile/openapi/doc/PersonApi.md | 291 ---- mobile/openapi/doc/PersonResponseDto.md | 17 - mobile/openapi/doc/PersonUpdateDto.md | 16 - mobile/openapi/doc/QueueStatusDto.md | 16 - mobile/openapi/doc/RemoveAssetsDto.md | 15 - mobile/openapi/doc/SearchAlbumResponseDto.md | 18 - mobile/openapi/doc/SearchApi.md | 201 --- mobile/openapi/doc/SearchAssetDto.md | 15 - mobile/openapi/doc/SearchAssetResponseDto.md | 18 - mobile/openapi/doc/SearchConfigResponseDto.md | 15 - mobile/openapi/doc/SearchExploreItem.md | 16 - .../openapi/doc/SearchExploreResponseDto.md | 16 - .../doc/SearchFacetCountResponseDto.md | 16 - mobile/openapi/doc/SearchFacetResponseDto.md | 16 - mobile/openapi/doc/SearchResponseDto.md | 16 - mobile/openapi/doc/ServerInfoApi.md | 193 --- mobile/openapi/doc/ServerInfoResponseDto.md | 21 - mobile/openapi/doc/ServerPingResponse.md | 15 - mobile/openapi/doc/ServerStatsResponseDto.md | 18 - mobile/openapi/doc/ServerVersionReponseDto.md | 17 - mobile/openapi/doc/SharedLinkApi.md | 466 ----- mobile/openapi/doc/SharedLinkCreateDto.md | 22 - mobile/openapi/doc/SharedLinkEditDto.md | 19 - mobile/openapi/doc/SharedLinkResponseDto.md | 26 - mobile/openapi/doc/SharedLinkType.md | 14 - mobile/openapi/doc/SignUpDto.md | 18 - mobile/openapi/doc/SmartInfoResponseDto.md | 16 - mobile/openapi/doc/SystemConfigApi.md | 225 --- mobile/openapi/doc/SystemConfigDto.md | 19 - mobile/openapi/doc/SystemConfigFFmpegDto.md | 23 - mobile/openapi/doc/SystemConfigJobDto.md | 24 - mobile/openapi/doc/SystemConfigOAuthDto.md | 24 - .../doc/SystemConfigPasswordLoginDto.md | 15 - .../doc/SystemConfigStorageTemplateDto.md | 15 - .../SystemConfigTemplateStorageOptionDto.md | 21 - mobile/openapi/doc/TagApi.md | 462 ----- mobile/openapi/doc/TagResponseDto.md | 18 - mobile/openapi/doc/TagTypeEnum.md | 14 - mobile/openapi/doc/ThumbnailFormat.md | 14 - mobile/openapi/doc/TimeGroupEnum.md | 14 - mobile/openapi/doc/UpdateAlbumDto.md | 16 - mobile/openapi/doc/UpdateAssetDto.md | 18 - mobile/openapi/doc/UpdateTagDto.md | 15 - mobile/openapi/doc/UpdateUserDto.md | 23 - mobile/openapi/doc/UsageByUserDto.md | 20 - mobile/openapi/doc/UserApi.md | 555 ------ mobile/openapi/doc/UserCountResponseDto.md | 15 - mobile/openapi/doc/UserResponseDto.md | 27 - .../doc/ValidateAccessTokenResponseDto.md | 15 - mobile/openapi/git_push.sh | 57 - mobile/openapi/lib/api.dart | 155 -- mobile/openapi/lib/api/album_api.dart | 526 ------ mobile/openapi/lib/api/api_key_api.dart | 249 --- mobile/openapi/lib/api/asset_api.dart | 1537 ----------------- .../openapi/lib/api/authentication_api.dart | 358 ---- mobile/openapi/lib/api/job_api.dart | 111 -- mobile/openapi/lib/api/o_auth_api.dart | 233 --- mobile/openapi/lib/api/partner_api.dart | 158 -- mobile/openapi/lib/api/person_api.dart | 261 --- mobile/openapi/lib/api/search_api.dart | 252 --- mobile/openapi/lib/api/server_info_api.dart | 182 -- mobile/openapi/lib/api/shared_link_api.dart | 426 ----- mobile/openapi/lib/api/system_config_api.dart | 188 -- mobile/openapi/lib/api/tag_api.dart | 410 ----- mobile/openapi/lib/api/user_api.dart | 505 ------ mobile/openapi/lib/api_client.dart | 444 ----- mobile/openapi/lib/api_exception.dart | 33 - mobile/openapi/lib/api_helper.dart | 125 -- mobile/openapi/lib/auth/api_key_auth.dart | 40 - mobile/openapi/lib/auth/authentication.dart | 17 - mobile/openapi/lib/auth/http_basic_auth.dart | 26 - mobile/openapi/lib/auth/http_bearer_auth.dart | 49 - mobile/openapi/lib/auth/oauth.dart | 24 - mobile/openapi/lib/model/add_assets_dto.dart | 100 -- .../lib/model/add_assets_response_dto.dart | 125 -- mobile/openapi/lib/model/add_users_dto.dart | 100 -- .../lib/model/admin_signup_response_dto.dart | 130 -- .../lib/model/album_count_response_dto.dart | 114 -- .../openapi/lib/model/album_response_dto.dart | 199 --- .../model/all_job_status_response_dto.dart | 170 -- .../openapi/lib/model/api_key_create_dto.dart | 107 -- .../model/api_key_create_response_dto.dart | 106 -- .../lib/model/api_key_response_dto.dart | 122 -- .../openapi/lib/model/api_key_update_dto.dart | 98 -- .../model/asset_bulk_upload_check_dto.dart | 98 -- .../model/asset_bulk_upload_check_item.dart | 107 -- .../asset_bulk_upload_check_response_dto.dart | 98 -- .../model/asset_bulk_upload_check_result.dart | 282 --- .../lib/model/asset_count_by_time_bucket.dart | 106 -- ...set_count_by_time_bucket_response_dto.dart | 106 -- .../asset_count_by_user_id_response_dto.dart | 130 -- .../model/asset_file_upload_response_dto.dart | 106 -- mobile/openapi/lib/model/asset_ids_dto.dart | 100 -- .../lib/model/asset_ids_response_dto.dart | 194 --- .../openapi/lib/model/asset_response_dto.dart | 303 ---- mobile/openapi/lib/model/asset_type_enum.dart | 91 - .../lib/model/auth_device_response_dto.dart | 138 -- .../lib/model/change_password_dto.dart | 106 -- .../lib/model/check_duplicate_asset_dto.dart | 106 -- .../check_duplicate_asset_response_dto.dart | 115 -- .../lib/model/check_existing_assets_dto.dart | 108 -- .../check_existing_assets_response_dto.dart | 100 -- .../openapi/lib/model/create_album_dto.dart | 116 -- .../create_profile_image_response_dto.dart | 106 -- mobile/openapi/lib/model/create_tag_dto.dart | 106 -- mobile/openapi/lib/model/create_user_dto.dart | 144 -- .../model/curated_locations_response_dto.dart | 130 -- .../model/curated_objects_response_dto.dart | 130 -- .../openapi/lib/model/delete_asset_dto.dart | 100 -- .../lib/model/delete_asset_response_dto.dart | 106 -- .../lib/model/delete_asset_status.dart | 85 - .../lib/model/download_archive_info.dart | 108 -- .../lib/model/download_response_dto.dart | 106 -- .../openapi/lib/model/exif_response_dto.dart | 324 ---- .../model/get_asset_by_time_bucket_dto.dart | 135 -- .../get_asset_count_by_time_bucket_dto.dart | 133 -- .../openapi/lib/model/import_asset_dto.dart | 229 --- mobile/openapi/lib/model/job_command.dart | 91 - mobile/openapi/lib/model/job_command_dto.dart | 106 -- mobile/openapi/lib/model/job_counts_dto.dart | 138 -- mobile/openapi/lib/model/job_name.dart | 109 -- .../openapi/lib/model/job_settings_dto.dart | 98 -- mobile/openapi/lib/model/job_status_dto.dart | 106 -- .../lib/model/login_credential_dto.dart | 106 -- .../openapi/lib/model/login_response_dto.dart | 154 -- .../lib/model/logout_response_dto.dart | 106 -- .../lib/model/map_marker_response_dto.dart | 114 -- .../lib/model/memory_lane_response_dto.dart | 106 -- .../lib/model/o_auth_callback_dto.dart | 98 -- .../openapi/lib/model/o_auth_config_dto.dart | 98 -- .../lib/model/o_auth_config_response_dto.dart | 157 -- .../lib/model/person_response_dto.dart | 114 -- .../openapi/lib/model/person_update_dto.dart | 126 -- .../openapi/lib/model/queue_status_dto.dart | 106 -- .../openapi/lib/model/remove_assets_dto.dart | 100 -- .../lib/model/search_album_response_dto.dart | 122 -- .../openapi/lib/model/search_asset_dto.dart | 98 -- .../lib/model/search_asset_response_dto.dart | 122 -- .../lib/model/search_config_response_dto.dart | 98 -- .../lib/model/search_explore_item.dart | 106 -- .../model/search_explore_response_dto.dart | 106 -- .../search_facet_count_response_dto.dart | 106 -- .../lib/model/search_facet_response_dto.dart | 106 -- .../lib/model/search_response_dto.dart | 106 -- .../lib/model/server_info_response_dto.dart | 146 -- .../lib/model/server_ping_response.dart | 98 -- .../lib/model/server_stats_response_dto.dart | 122 -- .../lib/model/server_version_reponse_dto.dart | 114 -- .../lib/model/shared_link_create_dto.dart | 173 -- .../lib/model/shared_link_edit_dto.dart | 169 -- .../lib/model/shared_link_response_dto.dart | 203 --- .../openapi/lib/model/shared_link_type.dart | 85 - mobile/openapi/lib/model/sign_up_dto.dart | 122 -- .../lib/model/smart_info_response_dto.dart | 116 -- .../openapi/lib/model/system_config_dto.dart | 130 -- .../lib/model/system_config_f_fmpeg_dto.dart | 242 --- .../lib/model/system_config_job_dto.dart | 170 -- .../lib/model/system_config_o_auth_dto.dart | 170 -- .../system_config_password_login_dto.dart | 98 -- .../system_config_storage_template_dto.dart | 98 -- ...em_config_template_storage_option_dto.dart | 160 -- .../openapi/lib/model/tag_response_dto.dart | 122 -- mobile/openapi/lib/model/tag_type_enum.dart | 88 - .../openapi/lib/model/thumbnail_format.dart | 85 - mobile/openapi/lib/model/time_group_enum.dart | 85 - .../openapi/lib/model/update_album_dto.dart | 124 -- .../openapi/lib/model/update_asset_dto.dart | 150 -- mobile/openapi/lib/model/update_tag_dto.dart | 107 -- mobile/openapi/lib/model/update_user_dto.dart | 234 --- .../openapi/lib/model/usage_by_user_dto.dart | 138 -- .../lib/model/user_count_response_dto.dart | 98 -- .../openapi/lib/model/user_response_dto.dart | 206 --- .../validate_access_token_response_dto.dart | 98 -- mobile/openapi/pubspec.yaml | 16 - mobile/openapi/test/add_assets_dto_test.dart | 27 - .../test/add_assets_response_dto_test.dart | 37 - mobile/openapi/test/add_users_dto_test.dart | 27 - .../test/admin_signup_response_dto_test.dart | 47 - mobile/openapi/test/album_api_test.dart | 71 - .../test/album_count_response_dto_test.dart | 37 - .../openapi/test/album_response_dto_test.dart | 82 - .../all_job_status_response_dto_test.dart | 72 - mobile/openapi/test/api_key_api_test.dart | 46 - .../openapi/test/api_key_create_dto_test.dart | 27 - .../api_key_create_response_dto_test.dart | 32 - .../test/api_key_response_dto_test.dart | 42 - .../openapi/test/api_key_update_dto_test.dart | 27 - mobile/openapi/test/asset_api_test.dart | 160 -- .../asset_bulk_upload_check_dto_test.dart | 27 - .../asset_bulk_upload_check_item_test.dart | 33 - ...t_bulk_upload_check_response_dto_test.dart | 27 - .../asset_bulk_upload_check_result_test.dart | 42 - ...ount_by_time_bucket_response_dto_test.dart | 32 - .../test/asset_count_by_time_bucket_test.dart | 32 - ...et_count_by_user_id_response_dto_test.dart | 47 - .../asset_file_upload_response_dto_test.dart | 32 - mobile/openapi/test/asset_ids_dto_test.dart | 27 - .../test/asset_ids_response_dto_test.dart | 37 - .../openapi/test/asset_response_dto_test.dart | 139 -- mobile/openapi/test/asset_type_enum_test.dart | 21 - .../test/auth_device_response_dto_test.dart | 52 - .../openapi/test/authentication_api_test.dart | 61 - .../test/change_password_dto_test.dart | 32 - .../test/check_duplicate_asset_dto_test.dart | 32 - ...eck_duplicate_asset_response_dto_test.dart | 32 - .../test/check_existing_assets_dto_test.dart | 32 - ...eck_existing_assets_response_dto_test.dart | 27 - .../openapi/test/create_album_dto_test.dart | 37 - ...reate_profile_image_response_dto_test.dart | 32 - mobile/openapi/test/create_tag_dto_test.dart | 32 - mobile/openapi/test/create_user_dto_test.dart | 52 - .../curated_locations_response_dto_test.dart | 47 - .../curated_objects_response_dto_test.dart | 47 - .../openapi/test/delete_asset_dto_test.dart | 27 - .../test/delete_asset_response_dto_test.dart | 32 - .../test/delete_asset_status_test.dart | 21 - .../test/download_archive_info_test.dart | 32 - .../test/download_response_dto_test.dart | 32 - .../openapi/test/exif_response_dto_test.dart | 122 -- .../get_asset_by_time_bucket_dto_test.dart | 38 - ...t_asset_count_by_time_bucket_dto_test.dart | 38 - .../openapi/test/import_asset_dto_test.dart | 87 - mobile/openapi/test/job_api_test.dart | 31 - mobile/openapi/test/job_command_dto_test.dart | 32 - mobile/openapi/test/job_command_test.dart | 21 - mobile/openapi/test/job_counts_dto_test.dart | 52 - mobile/openapi/test/job_name_test.dart | 21 - .../openapi/test/job_settings_dto_test.dart | 27 - mobile/openapi/test/job_status_dto_test.dart | 32 - .../test/login_credential_dto_test.dart | 32 - .../openapi/test/login_response_dto_test.dart | 62 - .../test/logout_response_dto_test.dart | 32 - .../test/map_marker_response_dto_test.dart | 37 - .../test/memory_lane_response_dto_test.dart | 32 - mobile/openapi/test/o_auth_api_test.dart | 46 - .../test/o_auth_callback_dto_test.dart | 27 - .../openapi/test/o_auth_config_dto_test.dart | 27 - .../test/o_auth_config_response_dto_test.dart | 47 - mobile/openapi/test/partner_api_test.dart | 36 - mobile/openapi/test/person_api_test.dart | 46 - .../test/person_response_dto_test.dart | 37 - .../openapi/test/person_update_dto_test.dart | 34 - .../openapi/test/queue_status_dto_test.dart | 32 - .../openapi/test/remove_assets_dto_test.dart | 27 - .../test/search_album_response_dto_test.dart | 42 - mobile/openapi/test/search_api_test.dart | 36 - .../openapi/test/search_asset_dto_test.dart | 27 - .../test/search_asset_response_dto_test.dart | 42 - .../test/search_config_response_dto_test.dart | 27 - .../test/search_explore_item_test.dart | 32 - .../search_explore_response_dto_test.dart | 32 - .../search_facet_count_response_dto_test.dart | 32 - .../test/search_facet_response_dto_test.dart | 32 - .../test/search_response_dto_test.dart | 32 - mobile/openapi/test/server_info_api_test.dart | 41 - .../test/server_info_response_dto_test.dart | 57 - .../test/server_ping_response_test.dart | 27 - .../test/server_stats_response_dto_test.dart | 42 - .../test/server_version_reponse_dto_test.dart | 37 - mobile/openapi/test/shared_link_api_test.dart | 61 - .../test/shared_link_create_dto_test.dart | 62 - .../test/shared_link_edit_dto_test.dart | 47 - .../test/shared_link_response_dto_test.dart | 82 - .../openapi/test/shared_link_type_test.dart | 21 - mobile/openapi/test/sign_up_dto_test.dart | 42 - .../test/smart_info_response_dto_test.dart | 32 - .../openapi/test/system_config_api_test.dart | 41 - .../openapi/test/system_config_dto_test.dart | 47 - .../test/system_config_f_fmpeg_dto_test.dart | 67 - .../test/system_config_job_dto_test.dart | 72 - .../test/system_config_o_auth_dto_test.dart | 72 - ...system_config_password_login_dto_test.dart | 27 - ...stem_config_storage_template_dto_test.dart | 27 - ...nfig_template_storage_option_dto_test.dart | 57 - mobile/openapi/test/tag_api_test.dart | 61 - .../openapi/test/tag_response_dto_test.dart | 42 - mobile/openapi/test/tag_type_enum_test.dart | 21 - .../openapi/test/thumbnail_format_test.dart | 21 - mobile/openapi/test/time_group_enum_test.dart | 21 - .../openapi/test/update_album_dto_test.dart | 32 - .../openapi/test/update_asset_dto_test.dart | 42 - mobile/openapi/test/update_tag_dto_test.dart | 27 - mobile/openapi/test/update_user_dto_test.dart | 67 - .../openapi/test/usage_by_user_dto_test.dart | 52 - mobile/openapi/test/user_api_test.dart | 71 - .../test/user_count_response_dto_test.dart | 27 - .../openapi/test/user_response_dto_test.dart | 87 - ...lidate_access_token_response_dto_test.dart | 27 - .../assets/thumbnail/thumbnail.svelte | 2 - 361 files changed, 32186 deletions(-) delete mode 100644 mobile/openapi/.gitignore delete mode 100644 mobile/openapi/.openapi-generator-ignore delete mode 100644 mobile/openapi/.openapi-generator/FILES delete mode 100644 mobile/openapi/.openapi-generator/VERSION delete mode 100644 mobile/openapi/.travis.yml delete mode 100644 mobile/openapi/README.md delete mode 100644 mobile/openapi/analysis_options.yaml delete mode 100644 mobile/openapi/doc/APIKeyApi.md delete mode 100644 mobile/openapi/doc/APIKeyCreateDto.md delete mode 100644 mobile/openapi/doc/APIKeyCreateResponseDto.md delete mode 100644 mobile/openapi/doc/APIKeyResponseDto.md delete mode 100644 mobile/openapi/doc/APIKeyUpdateDto.md delete mode 100644 mobile/openapi/doc/AddAssetsDto.md delete mode 100644 mobile/openapi/doc/AddAssetsResponseDto.md delete mode 100644 mobile/openapi/doc/AddUsersDto.md delete mode 100644 mobile/openapi/doc/AdminSignupResponseDto.md delete mode 100644 mobile/openapi/doc/AlbumApi.md delete mode 100644 mobile/openapi/doc/AlbumCountResponseDto.md delete mode 100644 mobile/openapi/doc/AlbumResponseDto.md delete mode 100644 mobile/openapi/doc/AllJobStatusResponseDto.md delete mode 100644 mobile/openapi/doc/AssetApi.md delete mode 100644 mobile/openapi/doc/AssetBulkUploadCheckDto.md delete mode 100644 mobile/openapi/doc/AssetBulkUploadCheckItem.md delete mode 100644 mobile/openapi/doc/AssetBulkUploadCheckResponseDto.md delete mode 100644 mobile/openapi/doc/AssetBulkUploadCheckResult.md delete mode 100644 mobile/openapi/doc/AssetCountByTimeBucket.md delete mode 100644 mobile/openapi/doc/AssetCountByTimeBucketResponseDto.md delete mode 100644 mobile/openapi/doc/AssetCountByUserIdResponseDto.md delete mode 100644 mobile/openapi/doc/AssetFileUploadResponseDto.md delete mode 100644 mobile/openapi/doc/AssetIdsDto.md delete mode 100644 mobile/openapi/doc/AssetIdsResponseDto.md delete mode 100644 mobile/openapi/doc/AssetResponseDto.md delete mode 100644 mobile/openapi/doc/AssetTypeEnum.md delete mode 100644 mobile/openapi/doc/AuthDeviceResponseDto.md delete mode 100644 mobile/openapi/doc/AuthenticationApi.md delete mode 100644 mobile/openapi/doc/ChangePasswordDto.md delete mode 100644 mobile/openapi/doc/CheckDuplicateAssetDto.md delete mode 100644 mobile/openapi/doc/CheckDuplicateAssetResponseDto.md delete mode 100644 mobile/openapi/doc/CheckExistingAssetsDto.md delete mode 100644 mobile/openapi/doc/CheckExistingAssetsResponseDto.md delete mode 100644 mobile/openapi/doc/CreateAlbumDto.md delete mode 100644 mobile/openapi/doc/CreateProfileImageResponseDto.md delete mode 100644 mobile/openapi/doc/CreateTagDto.md delete mode 100644 mobile/openapi/doc/CreateUserDto.md delete mode 100644 mobile/openapi/doc/CuratedLocationsResponseDto.md delete mode 100644 mobile/openapi/doc/CuratedObjectsResponseDto.md delete mode 100644 mobile/openapi/doc/DeleteAssetDto.md delete mode 100644 mobile/openapi/doc/DeleteAssetResponseDto.md delete mode 100644 mobile/openapi/doc/DeleteAssetStatus.md delete mode 100644 mobile/openapi/doc/DownloadArchiveInfo.md delete mode 100644 mobile/openapi/doc/DownloadResponseDto.md delete mode 100644 mobile/openapi/doc/ExifResponseDto.md delete mode 100644 mobile/openapi/doc/GetAssetByTimeBucketDto.md delete mode 100644 mobile/openapi/doc/GetAssetCountByTimeBucketDto.md delete mode 100644 mobile/openapi/doc/ImportAssetDto.md delete mode 100644 mobile/openapi/doc/JobApi.md delete mode 100644 mobile/openapi/doc/JobCommand.md delete mode 100644 mobile/openapi/doc/JobCommandDto.md delete mode 100644 mobile/openapi/doc/JobCountsDto.md delete mode 100644 mobile/openapi/doc/JobName.md delete mode 100644 mobile/openapi/doc/JobSettingsDto.md delete mode 100644 mobile/openapi/doc/JobStatusDto.md delete mode 100644 mobile/openapi/doc/LoginCredentialDto.md delete mode 100644 mobile/openapi/doc/LoginResponseDto.md delete mode 100644 mobile/openapi/doc/LogoutResponseDto.md delete mode 100644 mobile/openapi/doc/MapMarkerResponseDto.md delete mode 100644 mobile/openapi/doc/MemoryLaneResponseDto.md delete mode 100644 mobile/openapi/doc/OAuthApi.md delete mode 100644 mobile/openapi/doc/OAuthCallbackDto.md delete mode 100644 mobile/openapi/doc/OAuthConfigDto.md delete mode 100644 mobile/openapi/doc/OAuthConfigResponseDto.md delete mode 100644 mobile/openapi/doc/PartnerApi.md delete mode 100644 mobile/openapi/doc/PersonApi.md delete mode 100644 mobile/openapi/doc/PersonResponseDto.md delete mode 100644 mobile/openapi/doc/PersonUpdateDto.md delete mode 100644 mobile/openapi/doc/QueueStatusDto.md delete mode 100644 mobile/openapi/doc/RemoveAssetsDto.md delete mode 100644 mobile/openapi/doc/SearchAlbumResponseDto.md delete mode 100644 mobile/openapi/doc/SearchApi.md delete mode 100644 mobile/openapi/doc/SearchAssetDto.md delete mode 100644 mobile/openapi/doc/SearchAssetResponseDto.md delete mode 100644 mobile/openapi/doc/SearchConfigResponseDto.md delete mode 100644 mobile/openapi/doc/SearchExploreItem.md delete mode 100644 mobile/openapi/doc/SearchExploreResponseDto.md delete mode 100644 mobile/openapi/doc/SearchFacetCountResponseDto.md delete mode 100644 mobile/openapi/doc/SearchFacetResponseDto.md delete mode 100644 mobile/openapi/doc/SearchResponseDto.md delete mode 100644 mobile/openapi/doc/ServerInfoApi.md delete mode 100644 mobile/openapi/doc/ServerInfoResponseDto.md delete mode 100644 mobile/openapi/doc/ServerPingResponse.md delete mode 100644 mobile/openapi/doc/ServerStatsResponseDto.md delete mode 100644 mobile/openapi/doc/ServerVersionReponseDto.md delete mode 100644 mobile/openapi/doc/SharedLinkApi.md delete mode 100644 mobile/openapi/doc/SharedLinkCreateDto.md delete mode 100644 mobile/openapi/doc/SharedLinkEditDto.md delete mode 100644 mobile/openapi/doc/SharedLinkResponseDto.md delete mode 100644 mobile/openapi/doc/SharedLinkType.md delete mode 100644 mobile/openapi/doc/SignUpDto.md delete mode 100644 mobile/openapi/doc/SmartInfoResponseDto.md delete mode 100644 mobile/openapi/doc/SystemConfigApi.md delete mode 100644 mobile/openapi/doc/SystemConfigDto.md delete mode 100644 mobile/openapi/doc/SystemConfigFFmpegDto.md delete mode 100644 mobile/openapi/doc/SystemConfigJobDto.md delete mode 100644 mobile/openapi/doc/SystemConfigOAuthDto.md delete mode 100644 mobile/openapi/doc/SystemConfigPasswordLoginDto.md delete mode 100644 mobile/openapi/doc/SystemConfigStorageTemplateDto.md delete mode 100644 mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md delete mode 100644 mobile/openapi/doc/TagApi.md delete mode 100644 mobile/openapi/doc/TagResponseDto.md delete mode 100644 mobile/openapi/doc/TagTypeEnum.md delete mode 100644 mobile/openapi/doc/ThumbnailFormat.md delete mode 100644 mobile/openapi/doc/TimeGroupEnum.md delete mode 100644 mobile/openapi/doc/UpdateAlbumDto.md delete mode 100644 mobile/openapi/doc/UpdateAssetDto.md delete mode 100644 mobile/openapi/doc/UpdateTagDto.md delete mode 100644 mobile/openapi/doc/UpdateUserDto.md delete mode 100644 mobile/openapi/doc/UsageByUserDto.md delete mode 100644 mobile/openapi/doc/UserApi.md delete mode 100644 mobile/openapi/doc/UserCountResponseDto.md delete mode 100644 mobile/openapi/doc/UserResponseDto.md delete mode 100644 mobile/openapi/doc/ValidateAccessTokenResponseDto.md delete mode 100644 mobile/openapi/git_push.sh delete mode 100644 mobile/openapi/lib/api.dart delete mode 100644 mobile/openapi/lib/api/album_api.dart delete mode 100644 mobile/openapi/lib/api/api_key_api.dart delete mode 100644 mobile/openapi/lib/api/asset_api.dart delete mode 100644 mobile/openapi/lib/api/authentication_api.dart delete mode 100644 mobile/openapi/lib/api/job_api.dart delete mode 100644 mobile/openapi/lib/api/o_auth_api.dart delete mode 100644 mobile/openapi/lib/api/partner_api.dart delete mode 100644 mobile/openapi/lib/api/person_api.dart delete mode 100644 mobile/openapi/lib/api/search_api.dart delete mode 100644 mobile/openapi/lib/api/server_info_api.dart delete mode 100644 mobile/openapi/lib/api/shared_link_api.dart delete mode 100644 mobile/openapi/lib/api/system_config_api.dart delete mode 100644 mobile/openapi/lib/api/tag_api.dart delete mode 100644 mobile/openapi/lib/api/user_api.dart delete mode 100644 mobile/openapi/lib/api_client.dart delete mode 100644 mobile/openapi/lib/api_exception.dart delete mode 100644 mobile/openapi/lib/api_helper.dart delete mode 100644 mobile/openapi/lib/auth/api_key_auth.dart delete mode 100644 mobile/openapi/lib/auth/authentication.dart delete mode 100644 mobile/openapi/lib/auth/http_basic_auth.dart delete mode 100644 mobile/openapi/lib/auth/http_bearer_auth.dart delete mode 100644 mobile/openapi/lib/auth/oauth.dart delete mode 100644 mobile/openapi/lib/model/add_assets_dto.dart delete mode 100644 mobile/openapi/lib/model/add_assets_response_dto.dart delete mode 100644 mobile/openapi/lib/model/add_users_dto.dart delete mode 100644 mobile/openapi/lib/model/admin_signup_response_dto.dart delete mode 100644 mobile/openapi/lib/model/album_count_response_dto.dart delete mode 100644 mobile/openapi/lib/model/album_response_dto.dart delete mode 100644 mobile/openapi/lib/model/all_job_status_response_dto.dart delete mode 100644 mobile/openapi/lib/model/api_key_create_dto.dart delete mode 100644 mobile/openapi/lib/model/api_key_create_response_dto.dart delete mode 100644 mobile/openapi/lib/model/api_key_response_dto.dart delete mode 100644 mobile/openapi/lib/model/api_key_update_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_bulk_upload_check_item.dart delete mode 100644 mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_bulk_upload_check_result.dart delete mode 100644 mobile/openapi/lib/model/asset_count_by_time_bucket.dart delete mode 100644 mobile/openapi/lib/model/asset_count_by_time_bucket_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_count_by_user_id_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_file_upload_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_ids_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_ids_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_response_dto.dart delete mode 100644 mobile/openapi/lib/model/asset_type_enum.dart delete mode 100644 mobile/openapi/lib/model/auth_device_response_dto.dart delete mode 100644 mobile/openapi/lib/model/change_password_dto.dart delete mode 100644 mobile/openapi/lib/model/check_duplicate_asset_dto.dart delete mode 100644 mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart delete mode 100644 mobile/openapi/lib/model/check_existing_assets_dto.dart delete mode 100644 mobile/openapi/lib/model/check_existing_assets_response_dto.dart delete mode 100644 mobile/openapi/lib/model/create_album_dto.dart delete mode 100644 mobile/openapi/lib/model/create_profile_image_response_dto.dart delete mode 100644 mobile/openapi/lib/model/create_tag_dto.dart delete mode 100644 mobile/openapi/lib/model/create_user_dto.dart delete mode 100644 mobile/openapi/lib/model/curated_locations_response_dto.dart delete mode 100644 mobile/openapi/lib/model/curated_objects_response_dto.dart delete mode 100644 mobile/openapi/lib/model/delete_asset_dto.dart delete mode 100644 mobile/openapi/lib/model/delete_asset_response_dto.dart delete mode 100644 mobile/openapi/lib/model/delete_asset_status.dart delete mode 100644 mobile/openapi/lib/model/download_archive_info.dart delete mode 100644 mobile/openapi/lib/model/download_response_dto.dart delete mode 100644 mobile/openapi/lib/model/exif_response_dto.dart delete mode 100644 mobile/openapi/lib/model/get_asset_by_time_bucket_dto.dart delete mode 100644 mobile/openapi/lib/model/get_asset_count_by_time_bucket_dto.dart delete mode 100644 mobile/openapi/lib/model/import_asset_dto.dart delete mode 100644 mobile/openapi/lib/model/job_command.dart delete mode 100644 mobile/openapi/lib/model/job_command_dto.dart delete mode 100644 mobile/openapi/lib/model/job_counts_dto.dart delete mode 100644 mobile/openapi/lib/model/job_name.dart delete mode 100644 mobile/openapi/lib/model/job_settings_dto.dart delete mode 100644 mobile/openapi/lib/model/job_status_dto.dart delete mode 100644 mobile/openapi/lib/model/login_credential_dto.dart delete mode 100644 mobile/openapi/lib/model/login_response_dto.dart delete mode 100644 mobile/openapi/lib/model/logout_response_dto.dart delete mode 100644 mobile/openapi/lib/model/map_marker_response_dto.dart delete mode 100644 mobile/openapi/lib/model/memory_lane_response_dto.dart delete mode 100644 mobile/openapi/lib/model/o_auth_callback_dto.dart delete mode 100644 mobile/openapi/lib/model/o_auth_config_dto.dart delete mode 100644 mobile/openapi/lib/model/o_auth_config_response_dto.dart delete mode 100644 mobile/openapi/lib/model/person_response_dto.dart delete mode 100644 mobile/openapi/lib/model/person_update_dto.dart delete mode 100644 mobile/openapi/lib/model/queue_status_dto.dart delete mode 100644 mobile/openapi/lib/model/remove_assets_dto.dart delete mode 100644 mobile/openapi/lib/model/search_album_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_asset_dto.dart delete mode 100644 mobile/openapi/lib/model/search_asset_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_config_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_explore_item.dart delete mode 100644 mobile/openapi/lib/model/search_explore_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_facet_count_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_facet_response_dto.dart delete mode 100644 mobile/openapi/lib/model/search_response_dto.dart delete mode 100644 mobile/openapi/lib/model/server_info_response_dto.dart delete mode 100644 mobile/openapi/lib/model/server_ping_response.dart delete mode 100644 mobile/openapi/lib/model/server_stats_response_dto.dart delete mode 100644 mobile/openapi/lib/model/server_version_reponse_dto.dart delete mode 100644 mobile/openapi/lib/model/shared_link_create_dto.dart delete mode 100644 mobile/openapi/lib/model/shared_link_edit_dto.dart delete mode 100644 mobile/openapi/lib/model/shared_link_response_dto.dart delete mode 100644 mobile/openapi/lib/model/shared_link_type.dart delete mode 100644 mobile/openapi/lib/model/sign_up_dto.dart delete mode 100644 mobile/openapi/lib/model/smart_info_response_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_job_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_o_auth_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_password_login_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_storage_template_dto.dart delete mode 100644 mobile/openapi/lib/model/system_config_template_storage_option_dto.dart delete mode 100644 mobile/openapi/lib/model/tag_response_dto.dart delete mode 100644 mobile/openapi/lib/model/tag_type_enum.dart delete mode 100644 mobile/openapi/lib/model/thumbnail_format.dart delete mode 100644 mobile/openapi/lib/model/time_group_enum.dart delete mode 100644 mobile/openapi/lib/model/update_album_dto.dart delete mode 100644 mobile/openapi/lib/model/update_asset_dto.dart delete mode 100644 mobile/openapi/lib/model/update_tag_dto.dart delete mode 100644 mobile/openapi/lib/model/update_user_dto.dart delete mode 100644 mobile/openapi/lib/model/usage_by_user_dto.dart delete mode 100644 mobile/openapi/lib/model/user_count_response_dto.dart delete mode 100644 mobile/openapi/lib/model/user_response_dto.dart delete mode 100644 mobile/openapi/lib/model/validate_access_token_response_dto.dart delete mode 100644 mobile/openapi/pubspec.yaml delete mode 100644 mobile/openapi/test/add_assets_dto_test.dart delete mode 100644 mobile/openapi/test/add_assets_response_dto_test.dart delete mode 100644 mobile/openapi/test/add_users_dto_test.dart delete mode 100644 mobile/openapi/test/admin_signup_response_dto_test.dart delete mode 100644 mobile/openapi/test/album_api_test.dart delete mode 100644 mobile/openapi/test/album_count_response_dto_test.dart delete mode 100644 mobile/openapi/test/album_response_dto_test.dart delete mode 100644 mobile/openapi/test/all_job_status_response_dto_test.dart delete mode 100644 mobile/openapi/test/api_key_api_test.dart delete mode 100644 mobile/openapi/test/api_key_create_dto_test.dart delete mode 100644 mobile/openapi/test/api_key_create_response_dto_test.dart delete mode 100644 mobile/openapi/test/api_key_response_dto_test.dart delete mode 100644 mobile/openapi/test/api_key_update_dto_test.dart delete mode 100644 mobile/openapi/test/asset_api_test.dart delete mode 100644 mobile/openapi/test/asset_bulk_upload_check_dto_test.dart delete mode 100644 mobile/openapi/test/asset_bulk_upload_check_item_test.dart delete mode 100644 mobile/openapi/test/asset_bulk_upload_check_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_bulk_upload_check_result_test.dart delete mode 100644 mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_count_by_time_bucket_test.dart delete mode 100644 mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_file_upload_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_ids_dto_test.dart delete mode 100644 mobile/openapi/test/asset_ids_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_response_dto_test.dart delete mode 100644 mobile/openapi/test/asset_type_enum_test.dart delete mode 100644 mobile/openapi/test/auth_device_response_dto_test.dart delete mode 100644 mobile/openapi/test/authentication_api_test.dart delete mode 100644 mobile/openapi/test/change_password_dto_test.dart delete mode 100644 mobile/openapi/test/check_duplicate_asset_dto_test.dart delete mode 100644 mobile/openapi/test/check_duplicate_asset_response_dto_test.dart delete mode 100644 mobile/openapi/test/check_existing_assets_dto_test.dart delete mode 100644 mobile/openapi/test/check_existing_assets_response_dto_test.dart delete mode 100644 mobile/openapi/test/create_album_dto_test.dart delete mode 100644 mobile/openapi/test/create_profile_image_response_dto_test.dart delete mode 100644 mobile/openapi/test/create_tag_dto_test.dart delete mode 100644 mobile/openapi/test/create_user_dto_test.dart delete mode 100644 mobile/openapi/test/curated_locations_response_dto_test.dart delete mode 100644 mobile/openapi/test/curated_objects_response_dto_test.dart delete mode 100644 mobile/openapi/test/delete_asset_dto_test.dart delete mode 100644 mobile/openapi/test/delete_asset_response_dto_test.dart delete mode 100644 mobile/openapi/test/delete_asset_status_test.dart delete mode 100644 mobile/openapi/test/download_archive_info_test.dart delete mode 100644 mobile/openapi/test/download_response_dto_test.dart delete mode 100644 mobile/openapi/test/exif_response_dto_test.dart delete mode 100644 mobile/openapi/test/get_asset_by_time_bucket_dto_test.dart delete mode 100644 mobile/openapi/test/get_asset_count_by_time_bucket_dto_test.dart delete mode 100644 mobile/openapi/test/import_asset_dto_test.dart delete mode 100644 mobile/openapi/test/job_api_test.dart delete mode 100644 mobile/openapi/test/job_command_dto_test.dart delete mode 100644 mobile/openapi/test/job_command_test.dart delete mode 100644 mobile/openapi/test/job_counts_dto_test.dart delete mode 100644 mobile/openapi/test/job_name_test.dart delete mode 100644 mobile/openapi/test/job_settings_dto_test.dart delete mode 100644 mobile/openapi/test/job_status_dto_test.dart delete mode 100644 mobile/openapi/test/login_credential_dto_test.dart delete mode 100644 mobile/openapi/test/login_response_dto_test.dart delete mode 100644 mobile/openapi/test/logout_response_dto_test.dart delete mode 100644 mobile/openapi/test/map_marker_response_dto_test.dart delete mode 100644 mobile/openapi/test/memory_lane_response_dto_test.dart delete mode 100644 mobile/openapi/test/o_auth_api_test.dart delete mode 100644 mobile/openapi/test/o_auth_callback_dto_test.dart delete mode 100644 mobile/openapi/test/o_auth_config_dto_test.dart delete mode 100644 mobile/openapi/test/o_auth_config_response_dto_test.dart delete mode 100644 mobile/openapi/test/partner_api_test.dart delete mode 100644 mobile/openapi/test/person_api_test.dart delete mode 100644 mobile/openapi/test/person_response_dto_test.dart delete mode 100644 mobile/openapi/test/person_update_dto_test.dart delete mode 100644 mobile/openapi/test/queue_status_dto_test.dart delete mode 100644 mobile/openapi/test/remove_assets_dto_test.dart delete mode 100644 mobile/openapi/test/search_album_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_api_test.dart delete mode 100644 mobile/openapi/test/search_asset_dto_test.dart delete mode 100644 mobile/openapi/test/search_asset_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_config_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_explore_item_test.dart delete mode 100644 mobile/openapi/test/search_explore_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_facet_count_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_facet_response_dto_test.dart delete mode 100644 mobile/openapi/test/search_response_dto_test.dart delete mode 100644 mobile/openapi/test/server_info_api_test.dart delete mode 100644 mobile/openapi/test/server_info_response_dto_test.dart delete mode 100644 mobile/openapi/test/server_ping_response_test.dart delete mode 100644 mobile/openapi/test/server_stats_response_dto_test.dart delete mode 100644 mobile/openapi/test/server_version_reponse_dto_test.dart delete mode 100644 mobile/openapi/test/shared_link_api_test.dart delete mode 100644 mobile/openapi/test/shared_link_create_dto_test.dart delete mode 100644 mobile/openapi/test/shared_link_edit_dto_test.dart delete mode 100644 mobile/openapi/test/shared_link_response_dto_test.dart delete mode 100644 mobile/openapi/test/shared_link_type_test.dart delete mode 100644 mobile/openapi/test/sign_up_dto_test.dart delete mode 100644 mobile/openapi/test/smart_info_response_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_api_test.dart delete mode 100644 mobile/openapi/test/system_config_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_f_fmpeg_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_job_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_o_auth_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_password_login_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_storage_template_dto_test.dart delete mode 100644 mobile/openapi/test/system_config_template_storage_option_dto_test.dart delete mode 100644 mobile/openapi/test/tag_api_test.dart delete mode 100644 mobile/openapi/test/tag_response_dto_test.dart delete mode 100644 mobile/openapi/test/tag_type_enum_test.dart delete mode 100644 mobile/openapi/test/thumbnail_format_test.dart delete mode 100644 mobile/openapi/test/time_group_enum_test.dart delete mode 100644 mobile/openapi/test/update_album_dto_test.dart delete mode 100644 mobile/openapi/test/update_asset_dto_test.dart delete mode 100644 mobile/openapi/test/update_tag_dto_test.dart delete mode 100644 mobile/openapi/test/update_user_dto_test.dart delete mode 100644 mobile/openapi/test/usage_by_user_dto_test.dart delete mode 100644 mobile/openapi/test/user_api_test.dart delete mode 100644 mobile/openapi/test/user_count_response_dto_test.dart delete mode 100644 mobile/openapi/test/user_response_dto_test.dart delete mode 100644 mobile/openapi/test/validate_access_token_response_dto_test.dart diff --git a/mobile/openapi/.gitignore b/mobile/openapi/.gitignore deleted file mode 100644 index 1be28ced0940a2..00000000000000 --- a/mobile/openapi/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://dart.dev/guides/libraries/private-files - -.dart_tool/ -.packages -build/ -pubspec.lock # Except for application packages - -doc/api/ - -# IntelliJ -*.iml -*.ipr -*.iws -.idea/ - -# Mac -.DS_Store diff --git a/mobile/openapi/.openapi-generator-ignore b/mobile/openapi/.openapi-generator-ignore deleted file mode 100644 index 7484ee590a3894..00000000000000 --- a/mobile/openapi/.openapi-generator-ignore +++ /dev/null @@ -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 diff --git a/mobile/openapi/.openapi-generator/FILES b/mobile/openapi/.openapi-generator/FILES deleted file mode 100644 index 26eeb1c6b627b5..00000000000000 --- a/mobile/openapi/.openapi-generator/FILES +++ /dev/null @@ -1,358 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -analysis_options.yaml -doc/APIKeyApi.md -doc/APIKeyCreateDto.md -doc/APIKeyCreateResponseDto.md -doc/APIKeyResponseDto.md -doc/APIKeyUpdateDto.md -doc/AddAssetsDto.md -doc/AddAssetsResponseDto.md -doc/AddUsersDto.md -doc/AdminSignupResponseDto.md -doc/AlbumApi.md -doc/AlbumCountResponseDto.md -doc/AlbumResponseDto.md -doc/AllJobStatusResponseDto.md -doc/AssetApi.md -doc/AssetBulkUploadCheckDto.md -doc/AssetBulkUploadCheckItem.md -doc/AssetBulkUploadCheckResponseDto.md -doc/AssetBulkUploadCheckResult.md -doc/AssetCountByTimeBucket.md -doc/AssetCountByTimeBucketResponseDto.md -doc/AssetCountByUserIdResponseDto.md -doc/AssetFileUploadResponseDto.md -doc/AssetIdsDto.md -doc/AssetIdsResponseDto.md -doc/AssetResponseDto.md -doc/AssetTypeEnum.md -doc/AuthDeviceResponseDto.md -doc/AuthenticationApi.md -doc/ChangePasswordDto.md -doc/CheckDuplicateAssetDto.md -doc/CheckDuplicateAssetResponseDto.md -doc/CheckExistingAssetsDto.md -doc/CheckExistingAssetsResponseDto.md -doc/CreateAlbumDto.md -doc/CreateProfileImageResponseDto.md -doc/CreateTagDto.md -doc/CreateUserDto.md -doc/CuratedLocationsResponseDto.md -doc/CuratedObjectsResponseDto.md -doc/DeleteAssetDto.md -doc/DeleteAssetResponseDto.md -doc/DeleteAssetStatus.md -doc/DownloadArchiveInfo.md -doc/DownloadResponseDto.md -doc/ExifResponseDto.md -doc/GetAssetByTimeBucketDto.md -doc/GetAssetCountByTimeBucketDto.md -doc/ImportAssetDto.md -doc/JobApi.md -doc/JobCommand.md -doc/JobCommandDto.md -doc/JobCountsDto.md -doc/JobName.md -doc/JobSettingsDto.md -doc/JobStatusDto.md -doc/LoginCredentialDto.md -doc/LoginResponseDto.md -doc/LogoutResponseDto.md -doc/MapMarkerResponseDto.md -doc/MemoryLaneResponseDto.md -doc/OAuthApi.md -doc/OAuthCallbackDto.md -doc/OAuthConfigDto.md -doc/OAuthConfigResponseDto.md -doc/PartnerApi.md -doc/PersonApi.md -doc/PersonResponseDto.md -doc/PersonUpdateDto.md -doc/QueueStatusDto.md -doc/RemoveAssetsDto.md -doc/SearchAlbumResponseDto.md -doc/SearchApi.md -doc/SearchAssetDto.md -doc/SearchAssetResponseDto.md -doc/SearchConfigResponseDto.md -doc/SearchExploreItem.md -doc/SearchExploreResponseDto.md -doc/SearchFacetCountResponseDto.md -doc/SearchFacetResponseDto.md -doc/SearchResponseDto.md -doc/ServerInfoApi.md -doc/ServerInfoResponseDto.md -doc/ServerPingResponse.md -doc/ServerStatsResponseDto.md -doc/ServerVersionReponseDto.md -doc/SharedLinkApi.md -doc/SharedLinkCreateDto.md -doc/SharedLinkEditDto.md -doc/SharedLinkResponseDto.md -doc/SharedLinkType.md -doc/SignUpDto.md -doc/SmartInfoResponseDto.md -doc/SystemConfigApi.md -doc/SystemConfigDto.md -doc/SystemConfigFFmpegDto.md -doc/SystemConfigJobDto.md -doc/SystemConfigOAuthDto.md -doc/SystemConfigPasswordLoginDto.md -doc/SystemConfigStorageTemplateDto.md -doc/SystemConfigTemplateStorageOptionDto.md -doc/TagApi.md -doc/TagResponseDto.md -doc/TagTypeEnum.md -doc/ThumbnailFormat.md -doc/TimeGroupEnum.md -doc/UpdateAlbumDto.md -doc/UpdateAssetDto.md -doc/UpdateTagDto.md -doc/UpdateUserDto.md -doc/UsageByUserDto.md -doc/UserApi.md -doc/UserCountResponseDto.md -doc/UserResponseDto.md -doc/ValidateAccessTokenResponseDto.md -git_push.sh -lib/api.dart -lib/api/album_api.dart -lib/api/api_key_api.dart -lib/api/asset_api.dart -lib/api/authentication_api.dart -lib/api/job_api.dart -lib/api/o_auth_api.dart -lib/api/partner_api.dart -lib/api/person_api.dart -lib/api/search_api.dart -lib/api/server_info_api.dart -lib/api/shared_link_api.dart -lib/api/system_config_api.dart -lib/api/tag_api.dart -lib/api/user_api.dart -lib/api_client.dart -lib/api_exception.dart -lib/api_helper.dart -lib/auth/api_key_auth.dart -lib/auth/authentication.dart -lib/auth/http_basic_auth.dart -lib/auth/http_bearer_auth.dart -lib/auth/oauth.dart -lib/model/add_assets_dto.dart -lib/model/add_assets_response_dto.dart -lib/model/add_users_dto.dart -lib/model/admin_signup_response_dto.dart -lib/model/album_count_response_dto.dart -lib/model/album_response_dto.dart -lib/model/all_job_status_response_dto.dart -lib/model/api_key_create_dto.dart -lib/model/api_key_create_response_dto.dart -lib/model/api_key_response_dto.dart -lib/model/api_key_update_dto.dart -lib/model/asset_bulk_upload_check_dto.dart -lib/model/asset_bulk_upload_check_item.dart -lib/model/asset_bulk_upload_check_response_dto.dart -lib/model/asset_bulk_upload_check_result.dart -lib/model/asset_count_by_time_bucket.dart -lib/model/asset_count_by_time_bucket_response_dto.dart -lib/model/asset_count_by_user_id_response_dto.dart -lib/model/asset_file_upload_response_dto.dart -lib/model/asset_ids_dto.dart -lib/model/asset_ids_response_dto.dart -lib/model/asset_response_dto.dart -lib/model/asset_type_enum.dart -lib/model/auth_device_response_dto.dart -lib/model/change_password_dto.dart -lib/model/check_duplicate_asset_dto.dart -lib/model/check_duplicate_asset_response_dto.dart -lib/model/check_existing_assets_dto.dart -lib/model/check_existing_assets_response_dto.dart -lib/model/create_album_dto.dart -lib/model/create_profile_image_response_dto.dart -lib/model/create_tag_dto.dart -lib/model/create_user_dto.dart -lib/model/curated_locations_response_dto.dart -lib/model/curated_objects_response_dto.dart -lib/model/delete_asset_dto.dart -lib/model/delete_asset_response_dto.dart -lib/model/delete_asset_status.dart -lib/model/download_archive_info.dart -lib/model/download_response_dto.dart -lib/model/exif_response_dto.dart -lib/model/get_asset_by_time_bucket_dto.dart -lib/model/get_asset_count_by_time_bucket_dto.dart -lib/model/import_asset_dto.dart -lib/model/job_command.dart -lib/model/job_command_dto.dart -lib/model/job_counts_dto.dart -lib/model/job_name.dart -lib/model/job_settings_dto.dart -lib/model/job_status_dto.dart -lib/model/login_credential_dto.dart -lib/model/login_response_dto.dart -lib/model/logout_response_dto.dart -lib/model/map_marker_response_dto.dart -lib/model/memory_lane_response_dto.dart -lib/model/o_auth_callback_dto.dart -lib/model/o_auth_config_dto.dart -lib/model/o_auth_config_response_dto.dart -lib/model/person_response_dto.dart -lib/model/person_update_dto.dart -lib/model/queue_status_dto.dart -lib/model/remove_assets_dto.dart -lib/model/search_album_response_dto.dart -lib/model/search_asset_dto.dart -lib/model/search_asset_response_dto.dart -lib/model/search_config_response_dto.dart -lib/model/search_explore_item.dart -lib/model/search_explore_response_dto.dart -lib/model/search_facet_count_response_dto.dart -lib/model/search_facet_response_dto.dart -lib/model/search_response_dto.dart -lib/model/server_info_response_dto.dart -lib/model/server_ping_response.dart -lib/model/server_stats_response_dto.dart -lib/model/server_version_reponse_dto.dart -lib/model/shared_link_create_dto.dart -lib/model/shared_link_edit_dto.dart -lib/model/shared_link_response_dto.dart -lib/model/shared_link_type.dart -lib/model/sign_up_dto.dart -lib/model/smart_info_response_dto.dart -lib/model/system_config_dto.dart -lib/model/system_config_f_fmpeg_dto.dart -lib/model/system_config_job_dto.dart -lib/model/system_config_o_auth_dto.dart -lib/model/system_config_password_login_dto.dart -lib/model/system_config_storage_template_dto.dart -lib/model/system_config_template_storage_option_dto.dart -lib/model/tag_response_dto.dart -lib/model/tag_type_enum.dart -lib/model/thumbnail_format.dart -lib/model/time_group_enum.dart -lib/model/update_album_dto.dart -lib/model/update_asset_dto.dart -lib/model/update_tag_dto.dart -lib/model/update_user_dto.dart -lib/model/usage_by_user_dto.dart -lib/model/user_count_response_dto.dart -lib/model/user_response_dto.dart -lib/model/validate_access_token_response_dto.dart -pubspec.yaml -test/add_assets_dto_test.dart -test/add_assets_response_dto_test.dart -test/add_users_dto_test.dart -test/admin_signup_response_dto_test.dart -test/album_api_test.dart -test/album_count_response_dto_test.dart -test/album_response_dto_test.dart -test/all_job_status_response_dto_test.dart -test/api_key_api_test.dart -test/api_key_create_dto_test.dart -test/api_key_create_response_dto_test.dart -test/api_key_response_dto_test.dart -test/api_key_update_dto_test.dart -test/asset_api_test.dart -test/asset_bulk_upload_check_dto_test.dart -test/asset_bulk_upload_check_item_test.dart -test/asset_bulk_upload_check_response_dto_test.dart -test/asset_bulk_upload_check_result_test.dart -test/asset_count_by_time_bucket_response_dto_test.dart -test/asset_count_by_time_bucket_test.dart -test/asset_count_by_user_id_response_dto_test.dart -test/asset_file_upload_response_dto_test.dart -test/asset_ids_dto_test.dart -test/asset_ids_response_dto_test.dart -test/asset_response_dto_test.dart -test/asset_type_enum_test.dart -test/auth_device_response_dto_test.dart -test/authentication_api_test.dart -test/change_password_dto_test.dart -test/check_duplicate_asset_dto_test.dart -test/check_duplicate_asset_response_dto_test.dart -test/check_existing_assets_dto_test.dart -test/check_existing_assets_response_dto_test.dart -test/create_album_dto_test.dart -test/create_profile_image_response_dto_test.dart -test/create_tag_dto_test.dart -test/create_user_dto_test.dart -test/curated_locations_response_dto_test.dart -test/curated_objects_response_dto_test.dart -test/delete_asset_dto_test.dart -test/delete_asset_response_dto_test.dart -test/delete_asset_status_test.dart -test/download_archive_info_test.dart -test/download_response_dto_test.dart -test/exif_response_dto_test.dart -test/get_asset_by_time_bucket_dto_test.dart -test/get_asset_count_by_time_bucket_dto_test.dart -test/import_asset_dto_test.dart -test/job_api_test.dart -test/job_command_dto_test.dart -test/job_command_test.dart -test/job_counts_dto_test.dart -test/job_name_test.dart -test/job_settings_dto_test.dart -test/job_status_dto_test.dart -test/login_credential_dto_test.dart -test/login_response_dto_test.dart -test/logout_response_dto_test.dart -test/map_marker_response_dto_test.dart -test/memory_lane_response_dto_test.dart -test/o_auth_api_test.dart -test/o_auth_callback_dto_test.dart -test/o_auth_config_dto_test.dart -test/o_auth_config_response_dto_test.dart -test/partner_api_test.dart -test/person_api_test.dart -test/person_response_dto_test.dart -test/person_update_dto_test.dart -test/queue_status_dto_test.dart -test/remove_assets_dto_test.dart -test/search_album_response_dto_test.dart -test/search_api_test.dart -test/search_asset_dto_test.dart -test/search_asset_response_dto_test.dart -test/search_config_response_dto_test.dart -test/search_explore_item_test.dart -test/search_explore_response_dto_test.dart -test/search_facet_count_response_dto_test.dart -test/search_facet_response_dto_test.dart -test/search_response_dto_test.dart -test/server_info_api_test.dart -test/server_info_response_dto_test.dart -test/server_ping_response_test.dart -test/server_stats_response_dto_test.dart -test/server_version_reponse_dto_test.dart -test/shared_link_api_test.dart -test/shared_link_create_dto_test.dart -test/shared_link_edit_dto_test.dart -test/shared_link_response_dto_test.dart -test/shared_link_type_test.dart -test/sign_up_dto_test.dart -test/smart_info_response_dto_test.dart -test/system_config_api_test.dart -test/system_config_dto_test.dart -test/system_config_f_fmpeg_dto_test.dart -test/system_config_job_dto_test.dart -test/system_config_o_auth_dto_test.dart -test/system_config_password_login_dto_test.dart -test/system_config_storage_template_dto_test.dart -test/system_config_template_storage_option_dto_test.dart -test/tag_api_test.dart -test/tag_response_dto_test.dart -test/tag_type_enum_test.dart -test/thumbnail_format_test.dart -test/time_group_enum_test.dart -test/update_album_dto_test.dart -test/update_asset_dto_test.dart -test/update_tag_dto_test.dart -test/update_user_dto_test.dart -test/usage_by_user_dto_test.dart -test/user_api_test.dart -test/user_count_response_dto_test.dart -test/user_response_dto_test.dart -test/validate_access_token_response_dto_test.dart diff --git a/mobile/openapi/.openapi-generator/VERSION b/mobile/openapi/.openapi-generator/VERSION deleted file mode 100644 index 4be2c727ad97a7..00000000000000 --- a/mobile/openapi/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.5.0 \ No newline at end of file diff --git a/mobile/openapi/.travis.yml b/mobile/openapi/.travis.yml deleted file mode 100644 index 2774ccbba0e90d..00000000000000 --- a/mobile/openapi/.travis.yml +++ /dev/null @@ -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 diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md deleted file mode 100644 index d3c92499627fc9..00000000000000 --- a/mobile/openapi/README.md +++ /dev/null @@ -1,304 +0,0 @@ -# openapi -Immich API - -This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.66.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('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); -final aPIKeyCreateDto = APIKeyCreateDto(); // APIKeyCreateDto | - -try { - final result = api_instance.createKey(aPIKeyCreateDto); - print(result); -} catch (e) { - print('Exception when calling APIKeyApi->createKey: $e\n'); -} - -``` - -## Documentation for API Endpoints - -All URIs are relative to */api* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*APIKeyApi* | [**createKey**](doc//APIKeyApi.md#createkey) | **POST** /api-key | -*APIKeyApi* | [**deleteKey**](doc//APIKeyApi.md#deletekey) | **DELETE** /api-key/{id} | -*APIKeyApi* | [**getKey**](doc//APIKeyApi.md#getkey) | **GET** /api-key/{id} | -*APIKeyApi* | [**getKeys**](doc//APIKeyApi.md#getkeys) | **GET** /api-key | -*APIKeyApi* | [**updateKey**](doc//APIKeyApi.md#updatekey) | **PUT** /api-key/{id} | -*AlbumApi* | [**addAssetsToAlbum**](doc//AlbumApi.md#addassetstoalbum) | **PUT** /album/{id}/assets | -*AlbumApi* | [**addUsersToAlbum**](doc//AlbumApi.md#adduserstoalbum) | **PUT** /album/{id}/users | -*AlbumApi* | [**createAlbum**](doc//AlbumApi.md#createalbum) | **POST** /album | -*AlbumApi* | [**deleteAlbum**](doc//AlbumApi.md#deletealbum) | **DELETE** /album/{id} | -*AlbumApi* | [**getAlbumCount**](doc//AlbumApi.md#getalbumcount) | **GET** /album/count | -*AlbumApi* | [**getAlbumInfo**](doc//AlbumApi.md#getalbuminfo) | **GET** /album/{id} | -*AlbumApi* | [**getAllAlbums**](doc//AlbumApi.md#getallalbums) | **GET** /album | -*AlbumApi* | [**removeAssetFromAlbum**](doc//AlbumApi.md#removeassetfromalbum) | **DELETE** /album/{id}/assets | -*AlbumApi* | [**removeUserFromAlbum**](doc//AlbumApi.md#removeuserfromalbum) | **DELETE** /album/{id}/user/{userId} | -*AlbumApi* | [**updateAlbumInfo**](doc//AlbumApi.md#updatealbuminfo) | **PATCH** /album/{id} | -*AssetApi* | [**bulkUploadCheck**](doc//AssetApi.md#bulkuploadcheck) | **POST** /asset/bulk-upload-check | -*AssetApi* | [**checkDuplicateAsset**](doc//AssetApi.md#checkduplicateasset) | **POST** /asset/check | -*AssetApi* | [**checkExistingAssets**](doc//AssetApi.md#checkexistingassets) | **POST** /asset/exist | -*AssetApi* | [**deleteAsset**](doc//AssetApi.md#deleteasset) | **DELETE** /asset | -*AssetApi* | [**downloadArchive**](doc//AssetApi.md#downloadarchive) | **POST** /asset/download | -*AssetApi* | [**downloadFile**](doc//AssetApi.md#downloadfile) | **POST** /asset/download/{id} | -*AssetApi* | [**getAllAssets**](doc//AssetApi.md#getallassets) | **GET** /asset | -*AssetApi* | [**getArchivedAssetCountByUserId**](doc//AssetApi.md#getarchivedassetcountbyuserid) | **GET** /asset/stat/archive | -*AssetApi* | [**getAssetById**](doc//AssetApi.md#getassetbyid) | **GET** /asset/assetById/{id} | -*AssetApi* | [**getAssetByTimeBucket**](doc//AssetApi.md#getassetbytimebucket) | **POST** /asset/time-bucket | -*AssetApi* | [**getAssetCountByTimeBucket**](doc//AssetApi.md#getassetcountbytimebucket) | **POST** /asset/count-by-time-bucket | -*AssetApi* | [**getAssetCountByUserId**](doc//AssetApi.md#getassetcountbyuserid) | **GET** /asset/count-by-user-id | -*AssetApi* | [**getAssetSearchTerms**](doc//AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms | -*AssetApi* | [**getAssetThumbnail**](doc//AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} | -*AssetApi* | [**getCuratedLocations**](doc//AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations | -*AssetApi* | [**getCuratedObjects**](doc//AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects | -*AssetApi* | [**getDownloadInfo**](doc//AssetApi.md#getdownloadinfo) | **GET** /asset/download | -*AssetApi* | [**getMapMarkers**](doc//AssetApi.md#getmapmarkers) | **GET** /asset/map-marker | -*AssetApi* | [**getMemoryLane**](doc//AssetApi.md#getmemorylane) | **GET** /asset/memory-lane | -*AssetApi* | [**getUserAssetsByDeviceId**](doc//AssetApi.md#getuserassetsbydeviceid) | **GET** /asset/{deviceId} | -*AssetApi* | [**importFile**](doc//AssetApi.md#importfile) | **POST** /asset/import | -*AssetApi* | [**searchAsset**](doc//AssetApi.md#searchasset) | **POST** /asset/search | -*AssetApi* | [**serveFile**](doc//AssetApi.md#servefile) | **GET** /asset/file/{id} | -*AssetApi* | [**updateAsset**](doc//AssetApi.md#updateasset) | **PUT** /asset/{id} | -*AssetApi* | [**uploadFile**](doc//AssetApi.md#uploadfile) | **POST** /asset/upload | -*AuthenticationApi* | [**adminSignUp**](doc//AuthenticationApi.md#adminsignup) | **POST** /auth/admin-sign-up | -*AuthenticationApi* | [**changePassword**](doc//AuthenticationApi.md#changepassword) | **POST** /auth/change-password | -*AuthenticationApi* | [**getAuthDevices**](doc//AuthenticationApi.md#getauthdevices) | **GET** /auth/devices | -*AuthenticationApi* | [**login**](doc//AuthenticationApi.md#login) | **POST** /auth/login | -*AuthenticationApi* | [**logout**](doc//AuthenticationApi.md#logout) | **POST** /auth/logout | -*AuthenticationApi* | [**logoutAuthDevice**](doc//AuthenticationApi.md#logoutauthdevice) | **DELETE** /auth/devices/{id} | -*AuthenticationApi* | [**logoutAuthDevices**](doc//AuthenticationApi.md#logoutauthdevices) | **DELETE** /auth/devices | -*AuthenticationApi* | [**validateAccessToken**](doc//AuthenticationApi.md#validateaccesstoken) | **POST** /auth/validateToken | -*JobApi* | [**getAllJobsStatus**](doc//JobApi.md#getalljobsstatus) | **GET** /jobs | -*JobApi* | [**sendJobCommand**](doc//JobApi.md#sendjobcommand) | **PUT** /jobs/{id} | -*OAuthApi* | [**callback**](doc//OAuthApi.md#callback) | **POST** /oauth/callback | -*OAuthApi* | [**generateConfig**](doc//OAuthApi.md#generateconfig) | **POST** /oauth/config | -*OAuthApi* | [**link**](doc//OAuthApi.md#link) | **POST** /oauth/link | -*OAuthApi* | [**mobileRedirect**](doc//OAuthApi.md#mobileredirect) | **GET** /oauth/mobile-redirect | -*OAuthApi* | [**unlink**](doc//OAuthApi.md#unlink) | **POST** /oauth/unlink | -*PartnerApi* | [**createPartner**](doc//PartnerApi.md#createpartner) | **POST** /partner/{id} | -*PartnerApi* | [**getPartners**](doc//PartnerApi.md#getpartners) | **GET** /partner | -*PartnerApi* | [**removePartner**](doc//PartnerApi.md#removepartner) | **DELETE** /partner/{id} | -*PersonApi* | [**getAllPeople**](doc//PersonApi.md#getallpeople) | **GET** /person | -*PersonApi* | [**getPerson**](doc//PersonApi.md#getperson) | **GET** /person/{id} | -*PersonApi* | [**getPersonAssets**](doc//PersonApi.md#getpersonassets) | **GET** /person/{id}/assets | -*PersonApi* | [**getPersonThumbnail**](doc//PersonApi.md#getpersonthumbnail) | **GET** /person/{id}/thumbnail | -*PersonApi* | [**updatePerson**](doc//PersonApi.md#updateperson) | **PUT** /person/{id} | -*SearchApi* | [**getExploreData**](doc//SearchApi.md#getexploredata) | **GET** /search/explore | -*SearchApi* | [**getSearchConfig**](doc//SearchApi.md#getsearchconfig) | **GET** /search/config | -*SearchApi* | [**search**](doc//SearchApi.md#search) | **GET** /search | -*ServerInfoApi* | [**getServerInfo**](doc//ServerInfoApi.md#getserverinfo) | **GET** /server-info | -*ServerInfoApi* | [**getServerVersion**](doc//ServerInfoApi.md#getserverversion) | **GET** /server-info/version | -*ServerInfoApi* | [**getStats**](doc//ServerInfoApi.md#getstats) | **GET** /server-info/stats | -*ServerInfoApi* | [**pingServer**](doc//ServerInfoApi.md#pingserver) | **GET** /server-info/ping | -*SharedLinkApi* | [**addSharedLinkAssets**](doc//SharedLinkApi.md#addsharedlinkassets) | **PUT** /shared-link/{id}/assets | -*SharedLinkApi* | [**createSharedLink**](doc//SharedLinkApi.md#createsharedlink) | **POST** /shared-link | -*SharedLinkApi* | [**getAllSharedLinks**](doc//SharedLinkApi.md#getallsharedlinks) | **GET** /shared-link | -*SharedLinkApi* | [**getMySharedLink**](doc//SharedLinkApi.md#getmysharedlink) | **GET** /shared-link/me | -*SharedLinkApi* | [**getSharedLinkById**](doc//SharedLinkApi.md#getsharedlinkbyid) | **GET** /shared-link/{id} | -*SharedLinkApi* | [**removeSharedLink**](doc//SharedLinkApi.md#removesharedlink) | **DELETE** /shared-link/{id} | -*SharedLinkApi* | [**removeSharedLinkAssets**](doc//SharedLinkApi.md#removesharedlinkassets) | **DELETE** /shared-link/{id}/assets | -*SharedLinkApi* | [**updateSharedLink**](doc//SharedLinkApi.md#updatesharedlink) | **PATCH** /shared-link/{id} | -*SystemConfigApi* | [**getConfig**](doc//SystemConfigApi.md#getconfig) | **GET** /system-config | -*SystemConfigApi* | [**getDefaults**](doc//SystemConfigApi.md#getdefaults) | **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 | -*TagApi* | [**createTag**](doc//TagApi.md#createtag) | **POST** /tag | -*TagApi* | [**deleteTag**](doc//TagApi.md#deletetag) | **DELETE** /tag/{id} | -*TagApi* | [**getAllTags**](doc//TagApi.md#getalltags) | **GET** /tag | -*TagApi* | [**getTagAssets**](doc//TagApi.md#gettagassets) | **GET** /tag/{id}/assets | -*TagApi* | [**getTagById**](doc//TagApi.md#gettagbyid) | **GET** /tag/{id} | -*TagApi* | [**tagAssets**](doc//TagApi.md#tagassets) | **PUT** /tag/{id}/assets | -*TagApi* | [**untagAssets**](doc//TagApi.md#untagassets) | **DELETE** /tag/{id}/assets | -*TagApi* | [**updateTag**](doc//TagApi.md#updatetag) | **PATCH** /tag/{id} | -*UserApi* | [**createProfileImage**](doc//UserApi.md#createprofileimage) | **POST** /user/profile-image | -*UserApi* | [**createUser**](doc//UserApi.md#createuser) | **POST** /user | -*UserApi* | [**deleteUser**](doc//UserApi.md#deleteuser) | **DELETE** /user/{userId} | -*UserApi* | [**getAllUsers**](doc//UserApi.md#getallusers) | **GET** /user | -*UserApi* | [**getMyUserInfo**](doc//UserApi.md#getmyuserinfo) | **GET** /user/me | -*UserApi* | [**getProfileImage**](doc//UserApi.md#getprofileimage) | **GET** /user/profile-image/{userId} | -*UserApi* | [**getUserById**](doc//UserApi.md#getuserbyid) | **GET** /user/info/{userId} | -*UserApi* | [**getUserCount**](doc//UserApi.md#getusercount) | **GET** /user/count | -*UserApi* | [**restoreUser**](doc//UserApi.md#restoreuser) | **POST** /user/{userId}/restore | -*UserApi* | [**updateUser**](doc//UserApi.md#updateuser) | **PUT** /user | - - -## Documentation For Models - - - [APIKeyCreateDto](doc//APIKeyCreateDto.md) - - [APIKeyCreateResponseDto](doc//APIKeyCreateResponseDto.md) - - [APIKeyResponseDto](doc//APIKeyResponseDto.md) - - [APIKeyUpdateDto](doc//APIKeyUpdateDto.md) - - [AddAssetsDto](doc//AddAssetsDto.md) - - [AddAssetsResponseDto](doc//AddAssetsResponseDto.md) - - [AddUsersDto](doc//AddUsersDto.md) - - [AdminSignupResponseDto](doc//AdminSignupResponseDto.md) - - [AlbumCountResponseDto](doc//AlbumCountResponseDto.md) - - [AlbumResponseDto](doc//AlbumResponseDto.md) - - [AllJobStatusResponseDto](doc//AllJobStatusResponseDto.md) - - [AssetBulkUploadCheckDto](doc//AssetBulkUploadCheckDto.md) - - [AssetBulkUploadCheckItem](doc//AssetBulkUploadCheckItem.md) - - [AssetBulkUploadCheckResponseDto](doc//AssetBulkUploadCheckResponseDto.md) - - [AssetBulkUploadCheckResult](doc//AssetBulkUploadCheckResult.md) - - [AssetCountByTimeBucket](doc//AssetCountByTimeBucket.md) - - [AssetCountByTimeBucketResponseDto](doc//AssetCountByTimeBucketResponseDto.md) - - [AssetCountByUserIdResponseDto](doc//AssetCountByUserIdResponseDto.md) - - [AssetFileUploadResponseDto](doc//AssetFileUploadResponseDto.md) - - [AssetIdsDto](doc//AssetIdsDto.md) - - [AssetIdsResponseDto](doc//AssetIdsResponseDto.md) - - [AssetResponseDto](doc//AssetResponseDto.md) - - [AssetTypeEnum](doc//AssetTypeEnum.md) - - [AuthDeviceResponseDto](doc//AuthDeviceResponseDto.md) - - [ChangePasswordDto](doc//ChangePasswordDto.md) - - [CheckDuplicateAssetDto](doc//CheckDuplicateAssetDto.md) - - [CheckDuplicateAssetResponseDto](doc//CheckDuplicateAssetResponseDto.md) - - [CheckExistingAssetsDto](doc//CheckExistingAssetsDto.md) - - [CheckExistingAssetsResponseDto](doc//CheckExistingAssetsResponseDto.md) - - [CreateAlbumDto](doc//CreateAlbumDto.md) - - [CreateProfileImageResponseDto](doc//CreateProfileImageResponseDto.md) - - [CreateTagDto](doc//CreateTagDto.md) - - [CreateUserDto](doc//CreateUserDto.md) - - [CuratedLocationsResponseDto](doc//CuratedLocationsResponseDto.md) - - [CuratedObjectsResponseDto](doc//CuratedObjectsResponseDto.md) - - [DeleteAssetDto](doc//DeleteAssetDto.md) - - [DeleteAssetResponseDto](doc//DeleteAssetResponseDto.md) - - [DeleteAssetStatus](doc//DeleteAssetStatus.md) - - [DownloadArchiveInfo](doc//DownloadArchiveInfo.md) - - [DownloadResponseDto](doc//DownloadResponseDto.md) - - [ExifResponseDto](doc//ExifResponseDto.md) - - [GetAssetByTimeBucketDto](doc//GetAssetByTimeBucketDto.md) - - [GetAssetCountByTimeBucketDto](doc//GetAssetCountByTimeBucketDto.md) - - [ImportAssetDto](doc//ImportAssetDto.md) - - [JobCommand](doc//JobCommand.md) - - [JobCommandDto](doc//JobCommandDto.md) - - [JobCountsDto](doc//JobCountsDto.md) - - [JobName](doc//JobName.md) - - [JobSettingsDto](doc//JobSettingsDto.md) - - [JobStatusDto](doc//JobStatusDto.md) - - [LoginCredentialDto](doc//LoginCredentialDto.md) - - [LoginResponseDto](doc//LoginResponseDto.md) - - [LogoutResponseDto](doc//LogoutResponseDto.md) - - [MapMarkerResponseDto](doc//MapMarkerResponseDto.md) - - [MemoryLaneResponseDto](doc//MemoryLaneResponseDto.md) - - [OAuthCallbackDto](doc//OAuthCallbackDto.md) - - [OAuthConfigDto](doc//OAuthConfigDto.md) - - [OAuthConfigResponseDto](doc//OAuthConfigResponseDto.md) - - [PersonResponseDto](doc//PersonResponseDto.md) - - [PersonUpdateDto](doc//PersonUpdateDto.md) - - [QueueStatusDto](doc//QueueStatusDto.md) - - [RemoveAssetsDto](doc//RemoveAssetsDto.md) - - [SearchAlbumResponseDto](doc//SearchAlbumResponseDto.md) - - [SearchAssetDto](doc//SearchAssetDto.md) - - [SearchAssetResponseDto](doc//SearchAssetResponseDto.md) - - [SearchConfigResponseDto](doc//SearchConfigResponseDto.md) - - [SearchExploreItem](doc//SearchExploreItem.md) - - [SearchExploreResponseDto](doc//SearchExploreResponseDto.md) - - [SearchFacetCountResponseDto](doc//SearchFacetCountResponseDto.md) - - [SearchFacetResponseDto](doc//SearchFacetResponseDto.md) - - [SearchResponseDto](doc//SearchResponseDto.md) - - [ServerInfoResponseDto](doc//ServerInfoResponseDto.md) - - [ServerPingResponse](doc//ServerPingResponse.md) - - [ServerStatsResponseDto](doc//ServerStatsResponseDto.md) - - [ServerVersionReponseDto](doc//ServerVersionReponseDto.md) - - [SharedLinkCreateDto](doc//SharedLinkCreateDto.md) - - [SharedLinkEditDto](doc//SharedLinkEditDto.md) - - [SharedLinkResponseDto](doc//SharedLinkResponseDto.md) - - [SharedLinkType](doc//SharedLinkType.md) - - [SignUpDto](doc//SignUpDto.md) - - [SmartInfoResponseDto](doc//SmartInfoResponseDto.md) - - [SystemConfigDto](doc//SystemConfigDto.md) - - [SystemConfigFFmpegDto](doc//SystemConfigFFmpegDto.md) - - [SystemConfigJobDto](doc//SystemConfigJobDto.md) - - [SystemConfigOAuthDto](doc//SystemConfigOAuthDto.md) - - [SystemConfigPasswordLoginDto](doc//SystemConfigPasswordLoginDto.md) - - [SystemConfigStorageTemplateDto](doc//SystemConfigStorageTemplateDto.md) - - [SystemConfigTemplateStorageOptionDto](doc//SystemConfigTemplateStorageOptionDto.md) - - [TagResponseDto](doc//TagResponseDto.md) - - [TagTypeEnum](doc//TagTypeEnum.md) - - [ThumbnailFormat](doc//ThumbnailFormat.md) - - [TimeGroupEnum](doc//TimeGroupEnum.md) - - [UpdateAlbumDto](doc//UpdateAlbumDto.md) - - [UpdateAssetDto](doc//UpdateAssetDto.md) - - [UpdateTagDto](doc//UpdateTagDto.md) - - [UpdateUserDto](doc//UpdateUserDto.md) - - [UsageByUserDto](doc//UsageByUserDto.md) - - [UserCountResponseDto](doc//UserCountResponseDto.md) - - [UserResponseDto](doc//UserResponseDto.md) - - [ValidateAccessTokenResponseDto](doc//ValidateAccessTokenResponseDto.md) - - -## Documentation For Authorization - - -## 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 - - - diff --git a/mobile/openapi/analysis_options.yaml b/mobile/openapi/analysis_options.yaml deleted file mode 100644 index e69de29bb2d1d6..00000000000000 diff --git a/mobile/openapi/doc/APIKeyApi.md b/mobile/openapi/doc/APIKeyApi.md deleted file mode 100644 index 807cb5317ebe35..00000000000000 --- a/mobile/openapi/doc/APIKeyApi.md +++ /dev/null @@ -1,290 +0,0 @@ -# openapi.api.APIKeyApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createKey**](APIKeyApi.md#createkey) | **POST** /api-key | -[**deleteKey**](APIKeyApi.md#deletekey) | **DELETE** /api-key/{id} | -[**getKey**](APIKeyApi.md#getkey) | **GET** /api-key/{id} | -[**getKeys**](APIKeyApi.md#getkeys) | **GET** /api-key | -[**updateKey**](APIKeyApi.md#updatekey) | **PUT** /api-key/{id} | - - -# **createKey** -> APIKeyCreateResponseDto createKey(aPIKeyCreateDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); -final aPIKeyCreateDto = APIKeyCreateDto(); // APIKeyCreateDto | - -try { - final result = api_instance.createKey(aPIKeyCreateDto); - print(result); -} catch (e) { - print('Exception when calling APIKeyApi->createKey: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **aPIKeyCreateDto** | [**APIKeyCreateDto**](APIKeyCreateDto.md)| | - -### Return type - -[**APIKeyCreateResponseDto**](APIKeyCreateResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteKey** -> deleteKey(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.deleteKey(id); -} catch (e) { - print('Exception when calling APIKeyApi->deleteKey: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getKey** -> APIKeyResponseDto getKey(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getKey(id); - print(result); -} catch (e) { - print('Exception when calling APIKeyApi->getKey: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**APIKeyResponseDto**](APIKeyResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getKeys** -> List getKeys() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); - -try { - final result = api_instance.getKeys(); - print(result); -} catch (e) { - print('Exception when calling APIKeyApi->getKeys: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](APIKeyResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateKey** -> APIKeyResponseDto updateKey(id, aPIKeyUpdateDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = APIKeyApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final aPIKeyUpdateDto = APIKeyUpdateDto(); // APIKeyUpdateDto | - -try { - final result = api_instance.updateKey(id, aPIKeyUpdateDto); - print(result); -} catch (e) { - print('Exception when calling APIKeyApi->updateKey: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **aPIKeyUpdateDto** | [**APIKeyUpdateDto**](APIKeyUpdateDto.md)| | - -### Return type - -[**APIKeyResponseDto**](APIKeyResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/APIKeyCreateDto.md b/mobile/openapi/doc/APIKeyCreateDto.md deleted file mode 100644 index 0355e3654f2122..00000000000000 --- a/mobile/openapi/doc/APIKeyCreateDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.APIKeyCreateDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/APIKeyCreateResponseDto.md b/mobile/openapi/doc/APIKeyCreateResponseDto.md deleted file mode 100644 index d0d4bea105c6ba..00000000000000 --- a/mobile/openapi/doc/APIKeyCreateResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.APIKeyCreateResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**secret** | **String** | | -**apiKey** | [**APIKeyResponseDto**](APIKeyResponseDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/APIKeyResponseDto.md b/mobile/openapi/doc/APIKeyResponseDto.md deleted file mode 100644 index 7e36819b9b5cfe..00000000000000 --- a/mobile/openapi/doc/APIKeyResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.APIKeyResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**name** | **String** | | -**createdAt** | [**DateTime**](DateTime.md) | | -**updatedAt** | [**DateTime**](DateTime.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/APIKeyUpdateDto.md b/mobile/openapi/doc/APIKeyUpdateDto.md deleted file mode 100644 index d5a72ed86002fe..00000000000000 --- a/mobile/openapi/doc/APIKeyUpdateDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.APIKeyUpdateDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AddAssetsDto.md b/mobile/openapi/doc/AddAssetsDto.md deleted file mode 100644 index b74211d6b7c617..00000000000000 --- a/mobile/openapi/doc/AddAssetsDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.AddAssetsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AddAssetsResponseDto.md b/mobile/openapi/doc/AddAssetsResponseDto.md deleted file mode 100644 index cf7658135617ce..00000000000000 --- a/mobile/openapi/doc/AddAssetsResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.AddAssetsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**successfullyAdded** | **int** | | -**alreadyInAlbum** | **List** | | [default to const []] -**album** | [**AlbumResponseDto**](AlbumResponseDto.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AddUsersDto.md b/mobile/openapi/doc/AddUsersDto.md deleted file mode 100644 index 9f7770d6040608..00000000000000 --- a/mobile/openapi/doc/AddUsersDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.AddUsersDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sharedUserIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AdminSignupResponseDto.md b/mobile/openapi/doc/AdminSignupResponseDto.md deleted file mode 100644 index bfca912d9aa59d..00000000000000 --- a/mobile/openapi/doc/AdminSignupResponseDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.AdminSignupResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**email** | **String** | | -**firstName** | **String** | | -**lastName** | **String** | | -**createdAt** | [**DateTime**](DateTime.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AlbumApi.md b/mobile/openapi/doc/AlbumApi.md deleted file mode 100644 index 47c418096854ef..00000000000000 --- a/mobile/openapi/doc/AlbumApi.md +++ /dev/null @@ -1,583 +0,0 @@ -# openapi.api.AlbumApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addAssetsToAlbum**](AlbumApi.md#addassetstoalbum) | **PUT** /album/{id}/assets | -[**addUsersToAlbum**](AlbumApi.md#adduserstoalbum) | **PUT** /album/{id}/users | -[**createAlbum**](AlbumApi.md#createalbum) | **POST** /album | -[**deleteAlbum**](AlbumApi.md#deletealbum) | **DELETE** /album/{id} | -[**getAlbumCount**](AlbumApi.md#getalbumcount) | **GET** /album/count | -[**getAlbumInfo**](AlbumApi.md#getalbuminfo) | **GET** /album/{id} | -[**getAllAlbums**](AlbumApi.md#getallalbums) | **GET** /album | -[**removeAssetFromAlbum**](AlbumApi.md#removeassetfromalbum) | **DELETE** /album/{id}/assets | -[**removeUserFromAlbum**](AlbumApi.md#removeuserfromalbum) | **DELETE** /album/{id}/user/{userId} | -[**updateAlbumInfo**](AlbumApi.md#updatealbuminfo) | **PATCH** /album/{id} | - - -# **addAssetsToAlbum** -> AddAssetsResponseDto addAssetsToAlbum(id, addAssetsDto, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final addAssetsDto = AddAssetsDto(); // AddAssetsDto | -final key = key_example; // String | - -try { - final result = api_instance.addAssetsToAlbum(id, addAssetsDto, key); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->addAssetsToAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **addAssetsDto** | [**AddAssetsDto**](AddAssetsDto.md)| | - **key** | **String**| | [optional] - -### Return type - -[**AddAssetsResponseDto**](AddAssetsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **addUsersToAlbum** -> AlbumResponseDto addUsersToAlbum(id, addUsersDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final addUsersDto = AddUsersDto(); // AddUsersDto | - -try { - final result = api_instance.addUsersToAlbum(id, addUsersDto); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->addUsersToAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **addUsersDto** | [**AddUsersDto**](AddUsersDto.md)| | - -### Return type - -[**AlbumResponseDto**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createAlbum** -> AlbumResponseDto createAlbum(createAlbumDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final createAlbumDto = CreateAlbumDto(); // CreateAlbumDto | - -try { - final result = api_instance.createAlbum(createAlbumDto); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->createAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **createAlbumDto** | [**CreateAlbumDto**](CreateAlbumDto.md)| | - -### Return type - -[**AlbumResponseDto**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteAlbum** -> deleteAlbum(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.deleteAlbum(id); -} catch (e) { - print('Exception when calling AlbumApi->deleteAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAlbumCount** -> AlbumCountResponseDto getAlbumCount() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); - -try { - final result = api_instance.getAlbumCount(); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->getAlbumCount: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**AlbumCountResponseDto**](AlbumCountResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAlbumInfo** -> AlbumResponseDto getAlbumInfo(id, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final key = key_example; // String | - -try { - final result = api_instance.getAlbumInfo(id, key); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->getAlbumInfo: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **key** | **String**| | [optional] - -### Return type - -[**AlbumResponseDto**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAllAlbums** -> List getAllAlbums(shared, assetId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final shared = true; // bool | -final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums - -try { - final result = api_instance.getAllAlbums(shared, assetId); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->getAllAlbums: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **shared** | **bool**| | [optional] - **assetId** | **String**| Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums | [optional] - -### Return type - -[**List**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removeAssetFromAlbum** -> AlbumResponseDto removeAssetFromAlbum(id, removeAssetsDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final removeAssetsDto = RemoveAssetsDto(); // RemoveAssetsDto | - -try { - final result = api_instance.removeAssetFromAlbum(id, removeAssetsDto); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->removeAssetFromAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **removeAssetsDto** | [**RemoveAssetsDto**](RemoveAssetsDto.md)| | - -### Return type - -[**AlbumResponseDto**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removeUserFromAlbum** -> removeUserFromAlbum(id, userId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final userId = userId_example; // String | - -try { - api_instance.removeUserFromAlbum(id, userId); -} catch (e) { - print('Exception when calling AlbumApi->removeUserFromAlbum: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **userId** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateAlbumInfo** -> AlbumResponseDto updateAlbumInfo(id, updateAlbumDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AlbumApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final updateAlbumDto = UpdateAlbumDto(); // UpdateAlbumDto | - -try { - final result = api_instance.updateAlbumInfo(id, updateAlbumDto); - print(result); -} catch (e) { - print('Exception when calling AlbumApi->updateAlbumInfo: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **updateAlbumDto** | [**UpdateAlbumDto**](UpdateAlbumDto.md)| | - -### Return type - -[**AlbumResponseDto**](AlbumResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/AlbumCountResponseDto.md b/mobile/openapi/doc/AlbumCountResponseDto.md deleted file mode 100644 index 57b6e156c83417..00000000000000 --- a/mobile/openapi/doc/AlbumCountResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.AlbumCountResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owned** | **int** | | -**shared** | **int** | | -**notShared** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AlbumResponseDto.md b/mobile/openapi/doc/AlbumResponseDto.md deleted file mode 100644 index 08425de5cb14ae..00000000000000 --- a/mobile/openapi/doc/AlbumResponseDto.md +++ /dev/null @@ -1,26 +0,0 @@ -# openapi.model.AlbumResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetCount** | **int** | | -**id** | **String** | | -**ownerId** | **String** | | -**albumName** | **String** | | -**createdAt** | [**DateTime**](DateTime.md) | | -**updatedAt** | [**DateTime**](DateTime.md) | | -**albumThumbnailAssetId** | **String** | | -**shared** | **bool** | | -**sharedUsers** | [**List**](UserResponseDto.md) | | [default to const []] -**assets** | [**List**](AssetResponseDto.md) | | [default to const []] -**owner** | [**UserResponseDto**](UserResponseDto.md) | | -**lastModifiedAssetTimestamp** | [**DateTime**](DateTime.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AllJobStatusResponseDto.md b/mobile/openapi/doc/AllJobStatusResponseDto.md deleted file mode 100644 index 7ab4eaf9d434fb..00000000000000 --- a/mobile/openapi/doc/AllJobStatusResponseDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# openapi.model.AllJobStatusResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**thumbnailGeneration** | [**JobStatusDto**](JobStatusDto.md) | | -**metadataExtraction** | [**JobStatusDto**](JobStatusDto.md) | | -**videoConversion** | [**JobStatusDto**](JobStatusDto.md) | | -**objectTagging** | [**JobStatusDto**](JobStatusDto.md) | | -**clipEncoding** | [**JobStatusDto**](JobStatusDto.md) | | -**storageTemplateMigration** | [**JobStatusDto**](JobStatusDto.md) | | -**backgroundTask** | [**JobStatusDto**](JobStatusDto.md) | | -**search** | [**JobStatusDto**](JobStatusDto.md) | | -**recognizeFaces** | [**JobStatusDto**](JobStatusDto.md) | | -**sidecar** | [**JobStatusDto**](JobStatusDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.md deleted file mode 100644 index 4c5d7fc297689f..00000000000000 --- a/mobile/openapi/doc/AssetApi.md +++ /dev/null @@ -1,1479 +0,0 @@ -# openapi.api.AssetApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**bulkUploadCheck**](AssetApi.md#bulkuploadcheck) | **POST** /asset/bulk-upload-check | -[**checkDuplicateAsset**](AssetApi.md#checkduplicateasset) | **POST** /asset/check | -[**checkExistingAssets**](AssetApi.md#checkexistingassets) | **POST** /asset/exist | -[**deleteAsset**](AssetApi.md#deleteasset) | **DELETE** /asset | -[**downloadArchive**](AssetApi.md#downloadarchive) | **POST** /asset/download | -[**downloadFile**](AssetApi.md#downloadfile) | **POST** /asset/download/{id} | -[**getAllAssets**](AssetApi.md#getallassets) | **GET** /asset | -[**getArchivedAssetCountByUserId**](AssetApi.md#getarchivedassetcountbyuserid) | **GET** /asset/stat/archive | -[**getAssetById**](AssetApi.md#getassetbyid) | **GET** /asset/assetById/{id} | -[**getAssetByTimeBucket**](AssetApi.md#getassetbytimebucket) | **POST** /asset/time-bucket | -[**getAssetCountByTimeBucket**](AssetApi.md#getassetcountbytimebucket) | **POST** /asset/count-by-time-bucket | -[**getAssetCountByUserId**](AssetApi.md#getassetcountbyuserid) | **GET** /asset/count-by-user-id | -[**getAssetSearchTerms**](AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms | -[**getAssetThumbnail**](AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} | -[**getCuratedLocations**](AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations | -[**getCuratedObjects**](AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects | -[**getDownloadInfo**](AssetApi.md#getdownloadinfo) | **GET** /asset/download | -[**getMapMarkers**](AssetApi.md#getmapmarkers) | **GET** /asset/map-marker | -[**getMemoryLane**](AssetApi.md#getmemorylane) | **GET** /asset/memory-lane | -[**getUserAssetsByDeviceId**](AssetApi.md#getuserassetsbydeviceid) | **GET** /asset/{deviceId} | -[**importFile**](AssetApi.md#importfile) | **POST** /asset/import | -[**searchAsset**](AssetApi.md#searchasset) | **POST** /asset/search | -[**serveFile**](AssetApi.md#servefile) | **GET** /asset/file/{id} | -[**updateAsset**](AssetApi.md#updateasset) | **PUT** /asset/{id} | -[**uploadFile**](AssetApi.md#uploadfile) | **POST** /asset/upload | - - -# **bulkUploadCheck** -> AssetBulkUploadCheckResponseDto bulkUploadCheck(assetBulkUploadCheckDto) - - - -Checks if assets exist by checksums - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final assetBulkUploadCheckDto = AssetBulkUploadCheckDto(); // AssetBulkUploadCheckDto | - -try { - final result = api_instance.bulkUploadCheck(assetBulkUploadCheckDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->bulkUploadCheck: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **assetBulkUploadCheckDto** | [**AssetBulkUploadCheckDto**](AssetBulkUploadCheckDto.md)| | - -### Return type - -[**AssetBulkUploadCheckResponseDto**](AssetBulkUploadCheckResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **checkDuplicateAsset** -> CheckDuplicateAssetResponseDto checkDuplicateAsset(checkDuplicateAssetDto, key) - - - -Check duplicated asset before uploading - for Web upload used - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final checkDuplicateAssetDto = CheckDuplicateAssetDto(); // CheckDuplicateAssetDto | -final key = key_example; // String | - -try { - final result = api_instance.checkDuplicateAsset(checkDuplicateAssetDto, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->checkDuplicateAsset: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **checkDuplicateAssetDto** | [**CheckDuplicateAssetDto**](CheckDuplicateAssetDto.md)| | - **key** | **String**| | [optional] - -### Return type - -[**CheckDuplicateAssetResponseDto**](CheckDuplicateAssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **checkExistingAssets** -> CheckExistingAssetsResponseDto checkExistingAssets(checkExistingAssetsDto) - - - -Checks if multiple assets exist on the server and returns all existing - used by background backup - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final checkExistingAssetsDto = CheckExistingAssetsDto(); // CheckExistingAssetsDto | - -try { - final result = api_instance.checkExistingAssets(checkExistingAssetsDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->checkExistingAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **checkExistingAssetsDto** | [**CheckExistingAssetsDto**](CheckExistingAssetsDto.md)| | - -### Return type - -[**CheckExistingAssetsResponseDto**](CheckExistingAssetsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteAsset** -> List deleteAsset(deleteAssetDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final deleteAssetDto = DeleteAssetDto(); // DeleteAssetDto | - -try { - final result = api_instance.deleteAsset(deleteAssetDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->deleteAsset: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deleteAssetDto** | [**DeleteAssetDto**](DeleteAssetDto.md)| | - -### Return type - -[**List**](DeleteAssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **downloadArchive** -> MultipartFile downloadArchive(assetIdsDto, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final assetIdsDto = AssetIdsDto(); // AssetIdsDto | -final key = key_example; // String | - -try { - final result = api_instance.downloadArchive(assetIdsDto, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->downloadArchive: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| | - **key** | **String**| | [optional] - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/octet-stream - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **downloadFile** -> MultipartFile downloadFile(id, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final key = key_example; // String | - -try { - final result = api_instance.downloadFile(id, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->downloadFile: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **key** | **String**| | [optional] - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAllAssets** -> List getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, ifNoneMatch) - - - -Get all AssetEntity belong to the user - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final isFavorite = true; // bool | -final isArchived = true; // bool | -final withoutThumbs = true; // bool | Include assets without thumbnails -final skip = 8.14; // num | -final ifNoneMatch = ifNoneMatch_example; // String | ETag of data already cached on the client - -try { - final result = api_instance.getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, ifNoneMatch); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAllAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **String**| | [optional] - **isFavorite** | **bool**| | [optional] - **isArchived** | **bool**| | [optional] - **withoutThumbs** | **bool**| Include assets without thumbnails | [optional] - **skip** | **num**| | [optional] - **ifNoneMatch** | **String**| ETag of data already cached on the client | [optional] - -### Return type - -[**List**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getArchivedAssetCountByUserId** -> AssetCountByUserIdResponseDto getArchivedAssetCountByUserId() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); - -try { - final result = api_instance.getArchivedAssetCountByUserId(); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getArchivedAssetCountByUserId: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**AssetCountByUserIdResponseDto**](AssetCountByUserIdResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetById** -> AssetResponseDto getAssetById(id, key) - - - -Get a single asset's information - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final key = key_example; // String | - -try { - final result = api_instance.getAssetById(id, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetById: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **key** | **String**| | [optional] - -### Return type - -[**AssetResponseDto**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetByTimeBucket** -> List getAssetByTimeBucket(getAssetByTimeBucketDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final getAssetByTimeBucketDto = GetAssetByTimeBucketDto(); // GetAssetByTimeBucketDto | - -try { - final result = api_instance.getAssetByTimeBucket(getAssetByTimeBucketDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetByTimeBucket: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **getAssetByTimeBucketDto** | [**GetAssetByTimeBucketDto**](GetAssetByTimeBucketDto.md)| | - -### Return type - -[**List**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetCountByTimeBucket** -> AssetCountByTimeBucketResponseDto getAssetCountByTimeBucket(getAssetCountByTimeBucketDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final getAssetCountByTimeBucketDto = GetAssetCountByTimeBucketDto(); // GetAssetCountByTimeBucketDto | - -try { - final result = api_instance.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetCountByTimeBucket: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **getAssetCountByTimeBucketDto** | [**GetAssetCountByTimeBucketDto**](GetAssetCountByTimeBucketDto.md)| | - -### Return type - -[**AssetCountByTimeBucketResponseDto**](AssetCountByTimeBucketResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetCountByUserId** -> AssetCountByUserIdResponseDto getAssetCountByUserId() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); - -try { - final result = api_instance.getAssetCountByUserId(); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetCountByUserId: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**AssetCountByUserIdResponseDto**](AssetCountByUserIdResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetSearchTerms** -> List getAssetSearchTerms() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); - -try { - final result = api_instance.getAssetSearchTerms(); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetSearchTerms: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**List** - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAssetThumbnail** -> MultipartFile getAssetThumbnail(id, format, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final format = ; // ThumbnailFormat | -final key = key_example; // String | - -try { - final result = api_instance.getAssetThumbnail(id, format, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getAssetThumbnail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **format** | [**ThumbnailFormat**](.md)| | [optional] - **key** | **String**| | [optional] - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getCuratedLocations** -> List getCuratedLocations() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); - -try { - final result = api_instance.getCuratedLocations(); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getCuratedLocations: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](CuratedLocationsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getCuratedObjects** -> List getCuratedObjects() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); - -try { - final result = api_instance.getCuratedObjects(); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getCuratedObjects: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](CuratedObjectsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getDownloadInfo** -> DownloadResponseDto getDownloadInfo(assetIds, albumId, userId, archiveSize, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final assetIds = []; // List | -final albumId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final archiveSize = 8.14; // num | -final key = key_example; // String | - -try { - final result = api_instance.getDownloadInfo(assetIds, albumId, userId, archiveSize, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getDownloadInfo: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **assetIds** | [**List**](String.md)| | [optional] [default to const []] - **albumId** | **String**| | [optional] - **userId** | **String**| | [optional] - **archiveSize** | **num**| | [optional] - **key** | **String**| | [optional] - -### Return type - -[**DownloadResponseDto**](DownloadResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getMapMarkers** -> List getMapMarkers(isFavorite, fileCreatedAfter, fileCreatedBefore) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final isFavorite = true; // bool | -final fileCreatedAfter = 2013-10-20T19:20:30+01:00; // DateTime | -final fileCreatedBefore = 2013-10-20T19:20:30+01:00; // DateTime | - -try { - final result = api_instance.getMapMarkers(isFavorite, fileCreatedAfter, fileCreatedBefore); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getMapMarkers: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **isFavorite** | **bool**| | [optional] - **fileCreatedAfter** | **DateTime**| | [optional] - **fileCreatedBefore** | **DateTime**| | [optional] - -### Return type - -[**List**](MapMarkerResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getMemoryLane** -> List getMemoryLane(timestamp) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final timestamp = 2013-10-20T19:20:30+01:00; // DateTime | Get pictures for +24 hours from this time going back x years - -try { - final result = api_instance.getMemoryLane(timestamp); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getMemoryLane: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **timestamp** | **DateTime**| Get pictures for +24 hours from this time going back x years | - -### Return type - -[**List**](MemoryLaneResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getUserAssetsByDeviceId** -> List getUserAssetsByDeviceId(deviceId) - - - -Get all asset of a device that are in the database, ID only. - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final deviceId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getUserAssetsByDeviceId(deviceId); - print(result); -} catch (e) { - print('Exception when calling AssetApi->getUserAssetsByDeviceId: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **deviceId** | **String**| | - -### Return type - -**List** - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **importFile** -> AssetFileUploadResponseDto importFile(importAssetDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final importAssetDto = ImportAssetDto(); // ImportAssetDto | - -try { - final result = api_instance.importFile(importAssetDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->importFile: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **importAssetDto** | [**ImportAssetDto**](ImportAssetDto.md)| | - -### Return type - -[**AssetFileUploadResponseDto**](AssetFileUploadResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **searchAsset** -> List searchAsset(searchAssetDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final searchAssetDto = SearchAssetDto(); // SearchAssetDto | - -try { - final result = api_instance.searchAsset(searchAssetDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->searchAsset: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **searchAssetDto** | [**SearchAssetDto**](SearchAssetDto.md)| | - -### Return type - -[**List**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **serveFile** -> MultipartFile serveFile(id, isThumb, isWeb, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final isThumb = true; // bool | -final isWeb = true; // bool | -final key = key_example; // String | - -try { - final result = api_instance.serveFile(id, isThumb, isWeb, key); - print(result); -} catch (e) { - print('Exception when calling AssetApi->serveFile: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **isThumb** | **bool**| | [optional] - **isWeb** | **bool**| | [optional] - **key** | **String**| | [optional] - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateAsset** -> AssetResponseDto updateAsset(id, updateAssetDto) - - - -Update an asset - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final updateAssetDto = UpdateAssetDto(); // UpdateAssetDto | - -try { - final result = api_instance.updateAsset(id, updateAssetDto); - print(result); -} catch (e) { - print('Exception when calling AssetApi->updateAsset: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **updateAssetDto** | [**UpdateAssetDto**](UpdateAssetDto.md)| | - -### Return type - -[**AssetResponseDto**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **uploadFile** -> AssetFileUploadResponseDto uploadFile(assetType, assetData, fileExtension, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, isPanorama, key, livePhotoData, sidecarData, isReadOnly, isArchived, isVisible, duration) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AssetApi(); -final assetType = ; // AssetTypeEnum | -final assetData = BINARY_DATA_HERE; // MultipartFile | -final fileExtension = fileExtension_example; // String | -final deviceAssetId = deviceAssetId_example; // String | -final deviceId = deviceId_example; // String | -final fileCreatedAt = 2013-10-20T19:20:30+01:00; // DateTime | -final fileModifiedAt = 2013-10-20T19:20:30+01:00; // DateTime | -final isFavorite = true; // bool | -final isPanorama = true; // bool | -final key = key_example; // String | -final livePhotoData = BINARY_DATA_HERE; // MultipartFile | -final sidecarData = BINARY_DATA_HERE; // MultipartFile | -final isReadOnly = true; // bool | -final isArchived = true; // bool | -final isVisible = true; // bool | -final duration = duration_example; // String | - -try { - final result = api_instance.uploadFile(assetType, assetData, fileExtension, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, isPanorama, key, livePhotoData, sidecarData, isReadOnly, isArchived, isVisible, duration); - print(result); -} catch (e) { - print('Exception when calling AssetApi->uploadFile: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **assetType** | [**AssetTypeEnum**](AssetTypeEnum.md)| | - **assetData** | **MultipartFile**| | - **fileExtension** | **String**| | - **deviceAssetId** | **String**| | - **deviceId** | **String**| | - **fileCreatedAt** | **DateTime**| | - **fileModifiedAt** | **DateTime**| | - **isFavorite** | **bool**| | - **isPanorama** | **bool**| | - **key** | **String**| | [optional] - **livePhotoData** | **MultipartFile**| | [optional] - **sidecarData** | **MultipartFile**| | [optional] - **isReadOnly** | **bool**| | [optional] [default to false] - **isArchived** | **bool**| | [optional] - **isVisible** | **bool**| | [optional] - **duration** | **String**| | [optional] - -### Return type - -[**AssetFileUploadResponseDto**](AssetFileUploadResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/AssetBulkUploadCheckDto.md b/mobile/openapi/doc/AssetBulkUploadCheckDto.md deleted file mode 100644 index e3d8419ec758a5..00000000000000 --- a/mobile/openapi/doc/AssetBulkUploadCheckDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.AssetBulkUploadCheckDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assets** | [**List**](AssetBulkUploadCheckItem.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetBulkUploadCheckItem.md b/mobile/openapi/doc/AssetBulkUploadCheckItem.md deleted file mode 100644 index 45494c2c5fc79f..00000000000000 --- a/mobile/openapi/doc/AssetBulkUploadCheckItem.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.AssetBulkUploadCheckItem - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**checksum** | **String** | base64 or hex encoded sha1 hash | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetBulkUploadCheckResponseDto.md b/mobile/openapi/doc/AssetBulkUploadCheckResponseDto.md deleted file mode 100644 index 5cdea7d3b8c652..00000000000000 --- a/mobile/openapi/doc/AssetBulkUploadCheckResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.AssetBulkUploadCheckResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List**](AssetBulkUploadCheckResult.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetBulkUploadCheckResult.md b/mobile/openapi/doc/AssetBulkUploadCheckResult.md deleted file mode 100644 index 670d1d9fa4151f..00000000000000 --- a/mobile/openapi/doc/AssetBulkUploadCheckResult.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.AssetBulkUploadCheckResult - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**action** | **String** | | -**reason** | **String** | | [optional] -**assetId** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetCountByTimeBucket.md b/mobile/openapi/doc/AssetCountByTimeBucket.md deleted file mode 100644 index ee715387594ecd..00000000000000 --- a/mobile/openapi/doc/AssetCountByTimeBucket.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.AssetCountByTimeBucket - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeBucket** | **String** | | -**count** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetCountByTimeBucketResponseDto.md b/mobile/openapi/doc/AssetCountByTimeBucketResponseDto.md deleted file mode 100644 index 77b03c26f9f2e4..00000000000000 --- a/mobile/openapi/doc/AssetCountByTimeBucketResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.AssetCountByTimeBucketResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalCount** | **int** | | -**buckets** | [**List**](AssetCountByTimeBucket.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetCountByUserIdResponseDto.md b/mobile/openapi/doc/AssetCountByUserIdResponseDto.md deleted file mode 100644 index b6271c3f780eae..00000000000000 --- a/mobile/openapi/doc/AssetCountByUserIdResponseDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.AssetCountByUserIdResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audio** | **int** | | [default to 0] -**photos** | **int** | | [default to 0] -**videos** | **int** | | [default to 0] -**other** | **int** | | [default to 0] -**total** | **int** | | [default to 0] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetFileUploadResponseDto.md b/mobile/openapi/doc/AssetFileUploadResponseDto.md deleted file mode 100644 index b945d531c2d5fc..00000000000000 --- a/mobile/openapi/doc/AssetFileUploadResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.AssetFileUploadResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**duplicate** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetIdsDto.md b/mobile/openapi/doc/AssetIdsDto.md deleted file mode 100644 index 002c3ee5e63b9f..00000000000000 --- a/mobile/openapi/doc/AssetIdsDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.AssetIdsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetIdsResponseDto.md b/mobile/openapi/doc/AssetIdsResponseDto.md deleted file mode 100644 index 4aaebf73a79f55..00000000000000 --- a/mobile/openapi/doc/AssetIdsResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.AssetIdsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetId** | **String** | | -**success** | **bool** | | -**error** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetResponseDto.md b/mobile/openapi/doc/AssetResponseDto.md deleted file mode 100644 index f8914de38a6ae2..00000000000000 --- a/mobile/openapi/doc/AssetResponseDto.md +++ /dev/null @@ -1,37 +0,0 @@ -# openapi.model.AssetResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**AssetTypeEnum**](AssetTypeEnum.md) | | -**id** | **String** | | -**deviceAssetId** | **String** | | -**ownerId** | **String** | | -**deviceId** | **String** | | -**originalPath** | **String** | | -**originalFileName** | **String** | | -**resized** | **bool** | | -**thumbhash** | **String** | base64 encoded thumbhash | -**fileCreatedAt** | [**DateTime**](DateTime.md) | | -**fileModifiedAt** | [**DateTime**](DateTime.md) | | -**updatedAt** | [**DateTime**](DateTime.md) | | -**isFavorite** | **bool** | | -**isArchived** | **bool** | | -**mimeType** | **String** | | -**duration** | **String** | | -**exifInfo** | [**ExifResponseDto**](ExifResponseDto.md) | | [optional] -**smartInfo** | [**SmartInfoResponseDto**](SmartInfoResponseDto.md) | | [optional] -**livePhotoVideoId** | **String** | | [optional] -**tags** | [**List**](TagResponseDto.md) | | [optional] [default to const []] -**people** | [**List**](PersonResponseDto.md) | | [optional] [default to const []] -**checksum** | **String** | base64 encoded sha1 hash | -**isPanorama** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AssetTypeEnum.md b/mobile/openapi/doc/AssetTypeEnum.md deleted file mode 100644 index 8d514b090eb325..00000000000000 --- a/mobile/openapi/doc/AssetTypeEnum.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.AssetTypeEnum - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AuthDeviceResponseDto.md b/mobile/openapi/doc/AuthDeviceResponseDto.md deleted file mode 100644 index 261e767d920fc7..00000000000000 --- a/mobile/openapi/doc/AuthDeviceResponseDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# openapi.model.AuthDeviceResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**createdAt** | **String** | | -**updatedAt** | **String** | | -**current** | **bool** | | -**deviceType** | **String** | | -**deviceOS** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/AuthenticationApi.md b/mobile/openapi/doc/AuthenticationApi.md deleted file mode 100644 index 67de7009679cf4..00000000000000 --- a/mobile/openapi/doc/AuthenticationApi.md +++ /dev/null @@ -1,415 +0,0 @@ -# openapi.api.AuthenticationApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**adminSignUp**](AuthenticationApi.md#adminsignup) | **POST** /auth/admin-sign-up | -[**changePassword**](AuthenticationApi.md#changepassword) | **POST** /auth/change-password | -[**getAuthDevices**](AuthenticationApi.md#getauthdevices) | **GET** /auth/devices | -[**login**](AuthenticationApi.md#login) | **POST** /auth/login | -[**logout**](AuthenticationApi.md#logout) | **POST** /auth/logout | -[**logoutAuthDevice**](AuthenticationApi.md#logoutauthdevice) | **DELETE** /auth/devices/{id} | -[**logoutAuthDevices**](AuthenticationApi.md#logoutauthdevices) | **DELETE** /auth/devices | -[**validateAccessToken**](AuthenticationApi.md#validateaccesstoken) | **POST** /auth/validateToken | - - -# **adminSignUp** -> AdminSignupResponseDto adminSignUp(signUpDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = AuthenticationApi(); -final signUpDto = SignUpDto(); // SignUpDto | - -try { - final result = api_instance.adminSignUp(signUpDto); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->adminSignUp: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **signUpDto** | [**SignUpDto**](SignUpDto.md)| | - -### Return type - -[**AdminSignupResponseDto**](AdminSignupResponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **changePassword** -> UserResponseDto changePassword(changePasswordDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); -final changePasswordDto = ChangePasswordDto(); // ChangePasswordDto | - -try { - final result = api_instance.changePassword(changePasswordDto); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->changePassword: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **changePasswordDto** | [**ChangePasswordDto**](ChangePasswordDto.md)| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAuthDevices** -> List getAuthDevices() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); - -try { - final result = api_instance.getAuthDevices(); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->getAuthDevices: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](AuthDeviceResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **login** -> LoginResponseDto login(loginCredentialDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = AuthenticationApi(); -final loginCredentialDto = LoginCredentialDto(); // LoginCredentialDto | - -try { - final result = api_instance.login(loginCredentialDto); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->login: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **loginCredentialDto** | [**LoginCredentialDto**](LoginCredentialDto.md)| | - -### Return type - -[**LoginResponseDto**](LoginResponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **logout** -> LogoutResponseDto logout() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); - -try { - final result = api_instance.logout(); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->logout: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**LogoutResponseDto**](LogoutResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **logoutAuthDevice** -> logoutAuthDevice(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.logoutAuthDevice(id); -} catch (e) { - print('Exception when calling AuthenticationApi->logoutAuthDevice: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **logoutAuthDevices** -> logoutAuthDevices() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); - -try { - api_instance.logoutAuthDevices(); -} catch (e) { - print('Exception when calling AuthenticationApi->logoutAuthDevices: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **validateAccessToken** -> ValidateAccessTokenResponseDto validateAccessToken() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = AuthenticationApi(); - -try { - final result = api_instance.validateAccessToken(); - print(result); -} catch (e) { - print('Exception when calling AuthenticationApi->validateAccessToken: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ValidateAccessTokenResponseDto**](ValidateAccessTokenResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/ChangePasswordDto.md b/mobile/openapi/doc/ChangePasswordDto.md deleted file mode 100644 index a257395ba3a0ee..00000000000000 --- a/mobile/openapi/doc/ChangePasswordDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.ChangePasswordDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**password** | **String** | | -**newPassword** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CheckDuplicateAssetDto.md b/mobile/openapi/doc/CheckDuplicateAssetDto.md deleted file mode 100644 index 259cdfc81cfaaa..00000000000000 --- a/mobile/openapi/doc/CheckDuplicateAssetDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.CheckDuplicateAssetDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deviceAssetId** | **String** | | -**deviceId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CheckDuplicateAssetResponseDto.md b/mobile/openapi/doc/CheckDuplicateAssetResponseDto.md deleted file mode 100644 index 90010481e67c14..00000000000000 --- a/mobile/openapi/doc/CheckDuplicateAssetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.CheckDuplicateAssetResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isExist** | **bool** | | -**id** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CheckExistingAssetsDto.md b/mobile/openapi/doc/CheckExistingAssetsDto.md deleted file mode 100644 index 878e200fdff934..00000000000000 --- a/mobile/openapi/doc/CheckExistingAssetsDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.CheckExistingAssetsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deviceAssetIds** | **List** | | [default to const []] -**deviceId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CheckExistingAssetsResponseDto.md b/mobile/openapi/doc/CheckExistingAssetsResponseDto.md deleted file mode 100644 index c9486005fdaa86..00000000000000 --- a/mobile/openapi/doc/CheckExistingAssetsResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.CheckExistingAssetsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**existingIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CreateAlbumDto.md b/mobile/openapi/doc/CreateAlbumDto.md deleted file mode 100644 index 2f91dba103115b..00000000000000 --- a/mobile/openapi/doc/CreateAlbumDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.CreateAlbumDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**albumName** | **String** | | -**sharedWithUserIds** | **List** | | [optional] [default to const []] -**assetIds** | **List** | | [optional] [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CreateProfileImageResponseDto.md b/mobile/openapi/doc/CreateProfileImageResponseDto.md deleted file mode 100644 index 3323e7df43a7ae..00000000000000 --- a/mobile/openapi/doc/CreateProfileImageResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.CreateProfileImageResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | -**profileImagePath** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CreateTagDto.md b/mobile/openapi/doc/CreateTagDto.md deleted file mode 100644 index 64222db4993d92..00000000000000 --- a/mobile/openapi/doc/CreateTagDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.CreateTagDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**TagTypeEnum**](TagTypeEnum.md) | | -**name** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CreateUserDto.md b/mobile/openapi/doc/CreateUserDto.md deleted file mode 100644 index 09b963b92841fd..00000000000000 --- a/mobile/openapi/doc/CreateUserDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# openapi.model.CreateUserDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | | -**password** | **String** | | -**firstName** | **String** | | -**lastName** | **String** | | -**storageLabel** | **String** | | [optional] -**externalPath** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CuratedLocationsResponseDto.md b/mobile/openapi/doc/CuratedLocationsResponseDto.md deleted file mode 100644 index abd86ea535799f..00000000000000 --- a/mobile/openapi/doc/CuratedLocationsResponseDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.CuratedLocationsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**city** | **String** | | -**resizePath** | **String** | | -**deviceAssetId** | **String** | | -**deviceId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/CuratedObjectsResponseDto.md b/mobile/openapi/doc/CuratedObjectsResponseDto.md deleted file mode 100644 index 559f25148fc756..00000000000000 --- a/mobile/openapi/doc/CuratedObjectsResponseDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.CuratedObjectsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**object** | **String** | | -**resizePath** | **String** | | -**deviceAssetId** | **String** | | -**deviceId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/DeleteAssetDto.md b/mobile/openapi/doc/DeleteAssetDto.md deleted file mode 100644 index 3b60d4ecedd2b3..00000000000000 --- a/mobile/openapi/doc/DeleteAssetDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.DeleteAssetDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ids** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/DeleteAssetResponseDto.md b/mobile/openapi/doc/DeleteAssetResponseDto.md deleted file mode 100644 index 4cd44e030eae0a..00000000000000 --- a/mobile/openapi/doc/DeleteAssetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.DeleteAssetResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**DeleteAssetStatus**](DeleteAssetStatus.md) | | -**id** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/DeleteAssetStatus.md b/mobile/openapi/doc/DeleteAssetStatus.md deleted file mode 100644 index 4616d0ae06ff1d..00000000000000 --- a/mobile/openapi/doc/DeleteAssetStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.DeleteAssetStatus - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/DownloadArchiveInfo.md b/mobile/openapi/doc/DownloadArchiveInfo.md deleted file mode 100644 index 5ec8c668ffb667..00000000000000 --- a/mobile/openapi/doc/DownloadArchiveInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.DownloadArchiveInfo - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | **int** | | -**assetIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/DownloadResponseDto.md b/mobile/openapi/doc/DownloadResponseDto.md deleted file mode 100644 index 2a7bbc9b19d9e8..00000000000000 --- a/mobile/openapi/doc/DownloadResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.DownloadResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalSize** | **int** | | -**archives** | [**List**](DownloadArchiveInfo.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ExifResponseDto.md b/mobile/openapi/doc/ExifResponseDto.md deleted file mode 100644 index dd4b3b4f96b4c3..00000000000000 --- a/mobile/openapi/doc/ExifResponseDto.md +++ /dev/null @@ -1,34 +0,0 @@ -# openapi.model.ExifResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fileSizeInByte** | **int** | | [optional] -**make** | **String** | | [optional] -**model** | **String** | | [optional] -**exifImageWidth** | **num** | | [optional] -**exifImageHeight** | **num** | | [optional] -**orientation** | **String** | | [optional] -**dateTimeOriginal** | [**DateTime**](DateTime.md) | | [optional] -**modifyDate** | [**DateTime**](DateTime.md) | | [optional] -**timeZone** | **String** | | [optional] -**lensModel** | **String** | | [optional] -**fNumber** | **num** | | [optional] -**focalLength** | **num** | | [optional] -**iso** | **num** | | [optional] -**exposureTime** | **String** | | [optional] -**latitude** | **num** | | [optional] -**longitude** | **num** | | [optional] -**city** | **String** | | [optional] -**state** | **String** | | [optional] -**country** | **String** | | [optional] -**description** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/GetAssetByTimeBucketDto.md b/mobile/openapi/doc/GetAssetByTimeBucketDto.md deleted file mode 100644 index da314c71fc726e..00000000000000 --- a/mobile/openapi/doc/GetAssetByTimeBucketDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.GetAssetByTimeBucketDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeBucket** | **List** | | [default to const []] -**userId** | **String** | | [optional] -**withoutThumbs** | **bool** | Include assets without thumbnails | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/GetAssetCountByTimeBucketDto.md b/mobile/openapi/doc/GetAssetCountByTimeBucketDto.md deleted file mode 100644 index 5ba4078539a436..00000000000000 --- a/mobile/openapi/doc/GetAssetCountByTimeBucketDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.GetAssetCountByTimeBucketDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeGroup** | [**TimeGroupEnum**](TimeGroupEnum.md) | | -**userId** | **String** | | [optional] -**withoutThumbs** | **bool** | Include assets without thumbnails | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ImportAssetDto.md b/mobile/openapi/doc/ImportAssetDto.md deleted file mode 100644 index 66ef5e72bf2936..00000000000000 --- a/mobile/openapi/doc/ImportAssetDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# openapi.model.ImportAssetDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetType** | [**AssetTypeEnum**](AssetTypeEnum.md) | | -**isReadOnly** | **bool** | | [optional] [default to true] -**assetPath** | **String** | | -**sidecarPath** | **String** | | [optional] -**deviceAssetId** | **String** | | -**deviceId** | **String** | | -**fileCreatedAt** | [**DateTime**](DateTime.md) | | -**fileModifiedAt** | [**DateTime**](DateTime.md) | | -**isFavorite** | **bool** | | -**isPanorama** | **bool** | | -**isArchived** | **bool** | | [optional] -**isVisible** | **bool** | | [optional] -**duration** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobApi.md b/mobile/openapi/doc/JobApi.md deleted file mode 100644 index c50adbead5d28f..00000000000000 --- a/mobile/openapi/doc/JobApi.md +++ /dev/null @@ -1,123 +0,0 @@ -# openapi.api.JobApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAllJobsStatus**](JobApi.md#getalljobsstatus) | **GET** /jobs | -[**sendJobCommand**](JobApi.md#sendjobcommand) | **PUT** /jobs/{id} | - - -# **getAllJobsStatus** -> AllJobStatusResponseDto getAllJobsStatus() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = JobApi(); - -try { - final result = api_instance.getAllJobsStatus(); - print(result); -} catch (e) { - print('Exception when calling JobApi->getAllJobsStatus: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**AllJobStatusResponseDto**](AllJobStatusResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **sendJobCommand** -> JobStatusDto sendJobCommand(id, jobCommandDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = JobApi(); -final id = ; // JobName | -final jobCommandDto = JobCommandDto(); // JobCommandDto | - -try { - final result = api_instance.sendJobCommand(id, jobCommandDto); - print(result); -} catch (e) { - print('Exception when calling JobApi->sendJobCommand: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | [**JobName**](.md)| | - **jobCommandDto** | [**JobCommandDto**](JobCommandDto.md)| | - -### Return type - -[**JobStatusDto**](JobStatusDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/JobCommand.md b/mobile/openapi/doc/JobCommand.md deleted file mode 100644 index 620e0439a58d88..00000000000000 --- a/mobile/openapi/doc/JobCommand.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.JobCommand - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobCommandDto.md b/mobile/openapi/doc/JobCommandDto.md deleted file mode 100644 index 49dc499f46e772..00000000000000 --- a/mobile/openapi/doc/JobCommandDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.JobCommandDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**command** | [**JobCommand**](JobCommand.md) | | -**force** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobCountsDto.md b/mobile/openapi/doc/JobCountsDto.md deleted file mode 100644 index 8f5b47c6f1cc6f..00000000000000 --- a/mobile/openapi/doc/JobCountsDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# openapi.model.JobCountsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **int** | | -**completed** | **int** | | -**failed** | **int** | | -**delayed** | **int** | | -**waiting** | **int** | | -**paused** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobName.md b/mobile/openapi/doc/JobName.md deleted file mode 100644 index 43fb27c79401f0..00000000000000 --- a/mobile/openapi/doc/JobName.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.JobName - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobSettingsDto.md b/mobile/openapi/doc/JobSettingsDto.md deleted file mode 100644 index 4c849feaae4b11..00000000000000 --- a/mobile/openapi/doc/JobSettingsDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.JobSettingsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**concurrency** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/JobStatusDto.md b/mobile/openapi/doc/JobStatusDto.md deleted file mode 100644 index ba85c3b25b9339..00000000000000 --- a/mobile/openapi/doc/JobStatusDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.JobStatusDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**jobCounts** | [**JobCountsDto**](JobCountsDto.md) | | -**queueStatus** | [**QueueStatusDto**](QueueStatusDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/LoginCredentialDto.md b/mobile/openapi/doc/LoginCredentialDto.md deleted file mode 100644 index bf8eb3d21e11c0..00000000000000 --- a/mobile/openapi/doc/LoginCredentialDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.LoginCredentialDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | | -**password** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/LoginResponseDto.md b/mobile/openapi/doc/LoginResponseDto.md deleted file mode 100644 index b4033fe52cd406..00000000000000 --- a/mobile/openapi/doc/LoginResponseDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# openapi.model.LoginResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | | [readonly] -**userId** | **String** | | [readonly] -**userEmail** | **String** | | [readonly] -**firstName** | **String** | | [readonly] -**lastName** | **String** | | [readonly] -**profileImagePath** | **String** | | [readonly] -**isAdmin** | **bool** | | [readonly] -**shouldChangePassword** | **bool** | | [readonly] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/LogoutResponseDto.md b/mobile/openapi/doc/LogoutResponseDto.md deleted file mode 100644 index 9d17baf2ce2163..00000000000000 --- a/mobile/openapi/doc/LogoutResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.LogoutResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**successful** | **bool** | | -**redirectUri** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/MapMarkerResponseDto.md b/mobile/openapi/doc/MapMarkerResponseDto.md deleted file mode 100644 index 94f253d3802490..00000000000000 --- a/mobile/openapi/doc/MapMarkerResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.MapMarkerResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**lat** | **double** | | -**lon** | **double** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/MemoryLaneResponseDto.md b/mobile/openapi/doc/MemoryLaneResponseDto.md deleted file mode 100644 index 9aafda1424456b..00000000000000 --- a/mobile/openapi/doc/MemoryLaneResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.MemoryLaneResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | | -**assets** | [**List**](AssetResponseDto.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/OAuthApi.md b/mobile/openapi/doc/OAuthApi.md deleted file mode 100644 index 519a96d9ee725b..00000000000000 --- a/mobile/openapi/doc/OAuthApi.md +++ /dev/null @@ -1,242 +0,0 @@ -# openapi.api.OAuthApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**callback**](OAuthApi.md#callback) | **POST** /oauth/callback | -[**generateConfig**](OAuthApi.md#generateconfig) | **POST** /oauth/config | -[**link**](OAuthApi.md#link) | **POST** /oauth/link | -[**mobileRedirect**](OAuthApi.md#mobileredirect) | **GET** /oauth/mobile-redirect | -[**unlink**](OAuthApi.md#unlink) | **POST** /oauth/unlink | - - -# **callback** -> LoginResponseDto callback(oAuthCallbackDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = OAuthApi(); -final oAuthCallbackDto = OAuthCallbackDto(); // OAuthCallbackDto | - -try { - final result = api_instance.callback(oAuthCallbackDto); - print(result); -} catch (e) { - print('Exception when calling OAuthApi->callback: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **oAuthCallbackDto** | [**OAuthCallbackDto**](OAuthCallbackDto.md)| | - -### Return type - -[**LoginResponseDto**](LoginResponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **generateConfig** -> OAuthConfigResponseDto generateConfig(oAuthConfigDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = OAuthApi(); -final oAuthConfigDto = OAuthConfigDto(); // OAuthConfigDto | - -try { - final result = api_instance.generateConfig(oAuthConfigDto); - print(result); -} catch (e) { - print('Exception when calling OAuthApi->generateConfig: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **oAuthConfigDto** | [**OAuthConfigDto**](OAuthConfigDto.md)| | - -### Return type - -[**OAuthConfigResponseDto**](OAuthConfigResponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **link** -> UserResponseDto link(oAuthCallbackDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = OAuthApi(); -final oAuthCallbackDto = OAuthCallbackDto(); // OAuthCallbackDto | - -try { - final result = api_instance.link(oAuthCallbackDto); - print(result); -} catch (e) { - print('Exception when calling OAuthApi->link: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **oAuthCallbackDto** | [**OAuthCallbackDto**](OAuthCallbackDto.md)| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **mobileRedirect** -> mobileRedirect() - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = OAuthApi(); - -try { - api_instance.mobileRedirect(); -} catch (e) { - print('Exception when calling OAuthApi->mobileRedirect: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **unlink** -> UserResponseDto unlink() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = OAuthApi(); - -try { - final result = api_instance.unlink(); - print(result); -} catch (e) { - print('Exception when calling OAuthApi->unlink: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/OAuthCallbackDto.md b/mobile/openapi/doc/OAuthCallbackDto.md deleted file mode 100644 index 0627ea834b7b10..00000000000000 --- a/mobile/openapi/doc/OAuthCallbackDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.OAuthCallbackDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/OAuthConfigDto.md b/mobile/openapi/doc/OAuthConfigDto.md deleted file mode 100644 index 0683026ddd2067..00000000000000 --- a/mobile/openapi/doc/OAuthConfigDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.OAuthConfigDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**redirectUri** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/OAuthConfigResponseDto.md b/mobile/openapi/doc/OAuthConfigResponseDto.md deleted file mode 100644 index ae1d42c12fa695..00000000000000 --- a/mobile/openapi/doc/OAuthConfigResponseDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.OAuthConfigResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | -**passwordLoginEnabled** | **bool** | | -**url** | **String** | | [optional] -**buttonText** | **String** | | [optional] -**autoLaunch** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/PartnerApi.md b/mobile/openapi/doc/PartnerApi.md deleted file mode 100644 index 937978befb6f01..00000000000000 --- a/mobile/openapi/doc/PartnerApi.md +++ /dev/null @@ -1,180 +0,0 @@ -# openapi.api.PartnerApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createPartner**](PartnerApi.md#createpartner) | **POST** /partner/{id} | -[**getPartners**](PartnerApi.md#getpartners) | **GET** /partner | -[**removePartner**](PartnerApi.md#removepartner) | **DELETE** /partner/{id} | - - -# **createPartner** -> UserResponseDto createPartner(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PartnerApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.createPartner(id); - print(result); -} catch (e) { - print('Exception when calling PartnerApi->createPartner: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getPartners** -> List getPartners(direction) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PartnerApi(); -final direction = direction_example; // String | - -try { - final result = api_instance.getPartners(direction); - print(result); -} catch (e) { - print('Exception when calling PartnerApi->getPartners: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **direction** | **String**| | - -### Return type - -[**List**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removePartner** -> removePartner(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PartnerApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.removePartner(id); -} catch (e) { - print('Exception when calling PartnerApi->removePartner: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/PersonApi.md b/mobile/openapi/doc/PersonApi.md deleted file mode 100644 index dd1c0eb8e41bfe..00000000000000 --- a/mobile/openapi/doc/PersonApi.md +++ /dev/null @@ -1,291 +0,0 @@ -# openapi.api.PersonApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAllPeople**](PersonApi.md#getallpeople) | **GET** /person | -[**getPerson**](PersonApi.md#getperson) | **GET** /person/{id} | -[**getPersonAssets**](PersonApi.md#getpersonassets) | **GET** /person/{id}/assets | -[**getPersonThumbnail**](PersonApi.md#getpersonthumbnail) | **GET** /person/{id}/thumbnail | -[**updatePerson**](PersonApi.md#updateperson) | **PUT** /person/{id} | - - -# **getAllPeople** -> List getAllPeople() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PersonApi(); - -try { - final result = api_instance.getAllPeople(); - print(result); -} catch (e) { - print('Exception when calling PersonApi->getAllPeople: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](PersonResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getPerson** -> PersonResponseDto getPerson(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PersonApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getPerson(id); - print(result); -} catch (e) { - print('Exception when calling PersonApi->getPerson: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**PersonResponseDto**](PersonResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getPersonAssets** -> List getPersonAssets(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PersonApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getPersonAssets(id); - print(result); -} catch (e) { - print('Exception when calling PersonApi->getPersonAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**List**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getPersonThumbnail** -> MultipartFile getPersonThumbnail(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PersonApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getPersonThumbnail(id); - print(result); -} catch (e) { - print('Exception when calling PersonApi->getPersonThumbnail: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**MultipartFile**](MultipartFile.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/octet-stream - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updatePerson** -> PersonResponseDto updatePerson(id, personUpdateDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = PersonApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final personUpdateDto = PersonUpdateDto(); // PersonUpdateDto | - -try { - final result = api_instance.updatePerson(id, personUpdateDto); - print(result); -} catch (e) { - print('Exception when calling PersonApi->updatePerson: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **personUpdateDto** | [**PersonUpdateDto**](PersonUpdateDto.md)| | - -### Return type - -[**PersonResponseDto**](PersonResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/PersonResponseDto.md b/mobile/openapi/doc/PersonResponseDto.md deleted file mode 100644 index 05927762a94f76..00000000000000 --- a/mobile/openapi/doc/PersonResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.PersonResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**name** | **String** | | -**thumbnailPath** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/PersonUpdateDto.md b/mobile/openapi/doc/PersonUpdateDto.md deleted file mode 100644 index 7496b2af62d42b..00000000000000 --- a/mobile/openapi/doc/PersonUpdateDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.PersonUpdateDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Person name. | [optional] -**featureFaceAssetId** | **String** | Asset is used to get the feature face thumbnail. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/QueueStatusDto.md b/mobile/openapi/doc/QueueStatusDto.md deleted file mode 100644 index ca3475678d7afa..00000000000000 --- a/mobile/openapi/doc/QueueStatusDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.QueueStatusDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isActive** | **bool** | | -**isPaused** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/RemoveAssetsDto.md b/mobile/openapi/doc/RemoveAssetsDto.md deleted file mode 100644 index d2ab8473247b41..00000000000000 --- a/mobile/openapi/doc/RemoveAssetsDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.RemoveAssetsDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assetIds** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchAlbumResponseDto.md b/mobile/openapi/doc/SearchAlbumResponseDto.md deleted file mode 100644 index f78a51a0f9d1a8..00000000000000 --- a/mobile/openapi/doc/SearchAlbumResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.SearchAlbumResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | -**count** | **int** | | -**items** | [**List**](AlbumResponseDto.md) | | [default to const []] -**facets** | [**List**](SearchFacetResponseDto.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchApi.md b/mobile/openapi/doc/SearchApi.md deleted file mode 100644 index 2ada86a47058fb..00000000000000 --- a/mobile/openapi/doc/SearchApi.md +++ /dev/null @@ -1,201 +0,0 @@ -# openapi.api.SearchApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getExploreData**](SearchApi.md#getexploredata) | **GET** /search/explore | -[**getSearchConfig**](SearchApi.md#getsearchconfig) | **GET** /search/config | -[**search**](SearchApi.md#search) | **GET** /search | - - -# **getExploreData** -> List getExploreData() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SearchApi(); - -try { - final result = api_instance.getExploreData(); - print(result); -} catch (e) { - print('Exception when calling SearchApi->getExploreData: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](SearchExploreResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getSearchConfig** -> SearchConfigResponseDto getSearchConfig() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SearchApi(); - -try { - final result = api_instance.getSearchConfig(); - print(result); -} catch (e) { - print('Exception when calling SearchApi->getSearchConfig: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SearchConfigResponseDto**](SearchConfigResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **search** -> SearchResponseDto search(q, query, clip, type, isFavorite, isArchived, exifInfoPeriodCity, exifInfoPeriodState, exifInfoPeriodCountry, exifInfoPeriodMake, exifInfoPeriodModel, smartInfoPeriodObjects, smartInfoPeriodTags, recent, motion) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SearchApi(); -final q = q_example; // String | -final query = query_example; // String | -final clip = true; // bool | -final type = type_example; // String | -final isFavorite = true; // bool | -final isArchived = true; // bool | -final exifInfoPeriodCity = exifInfoPeriodCity_example; // String | -final exifInfoPeriodState = exifInfoPeriodState_example; // String | -final exifInfoPeriodCountry = exifInfoPeriodCountry_example; // String | -final exifInfoPeriodMake = exifInfoPeriodMake_example; // String | -final exifInfoPeriodModel = exifInfoPeriodModel_example; // String | -final smartInfoPeriodObjects = []; // List | -final smartInfoPeriodTags = []; // List | -final recent = true; // bool | -final motion = true; // bool | - -try { - final result = api_instance.search(q, query, clip, type, isFavorite, isArchived, exifInfoPeriodCity, exifInfoPeriodState, exifInfoPeriodCountry, exifInfoPeriodMake, exifInfoPeriodModel, smartInfoPeriodObjects, smartInfoPeriodTags, recent, motion); - print(result); -} catch (e) { - print('Exception when calling SearchApi->search: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **q** | **String**| | [optional] - **query** | **String**| | [optional] - **clip** | **bool**| | [optional] - **type** | **String**| | [optional] - **isFavorite** | **bool**| | [optional] - **isArchived** | **bool**| | [optional] - **exifInfoPeriodCity** | **String**| | [optional] - **exifInfoPeriodState** | **String**| | [optional] - **exifInfoPeriodCountry** | **String**| | [optional] - **exifInfoPeriodMake** | **String**| | [optional] - **exifInfoPeriodModel** | **String**| | [optional] - **smartInfoPeriodObjects** | [**List**](String.md)| | [optional] [default to const []] - **smartInfoPeriodTags** | [**List**](String.md)| | [optional] [default to const []] - **recent** | **bool**| | [optional] - **motion** | **bool**| | [optional] - -### Return type - -[**SearchResponseDto**](SearchResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/SearchAssetDto.md b/mobile/openapi/doc/SearchAssetDto.md deleted file mode 100644 index 1eadd2a0c18e5c..00000000000000 --- a/mobile/openapi/doc/SearchAssetDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.SearchAssetDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**searchTerm** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchAssetResponseDto.md b/mobile/openapi/doc/SearchAssetResponseDto.md deleted file mode 100644 index 871a70693a4403..00000000000000 --- a/mobile/openapi/doc/SearchAssetResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.SearchAssetResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | -**count** | **int** | | -**items** | [**List**](AssetResponseDto.md) | | [default to const []] -**facets** | [**List**](SearchFacetResponseDto.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchConfigResponseDto.md b/mobile/openapi/doc/SearchConfigResponseDto.md deleted file mode 100644 index 25020ea7566752..00000000000000 --- a/mobile/openapi/doc/SearchConfigResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.SearchConfigResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchExploreItem.md b/mobile/openapi/doc/SearchExploreItem.md deleted file mode 100644 index 75eaabd8b1aa2d..00000000000000 --- a/mobile/openapi/doc/SearchExploreItem.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SearchExploreItem - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | | -**data** | [**AssetResponseDto**](AssetResponseDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchExploreResponseDto.md b/mobile/openapi/doc/SearchExploreResponseDto.md deleted file mode 100644 index 0185b3651b98dc..00000000000000 --- a/mobile/openapi/doc/SearchExploreResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SearchExploreResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldName** | **String** | | -**items** | [**List**](SearchExploreItem.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchFacetCountResponseDto.md b/mobile/openapi/doc/SearchFacetCountResponseDto.md deleted file mode 100644 index b9188b003c73b9..00000000000000 --- a/mobile/openapi/doc/SearchFacetCountResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SearchFacetCountResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | | -**value** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchFacetResponseDto.md b/mobile/openapi/doc/SearchFacetResponseDto.md deleted file mode 100644 index c78d5ae8e5e9db..00000000000000 --- a/mobile/openapi/doc/SearchFacetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SearchFacetResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldName** | **String** | | -**counts** | [**List**](SearchFacetCountResponseDto.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SearchResponseDto.md b/mobile/openapi/doc/SearchResponseDto.md deleted file mode 100644 index 3b8ce07fdd4bd3..00000000000000 --- a/mobile/openapi/doc/SearchResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SearchResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**albums** | [**SearchAlbumResponseDto**](SearchAlbumResponseDto.md) | | -**assets** | [**SearchAssetResponseDto**](SearchAssetResponseDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ServerInfoApi.md b/mobile/openapi/doc/ServerInfoApi.md deleted file mode 100644 index 3b39ef93eee19e..00000000000000 --- a/mobile/openapi/doc/ServerInfoApi.md +++ /dev/null @@ -1,193 +0,0 @@ -# openapi.api.ServerInfoApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getServerInfo**](ServerInfoApi.md#getserverinfo) | **GET** /server-info | -[**getServerVersion**](ServerInfoApi.md#getserverversion) | **GET** /server-info/version | -[**getStats**](ServerInfoApi.md#getstats) | **GET** /server-info/stats | -[**pingServer**](ServerInfoApi.md#pingserver) | **GET** /server-info/ping | - - -# **getServerInfo** -> ServerInfoResponseDto getServerInfo() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = ServerInfoApi(); - -try { - final result = api_instance.getServerInfo(); - print(result); -} catch (e) { - print('Exception when calling ServerInfoApi->getServerInfo: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ServerInfoResponseDto**](ServerInfoResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getServerVersion** -> ServerVersionReponseDto getServerVersion() - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = ServerInfoApi(); - -try { - final result = api_instance.getServerVersion(); - print(result); -} catch (e) { - print('Exception when calling ServerInfoApi->getServerVersion: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ServerVersionReponseDto**](ServerVersionReponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getStats** -> ServerStatsResponseDto getStats() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = ServerInfoApi(); - -try { - final result = api_instance.getStats(); - print(result); -} catch (e) { - print('Exception when calling ServerInfoApi->getStats: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ServerStatsResponseDto**](ServerStatsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **pingServer** -> ServerPingResponse pingServer() - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = ServerInfoApi(); - -try { - final result = api_instance.pingServer(); - print(result); -} catch (e) { - print('Exception when calling ServerInfoApi->pingServer: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**ServerPingResponse**](ServerPingResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/ServerInfoResponseDto.md b/mobile/openapi/doc/ServerInfoResponseDto.md deleted file mode 100644 index 75694d60deaf47..00000000000000 --- a/mobile/openapi/doc/ServerInfoResponseDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# openapi.model.ServerInfoResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**diskSizeRaw** | **int** | | -**diskUseRaw** | **int** | | -**diskAvailableRaw** | **int** | | -**diskUsagePercentage** | **double** | | -**diskSize** | **String** | | -**diskUse** | **String** | | -**diskAvailable** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ServerPingResponse.md b/mobile/openapi/doc/ServerPingResponse.md deleted file mode 100644 index 97a79869fcc15f..00000000000000 --- a/mobile/openapi/doc/ServerPingResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.ServerPingResponse - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**res** | **String** | | [readonly] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ServerStatsResponseDto.md b/mobile/openapi/doc/ServerStatsResponseDto.md deleted file mode 100644 index 96446e1c28dc67..00000000000000 --- a/mobile/openapi/doc/ServerStatsResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.ServerStatsResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**photos** | **int** | | [default to 0] -**videos** | **int** | | [default to 0] -**usage** | **int** | | [default to 0] -**usageByUser** | [**List**](UsageByUserDto.md) | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ServerVersionReponseDto.md b/mobile/openapi/doc/ServerVersionReponseDto.md deleted file mode 100644 index 68dfa972cc2b03..00000000000000 --- a/mobile/openapi/doc/ServerVersionReponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# openapi.model.ServerVersionReponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**major** | **int** | | -**minor** | **int** | | -**patch_** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SharedLinkApi.md b/mobile/openapi/doc/SharedLinkApi.md deleted file mode 100644 index 34b8e1e7199116..00000000000000 --- a/mobile/openapi/doc/SharedLinkApi.md +++ /dev/null @@ -1,466 +0,0 @@ -# openapi.api.SharedLinkApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addSharedLinkAssets**](SharedLinkApi.md#addsharedlinkassets) | **PUT** /shared-link/{id}/assets | -[**createSharedLink**](SharedLinkApi.md#createsharedlink) | **POST** /shared-link | -[**getAllSharedLinks**](SharedLinkApi.md#getallsharedlinks) | **GET** /shared-link | -[**getMySharedLink**](SharedLinkApi.md#getmysharedlink) | **GET** /shared-link/me | -[**getSharedLinkById**](SharedLinkApi.md#getsharedlinkbyid) | **GET** /shared-link/{id} | -[**removeSharedLink**](SharedLinkApi.md#removesharedlink) | **DELETE** /shared-link/{id} | -[**removeSharedLinkAssets**](SharedLinkApi.md#removesharedlinkassets) | **DELETE** /shared-link/{id}/assets | -[**updateSharedLink**](SharedLinkApi.md#updatesharedlink) | **PATCH** /shared-link/{id} | - - -# **addSharedLinkAssets** -> List addSharedLinkAssets(id, assetIdsDto, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final assetIdsDto = AssetIdsDto(); // AssetIdsDto | -final key = key_example; // String | - -try { - final result = api_instance.addSharedLinkAssets(id, assetIdsDto, key); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->addSharedLinkAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| | - **key** | **String**| | [optional] - -### Return type - -[**List**](AssetIdsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createSharedLink** -> SharedLinkResponseDto createSharedLink(sharedLinkCreateDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final sharedLinkCreateDto = SharedLinkCreateDto(); // SharedLinkCreateDto | - -try { - final result = api_instance.createSharedLink(sharedLinkCreateDto); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->createSharedLink: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sharedLinkCreateDto** | [**SharedLinkCreateDto**](SharedLinkCreateDto.md)| | - -### Return type - -[**SharedLinkResponseDto**](SharedLinkResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAllSharedLinks** -> List getAllSharedLinks() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); - -try { - final result = api_instance.getAllSharedLinks(); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->getAllSharedLinks: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](SharedLinkResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getMySharedLink** -> SharedLinkResponseDto getMySharedLink(key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final key = key_example; // String | - -try { - final result = api_instance.getMySharedLink(key); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->getMySharedLink: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **key** | **String**| | [optional] - -### Return type - -[**SharedLinkResponseDto**](SharedLinkResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getSharedLinkById** -> SharedLinkResponseDto getSharedLinkById(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getSharedLinkById(id); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->getSharedLinkById: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**SharedLinkResponseDto**](SharedLinkResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removeSharedLink** -> removeSharedLink(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.removeSharedLink(id); -} catch (e) { - print('Exception when calling SharedLinkApi->removeSharedLink: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **removeSharedLinkAssets** -> List removeSharedLinkAssets(id, assetIdsDto, key) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final assetIdsDto = AssetIdsDto(); // AssetIdsDto | -final key = key_example; // String | - -try { - final result = api_instance.removeSharedLinkAssets(id, assetIdsDto, key); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->removeSharedLinkAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| | - **key** | **String**| | [optional] - -### Return type - -[**List**](AssetIdsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateSharedLink** -> SharedLinkResponseDto updateSharedLink(id, sharedLinkEditDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SharedLinkApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final sharedLinkEditDto = SharedLinkEditDto(); // SharedLinkEditDto | - -try { - final result = api_instance.updateSharedLink(id, sharedLinkEditDto); - print(result); -} catch (e) { - print('Exception when calling SharedLinkApi->updateSharedLink: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **sharedLinkEditDto** | [**SharedLinkEditDto**](SharedLinkEditDto.md)| | - -### Return type - -[**SharedLinkResponseDto**](SharedLinkResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/SharedLinkCreateDto.md b/mobile/openapi/doc/SharedLinkCreateDto.md deleted file mode 100644 index fbed9ef71cae9a..00000000000000 --- a/mobile/openapi/doc/SharedLinkCreateDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# openapi.model.SharedLinkCreateDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**SharedLinkType**](SharedLinkType.md) | | -**assetIds** | **List** | | [optional] [default to const []] -**albumId** | **String** | | [optional] -**description** | **String** | | [optional] -**expiresAt** | [**DateTime**](DateTime.md) | | [optional] -**allowUpload** | **bool** | | [optional] [default to false] -**allowDownload** | **bool** | | [optional] [default to true] -**showExif** | **bool** | | [optional] [default to true] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SharedLinkEditDto.md b/mobile/openapi/doc/SharedLinkEditDto.md deleted file mode 100644 index 5105726cbed51f..00000000000000 --- a/mobile/openapi/doc/SharedLinkEditDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.SharedLinkEditDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**expiresAt** | [**DateTime**](DateTime.md) | | [optional] -**allowUpload** | **bool** | | [optional] -**allowDownload** | **bool** | | [optional] -**showExif** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SharedLinkResponseDto.md b/mobile/openapi/doc/SharedLinkResponseDto.md deleted file mode 100644 index f649807f4c2a23..00000000000000 --- a/mobile/openapi/doc/SharedLinkResponseDto.md +++ /dev/null @@ -1,26 +0,0 @@ -# openapi.model.SharedLinkResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**SharedLinkType**](SharedLinkType.md) | | -**id** | **String** | | -**description** | **String** | | -**userId** | **String** | | -**key** | **String** | | -**createdAt** | [**DateTime**](DateTime.md) | | -**expiresAt** | [**DateTime**](DateTime.md) | | -**assets** | [**List**](AssetResponseDto.md) | | [default to const []] -**album** | [**AlbumResponseDto**](AlbumResponseDto.md) | | [optional] -**allowUpload** | **bool** | | -**allowDownload** | **bool** | | -**showExif** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SharedLinkType.md b/mobile/openapi/doc/SharedLinkType.md deleted file mode 100644 index 78d7604682d6ae..00000000000000 --- a/mobile/openapi/doc/SharedLinkType.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.SharedLinkType - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SignUpDto.md b/mobile/openapi/doc/SignUpDto.md deleted file mode 100644 index 6ca6759a939762..00000000000000 --- a/mobile/openapi/doc/SignUpDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.SignUpDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | | -**password** | **String** | | -**firstName** | **String** | | -**lastName** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SmartInfoResponseDto.md b/mobile/openapi/doc/SmartInfoResponseDto.md deleted file mode 100644 index 39d162abe4d252..00000000000000 --- a/mobile/openapi/doc/SmartInfoResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.SmartInfoResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tags** | **List** | | [optional] [default to const []] -**objects** | **List** | | [optional] [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigApi.md b/mobile/openapi/doc/SystemConfigApi.md deleted file mode 100644 index 5767f7bb5c16a4..00000000000000 --- a/mobile/openapi/doc/SystemConfigApi.md +++ /dev/null @@ -1,225 +0,0 @@ -# openapi.api.SystemConfigApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getConfig**](SystemConfigApi.md#getconfig) | **GET** /system-config | -[**getDefaults**](SystemConfigApi.md#getdefaults) | **GET** /system-config/defaults | -[**getStorageTemplateOptions**](SystemConfigApi.md#getstoragetemplateoptions) | **GET** /system-config/storage-template-options | -[**updateConfig**](SystemConfigApi.md#updateconfig) | **PUT** /system-config | - - -# **getConfig** -> SystemConfigDto getConfig() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SystemConfigApi(); - -try { - final result = api_instance.getConfig(); - print(result); -} catch (e) { - print('Exception when calling SystemConfigApi->getConfig: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SystemConfigDto**](SystemConfigDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getDefaults** -> SystemConfigDto getDefaults() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SystemConfigApi(); - -try { - final result = api_instance.getDefaults(); - print(result); -} catch (e) { - print('Exception when calling SystemConfigApi->getDefaults: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SystemConfigDto**](SystemConfigDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getStorageTemplateOptions** -> SystemConfigTemplateStorageOptionDto getStorageTemplateOptions() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SystemConfigApi(); - -try { - final result = api_instance.getStorageTemplateOptions(); - print(result); -} catch (e) { - print('Exception when calling SystemConfigApi->getStorageTemplateOptions: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**SystemConfigTemplateStorageOptionDto**](SystemConfigTemplateStorageOptionDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateConfig** -> SystemConfigDto updateConfig(systemConfigDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = SystemConfigApi(); -final systemConfigDto = SystemConfigDto(); // SystemConfigDto | - -try { - final result = api_instance.updateConfig(systemConfigDto); - print(result); -} catch (e) { - print('Exception when calling SystemConfigApi->updateConfig: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **systemConfigDto** | [**SystemConfigDto**](SystemConfigDto.md)| | - -### Return type - -[**SystemConfigDto**](SystemConfigDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/SystemConfigDto.md b/mobile/openapi/doc/SystemConfigDto.md deleted file mode 100644 index 908fc46da4d8ea..00000000000000 --- a/mobile/openapi/doc/SystemConfigDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# openapi.model.SystemConfigDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ffmpeg** | [**SystemConfigFFmpegDto**](SystemConfigFFmpegDto.md) | | -**oauth** | [**SystemConfigOAuthDto**](SystemConfigOAuthDto.md) | | -**passwordLogin** | [**SystemConfigPasswordLoginDto**](SystemConfigPasswordLoginDto.md) | | -**storageTemplate** | [**SystemConfigStorageTemplateDto**](SystemConfigStorageTemplateDto.md) | | -**job** | [**SystemConfigJobDto**](SystemConfigJobDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigFFmpegDto.md b/mobile/openapi/doc/SystemConfigFFmpegDto.md deleted file mode 100644 index e2dcb45db1ca87..00000000000000 --- a/mobile/openapi/doc/SystemConfigFFmpegDto.md +++ /dev/null @@ -1,23 +0,0 @@ -# openapi.model.SystemConfigFFmpegDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**crf** | **int** | | -**threads** | **int** | | -**preset** | **String** | | -**targetVideoCodec** | **String** | | -**targetAudioCodec** | **String** | | -**targetResolution** | **String** | | -**maxBitrate** | **String** | | -**twoPass** | **bool** | | -**transcode** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigJobDto.md b/mobile/openapi/doc/SystemConfigJobDto.md deleted file mode 100644 index bdff864764b9d2..00000000000000 --- a/mobile/openapi/doc/SystemConfigJobDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# openapi.model.SystemConfigJobDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**thumbnailGeneration** | [**JobSettingsDto**](JobSettingsDto.md) | | -**metadataExtraction** | [**JobSettingsDto**](JobSettingsDto.md) | | -**videoConversion** | [**JobSettingsDto**](JobSettingsDto.md) | | -**objectTagging** | [**JobSettingsDto**](JobSettingsDto.md) | | -**clipEncoding** | [**JobSettingsDto**](JobSettingsDto.md) | | -**storageTemplateMigration** | [**JobSettingsDto**](JobSettingsDto.md) | | -**backgroundTask** | [**JobSettingsDto**](JobSettingsDto.md) | | -**search** | [**JobSettingsDto**](JobSettingsDto.md) | | -**recognizeFaces** | [**JobSettingsDto**](JobSettingsDto.md) | | -**sidecar** | [**JobSettingsDto**](JobSettingsDto.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigOAuthDto.md b/mobile/openapi/doc/SystemConfigOAuthDto.md deleted file mode 100644 index 745b13b79a6f3d..00000000000000 --- a/mobile/openapi/doc/SystemConfigOAuthDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# openapi.model.SystemConfigOAuthDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | -**issuerUrl** | **String** | | -**clientId** | **String** | | -**clientSecret** | **String** | | -**scope** | **String** | | -**buttonText** | **String** | | -**autoRegister** | **bool** | | -**autoLaunch** | **bool** | | -**mobileOverrideEnabled** | **bool** | | -**mobileRedirectUri** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigPasswordLoginDto.md b/mobile/openapi/doc/SystemConfigPasswordLoginDto.md deleted file mode 100644 index 682a3c6447c76b..00000000000000 --- a/mobile/openapi/doc/SystemConfigPasswordLoginDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.SystemConfigPasswordLoginDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigStorageTemplateDto.md b/mobile/openapi/doc/SystemConfigStorageTemplateDto.md deleted file mode 100644 index 88bfe4569bdf63..00000000000000 --- a/mobile/openapi/doc/SystemConfigStorageTemplateDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.SystemConfigStorageTemplateDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**template** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md b/mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md deleted file mode 100644 index 5aa9aa195ea315..00000000000000 --- a/mobile/openapi/doc/SystemConfigTemplateStorageOptionDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# openapi.model.SystemConfigTemplateStorageOptionDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**yearOptions** | **List** | | [default to const []] -**monthOptions** | **List** | | [default to const []] -**dayOptions** | **List** | | [default to const []] -**hourOptions** | **List** | | [default to const []] -**minuteOptions** | **List** | | [default to const []] -**secondOptions** | **List** | | [default to const []] -**presetOptions** | **List** | | [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/TagApi.md b/mobile/openapi/doc/TagApi.md deleted file mode 100644 index 7c5b3d9a1ce89a..00000000000000 --- a/mobile/openapi/doc/TagApi.md +++ /dev/null @@ -1,462 +0,0 @@ -# openapi.api.TagApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createTag**](TagApi.md#createtag) | **POST** /tag | -[**deleteTag**](TagApi.md#deletetag) | **DELETE** /tag/{id} | -[**getAllTags**](TagApi.md#getalltags) | **GET** /tag | -[**getTagAssets**](TagApi.md#gettagassets) | **GET** /tag/{id}/assets | -[**getTagById**](TagApi.md#gettagbyid) | **GET** /tag/{id} | -[**tagAssets**](TagApi.md#tagassets) | **PUT** /tag/{id}/assets | -[**untagAssets**](TagApi.md#untagassets) | **DELETE** /tag/{id}/assets | -[**updateTag**](TagApi.md#updatetag) | **PATCH** /tag/{id} | - - -# **createTag** -> TagResponseDto createTag(createTagDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final createTagDto = CreateTagDto(); // CreateTagDto | - -try { - final result = api_instance.createTag(createTagDto); - print(result); -} catch (e) { - print('Exception when calling TagApi->createTag: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **createTagDto** | [**CreateTagDto**](CreateTagDto.md)| | - -### Return type - -[**TagResponseDto**](TagResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteTag** -> deleteTag(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - api_instance.deleteTag(id); -} catch (e) { - print('Exception when calling TagApi->deleteTag: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -void (empty response body) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAllTags** -> List getAllTags() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); - -try { - final result = api_instance.getAllTags(); - print(result); -} catch (e) { - print('Exception when calling TagApi->getAllTags: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List**](TagResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getTagAssets** -> List getTagAssets(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getTagAssets(id); - print(result); -} catch (e) { - print('Exception when calling TagApi->getTagAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**List**](AssetResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getTagById** -> TagResponseDto getTagById(id) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getTagById(id); - print(result); -} catch (e) { - print('Exception when calling TagApi->getTagById: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - -### Return type - -[**TagResponseDto**](TagResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **tagAssets** -> List tagAssets(id, assetIdsDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final assetIdsDto = AssetIdsDto(); // AssetIdsDto | - -try { - final result = api_instance.tagAssets(id, assetIdsDto); - print(result); -} catch (e) { - print('Exception when calling TagApi->tagAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| | - -### Return type - -[**List**](AssetIdsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **untagAssets** -> List untagAssets(id, assetIdsDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final assetIdsDto = AssetIdsDto(); // AssetIdsDto | - -try { - final result = api_instance.untagAssets(id, assetIdsDto); - print(result); -} catch (e) { - print('Exception when calling TagApi->untagAssets: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| | - -### Return type - -[**List**](AssetIdsResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateTag** -> TagResponseDto updateTag(id, updateTagDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = TagApi(); -final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | -final updateTagDto = UpdateTagDto(); // UpdateTagDto | - -try { - final result = api_instance.updateTag(id, updateTagDto); - print(result); -} catch (e) { - print('Exception when calling TagApi->updateTag: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| | - **updateTagDto** | [**UpdateTagDto**](UpdateTagDto.md)| | - -### Return type - -[**TagResponseDto**](TagResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/TagResponseDto.md b/mobile/openapi/doc/TagResponseDto.md deleted file mode 100644 index 366e95033747de..00000000000000 --- a/mobile/openapi/doc/TagResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.TagResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | [**TagTypeEnum**](TagTypeEnum.md) | | -**id** | **String** | | -**name** | **String** | | -**userId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/TagTypeEnum.md b/mobile/openapi/doc/TagTypeEnum.md deleted file mode 100644 index cede1409067b07..00000000000000 --- a/mobile/openapi/doc/TagTypeEnum.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.TagTypeEnum - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ThumbnailFormat.md b/mobile/openapi/doc/ThumbnailFormat.md deleted file mode 100644 index 5cd36c673f9b2b..00000000000000 --- a/mobile/openapi/doc/ThumbnailFormat.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.ThumbnailFormat - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/TimeGroupEnum.md b/mobile/openapi/doc/TimeGroupEnum.md deleted file mode 100644 index d037b9f356323c..00000000000000 --- a/mobile/openapi/doc/TimeGroupEnum.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.TimeGroupEnum - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UpdateAlbumDto.md b/mobile/openapi/doc/UpdateAlbumDto.md deleted file mode 100644 index 27ce6b365bd104..00000000000000 --- a/mobile/openapi/doc/UpdateAlbumDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# openapi.model.UpdateAlbumDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**albumName** | **String** | | [optional] -**albumThumbnailAssetId** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UpdateAssetDto.md b/mobile/openapi/doc/UpdateAssetDto.md deleted file mode 100644 index bc08c8175cc8fb..00000000000000 --- a/mobile/openapi/doc/UpdateAssetDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# openapi.model.UpdateAssetDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tagIds** | **List** | | [optional] [default to const []] -**isFavorite** | **bool** | | [optional] -**isArchived** | **bool** | | [optional] -**description** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UpdateTagDto.md b/mobile/openapi/doc/UpdateTagDto.md deleted file mode 100644 index 42aae30b5c2b6c..00000000000000 --- a/mobile/openapi/doc/UpdateTagDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.UpdateTagDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UpdateUserDto.md b/mobile/openapi/doc/UpdateUserDto.md deleted file mode 100644 index 6376c18b103e8d..00000000000000 --- a/mobile/openapi/doc/UpdateUserDto.md +++ /dev/null @@ -1,23 +0,0 @@ -# openapi.model.UpdateUserDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**email** | **String** | | [optional] -**password** | **String** | | [optional] -**firstName** | **String** | | [optional] -**lastName** | **String** | | [optional] -**storageLabel** | **String** | | [optional] -**externalPath** | **String** | | [optional] -**isAdmin** | **bool** | | [optional] -**shouldChangePassword** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UsageByUserDto.md b/mobile/openapi/doc/UsageByUserDto.md deleted file mode 100644 index 1d1bef885841c4..00000000000000 --- a/mobile/openapi/doc/UsageByUserDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# openapi.model.UsageByUserDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | -**userFirstName** | **String** | | -**userLastName** | **String** | | -**photos** | **int** | | -**videos** | **int** | | -**usage** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UserApi.md b/mobile/openapi/doc/UserApi.md deleted file mode 100644 index 4c7d2b69796e50..00000000000000 --- a/mobile/openapi/doc/UserApi.md +++ /dev/null @@ -1,555 +0,0 @@ -# openapi.api.UserApi - -## Load the API package -```dart -import 'package:openapi/api.dart'; -``` - -All URIs are relative to */api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createProfileImage**](UserApi.md#createprofileimage) | **POST** /user/profile-image | -[**createUser**](UserApi.md#createuser) | **POST** /user | -[**deleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{userId} | -[**getAllUsers**](UserApi.md#getallusers) | **GET** /user | -[**getMyUserInfo**](UserApi.md#getmyuserinfo) | **GET** /user/me | -[**getProfileImage**](UserApi.md#getprofileimage) | **GET** /user/profile-image/{userId} | -[**getUserById**](UserApi.md#getuserbyid) | **GET** /user/info/{userId} | -[**getUserCount**](UserApi.md#getusercount) | **GET** /user/count | -[**restoreUser**](UserApi.md#restoreuser) | **POST** /user/{userId}/restore | -[**updateUser**](UserApi.md#updateuser) | **PUT** /user | - - -# **createProfileImage** -> CreateProfileImageResponseDto createProfileImage(file) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final file = BINARY_DATA_HERE; // MultipartFile | - -try { - final result = api_instance.createProfileImage(file); - print(result); -} catch (e) { - print('Exception when calling UserApi->createProfileImage: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file** | **MultipartFile**| | - -### Return type - -[**CreateProfileImageResponseDto**](CreateProfileImageResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **createUser** -> UserResponseDto createUser(createUserDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final createUserDto = CreateUserDto(); // CreateUserDto | - -try { - final result = api_instance.createUser(createUserDto); - print(result); -} catch (e) { - print('Exception when calling UserApi->createUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **createUserDto** | [**CreateUserDto**](CreateUserDto.md)| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **deleteUser** -> UserResponseDto deleteUser(userId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.deleteUser(userId); - print(result); -} catch (e) { - print('Exception when calling UserApi->deleteUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **String**| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getAllUsers** -> List getAllUsers(isAll) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final isAll = true; // bool | - -try { - final result = api_instance.getAllUsers(isAll); - print(result); -} catch (e) { - print('Exception when calling UserApi->getAllUsers: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **isAll** | **bool**| | - -### Return type - -[**List**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getMyUserInfo** -> UserResponseDto getMyUserInfo() - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); - -try { - final result = api_instance.getMyUserInfo(); - print(result); -} catch (e) { - print('Exception when calling UserApi->getMyUserInfo: $e\n'); -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getProfileImage** -> Object getProfileImage(userId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getProfileImage(userId); - print(result); -} catch (e) { - print('Exception when calling UserApi->getProfileImage: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **String**| | - -### Return type - -[**Object**](Object.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getUserById** -> UserResponseDto getUserById(userId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.getUserById(userId); - print(result); -} catch (e) { - print('Exception when calling UserApi->getUserById: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **String**| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **getUserCount** -> UserCountResponseDto getUserCount(admin) - - - -### Example -```dart -import 'package:openapi/api.dart'; - -final api_instance = UserApi(); -final admin = true; // bool | - -try { - final result = api_instance.getUserCount(admin); - print(result); -} catch (e) { - print('Exception when calling UserApi->getUserCount: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **admin** | **bool**| | [optional] [default to false] - -### Return type - -[**UserCountResponseDto**](UserCountResponseDto.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **restoreUser** -> UserResponseDto restoreUser(userId) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | - -try { - final result = api_instance.restoreUser(userId); - print(result); -} catch (e) { - print('Exception when calling UserApi->restoreUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **String**| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **updateUser** -> UserResponseDto updateUser(updateUserDto) - - - -### Example -```dart -import 'package:openapi/api.dart'; -// TODO Configure API key authorization: cookie -//defaultApiClient.getAuthentication('cookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('cookie').apiKeyPrefix = 'Bearer'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; -// TODO Configure HTTP Bearer authorization: bearer -// Case 1. Use String Token -//defaultApiClient.getAuthentication('bearer').setAccessToken('YOUR_ACCESS_TOKEN'); -// Case 2. Use Function which generate token. -// String yourTokenGeneratorFunction() { ... } -//defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); - -final api_instance = UserApi(); -final updateUserDto = UpdateUserDto(); // UpdateUserDto | - -try { - final result = api_instance.updateUser(updateUserDto); - print(result); -} catch (e) { - print('Exception when calling UserApi->updateUser: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **updateUserDto** | [**UpdateUserDto**](UpdateUserDto.md)| | - -### Return type - -[**UserResponseDto**](UserResponseDto.md) - -### Authorization - -[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/mobile/openapi/doc/UserCountResponseDto.md b/mobile/openapi/doc/UserCountResponseDto.md deleted file mode 100644 index 65dab568662a91..00000000000000 --- a/mobile/openapi/doc/UserCountResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.UserCountResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userCount** | **int** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/UserResponseDto.md b/mobile/openapi/doc/UserResponseDto.md deleted file mode 100644 index 1c7557b96ea454..00000000000000 --- a/mobile/openapi/doc/UserResponseDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# openapi.model.UserResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**email** | **String** | | -**firstName** | **String** | | -**lastName** | **String** | | -**storageLabel** | **String** | | -**externalPath** | **String** | | -**profileImagePath** | **String** | | -**shouldChangePassword** | **bool** | | -**isAdmin** | **bool** | | -**createdAt** | [**DateTime**](DateTime.md) | | -**deletedAt** | [**DateTime**](DateTime.md) | | -**updatedAt** | [**DateTime**](DateTime.md) | | -**oauthId** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/doc/ValidateAccessTokenResponseDto.md b/mobile/openapi/doc/ValidateAccessTokenResponseDto.md deleted file mode 100644 index 60e1e02cbf90ab..00000000000000 --- a/mobile/openapi/doc/ValidateAccessTokenResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# openapi.model.ValidateAccessTokenResponseDto - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authStatus** | **bool** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/mobile/openapi/git_push.sh b/mobile/openapi/git_push.sh deleted file mode 100644 index f53a75d4fabe76..00000000000000 --- a/mobile/openapi/git_push.sh +++ /dev/null @@ -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' diff --git a/mobile/openapi/lib/api.dart b/mobile/openapi/lib/api.dart deleted file mode 100644 index 47cfa9aa2cef61..00000000000000 --- a/mobile/openapi/lib/api.dart +++ /dev/null @@ -1,155 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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:flutter/foundation.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_key_api.dart'; -part 'api/album_api.dart'; -part 'api/asset_api.dart'; -part 'api/authentication_api.dart'; -part 'api/job_api.dart'; -part 'api/o_auth_api.dart'; -part 'api/partner_api.dart'; -part 'api/person_api.dart'; -part 'api/search_api.dart'; -part 'api/server_info_api.dart'; -part 'api/shared_link_api.dart'; -part 'api/system_config_api.dart'; -part 'api/tag_api.dart'; -part 'api/user_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/add_assets_dto.dart'; -part 'model/add_assets_response_dto.dart'; -part 'model/add_users_dto.dart'; -part 'model/admin_signup_response_dto.dart'; -part 'model/album_count_response_dto.dart'; -part 'model/album_response_dto.dart'; -part 'model/all_job_status_response_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_count_by_time_bucket.dart'; -part 'model/asset_count_by_time_bucket_response_dto.dart'; -part 'model/asset_count_by_user_id_response_dto.dart'; -part 'model/asset_file_upload_response_dto.dart'; -part 'model/asset_ids_dto.dart'; -part 'model/asset_ids_response_dto.dart'; -part 'model/asset_response_dto.dart'; -part 'model/asset_type_enum.dart'; -part 'model/auth_device_response_dto.dart'; -part 'model/change_password_dto.dart'; -part 'model/check_duplicate_asset_dto.dart'; -part 'model/check_duplicate_asset_response_dto.dart'; -part 'model/check_existing_assets_dto.dart'; -part 'model/check_existing_assets_response_dto.dart'; -part 'model/create_album_dto.dart'; -part 'model/create_profile_image_response_dto.dart'; -part 'model/create_tag_dto.dart'; -part 'model/create_user_dto.dart'; -part 'model/curated_locations_response_dto.dart'; -part 'model/curated_objects_response_dto.dart'; -part 'model/delete_asset_dto.dart'; -part 'model/delete_asset_response_dto.dart'; -part 'model/delete_asset_status.dart'; -part 'model/download_archive_info.dart'; -part 'model/download_response_dto.dart'; -part 'model/exif_response_dto.dart'; -part 'model/get_asset_by_time_bucket_dto.dart'; -part 'model/get_asset_count_by_time_bucket_dto.dart'; -part 'model/import_asset_dto.dart'; -part 'model/job_command.dart'; -part 'model/job_command_dto.dart'; -part 'model/job_counts_dto.dart'; -part 'model/job_name.dart'; -part 'model/job_settings_dto.dart'; -part 'model/job_status_dto.dart'; -part 'model/login_credential_dto.dart'; -part 'model/login_response_dto.dart'; -part 'model/logout_response_dto.dart'; -part 'model/map_marker_response_dto.dart'; -part 'model/memory_lane_response_dto.dart'; -part 'model/o_auth_callback_dto.dart'; -part 'model/o_auth_config_dto.dart'; -part 'model/o_auth_config_response_dto.dart'; -part 'model/person_response_dto.dart'; -part 'model/person_update_dto.dart'; -part 'model/queue_status_dto.dart'; -part 'model/remove_assets_dto.dart'; -part 'model/search_album_response_dto.dart'; -part 'model/search_asset_dto.dart'; -part 'model/search_asset_response_dto.dart'; -part 'model/search_config_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/server_info_response_dto.dart'; -part 'model/server_ping_response.dart'; -part 'model/server_stats_response_dto.dart'; -part 'model/server_version_reponse_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/sign_up_dto.dart'; -part 'model/smart_info_response_dto.dart'; -part 'model/system_config_dto.dart'; -part 'model/system_config_f_fmpeg_dto.dart'; -part 'model/system_config_job_dto.dart'; -part 'model/system_config_o_auth_dto.dart'; -part 'model/system_config_password_login_dto.dart'; -part 'model/system_config_storage_template_dto.dart'; -part 'model/system_config_template_storage_option_dto.dart'; -part 'model/tag_response_dto.dart'; -part 'model/tag_type_enum.dart'; -part 'model/thumbnail_format.dart'; -part 'model/time_group_enum.dart'; -part 'model/update_album_dto.dart'; -part 'model/update_asset_dto.dart'; -part 'model/update_tag_dto.dart'; -part 'model/update_user_dto.dart'; -part 'model/usage_by_user_dto.dart'; -part 'model/user_count_response_dto.dart'; -part 'model/user_response_dto.dart'; -part 'model/validate_access_token_response_dto.dart'; - - -const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'}; -const _dateEpochMarker = 'epoch'; -final _dateFormatter = DateFormat('yyyy-MM-dd'); -final _regList = RegExp(r'^List<(.*)>$'); -final _regSet = RegExp(r'^Set<(.*)>$'); -final _regMap = RegExp(r'^Map$'); - -ApiClient defaultApiClient = ApiClient(); diff --git a/mobile/openapi/lib/api/album_api.dart b/mobile/openapi/lib/api/album_api.dart deleted file mode 100644 index 1f5bd7b58ed238..00000000000000 --- a/mobile/openapi/lib/api/album_api.dart +++ /dev/null @@ -1,526 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AlbumApi { - AlbumApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'PUT /album/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AddAssetsDto] addAssetsDto (required): - /// - /// * [String] key: - Future addAssetsToAlbumWithHttpInfo(String id, AddAssetsDto addAssetsDto, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = addAssetsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AddAssetsDto] addAssetsDto (required): - /// - /// * [String] key: - Future addAssetsToAlbum(String id, AddAssetsDto addAssetsDto, { String? key, }) async { - final response = await addAssetsToAlbumWithHttpInfo(id, addAssetsDto, key: key, ); - 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), 'AddAssetsResponseDto',) as AddAssetsResponseDto; - - } - return null; - } - - /// Performs an HTTP 'PUT /album/{id}/users' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AddUsersDto] addUsersDto (required): - Future addUsersToAlbumWithHttpInfo(String id, AddUsersDto addUsersDto,) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}/users' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = addUsersDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AddUsersDto] addUsersDto (required): - Future 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; - } - - /// Performs an HTTP 'POST /album' operation and returns the [Response]. - /// Parameters: - /// - /// * [CreateAlbumDto] createAlbumDto (required): - Future createAlbumWithHttpInfo(CreateAlbumDto createAlbumDto,) async { - // ignore: prefer_const_declarations - final path = r'/album'; - - // ignore: prefer_final_locals - Object? postBody = createAlbumDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [CreateAlbumDto] createAlbumDto (required): - Future 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; - } - - /// Performs an HTTP 'DELETE /album/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deleteAlbumWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deleteAlbum(String id,) async { - final response = await deleteAlbumWithHttpInfo(id,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'GET /album/count' operation and returns the [Response]. - Future getAlbumCountWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/album/count'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getAlbumCount() async { - final response = await getAlbumCountWithHttpInfo(); - 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), 'AlbumCountResponseDto',) as AlbumCountResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /album/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future getAlbumInfoWithHttpInfo(String id, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future getAlbumInfo(String id, { String? key, }) async { - final response = await getAlbumInfoWithHttpInfo(id, key: key, ); - 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; - } - - /// Performs an HTTP 'GET /album' operation and returns the [Response]. - /// Parameters: - /// - /// * [bool] shared: - /// - /// * [String] assetId: - /// Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums - Future getAllAlbumsWithHttpInfo({ bool? shared, String? assetId, }) async { - // ignore: prefer_const_declarations - final path = r'/album'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (shared != null) { - queryParams.addAll(_queryParams('', 'shared', shared)); - } - if (assetId != null) { - queryParams.addAll(_queryParams('', 'assetId', assetId)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [bool] shared: - /// - /// * [String] assetId: - /// Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums - Future?> getAllAlbums({ bool? shared, String? assetId, }) async { - final response = await getAllAlbumsWithHttpInfo( shared: shared, 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) { - final responseBody = await _decodeBodyBytes(response); - return (await apiClient.deserializeAsync(responseBody, 'List') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'DELETE /album/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [RemoveAssetsDto] removeAssetsDto (required): - Future removeAssetFromAlbumWithHttpInfo(String id, RemoveAssetsDto removeAssetsDto,) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = removeAssetsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [RemoveAssetsDto] removeAssetsDto (required): - Future removeAssetFromAlbum(String id, RemoveAssetsDto removeAssetsDto,) async { - final response = await removeAssetFromAlbumWithHttpInfo(id, removeAssetsDto,); - 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; - } - - /// Performs an HTTP 'DELETE /album/{id}/user/{userId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] userId (required): - Future removeUserFromAlbumWithHttpInfo(String id, String userId,) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}/user/{userId}' - .replaceAll('{id}', id) - .replaceAll('{userId}', userId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] userId (required): - Future removeUserFromAlbum(String id, String userId,) async { - final response = await removeUserFromAlbumWithHttpInfo(id, userId,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'PATCH /album/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateAlbumDto] updateAlbumDto (required): - Future updateAlbumInfoWithHttpInfo(String id, UpdateAlbumDto updateAlbumDto,) async { - // ignore: prefer_const_declarations - final path = r'/album/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = updateAlbumDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PATCH', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateAlbumDto] updateAlbumDto (required): - Future 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; - } -} diff --git a/mobile/openapi/lib/api/api_key_api.dart b/mobile/openapi/lib/api/api_key_api.dart deleted file mode 100644 index fb6cc9941d7c78..00000000000000 --- a/mobile/openapi/lib/api/api_key_api.dart +++ /dev/null @@ -1,249 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 APIKeyApi { - APIKeyApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /api-key' operation and returns the [Response]. - /// Parameters: - /// - /// * [APIKeyCreateDto] aPIKeyCreateDto (required): - Future createKeyWithHttpInfo(APIKeyCreateDto aPIKeyCreateDto,) async { - // ignore: prefer_const_declarations - final path = r'/api-key'; - - // ignore: prefer_final_locals - Object? postBody = aPIKeyCreateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [APIKeyCreateDto] aPIKeyCreateDto (required): - Future createKey(APIKeyCreateDto aPIKeyCreateDto,) async { - final response = await createKeyWithHttpInfo(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; - } - - /// Performs an HTTP 'DELETE /api-key/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deleteKeyWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/api-key/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deleteKey(String id,) async { - final response = await deleteKeyWithHttpInfo(id,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'GET /api-key/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getKeyWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/api-key/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future getKey(String id,) async { - final response = await getKeyWithHttpInfo(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; - } - - /// Performs an HTTP 'GET /api-key' operation and returns the [Response]. - Future getKeysWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/api-key'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getKeys() async { - final response = await getKeysWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'PUT /api-key/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [APIKeyUpdateDto] aPIKeyUpdateDto (required): - Future updateKeyWithHttpInfo(String id, APIKeyUpdateDto aPIKeyUpdateDto,) async { - // ignore: prefer_const_declarations - final path = r'/api-key/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = aPIKeyUpdateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [APIKeyUpdateDto] aPIKeyUpdateDto (required): - Future updateKey(String id, APIKeyUpdateDto aPIKeyUpdateDto,) async { - final response = await updateKeyWithHttpInfo(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; - } -} diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dart deleted file mode 100644 index 3cab0a975799bd..00000000000000 --- a/mobile/openapi/lib/api/asset_api.dart +++ /dev/null @@ -1,1537 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetApi { - AssetApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Checks if assets exist by checksums - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [AssetBulkUploadCheckDto] assetBulkUploadCheckDto (required): - Future bulkUploadCheckWithHttpInfo(AssetBulkUploadCheckDto assetBulkUploadCheckDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/bulk-upload-check'; - - // ignore: prefer_final_locals - Object? postBody = assetBulkUploadCheckDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Checks if assets exist by checksums - /// - /// Parameters: - /// - /// * [AssetBulkUploadCheckDto] assetBulkUploadCheckDto (required): - Future bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto,) async { - final response = await bulkUploadCheckWithHttpInfo(assetBulkUploadCheckDto,); - 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), 'AssetBulkUploadCheckResponseDto',) as AssetBulkUploadCheckResponseDto; - - } - return null; - } - - /// Check duplicated asset before uploading - for Web upload used - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [CheckDuplicateAssetDto] checkDuplicateAssetDto (required): - /// - /// * [String] key: - Future checkDuplicateAssetWithHttpInfo(CheckDuplicateAssetDto checkDuplicateAssetDto, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/check'; - - // ignore: prefer_final_locals - Object? postBody = checkDuplicateAssetDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Check duplicated asset before uploading - for Web upload used - /// - /// Parameters: - /// - /// * [CheckDuplicateAssetDto] checkDuplicateAssetDto (required): - /// - /// * [String] key: - Future checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String? key, }) async { - final response = await checkDuplicateAssetWithHttpInfo(checkDuplicateAssetDto, key: key, ); - 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), 'CheckDuplicateAssetResponseDto',) as CheckDuplicateAssetResponseDto; - - } - return null; - } - - /// Checks if multiple assets exist on the server and returns all existing - used by background backup - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [CheckExistingAssetsDto] checkExistingAssetsDto (required): - Future checkExistingAssetsWithHttpInfo(CheckExistingAssetsDto checkExistingAssetsDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/exist'; - - // ignore: prefer_final_locals - Object? postBody = checkExistingAssetsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Checks if multiple assets exist on the server and returns all existing - used by background backup - /// - /// Parameters: - /// - /// * [CheckExistingAssetsDto] checkExistingAssetsDto (required): - Future checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto,) async { - final response = await checkExistingAssetsWithHttpInfo(checkExistingAssetsDto,); - 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), 'CheckExistingAssetsResponseDto',) as CheckExistingAssetsResponseDto; - - } - return null; - } - - /// Performs an HTTP 'DELETE /asset' operation and returns the [Response]. - /// Parameters: - /// - /// * [DeleteAssetDto] deleteAssetDto (required): - Future deleteAssetWithHttpInfo(DeleteAssetDto deleteAssetDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset'; - - // ignore: prefer_final_locals - Object? postBody = deleteAssetDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [DeleteAssetDto] deleteAssetDto (required): - Future?> deleteAsset(DeleteAssetDto deleteAssetDto,) async { - final response = await deleteAssetWithHttpInfo(deleteAssetDto,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'POST /asset/download' operation and returns the [Response]. - /// Parameters: - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future downloadArchiveWithHttpInfo(AssetIdsDto assetIdsDto, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/download'; - - // ignore: prefer_final_locals - Object? postBody = assetIdsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future downloadArchive(AssetIdsDto assetIdsDto, { String? key, }) async { - final response = await downloadArchiveWithHttpInfo(assetIdsDto, key: key, ); - 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; - } - - /// Performs an HTTP 'POST /asset/download/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future downloadFileWithHttpInfo(String id, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/download/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future downloadFile(String id, { String? key, }) async { - final response = await downloadFileWithHttpInfo(id, key: key, ); - 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; - } - - /// Get all AssetEntity belong to the user - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [String] userId: - /// - /// * [bool] isFavorite: - /// - /// * [bool] isArchived: - /// - /// * [bool] withoutThumbs: - /// Include assets without thumbnails - /// - /// * [num] skip: - /// - /// * [String] ifNoneMatch: - /// ETag of data already cached on the client - Future getAllAssetsWithHttpInfo({ String? userId, bool? isFavorite, bool? isArchived, bool? withoutThumbs, num? skip, String? ifNoneMatch, }) async { - // ignore: prefer_const_declarations - final path = r'/asset'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (userId != null) { - queryParams.addAll(_queryParams('', 'userId', userId)); - } - if (isFavorite != null) { - queryParams.addAll(_queryParams('', 'isFavorite', isFavorite)); - } - if (isArchived != null) { - queryParams.addAll(_queryParams('', 'isArchived', isArchived)); - } - if (withoutThumbs != null) { - queryParams.addAll(_queryParams('', 'withoutThumbs', withoutThumbs)); - } - if (skip != null) { - queryParams.addAll(_queryParams('', 'skip', skip)); - } - - if (ifNoneMatch != null) { - headerParams[r'if-none-match'] = parameterToString(ifNoneMatch); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Get all AssetEntity belong to the user - /// - /// Parameters: - /// - /// * [String] userId: - /// - /// * [bool] isFavorite: - /// - /// * [bool] isArchived: - /// - /// * [bool] withoutThumbs: - /// Include assets without thumbnails - /// - /// * [num] skip: - /// - /// * [String] ifNoneMatch: - /// ETag of data already cached on the client - Future?> getAllAssets({ String? userId, bool? isFavorite, bool? isArchived, bool? withoutThumbs, num? skip, String? ifNoneMatch, }) async { - final response = await getAllAssetsWithHttpInfo( userId: userId, isFavorite: isFavorite, isArchived: isArchived, withoutThumbs: withoutThumbs, skip: skip, ifNoneMatch: ifNoneMatch, ); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/stat/archive' operation and returns the [Response]. - Future getArchivedAssetCountByUserIdWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/asset/stat/archive'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getArchivedAssetCountByUserId() async { - final response = await getArchivedAssetCountByUserIdWithHttpInfo(); - 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), 'AssetCountByUserIdResponseDto',) as AssetCountByUserIdResponseDto; - - } - return null; - } - - /// Get a single asset's information - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future getAssetByIdWithHttpInfo(String id, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/assetById/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Get a single asset's information - /// - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [String] key: - Future getAssetById(String id, { String? key, }) async { - final response = await getAssetByIdWithHttpInfo(id, key: key, ); - 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), 'AssetResponseDto',) as AssetResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /asset/time-bucket' operation and returns the [Response]. - /// Parameters: - /// - /// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required): - Future getAssetByTimeBucketWithHttpInfo(GetAssetByTimeBucketDto getAssetByTimeBucketDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/time-bucket'; - - // ignore: prefer_final_locals - Object? postBody = getAssetByTimeBucketDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required): - Future?> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto,) async { - final response = await getAssetByTimeBucketWithHttpInfo(getAssetByTimeBucketDto,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'POST /asset/count-by-time-bucket' operation and returns the [Response]. - /// Parameters: - /// - /// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required): - Future getAssetCountByTimeBucketWithHttpInfo(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/count-by-time-bucket'; - - // ignore: prefer_final_locals - Object? postBody = getAssetCountByTimeBucketDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required): - Future getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto,) async { - final response = await getAssetCountByTimeBucketWithHttpInfo(getAssetCountByTimeBucketDto,); - 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), 'AssetCountByTimeBucketResponseDto',) as AssetCountByTimeBucketResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /asset/count-by-user-id' operation and returns the [Response]. - Future getAssetCountByUserIdWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/asset/count-by-user-id'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getAssetCountByUserId() async { - final response = await getAssetCountByUserIdWithHttpInfo(); - 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), 'AssetCountByUserIdResponseDto',) as AssetCountByUserIdResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /asset/search-terms' operation and returns the [Response]. - Future getAssetSearchTermsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/asset/search-terms'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getAssetSearchTerms() async { - final response = await getAssetSearchTermsWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/thumbnail/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [ThumbnailFormat] format: - /// - /// * [String] key: - Future getAssetThumbnailWithHttpInfo(String id, { ThumbnailFormat? format, String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/thumbnail/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (format != null) { - queryParams.addAll(_queryParams('', 'format', format)); - } - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [ThumbnailFormat] format: - /// - /// * [String] key: - Future getAssetThumbnail(String id, { ThumbnailFormat? format, String? key, }) async { - final response = await getAssetThumbnailWithHttpInfo(id, format: format, key: key, ); - 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; - } - - /// Performs an HTTP 'GET /asset/curated-locations' operation and returns the [Response]. - Future getCuratedLocationsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/asset/curated-locations'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getCuratedLocations() async { - final response = await getCuratedLocationsWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/curated-objects' operation and returns the [Response]. - Future getCuratedObjectsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/asset/curated-objects'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getCuratedObjects() async { - final response = await getCuratedObjectsWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/download' operation and returns the [Response]. - /// Parameters: - /// - /// * [List] assetIds: - /// - /// * [String] albumId: - /// - /// * [String] userId: - /// - /// * [num] archiveSize: - /// - /// * [String] key: - Future getDownloadInfoWithHttpInfo({ List? assetIds, String? albumId, String? userId, num? archiveSize, String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/download'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (assetIds != null) { - queryParams.addAll(_queryParams('multi', 'assetIds', assetIds)); - } - if (albumId != null) { - queryParams.addAll(_queryParams('', 'albumId', albumId)); - } - if (userId != null) { - queryParams.addAll(_queryParams('', 'userId', userId)); - } - if (archiveSize != null) { - queryParams.addAll(_queryParams('', 'archiveSize', archiveSize)); - } - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [List] assetIds: - /// - /// * [String] albumId: - /// - /// * [String] userId: - /// - /// * [num] archiveSize: - /// - /// * [String] key: - Future getDownloadInfo({ List? assetIds, String? albumId, String? userId, num? archiveSize, String? key, }) async { - final response = await getDownloadInfoWithHttpInfo( assetIds: assetIds, albumId: albumId, userId: userId, archiveSize: archiveSize, key: key, ); - 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; - } - - /// Performs an HTTP 'GET /asset/map-marker' operation and returns the [Response]. - /// Parameters: - /// - /// * [bool] isFavorite: - /// - /// * [DateTime] fileCreatedAfter: - /// - /// * [DateTime] fileCreatedBefore: - Future getMapMarkersWithHttpInfo({ bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/map-marker'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (isFavorite != null) { - queryParams.addAll(_queryParams('', 'isFavorite', isFavorite)); - } - if (fileCreatedAfter != null) { - queryParams.addAll(_queryParams('', 'fileCreatedAfter', fileCreatedAfter)); - } - if (fileCreatedBefore != null) { - queryParams.addAll(_queryParams('', 'fileCreatedBefore', fileCreatedBefore)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [bool] isFavorite: - /// - /// * [DateTime] fileCreatedAfter: - /// - /// * [DateTime] fileCreatedBefore: - Future?> getMapMarkers({ bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async { - final response = await getMapMarkersWithHttpInfo( isFavorite: isFavorite, fileCreatedAfter: fileCreatedAfter, fileCreatedBefore: fileCreatedBefore, ); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/memory-lane' operation and returns the [Response]. - /// Parameters: - /// - /// * [DateTime] timestamp (required): - /// Get pictures for +24 hours from this time going back x years - Future getMemoryLaneWithHttpInfo(DateTime timestamp,) async { - // ignore: prefer_const_declarations - final path = r'/asset/memory-lane'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - queryParams.addAll(_queryParams('', 'timestamp', timestamp)); - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [DateTime] timestamp (required): - /// Get pictures for +24 hours from this time going back x years - Future?> getMemoryLane(DateTime timestamp,) async { - final response = await getMemoryLaneWithHttpInfo(timestamp,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Get all asset of a device that are in the database, ID only. - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [String] deviceId (required): - Future getUserAssetsByDeviceIdWithHttpInfo(String deviceId,) async { - // ignore: prefer_const_declarations - final path = r'/asset/{deviceId}' - .replaceAll('{deviceId}', deviceId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Get all asset of a device that are in the database, ID only. - /// - /// Parameters: - /// - /// * [String] deviceId (required): - Future?> getUserAssetsByDeviceId(String deviceId,) async { - final response = await getUserAssetsByDeviceIdWithHttpInfo(deviceId,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'POST /asset/import' operation and returns the [Response]. - /// Parameters: - /// - /// * [ImportAssetDto] importAssetDto (required): - Future importFileWithHttpInfo(ImportAssetDto importAssetDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/import'; - - // ignore: prefer_final_locals - Object? postBody = importAssetDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ImportAssetDto] importAssetDto (required): - Future importFile(ImportAssetDto importAssetDto,) async { - final response = await importFileWithHttpInfo(importAssetDto,); - 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), 'AssetFileUploadResponseDto',) as AssetFileUploadResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /asset/search' operation and returns the [Response]. - /// Parameters: - /// - /// * [SearchAssetDto] searchAssetDto (required): - Future searchAssetWithHttpInfo(SearchAssetDto searchAssetDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/search'; - - // ignore: prefer_final_locals - Object? postBody = searchAssetDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [SearchAssetDto] searchAssetDto (required): - Future?> searchAsset(SearchAssetDto searchAssetDto,) async { - final response = await searchAssetWithHttpInfo(searchAssetDto,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /asset/file/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [bool] isThumb: - /// - /// * [bool] isWeb: - /// - /// * [String] key: - Future serveFileWithHttpInfo(String id, { bool? isThumb, bool? isWeb, String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/file/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (isThumb != null) { - queryParams.addAll(_queryParams('', 'isThumb', isThumb)); - } - if (isWeb != null) { - queryParams.addAll(_queryParams('', 'isWeb', isWeb)); - } - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [bool] isThumb: - /// - /// * [bool] isWeb: - /// - /// * [String] key: - Future serveFile(String id, { bool? isThumb, bool? isWeb, String? key, }) async { - final response = await serveFileWithHttpInfo(id, isThumb: isThumb, isWeb: isWeb, key: key, ); - 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; - } - - /// Update an asset - /// - /// Note: This method returns the HTTP [Response]. - /// - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateAssetDto] updateAssetDto (required): - Future updateAssetWithHttpInfo(String id, UpdateAssetDto updateAssetDto,) async { - // ignore: prefer_const_declarations - final path = r'/asset/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = updateAssetDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Update an asset - /// - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateAssetDto] updateAssetDto (required): - Future updateAsset(String id, UpdateAssetDto updateAssetDto,) async { - final response = await updateAssetWithHttpInfo(id, updateAssetDto,); - 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), 'AssetResponseDto',) as AssetResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /asset/upload' operation and returns the [Response]. - /// Parameters: - /// - /// * [AssetTypeEnum] assetType (required): - /// - /// * [MultipartFile] assetData (required): - /// - /// * [String] fileExtension (required): - /// - /// * [String] deviceAssetId (required): - /// - /// * [String] deviceId (required): - /// - /// * [DateTime] fileCreatedAt (required): - /// - /// * [DateTime] fileModifiedAt (required): - /// - /// * [bool] isFavorite (required): - /// - /// * [bool] isPanorama (required): - /// - /// * [String] key: - /// - /// * [MultipartFile] livePhotoData: - /// - /// * [MultipartFile] sidecarData: - /// - /// * [bool] isReadOnly: - /// - /// * [bool] isArchived: - /// - /// * [bool] isVisible: - /// - /// * [String] duration: - Future uploadFileWithHttpInfo(AssetTypeEnum assetType, MultipartFile assetData, String fileExtension, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, bool isFavorite, bool isPanorama, { String? key, MultipartFile? livePhotoData, MultipartFile? sidecarData, bool? isReadOnly, bool? isArchived, bool? isVisible, String? duration, }) async { - // ignore: prefer_const_declarations - final path = r'/asset/upload'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['multipart/form-data']; - - bool hasFields = false; - final mp = MultipartRequest('POST', Uri.parse(path)); - if (assetType != null) { - hasFields = true; - mp.fields[r'assetType'] = parameterToString(assetType); - } - if (assetData != null) { - hasFields = true; - mp.fields[r'assetData'] = assetData.field; - mp.files.add(assetData); - } - if (livePhotoData != null) { - hasFields = true; - mp.fields[r'livePhotoData'] = livePhotoData.field; - mp.files.add(livePhotoData); - } - if (sidecarData != null) { - hasFields = true; - mp.fields[r'sidecarData'] = sidecarData.field; - mp.files.add(sidecarData); - } - if (isReadOnly != null) { - hasFields = true; - mp.fields[r'isReadOnly'] = parameterToString(isReadOnly); - } - if (fileExtension != null) { - hasFields = true; - mp.fields[r'fileExtension'] = parameterToString(fileExtension); - } - if (deviceAssetId != null) { - hasFields = true; - mp.fields[r'deviceAssetId'] = parameterToString(deviceAssetId); - } - if (deviceId != null) { - hasFields = true; - mp.fields[r'deviceId'] = parameterToString(deviceId); - } - if (fileCreatedAt != null) { - hasFields = true; - mp.fields[r'fileCreatedAt'] = parameterToString(fileCreatedAt); - } - if (fileModifiedAt != null) { - hasFields = true; - mp.fields[r'fileModifiedAt'] = parameterToString(fileModifiedAt); - } - if (isFavorite != null) { - hasFields = true; - mp.fields[r'isFavorite'] = parameterToString(isFavorite); - } - if (isPanorama != null) { - hasFields = true; - mp.fields[r'isPanorama'] = parameterToString(isPanorama); - } - if (isArchived != null) { - hasFields = true; - mp.fields[r'isArchived'] = parameterToString(isArchived); - } - if (isVisible != null) { - hasFields = true; - mp.fields[r'isVisible'] = parameterToString(isVisible); - } - if (duration != null) { - hasFields = true; - mp.fields[r'duration'] = parameterToString(duration); - } - if (hasFields) { - postBody = mp; - } - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [AssetTypeEnum] assetType (required): - /// - /// * [MultipartFile] assetData (required): - /// - /// * [String] fileExtension (required): - /// - /// * [String] deviceAssetId (required): - /// - /// * [String] deviceId (required): - /// - /// * [DateTime] fileCreatedAt (required): - /// - /// * [DateTime] fileModifiedAt (required): - /// - /// * [bool] isFavorite (required): - /// - /// * [bool] isPanorama (required): - /// - /// * [String] key: - /// - /// * [MultipartFile] livePhotoData: - /// - /// * [MultipartFile] sidecarData: - /// - /// * [bool] isReadOnly: - /// - /// * [bool] isArchived: - /// - /// * [bool] isVisible: - /// - /// * [String] duration: - Future uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String fileExtension, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, bool isFavorite, bool isPanorama, { String? key, MultipartFile? livePhotoData, MultipartFile? sidecarData, bool? isReadOnly, bool? isArchived, bool? isVisible, String? duration, }) async { - final response = await uploadFileWithHttpInfo(assetType, assetData, fileExtension, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, isPanorama, key: key, livePhotoData: livePhotoData, sidecarData: sidecarData, isReadOnly: isReadOnly, isArchived: isArchived, isVisible: isVisible, duration: duration, ); - 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), 'AssetFileUploadResponseDto',) as AssetFileUploadResponseDto; - - } - return null; - } -} diff --git a/mobile/openapi/lib/api/authentication_api.dart b/mobile/openapi/lib/api/authentication_api.dart deleted file mode 100644 index 5035d51558e5d4..00000000000000 --- a/mobile/openapi/lib/api/authentication_api.dart +++ /dev/null @@ -1,358 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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; - - /// Performs an HTTP 'POST /auth/admin-sign-up' operation and returns the [Response]. - /// Parameters: - /// - /// * [SignUpDto] signUpDto (required): - Future adminSignUpWithHttpInfo(SignUpDto signUpDto,) async { - // ignore: prefer_const_declarations - final path = r'/auth/admin-sign-up'; - - // ignore: prefer_final_locals - Object? postBody = signUpDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [SignUpDto] signUpDto (required): - Future adminSignUp(SignUpDto signUpDto,) async { - final response = await adminSignUpWithHttpInfo(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), 'AdminSignupResponseDto',) as AdminSignupResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /auth/change-password' operation and returns the [Response]. - /// Parameters: - /// - /// * [ChangePasswordDto] changePasswordDto (required): - Future changePasswordWithHttpInfo(ChangePasswordDto changePasswordDto,) async { - // ignore: prefer_const_declarations - final path = r'/auth/change-password'; - - // ignore: prefer_final_locals - Object? postBody = changePasswordDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [ChangePasswordDto] changePasswordDto (required): - Future 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), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /auth/devices' operation and returns the [Response]. - Future getAuthDevicesWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/auth/devices'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getAuthDevices() async { - final response = await getAuthDevicesWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'POST /auth/login' operation and returns the [Response]. - /// Parameters: - /// - /// * [LoginCredentialDto] loginCredentialDto (required): - Future loginWithHttpInfo(LoginCredentialDto loginCredentialDto,) async { - // ignore: prefer_const_declarations - final path = r'/auth/login'; - - // ignore: prefer_final_locals - Object? postBody = loginCredentialDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [LoginCredentialDto] loginCredentialDto (required): - Future 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 logoutWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/auth/logout'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } - - /// Performs an HTTP 'DELETE /auth/devices/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future logoutAuthDeviceWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/auth/devices/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future logoutAuthDevice(String id,) async { - final response = await logoutAuthDeviceWithHttpInfo(id,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'DELETE /auth/devices' operation and returns the [Response]. - Future logoutAuthDevicesWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/auth/devices'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future logoutAuthDevices() async { - final response = await logoutAuthDevicesWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'POST /auth/validateToken' operation and returns the [Response]. - Future validateAccessTokenWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/auth/validateToken'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } -} diff --git a/mobile/openapi/lib/api/job_api.dart b/mobile/openapi/lib/api/job_api.dart deleted file mode 100644 index 6e1aa3c1921849..00000000000000 --- a/mobile/openapi/lib/api/job_api.dart +++ /dev/null @@ -1,111 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobApi { - JobApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'GET /jobs' operation and returns the [Response]. - Future getAllJobsStatusWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/jobs'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } - - /// Performs an HTTP 'PUT /jobs/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [JobName] id (required): - /// - /// * [JobCommandDto] jobCommandDto (required): - Future sendJobCommandWithHttpInfo(JobName id, JobCommandDto jobCommandDto,) async { - // ignore: prefer_const_declarations - final path = r'/jobs/{id}' - .replaceAll('{id}', id.toString()); - - // ignore: prefer_final_locals - Object? postBody = jobCommandDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [JobName] id (required): - /// - /// * [JobCommandDto] jobCommandDto (required): - Future 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; - } -} diff --git a/mobile/openapi/lib/api/o_auth_api.dart b/mobile/openapi/lib/api/o_auth_api.dart deleted file mode 100644 index b8778596a7148e..00000000000000 --- a/mobile/openapi/lib/api/o_auth_api.dart +++ /dev/null @@ -1,233 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 callbackWithHttpInfo(OAuthCallbackDto oAuthCallbackDto,) async { - // ignore: prefer_const_declarations - final path = r'/oauth/callback'; - - // ignore: prefer_final_locals - Object? postBody = oAuthCallbackDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [OAuthCallbackDto] oAuthCallbackDto (required): - Future callback(OAuthCallbackDto oAuthCallbackDto,) async { - final response = await callbackWithHttpInfo(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/config' operation and returns the [Response]. - /// Parameters: - /// - /// * [OAuthConfigDto] oAuthConfigDto (required): - Future generateConfigWithHttpInfo(OAuthConfigDto oAuthConfigDto,) async { - // ignore: prefer_const_declarations - final path = r'/oauth/config'; - - // ignore: prefer_final_locals - Object? postBody = oAuthConfigDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [OAuthConfigDto] oAuthConfigDto (required): - Future generateConfig(OAuthConfigDto oAuthConfigDto,) async { - final response = await generateConfigWithHttpInfo(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), 'OAuthConfigResponseDto',) as OAuthConfigResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /oauth/link' operation and returns the [Response]. - /// Parameters: - /// - /// * [OAuthCallbackDto] oAuthCallbackDto (required): - Future linkWithHttpInfo(OAuthCallbackDto oAuthCallbackDto,) async { - // ignore: prefer_const_declarations - final path = r'/oauth/link'; - - // ignore: prefer_final_locals - Object? postBody = oAuthCallbackDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [OAuthCallbackDto] oAuthCallbackDto (required): - Future link(OAuthCallbackDto oAuthCallbackDto,) async { - final response = await linkWithHttpInfo(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), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /oauth/mobile-redirect' operation and returns the [Response]. - Future mobileRedirectWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/oauth/mobile-redirect'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future mobileRedirect() async { - final response = await mobileRedirectWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'POST /oauth/unlink' operation and returns the [Response]. - Future unlinkWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/oauth/unlink'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future unlink() async { - final response = await unlinkWithHttpInfo(); - 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; - } -} diff --git a/mobile/openapi/lib/api/partner_api.dart b/mobile/openapi/lib/api/partner_api.dart deleted file mode 100644 index cf374aafe50dc0..00000000000000 --- a/mobile/openapi/lib/api/partner_api.dart +++ /dev/null @@ -1,158 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 PartnerApi { - PartnerApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /partner/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future createPartnerWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/partner/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /partner' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] direction (required): - Future getPartnersWithHttpInfo(String direction,) async { - // ignore: prefer_const_declarations - final path = r'/partner'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - queryParams.addAll(_queryParams('', 'direction', direction)); - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] direction (required): - Future?> getPartners(String 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'DELETE /partner/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future removePartnerWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/partner/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future removePartner(String id,) async { - final response = await removePartnerWithHttpInfo(id,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } -} diff --git a/mobile/openapi/lib/api/person_api.dart b/mobile/openapi/lib/api/person_api.dart deleted file mode 100644 index 37f8bf8a307358..00000000000000 --- a/mobile/openapi/lib/api/person_api.dart +++ /dev/null @@ -1,261 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 PersonApi { - PersonApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'GET /person' operation and returns the [Response]. - Future getAllPeopleWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/person'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getAllPeople() async { - final response = await getAllPeopleWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /person/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getPersonWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/person/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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; - } - - /// Performs an HTTP 'GET /person/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getPersonAssetsWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/person/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future?> getPersonAssets(String id,) async { - final response = await getPersonAssetsWithHttpInfo(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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /person/{id}/thumbnail' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getPersonThumbnailWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/person/{id}/thumbnail' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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; - } - - /// Performs an HTTP 'PUT /person/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [PersonUpdateDto] personUpdateDto (required): - Future updatePersonWithHttpInfo(String id, PersonUpdateDto personUpdateDto,) async { - // ignore: prefer_const_declarations - final path = r'/person/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = personUpdateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [PersonUpdateDto] personUpdateDto (required): - Future 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; - } -} diff --git a/mobile/openapi/lib/api/search_api.dart b/mobile/openapi/lib/api/search_api.dart deleted file mode 100644 index 9df6c79d07e2a5..00000000000000 --- a/mobile/openapi/lib/api/search_api.dart +++ /dev/null @@ -1,252 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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; - - /// Performs an HTTP 'GET /search/explore' operation and returns the [Response]. - Future getExploreDataWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/search/explore'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /search/config' operation and returns the [Response]. - Future getSearchConfigWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/search/config'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getSearchConfig() async { - final response = await getSearchConfigWithHttpInfo(); - 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), 'SearchConfigResponseDto',) as SearchConfigResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /search' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] q: - /// - /// * [String] query: - /// - /// * [bool] clip: - /// - /// * [String] type: - /// - /// * [bool] isFavorite: - /// - /// * [bool] isArchived: - /// - /// * [String] exifInfoPeriodCity: - /// - /// * [String] exifInfoPeriodState: - /// - /// * [String] exifInfoPeriodCountry: - /// - /// * [String] exifInfoPeriodMake: - /// - /// * [String] exifInfoPeriodModel: - /// - /// * [List] smartInfoPeriodObjects: - /// - /// * [List] smartInfoPeriodTags: - /// - /// * [bool] recent: - /// - /// * [bool] motion: - Future searchWithHttpInfo({ String? q, String? query, bool? clip, String? type, bool? isFavorite, bool? isArchived, String? exifInfoPeriodCity, String? exifInfoPeriodState, String? exifInfoPeriodCountry, String? exifInfoPeriodMake, String? exifInfoPeriodModel, List? smartInfoPeriodObjects, List? smartInfoPeriodTags, bool? recent, bool? motion, }) async { - // ignore: prefer_const_declarations - final path = r'/search'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (q != null) { - queryParams.addAll(_queryParams('', 'q', q)); - } - if (query != null) { - queryParams.addAll(_queryParams('', 'query', query)); - } - if (clip != null) { - queryParams.addAll(_queryParams('', 'clip', clip)); - } - if (type != null) { - queryParams.addAll(_queryParams('', 'type', type)); - } - if (isFavorite != null) { - queryParams.addAll(_queryParams('', 'isFavorite', isFavorite)); - } - if (isArchived != null) { - queryParams.addAll(_queryParams('', 'isArchived', isArchived)); - } - if (exifInfoPeriodCity != null) { - queryParams.addAll(_queryParams('', 'exifInfo.city', exifInfoPeriodCity)); - } - if (exifInfoPeriodState != null) { - queryParams.addAll(_queryParams('', 'exifInfo.state', exifInfoPeriodState)); - } - if (exifInfoPeriodCountry != null) { - queryParams.addAll(_queryParams('', 'exifInfo.country', exifInfoPeriodCountry)); - } - if (exifInfoPeriodMake != null) { - queryParams.addAll(_queryParams('', 'exifInfo.make', exifInfoPeriodMake)); - } - if (exifInfoPeriodModel != null) { - queryParams.addAll(_queryParams('', 'exifInfo.model', exifInfoPeriodModel)); - } - if (smartInfoPeriodObjects != null) { - queryParams.addAll(_queryParams('multi', 'smartInfo.objects', smartInfoPeriodObjects)); - } - if (smartInfoPeriodTags != null) { - queryParams.addAll(_queryParams('multi', 'smartInfo.tags', smartInfoPeriodTags)); - } - if (recent != null) { - queryParams.addAll(_queryParams('', 'recent', recent)); - } - if (motion != null) { - queryParams.addAll(_queryParams('', 'motion', motion)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] q: - /// - /// * [String] query: - /// - /// * [bool] clip: - /// - /// * [String] type: - /// - /// * [bool] isFavorite: - /// - /// * [bool] isArchived: - /// - /// * [String] exifInfoPeriodCity: - /// - /// * [String] exifInfoPeriodState: - /// - /// * [String] exifInfoPeriodCountry: - /// - /// * [String] exifInfoPeriodMake: - /// - /// * [String] exifInfoPeriodModel: - /// - /// * [List] smartInfoPeriodObjects: - /// - /// * [List] smartInfoPeriodTags: - /// - /// * [bool] recent: - /// - /// * [bool] motion: - Future search({ String? q, String? query, bool? clip, String? type, bool? isFavorite, bool? isArchived, String? exifInfoPeriodCity, String? exifInfoPeriodState, String? exifInfoPeriodCountry, String? exifInfoPeriodMake, String? exifInfoPeriodModel, List? smartInfoPeriodObjects, List? smartInfoPeriodTags, bool? recent, bool? motion, }) async { - final response = await searchWithHttpInfo( q: q, query: query, clip: clip, type: type, isFavorite: isFavorite, isArchived: isArchived, exifInfoPeriodCity: exifInfoPeriodCity, exifInfoPeriodState: exifInfoPeriodState, exifInfoPeriodCountry: exifInfoPeriodCountry, exifInfoPeriodMake: exifInfoPeriodMake, exifInfoPeriodModel: exifInfoPeriodModel, smartInfoPeriodObjects: smartInfoPeriodObjects, smartInfoPeriodTags: smartInfoPeriodTags, recent: recent, motion: motion, ); - 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; - } -} diff --git a/mobile/openapi/lib/api/server_info_api.dart b/mobile/openapi/lib/api/server_info_api.dart deleted file mode 100644 index 8cc3460c9b6111..00000000000000 --- a/mobile/openapi/lib/api/server_info_api.dart +++ /dev/null @@ -1,182 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ServerInfoApi { - ServerInfoApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'GET /server-info' operation and returns the [Response]. - Future getServerInfoWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/server-info'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getServerInfo() async { - final response = await getServerInfoWithHttpInfo(); - 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), 'ServerInfoResponseDto',) as ServerInfoResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /server-info/version' operation and returns the [Response]. - Future getServerVersionWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/server-info/version'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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), 'ServerVersionReponseDto',) as ServerVersionReponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /server-info/stats' operation and returns the [Response]. - Future getStatsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/server-info/stats'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getStats() async { - final response = await getStatsWithHttpInfo(); - 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-info/ping' operation and returns the [Response]. - Future pingServerWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/server-info/ping'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } -} diff --git a/mobile/openapi/lib/api/shared_link_api.dart b/mobile/openapi/lib/api/shared_link_api.dart deleted file mode 100644 index 029f7bc8a73464..00000000000000 --- a/mobile/openapi/lib/api/shared_link_api.dart +++ /dev/null @@ -1,426 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SharedLinkApi { - SharedLinkApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'PUT /shared-link/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future addSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = assetIdsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future?> addSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String? key, }) async { - final response = await addSharedLinkAssetsWithHttpInfo(id, assetIdsDto, key: key, ); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'POST /shared-link' operation and returns the [Response]. - /// Parameters: - /// - /// * [SharedLinkCreateDto] sharedLinkCreateDto (required): - Future createSharedLinkWithHttpInfo(SharedLinkCreateDto sharedLinkCreateDto,) async { - // ignore: prefer_const_declarations - final path = r'/shared-link'; - - // ignore: prefer_final_locals - Object? postBody = sharedLinkCreateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [SharedLinkCreateDto] sharedLinkCreateDto (required): - Future 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; - } - - /// Performs an HTTP 'GET /shared-link' operation and returns the [Response]. - Future getAllSharedLinksWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/shared-link'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> getAllSharedLinks() async { - final response = await getAllSharedLinksWithHttpInfo(); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /shared-link/me' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] key: - Future getMySharedLinkWithHttpInfo({ String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/me'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] key: - Future getMySharedLink({ String? key, }) async { - final response = await getMySharedLinkWithHttpInfo( key: key, ); - 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; - } - - /// Performs an HTTP 'GET /shared-link/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getSharedLinkByIdWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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; - } - - /// Performs an HTTP 'DELETE /shared-link/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future removeSharedLinkWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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-link/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future removeSharedLinkAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto, { String? key, }) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = assetIdsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (key != null) { - queryParams.addAll(_queryParams('', 'key', key)); - } - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - /// - /// * [String] key: - Future?> removeSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String? key, }) async { - final response = await removeSharedLinkAssetsWithHttpInfo(id, assetIdsDto, key: key, ); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'PATCH /shared-link/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [SharedLinkEditDto] sharedLinkEditDto (required): - Future updateSharedLinkWithHttpInfo(String id, SharedLinkEditDto sharedLinkEditDto,) async { - // ignore: prefer_const_declarations - final path = r'/shared-link/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = sharedLinkEditDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PATCH', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [SharedLinkEditDto] sharedLinkEditDto (required): - Future 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; - } -} diff --git a/mobile/openapi/lib/api/system_config_api.dart b/mobile/openapi/lib/api/system_config_api.dart deleted file mode 100644 index d2d0ac5ba50fbb..00000000000000 --- a/mobile/openapi/lib/api/system_config_api.dart +++ /dev/null @@ -1,188 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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; - - /// Performs an HTTP 'GET /system-config' operation and returns the [Response]. - Future getConfigWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/system-config'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } - - /// Performs an HTTP 'GET /system-config/defaults' operation and returns the [Response]. - Future getDefaultsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/system-config/defaults'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getDefaults() async { - final response = await getDefaultsWithHttpInfo(); - 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; - } - - /// Performs an HTTP 'GET /system-config/storage-template-options' operation and returns the [Response]. - Future getStorageTemplateOptionsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/system-config/storage-template-options'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future 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; - } - - /// Performs an HTTP 'PUT /system-config' operation and returns the [Response]. - /// Parameters: - /// - /// * [SystemConfigDto] systemConfigDto (required): - Future updateConfigWithHttpInfo(SystemConfigDto systemConfigDto,) async { - // ignore: prefer_const_declarations - final path = r'/system-config'; - - // ignore: prefer_final_locals - Object? postBody = systemConfigDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [SystemConfigDto] systemConfigDto (required): - Future 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; - } -} diff --git a/mobile/openapi/lib/api/tag_api.dart b/mobile/openapi/lib/api/tag_api.dart deleted file mode 100644 index e420792ca4ebcd..00000000000000 --- a/mobile/openapi/lib/api/tag_api.dart +++ /dev/null @@ -1,410 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 TagApi { - TagApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /tag' operation and returns the [Response]. - /// Parameters: - /// - /// * [CreateTagDto] createTagDto (required): - Future createTagWithHttpInfo(CreateTagDto createTagDto,) async { - // ignore: prefer_const_declarations - final path = r'/tag'; - - // ignore: prefer_final_locals - Object? postBody = createTagDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [CreateTagDto] createTagDto (required): - Future createTag(CreateTagDto createTagDto,) async { - final response = await createTagWithHttpInfo(createTagDto,); - 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; - } - - /// Performs an HTTP 'DELETE /tag/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future deleteTagWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future deleteTag(String id,) async { - final response = await deleteTagWithHttpInfo(id,); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'GET /tag' operation and returns the [Response]. - Future getAllTagsWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/tag'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /tag/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getTagAssetsWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future?> getTagAssets(String id,) async { - final response = await getTagAssetsWithHttpInfo(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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /tag/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getTagByIdWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future 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; - } - - /// Performs an HTTP 'PUT /tag/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - Future tagAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = assetIdsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - Future?> tagAssets(String id, AssetIdsDto assetIdsDto,) async { - final response = await tagAssetsWithHttpInfo(id, assetIdsDto,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'DELETE /tag/{id}/assets' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - Future untagAssetsWithHttpInfo(String id, AssetIdsDto assetIdsDto,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}/assets' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = assetIdsDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [AssetIdsDto] assetIdsDto (required): - Future?> untagAssets(String id, AssetIdsDto assetIdsDto,) async { - final response = await untagAssetsWithHttpInfo(id, assetIdsDto,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'PATCH /tag/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateTagDto] updateTagDto (required): - Future updateTagWithHttpInfo(String id, UpdateTagDto updateTagDto,) async { - // ignore: prefer_const_declarations - final path = r'/tag/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = updateTagDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PATCH', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UpdateTagDto] updateTagDto (required): - Future updateTag(String id, UpdateTagDto updateTagDto,) async { - final response = await updateTagWithHttpInfo(id, updateTagDto,); - 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; - } -} diff --git a/mobile/openapi/lib/api/user_api.dart b/mobile/openapi/lib/api/user_api.dart deleted file mode 100644 index f187652ac24375..00000000000000 --- a/mobile/openapi/lib/api/user_api.dart +++ /dev/null @@ -1,505 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UserApi { - UserApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /user/profile-image' operation and returns the [Response]. - /// Parameters: - /// - /// * [MultipartFile] file (required): - Future createProfileImageWithHttpInfo(MultipartFile file,) async { - // ignore: prefer_const_declarations - final path = r'/user/profile-image'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['multipart/form-data']; - - bool hasFields = false; - final mp = MultipartRequest('POST', Uri.parse(path)); - if (file != null) { - hasFields = true; - mp.fields[r'file'] = file.field; - mp.files.add(file); - } - if (hasFields) { - postBody = mp; - } - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [MultipartFile] file (required): - Future 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; - } - - /// Performs an HTTP 'POST /user' operation and returns the [Response]. - /// Parameters: - /// - /// * [CreateUserDto] createUserDto (required): - Future createUserWithHttpInfo(CreateUserDto createUserDto,) async { - // ignore: prefer_const_declarations - final path = r'/user'; - - // ignore: prefer_final_locals - Object? postBody = createUserDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [CreateUserDto] createUserDto (required): - Future createUser(CreateUserDto createUserDto,) async { - final response = await createUserWithHttpInfo(createUserDto,); - 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; - } - - /// Performs an HTTP 'DELETE /user/{userId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] userId (required): - Future deleteUserWithHttpInfo(String userId,) async { - // ignore: prefer_const_declarations - final path = r'/user/{userId}' - .replaceAll('{userId}', userId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] userId (required): - Future deleteUser(String userId,) async { - final response = await deleteUserWithHttpInfo(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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /user' operation and returns the [Response]. - /// Parameters: - /// - /// * [bool] isAll (required): - Future getAllUsersWithHttpInfo(bool isAll,) async { - // ignore: prefer_const_declarations - final path = r'/user'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - queryParams.addAll(_queryParams('', 'isAll', isAll)); - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [bool] isAll (required): - Future?> getAllUsers(bool isAll,) async { - final response = await getAllUsersWithHttpInfo(isAll,); - 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') as List) - .cast() - .toList(); - - } - return null; - } - - /// Performs an HTTP 'GET /user/me' operation and returns the [Response]. - Future getMyUserInfoWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/user/me'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getMyUserInfo() async { - final response = await getMyUserInfoWithHttpInfo(); - 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; - } - - /// Performs an HTTP 'GET /user/profile-image/{userId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] userId (required): - Future getProfileImageWithHttpInfo(String userId,) async { - // ignore: prefer_const_declarations - final path = r'/user/profile-image/{userId}' - .replaceAll('{userId}', userId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] userId (required): - Future getProfileImage(String userId,) async { - final response = await getProfileImageWithHttpInfo(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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'Object',) as Object; - - } - return null; - } - - /// Performs an HTTP 'GET /user/info/{userId}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] userId (required): - Future getUserByIdWithHttpInfo(String userId,) async { - // ignore: prefer_const_declarations - final path = r'/user/info/{userId}' - .replaceAll('{userId}', userId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] userId (required): - Future getUserById(String userId,) async { - final response = await getUserByIdWithHttpInfo(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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /user/count' operation and returns the [Response]. - /// Parameters: - /// - /// * [bool] admin: - Future getUserCountWithHttpInfo({ bool? admin, }) async { - // ignore: prefer_const_declarations - final path = r'/user/count'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (admin != null) { - queryParams.addAll(_queryParams('', 'admin', admin)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [bool] admin: - Future getUserCount({ bool? admin, }) async { - final response = await getUserCountWithHttpInfo( admin: admin, ); - 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), 'UserCountResponseDto',) as UserCountResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /user/{userId}/restore' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] userId (required): - Future restoreUserWithHttpInfo(String userId,) async { - // ignore: prefer_const_declarations - final path = r'/user/{userId}/restore' - .replaceAll('{userId}', userId); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] userId (required): - Future restoreUser(String userId,) async { - final response = await restoreUserWithHttpInfo(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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'PUT /user' operation and returns the [Response]. - /// Parameters: - /// - /// * [UpdateUserDto] updateUserDto (required): - Future updateUserWithHttpInfo(UpdateUserDto updateUserDto,) async { - // ignore: prefer_const_declarations - final path = r'/user'; - - // ignore: prefer_final_locals - Object? postBody = updateUserDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UpdateUserDto] updateUserDto (required): - Future updateUser(UpdateUserDto updateUserDto,) async { - final response = await updateUserWithHttpInfo(updateUserDto,); - 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; - } -} diff --git a/mobile/openapi/lib/api_client.dart b/mobile/openapi/lib/api_client.dart deleted file mode 100644 index 7ba53283582902..00000000000000 --- a/mobile/openapi/lib/api_client.dart +++ /dev/null @@ -1,444 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 = {}; - - /// 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 get defaultHeaderMap => _defaultHeaderMap; - - void addDefaultHeader(String key, String value) { - _defaultHeaderMap[key] = value; - } - - // We don't use a Map for queryParams. - // If collectionFormat is 'multi', a key might appear multiple times. - Future invokeAPI( - String path, - String method, - List queryParams, - Object? body, - Map headerParams, - Map 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 deserializeAsync(String json, String targetType, {bool growable = false,}) => - // ignore: deprecated_member_use_from_same_package - deserialize(json, targetType, growable: growable); - - @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.') - Future deserialize(String json, 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' - ? json - : _deserialize(await compute((String j) => jsonDecode(j), json), targetType, growable: growable); - } - - // ignore: deprecated_member_use_from_same_package - Future 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); - - static dynamic _deserialize(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 'AddAssetsDto': - return AddAssetsDto.fromJson(value); - case 'AddAssetsResponseDto': - return AddAssetsResponseDto.fromJson(value); - case 'AddUsersDto': - return AddUsersDto.fromJson(value); - case 'AdminSignupResponseDto': - return AdminSignupResponseDto.fromJson(value); - case 'AlbumCountResponseDto': - return AlbumCountResponseDto.fromJson(value); - case 'AlbumResponseDto': - return AlbumResponseDto.fromJson(value); - case 'AllJobStatusResponseDto': - return AllJobStatusResponseDto.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 'AssetCountByTimeBucket': - return AssetCountByTimeBucket.fromJson(value); - case 'AssetCountByTimeBucketResponseDto': - return AssetCountByTimeBucketResponseDto.fromJson(value); - case 'AssetCountByUserIdResponseDto': - return AssetCountByUserIdResponseDto.fromJson(value); - case 'AssetFileUploadResponseDto': - return AssetFileUploadResponseDto.fromJson(value); - case 'AssetIdsDto': - return AssetIdsDto.fromJson(value); - case 'AssetIdsResponseDto': - return AssetIdsResponseDto.fromJson(value); - case 'AssetResponseDto': - return AssetResponseDto.fromJson(value); - case 'AssetTypeEnum': - return AssetTypeEnumTypeTransformer().decode(value); - case 'AuthDeviceResponseDto': - return AuthDeviceResponseDto.fromJson(value); - case 'ChangePasswordDto': - return ChangePasswordDto.fromJson(value); - case 'CheckDuplicateAssetDto': - return CheckDuplicateAssetDto.fromJson(value); - case 'CheckDuplicateAssetResponseDto': - return CheckDuplicateAssetResponseDto.fromJson(value); - case 'CheckExistingAssetsDto': - return CheckExistingAssetsDto.fromJson(value); - case 'CheckExistingAssetsResponseDto': - return CheckExistingAssetsResponseDto.fromJson(value); - case 'CreateAlbumDto': - return CreateAlbumDto.fromJson(value); - case 'CreateProfileImageResponseDto': - return CreateProfileImageResponseDto.fromJson(value); - case 'CreateTagDto': - return CreateTagDto.fromJson(value); - case 'CreateUserDto': - return CreateUserDto.fromJson(value); - case 'CuratedLocationsResponseDto': - return CuratedLocationsResponseDto.fromJson(value); - case 'CuratedObjectsResponseDto': - return CuratedObjectsResponseDto.fromJson(value); - case 'DeleteAssetDto': - return DeleteAssetDto.fromJson(value); - case 'DeleteAssetResponseDto': - return DeleteAssetResponseDto.fromJson(value); - case 'DeleteAssetStatus': - return DeleteAssetStatusTypeTransformer().decode(value); - case 'DownloadArchiveInfo': - return DownloadArchiveInfo.fromJson(value); - case 'DownloadResponseDto': - return DownloadResponseDto.fromJson(value); - case 'ExifResponseDto': - return ExifResponseDto.fromJson(value); - case 'GetAssetByTimeBucketDto': - return GetAssetByTimeBucketDto.fromJson(value); - case 'GetAssetCountByTimeBucketDto': - return GetAssetCountByTimeBucketDto.fromJson(value); - case 'ImportAssetDto': - return ImportAssetDto.fromJson(value); - case 'JobCommand': - return JobCommandTypeTransformer().decode(value); - case 'JobCommandDto': - return JobCommandDto.fromJson(value); - case 'JobCountsDto': - return JobCountsDto.fromJson(value); - case 'JobName': - return JobNameTypeTransformer().decode(value); - case 'JobSettingsDto': - return JobSettingsDto.fromJson(value); - case 'JobStatusDto': - return JobStatusDto.fromJson(value); - case 'LoginCredentialDto': - return LoginCredentialDto.fromJson(value); - case 'LoginResponseDto': - return LoginResponseDto.fromJson(value); - case 'LogoutResponseDto': - return LogoutResponseDto.fromJson(value); - case 'MapMarkerResponseDto': - return MapMarkerResponseDto.fromJson(value); - case 'MemoryLaneResponseDto': - return MemoryLaneResponseDto.fromJson(value); - case 'OAuthCallbackDto': - return OAuthCallbackDto.fromJson(value); - case 'OAuthConfigDto': - return OAuthConfigDto.fromJson(value); - case 'OAuthConfigResponseDto': - return OAuthConfigResponseDto.fromJson(value); - case 'PersonResponseDto': - return PersonResponseDto.fromJson(value); - case 'PersonUpdateDto': - return PersonUpdateDto.fromJson(value); - case 'QueueStatusDto': - return QueueStatusDto.fromJson(value); - case 'RemoveAssetsDto': - return RemoveAssetsDto.fromJson(value); - case 'SearchAlbumResponseDto': - return SearchAlbumResponseDto.fromJson(value); - case 'SearchAssetDto': - return SearchAssetDto.fromJson(value); - case 'SearchAssetResponseDto': - return SearchAssetResponseDto.fromJson(value); - case 'SearchConfigResponseDto': - return SearchConfigResponseDto.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 'ServerInfoResponseDto': - return ServerInfoResponseDto.fromJson(value); - case 'ServerPingResponse': - return ServerPingResponse.fromJson(value); - case 'ServerStatsResponseDto': - return ServerStatsResponseDto.fromJson(value); - case 'ServerVersionReponseDto': - return ServerVersionReponseDto.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 'SignUpDto': - return SignUpDto.fromJson(value); - case 'SmartInfoResponseDto': - return SmartInfoResponseDto.fromJson(value); - case 'SystemConfigDto': - return SystemConfigDto.fromJson(value); - case 'SystemConfigFFmpegDto': - return SystemConfigFFmpegDto.fromJson(value); - case 'SystemConfigJobDto': - return SystemConfigJobDto.fromJson(value); - case 'SystemConfigOAuthDto': - return SystemConfigOAuthDto.fromJson(value); - case 'SystemConfigPasswordLoginDto': - return SystemConfigPasswordLoginDto.fromJson(value); - case 'SystemConfigStorageTemplateDto': - return SystemConfigStorageTemplateDto.fromJson(value); - case 'SystemConfigTemplateStorageOptionDto': - return SystemConfigTemplateStorageOptionDto.fromJson(value); - case 'TagResponseDto': - return TagResponseDto.fromJson(value); - case 'TagTypeEnum': - return TagTypeEnumTypeTransformer().decode(value); - case 'ThumbnailFormat': - return ThumbnailFormatTypeTransformer().decode(value); - case 'TimeGroupEnum': - return TimeGroupEnumTypeTransformer().decode(value); - case 'UpdateAlbumDto': - return UpdateAlbumDto.fromJson(value); - case 'UpdateAssetDto': - return UpdateAssetDto.fromJson(value); - case 'UpdateTagDto': - return UpdateTagDto.fromJson(value); - case 'UpdateUserDto': - return UpdateUserDto.fromJson(value); - case 'UsageByUserDto': - return UsageByUserDto.fromJson(value); - case 'UserCountResponseDto': - return UserCountResponseDto.fromJson(value); - case 'UserResponseDto': - return UserResponseDto.fromJson(value); - case 'ValidateAccessTokenResponseDto': - return ValidateAccessTokenResponseDto.fromJson(value); - default: - dynamic match; - if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) { - return value - .map((dynamic v) => _deserialize(v, match, growable: growable,)) - .toList(growable: growable); - } - if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) { - return value - .map((dynamic v) => _deserialize(v, match, growable: growable,)) - .toSet(); - } - if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) { - return Map.fromIterables( - value.keys.cast(), - value.values.map((dynamic v) => _deserialize(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 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._deserialize( - jsonDecode(message.json), - targetType, - growable: message.growable, - ); -} - -/// Primarily intended for use in an isolate. -Future serializeAsync(Object? value) async => value == null ? '' : json.encode(value); diff --git a/mobile/openapi/lib/api_exception.dart b/mobile/openapi/lib/api_exception.dart deleted file mode 100644 index 796f7f7ee74e1c..00000000000000 --- a/mobile/openapi/lib/api_exception.dart +++ /dev/null @@ -1,33 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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'; - } -} diff --git a/mobile/openapi/lib/api_helper.dart b/mobile/openapi/lib/api_helper.dart deleted file mode 100644 index 386e6a7e76fbd1..00000000000000 --- a/mobile/openapi/lib/api_helper.dart +++ /dev/null @@ -1,125 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 _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 = []; - - 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(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 AssetTypeEnum) { - return AssetTypeEnumTypeTransformer().encode(value).toString(); - } - if (value is DeleteAssetStatus) { - return DeleteAssetStatusTypeTransformer().encode(value).toString(); - } - if (value is JobCommand) { - return JobCommandTypeTransformer().encode(value).toString(); - } - if (value is JobName) { - return JobNameTypeTransformer().encode(value).toString(); - } - if (value is SharedLinkType) { - return SharedLinkTypeTypeTransformer().encode(value).toString(); - } - if (value is TagTypeEnum) { - return TagTypeEnumTypeTransformer().encode(value).toString(); - } - if (value is ThumbnailFormat) { - return ThumbnailFormatTypeTransformer().encode(value).toString(); - } - if (value is TimeGroupEnum) { - return TimeGroupEnumTypeTransformer().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 _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(dynamic map, String key) { - final dynamic value = map is Map ? map[key] : null; - return value is T ? value : null; -} - -/// Returns a valid Map found at the specified Map [key], null otherwise. -Map? mapCastOfType(dynamic map, String key) { - final dynamic value = map is Map ? map[key] : null; - return value is Map ? value.cast() : 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 (pattern == _dateEpochMarker) { - millis = int.tryParse(value); - } else { - return DateTime.tryParse(value); - } - } - if (millis != null) { - return DateTime.fromMillisecondsSinceEpoch(millis, isUtc: true); - } - } - return null; -} diff --git a/mobile/openapi/lib/auth/api_key_auth.dart b/mobile/openapi/lib/auth/api_key_auth.dart deleted file mode 100644 index 84dc2955c22ca8..00000000000000 --- a/mobile/openapi/lib/auth/api_key_auth.dart +++ /dev/null @@ -1,40 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 applyToParams(List queryParams, Map 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', - ); - } - } - } -} diff --git a/mobile/openapi/lib/auth/authentication.dart b/mobile/openapi/lib/auth/authentication.dart deleted file mode 100644 index 1b1b8ae11e20c1..00000000000000 --- a/mobile/openapi/lib/auth/authentication.dart +++ /dev/null @@ -1,17 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 applyToParams(List queryParams, Map headerParams); -} diff --git a/mobile/openapi/lib/auth/http_basic_auth.dart b/mobile/openapi/lib/auth/http_basic_auth.dart deleted file mode 100644 index dfedaa50d090b0..00000000000000 --- a/mobile/openapi/lib/auth/http_basic_auth.dart +++ /dev/null @@ -1,26 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 applyToParams(List queryParams, Map headerParams,) async { - if (username.isNotEmpty && password.isNotEmpty) { - final credentials = '$username:$password'; - headerParams['Authorization'] = 'Basic ${base64.encode(utf8.encode(credentials))}'; - } - } -} diff --git a/mobile/openapi/lib/auth/http_bearer_auth.dart b/mobile/openapi/lib/auth/http_bearer_auth.dart deleted file mode 100644 index eddf3a59cbf392..00000000000000 --- a/mobile/openapi/lib/auth/http_bearer_auth.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 applyToParams(List queryParams, Map 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'; - } - } -} diff --git a/mobile/openapi/lib/auth/oauth.dart b/mobile/openapi/lib/auth/oauth.dart deleted file mode 100644 index e9e7d784c3b6f6..00000000000000 --- a/mobile/openapi/lib/auth/oauth.dart +++ /dev/null @@ -1,24 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 applyToParams(List queryParams, Map headerParams,) async { - if (accessToken.isNotEmpty) { - headerParams['Authorization'] = 'Bearer $accessToken'; - } - } -} diff --git a/mobile/openapi/lib/model/add_assets_dto.dart b/mobile/openapi/lib/model/add_assets_dto.dart deleted file mode 100644 index dd8ca476940717..00000000000000 --- a/mobile/openapi/lib/model/add_assets_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AddAssetsDto { - /// Returns a new [AddAssetsDto] instance. - AddAssetsDto({ - this.assetIds = const [], - }); - - List assetIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddAssetsDto && - other.assetIds == assetIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetIds.hashCode); - - @override - String toString() => 'AddAssetsDto[assetIds=$assetIds]'; - - Map toJson() { - final json = {}; - json[r'assetIds'] = this.assetIds; - return json; - } - - /// Returns a new [AddAssetsDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AddAssetsDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AddAssetsDto( - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AddAssetsDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AddAssetsDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AddAssetsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AddAssetsDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'assetIds', - }; -} - diff --git a/mobile/openapi/lib/model/add_assets_response_dto.dart b/mobile/openapi/lib/model/add_assets_response_dto.dart deleted file mode 100644 index 5b3586d85aed98..00000000000000 --- a/mobile/openapi/lib/model/add_assets_response_dto.dart +++ /dev/null @@ -1,125 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AddAssetsResponseDto { - /// Returns a new [AddAssetsResponseDto] instance. - AddAssetsResponseDto({ - required this.successfullyAdded, - this.alreadyInAlbum = const [], - this.album, - }); - - int successfullyAdded; - - List alreadyInAlbum; - - /// - /// 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. - /// - AlbumResponseDto? album; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddAssetsResponseDto && - other.successfullyAdded == successfullyAdded && - other.alreadyInAlbum == alreadyInAlbum && - other.album == album; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (successfullyAdded.hashCode) + - (alreadyInAlbum.hashCode) + - (album == null ? 0 : album!.hashCode); - - @override - String toString() => 'AddAssetsResponseDto[successfullyAdded=$successfullyAdded, alreadyInAlbum=$alreadyInAlbum, album=$album]'; - - Map toJson() { - final json = {}; - json[r'successfullyAdded'] = this.successfullyAdded; - json[r'alreadyInAlbum'] = this.alreadyInAlbum; - if (this.album != null) { - json[r'album'] = this.album; - } else { - // json[r'album'] = null; - } - return json; - } - - /// Returns a new [AddAssetsResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AddAssetsResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AddAssetsResponseDto( - successfullyAdded: mapValueOfType(json, r'successfullyAdded')!, - alreadyInAlbum: json[r'alreadyInAlbum'] is Iterable - ? (json[r'alreadyInAlbum'] as Iterable).cast().toList(growable: false) - : const [], - album: AlbumResponseDto.fromJson(json[r'album']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AddAssetsResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AddAssetsResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AddAssetsResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AddAssetsResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'successfullyAdded', - 'alreadyInAlbum', - }; -} - diff --git a/mobile/openapi/lib/model/add_users_dto.dart b/mobile/openapi/lib/model/add_users_dto.dart deleted file mode 100644 index 8f1d71e3a94414..00000000000000 --- a/mobile/openapi/lib/model/add_users_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.sharedUserIds = const [], - }); - - List sharedUserIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is AddUsersDto && - other.sharedUserIds == sharedUserIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (sharedUserIds.hashCode); - - @override - String toString() => 'AddUsersDto[sharedUserIds=$sharedUserIds]'; - - Map toJson() { - final json = {}; - json[r'sharedUserIds'] = this.sharedUserIds; - 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) { - if (value is Map) { - final json = value.cast(); - - return AddUsersDto( - sharedUserIds: json[r'sharedUserIds'] is Iterable - ? (json[r'sharedUserIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'sharedUserIds', - }; -} - diff --git a/mobile/openapi/lib/model/admin_signup_response_dto.dart b/mobile/openapi/lib/model/admin_signup_response_dto.dart deleted file mode 100644 index 6eabcd7c36ad4f..00000000000000 --- a/mobile/openapi/lib/model/admin_signup_response_dto.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AdminSignupResponseDto { - /// Returns a new [AdminSignupResponseDto] instance. - AdminSignupResponseDto({ - required this.id, - required this.email, - required this.firstName, - required this.lastName, - required this.createdAt, - }); - - String id; - - String email; - - String firstName; - - String lastName; - - DateTime createdAt; - - @override - bool operator ==(Object other) => identical(this, other) || other is AdminSignupResponseDto && - other.id == id && - other.email == email && - other.firstName == firstName && - other.lastName == lastName && - other.createdAt == createdAt; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (email.hashCode) + - (firstName.hashCode) + - (lastName.hashCode) + - (createdAt.hashCode); - - @override - String toString() => 'AdminSignupResponseDto[id=$id, email=$email, firstName=$firstName, lastName=$lastName, createdAt=$createdAt]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'email'] = this.email; - json[r'firstName'] = this.firstName; - json[r'lastName'] = this.lastName; - json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); - return json; - } - - /// Returns a new [AdminSignupResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AdminSignupResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AdminSignupResponseDto( - id: mapValueOfType(json, r'id')!, - email: mapValueOfType(json, r'email')!, - firstName: mapValueOfType(json, r'firstName')!, - lastName: mapValueOfType(json, r'lastName')!, - createdAt: mapDateTime(json, r'createdAt', r'')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AdminSignupResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AdminSignupResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AdminSignupResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AdminSignupResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'email', - 'firstName', - 'lastName', - 'createdAt', - }; -} - diff --git a/mobile/openapi/lib/model/album_count_response_dto.dart b/mobile/openapi/lib/model/album_count_response_dto.dart deleted file mode 100644 index 33fea91a8aded8..00000000000000 --- a/mobile/openapi/lib/model/album_count_response_dto.dart +++ /dev/null @@ -1,114 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AlbumCountResponseDto { - /// Returns a new [AlbumCountResponseDto] instance. - AlbumCountResponseDto({ - required this.owned, - required this.shared, - required this.notShared, - }); - - int owned; - - int shared; - - int notShared; - - @override - bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto && - other.owned == owned && - other.shared == shared && - other.notShared == notShared; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (owned.hashCode) + - (shared.hashCode) + - (notShared.hashCode); - - @override - String toString() => 'AlbumCountResponseDto[owned=$owned, shared=$shared, notShared=$notShared]'; - - Map toJson() { - final json = {}; - json[r'owned'] = this.owned; - json[r'shared'] = this.shared; - json[r'notShared'] = this.notShared; - return json; - } - - /// Returns a new [AlbumCountResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AlbumCountResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AlbumCountResponseDto( - owned: mapValueOfType(json, r'owned')!, - shared: mapValueOfType(json, r'shared')!, - notShared: mapValueOfType(json, r'notShared')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AlbumCountResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AlbumCountResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AlbumCountResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AlbumCountResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'owned', - 'shared', - 'notShared', - }; -} - diff --git a/mobile/openapi/lib/model/album_response_dto.dart b/mobile/openapi/lib/model/album_response_dto.dart deleted file mode 100644 index dc76a6705454cd..00000000000000 --- a/mobile/openapi/lib/model/album_response_dto.dart +++ /dev/null @@ -1,199 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.assetCount, - required this.id, - required this.ownerId, - required this.albumName, - required this.createdAt, - required this.updatedAt, - required this.albumThumbnailAssetId, - required this.shared, - this.sharedUsers = const [], - this.assets = const [], - required this.owner, - this.lastModifiedAssetTimestamp, - }); - - int assetCount; - - String id; - - String ownerId; - - String albumName; - - DateTime createdAt; - - DateTime updatedAt; - - String? albumThumbnailAssetId; - - bool shared; - - List sharedUsers; - - List assets; - - UserResponseDto owner; - - /// - /// 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; - - @override - bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto && - other.assetCount == assetCount && - other.id == id && - other.ownerId == ownerId && - other.albumName == albumName && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.albumThumbnailAssetId == albumThumbnailAssetId && - other.shared == shared && - other.sharedUsers == sharedUsers && - other.assets == assets && - other.owner == owner && - other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetCount.hashCode) + - (id.hashCode) + - (ownerId.hashCode) + - (albumName.hashCode) + - (createdAt.hashCode) + - (updatedAt.hashCode) + - (albumThumbnailAssetId == null ? 0 : albumThumbnailAssetId!.hashCode) + - (shared.hashCode) + - (sharedUsers.hashCode) + - (assets.hashCode) + - (owner.hashCode) + - (lastModifiedAssetTimestamp == null ? 0 : lastModifiedAssetTimestamp!.hashCode); - - @override - String toString() => 'AlbumResponseDto[assetCount=$assetCount, id=$id, ownerId=$ownerId, albumName=$albumName, createdAt=$createdAt, updatedAt=$updatedAt, albumThumbnailAssetId=$albumThumbnailAssetId, shared=$shared, sharedUsers=$sharedUsers, assets=$assets, owner=$owner, lastModifiedAssetTimestamp=$lastModifiedAssetTimestamp]'; - - Map toJson() { - final json = {}; - json[r'assetCount'] = this.assetCount; - json[r'id'] = this.id; - json[r'ownerId'] = this.ownerId; - json[r'albumName'] = this.albumName; - json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); - json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String(); - if (this.albumThumbnailAssetId != null) { - json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId; - } else { - // json[r'albumThumbnailAssetId'] = null; - } - json[r'shared'] = this.shared; - json[r'sharedUsers'] = this.sharedUsers; - json[r'assets'] = this.assets; - json[r'owner'] = this.owner; - if (this.lastModifiedAssetTimestamp != null) { - json[r'lastModifiedAssetTimestamp'] = this.lastModifiedAssetTimestamp!.toUtc().toIso8601String(); - } else { - // json[r'lastModifiedAssetTimestamp'] = null; - } - 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) { - if (value is Map) { - final json = value.cast(); - - return AlbumResponseDto( - assetCount: mapValueOfType(json, r'assetCount')!, - id: mapValueOfType(json, r'id')!, - ownerId: mapValueOfType(json, r'ownerId')!, - albumName: mapValueOfType(json, r'albumName')!, - createdAt: mapDateTime(json, r'createdAt', r'')!, - updatedAt: mapDateTime(json, r'updatedAt', r'')!, - albumThumbnailAssetId: mapValueOfType(json, r'albumThumbnailAssetId'), - shared: mapValueOfType(json, r'shared')!, - sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']), - assets: AssetResponseDto.listFromJson(json[r'assets']), - owner: UserResponseDto.fromJson(json[r'owner'])!, - lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'assetCount', - 'id', - 'ownerId', - 'albumName', - 'createdAt', - 'updatedAt', - 'albumThumbnailAssetId', - 'shared', - 'sharedUsers', - 'assets', - 'owner', - }; -} - diff --git a/mobile/openapi/lib/model/all_job_status_response_dto.dart b/mobile/openapi/lib/model/all_job_status_response_dto.dart deleted file mode 100644 index aa3ba1d74d1dd9..00000000000000 --- a/mobile/openapi/lib/model/all_job_status_response_dto.dart +++ /dev/null @@ -1,170 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.thumbnailGeneration, - required this.metadataExtraction, - required this.videoConversion, - required this.objectTagging, - required this.clipEncoding, - required this.storageTemplateMigration, - required this.backgroundTask, - required this.search, - required this.recognizeFaces, - required this.sidecar, - }); - - JobStatusDto thumbnailGeneration; - - JobStatusDto metadataExtraction; - - JobStatusDto videoConversion; - - JobStatusDto objectTagging; - - JobStatusDto clipEncoding; - - JobStatusDto storageTemplateMigration; - - JobStatusDto backgroundTask; - - JobStatusDto search; - - JobStatusDto recognizeFaces; - - JobStatusDto sidecar; - - @override - bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto && - other.thumbnailGeneration == thumbnailGeneration && - other.metadataExtraction == metadataExtraction && - other.videoConversion == videoConversion && - other.objectTagging == objectTagging && - other.clipEncoding == clipEncoding && - other.storageTemplateMigration == storageTemplateMigration && - other.backgroundTask == backgroundTask && - other.search == search && - other.recognizeFaces == recognizeFaces && - other.sidecar == sidecar; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (thumbnailGeneration.hashCode) + - (metadataExtraction.hashCode) + - (videoConversion.hashCode) + - (objectTagging.hashCode) + - (clipEncoding.hashCode) + - (storageTemplateMigration.hashCode) + - (backgroundTask.hashCode) + - (search.hashCode) + - (recognizeFaces.hashCode) + - (sidecar.hashCode); - - @override - String toString() => 'AllJobStatusResponseDto[thumbnailGeneration=$thumbnailGeneration, metadataExtraction=$metadataExtraction, videoConversion=$videoConversion, objectTagging=$objectTagging, clipEncoding=$clipEncoding, storageTemplateMigration=$storageTemplateMigration, backgroundTask=$backgroundTask, search=$search, recognizeFaces=$recognizeFaces, sidecar=$sidecar]'; - - Map toJson() { - final json = {}; - json[r'thumbnailGeneration'] = this.thumbnailGeneration; - json[r'metadataExtraction'] = this.metadataExtraction; - json[r'videoConversion'] = this.videoConversion; - json[r'objectTagging'] = this.objectTagging; - json[r'clipEncoding'] = this.clipEncoding; - json[r'storageTemplateMigration'] = this.storageTemplateMigration; - json[r'backgroundTask'] = this.backgroundTask; - json[r'search'] = this.search; - json[r'recognizeFaces'] = this.recognizeFaces; - json[r'sidecar'] = this.sidecar; - 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) { - if (value is Map) { - final json = value.cast(); - - return AllJobStatusResponseDto( - thumbnailGeneration: JobStatusDto.fromJson(json[r'thumbnailGeneration'])!, - metadataExtraction: JobStatusDto.fromJson(json[r'metadataExtraction'])!, - videoConversion: JobStatusDto.fromJson(json[r'videoConversion'])!, - objectTagging: JobStatusDto.fromJson(json[r'objectTagging'])!, - clipEncoding: JobStatusDto.fromJson(json[r'clipEncoding'])!, - storageTemplateMigration: JobStatusDto.fromJson(json[r'storageTemplateMigration'])!, - backgroundTask: JobStatusDto.fromJson(json[r'backgroundTask'])!, - search: JobStatusDto.fromJson(json[r'search'])!, - recognizeFaces: JobStatusDto.fromJson(json[r'recognizeFaces'])!, - sidecar: JobStatusDto.fromJson(json[r'sidecar'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'thumbnailGeneration', - 'metadataExtraction', - 'videoConversion', - 'objectTagging', - 'clipEncoding', - 'storageTemplateMigration', - 'backgroundTask', - 'search', - 'recognizeFaces', - 'sidecar', - }; -} - diff --git a/mobile/openapi/lib/model/api_key_create_dto.dart b/mobile/openapi/lib/model/api_key_create_dto.dart deleted file mode 100644 index c8eec9bfc7e79f..00000000000000 --- a/mobile/openapi/lib/model/api_key_create_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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, - }); - - /// - /// 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; - - @override - bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto && - other.name == name; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (name == null ? 0 : name!.hashCode); - - @override - String toString() => 'APIKeyCreateDto[name=$name]'; - - Map toJson() { - final json = {}; - if (this.name != null) { - json[r'name'] = this.name; - } else { - // json[r'name'] = null; - } - 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) { - if (value is Map) { - final json = value.cast(); - - return APIKeyCreateDto( - name: mapValueOfType(json, r'name'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - }; -} - diff --git a/mobile/openapi/lib/model/api_key_create_response_dto.dart b/mobile/openapi/lib/model/api_key_create_response_dto.dart deleted file mode 100644 index 69f7ad6ec5d8ef..00000000000000 --- a/mobile/openapi/lib/model/api_key_create_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.secret, - required this.apiKey, - }); - - String secret; - - APIKeyResponseDto apiKey; - - @override - bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto && - other.secret == secret && - other.apiKey == apiKey; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (secret.hashCode) + - (apiKey.hashCode); - - @override - String toString() => 'APIKeyCreateResponseDto[secret=$secret, apiKey=$apiKey]'; - - Map toJson() { - final json = {}; - json[r'secret'] = this.secret; - json[r'apiKey'] = this.apiKey; - 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) { - if (value is Map) { - final json = value.cast(); - - return APIKeyCreateResponseDto( - secret: mapValueOfType(json, r'secret')!, - apiKey: APIKeyResponseDto.fromJson(json[r'apiKey'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'secret', - 'apiKey', - }; -} - diff --git a/mobile/openapi/lib/model/api_key_response_dto.dart b/mobile/openapi/lib/model/api_key_response_dto.dart deleted file mode 100644 index 5aa143414dffd8..00000000000000 --- a/mobile/openapi/lib/model/api_key_response_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.id, - required this.name, - required this.createdAt, - required this.updatedAt, - }); - - String id; - - String name; - - DateTime createdAt; - - DateTime updatedAt; - - @override - bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto && - other.id == id && - other.name == name && - other.createdAt == createdAt && - other.updatedAt == updatedAt; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (name.hashCode) + - (createdAt.hashCode) + - (updatedAt.hashCode); - - @override - String toString() => 'APIKeyResponseDto[id=$id, name=$name, createdAt=$createdAt, updatedAt=$updatedAt]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'name'] = this.name; - json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); - 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) { - if (value is Map) { - final json = value.cast(); - - return APIKeyResponseDto( - id: mapValueOfType(json, r'id')!, - name: mapValueOfType(json, r'name')!, - createdAt: mapDateTime(json, r'createdAt', r'')!, - updatedAt: mapDateTime(json, r'updatedAt', r'')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'id', - 'name', - 'createdAt', - 'updatedAt', - }; -} - diff --git a/mobile/openapi/lib/model/api_key_update_dto.dart b/mobile/openapi/lib/model/api_key_update_dto.dart deleted file mode 100644 index c28cafaee4b952..00000000000000 --- a/mobile/openapi/lib/model/api_key_update_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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({ - required this.name, - }); - - String name; - - @override - bool operator ==(Object other) => identical(this, other) || other is APIKeyUpdateDto && - other.name == name; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (name.hashCode); - - @override - String toString() => 'APIKeyUpdateDto[name=$name]'; - - Map toJson() { - final json = {}; - json[r'name'] = this.name; - 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) { - if (value is Map) { - final json = value.cast(); - - return APIKeyUpdateDto( - name: mapValueOfType(json, r'name')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'name', - }; -} - diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart deleted file mode 100644 index fc80d4537bc798..00000000000000 --- a/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 assets; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto && - other.assets == assets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assets.hashCode); - - @override - String toString() => 'AssetBulkUploadCheckDto[assets=$assets]'; - - Map toJson() { - final json = {}; - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetBulkUploadCheckDto( - assets: AssetBulkUploadCheckItem.listFromJson(json[r'assets']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'assets', - }; -} - diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart deleted file mode 100644 index 4cc86898146364..00000000000000 --- a/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.id, - required this.checksum, - }); - - String id; - - /// base64 or hex encoded sha1 hash - String checksum; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem && - other.id == id && - other.checksum == checksum; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (checksum.hashCode); - - @override - String toString() => 'AssetBulkUploadCheckItem[id=$id, checksum=$checksum]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'checksum'] = this.checksum; - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetBulkUploadCheckItem( - id: mapValueOfType(json, r'id')!, - checksum: mapValueOfType(json, r'checksum')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'id', - 'checksum', - }; -} - diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart deleted file mode 100644 index f77c3686a3cda5..00000000000000 --- a/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 results; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto && - other.results == results; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (results.hashCode); - - @override - String toString() => 'AssetBulkUploadCheckResponseDto[results=$results]'; - - Map toJson() { - final json = {}; - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetBulkUploadCheckResponseDto( - results: AssetBulkUploadCheckResult.listFromJson(json[r'results']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'results', - }; -} - diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart deleted file mode 100644 index 3ca23ea4dc3960..00000000000000 --- a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart +++ /dev/null @@ -1,282 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.id, - required this.action, - this.reason, - this.assetId, - }); - - String id; - - AssetBulkUploadCheckResultActionEnum action; - - AssetBulkUploadCheckResultReasonEnum? reason; - - /// - /// 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; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult && - other.id == id && - other.action == action && - other.reason == reason && - other.assetId == assetId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (action.hashCode) + - (reason == null ? 0 : reason!.hashCode) + - (assetId == null ? 0 : assetId!.hashCode); - - @override - String toString() => 'AssetBulkUploadCheckResult[id=$id, action=$action, reason=$reason, assetId=$assetId]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'action'] = this.action; - if (this.reason != null) { - json[r'reason'] = this.reason; - } else { - // json[r'reason'] = null; - } - if (this.assetId != null) { - json[r'assetId'] = this.assetId; - } else { - // json[r'assetId'] = 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) { - if (value is Map) { - final json = value.cast(); - - return AssetBulkUploadCheckResult( - id: mapValueOfType(json, r'id')!, - action: AssetBulkUploadCheckResultActionEnum.fromJson(json[r'action'])!, - reason: AssetBulkUploadCheckResultReasonEnum.fromJson(json[r'reason']), - assetId: mapValueOfType(json, r'assetId'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'id', - 'action', - }; -} - - -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 = [ - accept, - reject, - ]; - - static AssetBulkUploadCheckResultActionEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultActionEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 = [ - duplicate, - unsupportedFormat, - ]; - - static AssetBulkUploadCheckResultReasonEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultReasonEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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; -} - - diff --git a/mobile/openapi/lib/model/asset_count_by_time_bucket.dart b/mobile/openapi/lib/model/asset_count_by_time_bucket.dart deleted file mode 100644 index 0790d714a8d5db..00000000000000 --- a/mobile/openapi/lib/model/asset_count_by_time_bucket.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetCountByTimeBucket { - /// Returns a new [AssetCountByTimeBucket] instance. - AssetCountByTimeBucket({ - required this.timeBucket, - required this.count, - }); - - String timeBucket; - - int count; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetCountByTimeBucket && - other.timeBucket == timeBucket && - other.count == count; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (timeBucket.hashCode) + - (count.hashCode); - - @override - String toString() => 'AssetCountByTimeBucket[timeBucket=$timeBucket, count=$count]'; - - Map toJson() { - final json = {}; - json[r'timeBucket'] = this.timeBucket; - json[r'count'] = this.count; - return json; - } - - /// Returns a new [AssetCountByTimeBucket] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AssetCountByTimeBucket? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AssetCountByTimeBucket( - timeBucket: mapValueOfType(json, r'timeBucket')!, - count: mapValueOfType(json, r'count')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AssetCountByTimeBucket.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AssetCountByTimeBucket.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AssetCountByTimeBucket-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AssetCountByTimeBucket.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'timeBucket', - 'count', - }; -} - diff --git a/mobile/openapi/lib/model/asset_count_by_time_bucket_response_dto.dart b/mobile/openapi/lib/model/asset_count_by_time_bucket_response_dto.dart deleted file mode 100644 index 49eb399a6423fe..00000000000000 --- a/mobile/openapi/lib/model/asset_count_by_time_bucket_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetCountByTimeBucketResponseDto { - /// Returns a new [AssetCountByTimeBucketResponseDto] instance. - AssetCountByTimeBucketResponseDto({ - required this.totalCount, - this.buckets = const [], - }); - - int totalCount; - - List buckets; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetCountByTimeBucketResponseDto && - other.totalCount == totalCount && - other.buckets == buckets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (totalCount.hashCode) + - (buckets.hashCode); - - @override - String toString() => 'AssetCountByTimeBucketResponseDto[totalCount=$totalCount, buckets=$buckets]'; - - Map toJson() { - final json = {}; - json[r'totalCount'] = this.totalCount; - json[r'buckets'] = this.buckets; - return json; - } - - /// Returns a new [AssetCountByTimeBucketResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AssetCountByTimeBucketResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AssetCountByTimeBucketResponseDto( - totalCount: mapValueOfType(json, r'totalCount')!, - buckets: AssetCountByTimeBucket.listFromJson(json[r'buckets']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AssetCountByTimeBucketResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AssetCountByTimeBucketResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AssetCountByTimeBucketResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AssetCountByTimeBucketResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'totalCount', - 'buckets', - }; -} - diff --git a/mobile/openapi/lib/model/asset_count_by_user_id_response_dto.dart b/mobile/openapi/lib/model/asset_count_by_user_id_response_dto.dart deleted file mode 100644 index 0e2b1cefc457fe..00000000000000 --- a/mobile/openapi/lib/model/asset_count_by_user_id_response_dto.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetCountByUserIdResponseDto { - /// Returns a new [AssetCountByUserIdResponseDto] instance. - AssetCountByUserIdResponseDto({ - this.audio = 0, - this.photos = 0, - this.videos = 0, - this.other = 0, - this.total = 0, - }); - - int audio; - - int photos; - - int videos; - - int other; - - int total; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetCountByUserIdResponseDto && - other.audio == audio && - other.photos == photos && - other.videos == videos && - other.other == other && - other.total == total; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (audio.hashCode) + - (photos.hashCode) + - (videos.hashCode) + - (other.hashCode) + - (total.hashCode); - - @override - String toString() => 'AssetCountByUserIdResponseDto[audio=$audio, photos=$photos, videos=$videos, other=$other, total=$total]'; - - Map toJson() { - final json = {}; - json[r'audio'] = this.audio; - json[r'photos'] = this.photos; - json[r'videos'] = this.videos; - json[r'other'] = this.other; - json[r'total'] = this.total; - return json; - } - - /// Returns a new [AssetCountByUserIdResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AssetCountByUserIdResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AssetCountByUserIdResponseDto( - audio: mapValueOfType(json, r'audio')!, - photos: mapValueOfType(json, r'photos')!, - videos: mapValueOfType(json, r'videos')!, - other: mapValueOfType(json, r'other')!, - total: mapValueOfType(json, r'total')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AssetCountByUserIdResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AssetCountByUserIdResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AssetCountByUserIdResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AssetCountByUserIdResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'audio', - 'photos', - 'videos', - 'other', - 'total', - }; -} - diff --git a/mobile/openapi/lib/model/asset_file_upload_response_dto.dart b/mobile/openapi/lib/model/asset_file_upload_response_dto.dart deleted file mode 100644 index 7dd7ee0e26c9e7..00000000000000 --- a/mobile/openapi/lib/model/asset_file_upload_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetFileUploadResponseDto { - /// Returns a new [AssetFileUploadResponseDto] instance. - AssetFileUploadResponseDto({ - required this.id, - required this.duplicate, - }); - - String id; - - bool duplicate; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto && - other.id == id && - other.duplicate == duplicate; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (duplicate.hashCode); - - @override - String toString() => 'AssetFileUploadResponseDto[id=$id, duplicate=$duplicate]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'duplicate'] = this.duplicate; - return json; - } - - /// Returns a new [AssetFileUploadResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AssetFileUploadResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AssetFileUploadResponseDto( - id: mapValueOfType(json, r'id')!, - duplicate: mapValueOfType(json, r'duplicate')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AssetFileUploadResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AssetFileUploadResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AssetFileUploadResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AssetFileUploadResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'duplicate', - }; -} - diff --git a/mobile/openapi/lib/model/asset_ids_dto.dart b/mobile/openapi/lib/model/asset_ids_dto.dart deleted file mode 100644 index f7835f1b46a68a..00000000000000 --- a/mobile/openapi/lib/model/asset_ids_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 assetIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto && - other.assetIds == assetIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetIds.hashCode); - - @override - String toString() => 'AssetIdsDto[assetIds=$assetIds]'; - - Map toJson() { - final json = {}; - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetIdsDto( - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'assetIds', - }; -} - diff --git a/mobile/openapi/lib/model/asset_ids_response_dto.dart b/mobile/openapi/lib/model/asset_ids_response_dto.dart deleted file mode 100644 index e3829a0425a301..00000000000000 --- a/mobile/openapi/lib/model/asset_ids_response_dto.dart +++ /dev/null @@ -1,194 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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, - required this.success, - this.error, - }); - - String assetId; - - bool success; - - AssetIdsResponseDtoErrorEnum? error; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto && - other.assetId == assetId && - other.success == success && - other.error == error; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetId.hashCode) + - (success.hashCode) + - (error == null ? 0 : error!.hashCode); - - @override - String toString() => 'AssetIdsResponseDto[assetId=$assetId, success=$success, error=$error]'; - - Map toJson() { - final json = {}; - json[r'assetId'] = this.assetId; - json[r'success'] = this.success; - if (this.error != null) { - json[r'error'] = this.error; - } else { - // json[r'error'] = null; - } - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetIdsResponseDto( - assetId: mapValueOfType(json, r'assetId')!, - success: mapValueOfType(json, r'success')!, - error: AssetIdsResponseDtoErrorEnum.fromJson(json[r'error']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - '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 = [ - duplicate, - noPermission, - notFound, - ]; - - static AssetIdsResponseDtoErrorEnum? fromJson(dynamic value) => AssetIdsResponseDtoErrorEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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; -} - - diff --git a/mobile/openapi/lib/model/asset_response_dto.dart b/mobile/openapi/lib/model/asset_response_dto.dart deleted file mode 100644 index a88f63415f5dfc..00000000000000 --- a/mobile/openapi/lib/model/asset_response_dto.dart +++ /dev/null @@ -1,303 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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.type, - required this.id, - required this.deviceAssetId, - required this.ownerId, - required this.deviceId, - required this.originalPath, - required this.originalFileName, - required this.resized, - required this.thumbhash, - required this.fileCreatedAt, - required this.fileModifiedAt, - required this.updatedAt, - required this.isFavorite, - required this.isArchived, - required this.mimeType, - required this.duration, - this.exifInfo, - this.smartInfo, - this.livePhotoVideoId, - this.tags = const [], - this.people = const [], - required this.checksum, - required this.isPanorama, - }); - - AssetTypeEnum type; - - String id; - - String deviceAssetId; - - String ownerId; - - String deviceId; - - String originalPath; - - String originalFileName; - - bool resized; - - /// base64 encoded thumbhash - String? thumbhash; - - DateTime fileCreatedAt; - - DateTime fileModifiedAt; - - DateTime updatedAt; - - bool isFavorite; - - bool isArchived; - - String? mimeType; - - 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; - - /// - /// 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. - /// - SmartInfoResponseDto? smartInfo; - - String? livePhotoVideoId; - - List tags; - - List people; - - /// base64 encoded sha1 hash - String checksum; - - bool isPanorama; - - @override - bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto && - other.type == type && - other.id == id && - other.deviceAssetId == deviceAssetId && - other.ownerId == ownerId && - other.deviceId == deviceId && - other.originalPath == originalPath && - other.originalFileName == originalFileName && - other.resized == resized && - other.thumbhash == thumbhash && - other.fileCreatedAt == fileCreatedAt && - other.fileModifiedAt == fileModifiedAt && - other.updatedAt == updatedAt && - other.isFavorite == isFavorite && - other.isArchived == isArchived && - other.mimeType == mimeType && - other.duration == duration && - other.exifInfo == exifInfo && - other.smartInfo == smartInfo && - other.livePhotoVideoId == livePhotoVideoId && - other.tags == tags && - other.people == people && - other.checksum == checksum && - other.isPanorama == isPanorama; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (type.hashCode) + - (id.hashCode) + - (deviceAssetId.hashCode) + - (ownerId.hashCode) + - (deviceId.hashCode) + - (originalPath.hashCode) + - (originalFileName.hashCode) + - (resized.hashCode) + - (thumbhash == null ? 0 : thumbhash!.hashCode) + - (fileCreatedAt.hashCode) + - (fileModifiedAt.hashCode) + - (updatedAt.hashCode) + - (isFavorite.hashCode) + - (isArchived.hashCode) + - (mimeType == null ? 0 : mimeType!.hashCode) + - (duration.hashCode) + - (exifInfo == null ? 0 : exifInfo!.hashCode) + - (smartInfo == null ? 0 : smartInfo!.hashCode) + - (livePhotoVideoId == null ? 0 : livePhotoVideoId!.hashCode) + - (tags.hashCode) + - (people.hashCode) + - (checksum.hashCode) + - (isPanorama.hashCode); - - @override - String toString() => 'AssetResponseDto[type=$type, id=$id, deviceAssetId=$deviceAssetId, ownerId=$ownerId, deviceId=$deviceId, originalPath=$originalPath, originalFileName=$originalFileName, resized=$resized, thumbhash=$thumbhash, fileCreatedAt=$fileCreatedAt, fileModifiedAt=$fileModifiedAt, updatedAt=$updatedAt, isFavorite=$isFavorite, isArchived=$isArchived, mimeType=$mimeType, duration=$duration, exifInfo=$exifInfo, smartInfo=$smartInfo, livePhotoVideoId=$livePhotoVideoId, tags=$tags, people=$people, checksum=$checksum, isPanorama=$isPanorama]'; - - Map toJson() { - final json = {}; - json[r'type'] = this.type; - json[r'id'] = this.id; - json[r'deviceAssetId'] = this.deviceAssetId; - json[r'ownerId'] = this.ownerId; - json[r'deviceId'] = this.deviceId; - json[r'originalPath'] = this.originalPath; - json[r'originalFileName'] = this.originalFileName; - json[r'resized'] = this.resized; - if (this.thumbhash != null) { - json[r'thumbhash'] = this.thumbhash; - } else { - // json[r'thumbhash'] = null; - } - json[r'fileCreatedAt'] = this.fileCreatedAt.toUtc().toIso8601String(); - json[r'fileModifiedAt'] = this.fileModifiedAt.toUtc().toIso8601String(); - json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String(); - json[r'isFavorite'] = this.isFavorite; - json[r'isArchived'] = this.isArchived; - if (this.mimeType != null) { - json[r'mimeType'] = this.mimeType; - } else { - // json[r'mimeType'] = null; - } - json[r'duration'] = this.duration; - if (this.exifInfo != null) { - json[r'exifInfo'] = this.exifInfo; - } else { - // json[r'exifInfo'] = null; - } - if (this.smartInfo != null) { - json[r'smartInfo'] = this.smartInfo; - } else { - // json[r'smartInfo'] = null; - } - if (this.livePhotoVideoId != null) { - json[r'livePhotoVideoId'] = this.livePhotoVideoId; - } else { - // json[r'livePhotoVideoId'] = null; - } - json[r'tags'] = this.tags; - json[r'people'] = this.people; - json[r'checksum'] = this.checksum; - json[r'isPanorama'] = this.isPanorama; - 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) { - if (value is Map) { - final json = value.cast(); - - return AssetResponseDto( - type: AssetTypeEnum.fromJson(json[r'type'])!, - id: mapValueOfType(json, r'id')!, - deviceAssetId: mapValueOfType(json, r'deviceAssetId')!, - ownerId: mapValueOfType(json, r'ownerId')!, - deviceId: mapValueOfType(json, r'deviceId')!, - originalPath: mapValueOfType(json, r'originalPath')!, - originalFileName: mapValueOfType(json, r'originalFileName')!, - resized: mapValueOfType(json, r'resized')!, - thumbhash: mapValueOfType(json, r'thumbhash'), - fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!, - fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!, - updatedAt: mapDateTime(json, r'updatedAt', r'')!, - isFavorite: mapValueOfType(json, r'isFavorite')!, - isArchived: mapValueOfType(json, r'isArchived')!, - mimeType: mapValueOfType(json, r'mimeType'), - duration: mapValueOfType(json, r'duration')!, - exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']), - smartInfo: SmartInfoResponseDto.fromJson(json[r'smartInfo']), - livePhotoVideoId: mapValueOfType(json, r'livePhotoVideoId'), - tags: TagResponseDto.listFromJson(json[r'tags']), - people: PersonResponseDto.listFromJson(json[r'people']), - checksum: mapValueOfType(json, r'checksum')!, - isPanorama: mapValueOfType(json, r'isPanorama')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - 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 mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // 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> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - 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 = { - 'type', - 'id', - 'deviceAssetId', - 'ownerId', - 'deviceId', - 'originalPath', - 'originalFileName', - 'resized', - 'thumbhash', - 'fileCreatedAt', - 'fileModifiedAt', - 'updatedAt', - 'isFavorite', - 'isArchived', - 'mimeType', - 'duration', - 'checksum', - 'isPanorama', - }; -} - diff --git a/mobile/openapi/lib/model/asset_type_enum.dart b/mobile/openapi/lib/model/asset_type_enum.dart deleted file mode 100644 index 1f65a198a3604a..00000000000000 --- a/mobile/openapi/lib/model/asset_type_enum.dart +++ /dev/null @@ -1,91 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AssetTypeEnum { - /// Instantiate a new enum with the provided [value]. - const AssetTypeEnum._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const IMAGE = AssetTypeEnum._(r'IMAGE'); - static const VIDEO = AssetTypeEnum._(r'VIDEO'); - static const AUDIO = AssetTypeEnum._(r'AUDIO'); - static const OTHER = AssetTypeEnum._(r'OTHER'); - - /// List of all possible values in this [enum][AssetTypeEnum]. - static const values = [ - IMAGE, - VIDEO, - AUDIO, - OTHER, - ]; - - static AssetTypeEnum? fromJson(dynamic value) => AssetTypeEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AssetTypeEnum.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [AssetTypeEnum] to String, -/// and [decode] dynamic data back to [AssetTypeEnum]. -class AssetTypeEnumTypeTransformer { - factory AssetTypeEnumTypeTransformer() => _instance ??= const AssetTypeEnumTypeTransformer._(); - - const AssetTypeEnumTypeTransformer._(); - - String encode(AssetTypeEnum data) => data.value; - - /// Decodes a [dynamic value][data] to a AssetTypeEnum. - /// - /// 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. - AssetTypeEnum? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'IMAGE': return AssetTypeEnum.IMAGE; - case r'VIDEO': return AssetTypeEnum.VIDEO; - case r'AUDIO': return AssetTypeEnum.AUDIO; - case r'OTHER': return AssetTypeEnum.OTHER; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [AssetTypeEnumTypeTransformer] instance. - static AssetTypeEnumTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/auth_device_response_dto.dart b/mobile/openapi/lib/model/auth_device_response_dto.dart deleted file mode 100644 index eace07a35366e9..00000000000000 --- a/mobile/openapi/lib/model/auth_device_response_dto.dart +++ /dev/null @@ -1,138 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 AuthDeviceResponseDto { - /// Returns a new [AuthDeviceResponseDto] instance. - AuthDeviceResponseDto({ - required this.id, - required this.createdAt, - required this.updatedAt, - required this.current, - required this.deviceType, - required this.deviceOS, - }); - - String id; - - String createdAt; - - String updatedAt; - - bool current; - - String deviceType; - - String deviceOS; - - @override - bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto && - other.id == id && - other.createdAt == createdAt && - other.updatedAt == updatedAt && - other.current == current && - other.deviceType == deviceType && - other.deviceOS == deviceOS; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (createdAt.hashCode) + - (updatedAt.hashCode) + - (current.hashCode) + - (deviceType.hashCode) + - (deviceOS.hashCode); - - @override - String toString() => 'AuthDeviceResponseDto[id=$id, createdAt=$createdAt, updatedAt=$updatedAt, current=$current, deviceType=$deviceType, deviceOS=$deviceOS]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'createdAt'] = this.createdAt; - json[r'updatedAt'] = this.updatedAt; - json[r'current'] = this.current; - json[r'deviceType'] = this.deviceType; - json[r'deviceOS'] = this.deviceOS; - return json; - } - - /// Returns a new [AuthDeviceResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AuthDeviceResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return AuthDeviceResponseDto( - id: mapValueOfType(json, r'id')!, - createdAt: mapValueOfType(json, r'createdAt')!, - updatedAt: mapValueOfType(json, r'updatedAt')!, - current: mapValueOfType(json, r'current')!, - deviceType: mapValueOfType(json, r'deviceType')!, - deviceOS: mapValueOfType(json, r'deviceOS')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AuthDeviceResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AuthDeviceResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AuthDeviceResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AuthDeviceResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'createdAt', - 'updatedAt', - 'current', - 'deviceType', - 'deviceOS', - }; -} - diff --git a/mobile/openapi/lib/model/change_password_dto.dart b/mobile/openapi/lib/model/change_password_dto.dart deleted file mode 100644 index 21547a245fe025..00000000000000 --- a/mobile/openapi/lib/model/change_password_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ChangePasswordDto { - /// Returns a new [ChangePasswordDto] instance. - ChangePasswordDto({ - required this.password, - required this.newPassword, - }); - - String password; - - String newPassword; - - @override - bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto && - other.password == password && - other.newPassword == newPassword; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (password.hashCode) + - (newPassword.hashCode); - - @override - String toString() => 'ChangePasswordDto[password=$password, newPassword=$newPassword]'; - - Map toJson() { - final json = {}; - json[r'password'] = this.password; - json[r'newPassword'] = this.newPassword; - return json; - } - - /// Returns a new [ChangePasswordDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ChangePasswordDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ChangePasswordDto( - password: mapValueOfType(json, r'password')!, - newPassword: mapValueOfType(json, r'newPassword')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ChangePasswordDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ChangePasswordDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ChangePasswordDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ChangePasswordDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'password', - 'newPassword', - }; -} - diff --git a/mobile/openapi/lib/model/check_duplicate_asset_dto.dart b/mobile/openapi/lib/model/check_duplicate_asset_dto.dart deleted file mode 100644 index 3d2a3cd57a3298..00000000000000 --- a/mobile/openapi/lib/model/check_duplicate_asset_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CheckDuplicateAssetDto { - /// Returns a new [CheckDuplicateAssetDto] instance. - CheckDuplicateAssetDto({ - required this.deviceAssetId, - required this.deviceId, - }); - - String deviceAssetId; - - String deviceId; - - @override - bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetDto && - other.deviceAssetId == deviceAssetId && - other.deviceId == deviceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (deviceAssetId.hashCode) + - (deviceId.hashCode); - - @override - String toString() => 'CheckDuplicateAssetDto[deviceAssetId=$deviceAssetId, deviceId=$deviceId]'; - - Map toJson() { - final json = {}; - json[r'deviceAssetId'] = this.deviceAssetId; - json[r'deviceId'] = this.deviceId; - return json; - } - - /// Returns a new [CheckDuplicateAssetDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CheckDuplicateAssetDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CheckDuplicateAssetDto( - deviceAssetId: mapValueOfType(json, r'deviceAssetId')!, - deviceId: mapValueOfType(json, r'deviceId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CheckDuplicateAssetDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CheckDuplicateAssetDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CheckDuplicateAssetDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CheckDuplicateAssetDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'deviceAssetId', - 'deviceId', - }; -} - diff --git a/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart b/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart deleted file mode 100644 index d8b29ff51ef415..00000000000000 --- a/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart +++ /dev/null @@ -1,115 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CheckDuplicateAssetResponseDto { - /// Returns a new [CheckDuplicateAssetResponseDto] instance. - CheckDuplicateAssetResponseDto({ - required this.isExist, - this.id, - }); - - bool isExist; - - /// - /// 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? id; - - @override - bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetResponseDto && - other.isExist == isExist && - other.id == id; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (isExist.hashCode) + - (id == null ? 0 : id!.hashCode); - - @override - String toString() => 'CheckDuplicateAssetResponseDto[isExist=$isExist, id=$id]'; - - Map toJson() { - final json = {}; - json[r'isExist'] = this.isExist; - if (this.id != null) { - json[r'id'] = this.id; - } else { - // json[r'id'] = null; - } - return json; - } - - /// Returns a new [CheckDuplicateAssetResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CheckDuplicateAssetResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CheckDuplicateAssetResponseDto( - isExist: mapValueOfType(json, r'isExist')!, - id: mapValueOfType(json, r'id'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CheckDuplicateAssetResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CheckDuplicateAssetResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CheckDuplicateAssetResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CheckDuplicateAssetResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'isExist', - }; -} - diff --git a/mobile/openapi/lib/model/check_existing_assets_dto.dart b/mobile/openapi/lib/model/check_existing_assets_dto.dart deleted file mode 100644 index e06d1e28499e52..00000000000000 --- a/mobile/openapi/lib/model/check_existing_assets_dto.dart +++ /dev/null @@ -1,108 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CheckExistingAssetsDto { - /// Returns a new [CheckExistingAssetsDto] instance. - CheckExistingAssetsDto({ - this.deviceAssetIds = const [], - required this.deviceId, - }); - - List deviceAssetIds; - - String deviceId; - - @override - bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto && - other.deviceAssetIds == deviceAssetIds && - other.deviceId == deviceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (deviceAssetIds.hashCode) + - (deviceId.hashCode); - - @override - String toString() => 'CheckExistingAssetsDto[deviceAssetIds=$deviceAssetIds, deviceId=$deviceId]'; - - Map toJson() { - final json = {}; - json[r'deviceAssetIds'] = this.deviceAssetIds; - json[r'deviceId'] = this.deviceId; - return json; - } - - /// Returns a new [CheckExistingAssetsDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CheckExistingAssetsDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CheckExistingAssetsDto( - deviceAssetIds: json[r'deviceAssetIds'] is Iterable - ? (json[r'deviceAssetIds'] as Iterable).cast().toList(growable: false) - : const [], - deviceId: mapValueOfType(json, r'deviceId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CheckExistingAssetsDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CheckExistingAssetsDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CheckExistingAssetsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CheckExistingAssetsDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'deviceAssetIds', - 'deviceId', - }; -} - diff --git a/mobile/openapi/lib/model/check_existing_assets_response_dto.dart b/mobile/openapi/lib/model/check_existing_assets_response_dto.dart deleted file mode 100644 index 7ec23f1699a0de..00000000000000 --- a/mobile/openapi/lib/model/check_existing_assets_response_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CheckExistingAssetsResponseDto { - /// Returns a new [CheckExistingAssetsResponseDto] instance. - CheckExistingAssetsResponseDto({ - this.existingIds = const [], - }); - - List existingIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto && - other.existingIds == existingIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (existingIds.hashCode); - - @override - String toString() => 'CheckExistingAssetsResponseDto[existingIds=$existingIds]'; - - Map toJson() { - final json = {}; - json[r'existingIds'] = this.existingIds; - return json; - } - - /// Returns a new [CheckExistingAssetsResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CheckExistingAssetsResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CheckExistingAssetsResponseDto( - existingIds: json[r'existingIds'] is Iterable - ? (json[r'existingIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CheckExistingAssetsResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CheckExistingAssetsResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CheckExistingAssetsResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CheckExistingAssetsResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'existingIds', - }; -} - diff --git a/mobile/openapi/lib/model/create_album_dto.dart b/mobile/openapi/lib/model/create_album_dto.dart deleted file mode 100644 index 32e107371b012d..00000000000000 --- a/mobile/openapi/lib/model/create_album_dto.dart +++ /dev/null @@ -1,116 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CreateAlbumDto { - /// Returns a new [CreateAlbumDto] instance. - CreateAlbumDto({ - required this.albumName, - this.sharedWithUserIds = const [], - this.assetIds = const [], - }); - - String albumName; - - List sharedWithUserIds; - - List assetIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto && - other.albumName == albumName && - other.sharedWithUserIds == sharedWithUserIds && - other.assetIds == assetIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (albumName.hashCode) + - (sharedWithUserIds.hashCode) + - (assetIds.hashCode); - - @override - String toString() => 'CreateAlbumDto[albumName=$albumName, sharedWithUserIds=$sharedWithUserIds, assetIds=$assetIds]'; - - Map toJson() { - final json = {}; - json[r'albumName'] = this.albumName; - json[r'sharedWithUserIds'] = this.sharedWithUserIds; - json[r'assetIds'] = this.assetIds; - return json; - } - - /// Returns a new [CreateAlbumDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateAlbumDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CreateAlbumDto( - albumName: mapValueOfType(json, r'albumName')!, - sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable - ? (json[r'sharedWithUserIds'] as Iterable).cast().toList(growable: false) - : const [], - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateAlbumDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateAlbumDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateAlbumDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateAlbumDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'albumName', - }; -} - diff --git a/mobile/openapi/lib/model/create_profile_image_response_dto.dart b/mobile/openapi/lib/model/create_profile_image_response_dto.dart deleted file mode 100644 index f86da6385eed8c..00000000000000 --- a/mobile/openapi/lib/model/create_profile_image_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CreateProfileImageResponseDto { - /// Returns a new [CreateProfileImageResponseDto] instance. - CreateProfileImageResponseDto({ - required this.userId, - required this.profileImagePath, - }); - - String userId; - - String profileImagePath; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto && - other.userId == userId && - other.profileImagePath == profileImagePath; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (userId.hashCode) + - (profileImagePath.hashCode); - - @override - String toString() => 'CreateProfileImageResponseDto[userId=$userId, profileImagePath=$profileImagePath]'; - - Map toJson() { - final json = {}; - json[r'userId'] = this.userId; - json[r'profileImagePath'] = this.profileImagePath; - return json; - } - - /// Returns a new [CreateProfileImageResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateProfileImageResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CreateProfileImageResponseDto( - userId: mapValueOfType(json, r'userId')!, - profileImagePath: mapValueOfType(json, r'profileImagePath')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateProfileImageResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateProfileImageResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateProfileImageResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateProfileImageResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'userId', - 'profileImagePath', - }; -} - diff --git a/mobile/openapi/lib/model/create_tag_dto.dart b/mobile/openapi/lib/model/create_tag_dto.dart deleted file mode 100644 index 461c94ab1bf756..00000000000000 --- a/mobile/openapi/lib/model/create_tag_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CreateTagDto { - /// Returns a new [CreateTagDto] instance. - CreateTagDto({ - required this.type, - required this.name, - }); - - TagTypeEnum type; - - String name; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateTagDto && - other.type == type && - other.name == name; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (type.hashCode) + - (name.hashCode); - - @override - String toString() => 'CreateTagDto[type=$type, name=$name]'; - - Map toJson() { - final json = {}; - json[r'type'] = this.type; - json[r'name'] = this.name; - return json; - } - - /// Returns a new [CreateTagDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateTagDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CreateTagDto( - type: TagTypeEnum.fromJson(json[r'type'])!, - name: mapValueOfType(json, r'name')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateTagDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateTagDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateTagDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateTagDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'type', - 'name', - }; -} - diff --git a/mobile/openapi/lib/model/create_user_dto.dart b/mobile/openapi/lib/model/create_user_dto.dart deleted file mode 100644 index b5197aa70f6114..00000000000000 --- a/mobile/openapi/lib/model/create_user_dto.dart +++ /dev/null @@ -1,144 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CreateUserDto { - /// Returns a new [CreateUserDto] instance. - CreateUserDto({ - required this.email, - required this.password, - required this.firstName, - required this.lastName, - this.storageLabel, - this.externalPath, - }); - - String email; - - String password; - - String firstName; - - String lastName; - - String? storageLabel; - - String? externalPath; - - @override - bool operator ==(Object other) => identical(this, other) || other is CreateUserDto && - other.email == email && - other.password == password && - other.firstName == firstName && - other.lastName == lastName && - other.storageLabel == storageLabel && - other.externalPath == externalPath; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (email.hashCode) + - (password.hashCode) + - (firstName.hashCode) + - (lastName.hashCode) + - (storageLabel == null ? 0 : storageLabel!.hashCode) + - (externalPath == null ? 0 : externalPath!.hashCode); - - @override - String toString() => 'CreateUserDto[email=$email, password=$password, firstName=$firstName, lastName=$lastName, storageLabel=$storageLabel, externalPath=$externalPath]'; - - Map toJson() { - final json = {}; - json[r'email'] = this.email; - json[r'password'] = this.password; - json[r'firstName'] = this.firstName; - json[r'lastName'] = this.lastName; - if (this.storageLabel != null) { - json[r'storageLabel'] = this.storageLabel; - } else { - // json[r'storageLabel'] = null; - } - if (this.externalPath != null) { - json[r'externalPath'] = this.externalPath; - } else { - // json[r'externalPath'] = null; - } - return json; - } - - /// Returns a new [CreateUserDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CreateUserDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CreateUserDto( - email: mapValueOfType(json, r'email')!, - password: mapValueOfType(json, r'password')!, - firstName: mapValueOfType(json, r'firstName')!, - lastName: mapValueOfType(json, r'lastName')!, - storageLabel: mapValueOfType(json, r'storageLabel'), - externalPath: mapValueOfType(json, r'externalPath'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CreateUserDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CreateUserDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CreateUserDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CreateUserDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'email', - 'password', - 'firstName', - 'lastName', - }; -} - diff --git a/mobile/openapi/lib/model/curated_locations_response_dto.dart b/mobile/openapi/lib/model/curated_locations_response_dto.dart deleted file mode 100644 index 5bedb93624f5e7..00000000000000 --- a/mobile/openapi/lib/model/curated_locations_response_dto.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CuratedLocationsResponseDto { - /// Returns a new [CuratedLocationsResponseDto] instance. - CuratedLocationsResponseDto({ - required this.id, - required this.city, - required this.resizePath, - required this.deviceAssetId, - required this.deviceId, - }); - - String id; - - String city; - - String resizePath; - - String deviceAssetId; - - String deviceId; - - @override - bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto && - other.id == id && - other.city == city && - other.resizePath == resizePath && - other.deviceAssetId == deviceAssetId && - other.deviceId == deviceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (city.hashCode) + - (resizePath.hashCode) + - (deviceAssetId.hashCode) + - (deviceId.hashCode); - - @override - String toString() => 'CuratedLocationsResponseDto[id=$id, city=$city, resizePath=$resizePath, deviceAssetId=$deviceAssetId, deviceId=$deviceId]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'city'] = this.city; - json[r'resizePath'] = this.resizePath; - json[r'deviceAssetId'] = this.deviceAssetId; - json[r'deviceId'] = this.deviceId; - return json; - } - - /// Returns a new [CuratedLocationsResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CuratedLocationsResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CuratedLocationsResponseDto( - id: mapValueOfType(json, r'id')!, - city: mapValueOfType(json, r'city')!, - resizePath: mapValueOfType(json, r'resizePath')!, - deviceAssetId: mapValueOfType(json, r'deviceAssetId')!, - deviceId: mapValueOfType(json, r'deviceId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CuratedLocationsResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CuratedLocationsResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CuratedLocationsResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CuratedLocationsResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'city', - 'resizePath', - 'deviceAssetId', - 'deviceId', - }; -} - diff --git a/mobile/openapi/lib/model/curated_objects_response_dto.dart b/mobile/openapi/lib/model/curated_objects_response_dto.dart deleted file mode 100644 index 76ea315ce11fed..00000000000000 --- a/mobile/openapi/lib/model/curated_objects_response_dto.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 CuratedObjectsResponseDto { - /// Returns a new [CuratedObjectsResponseDto] instance. - CuratedObjectsResponseDto({ - required this.id, - required this.object, - required this.resizePath, - required this.deviceAssetId, - required this.deviceId, - }); - - String id; - - String object; - - String resizePath; - - String deviceAssetId; - - String deviceId; - - @override - bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto && - other.id == id && - other.object == object && - other.resizePath == resizePath && - other.deviceAssetId == deviceAssetId && - other.deviceId == deviceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (object.hashCode) + - (resizePath.hashCode) + - (deviceAssetId.hashCode) + - (deviceId.hashCode); - - @override - String toString() => 'CuratedObjectsResponseDto[id=$id, object=$object, resizePath=$resizePath, deviceAssetId=$deviceAssetId, deviceId=$deviceId]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'object'] = this.object; - json[r'resizePath'] = this.resizePath; - json[r'deviceAssetId'] = this.deviceAssetId; - json[r'deviceId'] = this.deviceId; - return json; - } - - /// Returns a new [CuratedObjectsResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static CuratedObjectsResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return CuratedObjectsResponseDto( - id: mapValueOfType(json, r'id')!, - object: mapValueOfType(json, r'object')!, - resizePath: mapValueOfType(json, r'resizePath')!, - deviceAssetId: mapValueOfType(json, r'deviceAssetId')!, - deviceId: mapValueOfType(json, r'deviceId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = CuratedObjectsResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = CuratedObjectsResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of CuratedObjectsResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = CuratedObjectsResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'object', - 'resizePath', - 'deviceAssetId', - 'deviceId', - }; -} - diff --git a/mobile/openapi/lib/model/delete_asset_dto.dart b/mobile/openapi/lib/model/delete_asset_dto.dart deleted file mode 100644 index 33c2fced3e106a..00000000000000 --- a/mobile/openapi/lib/model/delete_asset_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 DeleteAssetDto { - /// Returns a new [DeleteAssetDto] instance. - DeleteAssetDto({ - this.ids = const [], - }); - - List ids; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteAssetDto && - other.ids == ids; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (ids.hashCode); - - @override - String toString() => 'DeleteAssetDto[ids=$ids]'; - - Map toJson() { - final json = {}; - json[r'ids'] = this.ids; - return json; - } - - /// Returns a new [DeleteAssetDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteAssetDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return DeleteAssetDto( - ids: json[r'ids'] is Iterable - ? (json[r'ids'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteAssetDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteAssetDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteAssetDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteAssetDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'ids', - }; -} - diff --git a/mobile/openapi/lib/model/delete_asset_response_dto.dart b/mobile/openapi/lib/model/delete_asset_response_dto.dart deleted file mode 100644 index 7a33b5b5f05c7f..00000000000000 --- a/mobile/openapi/lib/model/delete_asset_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 DeleteAssetResponseDto { - /// Returns a new [DeleteAssetResponseDto] instance. - DeleteAssetResponseDto({ - required this.status, - required this.id, - }); - - DeleteAssetStatus status; - - String id; - - @override - bool operator ==(Object other) => identical(this, other) || other is DeleteAssetResponseDto && - other.status == status && - other.id == id; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (status.hashCode) + - (id.hashCode); - - @override - String toString() => 'DeleteAssetResponseDto[status=$status, id=$id]'; - - Map toJson() { - final json = {}; - json[r'status'] = this.status; - json[r'id'] = this.id; - return json; - } - - /// Returns a new [DeleteAssetResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DeleteAssetResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return DeleteAssetResponseDto( - status: DeleteAssetStatus.fromJson(json[r'status'])!, - id: mapValueOfType(json, r'id')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteAssetResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DeleteAssetResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DeleteAssetResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DeleteAssetResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'status', - 'id', - }; -} - diff --git a/mobile/openapi/lib/model/delete_asset_status.dart b/mobile/openapi/lib/model/delete_asset_status.dart deleted file mode 100644 index 5bdde6993871a9..00000000000000 --- a/mobile/openapi/lib/model/delete_asset_status.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 DeleteAssetStatus { - /// Instantiate a new enum with the provided [value]. - const DeleteAssetStatus._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const SUCCESS = DeleteAssetStatus._(r'SUCCESS'); - static const FAILED = DeleteAssetStatus._(r'FAILED'); - - /// List of all possible values in this [enum][DeleteAssetStatus]. - static const values = [ - SUCCESS, - FAILED, - ]; - - static DeleteAssetStatus? fromJson(dynamic value) => DeleteAssetStatusTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DeleteAssetStatus.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [DeleteAssetStatus] to String, -/// and [decode] dynamic data back to [DeleteAssetStatus]. -class DeleteAssetStatusTypeTransformer { - factory DeleteAssetStatusTypeTransformer() => _instance ??= const DeleteAssetStatusTypeTransformer._(); - - const DeleteAssetStatusTypeTransformer._(); - - String encode(DeleteAssetStatus data) => data.value; - - /// Decodes a [dynamic value][data] to a DeleteAssetStatus. - /// - /// 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. - DeleteAssetStatus? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'SUCCESS': return DeleteAssetStatus.SUCCESS; - case r'FAILED': return DeleteAssetStatus.FAILED; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [DeleteAssetStatusTypeTransformer] instance. - static DeleteAssetStatusTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/download_archive_info.dart b/mobile/openapi/lib/model/download_archive_info.dart deleted file mode 100644 index ff370f42311da4..00000000000000 --- a/mobile/openapi/lib/model/download_archive_info.dart +++ /dev/null @@ -1,108 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 DownloadArchiveInfo { - /// Returns a new [DownloadArchiveInfo] instance. - DownloadArchiveInfo({ - required this.size, - this.assetIds = const [], - }); - - int size; - - List assetIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo && - other.size == size && - other.assetIds == assetIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (size.hashCode) + - (assetIds.hashCode); - - @override - String toString() => 'DownloadArchiveInfo[size=$size, assetIds=$assetIds]'; - - Map toJson() { - final json = {}; - json[r'size'] = this.size; - json[r'assetIds'] = this.assetIds; - return json; - } - - /// Returns a new [DownloadArchiveInfo] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DownloadArchiveInfo? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return DownloadArchiveInfo( - size: mapValueOfType(json, r'size')!, - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DownloadArchiveInfo.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DownloadArchiveInfo.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DownloadArchiveInfo-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DownloadArchiveInfo.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'size', - 'assetIds', - }; -} - diff --git a/mobile/openapi/lib/model/download_response_dto.dart b/mobile/openapi/lib/model/download_response_dto.dart deleted file mode 100644 index 89269c71a33904..00000000000000 --- a/mobile/openapi/lib/model/download_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 DownloadResponseDto { - /// Returns a new [DownloadResponseDto] instance. - DownloadResponseDto({ - required this.totalSize, - this.archives = const [], - }); - - int totalSize; - - List archives; - - @override - bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto && - other.totalSize == totalSize && - other.archives == archives; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (totalSize.hashCode) + - (archives.hashCode); - - @override - String toString() => 'DownloadResponseDto[totalSize=$totalSize, archives=$archives]'; - - Map toJson() { - final json = {}; - json[r'totalSize'] = this.totalSize; - json[r'archives'] = this.archives; - return json; - } - - /// Returns a new [DownloadResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DownloadResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return DownloadResponseDto( - totalSize: mapValueOfType(json, r'totalSize')!, - archives: DownloadArchiveInfo.listFromJson(json[r'archives']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DownloadResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DownloadResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DownloadResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DownloadResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'totalSize', - 'archives', - }; -} - diff --git a/mobile/openapi/lib/model/exif_response_dto.dart b/mobile/openapi/lib/model/exif_response_dto.dart deleted file mode 100644 index 8af6e8f09b835b..00000000000000 --- a/mobile/openapi/lib/model/exif_response_dto.dart +++ /dev/null @@ -1,324 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ExifResponseDto { - /// Returns a new [ExifResponseDto] instance. - ExifResponseDto({ - this.fileSizeInByte, - this.make, - this.model, - this.exifImageWidth, - this.exifImageHeight, - this.orientation, - this.dateTimeOriginal, - this.modifyDate, - this.timeZone, - this.lensModel, - this.fNumber, - this.focalLength, - this.iso, - this.exposureTime, - this.latitude, - this.longitude, - this.city, - this.state, - this.country, - this.description, - }); - - int? fileSizeInByte; - - String? make; - - String? model; - - num? exifImageWidth; - - num? exifImageHeight; - - String? orientation; - - DateTime? dateTimeOriginal; - - DateTime? modifyDate; - - String? timeZone; - - String? lensModel; - - num? fNumber; - - num? focalLength; - - num? iso; - - String? exposureTime; - - num? latitude; - - num? longitude; - - String? city; - - String? state; - - String? country; - - String? description; - - @override - bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto && - other.fileSizeInByte == fileSizeInByte && - other.make == make && - other.model == model && - other.exifImageWidth == exifImageWidth && - other.exifImageHeight == exifImageHeight && - other.orientation == orientation && - other.dateTimeOriginal == dateTimeOriginal && - other.modifyDate == modifyDate && - other.timeZone == timeZone && - other.lensModel == lensModel && - other.fNumber == fNumber && - other.focalLength == focalLength && - other.iso == iso && - other.exposureTime == exposureTime && - other.latitude == latitude && - other.longitude == longitude && - other.city == city && - other.state == state && - other.country == country && - other.description == description; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (fileSizeInByte == null ? 0 : fileSizeInByte!.hashCode) + - (make == null ? 0 : make!.hashCode) + - (model == null ? 0 : model!.hashCode) + - (exifImageWidth == null ? 0 : exifImageWidth!.hashCode) + - (exifImageHeight == null ? 0 : exifImageHeight!.hashCode) + - (orientation == null ? 0 : orientation!.hashCode) + - (dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) + - (modifyDate == null ? 0 : modifyDate!.hashCode) + - (timeZone == null ? 0 : timeZone!.hashCode) + - (lensModel == null ? 0 : lensModel!.hashCode) + - (fNumber == null ? 0 : fNumber!.hashCode) + - (focalLength == null ? 0 : focalLength!.hashCode) + - (iso == null ? 0 : iso!.hashCode) + - (exposureTime == null ? 0 : exposureTime!.hashCode) + - (latitude == null ? 0 : latitude!.hashCode) + - (longitude == null ? 0 : longitude!.hashCode) + - (city == null ? 0 : city!.hashCode) + - (state == null ? 0 : state!.hashCode) + - (country == null ? 0 : country!.hashCode) + - (description == null ? 0 : description!.hashCode); - - @override - String toString() => 'ExifResponseDto[fileSizeInByte=$fileSizeInByte, make=$make, model=$model, exifImageWidth=$exifImageWidth, exifImageHeight=$exifImageHeight, orientation=$orientation, dateTimeOriginal=$dateTimeOriginal, modifyDate=$modifyDate, timeZone=$timeZone, lensModel=$lensModel, fNumber=$fNumber, focalLength=$focalLength, iso=$iso, exposureTime=$exposureTime, latitude=$latitude, longitude=$longitude, city=$city, state=$state, country=$country, description=$description]'; - - Map toJson() { - final json = {}; - if (this.fileSizeInByte != null) { - json[r'fileSizeInByte'] = this.fileSizeInByte; - } else { - // json[r'fileSizeInByte'] = null; - } - if (this.make != null) { - json[r'make'] = this.make; - } else { - // json[r'make'] = null; - } - if (this.model != null) { - json[r'model'] = this.model; - } else { - // json[r'model'] = null; - } - if (this.exifImageWidth != null) { - json[r'exifImageWidth'] = this.exifImageWidth; - } else { - // json[r'exifImageWidth'] = null; - } - if (this.exifImageHeight != null) { - json[r'exifImageHeight'] = this.exifImageHeight; - } else { - // json[r'exifImageHeight'] = null; - } - if (this.orientation != null) { - json[r'orientation'] = this.orientation; - } else { - // json[r'orientation'] = null; - } - if (this.dateTimeOriginal != null) { - json[r'dateTimeOriginal'] = this.dateTimeOriginal!.toUtc().toIso8601String(); - } else { - // json[r'dateTimeOriginal'] = null; - } - if (this.modifyDate != null) { - json[r'modifyDate'] = this.modifyDate!.toUtc().toIso8601String(); - } else { - // json[r'modifyDate'] = null; - } - if (this.timeZone != null) { - json[r'timeZone'] = this.timeZone; - } else { - // json[r'timeZone'] = null; - } - if (this.lensModel != null) { - json[r'lensModel'] = this.lensModel; - } else { - // json[r'lensModel'] = null; - } - if (this.fNumber != null) { - json[r'fNumber'] = this.fNumber; - } else { - // json[r'fNumber'] = null; - } - if (this.focalLength != null) { - json[r'focalLength'] = this.focalLength; - } else { - // json[r'focalLength'] = null; - } - if (this.iso != null) { - json[r'iso'] = this.iso; - } else { - // json[r'iso'] = null; - } - if (this.exposureTime != null) { - json[r'exposureTime'] = this.exposureTime; - } else { - // json[r'exposureTime'] = 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.city != null) { - json[r'city'] = this.city; - } else { - // json[r'city'] = null; - } - if (this.state != null) { - json[r'state'] = this.state; - } else { - // json[r'state'] = null; - } - if (this.country != null) { - json[r'country'] = this.country; - } else { - // json[r'country'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - // json[r'description'] = null; - } - return json; - } - - /// Returns a new [ExifResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ExifResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ExifResponseDto( - fileSizeInByte: mapValueOfType(json, r'fileSizeInByte'), - make: mapValueOfType(json, r'make'), - model: mapValueOfType(json, r'model'), - exifImageWidth: json[r'exifImageWidth'] == null - ? null - : num.parse('${json[r'exifImageWidth']}'), - exifImageHeight: json[r'exifImageHeight'] == null - ? null - : num.parse('${json[r'exifImageHeight']}'), - orientation: mapValueOfType(json, r'orientation'), - dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''), - modifyDate: mapDateTime(json, r'modifyDate', r''), - timeZone: mapValueOfType(json, r'timeZone'), - lensModel: mapValueOfType(json, r'lensModel'), - fNumber: json[r'fNumber'] == null - ? null - : num.parse('${json[r'fNumber']}'), - focalLength: json[r'focalLength'] == null - ? null - : num.parse('${json[r'focalLength']}'), - iso: json[r'iso'] == null - ? null - : num.parse('${json[r'iso']}'), - exposureTime: mapValueOfType(json, r'exposureTime'), - latitude: json[r'latitude'] == null - ? null - : num.parse('${json[r'latitude']}'), - longitude: json[r'longitude'] == null - ? null - : num.parse('${json[r'longitude']}'), - city: mapValueOfType(json, r'city'), - state: mapValueOfType(json, r'state'), - country: mapValueOfType(json, r'country'), - description: mapValueOfType(json, r'description'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ExifResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ExifResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ExifResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ExifResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/get_asset_by_time_bucket_dto.dart b/mobile/openapi/lib/model/get_asset_by_time_bucket_dto.dart deleted file mode 100644 index e2940974572be8..00000000000000 --- a/mobile/openapi/lib/model/get_asset_by_time_bucket_dto.dart +++ /dev/null @@ -1,135 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 GetAssetByTimeBucketDto { - /// Returns a new [GetAssetByTimeBucketDto] instance. - GetAssetByTimeBucketDto({ - this.timeBucket = const [], - this.userId, - this.withoutThumbs, - }); - - List timeBucket; - - /// - /// 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; - - /// Include assets without thumbnails - /// - /// 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? withoutThumbs; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetAssetByTimeBucketDto && - other.timeBucket == timeBucket && - other.userId == userId && - other.withoutThumbs == withoutThumbs; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (timeBucket.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (withoutThumbs == null ? 0 : withoutThumbs!.hashCode); - - @override - String toString() => 'GetAssetByTimeBucketDto[timeBucket=$timeBucket, userId=$userId, withoutThumbs=$withoutThumbs]'; - - Map toJson() { - final json = {}; - json[r'timeBucket'] = this.timeBucket; - if (this.userId != null) { - json[r'userId'] = this.userId; - } else { - // json[r'userId'] = null; - } - if (this.withoutThumbs != null) { - json[r'withoutThumbs'] = this.withoutThumbs; - } else { - // json[r'withoutThumbs'] = null; - } - return json; - } - - /// Returns a new [GetAssetByTimeBucketDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetAssetByTimeBucketDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return GetAssetByTimeBucketDto( - timeBucket: json[r'timeBucket'] is Iterable - ? (json[r'timeBucket'] as Iterable).cast().toList(growable: false) - : const [], - userId: mapValueOfType(json, r'userId'), - withoutThumbs: mapValueOfType(json, r'withoutThumbs'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetAssetByTimeBucketDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetAssetByTimeBucketDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetAssetByTimeBucketDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetAssetByTimeBucketDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'timeBucket', - }; -} - diff --git a/mobile/openapi/lib/model/get_asset_count_by_time_bucket_dto.dart b/mobile/openapi/lib/model/get_asset_count_by_time_bucket_dto.dart deleted file mode 100644 index e42d0d514c2462..00000000000000 --- a/mobile/openapi/lib/model/get_asset_count_by_time_bucket_dto.dart +++ /dev/null @@ -1,133 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 GetAssetCountByTimeBucketDto { - /// Returns a new [GetAssetCountByTimeBucketDto] instance. - GetAssetCountByTimeBucketDto({ - required this.timeGroup, - this.userId, - this.withoutThumbs, - }); - - TimeGroupEnum timeGroup; - - /// - /// 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; - - /// Include assets without thumbnails - /// - /// 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? withoutThumbs; - - @override - bool operator ==(Object other) => identical(this, other) || other is GetAssetCountByTimeBucketDto && - other.timeGroup == timeGroup && - other.userId == userId && - other.withoutThumbs == withoutThumbs; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (timeGroup.hashCode) + - (userId == null ? 0 : userId!.hashCode) + - (withoutThumbs == null ? 0 : withoutThumbs!.hashCode); - - @override - String toString() => 'GetAssetCountByTimeBucketDto[timeGroup=$timeGroup, userId=$userId, withoutThumbs=$withoutThumbs]'; - - Map toJson() { - final json = {}; - json[r'timeGroup'] = this.timeGroup; - if (this.userId != null) { - json[r'userId'] = this.userId; - } else { - // json[r'userId'] = null; - } - if (this.withoutThumbs != null) { - json[r'withoutThumbs'] = this.withoutThumbs; - } else { - // json[r'withoutThumbs'] = null; - } - return json; - } - - /// Returns a new [GetAssetCountByTimeBucketDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GetAssetCountByTimeBucketDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return GetAssetCountByTimeBucketDto( - timeGroup: TimeGroupEnum.fromJson(json[r'timeGroup'])!, - userId: mapValueOfType(json, r'userId'), - withoutThumbs: mapValueOfType(json, r'withoutThumbs'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GetAssetCountByTimeBucketDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GetAssetCountByTimeBucketDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GetAssetCountByTimeBucketDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GetAssetCountByTimeBucketDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'timeGroup', - }; -} - diff --git a/mobile/openapi/lib/model/import_asset_dto.dart b/mobile/openapi/lib/model/import_asset_dto.dart deleted file mode 100644 index f9e285a5f23723..00000000000000 --- a/mobile/openapi/lib/model/import_asset_dto.dart +++ /dev/null @@ -1,229 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ImportAssetDto { - /// Returns a new [ImportAssetDto] instance. - ImportAssetDto({ - required this.assetType, - this.isReadOnly = true, - required this.assetPath, - this.sidecarPath, - required this.deviceAssetId, - required this.deviceId, - required this.fileCreatedAt, - required this.fileModifiedAt, - required this.isFavorite, - required this.isPanorama, - this.isArchived, - this.isVisible, - this.duration, - }); - - AssetTypeEnum assetType; - - bool isReadOnly; - - String assetPath; - - /// - /// 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? sidecarPath; - - String deviceAssetId; - - String deviceId; - - DateTime fileCreatedAt; - - DateTime fileModifiedAt; - - bool isFavorite; - - bool isPanorama; - - /// - /// 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? isArchived; - - /// - /// 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? isVisible; - - /// - /// 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? duration; - - @override - bool operator ==(Object other) => identical(this, other) || other is ImportAssetDto && - other.assetType == assetType && - other.isReadOnly == isReadOnly && - other.assetPath == assetPath && - other.sidecarPath == sidecarPath && - other.deviceAssetId == deviceAssetId && - other.deviceId == deviceId && - other.fileCreatedAt == fileCreatedAt && - other.fileModifiedAt == fileModifiedAt && - other.isFavorite == isFavorite && - other.isPanorama == isPanorama && - other.isArchived == isArchived && - other.isVisible == isVisible && - other.duration == duration; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetType.hashCode) + - (isReadOnly.hashCode) + - (assetPath.hashCode) + - (sidecarPath == null ? 0 : sidecarPath!.hashCode) + - (deviceAssetId.hashCode) + - (deviceId.hashCode) + - (fileCreatedAt.hashCode) + - (fileModifiedAt.hashCode) + - (isFavorite.hashCode) + - (isPanorama.hashCode) + - (isArchived == null ? 0 : isArchived!.hashCode) + - (isVisible == null ? 0 : isVisible!.hashCode) + - (duration == null ? 0 : duration!.hashCode); - - @override - String toString() => 'ImportAssetDto[assetType=$assetType, isReadOnly=$isReadOnly, assetPath=$assetPath, sidecarPath=$sidecarPath, deviceAssetId=$deviceAssetId, deviceId=$deviceId, fileCreatedAt=$fileCreatedAt, fileModifiedAt=$fileModifiedAt, isFavorite=$isFavorite, isPanorama=$isPanorama, isArchived=$isArchived, isVisible=$isVisible, duration=$duration]'; - - Map toJson() { - final json = {}; - json[r'assetType'] = this.assetType; - json[r'isReadOnly'] = this.isReadOnly; - json[r'assetPath'] = this.assetPath; - if (this.sidecarPath != null) { - json[r'sidecarPath'] = this.sidecarPath; - } else { - // json[r'sidecarPath'] = null; - } - json[r'deviceAssetId'] = this.deviceAssetId; - json[r'deviceId'] = this.deviceId; - json[r'fileCreatedAt'] = this.fileCreatedAt.toUtc().toIso8601String(); - json[r'fileModifiedAt'] = this.fileModifiedAt.toUtc().toIso8601String(); - json[r'isFavorite'] = this.isFavorite; - json[r'isPanorama'] = this.isPanorama; - if (this.isArchived != null) { - json[r'isArchived'] = this.isArchived; - } else { - // json[r'isArchived'] = null; - } - if (this.isVisible != null) { - json[r'isVisible'] = this.isVisible; - } else { - // json[r'isVisible'] = null; - } - if (this.duration != null) { - json[r'duration'] = this.duration; - } else { - // json[r'duration'] = null; - } - return json; - } - - /// Returns a new [ImportAssetDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ImportAssetDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ImportAssetDto( - assetType: AssetTypeEnum.fromJson(json[r'assetType'])!, - isReadOnly: mapValueOfType(json, r'isReadOnly') ?? true, - assetPath: mapValueOfType(json, r'assetPath')!, - sidecarPath: mapValueOfType(json, r'sidecarPath'), - deviceAssetId: mapValueOfType(json, r'deviceAssetId')!, - deviceId: mapValueOfType(json, r'deviceId')!, - fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!, - fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!, - isFavorite: mapValueOfType(json, r'isFavorite')!, - isPanorama: mapValueOfType(json, r'isPanorama')!, - isArchived: mapValueOfType(json, r'isArchived'), - isVisible: mapValueOfType(json, r'isVisible'), - duration: mapValueOfType(json, r'duration'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ImportAssetDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ImportAssetDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ImportAssetDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ImportAssetDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'assetType', - 'assetPath', - 'deviceAssetId', - 'deviceId', - 'fileCreatedAt', - 'fileModifiedAt', - 'isFavorite', - 'isPanorama', - }; -} - diff --git a/mobile/openapi/lib/model/job_command.dart b/mobile/openapi/lib/model/job_command.dart deleted file mode 100644 index f1fc8986b69fe0..00000000000000 --- a/mobile/openapi/lib/model/job_command.dart +++ /dev/null @@ -1,91 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobCommand { - /// Instantiate a new enum with the provided [value]. - const JobCommand._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const start = JobCommand._(r'start'); - static const pause = JobCommand._(r'pause'); - static const resume = JobCommand._(r'resume'); - static const empty = JobCommand._(r'empty'); - - /// List of all possible values in this [enum][JobCommand]. - static const values = [ - start, - pause, - resume, - empty, - ]; - - static JobCommand? fromJson(dynamic value) => JobCommandTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobCommand.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [JobCommand] to String, -/// and [decode] dynamic data back to [JobCommand]. -class JobCommandTypeTransformer { - factory JobCommandTypeTransformer() => _instance ??= const JobCommandTypeTransformer._(); - - const JobCommandTypeTransformer._(); - - String encode(JobCommand data) => data.value; - - /// Decodes a [dynamic value][data] to a JobCommand. - /// - /// 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. - JobCommand? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'start': return JobCommand.start; - case r'pause': return JobCommand.pause; - case r'resume': return JobCommand.resume; - case r'empty': return JobCommand.empty; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [JobCommandTypeTransformer] instance. - static JobCommandTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/job_command_dto.dart b/mobile/openapi/lib/model/job_command_dto.dart deleted file mode 100644 index 68289ab225ffae..00000000000000 --- a/mobile/openapi/lib/model/job_command_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobCommandDto { - /// Returns a new [JobCommandDto] instance. - JobCommandDto({ - required this.command, - required this.force, - }); - - JobCommand command; - - bool force; - - @override - bool operator ==(Object other) => identical(this, other) || other is JobCommandDto && - other.command == command && - other.force == force; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (command.hashCode) + - (force.hashCode); - - @override - String toString() => 'JobCommandDto[command=$command, force=$force]'; - - Map toJson() { - final json = {}; - json[r'command'] = this.command; - json[r'force'] = this.force; - return json; - } - - /// Returns a new [JobCommandDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static JobCommandDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return JobCommandDto( - command: JobCommand.fromJson(json[r'command'])!, - force: mapValueOfType(json, r'force')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobCommandDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = JobCommandDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of JobCommandDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = JobCommandDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'command', - 'force', - }; -} - diff --git a/mobile/openapi/lib/model/job_counts_dto.dart b/mobile/openapi/lib/model/job_counts_dto.dart deleted file mode 100644 index 5006279cec2c5c..00000000000000 --- a/mobile/openapi/lib/model/job_counts_dto.dart +++ /dev/null @@ -1,138 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobCountsDto { - /// Returns a new [JobCountsDto] instance. - JobCountsDto({ - required this.active, - required this.completed, - required this.failed, - required this.delayed, - required this.waiting, - required this.paused, - }); - - int active; - - int completed; - - int failed; - - int delayed; - - int waiting; - - int paused; - - @override - bool operator ==(Object other) => identical(this, other) || other is JobCountsDto && - other.active == active && - other.completed == completed && - other.failed == failed && - other.delayed == delayed && - other.waiting == waiting && - other.paused == paused; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (active.hashCode) + - (completed.hashCode) + - (failed.hashCode) + - (delayed.hashCode) + - (waiting.hashCode) + - (paused.hashCode); - - @override - String toString() => 'JobCountsDto[active=$active, completed=$completed, failed=$failed, delayed=$delayed, waiting=$waiting, paused=$paused]'; - - Map toJson() { - final json = {}; - json[r'active'] = this.active; - json[r'completed'] = this.completed; - json[r'failed'] = this.failed; - json[r'delayed'] = this.delayed; - json[r'waiting'] = this.waiting; - json[r'paused'] = this.paused; - return json; - } - - /// Returns a new [JobCountsDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static JobCountsDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return JobCountsDto( - active: mapValueOfType(json, r'active')!, - completed: mapValueOfType(json, r'completed')!, - failed: mapValueOfType(json, r'failed')!, - delayed: mapValueOfType(json, r'delayed')!, - waiting: mapValueOfType(json, r'waiting')!, - paused: mapValueOfType(json, r'paused')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobCountsDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = JobCountsDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of JobCountsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = JobCountsDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'active', - 'completed', - 'failed', - 'delayed', - 'waiting', - 'paused', - }; -} - diff --git a/mobile/openapi/lib/model/job_name.dart b/mobile/openapi/lib/model/job_name.dart deleted file mode 100644 index 984e51ba171c73..00000000000000 --- a/mobile/openapi/lib/model/job_name.dart +++ /dev/null @@ -1,109 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobName { - /// Instantiate a new enum with the provided [value]. - const JobName._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const thumbnailGeneration = JobName._(r'thumbnailGeneration'); - static const metadataExtraction = JobName._(r'metadataExtraction'); - static const videoConversion = JobName._(r'videoConversion'); - static const objectTagging = JobName._(r'objectTagging'); - static const recognizeFaces = JobName._(r'recognizeFaces'); - static const clipEncoding = JobName._(r'clipEncoding'); - static const backgroundTask = JobName._(r'backgroundTask'); - static const storageTemplateMigration = JobName._(r'storageTemplateMigration'); - static const search = JobName._(r'search'); - static const sidecar = JobName._(r'sidecar'); - - /// List of all possible values in this [enum][JobName]. - static const values = [ - thumbnailGeneration, - metadataExtraction, - videoConversion, - objectTagging, - recognizeFaces, - clipEncoding, - backgroundTask, - storageTemplateMigration, - search, - sidecar, - ]; - - static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobName.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [JobName] to String, -/// and [decode] dynamic data back to [JobName]. -class JobNameTypeTransformer { - factory JobNameTypeTransformer() => _instance ??= const JobNameTypeTransformer._(); - - const JobNameTypeTransformer._(); - - String encode(JobName data) => data.value; - - /// Decodes a [dynamic value][data] to a JobName. - /// - /// 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. - JobName? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'thumbnailGeneration': return JobName.thumbnailGeneration; - case r'metadataExtraction': return JobName.metadataExtraction; - case r'videoConversion': return JobName.videoConversion; - case r'objectTagging': return JobName.objectTagging; - case r'recognizeFaces': return JobName.recognizeFaces; - case r'clipEncoding': return JobName.clipEncoding; - case r'backgroundTask': return JobName.backgroundTask; - case r'storageTemplateMigration': return JobName.storageTemplateMigration; - case r'search': return JobName.search; - case r'sidecar': return JobName.sidecar; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [JobNameTypeTransformer] instance. - static JobNameTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/job_settings_dto.dart b/mobile/openapi/lib/model/job_settings_dto.dart deleted file mode 100644 index a1fe5445dc3dd5..00000000000000 --- a/mobile/openapi/lib/model/job_settings_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobSettingsDto { - /// Returns a new [JobSettingsDto] instance. - JobSettingsDto({ - required this.concurrency, - }); - - int concurrency; - - @override - bool operator ==(Object other) => identical(this, other) || other is JobSettingsDto && - other.concurrency == concurrency; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (concurrency.hashCode); - - @override - String toString() => 'JobSettingsDto[concurrency=$concurrency]'; - - Map toJson() { - final json = {}; - json[r'concurrency'] = this.concurrency; - return json; - } - - /// Returns a new [JobSettingsDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static JobSettingsDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return JobSettingsDto( - concurrency: mapValueOfType(json, r'concurrency')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobSettingsDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = JobSettingsDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of JobSettingsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = JobSettingsDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'concurrency', - }; -} - diff --git a/mobile/openapi/lib/model/job_status_dto.dart b/mobile/openapi/lib/model/job_status_dto.dart deleted file mode 100644 index e14101ce8e182f..00000000000000 --- a/mobile/openapi/lib/model/job_status_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 JobStatusDto { - /// Returns a new [JobStatusDto] instance. - JobStatusDto({ - required this.jobCounts, - required this.queueStatus, - }); - - JobCountsDto jobCounts; - - QueueStatusDto queueStatus; - - @override - bool operator ==(Object other) => identical(this, other) || other is JobStatusDto && - other.jobCounts == jobCounts && - other.queueStatus == queueStatus; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (jobCounts.hashCode) + - (queueStatus.hashCode); - - @override - String toString() => 'JobStatusDto[jobCounts=$jobCounts, queueStatus=$queueStatus]'; - - Map toJson() { - final json = {}; - json[r'jobCounts'] = this.jobCounts; - json[r'queueStatus'] = this.queueStatus; - return json; - } - - /// Returns a new [JobStatusDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static JobStatusDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return JobStatusDto( - jobCounts: JobCountsDto.fromJson(json[r'jobCounts'])!, - queueStatus: QueueStatusDto.fromJson(json[r'queueStatus'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = JobStatusDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = JobStatusDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of JobStatusDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = JobStatusDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'jobCounts', - 'queueStatus', - }; -} - diff --git a/mobile/openapi/lib/model/login_credential_dto.dart b/mobile/openapi/lib/model/login_credential_dto.dart deleted file mode 100644 index f047ff8c4e0371..00000000000000 --- a/mobile/openapi/lib/model/login_credential_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 LoginCredentialDto { - /// Returns a new [LoginCredentialDto] instance. - LoginCredentialDto({ - required this.email, - required this.password, - }); - - String email; - - String password; - - @override - bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto && - other.email == email && - other.password == password; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (email.hashCode) + - (password.hashCode); - - @override - String toString() => 'LoginCredentialDto[email=$email, password=$password]'; - - Map toJson() { - final json = {}; - json[r'email'] = this.email; - json[r'password'] = this.password; - return json; - } - - /// Returns a new [LoginCredentialDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LoginCredentialDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return LoginCredentialDto( - email: mapValueOfType(json, r'email')!, - password: mapValueOfType(json, r'password')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LoginCredentialDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LoginCredentialDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LoginCredentialDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LoginCredentialDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'email', - 'password', - }; -} - diff --git a/mobile/openapi/lib/model/login_response_dto.dart b/mobile/openapi/lib/model/login_response_dto.dart deleted file mode 100644 index 01a3338c3e9640..00000000000000 --- a/mobile/openapi/lib/model/login_response_dto.dart +++ /dev/null @@ -1,154 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 LoginResponseDto { - /// Returns a new [LoginResponseDto] instance. - LoginResponseDto({ - required this.accessToken, - required this.userId, - required this.userEmail, - required this.firstName, - required this.lastName, - required this.profileImagePath, - required this.isAdmin, - required this.shouldChangePassword, - }); - - String accessToken; - - String userId; - - String userEmail; - - String firstName; - - String lastName; - - String profileImagePath; - - bool isAdmin; - - bool shouldChangePassword; - - @override - bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto && - other.accessToken == accessToken && - other.userId == userId && - other.userEmail == userEmail && - other.firstName == firstName && - other.lastName == lastName && - other.profileImagePath == profileImagePath && - other.isAdmin == isAdmin && - other.shouldChangePassword == shouldChangePassword; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (accessToken.hashCode) + - (userId.hashCode) + - (userEmail.hashCode) + - (firstName.hashCode) + - (lastName.hashCode) + - (profileImagePath.hashCode) + - (isAdmin.hashCode) + - (shouldChangePassword.hashCode); - - @override - String toString() => 'LoginResponseDto[accessToken=$accessToken, userId=$userId, userEmail=$userEmail, firstName=$firstName, lastName=$lastName, profileImagePath=$profileImagePath, isAdmin=$isAdmin, shouldChangePassword=$shouldChangePassword]'; - - Map toJson() { - final json = {}; - json[r'accessToken'] = this.accessToken; - json[r'userId'] = this.userId; - json[r'userEmail'] = this.userEmail; - json[r'firstName'] = this.firstName; - json[r'lastName'] = this.lastName; - json[r'profileImagePath'] = this.profileImagePath; - json[r'isAdmin'] = this.isAdmin; - json[r'shouldChangePassword'] = this.shouldChangePassword; - return json; - } - - /// Returns a new [LoginResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LoginResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return LoginResponseDto( - accessToken: mapValueOfType(json, r'accessToken')!, - userId: mapValueOfType(json, r'userId')!, - userEmail: mapValueOfType(json, r'userEmail')!, - firstName: mapValueOfType(json, r'firstName')!, - lastName: mapValueOfType(json, r'lastName')!, - profileImagePath: mapValueOfType(json, r'profileImagePath')!, - isAdmin: mapValueOfType(json, r'isAdmin')!, - shouldChangePassword: mapValueOfType(json, r'shouldChangePassword')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LoginResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LoginResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LoginResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LoginResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'accessToken', - 'userId', - 'userEmail', - 'firstName', - 'lastName', - 'profileImagePath', - 'isAdmin', - 'shouldChangePassword', - }; -} - diff --git a/mobile/openapi/lib/model/logout_response_dto.dart b/mobile/openapi/lib/model/logout_response_dto.dart deleted file mode 100644 index f8f77ba0a5cbe0..00000000000000 --- a/mobile/openapi/lib/model/logout_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 LogoutResponseDto { - /// Returns a new [LogoutResponseDto] instance. - LogoutResponseDto({ - required this.successful, - required this.redirectUri, - }); - - bool successful; - - String redirectUri; - - @override - bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto && - other.successful == successful && - other.redirectUri == redirectUri; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (successful.hashCode) + - (redirectUri.hashCode); - - @override - String toString() => 'LogoutResponseDto[successful=$successful, redirectUri=$redirectUri]'; - - Map toJson() { - final json = {}; - json[r'successful'] = this.successful; - json[r'redirectUri'] = this.redirectUri; - return json; - } - - /// Returns a new [LogoutResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LogoutResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return LogoutResponseDto( - successful: mapValueOfType(json, r'successful')!, - redirectUri: mapValueOfType(json, r'redirectUri')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LogoutResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LogoutResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LogoutResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LogoutResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'successful', - 'redirectUri', - }; -} - diff --git a/mobile/openapi/lib/model/map_marker_response_dto.dart b/mobile/openapi/lib/model/map_marker_response_dto.dart deleted file mode 100644 index ded8ac167cb5c1..00000000000000 --- a/mobile/openapi/lib/model/map_marker_response_dto.dart +++ /dev/null @@ -1,114 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 MapMarkerResponseDto { - /// Returns a new [MapMarkerResponseDto] instance. - MapMarkerResponseDto({ - required this.id, - required this.lat, - required this.lon, - }); - - String id; - - double lat; - - double lon; - - @override - bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto && - other.id == id && - other.lat == lat && - other.lon == lon; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (lat.hashCode) + - (lon.hashCode); - - @override - String toString() => 'MapMarkerResponseDto[id=$id, lat=$lat, lon=$lon]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'lat'] = this.lat; - json[r'lon'] = this.lon; - return json; - } - - /// Returns a new [MapMarkerResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapMarkerResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return MapMarkerResponseDto( - id: mapValueOfType(json, r'id')!, - lat: mapValueOfType(json, r'lat')!, - lon: mapValueOfType(json, r'lon')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapMarkerResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapMarkerResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapMarkerResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapMarkerResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'lat', - 'lon', - }; -} - diff --git a/mobile/openapi/lib/model/memory_lane_response_dto.dart b/mobile/openapi/lib/model/memory_lane_response_dto.dart deleted file mode 100644 index fc33e4210f41e1..00000000000000 --- a/mobile/openapi/lib/model/memory_lane_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 MemoryLaneResponseDto { - /// Returns a new [MemoryLaneResponseDto] instance. - MemoryLaneResponseDto({ - required this.title, - this.assets = const [], - }); - - String title; - - List assets; - - @override - bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto && - other.title == title && - other.assets == assets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (title.hashCode) + - (assets.hashCode); - - @override - String toString() => 'MemoryLaneResponseDto[title=$title, assets=$assets]'; - - Map toJson() { - final json = {}; - json[r'title'] = this.title; - json[r'assets'] = this.assets; - return json; - } - - /// Returns a new [MemoryLaneResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MemoryLaneResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return MemoryLaneResponseDto( - title: mapValueOfType(json, r'title')!, - assets: AssetResponseDto.listFromJson(json[r'assets']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MemoryLaneResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MemoryLaneResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MemoryLaneResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MemoryLaneResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'title', - 'assets', - }; -} - diff --git a/mobile/openapi/lib/model/o_auth_callback_dto.dart b/mobile/openapi/lib/model/o_auth_callback_dto.dart deleted file mode 100644 index 08fac9798ec405..00000000000000 --- a/mobile/openapi/lib/model/o_auth_callback_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 OAuthCallbackDto { - /// Returns a new [OAuthCallbackDto] instance. - OAuthCallbackDto({ - required this.url, - }); - - String url; - - @override - bool operator ==(Object other) => identical(this, other) || other is OAuthCallbackDto && - other.url == url; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (url.hashCode); - - @override - String toString() => 'OAuthCallbackDto[url=$url]'; - - Map toJson() { - final json = {}; - json[r'url'] = this.url; - return json; - } - - /// Returns a new [OAuthCallbackDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static OAuthCallbackDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return OAuthCallbackDto( - url: mapValueOfType(json, r'url')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = OAuthCallbackDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = OAuthCallbackDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of OAuthCallbackDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = OAuthCallbackDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'url', - }; -} - diff --git a/mobile/openapi/lib/model/o_auth_config_dto.dart b/mobile/openapi/lib/model/o_auth_config_dto.dart deleted file mode 100644 index 0f62306ef41e36..00000000000000 --- a/mobile/openapi/lib/model/o_auth_config_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 OAuthConfigDto { - /// Returns a new [OAuthConfigDto] instance. - OAuthConfigDto({ - required this.redirectUri, - }); - - String redirectUri; - - @override - bool operator ==(Object other) => identical(this, other) || other is OAuthConfigDto && - other.redirectUri == redirectUri; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (redirectUri.hashCode); - - @override - String toString() => 'OAuthConfigDto[redirectUri=$redirectUri]'; - - Map toJson() { - final json = {}; - json[r'redirectUri'] = this.redirectUri; - return json; - } - - /// Returns a new [OAuthConfigDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static OAuthConfigDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return OAuthConfigDto( - redirectUri: mapValueOfType(json, r'redirectUri')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = OAuthConfigDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = OAuthConfigDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of OAuthConfigDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = OAuthConfigDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'redirectUri', - }; -} - diff --git a/mobile/openapi/lib/model/o_auth_config_response_dto.dart b/mobile/openapi/lib/model/o_auth_config_response_dto.dart deleted file mode 100644 index 872455fb4ca123..00000000000000 --- a/mobile/openapi/lib/model/o_auth_config_response_dto.dart +++ /dev/null @@ -1,157 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 OAuthConfigResponseDto { - /// Returns a new [OAuthConfigResponseDto] instance. - OAuthConfigResponseDto({ - required this.enabled, - required this.passwordLoginEnabled, - this.url, - this.buttonText, - this.autoLaunch, - }); - - bool enabled; - - bool passwordLoginEnabled; - - /// - /// 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? url; - - /// - /// 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? buttonText; - - /// - /// 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? autoLaunch; - - @override - bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto && - other.enabled == enabled && - other.passwordLoginEnabled == passwordLoginEnabled && - other.url == url && - other.buttonText == buttonText && - other.autoLaunch == autoLaunch; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (enabled.hashCode) + - (passwordLoginEnabled.hashCode) + - (url == null ? 0 : url!.hashCode) + - (buttonText == null ? 0 : buttonText!.hashCode) + - (autoLaunch == null ? 0 : autoLaunch!.hashCode); - - @override - String toString() => 'OAuthConfigResponseDto[enabled=$enabled, passwordLoginEnabled=$passwordLoginEnabled, url=$url, buttonText=$buttonText, autoLaunch=$autoLaunch]'; - - Map toJson() { - final json = {}; - json[r'enabled'] = this.enabled; - json[r'passwordLoginEnabled'] = this.passwordLoginEnabled; - if (this.url != null) { - json[r'url'] = this.url; - } else { - // json[r'url'] = null; - } - if (this.buttonText != null) { - json[r'buttonText'] = this.buttonText; - } else { - // json[r'buttonText'] = null; - } - if (this.autoLaunch != null) { - json[r'autoLaunch'] = this.autoLaunch; - } else { - // json[r'autoLaunch'] = null; - } - return json; - } - - /// Returns a new [OAuthConfigResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static OAuthConfigResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return OAuthConfigResponseDto( - enabled: mapValueOfType(json, r'enabled')!, - passwordLoginEnabled: mapValueOfType(json, r'passwordLoginEnabled')!, - url: mapValueOfType(json, r'url'), - buttonText: mapValueOfType(json, r'buttonText'), - autoLaunch: mapValueOfType(json, r'autoLaunch'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = OAuthConfigResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = OAuthConfigResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of OAuthConfigResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = OAuthConfigResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'enabled', - 'passwordLoginEnabled', - }; -} - diff --git a/mobile/openapi/lib/model/person_response_dto.dart b/mobile/openapi/lib/model/person_response_dto.dart deleted file mode 100644 index ddaa733853d193..00000000000000 --- a/mobile/openapi/lib/model/person_response_dto.dart +++ /dev/null @@ -1,114 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 PersonResponseDto { - /// Returns a new [PersonResponseDto] instance. - PersonResponseDto({ - required this.id, - required this.name, - required this.thumbnailPath, - }); - - String id; - - String name; - - String thumbnailPath; - - @override - bool operator ==(Object other) => identical(this, other) || other is PersonResponseDto && - other.id == id && - other.name == name && - other.thumbnailPath == thumbnailPath; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (name.hashCode) + - (thumbnailPath.hashCode); - - @override - String toString() => 'PersonResponseDto[id=$id, name=$name, thumbnailPath=$thumbnailPath]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'name'] = this.name; - json[r'thumbnailPath'] = this.thumbnailPath; - return json; - } - - /// Returns a new [PersonResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PersonResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return PersonResponseDto( - id: mapValueOfType(json, r'id')!, - name: mapValueOfType(json, r'name')!, - thumbnailPath: mapValueOfType(json, r'thumbnailPath')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PersonResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PersonResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PersonResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PersonResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'name', - 'thumbnailPath', - }; -} - diff --git a/mobile/openapi/lib/model/person_update_dto.dart b/mobile/openapi/lib/model/person_update_dto.dart deleted file mode 100644 index 3d15c71565b738..00000000000000 --- a/mobile/openapi/lib/model/person_update_dto.dart +++ /dev/null @@ -1,126 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 PersonUpdateDto { - /// Returns a new [PersonUpdateDto] instance. - PersonUpdateDto({ - this.name, - this.featureFaceAssetId, - }); - - /// Person name. - /// - /// 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; - - /// Asset is used to get the feature face thumbnail. - /// - /// 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? featureFaceAssetId; - - @override - bool operator ==(Object other) => identical(this, other) || other is PersonUpdateDto && - other.name == name && - other.featureFaceAssetId == featureFaceAssetId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (name == null ? 0 : name!.hashCode) + - (featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode); - - @override - String toString() => 'PersonUpdateDto[name=$name, featureFaceAssetId=$featureFaceAssetId]'; - - Map toJson() { - final json = {}; - if (this.name != null) { - json[r'name'] = this.name; - } else { - // json[r'name'] = null; - } - if (this.featureFaceAssetId != null) { - json[r'featureFaceAssetId'] = this.featureFaceAssetId; - } else { - // json[r'featureFaceAssetId'] = null; - } - return json; - } - - /// Returns a new [PersonUpdateDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PersonUpdateDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return PersonUpdateDto( - name: mapValueOfType(json, r'name'), - featureFaceAssetId: mapValueOfType(json, r'featureFaceAssetId'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PersonUpdateDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PersonUpdateDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PersonUpdateDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PersonUpdateDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/queue_status_dto.dart b/mobile/openapi/lib/model/queue_status_dto.dart deleted file mode 100644 index 6a15b7742156db..00000000000000 --- a/mobile/openapi/lib/model/queue_status_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 QueueStatusDto { - /// Returns a new [QueueStatusDto] instance. - QueueStatusDto({ - required this.isActive, - required this.isPaused, - }); - - bool isActive; - - bool isPaused; - - @override - bool operator ==(Object other) => identical(this, other) || other is QueueStatusDto && - other.isActive == isActive && - other.isPaused == isPaused; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (isActive.hashCode) + - (isPaused.hashCode); - - @override - String toString() => 'QueueStatusDto[isActive=$isActive, isPaused=$isPaused]'; - - Map toJson() { - final json = {}; - json[r'isActive'] = this.isActive; - json[r'isPaused'] = this.isPaused; - return json; - } - - /// Returns a new [QueueStatusDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QueueStatusDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return QueueStatusDto( - isActive: mapValueOfType(json, r'isActive')!, - isPaused: mapValueOfType(json, r'isPaused')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QueueStatusDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QueueStatusDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QueueStatusDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QueueStatusDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'isActive', - 'isPaused', - }; -} - diff --git a/mobile/openapi/lib/model/remove_assets_dto.dart b/mobile/openapi/lib/model/remove_assets_dto.dart deleted file mode 100644 index c53e6d0ad29d1c..00000000000000 --- a/mobile/openapi/lib/model/remove_assets_dto.dart +++ /dev/null @@ -1,100 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 RemoveAssetsDto { - /// Returns a new [RemoveAssetsDto] instance. - RemoveAssetsDto({ - this.assetIds = const [], - }); - - List assetIds; - - @override - bool operator ==(Object other) => identical(this, other) || other is RemoveAssetsDto && - other.assetIds == assetIds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (assetIds.hashCode); - - @override - String toString() => 'RemoveAssetsDto[assetIds=$assetIds]'; - - Map toJson() { - final json = {}; - json[r'assetIds'] = this.assetIds; - return json; - } - - /// Returns a new [RemoveAssetsDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static RemoveAssetsDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return RemoveAssetsDto( - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = RemoveAssetsDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = RemoveAssetsDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of RemoveAssetsDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = RemoveAssetsDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'assetIds', - }; -} - diff --git a/mobile/openapi/lib/model/search_album_response_dto.dart b/mobile/openapi/lib/model/search_album_response_dto.dart deleted file mode 100644 index d15513963df5cd..00000000000000 --- a/mobile/openapi/lib/model/search_album_response_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchAlbumResponseDto { - /// Returns a new [SearchAlbumResponseDto] instance. - SearchAlbumResponseDto({ - required this.total, - required this.count, - this.items = const [], - this.facets = const [], - }); - - int total; - - int count; - - List items; - - List facets; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto && - other.total == total && - other.count == count && - other.items == items && - other.facets == facets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (total.hashCode) + - (count.hashCode) + - (items.hashCode) + - (facets.hashCode); - - @override - String toString() => 'SearchAlbumResponseDto[total=$total, count=$count, items=$items, facets=$facets]'; - - Map toJson() { - final json = {}; - json[r'total'] = this.total; - json[r'count'] = this.count; - json[r'items'] = this.items; - json[r'facets'] = this.facets; - return json; - } - - /// Returns a new [SearchAlbumResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchAlbumResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchAlbumResponseDto( - total: mapValueOfType(json, r'total')!, - count: mapValueOfType(json, r'count')!, - items: AlbumResponseDto.listFromJson(json[r'items']), - facets: SearchFacetResponseDto.listFromJson(json[r'facets']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchAlbumResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchAlbumResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchAlbumResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchAlbumResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'total', - 'count', - 'items', - 'facets', - }; -} - diff --git a/mobile/openapi/lib/model/search_asset_dto.dart b/mobile/openapi/lib/model/search_asset_dto.dart deleted file mode 100644 index 02c744a06cadd3..00000000000000 --- a/mobile/openapi/lib/model/search_asset_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchAssetDto { - /// Returns a new [SearchAssetDto] instance. - SearchAssetDto({ - required this.searchTerm, - }); - - String searchTerm; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchAssetDto && - other.searchTerm == searchTerm; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (searchTerm.hashCode); - - @override - String toString() => 'SearchAssetDto[searchTerm=$searchTerm]'; - - Map toJson() { - final json = {}; - json[r'searchTerm'] = this.searchTerm; - return json; - } - - /// Returns a new [SearchAssetDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchAssetDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchAssetDto( - searchTerm: mapValueOfType(json, r'searchTerm')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchAssetDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchAssetDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchAssetDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchAssetDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'searchTerm', - }; -} - diff --git a/mobile/openapi/lib/model/search_asset_response_dto.dart b/mobile/openapi/lib/model/search_asset_response_dto.dart deleted file mode 100644 index 866dbbdcd055ad..00000000000000 --- a/mobile/openapi/lib/model/search_asset_response_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchAssetResponseDto { - /// Returns a new [SearchAssetResponseDto] instance. - SearchAssetResponseDto({ - required this.total, - required this.count, - this.items = const [], - this.facets = const [], - }); - - int total; - - int count; - - List items; - - List facets; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto && - other.total == total && - other.count == count && - other.items == items && - other.facets == facets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (total.hashCode) + - (count.hashCode) + - (items.hashCode) + - (facets.hashCode); - - @override - String toString() => 'SearchAssetResponseDto[total=$total, count=$count, items=$items, facets=$facets]'; - - Map toJson() { - final json = {}; - json[r'total'] = this.total; - json[r'count'] = this.count; - json[r'items'] = this.items; - json[r'facets'] = this.facets; - return json; - } - - /// Returns a new [SearchAssetResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchAssetResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchAssetResponseDto( - total: mapValueOfType(json, r'total')!, - count: mapValueOfType(json, r'count')!, - items: AssetResponseDto.listFromJson(json[r'items']), - facets: SearchFacetResponseDto.listFromJson(json[r'facets']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchAssetResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchAssetResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchAssetResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchAssetResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'total', - 'count', - 'items', - 'facets', - }; -} - diff --git a/mobile/openapi/lib/model/search_config_response_dto.dart b/mobile/openapi/lib/model/search_config_response_dto.dart deleted file mode 100644 index 31927662c4bc0e..00000000000000 --- a/mobile/openapi/lib/model/search_config_response_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchConfigResponseDto { - /// Returns a new [SearchConfigResponseDto] instance. - SearchConfigResponseDto({ - required this.enabled, - }); - - bool enabled; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchConfigResponseDto && - other.enabled == enabled; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (enabled.hashCode); - - @override - String toString() => 'SearchConfigResponseDto[enabled=$enabled]'; - - Map toJson() { - final json = {}; - json[r'enabled'] = this.enabled; - return json; - } - - /// Returns a new [SearchConfigResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchConfigResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchConfigResponseDto( - enabled: mapValueOfType(json, r'enabled')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchConfigResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchConfigResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchConfigResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchConfigResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'enabled', - }; -} - diff --git a/mobile/openapi/lib/model/search_explore_item.dart b/mobile/openapi/lib/model/search_explore_item.dart deleted file mode 100644 index 6dd35b9562c22f..00000000000000 --- a/mobile/openapi/lib/model/search_explore_item.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchExploreItem { - /// Returns a new [SearchExploreItem] instance. - SearchExploreItem({ - required this.value, - required this.data, - }); - - String value; - - AssetResponseDto data; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchExploreItem && - other.value == value && - other.data == data; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (value.hashCode) + - (data.hashCode); - - @override - String toString() => 'SearchExploreItem[value=$value, data=$data]'; - - Map toJson() { - final json = {}; - json[r'value'] = this.value; - json[r'data'] = this.data; - return json; - } - - /// Returns a new [SearchExploreItem] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchExploreItem? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchExploreItem( - value: mapValueOfType(json, r'value')!, - data: AssetResponseDto.fromJson(json[r'data'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchExploreItem.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchExploreItem.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchExploreItem-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchExploreItem.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'value', - 'data', - }; -} - diff --git a/mobile/openapi/lib/model/search_explore_response_dto.dart b/mobile/openapi/lib/model/search_explore_response_dto.dart deleted file mode 100644 index 403ba396d45ad8..00000000000000 --- a/mobile/openapi/lib/model/search_explore_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchExploreResponseDto { - /// Returns a new [SearchExploreResponseDto] instance. - SearchExploreResponseDto({ - required this.fieldName, - this.items = const [], - }); - - String fieldName; - - List items; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto && - other.fieldName == fieldName && - other.items == items; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (fieldName.hashCode) + - (items.hashCode); - - @override - String toString() => 'SearchExploreResponseDto[fieldName=$fieldName, items=$items]'; - - Map toJson() { - final json = {}; - json[r'fieldName'] = this.fieldName; - json[r'items'] = this.items; - return json; - } - - /// Returns a new [SearchExploreResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchExploreResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchExploreResponseDto( - fieldName: mapValueOfType(json, r'fieldName')!, - items: SearchExploreItem.listFromJson(json[r'items']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchExploreResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchExploreResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchExploreResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchExploreResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'fieldName', - 'items', - }; -} - diff --git a/mobile/openapi/lib/model/search_facet_count_response_dto.dart b/mobile/openapi/lib/model/search_facet_count_response_dto.dart deleted file mode 100644 index d11450d2f0b707..00000000000000 --- a/mobile/openapi/lib/model/search_facet_count_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchFacetCountResponseDto { - /// Returns a new [SearchFacetCountResponseDto] instance. - SearchFacetCountResponseDto({ - required this.count, - required this.value, - }); - - int count; - - String value; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchFacetCountResponseDto && - other.count == count && - other.value == value; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (count.hashCode) + - (value.hashCode); - - @override - String toString() => 'SearchFacetCountResponseDto[count=$count, value=$value]'; - - Map toJson() { - final json = {}; - json[r'count'] = this.count; - json[r'value'] = this.value; - return json; - } - - /// Returns a new [SearchFacetCountResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchFacetCountResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchFacetCountResponseDto( - count: mapValueOfType(json, r'count')!, - value: mapValueOfType(json, r'value')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchFacetCountResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchFacetCountResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchFacetCountResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchFacetCountResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'count', - 'value', - }; -} - diff --git a/mobile/openapi/lib/model/search_facet_response_dto.dart b/mobile/openapi/lib/model/search_facet_response_dto.dart deleted file mode 100644 index aadbecb3901ab1..00000000000000 --- a/mobile/openapi/lib/model/search_facet_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchFacetResponseDto { - /// Returns a new [SearchFacetResponseDto] instance. - SearchFacetResponseDto({ - required this.fieldName, - this.counts = const [], - }); - - String fieldName; - - List counts; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto && - other.fieldName == fieldName && - other.counts == counts; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (fieldName.hashCode) + - (counts.hashCode); - - @override - String toString() => 'SearchFacetResponseDto[fieldName=$fieldName, counts=$counts]'; - - Map toJson() { - final json = {}; - json[r'fieldName'] = this.fieldName; - json[r'counts'] = this.counts; - return json; - } - - /// Returns a new [SearchFacetResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchFacetResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchFacetResponseDto( - fieldName: mapValueOfType(json, r'fieldName')!, - counts: SearchFacetCountResponseDto.listFromJson(json[r'counts']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchFacetResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchFacetResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchFacetResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchFacetResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'fieldName', - 'counts', - }; -} - diff --git a/mobile/openapi/lib/model/search_response_dto.dart b/mobile/openapi/lib/model/search_response_dto.dart deleted file mode 100644 index c194f8a94cc6c2..00000000000000 --- a/mobile/openapi/lib/model/search_response_dto.dart +++ /dev/null @@ -1,106 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SearchResponseDto { - /// Returns a new [SearchResponseDto] instance. - SearchResponseDto({ - required this.albums, - required this.assets, - }); - - SearchAlbumResponseDto albums; - - SearchAssetResponseDto assets; - - @override - bool operator ==(Object other) => identical(this, other) || other is SearchResponseDto && - other.albums == albums && - other.assets == assets; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (albums.hashCode) + - (assets.hashCode); - - @override - String toString() => 'SearchResponseDto[albums=$albums, assets=$assets]'; - - Map toJson() { - final json = {}; - json[r'albums'] = this.albums; - json[r'assets'] = this.assets; - return json; - } - - /// Returns a new [SearchResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SearchResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SearchResponseDto( - albums: SearchAlbumResponseDto.fromJson(json[r'albums'])!, - assets: SearchAssetResponseDto.fromJson(json[r'assets'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SearchResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SearchResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SearchResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SearchResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'albums', - 'assets', - }; -} - diff --git a/mobile/openapi/lib/model/server_info_response_dto.dart b/mobile/openapi/lib/model/server_info_response_dto.dart deleted file mode 100644 index fa643d12211341..00000000000000 --- a/mobile/openapi/lib/model/server_info_response_dto.dart +++ /dev/null @@ -1,146 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ServerInfoResponseDto { - /// Returns a new [ServerInfoResponseDto] instance. - ServerInfoResponseDto({ - required this.diskSizeRaw, - required this.diskUseRaw, - required this.diskAvailableRaw, - required this.diskUsagePercentage, - required this.diskSize, - required this.diskUse, - required this.diskAvailable, - }); - - int diskSizeRaw; - - int diskUseRaw; - - int diskAvailableRaw; - - double diskUsagePercentage; - - String diskSize; - - String diskUse; - - String diskAvailable; - - @override - bool operator ==(Object other) => identical(this, other) || other is ServerInfoResponseDto && - other.diskSizeRaw == diskSizeRaw && - other.diskUseRaw == diskUseRaw && - other.diskAvailableRaw == diskAvailableRaw && - other.diskUsagePercentage == diskUsagePercentage && - other.diskSize == diskSize && - other.diskUse == diskUse && - other.diskAvailable == diskAvailable; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (diskSizeRaw.hashCode) + - (diskUseRaw.hashCode) + - (diskAvailableRaw.hashCode) + - (diskUsagePercentage.hashCode) + - (diskSize.hashCode) + - (diskUse.hashCode) + - (diskAvailable.hashCode); - - @override - String toString() => 'ServerInfoResponseDto[diskSizeRaw=$diskSizeRaw, diskUseRaw=$diskUseRaw, diskAvailableRaw=$diskAvailableRaw, diskUsagePercentage=$diskUsagePercentage, diskSize=$diskSize, diskUse=$diskUse, diskAvailable=$diskAvailable]'; - - Map toJson() { - final json = {}; - json[r'diskSizeRaw'] = this.diskSizeRaw; - json[r'diskUseRaw'] = this.diskUseRaw; - json[r'diskAvailableRaw'] = this.diskAvailableRaw; - json[r'diskUsagePercentage'] = this.diskUsagePercentage; - json[r'diskSize'] = this.diskSize; - json[r'diskUse'] = this.diskUse; - json[r'diskAvailable'] = this.diskAvailable; - return json; - } - - /// Returns a new [ServerInfoResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ServerInfoResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ServerInfoResponseDto( - diskSizeRaw: mapValueOfType(json, r'diskSizeRaw')!, - diskUseRaw: mapValueOfType(json, r'diskUseRaw')!, - diskAvailableRaw: mapValueOfType(json, r'diskAvailableRaw')!, - diskUsagePercentage: mapValueOfType(json, r'diskUsagePercentage')!, - diskSize: mapValueOfType(json, r'diskSize')!, - diskUse: mapValueOfType(json, r'diskUse')!, - diskAvailable: mapValueOfType(json, r'diskAvailable')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ServerInfoResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ServerInfoResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ServerInfoResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ServerInfoResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'diskSizeRaw', - 'diskUseRaw', - 'diskAvailableRaw', - 'diskUsagePercentage', - 'diskSize', - 'diskUse', - 'diskAvailable', - }; -} - diff --git a/mobile/openapi/lib/model/server_ping_response.dart b/mobile/openapi/lib/model/server_ping_response.dart deleted file mode 100644 index ad72c0f5e52bb3..00000000000000 --- a/mobile/openapi/lib/model/server_ping_response.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ServerPingResponse { - /// Returns a new [ServerPingResponse] instance. - ServerPingResponse({ - required this.res, - }); - - String res; - - @override - bool operator ==(Object other) => identical(this, other) || other is ServerPingResponse && - other.res == res; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (res.hashCode); - - @override - String toString() => 'ServerPingResponse[res=$res]'; - - Map toJson() { - final json = {}; - json[r'res'] = this.res; - return json; - } - - /// Returns a new [ServerPingResponse] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ServerPingResponse? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ServerPingResponse( - res: mapValueOfType(json, r'res')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ServerPingResponse.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ServerPingResponse.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ServerPingResponse-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ServerPingResponse.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'res', - }; -} - diff --git a/mobile/openapi/lib/model/server_stats_response_dto.dart b/mobile/openapi/lib/model/server_stats_response_dto.dart deleted file mode 100644 index 3e541529298e1b..00000000000000 --- a/mobile/openapi/lib/model/server_stats_response_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ServerStatsResponseDto { - /// Returns a new [ServerStatsResponseDto] instance. - ServerStatsResponseDto({ - this.photos = 0, - this.videos = 0, - this.usage = 0, - this.usageByUser = const [], - }); - - int photos; - - int videos; - - int usage; - - List usageByUser; - - @override - bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto && - other.photos == photos && - other.videos == videos && - other.usage == usage && - other.usageByUser == usageByUser; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (photos.hashCode) + - (videos.hashCode) + - (usage.hashCode) + - (usageByUser.hashCode); - - @override - String toString() => 'ServerStatsResponseDto[photos=$photos, videos=$videos, usage=$usage, usageByUser=$usageByUser]'; - - Map toJson() { - final json = {}; - json[r'photos'] = this.photos; - json[r'videos'] = this.videos; - json[r'usage'] = this.usage; - json[r'usageByUser'] = this.usageByUser; - return json; - } - - /// Returns a new [ServerStatsResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ServerStatsResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ServerStatsResponseDto( - photos: mapValueOfType(json, r'photos')!, - videos: mapValueOfType(json, r'videos')!, - usage: mapValueOfType(json, r'usage')!, - usageByUser: UsageByUserDto.listFromJson(json[r'usageByUser']), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ServerStatsResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ServerStatsResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ServerStatsResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ServerStatsResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'photos', - 'videos', - 'usage', - 'usageByUser', - }; -} - diff --git a/mobile/openapi/lib/model/server_version_reponse_dto.dart b/mobile/openapi/lib/model/server_version_reponse_dto.dart deleted file mode 100644 index a1ec0e68e52086..00000000000000 --- a/mobile/openapi/lib/model/server_version_reponse_dto.dart +++ /dev/null @@ -1,114 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ServerVersionReponseDto { - /// Returns a new [ServerVersionReponseDto] instance. - ServerVersionReponseDto({ - required this.major, - required this.minor, - required this.patch_, - }); - - int major; - - int minor; - - int patch_; - - @override - bool operator ==(Object other) => identical(this, other) || other is ServerVersionReponseDto && - other.major == major && - other.minor == minor && - other.patch_ == patch_; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (major.hashCode) + - (minor.hashCode) + - (patch_.hashCode); - - @override - String toString() => 'ServerVersionReponseDto[major=$major, minor=$minor, patch_=$patch_]'; - - Map toJson() { - final json = {}; - json[r'major'] = this.major; - json[r'minor'] = this.minor; - json[r'patch'] = this.patch_; - return json; - } - - /// Returns a new [ServerVersionReponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ServerVersionReponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ServerVersionReponseDto( - major: mapValueOfType(json, r'major')!, - minor: mapValueOfType(json, r'minor')!, - patch_: mapValueOfType(json, r'patch')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ServerVersionReponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ServerVersionReponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ServerVersionReponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ServerVersionReponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'major', - 'minor', - 'patch', - }; -} - diff --git a/mobile/openapi/lib/model/shared_link_create_dto.dart b/mobile/openapi/lib/model/shared_link_create_dto.dart deleted file mode 100644 index 8c699424dda551..00000000000000 --- a/mobile/openapi/lib/model/shared_link_create_dto.dart +++ /dev/null @@ -1,173 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SharedLinkCreateDto { - /// Returns a new [SharedLinkCreateDto] instance. - SharedLinkCreateDto({ - required this.type, - this.assetIds = const [], - this.albumId, - this.description, - this.expiresAt, - this.allowUpload = false, - this.allowDownload = true, - this.showExif = true, - }); - - SharedLinkType type; - - List assetIds; - - /// - /// 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? 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? description; - - DateTime? expiresAt; - - bool allowUpload; - - bool allowDownload; - - bool showExif; - - @override - bool operator ==(Object other) => identical(this, other) || other is SharedLinkCreateDto && - other.type == type && - other.assetIds == assetIds && - other.albumId == albumId && - other.description == description && - other.expiresAt == expiresAt && - other.allowUpload == allowUpload && - other.allowDownload == allowDownload && - other.showExif == showExif; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (type.hashCode) + - (assetIds.hashCode) + - (albumId == null ? 0 : albumId!.hashCode) + - (description == null ? 0 : description!.hashCode) + - (expiresAt == null ? 0 : expiresAt!.hashCode) + - (allowUpload.hashCode) + - (allowDownload.hashCode) + - (showExif.hashCode); - - @override - String toString() => 'SharedLinkCreateDto[type=$type, assetIds=$assetIds, albumId=$albumId, description=$description, expiresAt=$expiresAt, allowUpload=$allowUpload, allowDownload=$allowDownload, showExif=$showExif]'; - - Map toJson() { - final json = {}; - json[r'type'] = this.type; - json[r'assetIds'] = this.assetIds; - if (this.albumId != null) { - json[r'albumId'] = this.albumId; - } else { - // json[r'albumId'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - // json[r'description'] = null; - } - if (this.expiresAt != null) { - json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String(); - } else { - // json[r'expiresAt'] = null; - } - json[r'allowUpload'] = this.allowUpload; - json[r'allowDownload'] = this.allowDownload; - json[r'showExif'] = this.showExif; - return json; - } - - /// Returns a new [SharedLinkCreateDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SharedLinkCreateDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SharedLinkCreateDto( - type: SharedLinkType.fromJson(json[r'type'])!, - assetIds: json[r'assetIds'] is Iterable - ? (json[r'assetIds'] as Iterable).cast().toList(growable: false) - : const [], - albumId: mapValueOfType(json, r'albumId'), - description: mapValueOfType(json, r'description'), - expiresAt: mapDateTime(json, r'expiresAt', r''), - allowUpload: mapValueOfType(json, r'allowUpload') ?? false, - allowDownload: mapValueOfType(json, r'allowDownload') ?? true, - showExif: mapValueOfType(json, r'showExif') ?? true, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SharedLinkCreateDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SharedLinkCreateDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SharedLinkCreateDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SharedLinkCreateDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'type', - }; -} - diff --git a/mobile/openapi/lib/model/shared_link_edit_dto.dart b/mobile/openapi/lib/model/shared_link_edit_dto.dart deleted file mode 100644 index d5693058c61982..00000000000000 --- a/mobile/openapi/lib/model/shared_link_edit_dto.dart +++ /dev/null @@ -1,169 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SharedLinkEditDto { - /// Returns a new [SharedLinkEditDto] instance. - SharedLinkEditDto({ - this.description, - this.expiresAt, - this.allowUpload, - this.allowDownload, - this.showExif, - }); - - /// - /// 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; - - DateTime? expiresAt; - - /// - /// 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? allowUpload; - - /// - /// 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? allowDownload; - - /// - /// 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? showExif; - - @override - bool operator ==(Object other) => identical(this, other) || other is SharedLinkEditDto && - other.description == description && - other.expiresAt == expiresAt && - other.allowUpload == allowUpload && - other.allowDownload == allowDownload && - other.showExif == showExif; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (description == null ? 0 : description!.hashCode) + - (expiresAt == null ? 0 : expiresAt!.hashCode) + - (allowUpload == null ? 0 : allowUpload!.hashCode) + - (allowDownload == null ? 0 : allowDownload!.hashCode) + - (showExif == null ? 0 : showExif!.hashCode); - - @override - String toString() => 'SharedLinkEditDto[description=$description, expiresAt=$expiresAt, allowUpload=$allowUpload, allowDownload=$allowDownload, showExif=$showExif]'; - - Map toJson() { - final json = {}; - if (this.description != null) { - json[r'description'] = this.description; - } else { - // json[r'description'] = null; - } - if (this.expiresAt != null) { - json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String(); - } else { - // json[r'expiresAt'] = null; - } - if (this.allowUpload != null) { - json[r'allowUpload'] = this.allowUpload; - } else { - // json[r'allowUpload'] = null; - } - if (this.allowDownload != null) { - json[r'allowDownload'] = this.allowDownload; - } else { - // json[r'allowDownload'] = null; - } - if (this.showExif != null) { - json[r'showExif'] = this.showExif; - } else { - // json[r'showExif'] = null; - } - return json; - } - - /// Returns a new [SharedLinkEditDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SharedLinkEditDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SharedLinkEditDto( - description: mapValueOfType(json, r'description'), - expiresAt: mapDateTime(json, r'expiresAt', r''), - allowUpload: mapValueOfType(json, r'allowUpload'), - allowDownload: mapValueOfType(json, r'allowDownload'), - showExif: mapValueOfType(json, r'showExif'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SharedLinkEditDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SharedLinkEditDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SharedLinkEditDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SharedLinkEditDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/shared_link_response_dto.dart b/mobile/openapi/lib/model/shared_link_response_dto.dart deleted file mode 100644 index 9e40fd29a6d7c9..00000000000000 --- a/mobile/openapi/lib/model/shared_link_response_dto.dart +++ /dev/null @@ -1,203 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SharedLinkResponseDto { - /// Returns a new [SharedLinkResponseDto] instance. - SharedLinkResponseDto({ - required this.type, - required this.id, - required this.description, - required this.userId, - required this.key, - required this.createdAt, - required this.expiresAt, - this.assets = const [], - this.album, - required this.allowUpload, - required this.allowDownload, - required this.showExif, - }); - - SharedLinkType type; - - String id; - - String? description; - - String userId; - - String key; - - DateTime createdAt; - - DateTime? expiresAt; - - List assets; - - /// - /// 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. - /// - AlbumResponseDto? album; - - bool allowUpload; - - bool allowDownload; - - bool showExif; - - @override - bool operator ==(Object other) => identical(this, other) || other is SharedLinkResponseDto && - other.type == type && - other.id == id && - other.description == description && - other.userId == userId && - other.key == key && - other.createdAt == createdAt && - other.expiresAt == expiresAt && - other.assets == assets && - other.album == album && - other.allowUpload == allowUpload && - other.allowDownload == allowDownload && - other.showExif == showExif; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (type.hashCode) + - (id.hashCode) + - (description == null ? 0 : description!.hashCode) + - (userId.hashCode) + - (key.hashCode) + - (createdAt.hashCode) + - (expiresAt == null ? 0 : expiresAt!.hashCode) + - (assets.hashCode) + - (album == null ? 0 : album!.hashCode) + - (allowUpload.hashCode) + - (allowDownload.hashCode) + - (showExif.hashCode); - - @override - String toString() => 'SharedLinkResponseDto[type=$type, id=$id, description=$description, userId=$userId, key=$key, createdAt=$createdAt, expiresAt=$expiresAt, assets=$assets, album=$album, allowUpload=$allowUpload, allowDownload=$allowDownload, showExif=$showExif]'; - - Map toJson() { - final json = {}; - json[r'type'] = this.type; - json[r'id'] = this.id; - if (this.description != null) { - json[r'description'] = this.description; - } else { - // json[r'description'] = null; - } - json[r'userId'] = this.userId; - json[r'key'] = this.key; - json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); - if (this.expiresAt != null) { - json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String(); - } else { - // json[r'expiresAt'] = null; - } - json[r'assets'] = this.assets; - if (this.album != null) { - json[r'album'] = this.album; - } else { - // json[r'album'] = null; - } - json[r'allowUpload'] = this.allowUpload; - json[r'allowDownload'] = this.allowDownload; - json[r'showExif'] = this.showExif; - return json; - } - - /// Returns a new [SharedLinkResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SharedLinkResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SharedLinkResponseDto( - type: SharedLinkType.fromJson(json[r'type'])!, - id: mapValueOfType(json, r'id')!, - description: mapValueOfType(json, r'description'), - userId: mapValueOfType(json, r'userId')!, - key: mapValueOfType(json, r'key')!, - createdAt: mapDateTime(json, r'createdAt', r'')!, - expiresAt: mapDateTime(json, r'expiresAt', r''), - assets: AssetResponseDto.listFromJson(json[r'assets']), - album: AlbumResponseDto.fromJson(json[r'album']), - allowUpload: mapValueOfType(json, r'allowUpload')!, - allowDownload: mapValueOfType(json, r'allowDownload')!, - showExif: mapValueOfType(json, r'showExif')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SharedLinkResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SharedLinkResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SharedLinkResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SharedLinkResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'type', - 'id', - 'description', - 'userId', - 'key', - 'createdAt', - 'expiresAt', - 'assets', - 'allowUpload', - 'allowDownload', - 'showExif', - }; -} - diff --git a/mobile/openapi/lib/model/shared_link_type.dart b/mobile/openapi/lib/model/shared_link_type.dart deleted file mode 100644 index 937007a3d6313c..00000000000000 --- a/mobile/openapi/lib/model/shared_link_type.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SharedLinkType { - /// Instantiate a new enum with the provided [value]. - const SharedLinkType._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const ALBUM = SharedLinkType._(r'ALBUM'); - static const INDIVIDUAL = SharedLinkType._(r'INDIVIDUAL'); - - /// List of all possible values in this [enum][SharedLinkType]. - static const values = [ - ALBUM, - INDIVIDUAL, - ]; - - static SharedLinkType? fromJson(dynamic value) => SharedLinkTypeTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SharedLinkType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [SharedLinkType] to String, -/// and [decode] dynamic data back to [SharedLinkType]. -class SharedLinkTypeTypeTransformer { - factory SharedLinkTypeTypeTransformer() => _instance ??= const SharedLinkTypeTypeTransformer._(); - - const SharedLinkTypeTypeTransformer._(); - - String encode(SharedLinkType data) => data.value; - - /// Decodes a [dynamic value][data] to a SharedLinkType. - /// - /// 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. - SharedLinkType? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'ALBUM': return SharedLinkType.ALBUM; - case r'INDIVIDUAL': return SharedLinkType.INDIVIDUAL; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [SharedLinkTypeTypeTransformer] instance. - static SharedLinkTypeTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/sign_up_dto.dart b/mobile/openapi/lib/model/sign_up_dto.dart deleted file mode 100644 index c2637b0c0fe479..00000000000000 --- a/mobile/openapi/lib/model/sign_up_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SignUpDto { - /// Returns a new [SignUpDto] instance. - SignUpDto({ - required this.email, - required this.password, - required this.firstName, - required this.lastName, - }); - - String email; - - String password; - - String firstName; - - String lastName; - - @override - bool operator ==(Object other) => identical(this, other) || other is SignUpDto && - other.email == email && - other.password == password && - other.firstName == firstName && - other.lastName == lastName; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (email.hashCode) + - (password.hashCode) + - (firstName.hashCode) + - (lastName.hashCode); - - @override - String toString() => 'SignUpDto[email=$email, password=$password, firstName=$firstName, lastName=$lastName]'; - - Map toJson() { - final json = {}; - json[r'email'] = this.email; - json[r'password'] = this.password; - json[r'firstName'] = this.firstName; - json[r'lastName'] = this.lastName; - return json; - } - - /// Returns a new [SignUpDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SignUpDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SignUpDto( - email: mapValueOfType(json, r'email')!, - password: mapValueOfType(json, r'password')!, - firstName: mapValueOfType(json, r'firstName')!, - lastName: mapValueOfType(json, r'lastName')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SignUpDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SignUpDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SignUpDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SignUpDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'email', - 'password', - 'firstName', - 'lastName', - }; -} - diff --git a/mobile/openapi/lib/model/smart_info_response_dto.dart b/mobile/openapi/lib/model/smart_info_response_dto.dart deleted file mode 100644 index 6af7cf9cfaf3ea..00000000000000 --- a/mobile/openapi/lib/model/smart_info_response_dto.dart +++ /dev/null @@ -1,116 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SmartInfoResponseDto { - /// Returns a new [SmartInfoResponseDto] instance. - SmartInfoResponseDto({ - this.tags = const [], - this.objects = const [], - }); - - List? tags; - - List? objects; - - @override - bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto && - other.tags == tags && - other.objects == objects; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (tags == null ? 0 : tags!.hashCode) + - (objects == null ? 0 : objects!.hashCode); - - @override - String toString() => 'SmartInfoResponseDto[tags=$tags, objects=$objects]'; - - Map toJson() { - final json = {}; - if (this.tags != null) { - json[r'tags'] = this.tags; - } else { - // json[r'tags'] = null; - } - if (this.objects != null) { - json[r'objects'] = this.objects; - } else { - // json[r'objects'] = null; - } - return json; - } - - /// Returns a new [SmartInfoResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SmartInfoResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SmartInfoResponseDto( - tags: json[r'tags'] is Iterable - ? (json[r'tags'] as Iterable).cast().toList(growable: false) - : const [], - objects: json[r'objects'] is Iterable - ? (json[r'objects'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SmartInfoResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SmartInfoResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SmartInfoResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SmartInfoResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/system_config_dto.dart b/mobile/openapi/lib/model/system_config_dto.dart deleted file mode 100644 index 4bcbd2634bba25..00000000000000 --- a/mobile/openapi/lib/model/system_config_dto.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigDto { - /// Returns a new [SystemConfigDto] instance. - SystemConfigDto({ - required this.ffmpeg, - required this.oauth, - required this.passwordLogin, - required this.storageTemplate, - required this.job, - }); - - SystemConfigFFmpegDto ffmpeg; - - SystemConfigOAuthDto oauth; - - SystemConfigPasswordLoginDto passwordLogin; - - SystemConfigStorageTemplateDto storageTemplate; - - SystemConfigJobDto job; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigDto && - other.ffmpeg == ffmpeg && - other.oauth == oauth && - other.passwordLogin == passwordLogin && - other.storageTemplate == storageTemplate && - other.job == job; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (ffmpeg.hashCode) + - (oauth.hashCode) + - (passwordLogin.hashCode) + - (storageTemplate.hashCode) + - (job.hashCode); - - @override - String toString() => 'SystemConfigDto[ffmpeg=$ffmpeg, oauth=$oauth, passwordLogin=$passwordLogin, storageTemplate=$storageTemplate, job=$job]'; - - Map toJson() { - final json = {}; - json[r'ffmpeg'] = this.ffmpeg; - json[r'oauth'] = this.oauth; - json[r'passwordLogin'] = this.passwordLogin; - json[r'storageTemplate'] = this.storageTemplate; - json[r'job'] = this.job; - return json; - } - - /// Returns a new [SystemConfigDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigDto( - ffmpeg: SystemConfigFFmpegDto.fromJson(json[r'ffmpeg'])!, - oauth: SystemConfigOAuthDto.fromJson(json[r'oauth'])!, - passwordLogin: SystemConfigPasswordLoginDto.fromJson(json[r'passwordLogin'])!, - storageTemplate: SystemConfigStorageTemplateDto.fromJson(json[r'storageTemplate'])!, - job: SystemConfigJobDto.fromJson(json[r'job'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'ffmpeg', - 'oauth', - 'passwordLogin', - 'storageTemplate', - 'job', - }; -} - diff --git a/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart b/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart deleted file mode 100644 index 2cb29e0ce6e68b..00000000000000 --- a/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart +++ /dev/null @@ -1,242 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigFFmpegDto { - /// Returns a new [SystemConfigFFmpegDto] instance. - SystemConfigFFmpegDto({ - required this.crf, - required this.threads, - required this.preset, - required this.targetVideoCodec, - required this.targetAudioCodec, - required this.targetResolution, - required this.maxBitrate, - required this.twoPass, - required this.transcode, - }); - - int crf; - - int threads; - - String preset; - - String targetVideoCodec; - - String targetAudioCodec; - - String targetResolution; - - String maxBitrate; - - bool twoPass; - - SystemConfigFFmpegDtoTranscodeEnum transcode; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigFFmpegDto && - other.crf == crf && - other.threads == threads && - other.preset == preset && - other.targetVideoCodec == targetVideoCodec && - other.targetAudioCodec == targetAudioCodec && - other.targetResolution == targetResolution && - other.maxBitrate == maxBitrate && - other.twoPass == twoPass && - other.transcode == transcode; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (crf.hashCode) + - (threads.hashCode) + - (preset.hashCode) + - (targetVideoCodec.hashCode) + - (targetAudioCodec.hashCode) + - (targetResolution.hashCode) + - (maxBitrate.hashCode) + - (twoPass.hashCode) + - (transcode.hashCode); - - @override - String toString() => 'SystemConfigFFmpegDto[crf=$crf, threads=$threads, preset=$preset, targetVideoCodec=$targetVideoCodec, targetAudioCodec=$targetAudioCodec, targetResolution=$targetResolution, maxBitrate=$maxBitrate, twoPass=$twoPass, transcode=$transcode]'; - - Map toJson() { - final json = {}; - json[r'crf'] = this.crf; - json[r'threads'] = this.threads; - json[r'preset'] = this.preset; - json[r'targetVideoCodec'] = this.targetVideoCodec; - json[r'targetAudioCodec'] = this.targetAudioCodec; - json[r'targetResolution'] = this.targetResolution; - json[r'maxBitrate'] = this.maxBitrate; - json[r'twoPass'] = this.twoPass; - json[r'transcode'] = this.transcode; - return json; - } - - /// Returns a new [SystemConfigFFmpegDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigFFmpegDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigFFmpegDto( - crf: mapValueOfType(json, r'crf')!, - threads: mapValueOfType(json, r'threads')!, - preset: mapValueOfType(json, r'preset')!, - targetVideoCodec: mapValueOfType(json, r'targetVideoCodec')!, - targetAudioCodec: mapValueOfType(json, r'targetAudioCodec')!, - targetResolution: mapValueOfType(json, r'targetResolution')!, - maxBitrate: mapValueOfType(json, r'maxBitrate')!, - twoPass: mapValueOfType(json, r'twoPass')!, - transcode: SystemConfigFFmpegDtoTranscodeEnum.fromJson(json[r'transcode'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigFFmpegDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigFFmpegDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigFFmpegDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigFFmpegDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'crf', - 'threads', - 'preset', - 'targetVideoCodec', - 'targetAudioCodec', - 'targetResolution', - 'maxBitrate', - 'twoPass', - 'transcode', - }; -} - - -class SystemConfigFFmpegDtoTranscodeEnum { - /// Instantiate a new enum with the provided [value]. - const SystemConfigFFmpegDtoTranscodeEnum._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const all = SystemConfigFFmpegDtoTranscodeEnum._(r'all'); - static const optimal = SystemConfigFFmpegDtoTranscodeEnum._(r'optimal'); - static const required_ = SystemConfigFFmpegDtoTranscodeEnum._(r'required'); - static const disabled = SystemConfigFFmpegDtoTranscodeEnum._(r'disabled'); - - /// List of all possible values in this [enum][SystemConfigFFmpegDtoTranscodeEnum]. - static const values = [ - all, - optimal, - required_, - disabled, - ]; - - static SystemConfigFFmpegDtoTranscodeEnum? fromJson(dynamic value) => SystemConfigFFmpegDtoTranscodeEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigFFmpegDtoTranscodeEnum.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [SystemConfigFFmpegDtoTranscodeEnum] to String, -/// and [decode] dynamic data back to [SystemConfigFFmpegDtoTranscodeEnum]. -class SystemConfigFFmpegDtoTranscodeEnumTypeTransformer { - factory SystemConfigFFmpegDtoTranscodeEnumTypeTransformer() => _instance ??= const SystemConfigFFmpegDtoTranscodeEnumTypeTransformer._(); - - const SystemConfigFFmpegDtoTranscodeEnumTypeTransformer._(); - - String encode(SystemConfigFFmpegDtoTranscodeEnum data) => data.value; - - /// Decodes a [dynamic value][data] to a SystemConfigFFmpegDtoTranscodeEnum. - /// - /// 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. - SystemConfigFFmpegDtoTranscodeEnum? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'all': return SystemConfigFFmpegDtoTranscodeEnum.all; - case r'optimal': return SystemConfigFFmpegDtoTranscodeEnum.optimal; - case r'required': return SystemConfigFFmpegDtoTranscodeEnum.required_; - case r'disabled': return SystemConfigFFmpegDtoTranscodeEnum.disabled; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [SystemConfigFFmpegDtoTranscodeEnumTypeTransformer] instance. - static SystemConfigFFmpegDtoTranscodeEnumTypeTransformer? _instance; -} - - diff --git a/mobile/openapi/lib/model/system_config_job_dto.dart b/mobile/openapi/lib/model/system_config_job_dto.dart deleted file mode 100644 index bc667a3e769340..00000000000000 --- a/mobile/openapi/lib/model/system_config_job_dto.dart +++ /dev/null @@ -1,170 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigJobDto { - /// Returns a new [SystemConfigJobDto] instance. - SystemConfigJobDto({ - required this.thumbnailGeneration, - required this.metadataExtraction, - required this.videoConversion, - required this.objectTagging, - required this.clipEncoding, - required this.storageTemplateMigration, - required this.backgroundTask, - required this.search, - required this.recognizeFaces, - required this.sidecar, - }); - - JobSettingsDto thumbnailGeneration; - - JobSettingsDto metadataExtraction; - - JobSettingsDto videoConversion; - - JobSettingsDto objectTagging; - - JobSettingsDto clipEncoding; - - JobSettingsDto storageTemplateMigration; - - JobSettingsDto backgroundTask; - - JobSettingsDto search; - - JobSettingsDto recognizeFaces; - - JobSettingsDto sidecar; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto && - other.thumbnailGeneration == thumbnailGeneration && - other.metadataExtraction == metadataExtraction && - other.videoConversion == videoConversion && - other.objectTagging == objectTagging && - other.clipEncoding == clipEncoding && - other.storageTemplateMigration == storageTemplateMigration && - other.backgroundTask == backgroundTask && - other.search == search && - other.recognizeFaces == recognizeFaces && - other.sidecar == sidecar; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (thumbnailGeneration.hashCode) + - (metadataExtraction.hashCode) + - (videoConversion.hashCode) + - (objectTagging.hashCode) + - (clipEncoding.hashCode) + - (storageTemplateMigration.hashCode) + - (backgroundTask.hashCode) + - (search.hashCode) + - (recognizeFaces.hashCode) + - (sidecar.hashCode); - - @override - String toString() => 'SystemConfigJobDto[thumbnailGeneration=$thumbnailGeneration, metadataExtraction=$metadataExtraction, videoConversion=$videoConversion, objectTagging=$objectTagging, clipEncoding=$clipEncoding, storageTemplateMigration=$storageTemplateMigration, backgroundTask=$backgroundTask, search=$search, recognizeFaces=$recognizeFaces, sidecar=$sidecar]'; - - Map toJson() { - final json = {}; - json[r'thumbnailGeneration'] = this.thumbnailGeneration; - json[r'metadataExtraction'] = this.metadataExtraction; - json[r'videoConversion'] = this.videoConversion; - json[r'objectTagging'] = this.objectTagging; - json[r'clipEncoding'] = this.clipEncoding; - json[r'storageTemplateMigration'] = this.storageTemplateMigration; - json[r'backgroundTask'] = this.backgroundTask; - json[r'search'] = this.search; - json[r'recognizeFaces'] = this.recognizeFaces; - json[r'sidecar'] = this.sidecar; - return json; - } - - /// Returns a new [SystemConfigJobDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigJobDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigJobDto( - thumbnailGeneration: JobSettingsDto.fromJson(json[r'thumbnailGeneration'])!, - metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!, - videoConversion: JobSettingsDto.fromJson(json[r'videoConversion'])!, - objectTagging: JobSettingsDto.fromJson(json[r'objectTagging'])!, - clipEncoding: JobSettingsDto.fromJson(json[r'clipEncoding'])!, - storageTemplateMigration: JobSettingsDto.fromJson(json[r'storageTemplateMigration'])!, - backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!, - search: JobSettingsDto.fromJson(json[r'search'])!, - recognizeFaces: JobSettingsDto.fromJson(json[r'recognizeFaces'])!, - sidecar: JobSettingsDto.fromJson(json[r'sidecar'])!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigJobDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigJobDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigJobDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigJobDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'thumbnailGeneration', - 'metadataExtraction', - 'videoConversion', - 'objectTagging', - 'clipEncoding', - 'storageTemplateMigration', - 'backgroundTask', - 'search', - 'recognizeFaces', - 'sidecar', - }; -} - diff --git a/mobile/openapi/lib/model/system_config_o_auth_dto.dart b/mobile/openapi/lib/model/system_config_o_auth_dto.dart deleted file mode 100644 index 364b99fd2f7257..00000000000000 --- a/mobile/openapi/lib/model/system_config_o_auth_dto.dart +++ /dev/null @@ -1,170 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigOAuthDto { - /// Returns a new [SystemConfigOAuthDto] instance. - SystemConfigOAuthDto({ - required this.enabled, - required this.issuerUrl, - required this.clientId, - required this.clientSecret, - required this.scope, - required this.buttonText, - required this.autoRegister, - required this.autoLaunch, - required this.mobileOverrideEnabled, - required this.mobileRedirectUri, - }); - - bool enabled; - - String issuerUrl; - - String clientId; - - String clientSecret; - - String scope; - - String buttonText; - - bool autoRegister; - - bool autoLaunch; - - bool mobileOverrideEnabled; - - String mobileRedirectUri; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigOAuthDto && - other.enabled == enabled && - other.issuerUrl == issuerUrl && - other.clientId == clientId && - other.clientSecret == clientSecret && - other.scope == scope && - other.buttonText == buttonText && - other.autoRegister == autoRegister && - other.autoLaunch == autoLaunch && - other.mobileOverrideEnabled == mobileOverrideEnabled && - other.mobileRedirectUri == mobileRedirectUri; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (enabled.hashCode) + - (issuerUrl.hashCode) + - (clientId.hashCode) + - (clientSecret.hashCode) + - (scope.hashCode) + - (buttonText.hashCode) + - (autoRegister.hashCode) + - (autoLaunch.hashCode) + - (mobileOverrideEnabled.hashCode) + - (mobileRedirectUri.hashCode); - - @override - String toString() => 'SystemConfigOAuthDto[enabled=$enabled, issuerUrl=$issuerUrl, clientId=$clientId, clientSecret=$clientSecret, scope=$scope, buttonText=$buttonText, autoRegister=$autoRegister, autoLaunch=$autoLaunch, mobileOverrideEnabled=$mobileOverrideEnabled, mobileRedirectUri=$mobileRedirectUri]'; - - Map toJson() { - final json = {}; - json[r'enabled'] = this.enabled; - json[r'issuerUrl'] = this.issuerUrl; - json[r'clientId'] = this.clientId; - json[r'clientSecret'] = this.clientSecret; - json[r'scope'] = this.scope; - json[r'buttonText'] = this.buttonText; - json[r'autoRegister'] = this.autoRegister; - json[r'autoLaunch'] = this.autoLaunch; - json[r'mobileOverrideEnabled'] = this.mobileOverrideEnabled; - json[r'mobileRedirectUri'] = this.mobileRedirectUri; - return json; - } - - /// Returns a new [SystemConfigOAuthDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigOAuthDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigOAuthDto( - enabled: mapValueOfType(json, r'enabled')!, - issuerUrl: mapValueOfType(json, r'issuerUrl')!, - clientId: mapValueOfType(json, r'clientId')!, - clientSecret: mapValueOfType(json, r'clientSecret')!, - scope: mapValueOfType(json, r'scope')!, - buttonText: mapValueOfType(json, r'buttonText')!, - autoRegister: mapValueOfType(json, r'autoRegister')!, - autoLaunch: mapValueOfType(json, r'autoLaunch')!, - mobileOverrideEnabled: mapValueOfType(json, r'mobileOverrideEnabled')!, - mobileRedirectUri: mapValueOfType(json, r'mobileRedirectUri')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigOAuthDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigOAuthDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigOAuthDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigOAuthDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'enabled', - 'issuerUrl', - 'clientId', - 'clientSecret', - 'scope', - 'buttonText', - 'autoRegister', - 'autoLaunch', - 'mobileOverrideEnabled', - 'mobileRedirectUri', - }; -} - diff --git a/mobile/openapi/lib/model/system_config_password_login_dto.dart b/mobile/openapi/lib/model/system_config_password_login_dto.dart deleted file mode 100644 index 1e9dc20cb8db34..00000000000000 --- a/mobile/openapi/lib/model/system_config_password_login_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigPasswordLoginDto { - /// Returns a new [SystemConfigPasswordLoginDto] instance. - SystemConfigPasswordLoginDto({ - required this.enabled, - }); - - bool enabled; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigPasswordLoginDto && - other.enabled == enabled; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (enabled.hashCode); - - @override - String toString() => 'SystemConfigPasswordLoginDto[enabled=$enabled]'; - - Map toJson() { - final json = {}; - json[r'enabled'] = this.enabled; - return json; - } - - /// Returns a new [SystemConfigPasswordLoginDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigPasswordLoginDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigPasswordLoginDto( - enabled: mapValueOfType(json, r'enabled')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigPasswordLoginDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigPasswordLoginDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigPasswordLoginDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigPasswordLoginDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'enabled', - }; -} - diff --git a/mobile/openapi/lib/model/system_config_storage_template_dto.dart b/mobile/openapi/lib/model/system_config_storage_template_dto.dart deleted file mode 100644 index 604fe1256e0009..00000000000000 --- a/mobile/openapi/lib/model/system_config_storage_template_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigStorageTemplateDto { - /// Returns a new [SystemConfigStorageTemplateDto] instance. - SystemConfigStorageTemplateDto({ - required this.template, - }); - - String template; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigStorageTemplateDto && - other.template == template; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (template.hashCode); - - @override - String toString() => 'SystemConfigStorageTemplateDto[template=$template]'; - - Map toJson() { - final json = {}; - json[r'template'] = this.template; - return json; - } - - /// Returns a new [SystemConfigStorageTemplateDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigStorageTemplateDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigStorageTemplateDto( - template: mapValueOfType(json, r'template')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigStorageTemplateDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigStorageTemplateDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigStorageTemplateDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigStorageTemplateDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'template', - }; -} - diff --git a/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart b/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart deleted file mode 100644 index 81ac59f49c66db..00000000000000 --- a/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart +++ /dev/null @@ -1,160 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 SystemConfigTemplateStorageOptionDto { - /// Returns a new [SystemConfigTemplateStorageOptionDto] instance. - SystemConfigTemplateStorageOptionDto({ - this.yearOptions = const [], - this.monthOptions = const [], - this.dayOptions = const [], - this.hourOptions = const [], - this.minuteOptions = const [], - this.secondOptions = const [], - this.presetOptions = const [], - }); - - List yearOptions; - - List monthOptions; - - List dayOptions; - - List hourOptions; - - List minuteOptions; - - List secondOptions; - - List presetOptions; - - @override - bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto && - other.yearOptions == yearOptions && - other.monthOptions == monthOptions && - other.dayOptions == dayOptions && - other.hourOptions == hourOptions && - other.minuteOptions == minuteOptions && - other.secondOptions == secondOptions && - other.presetOptions == presetOptions; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (yearOptions.hashCode) + - (monthOptions.hashCode) + - (dayOptions.hashCode) + - (hourOptions.hashCode) + - (minuteOptions.hashCode) + - (secondOptions.hashCode) + - (presetOptions.hashCode); - - @override - String toString() => 'SystemConfigTemplateStorageOptionDto[yearOptions=$yearOptions, monthOptions=$monthOptions, dayOptions=$dayOptions, hourOptions=$hourOptions, minuteOptions=$minuteOptions, secondOptions=$secondOptions, presetOptions=$presetOptions]'; - - Map toJson() { - final json = {}; - json[r'yearOptions'] = this.yearOptions; - json[r'monthOptions'] = this.monthOptions; - json[r'dayOptions'] = this.dayOptions; - json[r'hourOptions'] = this.hourOptions; - json[r'minuteOptions'] = this.minuteOptions; - json[r'secondOptions'] = this.secondOptions; - json[r'presetOptions'] = this.presetOptions; - return json; - } - - /// Returns a new [SystemConfigTemplateStorageOptionDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SystemConfigTemplateStorageOptionDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return SystemConfigTemplateStorageOptionDto( - yearOptions: json[r'yearOptions'] is Iterable - ? (json[r'yearOptions'] as Iterable).cast().toList(growable: false) - : const [], - monthOptions: json[r'monthOptions'] is Iterable - ? (json[r'monthOptions'] as Iterable).cast().toList(growable: false) - : const [], - dayOptions: json[r'dayOptions'] is Iterable - ? (json[r'dayOptions'] as Iterable).cast().toList(growable: false) - : const [], - hourOptions: json[r'hourOptions'] is Iterable - ? (json[r'hourOptions'] as Iterable).cast().toList(growable: false) - : const [], - minuteOptions: json[r'minuteOptions'] is Iterable - ? (json[r'minuteOptions'] as Iterable).cast().toList(growable: false) - : const [], - secondOptions: json[r'secondOptions'] is Iterable - ? (json[r'secondOptions'] as Iterable).cast().toList(growable: false) - : const [], - presetOptions: json[r'presetOptions'] is Iterable - ? (json[r'presetOptions'] as Iterable).cast().toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SystemConfigTemplateStorageOptionDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SystemConfigTemplateStorageOptionDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SystemConfigTemplateStorageOptionDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SystemConfigTemplateStorageOptionDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'yearOptions', - 'monthOptions', - 'dayOptions', - 'hourOptions', - 'minuteOptions', - 'secondOptions', - 'presetOptions', - }; -} - diff --git a/mobile/openapi/lib/model/tag_response_dto.dart b/mobile/openapi/lib/model/tag_response_dto.dart deleted file mode 100644 index d7eee99a4a7e5d..00000000000000 --- a/mobile/openapi/lib/model/tag_response_dto.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 TagResponseDto { - /// Returns a new [TagResponseDto] instance. - TagResponseDto({ - required this.type, - required this.id, - required this.name, - required this.userId, - }); - - TagTypeEnum type; - - String id; - - String name; - - String userId; - - @override - bool operator ==(Object other) => identical(this, other) || other is TagResponseDto && - other.type == type && - other.id == id && - other.name == name && - other.userId == userId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (type.hashCode) + - (id.hashCode) + - (name.hashCode) + - (userId.hashCode); - - @override - String toString() => 'TagResponseDto[type=$type, id=$id, name=$name, userId=$userId]'; - - Map toJson() { - final json = {}; - json[r'type'] = this.type; - json[r'id'] = this.id; - json[r'name'] = this.name; - json[r'userId'] = this.userId; - return json; - } - - /// Returns a new [TagResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static TagResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return TagResponseDto( - type: TagTypeEnum.fromJson(json[r'type'])!, - id: mapValueOfType(json, r'id')!, - name: mapValueOfType(json, r'name')!, - userId: mapValueOfType(json, r'userId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TagResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = TagResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of TagResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = TagResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'type', - 'id', - 'name', - 'userId', - }; -} - diff --git a/mobile/openapi/lib/model/tag_type_enum.dart b/mobile/openapi/lib/model/tag_type_enum.dart deleted file mode 100644 index b0db6bffe5f2dc..00000000000000 --- a/mobile/openapi/lib/model/tag_type_enum.dart +++ /dev/null @@ -1,88 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 TagTypeEnum { - /// Instantiate a new enum with the provided [value]. - const TagTypeEnum._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const OBJECT = TagTypeEnum._(r'OBJECT'); - static const FACE = TagTypeEnum._(r'FACE'); - static const CUSTOM = TagTypeEnum._(r'CUSTOM'); - - /// List of all possible values in this [enum][TagTypeEnum]. - static const values = [ - OBJECT, - FACE, - CUSTOM, - ]; - - static TagTypeEnum? fromJson(dynamic value) => TagTypeEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TagTypeEnum.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [TagTypeEnum] to String, -/// and [decode] dynamic data back to [TagTypeEnum]. -class TagTypeEnumTypeTransformer { - factory TagTypeEnumTypeTransformer() => _instance ??= const TagTypeEnumTypeTransformer._(); - - const TagTypeEnumTypeTransformer._(); - - String encode(TagTypeEnum data) => data.value; - - /// Decodes a [dynamic value][data] to a TagTypeEnum. - /// - /// 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. - TagTypeEnum? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'OBJECT': return TagTypeEnum.OBJECT; - case r'FACE': return TagTypeEnum.FACE; - case r'CUSTOM': return TagTypeEnum.CUSTOM; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [TagTypeEnumTypeTransformer] instance. - static TagTypeEnumTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/thumbnail_format.dart b/mobile/openapi/lib/model/thumbnail_format.dart deleted file mode 100644 index f8d51db2d347c9..00000000000000 --- a/mobile/openapi/lib/model/thumbnail_format.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ThumbnailFormat { - /// Instantiate a new enum with the provided [value]. - const ThumbnailFormat._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const JPEG = ThumbnailFormat._(r'JPEG'); - static const WEBP = ThumbnailFormat._(r'WEBP'); - - /// List of all possible values in this [enum][ThumbnailFormat]. - static const values = [ - JPEG, - WEBP, - ]; - - static ThumbnailFormat? fromJson(dynamic value) => ThumbnailFormatTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ThumbnailFormat.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [ThumbnailFormat] to String, -/// and [decode] dynamic data back to [ThumbnailFormat]. -class ThumbnailFormatTypeTransformer { - factory ThumbnailFormatTypeTransformer() => _instance ??= const ThumbnailFormatTypeTransformer._(); - - const ThumbnailFormatTypeTransformer._(); - - String encode(ThumbnailFormat data) => data.value; - - /// Decodes a [dynamic value][data] to a ThumbnailFormat. - /// - /// 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. - ThumbnailFormat? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'JPEG': return ThumbnailFormat.JPEG; - case r'WEBP': return ThumbnailFormat.WEBP; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [ThumbnailFormatTypeTransformer] instance. - static ThumbnailFormatTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/time_group_enum.dart b/mobile/openapi/lib/model/time_group_enum.dart deleted file mode 100644 index c25e80dc99d926..00000000000000 --- a/mobile/openapi/lib/model/time_group_enum.dart +++ /dev/null @@ -1,85 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 TimeGroupEnum { - /// Instantiate a new enum with the provided [value]. - const TimeGroupEnum._(this.value); - - /// The underlying value of this enum member. - final String value; - - @override - String toString() => value; - - String toJson() => value; - - static const day = TimeGroupEnum._(r'day'); - static const month = TimeGroupEnum._(r'month'); - - /// List of all possible values in this [enum][TimeGroupEnum]. - static const values = [ - day, - month, - ]; - - static TimeGroupEnum? fromJson(dynamic value) => TimeGroupEnumTypeTransformer().decode(value); - - static List? listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = TimeGroupEnum.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } -} - -/// Transformation class that can [encode] an instance of [TimeGroupEnum] to String, -/// and [decode] dynamic data back to [TimeGroupEnum]. -class TimeGroupEnumTypeTransformer { - factory TimeGroupEnumTypeTransformer() => _instance ??= const TimeGroupEnumTypeTransformer._(); - - const TimeGroupEnumTypeTransformer._(); - - String encode(TimeGroupEnum data) => data.value; - - /// Decodes a [dynamic value][data] to a TimeGroupEnum. - /// - /// 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. - TimeGroupEnum? decode(dynamic data, {bool allowNull = true}) { - if (data != null) { - switch (data) { - case r'day': return TimeGroupEnum.day; - case r'month': return TimeGroupEnum.month; - default: - if (!allowNull) { - throw ArgumentError('Unknown enum value to decode: $data'); - } - } - } - return null; - } - - /// Singleton [TimeGroupEnumTypeTransformer] instance. - static TimeGroupEnumTypeTransformer? _instance; -} - diff --git a/mobile/openapi/lib/model/update_album_dto.dart b/mobile/openapi/lib/model/update_album_dto.dart deleted file mode 100644 index 8fdd75b2d5a387..00000000000000 --- a/mobile/openapi/lib/model/update_album_dto.dart +++ /dev/null @@ -1,124 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UpdateAlbumDto { - /// Returns a new [UpdateAlbumDto] instance. - UpdateAlbumDto({ - this.albumName, - this.albumThumbnailAssetId, - }); - - /// - /// 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? albumName; - - /// - /// 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? albumThumbnailAssetId; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumDto && - other.albumName == albumName && - other.albumThumbnailAssetId == albumThumbnailAssetId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (albumName == null ? 0 : albumName!.hashCode) + - (albumThumbnailAssetId == null ? 0 : albumThumbnailAssetId!.hashCode); - - @override - String toString() => 'UpdateAlbumDto[albumName=$albumName, albumThumbnailAssetId=$albumThumbnailAssetId]'; - - Map toJson() { - final json = {}; - if (this.albumName != null) { - json[r'albumName'] = this.albumName; - } else { - // json[r'albumName'] = null; - } - if (this.albumThumbnailAssetId != null) { - json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId; - } else { - // json[r'albumThumbnailAssetId'] = null; - } - return json; - } - - /// Returns a new [UpdateAlbumDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateAlbumDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UpdateAlbumDto( - albumName: mapValueOfType(json, r'albumName'), - albumThumbnailAssetId: mapValueOfType(json, r'albumThumbnailAssetId'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateAlbumDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateAlbumDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateAlbumDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateAlbumDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/update_asset_dto.dart b/mobile/openapi/lib/model/update_asset_dto.dart deleted file mode 100644 index 6b2916b5055e01..00000000000000 --- a/mobile/openapi/lib/model/update_asset_dto.dart +++ /dev/null @@ -1,150 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UpdateAssetDto { - /// Returns a new [UpdateAssetDto] instance. - UpdateAssetDto({ - this.tagIds = const [], - this.isFavorite, - this.isArchived, - this.description, - }); - - List tagIds; - - /// - /// 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. - /// - bool? isArchived; - - /// - /// 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; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateAssetDto && - other.tagIds == tagIds && - other.isFavorite == isFavorite && - other.isArchived == isArchived && - other.description == description; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (tagIds.hashCode) + - (isFavorite == null ? 0 : isFavorite!.hashCode) + - (isArchived == null ? 0 : isArchived!.hashCode) + - (description == null ? 0 : description!.hashCode); - - @override - String toString() => 'UpdateAssetDto[tagIds=$tagIds, isFavorite=$isFavorite, isArchived=$isArchived, description=$description]'; - - Map toJson() { - final json = {}; - json[r'tagIds'] = this.tagIds; - if (this.isFavorite != null) { - json[r'isFavorite'] = this.isFavorite; - } else { - // json[r'isFavorite'] = null; - } - if (this.isArchived != null) { - json[r'isArchived'] = this.isArchived; - } else { - // json[r'isArchived'] = null; - } - if (this.description != null) { - json[r'description'] = this.description; - } else { - // json[r'description'] = null; - } - return json; - } - - /// Returns a new [UpdateAssetDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateAssetDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UpdateAssetDto( - tagIds: json[r'tagIds'] is Iterable - ? (json[r'tagIds'] as Iterable).cast().toList(growable: false) - : const [], - isFavorite: mapValueOfType(json, r'isFavorite'), - isArchived: mapValueOfType(json, r'isArchived'), - description: mapValueOfType(json, r'description'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateAssetDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateAssetDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateAssetDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateAssetDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/update_tag_dto.dart b/mobile/openapi/lib/model/update_tag_dto.dart deleted file mode 100644 index f1ea738c02335a..00000000000000 --- a/mobile/openapi/lib/model/update_tag_dto.dart +++ /dev/null @@ -1,107 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UpdateTagDto { - /// Returns a new [UpdateTagDto] instance. - UpdateTagDto({ - this.name, - }); - - /// - /// 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; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateTagDto && - other.name == name; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (name == null ? 0 : name!.hashCode); - - @override - String toString() => 'UpdateTagDto[name=$name]'; - - Map toJson() { - final json = {}; - if (this.name != null) { - json[r'name'] = this.name; - } else { - // json[r'name'] = null; - } - return json; - } - - /// Returns a new [UpdateTagDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateTagDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UpdateTagDto( - name: mapValueOfType(json, r'name'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateTagDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateTagDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateTagDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateTagDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - }; -} - diff --git a/mobile/openapi/lib/model/update_user_dto.dart b/mobile/openapi/lib/model/update_user_dto.dart deleted file mode 100644 index bf655ead3412d9..00000000000000 --- a/mobile/openapi/lib/model/update_user_dto.dart +++ /dev/null @@ -1,234 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UpdateUserDto { - /// Returns a new [UpdateUserDto] instance. - UpdateUserDto({ - required this.id, - this.email, - this.password, - this.firstName, - this.lastName, - this.storageLabel, - this.externalPath, - this.isAdmin, - this.shouldChangePassword, - }); - - 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. - /// - String? email; - - /// - /// 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? password; - - /// - /// 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? firstName; - - /// - /// 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? lastName; - - /// - /// 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? storageLabel; - - /// - /// 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? externalPath; - - /// - /// 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? isAdmin; - - /// - /// 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? shouldChangePassword; - - @override - bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto && - other.id == id && - other.email == email && - other.password == password && - other.firstName == firstName && - other.lastName == lastName && - other.storageLabel == storageLabel && - other.externalPath == externalPath && - other.isAdmin == isAdmin && - other.shouldChangePassword == shouldChangePassword; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (email == null ? 0 : email!.hashCode) + - (password == null ? 0 : password!.hashCode) + - (firstName == null ? 0 : firstName!.hashCode) + - (lastName == null ? 0 : lastName!.hashCode) + - (storageLabel == null ? 0 : storageLabel!.hashCode) + - (externalPath == null ? 0 : externalPath!.hashCode) + - (isAdmin == null ? 0 : isAdmin!.hashCode) + - (shouldChangePassword == null ? 0 : shouldChangePassword!.hashCode); - - @override - String toString() => 'UpdateUserDto[id=$id, email=$email, password=$password, firstName=$firstName, lastName=$lastName, storageLabel=$storageLabel, externalPath=$externalPath, isAdmin=$isAdmin, shouldChangePassword=$shouldChangePassword]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - if (this.email != null) { - json[r'email'] = this.email; - } else { - // json[r'email'] = null; - } - if (this.password != null) { - json[r'password'] = this.password; - } else { - // json[r'password'] = null; - } - if (this.firstName != null) { - json[r'firstName'] = this.firstName; - } else { - // json[r'firstName'] = null; - } - if (this.lastName != null) { - json[r'lastName'] = this.lastName; - } else { - // json[r'lastName'] = null; - } - if (this.storageLabel != null) { - json[r'storageLabel'] = this.storageLabel; - } else { - // json[r'storageLabel'] = null; - } - if (this.externalPath != null) { - json[r'externalPath'] = this.externalPath; - } else { - // json[r'externalPath'] = null; - } - if (this.isAdmin != null) { - json[r'isAdmin'] = this.isAdmin; - } else { - // json[r'isAdmin'] = null; - } - if (this.shouldChangePassword != null) { - json[r'shouldChangePassword'] = this.shouldChangePassword; - } else { - // json[r'shouldChangePassword'] = null; - } - return json; - } - - /// Returns a new [UpdateUserDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UpdateUserDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UpdateUserDto( - id: mapValueOfType(json, r'id')!, - email: mapValueOfType(json, r'email'), - password: mapValueOfType(json, r'password'), - firstName: mapValueOfType(json, r'firstName'), - lastName: mapValueOfType(json, r'lastName'), - storageLabel: mapValueOfType(json, r'storageLabel'), - externalPath: mapValueOfType(json, r'externalPath'), - isAdmin: mapValueOfType(json, r'isAdmin'), - shouldChangePassword: mapValueOfType(json, r'shouldChangePassword'), - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UpdateUserDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UpdateUserDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UpdateUserDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UpdateUserDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - }; -} - diff --git a/mobile/openapi/lib/model/usage_by_user_dto.dart b/mobile/openapi/lib/model/usage_by_user_dto.dart deleted file mode 100644 index a1def6e1e996f4..00000000000000 --- a/mobile/openapi/lib/model/usage_by_user_dto.dart +++ /dev/null @@ -1,138 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UsageByUserDto { - /// Returns a new [UsageByUserDto] instance. - UsageByUserDto({ - required this.userId, - required this.userFirstName, - required this.userLastName, - required this.photos, - required this.videos, - required this.usage, - }); - - String userId; - - String userFirstName; - - String userLastName; - - int photos; - - int videos; - - int usage; - - @override - bool operator ==(Object other) => identical(this, other) || other is UsageByUserDto && - other.userId == userId && - other.userFirstName == userFirstName && - other.userLastName == userLastName && - other.photos == photos && - other.videos == videos && - other.usage == usage; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (userId.hashCode) + - (userFirstName.hashCode) + - (userLastName.hashCode) + - (photos.hashCode) + - (videos.hashCode) + - (usage.hashCode); - - @override - String toString() => 'UsageByUserDto[userId=$userId, userFirstName=$userFirstName, userLastName=$userLastName, photos=$photos, videos=$videos, usage=$usage]'; - - Map toJson() { - final json = {}; - json[r'userId'] = this.userId; - json[r'userFirstName'] = this.userFirstName; - json[r'userLastName'] = this.userLastName; - json[r'photos'] = this.photos; - json[r'videos'] = this.videos; - json[r'usage'] = this.usage; - return json; - } - - /// Returns a new [UsageByUserDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UsageByUserDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UsageByUserDto( - userId: mapValueOfType(json, r'userId')!, - userFirstName: mapValueOfType(json, r'userFirstName')!, - userLastName: mapValueOfType(json, r'userLastName')!, - photos: mapValueOfType(json, r'photos')!, - videos: mapValueOfType(json, r'videos')!, - usage: mapValueOfType(json, r'usage')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UsageByUserDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UsageByUserDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UsageByUserDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UsageByUserDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'userId', - 'userFirstName', - 'userLastName', - 'photos', - 'videos', - 'usage', - }; -} - diff --git a/mobile/openapi/lib/model/user_count_response_dto.dart b/mobile/openapi/lib/model/user_count_response_dto.dart deleted file mode 100644 index ecdcd6e468fe69..00000000000000 --- a/mobile/openapi/lib/model/user_count_response_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UserCountResponseDto { - /// Returns a new [UserCountResponseDto] instance. - UserCountResponseDto({ - required this.userCount, - }); - - int userCount; - - @override - bool operator ==(Object other) => identical(this, other) || other is UserCountResponseDto && - other.userCount == userCount; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (userCount.hashCode); - - @override - String toString() => 'UserCountResponseDto[userCount=$userCount]'; - - Map toJson() { - final json = {}; - json[r'userCount'] = this.userCount; - return json; - } - - /// Returns a new [UserCountResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UserCountResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UserCountResponseDto( - userCount: mapValueOfType(json, r'userCount')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UserCountResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UserCountResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UserCountResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UserCountResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'userCount', - }; -} - diff --git a/mobile/openapi/lib/model/user_response_dto.dart b/mobile/openapi/lib/model/user_response_dto.dart deleted file mode 100644 index 29fd788f53c08b..00000000000000 --- a/mobile/openapi/lib/model/user_response_dto.dart +++ /dev/null @@ -1,206 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 UserResponseDto { - /// Returns a new [UserResponseDto] instance. - UserResponseDto({ - required this.id, - required this.email, - required this.firstName, - required this.lastName, - required this.storageLabel, - required this.externalPath, - required this.profileImagePath, - required this.shouldChangePassword, - required this.isAdmin, - required this.createdAt, - required this.deletedAt, - required this.updatedAt, - required this.oauthId, - }); - - String id; - - String email; - - String firstName; - - String lastName; - - String? storageLabel; - - String? externalPath; - - String profileImagePath; - - bool shouldChangePassword; - - bool isAdmin; - - DateTime createdAt; - - DateTime? deletedAt; - - DateTime updatedAt; - - String oauthId; - - @override - bool operator ==(Object other) => identical(this, other) || other is UserResponseDto && - other.id == id && - other.email == email && - other.firstName == firstName && - other.lastName == lastName && - other.storageLabel == storageLabel && - other.externalPath == externalPath && - other.profileImagePath == profileImagePath && - other.shouldChangePassword == shouldChangePassword && - other.isAdmin == isAdmin && - other.createdAt == createdAt && - other.deletedAt == deletedAt && - other.updatedAt == updatedAt && - other.oauthId == oauthId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (email.hashCode) + - (firstName.hashCode) + - (lastName.hashCode) + - (storageLabel == null ? 0 : storageLabel!.hashCode) + - (externalPath == null ? 0 : externalPath!.hashCode) + - (profileImagePath.hashCode) + - (shouldChangePassword.hashCode) + - (isAdmin.hashCode) + - (createdAt.hashCode) + - (deletedAt == null ? 0 : deletedAt!.hashCode) + - (updatedAt.hashCode) + - (oauthId.hashCode); - - @override - String toString() => 'UserResponseDto[id=$id, email=$email, firstName=$firstName, lastName=$lastName, storageLabel=$storageLabel, externalPath=$externalPath, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, isAdmin=$isAdmin, createdAt=$createdAt, deletedAt=$deletedAt, updatedAt=$updatedAt, oauthId=$oauthId]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'email'] = this.email; - json[r'firstName'] = this.firstName; - json[r'lastName'] = this.lastName; - if (this.storageLabel != null) { - json[r'storageLabel'] = this.storageLabel; - } else { - // json[r'storageLabel'] = null; - } - if (this.externalPath != null) { - json[r'externalPath'] = this.externalPath; - } else { - // json[r'externalPath'] = null; - } - json[r'profileImagePath'] = this.profileImagePath; - json[r'shouldChangePassword'] = this.shouldChangePassword; - json[r'isAdmin'] = this.isAdmin; - json[r'createdAt'] = this.createdAt.toUtc().toIso8601String(); - if (this.deletedAt != null) { - json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String(); - } else { - // json[r'deletedAt'] = null; - } - json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String(); - json[r'oauthId'] = this.oauthId; - return json; - } - - /// Returns a new [UserResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static UserResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return UserResponseDto( - id: mapValueOfType(json, r'id')!, - email: mapValueOfType(json, r'email')!, - firstName: mapValueOfType(json, r'firstName')!, - lastName: mapValueOfType(json, r'lastName')!, - storageLabel: mapValueOfType(json, r'storageLabel'), - externalPath: mapValueOfType(json, r'externalPath'), - profileImagePath: mapValueOfType(json, r'profileImagePath')!, - shouldChangePassword: mapValueOfType(json, r'shouldChangePassword')!, - isAdmin: mapValueOfType(json, r'isAdmin')!, - createdAt: mapDateTime(json, r'createdAt', r'')!, - deletedAt: mapDateTime(json, r'deletedAt', r''), - updatedAt: mapDateTime(json, r'updatedAt', r'')!, - oauthId: mapValueOfType(json, r'oauthId')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = UserResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = UserResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of UserResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = UserResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'email', - 'firstName', - 'lastName', - 'storageLabel', - 'externalPath', - 'profileImagePath', - 'shouldChangePassword', - 'isAdmin', - 'createdAt', - 'deletedAt', - 'updatedAt', - 'oauthId', - }; -} - diff --git a/mobile/openapi/lib/model/validate_access_token_response_dto.dart b/mobile/openapi/lib/model/validate_access_token_response_dto.dart deleted file mode 100644 index b06bd663e09145..00000000000000 --- a/mobile/openapi/lib/model/validate_access_token_response_dto.dart +++ /dev/null @@ -1,98 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 ValidateAccessTokenResponseDto { - /// Returns a new [ValidateAccessTokenResponseDto] instance. - ValidateAccessTokenResponseDto({ - required this.authStatus, - }); - - bool authStatus; - - @override - bool operator ==(Object other) => identical(this, other) || other is ValidateAccessTokenResponseDto && - other.authStatus == authStatus; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (authStatus.hashCode); - - @override - String toString() => 'ValidateAccessTokenResponseDto[authStatus=$authStatus]'; - - Map toJson() { - final json = {}; - json[r'authStatus'] = this.authStatus; - return json; - } - - /// Returns a new [ValidateAccessTokenResponseDto] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ValidateAccessTokenResponseDto? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - return ValidateAccessTokenResponseDto( - authStatus: mapValueOfType(json, r'authStatus')!, - ); - } - return null; - } - - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ValidateAccessTokenResponseDto.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ValidateAccessTokenResponseDto.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ValidateAccessTokenResponseDto-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ValidateAccessTokenResponseDto.listFromJson(entry.value, growable: growable,); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'authStatus', - }; -} - diff --git a/mobile/openapi/pubspec.yaml b/mobile/openapi/pubspec.yaml deleted file mode 100644 index 00043ba660cd8f..00000000000000 --- a/mobile/openapi/pubspec.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# -# AUTO-GENERATED FILE, DO NOT MODIFY! -# - -name: 'openapi' -version: '1.0.0' -description: 'OpenAPI API client' -homepage: 'homepage' -environment: - sdk: '>=2.12.0 <3.0.0' -dependencies: - http: '>=0.13.0 <0.14.0' - intl: '^0.17.0' - meta: '^1.1.8' -dev_dependencies: - test: '>=1.16.0 <1.18.0' diff --git a/mobile/openapi/test/add_assets_dto_test.dart b/mobile/openapi/test/add_assets_dto_test.dart deleted file mode 100644 index ec660c40005672..00000000000000 --- a/mobile/openapi/test/add_assets_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AddAssetsDto -void main() { - // final instance = AddAssetsDto(); - - group('test AddAssetsDto', () { - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/add_assets_response_dto_test.dart b/mobile/openapi/test/add_assets_response_dto_test.dart deleted file mode 100644 index bce8a0f7d362ec..00000000000000 --- a/mobile/openapi/test/add_assets_response_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AddAssetsResponseDto -void main() { - // final instance = AddAssetsResponseDto(); - - group('test AddAssetsResponseDto', () { - // int successfullyAdded - test('to test the property `successfullyAdded`', () async { - // TODO - }); - - // List alreadyInAlbum (default value: const []) - test('to test the property `alreadyInAlbum`', () async { - // TODO - }); - - // AlbumResponseDto album - test('to test the property `album`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/add_users_dto_test.dart b/mobile/openapi/test/add_users_dto_test.dart deleted file mode 100644 index 3dadfd8b4d3095..00000000000000 --- a/mobile/openapi/test/add_users_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AddUsersDto -void main() { - // final instance = AddUsersDto(); - - group('test AddUsersDto', () { - // List sharedUserIds (default value: const []) - test('to test the property `sharedUserIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/admin_signup_response_dto_test.dart b/mobile/openapi/test/admin_signup_response_dto_test.dart deleted file mode 100644 index 62eb488fe10285..00000000000000 --- a/mobile/openapi/test/admin_signup_response_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AdminSignupResponseDto -void main() { - // final instance = AdminSignupResponseDto(); - - group('test AdminSignupResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // DateTime createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/album_api_test.dart b/mobile/openapi/test/album_api_test.dart deleted file mode 100644 index 5c2331fa903e74..00000000000000 --- a/mobile/openapi/test/album_api_test.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for AlbumApi -void main() { - // final instance = AlbumApi(); - - group('tests for AlbumApi', () { - //Future addAssetsToAlbum(String id, AddAssetsDto addAssetsDto, { String key }) async - test('test addAssetsToAlbum', () async { - // TODO - }); - - //Future addUsersToAlbum(String id, AddUsersDto addUsersDto) async - test('test addUsersToAlbum', () async { - // TODO - }); - - //Future createAlbum(CreateAlbumDto createAlbumDto) async - test('test createAlbum', () async { - // TODO - }); - - //Future deleteAlbum(String id) async - test('test deleteAlbum', () async { - // TODO - }); - - //Future getAlbumCount() async - test('test getAlbumCount', () async { - // TODO - }); - - //Future getAlbumInfo(String id, { String key }) async - test('test getAlbumInfo', () async { - // TODO - }); - - //Future> getAllAlbums({ bool shared, String assetId }) async - test('test getAllAlbums', () async { - // TODO - }); - - //Future removeAssetFromAlbum(String id, RemoveAssetsDto removeAssetsDto) async - test('test removeAssetFromAlbum', () async { - // TODO - }); - - //Future removeUserFromAlbum(String id, String userId) async - test('test removeUserFromAlbum', () async { - // TODO - }); - - //Future updateAlbumInfo(String id, UpdateAlbumDto updateAlbumDto) async - test('test updateAlbumInfo', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/album_count_response_dto_test.dart b/mobile/openapi/test/album_count_response_dto_test.dart deleted file mode 100644 index 2f294f463ef241..00000000000000 --- a/mobile/openapi/test/album_count_response_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AlbumCountResponseDto -void main() { - // final instance = AlbumCountResponseDto(); - - group('test AlbumCountResponseDto', () { - // int owned - test('to test the property `owned`', () async { - // TODO - }); - - // int shared - test('to test the property `shared`', () async { - // TODO - }); - - // int notShared - test('to test the property `notShared`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/album_response_dto_test.dart b/mobile/openapi/test/album_response_dto_test.dart deleted file mode 100644 index b55b0eb2199566..00000000000000 --- a/mobile/openapi/test/album_response_dto_test.dart +++ /dev/null @@ -1,82 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AlbumResponseDto -void main() { - // final instance = AlbumResponseDto(); - - group('test AlbumResponseDto', () { - // int assetCount - test('to test the property `assetCount`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String ownerId - test('to test the property `ownerId`', () async { - // TODO - }); - - // String albumName - test('to test the property `albumName`', () async { - // TODO - }); - - // DateTime createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - // DateTime updatedAt - test('to test the property `updatedAt`', () async { - // TODO - }); - - // String albumThumbnailAssetId - test('to test the property `albumThumbnailAssetId`', () async { - // TODO - }); - - // bool shared - test('to test the property `shared`', () async { - // TODO - }); - - // List sharedUsers (default value: const []) - test('to test the property `sharedUsers`', () async { - // TODO - }); - - // List assets (default value: const []) - test('to test the property `assets`', () async { - // TODO - }); - - // UserResponseDto owner - test('to test the property `owner`', () async { - // TODO - }); - - // DateTime lastModifiedAssetTimestamp - test('to test the property `lastModifiedAssetTimestamp`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/all_job_status_response_dto_test.dart b/mobile/openapi/test/all_job_status_response_dto_test.dart deleted file mode 100644 index 657191ec976f77..00000000000000 --- a/mobile/openapi/test/all_job_status_response_dto_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AllJobStatusResponseDto -void main() { - // final instance = AllJobStatusResponseDto(); - - group('test AllJobStatusResponseDto', () { - // JobStatusDto thumbnailGeneration - test('to test the property `thumbnailGeneration`', () async { - // TODO - }); - - // JobStatusDto metadataExtraction - test('to test the property `metadataExtraction`', () async { - // TODO - }); - - // JobStatusDto videoConversion - test('to test the property `videoConversion`', () async { - // TODO - }); - - // JobStatusDto objectTagging - test('to test the property `objectTagging`', () async { - // TODO - }); - - // JobStatusDto clipEncoding - test('to test the property `clipEncoding`', () async { - // TODO - }); - - // JobStatusDto storageTemplateMigration - test('to test the property `storageTemplateMigration`', () async { - // TODO - }); - - // JobStatusDto backgroundTask - test('to test the property `backgroundTask`', () async { - // TODO - }); - - // JobStatusDto search - test('to test the property `search`', () async { - // TODO - }); - - // JobStatusDto recognizeFaces - test('to test the property `recognizeFaces`', () async { - // TODO - }); - - // JobStatusDto sidecar - test('to test the property `sidecar`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/api_key_api_test.dart b/mobile/openapi/test/api_key_api_test.dart deleted file mode 100644 index 2e02bae722d81c..00000000000000 --- a/mobile/openapi/test/api_key_api_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for APIKeyApi -void main() { - // final instance = APIKeyApi(); - - group('tests for APIKeyApi', () { - //Future createKey(APIKeyCreateDto aPIKeyCreateDto) async - test('test createKey', () async { - // TODO - }); - - //Future deleteKey(String id) async - test('test deleteKey', () async { - // TODO - }); - - //Future getKey(String id) async - test('test getKey', () async { - // TODO - }); - - //Future> getKeys() async - test('test getKeys', () async { - // TODO - }); - - //Future updateKey(String id, APIKeyUpdateDto aPIKeyUpdateDto) async - test('test updateKey', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/api_key_create_dto_test.dart b/mobile/openapi/test/api_key_create_dto_test.dart deleted file mode 100644 index a09181ef0f5735..00000000000000 --- a/mobile/openapi/test/api_key_create_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for APIKeyCreateDto -void main() { - // final instance = APIKeyCreateDto(); - - group('test APIKeyCreateDto', () { - // String name - test('to test the property `name`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/api_key_create_response_dto_test.dart b/mobile/openapi/test/api_key_create_response_dto_test.dart deleted file mode 100644 index 6998ea6a92e16e..00000000000000 --- a/mobile/openapi/test/api_key_create_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for APIKeyCreateResponseDto -void main() { - // final instance = APIKeyCreateResponseDto(); - - group('test APIKeyCreateResponseDto', () { - // String secret - test('to test the property `secret`', () async { - // TODO - }); - - // APIKeyResponseDto apiKey - test('to test the property `apiKey`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/api_key_response_dto_test.dart b/mobile/openapi/test/api_key_response_dto_test.dart deleted file mode 100644 index c849e7629f8bc9..00000000000000 --- a/mobile/openapi/test/api_key_response_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for APIKeyResponseDto -void main() { - // final instance = APIKeyResponseDto(); - - group('test APIKeyResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // DateTime createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - // DateTime updatedAt - test('to test the property `updatedAt`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/api_key_update_dto_test.dart b/mobile/openapi/test/api_key_update_dto_test.dart deleted file mode 100644 index ca7bc2187e6765..00000000000000 --- a/mobile/openapi/test/api_key_update_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for APIKeyUpdateDto -void main() { - // final instance = APIKeyUpdateDto(); - - group('test APIKeyUpdateDto', () { - // String name - test('to test the property `name`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dart deleted file mode 100644 index 1c0c473162d518..00000000000000 --- a/mobile/openapi/test/asset_api_test.dart +++ /dev/null @@ -1,160 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for AssetApi -void main() { - // final instance = AssetApi(); - - group('tests for AssetApi', () { - // Checks if assets exist by checksums - // - //Future bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async - test('test bulkUploadCheck', () async { - // TODO - }); - - // Check duplicated asset before uploading - for Web upload used - // - //Future checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String key }) async - test('test checkDuplicateAsset', () async { - // TODO - }); - - // Checks if multiple assets exist on the server and returns all existing - used by background backup - // - //Future checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async - test('test checkExistingAssets', () async { - // TODO - }); - - //Future> deleteAsset(DeleteAssetDto deleteAssetDto) async - test('test deleteAsset', () async { - // TODO - }); - - //Future downloadArchive(AssetIdsDto assetIdsDto, { String key }) async - test('test downloadArchive', () async { - // TODO - }); - - //Future downloadFile(String id, { String key }) async - test('test downloadFile', () async { - // TODO - }); - - // Get all AssetEntity belong to the user - // - //Future> getAllAssets({ String userId, bool isFavorite, bool isArchived, bool withoutThumbs, num skip, String ifNoneMatch }) async - test('test getAllAssets', () async { - // TODO - }); - - //Future getArchivedAssetCountByUserId() async - test('test getArchivedAssetCountByUserId', () async { - // TODO - }); - - // Get a single asset's information - // - //Future getAssetById(String id, { String key }) async - test('test getAssetById', () async { - // TODO - }); - - //Future> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto) async - test('test getAssetByTimeBucket', () async { - // TODO - }); - - //Future getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto) async - test('test getAssetCountByTimeBucket', () async { - // TODO - }); - - //Future getAssetCountByUserId() async - test('test getAssetCountByUserId', () async { - // TODO - }); - - //Future> getAssetSearchTerms() async - test('test getAssetSearchTerms', () async { - // TODO - }); - - //Future getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async - test('test getAssetThumbnail', () async { - // TODO - }); - - //Future> getCuratedLocations() async - test('test getCuratedLocations', () async { - // TODO - }); - - //Future> getCuratedObjects() async - test('test getCuratedObjects', () async { - // TODO - }); - - //Future getDownloadInfo({ List assetIds, String albumId, String userId, num archiveSize, String key }) async - test('test getDownloadInfo', () async { - // TODO - }); - - //Future> getMapMarkers({ bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async - test('test getMapMarkers', () async { - // TODO - }); - - //Future> getMemoryLane(DateTime timestamp) async - test('test getMemoryLane', () async { - // TODO - }); - - // Get all asset of a device that are in the database, ID only. - // - //Future> getUserAssetsByDeviceId(String deviceId) async - test('test getUserAssetsByDeviceId', () async { - // TODO - }); - - //Future importFile(ImportAssetDto importAssetDto) async - test('test importFile', () async { - // TODO - }); - - //Future> searchAsset(SearchAssetDto searchAssetDto) async - test('test searchAsset', () async { - // TODO - }); - - //Future serveFile(String id, { bool isThumb, bool isWeb, String key }) async - test('test serveFile', () async { - // TODO - }); - - // Update an asset - // - //Future updateAsset(String id, UpdateAssetDto updateAssetDto) async - test('test updateAsset', () async { - // TODO - }); - - //Future uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String fileExtension, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, bool isFavorite, bool isPanorama, { String key, MultipartFile livePhotoData, MultipartFile sidecarData, bool isReadOnly, bool isArchived, bool isVisible, String duration }) async - test('test uploadFile', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/asset_bulk_upload_check_dto_test.dart b/mobile/openapi/test/asset_bulk_upload_check_dto_test.dart deleted file mode 100644 index 830cf2e29e5514..00000000000000 --- a/mobile/openapi/test/asset_bulk_upload_check_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetBulkUploadCheckDto -void main() { - // final instance = AssetBulkUploadCheckDto(); - - group('test AssetBulkUploadCheckDto', () { - // List assets (default value: const []) - test('to test the property `assets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_bulk_upload_check_item_test.dart b/mobile/openapi/test/asset_bulk_upload_check_item_test.dart deleted file mode 100644 index eac05427fabe40..00000000000000 --- a/mobile/openapi/test/asset_bulk_upload_check_item_test.dart +++ /dev/null @@ -1,33 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetBulkUploadCheckItem -void main() { - // final instance = AssetBulkUploadCheckItem(); - - group('test AssetBulkUploadCheckItem', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // base64 or hex encoded sha1 hash - // String checksum - test('to test the property `checksum`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_bulk_upload_check_response_dto_test.dart b/mobile/openapi/test/asset_bulk_upload_check_response_dto_test.dart deleted file mode 100644 index 1af1fede086cb3..00000000000000 --- a/mobile/openapi/test/asset_bulk_upload_check_response_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetBulkUploadCheckResponseDto -void main() { - // final instance = AssetBulkUploadCheckResponseDto(); - - group('test AssetBulkUploadCheckResponseDto', () { - // List results (default value: const []) - test('to test the property `results`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_bulk_upload_check_result_test.dart b/mobile/openapi/test/asset_bulk_upload_check_result_test.dart deleted file mode 100644 index dc1bf68a529e98..00000000000000 --- a/mobile/openapi/test/asset_bulk_upload_check_result_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetBulkUploadCheckResult -void main() { - // final instance = AssetBulkUploadCheckResult(); - - group('test AssetBulkUploadCheckResult', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String action - test('to test the property `action`', () async { - // TODO - }); - - // String reason - test('to test the property `reason`', () async { - // TODO - }); - - // String assetId - test('to test the property `assetId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart b/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart deleted file mode 100644 index 993e679ffea898..00000000000000 --- a/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetCountByTimeBucketResponseDto -void main() { - // final instance = AssetCountByTimeBucketResponseDto(); - - group('test AssetCountByTimeBucketResponseDto', () { - // int totalCount - test('to test the property `totalCount`', () async { - // TODO - }); - - // List buckets (default value: const []) - test('to test the property `buckets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_count_by_time_bucket_test.dart b/mobile/openapi/test/asset_count_by_time_bucket_test.dart deleted file mode 100644 index 7bf41e3d7590c8..00000000000000 --- a/mobile/openapi/test/asset_count_by_time_bucket_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetCountByTimeBucket -void main() { - // final instance = AssetCountByTimeBucket(); - - group('test AssetCountByTimeBucket', () { - // String timeBucket - test('to test the property `timeBucket`', () async { - // TODO - }); - - // int count - test('to test the property `count`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart b/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart deleted file mode 100644 index 6d0b97b6edbecf..00000000000000 --- a/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetCountByUserIdResponseDto -void main() { - // final instance = AssetCountByUserIdResponseDto(); - - group('test AssetCountByUserIdResponseDto', () { - // int audio (default value: 0) - test('to test the property `audio`', () async { - // TODO - }); - - // int photos (default value: 0) - test('to test the property `photos`', () async { - // TODO - }); - - // int videos (default value: 0) - test('to test the property `videos`', () async { - // TODO - }); - - // int other (default value: 0) - test('to test the property `other`', () async { - // TODO - }); - - // int total (default value: 0) - test('to test the property `total`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_file_upload_response_dto_test.dart b/mobile/openapi/test/asset_file_upload_response_dto_test.dart deleted file mode 100644 index 2c53be853973d1..00000000000000 --- a/mobile/openapi/test/asset_file_upload_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetFileUploadResponseDto -void main() { - // final instance = AssetFileUploadResponseDto(); - - group('test AssetFileUploadResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // bool duplicate - test('to test the property `duplicate`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_ids_dto_test.dart b/mobile/openapi/test/asset_ids_dto_test.dart deleted file mode 100644 index 840f6f5ccadbb1..00000000000000 --- a/mobile/openapi/test/asset_ids_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetIdsDto -void main() { - // final instance = AssetIdsDto(); - - group('test AssetIdsDto', () { - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_ids_response_dto_test.dart b/mobile/openapi/test/asset_ids_response_dto_test.dart deleted file mode 100644 index df6a8642d83a15..00000000000000 --- a/mobile/openapi/test/asset_ids_response_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetIdsResponseDto -void main() { - // final instance = AssetIdsResponseDto(); - - group('test AssetIdsResponseDto', () { - // String assetId - test('to test the property `assetId`', () async { - // TODO - }); - - // bool success - test('to test the property `success`', () async { - // TODO - }); - - // String error - test('to test the property `error`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_response_dto_test.dart b/mobile/openapi/test/asset_response_dto_test.dart deleted file mode 100644 index 487d56507d1489..00000000000000 --- a/mobile/openapi/test/asset_response_dto_test.dart +++ /dev/null @@ -1,139 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetResponseDto -void main() { - // final instance = AssetResponseDto(); - - group('test AssetResponseDto', () { - // AssetTypeEnum type - test('to test the property `type`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String deviceAssetId - test('to test the property `deviceAssetId`', () async { - // TODO - }); - - // String ownerId - test('to test the property `ownerId`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - // String originalPath - test('to test the property `originalPath`', () async { - // TODO - }); - - // String originalFileName - test('to test the property `originalFileName`', () async { - // TODO - }); - - // bool resized - test('to test the property `resized`', () async { - // TODO - }); - - // base64 encoded thumbhash - // String thumbhash - test('to test the property `thumbhash`', () async { - // TODO - }); - - // DateTime fileCreatedAt - test('to test the property `fileCreatedAt`', () async { - // TODO - }); - - // DateTime fileModifiedAt - test('to test the property `fileModifiedAt`', () async { - // TODO - }); - - // DateTime updatedAt - test('to test the property `updatedAt`', () async { - // TODO - }); - - // bool isFavorite - test('to test the property `isFavorite`', () async { - // TODO - }); - - // bool isArchived - test('to test the property `isArchived`', () async { - // TODO - }); - - // String mimeType - test('to test the property `mimeType`', () async { - // TODO - }); - - // String duration - test('to test the property `duration`', () async { - // TODO - }); - - // ExifResponseDto exifInfo - test('to test the property `exifInfo`', () async { - // TODO - }); - - // SmartInfoResponseDto smartInfo - test('to test the property `smartInfo`', () async { - // TODO - }); - - // String livePhotoVideoId - test('to test the property `livePhotoVideoId`', () async { - // TODO - }); - - // List tags (default value: const []) - test('to test the property `tags`', () async { - // TODO - }); - - // List people (default value: const []) - test('to test the property `people`', () async { - // TODO - }); - - // base64 encoded sha1 hash - // String checksum - test('to test the property `checksum`', () async { - // TODO - }); - - // bool isPanorama - test('to test the property `isPanorama`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/asset_type_enum_test.dart b/mobile/openapi/test/asset_type_enum_test.dart deleted file mode 100644 index a826ee679fc87f..00000000000000 --- a/mobile/openapi/test/asset_type_enum_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AssetTypeEnum -void main() { - - group('test AssetTypeEnum', () { - - }); - -} diff --git a/mobile/openapi/test/auth_device_response_dto_test.dart b/mobile/openapi/test/auth_device_response_dto_test.dart deleted file mode 100644 index 615b34b1d786e4..00000000000000 --- a/mobile/openapi/test/auth_device_response_dto_test.dart +++ /dev/null @@ -1,52 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for AuthDeviceResponseDto -void main() { - // final instance = AuthDeviceResponseDto(); - - group('test AuthDeviceResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - // String updatedAt - test('to test the property `updatedAt`', () async { - // TODO - }); - - // bool current - test('to test the property `current`', () async { - // TODO - }); - - // String deviceType - test('to test the property `deviceType`', () async { - // TODO - }); - - // String deviceOS - test('to test the property `deviceOS`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/authentication_api_test.dart b/mobile/openapi/test/authentication_api_test.dart deleted file mode 100644 index 9fed80d71c768f..00000000000000 --- a/mobile/openapi/test/authentication_api_test.dart +++ /dev/null @@ -1,61 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for AuthenticationApi -void main() { - // final instance = AuthenticationApi(); - - group('tests for AuthenticationApi', () { - //Future adminSignUp(SignUpDto signUpDto) async - test('test adminSignUp', () async { - // TODO - }); - - //Future changePassword(ChangePasswordDto changePasswordDto) async - test('test changePassword', () async { - // TODO - }); - - //Future> getAuthDevices() async - test('test getAuthDevices', () async { - // TODO - }); - - //Future login(LoginCredentialDto loginCredentialDto) async - test('test login', () async { - // TODO - }); - - //Future logout() async - test('test logout', () async { - // TODO - }); - - //Future logoutAuthDevice(String id) async - test('test logoutAuthDevice', () async { - // TODO - }); - - //Future logoutAuthDevices() async - test('test logoutAuthDevices', () async { - // TODO - }); - - //Future validateAccessToken() async - test('test validateAccessToken', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/change_password_dto_test.dart b/mobile/openapi/test/change_password_dto_test.dart deleted file mode 100644 index 5095250fc6b33b..00000000000000 --- a/mobile/openapi/test/change_password_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ChangePasswordDto -void main() { - // final instance = ChangePasswordDto(); - - group('test ChangePasswordDto', () { - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String newPassword - test('to test the property `newPassword`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/check_duplicate_asset_dto_test.dart b/mobile/openapi/test/check_duplicate_asset_dto_test.dart deleted file mode 100644 index 2e8572da4533aa..00000000000000 --- a/mobile/openapi/test/check_duplicate_asset_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CheckDuplicateAssetDto -void main() { - // final instance = CheckDuplicateAssetDto(); - - group('test CheckDuplicateAssetDto', () { - // String deviceAssetId - test('to test the property `deviceAssetId`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart b/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart deleted file mode 100644 index 393acc12164478..00000000000000 --- a/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CheckDuplicateAssetResponseDto -void main() { - // final instance = CheckDuplicateAssetResponseDto(); - - group('test CheckDuplicateAssetResponseDto', () { - // bool isExist - test('to test the property `isExist`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/check_existing_assets_dto_test.dart b/mobile/openapi/test/check_existing_assets_dto_test.dart deleted file mode 100644 index df4c51e707342a..00000000000000 --- a/mobile/openapi/test/check_existing_assets_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CheckExistingAssetsDto -void main() { - // final instance = CheckExistingAssetsDto(); - - group('test CheckExistingAssetsDto', () { - // List deviceAssetIds (default value: const []) - test('to test the property `deviceAssetIds`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/check_existing_assets_response_dto_test.dart b/mobile/openapi/test/check_existing_assets_response_dto_test.dart deleted file mode 100644 index 250fec3c62892a..00000000000000 --- a/mobile/openapi/test/check_existing_assets_response_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CheckExistingAssetsResponseDto -void main() { - // final instance = CheckExistingAssetsResponseDto(); - - group('test CheckExistingAssetsResponseDto', () { - // List existingIds (default value: const []) - test('to test the property `existingIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/create_album_dto_test.dart b/mobile/openapi/test/create_album_dto_test.dart deleted file mode 100644 index 48263d393a2de1..00000000000000 --- a/mobile/openapi/test/create_album_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateAlbumDto -void main() { - // final instance = CreateAlbumDto(); - - group('test CreateAlbumDto', () { - // String albumName - test('to test the property `albumName`', () async { - // TODO - }); - - // List sharedWithUserIds (default value: const []) - test('to test the property `sharedWithUserIds`', () async { - // TODO - }); - - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/create_profile_image_response_dto_test.dart b/mobile/openapi/test/create_profile_image_response_dto_test.dart deleted file mode 100644 index 83fee5b295e865..00000000000000 --- a/mobile/openapi/test/create_profile_image_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateProfileImageResponseDto -void main() { - // final instance = CreateProfileImageResponseDto(); - - group('test CreateProfileImageResponseDto', () { - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // String profileImagePath - test('to test the property `profileImagePath`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/create_tag_dto_test.dart b/mobile/openapi/test/create_tag_dto_test.dart deleted file mode 100644 index 8df20a4ef54cc3..00000000000000 --- a/mobile/openapi/test/create_tag_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateTagDto -void main() { - // final instance = CreateTagDto(); - - group('test CreateTagDto', () { - // TagTypeEnum type - test('to test the property `type`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/create_user_dto_test.dart b/mobile/openapi/test/create_user_dto_test.dart deleted file mode 100644 index 327acbbe38c4ac..00000000000000 --- a/mobile/openapi/test/create_user_dto_test.dart +++ /dev/null @@ -1,52 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CreateUserDto -void main() { - // final instance = CreateUserDto(); - - group('test CreateUserDto', () { - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String storageLabel - test('to test the property `storageLabel`', () async { - // TODO - }); - - // String externalPath - test('to test the property `externalPath`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/curated_locations_response_dto_test.dart b/mobile/openapi/test/curated_locations_response_dto_test.dart deleted file mode 100644 index da4cccf3da4e99..00000000000000 --- a/mobile/openapi/test/curated_locations_response_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CuratedLocationsResponseDto -void main() { - // final instance = CuratedLocationsResponseDto(); - - group('test CuratedLocationsResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String city - test('to test the property `city`', () async { - // TODO - }); - - // String resizePath - test('to test the property `resizePath`', () async { - // TODO - }); - - // String deviceAssetId - test('to test the property `deviceAssetId`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/curated_objects_response_dto_test.dart b/mobile/openapi/test/curated_objects_response_dto_test.dart deleted file mode 100644 index 8ef640bd9288b1..00000000000000 --- a/mobile/openapi/test/curated_objects_response_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for CuratedObjectsResponseDto -void main() { - // final instance = CuratedObjectsResponseDto(); - - group('test CuratedObjectsResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String object - test('to test the property `object`', () async { - // TODO - }); - - // String resizePath - test('to test the property `resizePath`', () async { - // TODO - }); - - // String deviceAssetId - test('to test the property `deviceAssetId`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/delete_asset_dto_test.dart b/mobile/openapi/test/delete_asset_dto_test.dart deleted file mode 100644 index 4e04b65e9b14f5..00000000000000 --- a/mobile/openapi/test/delete_asset_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteAssetDto -void main() { - // final instance = DeleteAssetDto(); - - group('test DeleteAssetDto', () { - // List ids (default value: const []) - test('to test the property `ids`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/delete_asset_response_dto_test.dart b/mobile/openapi/test/delete_asset_response_dto_test.dart deleted file mode 100644 index de09a5b31ab1a8..00000000000000 --- a/mobile/openapi/test/delete_asset_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteAssetResponseDto -void main() { - // final instance = DeleteAssetResponseDto(); - - group('test DeleteAssetResponseDto', () { - // DeleteAssetStatus status - test('to test the property `status`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/delete_asset_status_test.dart b/mobile/openapi/test/delete_asset_status_test.dart deleted file mode 100644 index 0dfc82ba611004..00000000000000 --- a/mobile/openapi/test/delete_asset_status_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DeleteAssetStatus -void main() { - - group('test DeleteAssetStatus', () { - - }); - -} diff --git a/mobile/openapi/test/download_archive_info_test.dart b/mobile/openapi/test/download_archive_info_test.dart deleted file mode 100644 index 35f29ef99a5a79..00000000000000 --- a/mobile/openapi/test/download_archive_info_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DownloadArchiveInfo -void main() { - // final instance = DownloadArchiveInfo(); - - group('test DownloadArchiveInfo', () { - // int size - test('to test the property `size`', () async { - // TODO - }); - - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/download_response_dto_test.dart b/mobile/openapi/test/download_response_dto_test.dart deleted file mode 100644 index b823c1441ee14c..00000000000000 --- a/mobile/openapi/test/download_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for DownloadResponseDto -void main() { - // final instance = DownloadResponseDto(); - - group('test DownloadResponseDto', () { - // int totalSize - test('to test the property `totalSize`', () async { - // TODO - }); - - // List archives (default value: const []) - test('to test the property `archives`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/exif_response_dto_test.dart b/mobile/openapi/test/exif_response_dto_test.dart deleted file mode 100644 index 9918892d34dcd1..00000000000000 --- a/mobile/openapi/test/exif_response_dto_test.dart +++ /dev/null @@ -1,122 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ExifResponseDto -void main() { - // final instance = ExifResponseDto(); - - group('test ExifResponseDto', () { - // int fileSizeInByte - test('to test the property `fileSizeInByte`', () async { - // TODO - }); - - // String make - test('to test the property `make`', () async { - // TODO - }); - - // String model - test('to test the property `model`', () async { - // TODO - }); - - // num exifImageWidth - test('to test the property `exifImageWidth`', () async { - // TODO - }); - - // num exifImageHeight - test('to test the property `exifImageHeight`', () async { - // TODO - }); - - // String orientation - test('to test the property `orientation`', () async { - // TODO - }); - - // DateTime dateTimeOriginal - test('to test the property `dateTimeOriginal`', () async { - // TODO - }); - - // DateTime modifyDate - test('to test the property `modifyDate`', () async { - // TODO - }); - - // String timeZone - test('to test the property `timeZone`', () async { - // TODO - }); - - // String lensModel - test('to test the property `lensModel`', () async { - // TODO - }); - - // num fNumber - test('to test the property `fNumber`', () async { - // TODO - }); - - // num focalLength - test('to test the property `focalLength`', () async { - // TODO - }); - - // num iso - test('to test the property `iso`', () async { - // TODO - }); - - // String exposureTime - test('to test the property `exposureTime`', () async { - // TODO - }); - - // num latitude - test('to test the property `latitude`', () async { - // TODO - }); - - // num longitude - test('to test the property `longitude`', () async { - // TODO - }); - - // String city - test('to test the property `city`', () async { - // TODO - }); - - // String state - test('to test the property `state`', () async { - // TODO - }); - - // String country - test('to test the property `country`', () async { - // TODO - }); - - // String description - test('to test the property `description`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/get_asset_by_time_bucket_dto_test.dart b/mobile/openapi/test/get_asset_by_time_bucket_dto_test.dart deleted file mode 100644 index e6021df73c9f26..00000000000000 --- a/mobile/openapi/test/get_asset_by_time_bucket_dto_test.dart +++ /dev/null @@ -1,38 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for GetAssetByTimeBucketDto -void main() { - // final instance = GetAssetByTimeBucketDto(); - - group('test GetAssetByTimeBucketDto', () { - // List timeBucket (default value: const []) - test('to test the property `timeBucket`', () async { - // TODO - }); - - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // Include assets without thumbnails - // bool withoutThumbs - test('to test the property `withoutThumbs`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/get_asset_count_by_time_bucket_dto_test.dart b/mobile/openapi/test/get_asset_count_by_time_bucket_dto_test.dart deleted file mode 100644 index ca0f586a6b0dfb..00000000000000 --- a/mobile/openapi/test/get_asset_count_by_time_bucket_dto_test.dart +++ /dev/null @@ -1,38 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for GetAssetCountByTimeBucketDto -void main() { - // final instance = GetAssetCountByTimeBucketDto(); - - group('test GetAssetCountByTimeBucketDto', () { - // TimeGroupEnum timeGroup - test('to test the property `timeGroup`', () async { - // TODO - }); - - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // Include assets without thumbnails - // bool withoutThumbs - test('to test the property `withoutThumbs`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/import_asset_dto_test.dart b/mobile/openapi/test/import_asset_dto_test.dart deleted file mode 100644 index ea8b48b7a893e4..00000000000000 --- a/mobile/openapi/test/import_asset_dto_test.dart +++ /dev/null @@ -1,87 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ImportAssetDto -void main() { - // final instance = ImportAssetDto(); - - group('test ImportAssetDto', () { - // AssetTypeEnum assetType - test('to test the property `assetType`', () async { - // TODO - }); - - // bool isReadOnly (default value: true) - test('to test the property `isReadOnly`', () async { - // TODO - }); - - // String assetPath - test('to test the property `assetPath`', () async { - // TODO - }); - - // String sidecarPath - test('to test the property `sidecarPath`', () async { - // TODO - }); - - // String deviceAssetId - test('to test the property `deviceAssetId`', () async { - // TODO - }); - - // String deviceId - test('to test the property `deviceId`', () async { - // TODO - }); - - // DateTime fileCreatedAt - test('to test the property `fileCreatedAt`', () async { - // TODO - }); - - // DateTime fileModifiedAt - test('to test the property `fileModifiedAt`', () async { - // TODO - }); - - // bool isFavorite - test('to test the property `isFavorite`', () async { - // TODO - }); - - // bool isPanorama - test('to test the property `isPanorama`', () async { - // TODO - }); - - // bool isArchived - test('to test the property `isArchived`', () async { - // TODO - }); - - // bool isVisible - test('to test the property `isVisible`', () async { - // TODO - }); - - // String duration - test('to test the property `duration`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/job_api_test.dart b/mobile/openapi/test/job_api_test.dart deleted file mode 100644 index c30811bb05f915..00000000000000 --- a/mobile/openapi/test/job_api_test.dart +++ /dev/null @@ -1,31 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for JobApi -void main() { - // final instance = JobApi(); - - group('tests for JobApi', () { - //Future getAllJobsStatus() async - test('test getAllJobsStatus', () async { - // TODO - }); - - //Future sendJobCommand(JobName id, JobCommandDto jobCommandDto) async - test('test sendJobCommand', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/job_command_dto_test.dart b/mobile/openapi/test/job_command_dto_test.dart deleted file mode 100644 index 83a27b4d9c182e..00000000000000 --- a/mobile/openapi/test/job_command_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobCommandDto -void main() { - // final instance = JobCommandDto(); - - group('test JobCommandDto', () { - // JobCommand command - test('to test the property `command`', () async { - // TODO - }); - - // bool force - test('to test the property `force`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/job_command_test.dart b/mobile/openapi/test/job_command_test.dart deleted file mode 100644 index df6822c9d498ed..00000000000000 --- a/mobile/openapi/test/job_command_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobCommand -void main() { - - group('test JobCommand', () { - - }); - -} diff --git a/mobile/openapi/test/job_counts_dto_test.dart b/mobile/openapi/test/job_counts_dto_test.dart deleted file mode 100644 index 299ac292db5756..00000000000000 --- a/mobile/openapi/test/job_counts_dto_test.dart +++ /dev/null @@ -1,52 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobCountsDto -void main() { - // final instance = JobCountsDto(); - - group('test JobCountsDto', () { - // int active - test('to test the property `active`', () async { - // TODO - }); - - // int completed - test('to test the property `completed`', () async { - // TODO - }); - - // int failed - test('to test the property `failed`', () async { - // TODO - }); - - // int delayed - test('to test the property `delayed`', () async { - // TODO - }); - - // int waiting - test('to test the property `waiting`', () async { - // TODO - }); - - // int paused - test('to test the property `paused`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/job_name_test.dart b/mobile/openapi/test/job_name_test.dart deleted file mode 100644 index 4c14d76be09859..00000000000000 --- a/mobile/openapi/test/job_name_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobName -void main() { - - group('test JobName', () { - - }); - -} diff --git a/mobile/openapi/test/job_settings_dto_test.dart b/mobile/openapi/test/job_settings_dto_test.dart deleted file mode 100644 index e06900185a8ecc..00000000000000 --- a/mobile/openapi/test/job_settings_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobSettingsDto -void main() { - // final instance = JobSettingsDto(); - - group('test JobSettingsDto', () { - // int concurrency - test('to test the property `concurrency`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/job_status_dto_test.dart b/mobile/openapi/test/job_status_dto_test.dart deleted file mode 100644 index ae353baf0cef80..00000000000000 --- a/mobile/openapi/test/job_status_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for JobStatusDto -void main() { - // final instance = JobStatusDto(); - - group('test JobStatusDto', () { - // JobCountsDto jobCounts - test('to test the property `jobCounts`', () async { - // TODO - }); - - // QueueStatusDto queueStatus - test('to test the property `queueStatus`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/login_credential_dto_test.dart b/mobile/openapi/test/login_credential_dto_test.dart deleted file mode 100644 index 9995af73049f29..00000000000000 --- a/mobile/openapi/test/login_credential_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for LoginCredentialDto -void main() { - // final instance = LoginCredentialDto(); - - group('test LoginCredentialDto', () { - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/login_response_dto_test.dart b/mobile/openapi/test/login_response_dto_test.dart deleted file mode 100644 index f70779979812b5..00000000000000 --- a/mobile/openapi/test/login_response_dto_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for LoginResponseDto -void main() { - // final instance = LoginResponseDto(); - - group('test LoginResponseDto', () { - // String accessToken - test('to test the property `accessToken`', () async { - // TODO - }); - - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // String userEmail - test('to test the property `userEmail`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String profileImagePath - test('to test the property `profileImagePath`', () async { - // TODO - }); - - // bool isAdmin - test('to test the property `isAdmin`', () async { - // TODO - }); - - // bool shouldChangePassword - test('to test the property `shouldChangePassword`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/logout_response_dto_test.dart b/mobile/openapi/test/logout_response_dto_test.dart deleted file mode 100644 index 2d83e1613a4487..00000000000000 --- a/mobile/openapi/test/logout_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for LogoutResponseDto -void main() { - // final instance = LogoutResponseDto(); - - group('test LogoutResponseDto', () { - // bool successful - test('to test the property `successful`', () async { - // TODO - }); - - // String redirectUri - test('to test the property `redirectUri`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/map_marker_response_dto_test.dart b/mobile/openapi/test/map_marker_response_dto_test.dart deleted file mode 100644 index f8308116ffd24e..00000000000000 --- a/mobile/openapi/test/map_marker_response_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MapMarkerResponseDto -void main() { - // final instance = MapMarkerResponseDto(); - - group('test MapMarkerResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // double lat - test('to test the property `lat`', () async { - // TODO - }); - - // double lon - test('to test the property `lon`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/memory_lane_response_dto_test.dart b/mobile/openapi/test/memory_lane_response_dto_test.dart deleted file mode 100644 index 4e25825cdbc6a4..00000000000000 --- a/mobile/openapi/test/memory_lane_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for MemoryLaneResponseDto -void main() { - // final instance = MemoryLaneResponseDto(); - - group('test MemoryLaneResponseDto', () { - // String title - test('to test the property `title`', () async { - // TODO - }); - - // List assets (default value: const []) - test('to test the property `assets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/o_auth_api_test.dart b/mobile/openapi/test/o_auth_api_test.dart deleted file mode 100644 index bc8b5f3810ebbe..00000000000000 --- a/mobile/openapi/test/o_auth_api_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for OAuthApi -void main() { - // final instance = OAuthApi(); - - group('tests for OAuthApi', () { - //Future callback(OAuthCallbackDto oAuthCallbackDto) async - test('test callback', () async { - // TODO - }); - - //Future generateConfig(OAuthConfigDto oAuthConfigDto) async - test('test generateConfig', () async { - // TODO - }); - - //Future link(OAuthCallbackDto oAuthCallbackDto) async - test('test link', () async { - // TODO - }); - - //Future mobileRedirect() async - test('test mobileRedirect', () async { - // TODO - }); - - //Future unlink() async - test('test unlink', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/o_auth_callback_dto_test.dart b/mobile/openapi/test/o_auth_callback_dto_test.dart deleted file mode 100644 index 701b4666abdfb7..00000000000000 --- a/mobile/openapi/test/o_auth_callback_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for OAuthCallbackDto -void main() { - // final instance = OAuthCallbackDto(); - - group('test OAuthCallbackDto', () { - // String url - test('to test the property `url`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/o_auth_config_dto_test.dart b/mobile/openapi/test/o_auth_config_dto_test.dart deleted file mode 100644 index d887635d7a4838..00000000000000 --- a/mobile/openapi/test/o_auth_config_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for OAuthConfigDto -void main() { - // final instance = OAuthConfigDto(); - - group('test OAuthConfigDto', () { - // String redirectUri - test('to test the property `redirectUri`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/o_auth_config_response_dto_test.dart b/mobile/openapi/test/o_auth_config_response_dto_test.dart deleted file mode 100644 index 309324f884b8d4..00000000000000 --- a/mobile/openapi/test/o_auth_config_response_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for OAuthConfigResponseDto -void main() { - // final instance = OAuthConfigResponseDto(); - - group('test OAuthConfigResponseDto', () { - // bool enabled - test('to test the property `enabled`', () async { - // TODO - }); - - // bool passwordLoginEnabled - test('to test the property `passwordLoginEnabled`', () async { - // TODO - }); - - // String url - test('to test the property `url`', () async { - // TODO - }); - - // String buttonText - test('to test the property `buttonText`', () async { - // TODO - }); - - // bool autoLaunch - test('to test the property `autoLaunch`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/partner_api_test.dart b/mobile/openapi/test/partner_api_test.dart deleted file mode 100644 index fa5a59d2adcb7b..00000000000000 --- a/mobile/openapi/test/partner_api_test.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for PartnerApi -void main() { - // final instance = PartnerApi(); - - group('tests for PartnerApi', () { - //Future createPartner(String id) async - test('test createPartner', () async { - // TODO - }); - - //Future> getPartners(String direction) async - test('test getPartners', () async { - // TODO - }); - - //Future removePartner(String id) async - test('test removePartner', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/person_api_test.dart b/mobile/openapi/test/person_api_test.dart deleted file mode 100644 index 33e78b8a7cfc49..00000000000000 --- a/mobile/openapi/test/person_api_test.dart +++ /dev/null @@ -1,46 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for PersonApi -void main() { - // final instance = PersonApi(); - - group('tests for PersonApi', () { - //Future> getAllPeople() async - test('test getAllPeople', () async { - // TODO - }); - - //Future getPerson(String id) async - test('test getPerson', () async { - // TODO - }); - - //Future> getPersonAssets(String id) async - test('test getPersonAssets', () async { - // TODO - }); - - //Future getPersonThumbnail(String id) async - test('test getPersonThumbnail', () async { - // TODO - }); - - //Future updatePerson(String id, PersonUpdateDto personUpdateDto) async - test('test updatePerson', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/person_response_dto_test.dart b/mobile/openapi/test/person_response_dto_test.dart deleted file mode 100644 index 9adcbe1546210f..00000000000000 --- a/mobile/openapi/test/person_response_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for PersonResponseDto -void main() { - // final instance = PersonResponseDto(); - - group('test PersonResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String thumbnailPath - test('to test the property `thumbnailPath`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/person_update_dto_test.dart b/mobile/openapi/test/person_update_dto_test.dart deleted file mode 100644 index be3b8fb741ca32..00000000000000 --- a/mobile/openapi/test/person_update_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for PersonUpdateDto -void main() { - // final instance = PersonUpdateDto(); - - group('test PersonUpdateDto', () { - // Person name. - // String name - test('to test the property `name`', () async { - // TODO - }); - - // Asset is used to get the feature face thumbnail. - // String featureFaceAssetId - test('to test the property `featureFaceAssetId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/queue_status_dto_test.dart b/mobile/openapi/test/queue_status_dto_test.dart deleted file mode 100644 index f85eb9da86c6cb..00000000000000 --- a/mobile/openapi/test/queue_status_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for QueueStatusDto -void main() { - // final instance = QueueStatusDto(); - - group('test QueueStatusDto', () { - // bool isActive - test('to test the property `isActive`', () async { - // TODO - }); - - // bool isPaused - test('to test the property `isPaused`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/remove_assets_dto_test.dart b/mobile/openapi/test/remove_assets_dto_test.dart deleted file mode 100644 index 4e5b48bcbcf468..00000000000000 --- a/mobile/openapi/test/remove_assets_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for RemoveAssetsDto -void main() { - // final instance = RemoveAssetsDto(); - - group('test RemoveAssetsDto', () { - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_album_response_dto_test.dart b/mobile/openapi/test/search_album_response_dto_test.dart deleted file mode 100644 index 7de4a859bf6fda..00000000000000 --- a/mobile/openapi/test/search_album_response_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchAlbumResponseDto -void main() { - // final instance = SearchAlbumResponseDto(); - - group('test SearchAlbumResponseDto', () { - // int total - test('to test the property `total`', () async { - // TODO - }); - - // int count - test('to test the property `count`', () async { - // TODO - }); - - // List items (default value: const []) - test('to test the property `items`', () async { - // TODO - }); - - // List facets (default value: const []) - test('to test the property `facets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_api_test.dart b/mobile/openapi/test/search_api_test.dart deleted file mode 100644 index a65075d1eb7cae..00000000000000 --- a/mobile/openapi/test/search_api_test.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for SearchApi -void main() { - // final instance = SearchApi(); - - group('tests for SearchApi', () { - //Future> getExploreData() async - test('test getExploreData', () async { - // TODO - }); - - //Future getSearchConfig() async - test('test getSearchConfig', () async { - // TODO - }); - - //Future search({ String q, String query, bool clip, String type, bool isFavorite, bool isArchived, String exifInfoPeriodCity, String exifInfoPeriodState, String exifInfoPeriodCountry, String exifInfoPeriodMake, String exifInfoPeriodModel, List smartInfoPeriodObjects, List smartInfoPeriodTags, bool recent, bool motion }) async - test('test search', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/search_asset_dto_test.dart b/mobile/openapi/test/search_asset_dto_test.dart deleted file mode 100644 index 60021265cd6960..00000000000000 --- a/mobile/openapi/test/search_asset_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchAssetDto -void main() { - // final instance = SearchAssetDto(); - - group('test SearchAssetDto', () { - // String searchTerm - test('to test the property `searchTerm`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_asset_response_dto_test.dart b/mobile/openapi/test/search_asset_response_dto_test.dart deleted file mode 100644 index b1452681ca8b6f..00000000000000 --- a/mobile/openapi/test/search_asset_response_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchAssetResponseDto -void main() { - // final instance = SearchAssetResponseDto(); - - group('test SearchAssetResponseDto', () { - // int total - test('to test the property `total`', () async { - // TODO - }); - - // int count - test('to test the property `count`', () async { - // TODO - }); - - // List items (default value: const []) - test('to test the property `items`', () async { - // TODO - }); - - // List facets (default value: const []) - test('to test the property `facets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_config_response_dto_test.dart b/mobile/openapi/test/search_config_response_dto_test.dart deleted file mode 100644 index 2a49752011abe6..00000000000000 --- a/mobile/openapi/test/search_config_response_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchConfigResponseDto -void main() { - // final instance = SearchConfigResponseDto(); - - group('test SearchConfigResponseDto', () { - // bool enabled - test('to test the property `enabled`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_explore_item_test.dart b/mobile/openapi/test/search_explore_item_test.dart deleted file mode 100644 index d4fae1dbffdfd4..00000000000000 --- a/mobile/openapi/test/search_explore_item_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchExploreItem -void main() { - // final instance = SearchExploreItem(); - - group('test SearchExploreItem', () { - // String value - test('to test the property `value`', () async { - // TODO - }); - - // AssetResponseDto data - test('to test the property `data`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_explore_response_dto_test.dart b/mobile/openapi/test/search_explore_response_dto_test.dart deleted file mode 100644 index ccc82a0d759f3d..00000000000000 --- a/mobile/openapi/test/search_explore_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchExploreResponseDto -void main() { - // final instance = SearchExploreResponseDto(); - - group('test SearchExploreResponseDto', () { - // String fieldName - test('to test the property `fieldName`', () async { - // TODO - }); - - // List items (default value: const []) - test('to test the property `items`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_facet_count_response_dto_test.dart b/mobile/openapi/test/search_facet_count_response_dto_test.dart deleted file mode 100644 index fb3caee62769d0..00000000000000 --- a/mobile/openapi/test/search_facet_count_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchFacetCountResponseDto -void main() { - // final instance = SearchFacetCountResponseDto(); - - group('test SearchFacetCountResponseDto', () { - // int count - test('to test the property `count`', () async { - // TODO - }); - - // String value - test('to test the property `value`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_facet_response_dto_test.dart b/mobile/openapi/test/search_facet_response_dto_test.dart deleted file mode 100644 index 06c374497a8812..00000000000000 --- a/mobile/openapi/test/search_facet_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchFacetResponseDto -void main() { - // final instance = SearchFacetResponseDto(); - - group('test SearchFacetResponseDto', () { - // String fieldName - test('to test the property `fieldName`', () async { - // TODO - }); - - // List counts (default value: const []) - test('to test the property `counts`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/search_response_dto_test.dart b/mobile/openapi/test/search_response_dto_test.dart deleted file mode 100644 index 06f8fa7a3a324e..00000000000000 --- a/mobile/openapi/test/search_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SearchResponseDto -void main() { - // final instance = SearchResponseDto(); - - group('test SearchResponseDto', () { - // SearchAlbumResponseDto albums - test('to test the property `albums`', () async { - // TODO - }); - - // SearchAssetResponseDto assets - test('to test the property `assets`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/server_info_api_test.dart b/mobile/openapi/test/server_info_api_test.dart deleted file mode 100644 index b662587eef233d..00000000000000 --- a/mobile/openapi/test/server_info_api_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for ServerInfoApi -void main() { - // final instance = ServerInfoApi(); - - group('tests for ServerInfoApi', () { - //Future getServerInfo() async - test('test getServerInfo', () async { - // TODO - }); - - //Future getServerVersion() async - test('test getServerVersion', () async { - // TODO - }); - - //Future getStats() async - test('test getStats', () async { - // TODO - }); - - //Future pingServer() async - test('test pingServer', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/server_info_response_dto_test.dart b/mobile/openapi/test/server_info_response_dto_test.dart deleted file mode 100644 index 8ecf13fc49853b..00000000000000 --- a/mobile/openapi/test/server_info_response_dto_test.dart +++ /dev/null @@ -1,57 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ServerInfoResponseDto -void main() { - // final instance = ServerInfoResponseDto(); - - group('test ServerInfoResponseDto', () { - // int diskSizeRaw - test('to test the property `diskSizeRaw`', () async { - // TODO - }); - - // int diskUseRaw - test('to test the property `diskUseRaw`', () async { - // TODO - }); - - // int diskAvailableRaw - test('to test the property `diskAvailableRaw`', () async { - // TODO - }); - - // double diskUsagePercentage - test('to test the property `diskUsagePercentage`', () async { - // TODO - }); - - // String diskSize - test('to test the property `diskSize`', () async { - // TODO - }); - - // String diskUse - test('to test the property `diskUse`', () async { - // TODO - }); - - // String diskAvailable - test('to test the property `diskAvailable`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/server_ping_response_test.dart b/mobile/openapi/test/server_ping_response_test.dart deleted file mode 100644 index cb726801765a7a..00000000000000 --- a/mobile/openapi/test/server_ping_response_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ServerPingResponse -void main() { - // final instance = ServerPingResponse(); - - group('test ServerPingResponse', () { - // String res - test('to test the property `res`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/server_stats_response_dto_test.dart b/mobile/openapi/test/server_stats_response_dto_test.dart deleted file mode 100644 index f5d2c3dc9b379d..00000000000000 --- a/mobile/openapi/test/server_stats_response_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ServerStatsResponseDto -void main() { - // final instance = ServerStatsResponseDto(); - - group('test ServerStatsResponseDto', () { - // int photos (default value: 0) - test('to test the property `photos`', () async { - // TODO - }); - - // int videos (default value: 0) - test('to test the property `videos`', () async { - // TODO - }); - - // int usage (default value: 0) - test('to test the property `usage`', () async { - // TODO - }); - - // List usageByUser (default value: const []) - test('to test the property `usageByUser`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/server_version_reponse_dto_test.dart b/mobile/openapi/test/server_version_reponse_dto_test.dart deleted file mode 100644 index 3095e7a4629873..00000000000000 --- a/mobile/openapi/test/server_version_reponse_dto_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ServerVersionReponseDto -void main() { - // final instance = ServerVersionReponseDto(); - - group('test ServerVersionReponseDto', () { - // int major - test('to test the property `major`', () async { - // TODO - }); - - // int minor - test('to test the property `minor`', () async { - // TODO - }); - - // int patch_ - test('to test the property `patch_`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/shared_link_api_test.dart b/mobile/openapi/test/shared_link_api_test.dart deleted file mode 100644 index 05843bad7abef7..00000000000000 --- a/mobile/openapi/test/shared_link_api_test.dart +++ /dev/null @@ -1,61 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for SharedLinkApi -void main() { - // final instance = SharedLinkApi(); - - group('tests for SharedLinkApi', () { - //Future> addSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String key }) async - test('test addSharedLinkAssets', () async { - // TODO - }); - - //Future createSharedLink(SharedLinkCreateDto sharedLinkCreateDto) async - test('test createSharedLink', () async { - // TODO - }); - - //Future> getAllSharedLinks() async - test('test getAllSharedLinks', () async { - // TODO - }); - - //Future getMySharedLink({ String key }) async - test('test getMySharedLink', () async { - // TODO - }); - - //Future getSharedLinkById(String id) async - test('test getSharedLinkById', () async { - // TODO - }); - - //Future removeSharedLink(String id) async - test('test removeSharedLink', () async { - // TODO - }); - - //Future> removeSharedLinkAssets(String id, AssetIdsDto assetIdsDto, { String key }) async - test('test removeSharedLinkAssets', () async { - // TODO - }); - - //Future updateSharedLink(String id, SharedLinkEditDto sharedLinkEditDto) async - test('test updateSharedLink', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/shared_link_create_dto_test.dart b/mobile/openapi/test/shared_link_create_dto_test.dart deleted file mode 100644 index 0a2a6a7f9913f6..00000000000000 --- a/mobile/openapi/test/shared_link_create_dto_test.dart +++ /dev/null @@ -1,62 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SharedLinkCreateDto -void main() { - // final instance = SharedLinkCreateDto(); - - group('test SharedLinkCreateDto', () { - // SharedLinkType type - test('to test the property `type`', () async { - // TODO - }); - - // List assetIds (default value: const []) - test('to test the property `assetIds`', () async { - // TODO - }); - - // String albumId - test('to test the property `albumId`', () async { - // TODO - }); - - // String description - test('to test the property `description`', () async { - // TODO - }); - - // DateTime expiresAt - test('to test the property `expiresAt`', () async { - // TODO - }); - - // bool allowUpload (default value: false) - test('to test the property `allowUpload`', () async { - // TODO - }); - - // bool allowDownload (default value: true) - test('to test the property `allowDownload`', () async { - // TODO - }); - - // bool showExif (default value: true) - test('to test the property `showExif`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/shared_link_edit_dto_test.dart b/mobile/openapi/test/shared_link_edit_dto_test.dart deleted file mode 100644 index 575892f1e2d80f..00000000000000 --- a/mobile/openapi/test/shared_link_edit_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SharedLinkEditDto -void main() { - // final instance = SharedLinkEditDto(); - - group('test SharedLinkEditDto', () { - // String description - test('to test the property `description`', () async { - // TODO - }); - - // DateTime expiresAt - test('to test the property `expiresAt`', () async { - // TODO - }); - - // bool allowUpload - test('to test the property `allowUpload`', () async { - // TODO - }); - - // bool allowDownload - test('to test the property `allowDownload`', () async { - // TODO - }); - - // bool showExif - test('to test the property `showExif`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/shared_link_response_dto_test.dart b/mobile/openapi/test/shared_link_response_dto_test.dart deleted file mode 100644 index 0554a0553dd36d..00000000000000 --- a/mobile/openapi/test/shared_link_response_dto_test.dart +++ /dev/null @@ -1,82 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SharedLinkResponseDto -void main() { - // final instance = SharedLinkResponseDto(); - - group('test SharedLinkResponseDto', () { - // SharedLinkType type - test('to test the property `type`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String description - test('to test the property `description`', () async { - // TODO - }); - - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // String key - test('to test the property `key`', () async { - // TODO - }); - - // DateTime createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - // DateTime expiresAt - test('to test the property `expiresAt`', () async { - // TODO - }); - - // List assets (default value: const []) - test('to test the property `assets`', () async { - // TODO - }); - - // AlbumResponseDto album - test('to test the property `album`', () async { - // TODO - }); - - // bool allowUpload - test('to test the property `allowUpload`', () async { - // TODO - }); - - // bool allowDownload - test('to test the property `allowDownload`', () async { - // TODO - }); - - // bool showExif - test('to test the property `showExif`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/shared_link_type_test.dart b/mobile/openapi/test/shared_link_type_test.dart deleted file mode 100644 index 6a2c8cdf51a2df..00000000000000 --- a/mobile/openapi/test/shared_link_type_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SharedLinkType -void main() { - - group('test SharedLinkType', () { - - }); - -} diff --git a/mobile/openapi/test/sign_up_dto_test.dart b/mobile/openapi/test/sign_up_dto_test.dart deleted file mode 100644 index 4c4d376b82cc76..00000000000000 --- a/mobile/openapi/test/sign_up_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SignUpDto -void main() { - // final instance = SignUpDto(); - - group('test SignUpDto', () { - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/smart_info_response_dto_test.dart b/mobile/openapi/test/smart_info_response_dto_test.dart deleted file mode 100644 index 711e62cc5b883f..00000000000000 --- a/mobile/openapi/test/smart_info_response_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SmartInfoResponseDto -void main() { - // final instance = SmartInfoResponseDto(); - - group('test SmartInfoResponseDto', () { - // List tags (default value: const []) - test('to test the property `tags`', () async { - // TODO - }); - - // List objects (default value: const []) - test('to test the property `objects`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_api_test.dart b/mobile/openapi/test/system_config_api_test.dart deleted file mode 100644 index 6cb7aa79d1d26c..00000000000000 --- a/mobile/openapi/test/system_config_api_test.dart +++ /dev/null @@ -1,41 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for SystemConfigApi -void main() { - // final instance = SystemConfigApi(); - - group('tests for SystemConfigApi', () { - //Future getConfig() async - test('test getConfig', () async { - // TODO - }); - - //Future getDefaults() async - test('test getDefaults', () async { - // TODO - }); - - //Future getStorageTemplateOptions() async - test('test getStorageTemplateOptions', () async { - // TODO - }); - - //Future updateConfig(SystemConfigDto systemConfigDto) async - test('test updateConfig', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/system_config_dto_test.dart b/mobile/openapi/test/system_config_dto_test.dart deleted file mode 100644 index 7ba7608efcedc9..00000000000000 --- a/mobile/openapi/test/system_config_dto_test.dart +++ /dev/null @@ -1,47 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigDto -void main() { - // final instance = SystemConfigDto(); - - group('test SystemConfigDto', () { - // SystemConfigFFmpegDto ffmpeg - test('to test the property `ffmpeg`', () async { - // TODO - }); - - // SystemConfigOAuthDto oauth - test('to test the property `oauth`', () async { - // TODO - }); - - // SystemConfigPasswordLoginDto passwordLogin - test('to test the property `passwordLogin`', () async { - // TODO - }); - - // SystemConfigStorageTemplateDto storageTemplate - test('to test the property `storageTemplate`', () async { - // TODO - }); - - // SystemConfigJobDto job - test('to test the property `job`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_f_fmpeg_dto_test.dart b/mobile/openapi/test/system_config_f_fmpeg_dto_test.dart deleted file mode 100644 index 3305d8d001e08b..00000000000000 --- a/mobile/openapi/test/system_config_f_fmpeg_dto_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigFFmpegDto -void main() { - // final instance = SystemConfigFFmpegDto(); - - group('test SystemConfigFFmpegDto', () { - // int crf - test('to test the property `crf`', () async { - // TODO - }); - - // int threads - test('to test the property `threads`', () async { - // TODO - }); - - // String preset - test('to test the property `preset`', () async { - // TODO - }); - - // String targetVideoCodec - test('to test the property `targetVideoCodec`', () async { - // TODO - }); - - // String targetAudioCodec - test('to test the property `targetAudioCodec`', () async { - // TODO - }); - - // String targetResolution - test('to test the property `targetResolution`', () async { - // TODO - }); - - // String maxBitrate - test('to test the property `maxBitrate`', () async { - // TODO - }); - - // bool twoPass - test('to test the property `twoPass`', () async { - // TODO - }); - - // String transcode - test('to test the property `transcode`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_job_dto_test.dart b/mobile/openapi/test/system_config_job_dto_test.dart deleted file mode 100644 index 3fd36d1846b328..00000000000000 --- a/mobile/openapi/test/system_config_job_dto_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigJobDto -void main() { - // final instance = SystemConfigJobDto(); - - group('test SystemConfigJobDto', () { - // JobSettingsDto thumbnailGeneration - test('to test the property `thumbnailGeneration`', () async { - // TODO - }); - - // JobSettingsDto metadataExtraction - test('to test the property `metadataExtraction`', () async { - // TODO - }); - - // JobSettingsDto videoConversion - test('to test the property `videoConversion`', () async { - // TODO - }); - - // JobSettingsDto objectTagging - test('to test the property `objectTagging`', () async { - // TODO - }); - - // JobSettingsDto clipEncoding - test('to test the property `clipEncoding`', () async { - // TODO - }); - - // JobSettingsDto storageTemplateMigration - test('to test the property `storageTemplateMigration`', () async { - // TODO - }); - - // JobSettingsDto backgroundTask - test('to test the property `backgroundTask`', () async { - // TODO - }); - - // JobSettingsDto search - test('to test the property `search`', () async { - // TODO - }); - - // JobSettingsDto recognizeFaces - test('to test the property `recognizeFaces`', () async { - // TODO - }); - - // JobSettingsDto sidecar - test('to test the property `sidecar`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_o_auth_dto_test.dart b/mobile/openapi/test/system_config_o_auth_dto_test.dart deleted file mode 100644 index ca5fadad4a1d01..00000000000000 --- a/mobile/openapi/test/system_config_o_auth_dto_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigOAuthDto -void main() { - // final instance = SystemConfigOAuthDto(); - - group('test SystemConfigOAuthDto', () { - // bool enabled - test('to test the property `enabled`', () async { - // TODO - }); - - // String issuerUrl - test('to test the property `issuerUrl`', () async { - // TODO - }); - - // String clientId - test('to test the property `clientId`', () async { - // TODO - }); - - // String clientSecret - test('to test the property `clientSecret`', () async { - // TODO - }); - - // String scope - test('to test the property `scope`', () async { - // TODO - }); - - // String buttonText - test('to test the property `buttonText`', () async { - // TODO - }); - - // bool autoRegister - test('to test the property `autoRegister`', () async { - // TODO - }); - - // bool autoLaunch - test('to test the property `autoLaunch`', () async { - // TODO - }); - - // bool mobileOverrideEnabled - test('to test the property `mobileOverrideEnabled`', () async { - // TODO - }); - - // String mobileRedirectUri - test('to test the property `mobileRedirectUri`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_password_login_dto_test.dart b/mobile/openapi/test/system_config_password_login_dto_test.dart deleted file mode 100644 index a8d87d1547a739..00000000000000 --- a/mobile/openapi/test/system_config_password_login_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigPasswordLoginDto -void main() { - // final instance = SystemConfigPasswordLoginDto(); - - group('test SystemConfigPasswordLoginDto', () { - // bool enabled - test('to test the property `enabled`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_storage_template_dto_test.dart b/mobile/openapi/test/system_config_storage_template_dto_test.dart deleted file mode 100644 index 9f5a2e5e10af40..00000000000000 --- a/mobile/openapi/test/system_config_storage_template_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigStorageTemplateDto -void main() { - // final instance = SystemConfigStorageTemplateDto(); - - group('test SystemConfigStorageTemplateDto', () { - // String template - test('to test the property `template`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/system_config_template_storage_option_dto_test.dart b/mobile/openapi/test/system_config_template_storage_option_dto_test.dart deleted file mode 100644 index 2824cc64d2667f..00000000000000 --- a/mobile/openapi/test/system_config_template_storage_option_dto_test.dart +++ /dev/null @@ -1,57 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for SystemConfigTemplateStorageOptionDto -void main() { - // final instance = SystemConfigTemplateStorageOptionDto(); - - group('test SystemConfigTemplateStorageOptionDto', () { - // List yearOptions (default value: const []) - test('to test the property `yearOptions`', () async { - // TODO - }); - - // List monthOptions (default value: const []) - test('to test the property `monthOptions`', () async { - // TODO - }); - - // List dayOptions (default value: const []) - test('to test the property `dayOptions`', () async { - // TODO - }); - - // List hourOptions (default value: const []) - test('to test the property `hourOptions`', () async { - // TODO - }); - - // List minuteOptions (default value: const []) - test('to test the property `minuteOptions`', () async { - // TODO - }); - - // List secondOptions (default value: const []) - test('to test the property `secondOptions`', () async { - // TODO - }); - - // List presetOptions (default value: const []) - test('to test the property `presetOptions`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/tag_api_test.dart b/mobile/openapi/test/tag_api_test.dart deleted file mode 100644 index 1b4d797448eadc..00000000000000 --- a/mobile/openapi/test/tag_api_test.dart +++ /dev/null @@ -1,61 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for TagApi -void main() { - // final instance = TagApi(); - - group('tests for TagApi', () { - //Future createTag(CreateTagDto createTagDto) async - test('test createTag', () async { - // TODO - }); - - //Future deleteTag(String id) async - test('test deleteTag', () async { - // TODO - }); - - //Future> getAllTags() async - test('test getAllTags', () async { - // TODO - }); - - //Future> getTagAssets(String id) async - test('test getTagAssets', () async { - // TODO - }); - - //Future getTagById(String id) async - test('test getTagById', () async { - // TODO - }); - - //Future> tagAssets(String id, AssetIdsDto assetIdsDto) async - test('test tagAssets', () async { - // TODO - }); - - //Future> untagAssets(String id, AssetIdsDto assetIdsDto) async - test('test untagAssets', () async { - // TODO - }); - - //Future updateTag(String id, UpdateTagDto updateTagDto) async - test('test updateTag', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/tag_response_dto_test.dart b/mobile/openapi/test/tag_response_dto_test.dart deleted file mode 100644 index 705a21ecd0864f..00000000000000 --- a/mobile/openapi/test/tag_response_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for TagResponseDto -void main() { - // final instance = TagResponseDto(); - - group('test TagResponseDto', () { - // TagTypeEnum type - test('to test the property `type`', () async { - // TODO - }); - - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String name - test('to test the property `name`', () async { - // TODO - }); - - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/tag_type_enum_test.dart b/mobile/openapi/test/tag_type_enum_test.dart deleted file mode 100644 index 07a03894669d00..00000000000000 --- a/mobile/openapi/test/tag_type_enum_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for TagTypeEnum -void main() { - - group('test TagTypeEnum', () { - - }); - -} diff --git a/mobile/openapi/test/thumbnail_format_test.dart b/mobile/openapi/test/thumbnail_format_test.dart deleted file mode 100644 index 9fb4c538789a45..00000000000000 --- a/mobile/openapi/test/thumbnail_format_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ThumbnailFormat -void main() { - - group('test ThumbnailFormat', () { - - }); - -} diff --git a/mobile/openapi/test/time_group_enum_test.dart b/mobile/openapi/test/time_group_enum_test.dart deleted file mode 100644 index 3c23d323331edd..00000000000000 --- a/mobile/openapi/test/time_group_enum_test.dart +++ /dev/null @@ -1,21 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for TimeGroupEnum -void main() { - - group('test TimeGroupEnum', () { - - }); - -} diff --git a/mobile/openapi/test/update_album_dto_test.dart b/mobile/openapi/test/update_album_dto_test.dart deleted file mode 100644 index 8ac32dc594bfb0..00000000000000 --- a/mobile/openapi/test/update_album_dto_test.dart +++ /dev/null @@ -1,32 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateAlbumDto -void main() { - // final instance = UpdateAlbumDto(); - - group('test UpdateAlbumDto', () { - // String albumName - test('to test the property `albumName`', () async { - // TODO - }); - - // String albumThumbnailAssetId - test('to test the property `albumThumbnailAssetId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/update_asset_dto_test.dart b/mobile/openapi/test/update_asset_dto_test.dart deleted file mode 100644 index 94dcb27fc73c3c..00000000000000 --- a/mobile/openapi/test/update_asset_dto_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateAssetDto -void main() { - // final instance = UpdateAssetDto(); - - group('test UpdateAssetDto', () { - // List tagIds (default value: const []) - test('to test the property `tagIds`', () async { - // TODO - }); - - // bool isFavorite - test('to test the property `isFavorite`', () async { - // TODO - }); - - // bool isArchived - test('to test the property `isArchived`', () async { - // TODO - }); - - // String description - test('to test the property `description`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/update_tag_dto_test.dart b/mobile/openapi/test/update_tag_dto_test.dart deleted file mode 100644 index 7c67e55d740bf1..00000000000000 --- a/mobile/openapi/test/update_tag_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateTagDto -void main() { - // final instance = UpdateTagDto(); - - group('test UpdateTagDto', () { - // String name - test('to test the property `name`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/update_user_dto_test.dart b/mobile/openapi/test/update_user_dto_test.dart deleted file mode 100644 index 5e89eca18f9565..00000000000000 --- a/mobile/openapi/test/update_user_dto_test.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UpdateUserDto -void main() { - // final instance = UpdateUserDto(); - - group('test UpdateUserDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String storageLabel - test('to test the property `storageLabel`', () async { - // TODO - }); - - // String externalPath - test('to test the property `externalPath`', () async { - // TODO - }); - - // bool isAdmin - test('to test the property `isAdmin`', () async { - // TODO - }); - - // bool shouldChangePassword - test('to test the property `shouldChangePassword`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/usage_by_user_dto_test.dart b/mobile/openapi/test/usage_by_user_dto_test.dart deleted file mode 100644 index a4bec3f71dd7a3..00000000000000 --- a/mobile/openapi/test/usage_by_user_dto_test.dart +++ /dev/null @@ -1,52 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UsageByUserDto -void main() { - // final instance = UsageByUserDto(); - - group('test UsageByUserDto', () { - // String userId - test('to test the property `userId`', () async { - // TODO - }); - - // String userFirstName - test('to test the property `userFirstName`', () async { - // TODO - }); - - // String userLastName - test('to test the property `userLastName`', () async { - // TODO - }); - - // int photos - test('to test the property `photos`', () async { - // TODO - }); - - // int videos - test('to test the property `videos`', () async { - // TODO - }); - - // int usage - test('to test the property `usage`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/user_api_test.dart b/mobile/openapi/test/user_api_test.dart deleted file mode 100644 index 5163a150041fad..00000000000000 --- a/mobile/openapi/test/user_api_test.dart +++ /dev/null @@ -1,71 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - - -/// tests for UserApi -void main() { - // final instance = UserApi(); - - group('tests for UserApi', () { - //Future createProfileImage(MultipartFile file) async - test('test createProfileImage', () async { - // TODO - }); - - //Future createUser(CreateUserDto createUserDto) async - test('test createUser', () async { - // TODO - }); - - //Future deleteUser(String userId) async - test('test deleteUser', () async { - // TODO - }); - - //Future> getAllUsers(bool isAll) async - test('test getAllUsers', () async { - // TODO - }); - - //Future getMyUserInfo() async - test('test getMyUserInfo', () async { - // TODO - }); - - //Future getProfileImage(String userId) async - test('test getProfileImage', () async { - // TODO - }); - - //Future getUserById(String userId) async - test('test getUserById', () async { - // TODO - }); - - //Future getUserCount({ bool admin }) async - test('test getUserCount', () async { - // TODO - }); - - //Future restoreUser(String userId) async - test('test restoreUser', () async { - // TODO - }); - - //Future updateUser(UpdateUserDto updateUserDto) async - test('test updateUser', () async { - // TODO - }); - - }); -} diff --git a/mobile/openapi/test/user_count_response_dto_test.dart b/mobile/openapi/test/user_count_response_dto_test.dart deleted file mode 100644 index 5c46cd3598d86d..00000000000000 --- a/mobile/openapi/test/user_count_response_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UserCountResponseDto -void main() { - // final instance = UserCountResponseDto(); - - group('test UserCountResponseDto', () { - // int userCount - test('to test the property `userCount`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/user_response_dto_test.dart b/mobile/openapi/test/user_response_dto_test.dart deleted file mode 100644 index f5c70f21ff6304..00000000000000 --- a/mobile/openapi/test/user_response_dto_test.dart +++ /dev/null @@ -1,87 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for UserResponseDto -void main() { - // final instance = UserResponseDto(); - - group('test UserResponseDto', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String storageLabel - test('to test the property `storageLabel`', () async { - // TODO - }); - - // String externalPath - test('to test the property `externalPath`', () async { - // TODO - }); - - // String profileImagePath - test('to test the property `profileImagePath`', () async { - // TODO - }); - - // bool shouldChangePassword - test('to test the property `shouldChangePassword`', () async { - // TODO - }); - - // bool isAdmin - test('to test the property `isAdmin`', () async { - // TODO - }); - - // DateTime createdAt - test('to test the property `createdAt`', () async { - // TODO - }); - - // DateTime deletedAt - test('to test the property `deletedAt`', () async { - // TODO - }); - - // DateTime updatedAt - test('to test the property `updatedAt`', () async { - // TODO - }); - - // String oauthId - test('to test the property `oauthId`', () async { - // TODO - }); - - - }); - -} diff --git a/mobile/openapi/test/validate_access_token_response_dto_test.dart b/mobile/openapi/test/validate_access_token_response_dto_test.dart deleted file mode 100644 index fff824700c7b8f..00000000000000 --- a/mobile/openapi/test/validate_access_token_response_dto_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// 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 - -import 'package:openapi/api.dart'; -import 'package:test/test.dart'; - -// tests for ValidateAccessTokenResponseDto -void main() { - // final instance = ValidateAccessTokenResponseDto(); - - group('test ValidateAccessTokenResponseDto', () { - // bool authStatus - test('to test the property `authStatus`', () async { - // TODO - }); - - - }); - -} diff --git a/web/src/lib/components/assets/thumbnail/thumbnail.svelte b/web/src/lib/components/assets/thumbnail/thumbnail.svelte index d5748a86c7c54b..1604047ac423c0 100644 --- a/web/src/lib/components/assets/thumbnail/thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/thumbnail.svelte @@ -12,10 +12,8 @@ import { fade } from 'svelte/transition'; import ImageThumbnail from './image-thumbnail.svelte'; import VideoThumbnail from './video-thumbnail.svelte'; - import ImageBrokenVariant from 'svelte-material-icons/ImageBrokenVariant.svelte'; import Rotate360Icon from 'svelte-material-icons/Rotate360.svelte'; - const dispatch = createEventDispatcher(); export let asset: AssetResponseDto;