Skip to content

High performance self-hosted photo and video management solution.

chore(server): sort open api params (#6484)

Jason Rasmussen7b314f943543
diff --git a/mobile/lib/shared/services/asset.service.dart b/mobile/lib/shared/services/asset.service.dart
index 2ffeb53faa..737d4d56ad 100644
--- a/mobile/lib/shared/services/asset.service.dart
+++ b/mobile/lib/shared/services/asset.service.dart
@@ -53,7 +53,7 @@ class AssetService {
Future<(List<Asset>? toUpsert, List<String>? toDelete)>
_getRemoteAssetChanges(User user, DateTime since) async {
final deleted = await _apiService.auditApi
- .getAuditDeletes(EntityType.ASSET, since, userId: user.id);
+ .getAuditDeletes(since, EntityType.ASSET, userId: user.id);
if (deleted == null || deleted.needsFullSync) return (null, null);
final assetDto = await _apiService.assetApi
.getAllAssets(userId: user.id, updatedAfter: since);
diff --git a/mobile/openapi/doc/ActivityApi.md b/mobile/openapi/doc/ActivityApi.md
index 6221ef5e4f..1552e30863 100644
--- a/mobile/openapi/doc/ActivityApi.md
+++ b/mobile/openapi/doc/ActivityApi.md
@@ -125,7 +125,7 @@ void (empty response body)
[[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)
# **getActivities**
-> List<ActivityResponseDto> getActivities(albumId, assetId, type, level, userId)
+> List<ActivityResponseDto> getActivities(albumId, assetId, level, type, userId)
@@ -150,12 +150,12 @@ import 'package:openapi/api.dart';
final api_instance = ActivityApi();
final albumId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final type = ; // ReactionType |
final level = ; // ReactionLevel |
+final type = ; // ReactionType |
final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
- final result = api_instance.getActivities(albumId, assetId, type, level, userId);
+ final result = api_instance.getActivities(albumId, assetId, level, type, userId);
print(result);
} catch (e) {
print('Exception when calling ActivityApi->getActivities: $e\n');
@@ -168,8 +168,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**albumId** | **String**| |
**assetId** | **String**| | [optional]
- **type** | [**ReactionType**](.md)| | [optional]
**level** | [**ReactionLevel**](.md)| | [optional]
+ **type** | [**ReactionType**](.md)| | [optional]
**userId** | **String**| | [optional]
### Return type
diff --git a/mobile/openapi/doc/AlbumApi.md b/mobile/openapi/doc/AlbumApi.md
index fab77bc03a..427181880d 100644
--- a/mobile/openapi/doc/AlbumApi.md
+++ b/mobile/openapi/doc/AlbumApi.md
@@ -298,7 +298,7 @@ This endpoint does not need any parameter.
[[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, withoutAssets, key)
+> AlbumResponseDto getAlbumInfo(id, key, withoutAssets)
@@ -322,11 +322,11 @@ import 'package:openapi/api.dart';
final api_instance = AlbumApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final withoutAssets = true; // bool |
final key = key_example; // String |
+final withoutAssets = true; // bool |
try {
- final result = api_instance.getAlbumInfo(id, withoutAssets, key);
+ final result = api_instance.getAlbumInfo(id, key, withoutAssets);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAlbumInfo: $e\n');
@@ -338,8 +338,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| |
- **withoutAssets** | **bool**| | [optional]
**key** | **String**| | [optional]
+ **withoutAssets** | **bool**| | [optional]
### Return type
@@ -357,7 +357,7 @@ Name | Type | Description | Notes
[[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<AlbumResponseDto> getAllAlbums(shared, assetId)
+> List<AlbumResponseDto> getAllAlbums(assetId, shared)
@@ -380,11 +380,11 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('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
+final shared = true; // bool |
try {
- final result = api_instance.getAllAlbums(shared, assetId);
+ final result = api_instance.getAllAlbums(assetId, shared);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAllAlbums: $e\n');
@@ -395,8 +395,8 @@ try {
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]
+ **shared** | **bool**| | [optional]
### Return type
diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.md
index fb2ad2411c..0284488148 100644
--- a/mobile/openapi/doc/AssetApi.md
+++ b/mobile/openapi/doc/AssetApi.md
@@ -374,7 +374,7 @@ void (empty response body)
[[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<AssetResponseDto> getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch)
+> List<AssetResponseDto> getAllAssets(ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId)
@@ -399,17 +399,17 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AssetApi();
+final ifNoneMatch = ifNoneMatch_example; // String | ETag of data already cached on the client
+final isArchived = true; // bool |
+final isFavorite = true; // bool |
final skip = 56; // int |
final take = 56; // int |
-final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final isFavorite = true; // bool |
-final isArchived = true; // bool |
final updatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
final updatedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
-final ifNoneMatch = ifNoneMatch_example; // String | ETag of data already cached on the client
+final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
- final result = api_instance.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch);
+ final result = api_instance.getAllAssets(ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId);
print(result);
} catch (e) {
print('Exception when calling AssetApi->getAllAssets: $e\n');
@@ -420,14 +420,14 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **ifNoneMatch** | **String**| ETag of data already cached on the client | [optional]
+ **isArchived** | **bool**| | [optional]
+ **isFavorite** | **bool**| | [optional]
**skip** | **int**| | [optional]
**take** | **int**| | [optional]
- **userId** | **String**| | [optional]
- **isFavorite** | **bool**| | [optional]
- **isArchived** | **bool**| | [optional]
**updatedAfter** | **DateTime**| | [optional]
**updatedBefore** | **DateTime**| | [optional]
- **ifNoneMatch** | **String**| ETag of data already cached on the client | [optional]
+ **userId** | **String**| | [optional]
### Return type
@@ -889,7 +889,7 @@ Name | Type | Description | Notes
[[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<MapMarkerResponseDto> getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore)
+> List<MapMarkerResponseDto> getMapMarkers(fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite)
@@ -912,13 +912,13 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AssetApi();
-final isArchived = true; // bool |
-final isFavorite = true; // bool |
final fileCreatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
final fileCreatedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
+final isArchived = true; // bool |
+final isFavorite = true; // bool |
try {
- final result = api_instance.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore);
+ final result = api_instance.getMapMarkers(fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite);
print(result);
} catch (e) {
print('Exception when calling AssetApi->getMapMarkers: $e\n');
@@ -929,10 +929,10 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **isArchived** | **bool**| | [optional]
- **isFavorite** | **bool**| | [optional]
**fileCreatedAfter** | **DateTime**| | [optional]
**fileCreatedBefore** | **DateTime**| | [optional]
+ **isArchived** | **bool**| | [optional]
+ **isFavorite** | **bool**| | [optional]
### Return type
@@ -1062,7 +1062,7 @@ Name | Type | Description | Notes
[[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)
# **getTimeBucket**
-> List<AssetResponseDto> getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key)
+> List<AssetResponseDto> getTimeBucket(size, timeBucket, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked)
@@ -1087,18 +1087,18 @@ import 'package:openapi/api.dart';
final api_instance = AssetApi();
final size = ; // TimeBucketSize |
final timeBucket = timeBucket_example; // String |
-final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final albumId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final personId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final isArchived = true; // bool |
final isFavorite = true; // bool |
final isTrashed = true; // bool |
-final withStacked = true; // bool |
-final withPartners = true; // bool |
final key = key_example; // String |
+final personId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
+final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
+final withPartners = true; // bool |
+final withStacked = true; // bool |
try {
- final result = api_instance.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key);
+ final result = api_instance.getTimeBucket(size, timeBucket, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked);
print(result);
} catch (e) {
print('Exception when calling AssetApi->getTimeBucket: $e\n');
@@ -1111,15 +1111,15 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**size** | [**TimeBucketSize**](.md)| |
**timeBucket** | **String**| |
- **userId** | **String**| | [optional]
**albumId** | **String**| | [optional]
- **personId** | **String**| | [optional]
**isArchived** | **bool**| | [optional]
**isFavorite** | **bool**| | [optional]
**isTrashed** | **bool**| | [optional]
- **withStacked** | **bool**| | [optional]
- **withPartners** | **bool**| | [optional]
**key** | **String**| | [optional]
+ **personId** | **String**| | [optional]
+ **userId** | **String**| | [optional]
+ **withPartners** | **bool**| | [optional]
+ **withStacked** | **bool**| | [optional]
### Return type
@@ -1137,7 +1137,7 @@ Name | Type | Description | Notes
[[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)
# **getTimeBuckets**
-> List<TimeBucketResponseDto> getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key)
+> List<TimeBucketResponseDto> getTimeBuckets(size, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked)
@@ -1161,18 +1161,18 @@ import 'package:openapi/api.dart';
final api_instance = AssetApi();
final size = ; // TimeBucketSize |
-final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final albumId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final personId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final isArchived = true; // bool |
final isFavorite = true; // bool |
final isTrashed = true; // bool |
-final withStacked = true; // bool |
-final withPartners = true; // bool |
final key = key_example; // String |
+final personId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
+final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
+final withPartners = true; // bool |
+final withStacked = true; // bool |
try {
- final result = api_instance.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key);
+ final result = api_instance.getTimeBuckets(size, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked);
print(result);
} catch (e) {
print('Exception when calling AssetApi->getTimeBuckets: $e\n');
@@ -1184,15 +1184,15 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**size** | [**TimeBucketSize**](.md)| |
- **userId** | **String**| | [optional]
**albumId** | **String**| | [optional]
- **personId** | **String**| | [optional]
**isArchived** | **bool**| | [optional]
**isFavorite** | **bool**| | [optional]
**isTrashed** | **bool**| | [optional]
- **withStacked** | **bool**| | [optional]
- **withPartners** | **bool**| | [optional]
**key** | **String**| | [optional]
+ **personId** | **String**| | [optional]
+ **userId** | **String**| | [optional]
+ **withPartners** | **bool**| | [optional]
+ **withStacked** | **bool**| | [optional]
### Return type
@@ -1423,7 +1423,7 @@ void (empty response body)
[[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)
# **searchAssets**
-> List<AssetResponseDto> searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size)
+> List<AssetResponseDto> searchAssets(checksum, city, country, createdAfter, createdBefore, deviceAssetId, deviceId, encodedVideoPath, id, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, lensModel, libraryId, make, model, order, originalFileName, originalPath, page, resizePath, size, state, takenAfter, takenBefore, trashedAfter, trashedBefore, type, updatedAfter, updatedBefore, webpPath, withDeleted, withExif, withPeople, withStacked)
@@ -1446,13 +1446,15 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AssetApi();
-final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final libraryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
-final type = ; // AssetTypeEnum |
-final order = ; // AssetOrder |
+final checksum = checksum_example; // String |
+final city = city_example; // String |
+final country = country_example; // String |
+final createdAfter = 2013-10-20T19:20:30+01:00; // DateTime |
+final createdBefore = 2013-10-20T19:20:30+01:00; // DateTime |
final deviceAssetId = deviceAssetId_example; // String |
final deviceId = deviceId_example; // String |
-final checksum = checksum_example; // String |
+final encodedVideoPath = encodedVideoPath_example; // String |
+final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final isArchived = true; // bool |
final isEncoded = true; // bool |
final isExternal = true; // bool |
@@ -1461,34 +1463,32 @@ final isMotion = true; // bool |
final isOffline = true; // bool |
final isReadOnly = true; // bool |
final isVisible = true; // bool |
-final withDeleted = true; // bool |
-final withStacked = true; // bool |
-final withExif = true; // bool |
-final withPeople = true; // bool |
-final createdBefore = 2013-10-20T19:20:30+01:00; // DateTime |
-final createdAfter = 2013-10-20T19:20:30+01:00; // DateTime |
-final updatedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
-final updatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
-final trashedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
-final trashedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
-final takenBefore = 2013-10-20T19:20:30+01:00; // DateTime |
-final takenAfter = 2013-10-20T19:20:30+01:00; // DateTime |
-final originalFileName = originalFileName_example; // String |
-final originalPath = originalPath_example; // String |
-final resizePath = resizePath_example; // String |
-final webpPath = webpPath_example; // String |
-final encodedVideoPath = encodedVideoPath_example; // String |
-final city = city_example; // String |
-final state = state_example; // String |
-final country = country_example; // String |
+final lensModel = lensModel_example; // String |
+final libraryId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final make = make_example; // String |
final model = model_example; // String |
-final lensModel = lensModel_example; // String |
+final order = ; // AssetOrder |
+final originalFileName = originalFileName_example; // String |
+final originalPath = originalPath_example; // String |
final page = 8.14; // num |
+final resizePath = resizePath_example; // String |
final size = 8.14; // num |
+final state = state_example; // String |
+final takenAfter = 2013-10-20T19:20:30+01:00; // DateTime |
+final takenBefore = 2013-10-20T19:20:30+01:00; // DateTime |
+final trashedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
+final trashedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
+final type = ; // AssetTypeEnum |
+final updatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
+final updatedBefore = 2013-10-20T19:20:30+01:00; // DateTime |
+final webpPath = webpPath_example; // String |
+final withDeleted = true; // bool |
+final withExif = true; // bool |
+final withPeople = true; // bool |
+final withStacked = true; // bool |
try {
- final result = api_instance.searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size);
+ final result = api_instance.searchAssets(checksum, city, country, createdAfter, createdBefore, deviceAssetId, deviceId, encodedVideoPath, id, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, lensModel, libraryId, make, model, order, originalFileName, originalPath, page, resizePath, size, state, takenAfter, takenBefore, trashedAfter, trashedBefore, type, updatedAfter, updatedBefore, webpPath, withDeleted, withExif, withPeople, withStacked);
print(result);
} catch (e) {
print('Exception when calling AssetApi->searchAssets: $e\n');
@@ -1499,13 +1499,15 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **String**| | [optional]
- **libraryId** | **String**| | [optional]
- **type** | [**AssetTypeEnum**](.md)| | [optional]
- **order** | [**AssetOrder**](.md)| | [optional]
+ **checksum** | **String**| | [optional]
+ **city** | **String**| | [optional]
+ **country** | **String**| | [optional]
+ **createdAfter** | **DateTime**| | [optional]
+ **createdBefore** | **DateTime**| | [optional]
**deviceAssetId** | **String**| | [optional]
**deviceId** | **String**| | [optional]
- **checksum** | **String**| | [optional]
+ **encodedVideoPath** | **String**| | [optional]
+ **id** | **String**| | [optional]
**isArchived** | **bool**| | [optional]
**isEncoded** | **bool**| | [optional]
**isExternal** | **bool**| | [optional]
@@ -1514,31 +1516,29 @@ Name | Type | Description | Notes
**isOffline** | **bool**| | [optional]
**isReadOnly** | **bool**| | [optional]
**isVisible** | **bool**| | [optional]
- **withDeleted** | **bool**| | [optional]
- **withStacked** | **bool**| | [optional]
- **withExif** | **bool**| | [optional]
- **withPeople** | **bool**| | [optional]
- **createdBefore** | **DateTime**| | [optional]
- **createdAfter** | **DateTime**| | [optional]
- **updatedBefore** | **DateTime**| | [optional]
- **updatedAfter** | **DateTime**| | [optional]
- **trashedBefore** | **DateTime**| | [optional]
- **trashedAfter** | **DateTime**| | [optional]
- **takenBefore** | **DateTime**| | [optional]
- **takenAfter** | **DateTime**| | [optional]
- **originalFileName** | **String**| | [optional]
- **originalPath** | **String**| | [optional]
- **resizePath** | **String**| | [optional]
- **webpPath** | **String**| | [optional]
- **encodedVideoPath** | **String**| | [optional]
- **city** | **String**| | [optional]
- **state** | **String**| | [optional]
- **country** | **String**| | [optional]
+ **lensModel** | **String**| | [optional]
+ **libraryId** | **String**| | [optional]
**make** | **String**| | [optional]
**model** | **String**| | [optional]
- **lensModel** | **String**| | [optional]
+ **order** | [**AssetOrder**](.md)| | [optional]
+ **originalFileName** | **String**| | [optional]
+ **originalPath** | **String**| | [optional]
**page** | **num**| | [optional]
+ **resizePath** | **String**| | [optional]
**size** | **num**| | [optional]
+ **state** | **String**| | [optional]
+ **takenAfter** | **DateTime**| | [optional]
+ **takenBefore** | **DateTime**| | [optional]
+ **trashedAfter** | **DateTime**| | [optional]
+ **trashedBefore** | **DateTime**| | [optional]
+ **type** | [**AssetTypeEnum**](.md)| | [optional]
+ **updatedAfter** | **DateTime**| | [optional]
+ **updatedBefore** | **DateTime**| | [optional]
+ **webpPath** | **String**| | [optional]
+ **withDeleted** | **bool**| | [optional]
+ **withExif** | **bool**| | [optional]
+ **withPeople** | **bool**| | [optional]
+ **withStacked** | **bool**| | [optional]
### Return type
diff --git a/mobile/openapi/doc/AuditApi.md b/mobile/openapi/doc/AuditApi.md
index 8fbca70bc7..8514cdec73 100644
--- a/mobile/openapi/doc/AuditApi.md
+++ b/mobile/openapi/doc/AuditApi.md
@@ -70,7 +70,7 @@ void (empty response body)
[[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)
# **getAuditDeletes**
-> AuditDeletesResponseDto getAuditDeletes(entityType, after, userId)
+> AuditDeletesResponseDto getAuditDeletes(after, entityType, userId)
@@ -93,12 +93,12 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AuditApi();
-final entityType = ; // EntityType |
final after = 2013-10-20T19:20:30+01:00; // DateTime |
+final entityType = ; // EntityType |
final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
try {
- final result = api_instance.getAuditDeletes(entityType, after, userId);
+ final result = api_instance.getAuditDeletes(after, entityType, userId);
print(result);
} catch (e) {
print('Exception when calling AuditApi->getAuditDeletes: $e\n');
@@ -109,8 +109,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **entityType** | [**EntityType**](.md)| |
**after** | **DateTime**| |
+ **entityType** | [**EntityType**](.md)| |
**userId** | **String**| | [optional]
### Return type
diff --git a/mobile/openapi/doc/SearchApi.md b/mobile/openapi/doc/SearchApi.md
index 524ce03f5b..1cd5f60a7c 100644
--- a/mobile/openapi/doc/SearchApi.md
+++ b/mobile/openapi/doc/SearchApi.md
@@ -66,7 +66,7 @@ This endpoint does not need any parameter.
[[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, recent, motion, withArchived)
+> SearchResponseDto search(clip, motion, q, query, recent, type, withArchived)
@@ -89,16 +89,16 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = SearchApi();
+final clip = true; // bool |
+final motion = true; // bool |
final q = q_example; // String |
final query = query_example; // String |
-final clip = true; // bool |
-final type = type_example; // String |
final recent = true; // bool |
-final motion = true; // bool |
+final type = type_example; // String |
final withArchived = true; // bool |
try {
- final result = api_instance.search(q, query, clip, type, recent, motion, withArchived);
+ final result = api_instance.search(clip, motion, q, query, recent, type, withArchived);
print(result);
} catch (e) {
print('Exception when calling SearchApi->search: $e\n');
@@ -109,12 +109,12 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **clip** | **bool**| | [optional]
+ **motion** | **bool**| | [optional]
**q** | **String**| | [optional]
**query** | **String**| | [optional]
- **clip** | **bool**| | [optional]
- **type** | **String**| | [optional]
**recent** | **bool**| | [optional]
- **motion** | **bool**| | [optional]
+ **type** | **String**| | [optional]
**withArchived** | **bool**| | [optional]
### Return type
diff --git a/mobile/openapi/doc/SharedLinkApi.md b/mobile/openapi/doc/SharedLinkApi.md
index 873ffc5825..ff62cf423e 100644
--- a/mobile/openapi/doc/SharedLinkApi.md
+++ b/mobile/openapi/doc/SharedLinkApi.md
@@ -185,7 +185,7 @@ This endpoint does not need any parameter.
[[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(password, token, key)
+> SharedLinkResponseDto getMySharedLink(key, password, token)
@@ -208,12 +208,12 @@ import 'package:openapi/api.dart';
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = SharedLinkApi();
+final key = key_example; // String |
final password = password; // String |
final token = token_example; // String |
-final key = key_example; // String |
try {
- final result = api_instance.getMySharedLink(password, token, key);
+ final result = api_instance.getMySharedLink(key, password, token);
print(result);
} catch (e) {
print('Exception when calling SharedLinkApi->getMySharedLink: $e\n');
@@ -224,9 +224,9 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **key** | **String**| | [optional]
**password** | **String**| | [optional]
**token** | **String**| | [optional]
- **key** | **String**| | [optional]
### Return type
diff --git a/mobile/openapi/lib/api/activity_api.dart b/mobile/openapi/lib/api/activity_api.dart
index 8e2354e201..250f8f9b21 100644
--- a/mobile/openapi/lib/api/activity_api.dart
+++ b/mobile/openapi/lib/api/activity_api.dart
@@ -110,12 +110,12 @@ class ActivityApi {
///
/// * [String] assetId:
///
- /// * [ReactionType] type:
- ///
/// * [ReactionLevel] level:
///
+ /// * [ReactionType] type:
+ ///
/// * [String] userId:
- Future<Response> getActivitiesWithHttpInfo(String albumId, { String? assetId, ReactionType? type, ReactionLevel? level, String? userId, }) async {
+ Future<Response> getActivitiesWithHttpInfo(String albumId, { String? assetId, ReactionLevel? level, ReactionType? type, String? userId, }) async {
// ignore: prefer_const_declarations
final path = r'/activity';
@@ -130,12 +130,12 @@ class ActivityApi {
if (assetId != null) {
queryParams.addAll(_queryParams('', 'assetId', assetId));
}
- if (type != null) {
- queryParams.addAll(_queryParams('', 'type', type));
- }
if (level != null) {
queryParams.addAll(_queryParams('', 'level', level));
}
+ if (type != null) {
+ queryParams.addAll(_queryParams('', 'type', type));
+ }
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
@@ -160,13 +160,13 @@ class ActivityApi {
///
/// * [String] assetId:
///
- /// * [ReactionType] type:
- ///
/// * [ReactionLevel] level:
///
+ /// * [ReactionType] type:
+ ///
/// * [String] userId:
- Future<List<ActivityResponseDto>?> getActivities(String albumId, { String? assetId, ReactionType? type, ReactionLevel? level, String? userId, }) async {
- final response = await getActivitiesWithHttpInfo(albumId, assetId: assetId, type: type, level: level, userId: userId, );
+ Future<List<ActivityResponseDto>?> getActivities(String albumId, { String? assetId, ReactionLevel? level, ReactionType? type, String? userId, }) async {
+ final response = await getActivitiesWithHttpInfo(albumId, assetId: assetId, level: level, type: type, userId: userId, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/lib/api/album_api.dart b/mobile/openapi/lib/api/album_api.dart
index 122a83940d..bca2a985c5 100644
--- a/mobile/openapi/lib/api/album_api.dart
+++ b/mobile/openapi/lib/api/album_api.dart
@@ -264,10 +264,10 @@ class AlbumApi {
///
/// * [String] id (required):
///
- /// * [bool] withoutAssets:
- ///
/// * [String] key:
- Future<Response> getAlbumInfoWithHttpInfo(String id, { bool? withoutAssets, String? key, }) async {
+ ///
+ /// * [bool] withoutAssets:
+ Future<Response> getAlbumInfoWithHttpInfo(String id, { String? key, bool? withoutAssets, }) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}'
.replaceAll('{id}', id);
@@ -279,12 +279,12 @@ class AlbumApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- if (withoutAssets != null) {
- queryParams.addAll(_queryParams('', 'withoutAssets', withoutAssets));
- }
if (key != null) {
queryParams.addAll(_queryParams('', 'key', key));
}
+ if (withoutAssets != null) {
+ queryParams.addAll(_queryParams('', 'withoutAssets', withoutAssets));
+ }
const contentTypes = <String>[];
@@ -304,11 +304,11 @@ class AlbumApi {
///
/// * [String] id (required):
///
- /// * [bool] withoutAssets:
- ///
/// * [String] key:
- Future<AlbumResponseDto?> getAlbumInfo(String id, { bool? withoutAssets, String? key, }) async {
- final response = await getAlbumInfoWithHttpInfo(id, withoutAssets: withoutAssets, key: key, );
+ ///
+ /// * [bool] withoutAssets:
+ Future<AlbumResponseDto?> getAlbumInfo(String id, { String? key, bool? withoutAssets, }) async {
+ final response = await getAlbumInfoWithHttpInfo(id, key: key, withoutAssets: withoutAssets, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
@@ -325,11 +325,11 @@ class AlbumApi {
/// 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<Response> getAllAlbumsWithHttpInfo({ bool? shared, String? assetId, }) async {
+ ///
+ /// * [bool] shared:
+ Future<Response> getAllAlbumsWithHttpInfo({ String? assetId, bool? shared, }) async {
// ignore: prefer_const_declarations
final path = r'/album';
@@ -340,12 +340,12 @@ class AlbumApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- if (shared != null) {
- queryParams.addAll(_queryParams('', 'shared', shared));
- }
if (assetId != null) {
queryParams.addAll(_queryParams('', 'assetId', assetId));
}
+ if (shared != null) {
+ queryParams.addAll(_queryParams('', 'shared', shared));
+ }
const contentTypes = <String>[];
@@ -363,12 +363,12 @@ class AlbumApi {
/// Parameters:
///
- /// * [bool] shared:
- ///
/// * [String] assetId:
/// Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
- Future<List<AlbumResponseDto>?> getAllAlbums({ bool? shared, String? assetId, }) async {
- final response = await getAllAlbumsWithHttpInfo( shared: shared, assetId: assetId, );
+ ///
+ /// * [bool] shared:
+ Future<List<AlbumResponseDto>?> getAllAlbums({ String? assetId, bool? shared, }) async {
+ final response = await getAllAlbumsWithHttpInfo( assetId: assetId, shared: shared, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dart
index 45c1e11043..84b73ea9aa 100644
--- a/mobile/openapi/lib/api/asset_api.dart
+++ b/mobile/openapi/lib/api/asset_api.dart
@@ -309,23 +309,23 @@ class AssetApi {
///
/// Parameters:
///
- /// * [int] skip:
- ///
- /// * [int] take:
+ /// * [String] ifNoneMatch:
+ /// ETag of data already cached on the client
///
- /// * [String] userId:
+ /// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
- /// * [bool] isArchived:
+ /// * [int] skip:
+ ///
+ /// * [int] take:
///
/// * [DateTime] updatedAfter:
///
/// * [DateTime] updatedBefore:
///
- /// * [String] ifNoneMatch:
- /// ETag of data already cached on the client
- Future<Response> getAllAssetsWithHttpInfo({ int? skip, int? take, String? userId, bool? isFavorite, bool? isArchived, DateTime? updatedAfter, DateTime? updatedBefore, String? ifNoneMatch, }) async {
+ /// * [String] userId:
+ Future<Response> getAllAssetsWithHttpInfo({ String? ifNoneMatch, bool? isArchived, bool? isFavorite, int? skip, int? take, DateTime? updatedAfter, DateTime? updatedBefore, String? userId, }) async {
// ignore: prefer_const_declarations
final path = r'/asset';
@@ -336,27 +336,27 @@ class AssetApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
+ if (isArchived != null) {
+ queryParams.addAll(_queryParams('', 'isArchived', isArchived));
+ }
+ if (isFavorite != null) {
+ queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
+ }
if (skip != null) {
queryParams.addAll(_queryParams('', 'skip', skip));
}
if (take != null) {
queryParams.addAll(_queryParams('', 'take', take));
}
- 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 (updatedAfter != null) {
queryParams.addAll(_queryParams('', 'updatedAfter', updatedAfter));
}
if (updatedBefore != null) {
queryParams.addAll(_queryParams('', 'updatedBefore', updatedBefore));
}
+ if (userId != null) {
+ queryParams.addAll(_queryParams('', 'userId', userId));
+ }
if (ifNoneMatch != null) {
headerParams[r'if-none-match'] = parameterToString(ifNoneMatch);
@@ -380,24 +380,24 @@ class AssetApi {
///
/// Parameters:
///
- /// * [int] skip:
- ///
- /// * [int] take:
+ /// * [String] ifNoneMatch:
+ /// ETag of data already cached on the client
///
- /// * [String] userId:
+ /// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
- /// * [bool] isArchived:
+ /// * [int] skip:
+ ///
+ /// * [int] take:
///
/// * [DateTime] updatedAfter:
///
/// * [DateTime] updatedBefore:
///
- /// * [String] ifNoneMatch:
- /// ETag of data already cached on the client
- Future<List<AssetResponseDto>?> getAllAssets({ int? skip, int? take, String? userId, bool? isFavorite, bool? isArchived, DateTime? updatedAfter, DateTime? updatedBefore, String? ifNoneMatch, }) async {
- final response = await getAllAssetsWithHttpInfo( skip: skip, take: take, userId: userId, isFavorite: isFavorite, isArchived: isArchived, updatedAfter: updatedAfter, updatedBefore: updatedBefore, ifNoneMatch: ifNoneMatch, );
+ /// * [String] userId:
+ Future<List<AssetResponseDto>?> getAllAssets({ String? ifNoneMatch, bool? isArchived, bool? isFavorite, int? skip, int? take, DateTime? updatedAfter, DateTime? updatedBefore, String? userId, }) async {
+ final response = await getAllAssetsWithHttpInfo( ifNoneMatch: ifNoneMatch, isArchived: isArchived, isFavorite: isFavorite, skip: skip, take: take, updatedAfter: updatedAfter, updatedBefore: updatedBefore, userId: userId, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
@@ -849,14 +849,14 @@ class AssetApi {
/// Performs an HTTP 'GET /asset/map-marker' operation and returns the [Response].
/// Parameters:
///
- /// * [bool] isArchived:
- ///
- /// * [bool] isFavorite:
- ///
/// * [DateTime] fileCreatedAfter:
///
/// * [DateTime] fileCreatedBefore:
- Future<Response> getMapMarkersWithHttpInfo({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async {
+ ///
+ /// * [bool] isArchived:
+ ///
+ /// * [bool] isFavorite:
+ Future<Response> getMapMarkersWithHttpInfo({ DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, bool? isArchived, bool? isFavorite, }) async {
// ignore: prefer_const_declarations
final path = r'/asset/map-marker';
@@ -867,18 +867,18 @@ class AssetApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- if (isArchived != null) {
- queryParams.addAll(_queryParams('', 'isArchived', isArchived));
- }
- if (isFavorite != null) {
- queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
- }
if (fileCreatedAfter != null) {
queryParams.addAll(_queryParams('', 'fileCreatedAfter', fileCreatedAfter));
}
if (fileCreatedBefore != null) {
queryParams.addAll(_queryParams('', 'fileCreatedBefore', fileCreatedBefore));
}
+ if (isArchived != null) {
+ queryParams.addAll(_queryParams('', 'isArchived', isArchived));
+ }
+ if (isFavorite != null) {
+ queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
+ }
const contentTypes = <String>[];
@@ -896,15 +896,15 @@ class AssetApi {
/// Parameters:
///
- /// * [bool] isArchived:
- ///
- /// * [bool] isFavorite:
- ///
/// * [DateTime] fileCreatedAfter:
///
/// * [DateTime] fileCreatedBefore:
- Future<List<MapMarkerResponseDto>?> getMapMarkers({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async {
- final response = await getMapMarkersWithHttpInfo( isArchived: isArchived, isFavorite: isFavorite, fileCreatedAfter: fileCreatedAfter, fileCreatedBefore: fileCreatedBefore, );
+ ///
+ /// * [bool] isArchived:
+ ///
+ /// * [bool] isFavorite:
+ Future<List<MapMarkerResponseDto>?> getMapMarkers({ DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, bool? isArchived, bool? isFavorite, }) async {
+ final response = await getMapMarkersWithHttpInfo( fileCreatedAfter: fileCreatedAfter, fileCreatedBefore: fileCreatedBefore, isArchived: isArchived, isFavorite: isFavorite, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
@@ -1039,24 +1039,24 @@ class AssetApi {
///
/// * [String] timeBucket (required):
///
- /// * [String] userId:
- ///
/// * [String] albumId:
///
- /// * [String] personId:
- ///
/// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
/// * [bool] isTrashed:
///
- /// * [bool] withStacked:
+ /// * [String] key:
+ ///
+ /// * [String] personId:
+ ///
+ /// * [String] userId:
///
/// * [bool] withPartners:
///
- /// * [String] key:
- Future<Response> getTimeBucketWithHttpInfo(TimeBucketSize size, String timeBucket, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, bool? withPartners, String? key, }) async {
+ /// * [bool] withStacked:
+ Future<Response> getTimeBucketWithHttpInfo(TimeBucketSize size, String timeBucket, { String? albumId, bool? isArchived, bool? isFavorite, bool? isTrashed, String? key, String? personId, String? userId, bool? withPartners, bool? withStacked, }) async {
// ignore: prefer_const_declarations
final path = r'/asset/time-bucket';
@@ -1067,16 +1067,9 @@ class AssetApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- queryParams.addAll(_queryParams('', 'size', size));
- if (userId != null) {
- queryParams.addAll(_queryParams('', 'userId', userId));
- }
if (albumId != null) {
queryParams.addAll(_queryParams('', 'albumId', albumId));
}
- if (personId != null) {
- queryParams.addAll(_queryParams('', 'personId', personId));
- }
if (isArchived != null) {
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
}
@@ -1086,15 +1079,22 @@ class AssetApi {
if (isTrashed != null) {
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
}
- if (withStacked != null) {
- queryParams.addAll(_queryParams('', 'withStacked', withStacked));
+ if (key != null) {
+ queryParams.addAll(_queryParams('', 'key', key));
+ }
+ if (personId != null) {
+ queryParams.addAll(_queryParams('', 'personId', personId));
+ }
+ queryParams.addAll(_queryParams('', 'size', size));
+ queryParams.addAll(_queryParams('', 'timeBucket', timeBucket));
+ if (userId != null) {
+ queryParams.addAll(_queryParams('', 'userId', userId));
}
if (withPartners != null) {
queryParams.addAll(_queryParams('', 'withPartners', withPartners));
}
- queryParams.addAll(_queryParams('', 'timeBucket', timeBucket));
- if (key != null) {
- queryParams.addAll(_queryParams('', 'key', key));
+ if (withStacked != null) {
+ queryParams.addAll(_queryParams('', 'withStacked', withStacked));
}
const contentTypes = <String>[];
@@ -1117,25 +1117,25 @@ class AssetApi {
///
/// * [String] timeBucket (required):
///
- /// * [String] userId:
- ///
/// * [String] albumId:
///
- /// * [String] personId:
- ///
/// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
/// * [bool] isTrashed:
///
- /// * [bool] withStacked:
+ /// * [String] key:
+ ///
+ /// * [String] personId:
+ ///
+ /// * [String] userId:
///
/// * [bool] withPartners:
///
- /// * [String] key:
- Future<List<AssetResponseDto>?> getTimeBucket(TimeBucketSize size, String timeBucket, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, bool? withPartners, String? key, }) async {
- final response = await getTimeBucketWithHttpInfo(size, timeBucket, userId: userId, albumId: albumId, personId: personId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, withStacked: withStacked, withPartners: withPartners, key: key, );
+ /// * [bool] withStacked:
+ Future<List<AssetResponseDto>?> getTimeBucket(TimeBucketSize size, String timeBucket, { String? albumId, bool? isArchived, bool? isFavorite, bool? isTrashed, String? key, String? personId, String? userId, bool? withPartners, bool? withStacked, }) async {
+ final response = await getTimeBucketWithHttpInfo(size, timeBucket, albumId: albumId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, key: key, personId: personId, userId: userId, withPartners: withPartners, withStacked: withStacked, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
@@ -1157,24 +1157,24 @@ class AssetApi {
///
/// * [TimeBucketSize] size (required):
///
- /// * [String] userId:
- ///
/// * [String] albumId:
///
- /// * [String] personId:
- ///
/// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
/// * [bool] isTrashed:
///
- /// * [bool] withStacked:
+ /// * [String] key:
+ ///
+ /// * [String] personId:
+ ///
+ /// * [String] userId:
///
/// * [bool] withPartners:
///
- /// * [String] key:
- Future<Response> getTimeBucketsWithHttpInfo(TimeBucketSize size, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, bool? withPartners, String? key, }) async {
+ /// * [bool] withStacked:
+ Future<Response> getTimeBucketsWithHttpInfo(TimeBucketSize size, { String? albumId, bool? isArchived, bool? isFavorite, bool? isTrashed, String? key, String? personId, String? userId, bool? withPartners, bool? withStacked, }) async {
// ignore: prefer_const_declarations
final path = r'/asset/time-buckets';
@@ -1185,16 +1185,9 @@ class AssetApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- queryParams.addAll(_queryParams('', 'size', size));
- if (userId != null) {
- queryParams.addAll(_queryParams('', 'userId', userId));
- }
if (albumId != null) {
queryParams.addAll(_queryParams('', 'albumId', albumId));
}
- if (personId != null) {
- queryParams.addAll(_queryParams('', 'personId', personId));
- }
if (isArchived != null) {
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
}
@@ -1204,14 +1197,21 @@ class AssetApi {
if (isTrashed != null) {
queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
}
- if (withStacked != null) {
- queryParams.addAll(_queryParams('', 'withStacked', withStacked));
+ if (key != null) {
+ queryParams.addAll(_queryParams('', 'key', key));
+ }
+ if (personId != null) {
+ queryParams.addAll(_queryParams('', 'personId', personId));
+ }
+ queryParams.addAll(_queryParams('', 'size', size));
+ if (userId != null) {
+ queryParams.addAll(_queryParams('', 'userId', userId));
}
if (withPartners != null) {
queryParams.addAll(_queryParams('', 'withPartners', withPartners));
}
- if (key != null) {
- queryParams.addAll(_queryParams('', 'key', key));
+ if (withStacked != null) {
+ queryParams.addAll(_queryParams('', 'withStacked', withStacked));
}
const contentTypes = <String>[];
@@ -1232,25 +1232,25 @@ class AssetApi {
///
/// * [TimeBucketSize] size (required):
///
- /// * [String] userId:
- ///
/// * [String] albumId:
///
- /// * [String] personId:
- ///
/// * [bool] isArchived:
///
/// * [bool] isFavorite:
///
/// * [bool] isTrashed:
///
- /// * [bool] withStacked:
+ /// * [String] key:
+ ///
+ /// * [String] personId:
+ ///
+ /// * [String] userId:
///
/// * [bool] withPartners:
///
- /// * [String] key:
- Future<List<TimeBucketResponseDto>?> getTimeBuckets(TimeBucketSize size, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, bool? withPartners, String? key, }) async {
- final response = await getTimeBucketsWithHttpInfo(size, userId: userId, albumId: albumId, personId: personId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, withStacked: withStacked, withPartners: withPartners, key: key, );
+ /// * [bool] withStacked:
+ Future<List<TimeBucketResponseDto>?> getTimeBuckets(TimeBucketSize size, { String? albumId, bool? isArchived, bool? isFavorite, bool? isTrashed, String? key, String? personId, String? userId, bool? withPartners, bool? withStacked, }) async {
+ final response = await getTimeBucketsWithHttpInfo(size, albumId: albumId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, key: key, personId: personId, userId: userId, withPartners: withPartners, withStacked: withStacked, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
@@ -1437,19 +1437,23 @@ class AssetApi {
/// Performs an HTTP 'GET /assets' operation and returns the [Response].
/// Parameters:
///
- /// * [String] id:
+ /// * [String] checksum:
///
- /// * [String] libraryId:
+ /// * [String] city:
///
- /// * [AssetTypeEnum] type:
+ /// * [String] country:
///
- /// * [AssetOrder] order:
+ /// * [DateTime] createdAfter:
+ ///
+ /// * [DateTime] createdBefore:
///
/// * [String] deviceAssetId:
///
/// * [String] deviceId:
///
- /// * [String] checksum:
+ /// * [String] encodedVideoPath:
+ ///
+ /// * [String] id:
///
/// * [bool] isArchived:
///
@@ -1467,56 +1471,52 @@ class AssetApi {
///
/// * [bool] isVisible:
///
- /// * [bool] withDeleted:
+ /// * [String] lensModel:
///
- /// * [bool] withStacked:
+ /// * [String] libraryId:
///
- /// * [bool] withExif:
+ /// * [String] make:
///
- /// * [bool] withPeople:
+ /// * [String] model:
///
- /// * [DateTime] createdBefore:
+ /// * [AssetOrder] order:
///
- /// * [DateTime] createdAfter:
+ /// * [String] originalFileName:
///
- /// * [DateTime] updatedBefore:
+ /// * [String] originalPath:
///
- /// * [DateTime] updatedAfter:
+ /// * [num] page:
///
- /// * [DateTime] trashedBefore:
+ /// * [String] resizePath:
///
- /// * [DateTime] trashedAfter:
+ /// * [num] size:
///
- /// * [DateTime] takenBefore:
+ /// * [String] state:
///
/// * [DateTime] takenAfter:
///
- /// * [String] originalFileName:
- ///
- /// * [String] originalPath:
- ///
- /// * [String] resizePath:
+ /// * [DateTime] takenBefore:
///
- /// * [String] webpPath:
+ /// * [DateTime] trashedAfter:
///
- /// * [String] encodedVideoPath:
+ /// * [DateTime] trashedBefore:
///
- /// * [String] city:
+ /// * [AssetTypeEnum] type:
///
- /// * [String] state:
+ /// * [DateTime] updatedAfter:
///
- /// * [String] country:
+ /// * [DateTime] updatedBefore:
///
- /// * [String] make:
+ /// * [String] webpPath:
///
- /// * [String] model:
+ /// * [bool] withDeleted:
///
- /// * [String] lensModel:
+ /// * [bool] withExif:
///
- /// * [num] page:
+ /// * [bool] withPeople:
///
- /// * [num] size:
- Future<Response> searchAssetsWithHttpInfo({ String? id, String? libraryId, AssetTypeEnum? type, AssetOrder? order, String? deviceAssetId, String? deviceId, String? checksum, bool? isArchived, bool? isEncoded, bool? isExternal, bool? isFavorite, bool? isMotion, bool? isOffline, bool? isReadOnly, bool? isVisible, bool? withDeleted, bool? withStacked, bool? withExif, bool? withPeople, DateTime? createdBefore, DateTime? createdAfter, DateTime? updatedBefore, DateTime? updatedAfter, DateTime? trashedBefore, DateTime? trashedAfter, DateTime? takenBefore, DateTime? takenAfter, String? originalFileName, String? originalPath, String? resizePath, String? webpPath, String? encodedVideoPath, String? city, String? state, String? country, String? make, String? model, String? lensModel, num? page, num? size, }) async {
+ /// * [bool] withStacked:
+ Future<Response> searchAssetsWithHttpInfo({ String? checksum, String? city, String? country, DateTime? createdAfter, DateTime? createdBefore, String? deviceAssetId, String? deviceId, String? encodedVideoPath, String? id, bool? isArchived, bool? isEncoded, bool? isExternal, bool? isFavorite, bool? isMotion, bool? isOffline, bool? isReadOnly, bool? isVisible, String? lensModel, String? libraryId, String? make, String? model, AssetOrder? order, String? originalFileName, String? originalPath, num? page, String? resizePath, num? size, String? state, DateTime? takenAfter, DateTime? takenBefore, DateTime? trashedAfter, DateTime? trashedBefore, AssetTypeEnum? type, DateTime? updatedAfter, DateTime? updatedBefore, String? webpPath, bool? withDeleted, bool? withExif, bool? withPeople, bool? withStacked, }) async {
// ignore: prefer_const_declarations
final path = r'/assets';
@@ -1527,17 +1527,20 @@ class AssetApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
- if (id != null) {
- queryParams.addAll(_queryParams('', 'id', id));
+ if (checksum != null) {
+ queryParams.addAll(_queryParams('', 'checksum', checksum));
}
- if (libraryId != null) {
- queryParams.addAll(_queryParams('', 'libraryId', libraryId));
+ if (city != null) {
+ queryParams.addAll(_queryParams('', 'city', city));
}
- if (type != null) {
- queryParams.addAll(_queryParams('', 'type', type));
+ if (country != null) {
+ queryParams.addAll(_queryParams('', 'country', country));
}
- if (order != null) {
- queryParams.addAll(_queryParams('', 'order', order));
+ if (createdAfter != null) {
+ queryParams.addAll(_queryParams('', 'createdAfter', createdAfter));
+ }
+ if (createdBefore != null) {
+ queryParams.addAll(_queryParams('', 'createdBefore', createdBefore));
}
if (deviceAssetId != null) {
queryParams.addAll(_queryParams('', 'deviceAssetId', deviceAssetId));
@@ -1545,8 +1548,11 @@ class AssetApi {
if (deviceId != null) {
queryParams.addAll(_queryParams('', 'deviceId', deviceId));
}
- if (checksum != null) {
- queryParams.addAll(_queryParams('', 'checksum', checksum));
+ if (encodedVideoPath != null) {
+ queryParams.addAll(_queryParams('', 'encodedVideoPath', encodedVideoPath));
+ }
+ if (id != null) {
+ queryParams.addAll(_queryParams('', 'id', id));
}
if (isArchived != null) {
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
@@ -1572,80 +1578,74 @@ class AssetApi {
if (isVisible != null) {
queryParams.addAll(_queryParams('', 'isVisible', isVisible));
}
- if (withDeleted != null) {
- queryParams.addAll(_queryParams('', 'withDeleted', withDeleted));
+ if (lensModel != null) {
+ queryParams.addAll(_queryParams('', 'lensModel', lensModel));
}
- if (withStacked != null) {
- queryParams.addAll(_queryParams('', 'withStacked', withStacked));
+ if (libraryId != null) {
+ queryParams.addAll(_queryParams('', 'libraryId', libraryId));
}
- if (withExif != null) {
- queryParams.addAll(_queryParams('', 'withExif', withExif));
+ if (make != null) {
+ queryParams.addAll(_queryParams('', 'make', make));
}
- if (withPeople != null) {
- queryParams.addAll(_queryParams('', 'withPeople', withPeople));
+ if (model != null) {
+ queryParams.addAll(_queryParams('', 'model', model));
}
- if (createdBefore != null) {
- queryParams.addAll(_queryParams('', 'createdBefore', createdBefore));
+ if (order != null) {
+ queryParams.addAll(_queryParams('', 'order', order));
}
- if (createdAfter != null) {
- queryParams.addAll(_queryParams('', 'createdAfter', createdAfter));
+ if (originalFileName != null) {
+ queryParams.addAll(_queryParams('', 'originalFileName', originalFileName));
}
- if (updatedBefore != null) {
- queryParams.addAll(_queryParams('', 'updatedBefore', updatedBefore));
+ if (originalPath != null) {
+ queryParams.addAll(_queryParams('', 'originalPath', originalPath));
}
- if (updatedAfter != null) {
- queryParams.addAll(_queryParams('', 'updatedAfter', updatedAfter));
+ if (page != null) {
+ queryParams.addAll(_queryParams('', 'page', page));
}
- if (trashedBefore != null) {
- queryParams.addAll(_queryParams('', 'trashedBefore', trashedBefore));
+ if (resizePath != null) {
+ queryParams.addAll(_queryParams('', 'resizePath', resizePath));
}
- if (trashedAfter != null) {
- queryParams.addAll(_queryParams('', 'trashedAfter', trashedAfter));
+ if (size != null) {
+ queryParams.addAll(_queryParams('', 'size', size));
}
- if (takenBefore != null) {
- queryParams.addAll(_queryParams('', 'takenBefore', takenBefore));
+ if (state != null) {
+ queryParams.addAll(_queryParams('', 'state', state));
}
if (takenAfter != null) {
queryParams.addAll(_queryParams('', 'takenAfter', takenAfter));
}
- if (originalFileName != null) {
- queryParams.addAll(_queryParams('', 'originalFileName', originalFileName));
- }
- if (originalPath != null) {
- queryParams.addAll(_queryParams('', 'originalPath', originalPath));
- }
- if (resizePath != null) {
- queryParams.addAll(_queryParams('', 'resizePath', resizePath));
+ if (takenBefore != null) {
+ queryParams.addAll(_queryParams('', 'takenBefore', takenBefore));
}
- if (webpPath != null) {
- queryParams.addAll(_queryParams('', 'webpPath', webpPath));
+ if (trashedAfter != null) {
+ queryParams.addAll(_queryParams('', 'trashedAfter', trashedAfter));
}
- if (encodedVideoPath != null) {
- queryParams.addAll(_queryParams('', 'encodedVideoPath', encodedVideoPath));
+ if (trashedBefore != null) {
+ queryParams.addAll(_queryParams('', 'trashedBefore', trashedBefore));
}
- if (city != null) {
- queryParams.addAll(_queryParams('', 'city', city));
+ if (type != null) {
+ queryParams.addAll(_queryParams('', 'type', type));
}
- if (state != null) {
- queryParams.addAll(_queryParams('', 'state', state));
+ if (updatedAfter != null) {
+ queryParams.addAll(_queryParams('', 'updatedAfter', updatedAfter));
}
- if (country != null) {
- queryParams.addAll(_queryParams('', 'country', country));
+ if (updatedBefore != null) {
+ queryParams.addAll(_queryParams('', 'updatedBefore', updatedBefore));
}
- if (make != null) {
- queryParams.addAll(_queryParams('', 'make', make));
+ if (webpPath != null) {
+ queryParams.addAll(_queryParams('', 'webpPath', webpPath));
}
- if (model != null) {
- queryParams.addAll(_queryParams('', 'model', model));
+ if (withDeleted != null) {
+ queryParams.addAll(_queryParams('', 'withDeleted', withDeleted));
}
- if (lensModel != null) {
- queryParams.addAll(_queryParams('', 'lensModel', lensModel));
+ if (withExif != null) {
+ queryParams.addAll(_queryParams('', 'withExif', withExif));
}
- if (page != null) {
- queryParams.addAll(_queryParams('', 'page', page));
+ if (withPeople != null) {
+ queryParams.addAll(_queryParams('', 'withPeople', withPeople));
}
- if (size != null) {
- queryParams.addAll(_queryParams('', 'size', size));
+ if (withStacked != null) {
+ queryParams.addAll(_queryParams('', 'withStacked', withStacked));
}
const contentTypes = <String>[];
@@ -1664,19 +1664,23 @@ class AssetApi {
/// Parameters:
///
- /// * [String] id:
+ /// * [String] checksum:
///
- /// * [String] libraryId:
+ /// * [String] city:
///
- /// * [AssetTypeEnum] type:
+ /// * [String] country:
///
- /// * [AssetOrder] order:
+ /// * [DateTime] createdAfter:
+ ///
+ /// * [DateTime] createdBefore:
///
/// * [String] deviceAssetId:
///
/// * [String] deviceId:
///
- /// * [String] checksum:
+ /// * [String] encodedVideoPath:
+ ///
+ /// * [String] id:
///
/// * [bool] isArchived:
///
@@ -1694,57 +1698,53 @@ class AssetApi {
///
/// * [bool] isVisible:
///
- /// * [bool] withDeleted:
+ /// * [String] lensModel:
///
- /// * [bool] withStacked:
+ /// * [String] libraryId:
///
- /// * [bool] withExif:
+ /// * [String] make:
///
- /// * [bool] withPeople:
+ /// * [String] model:
///
- /// * [DateTime] createdBefore:
+ /// * [AssetOrder] order:
///
- /// * [DateTime] createdAfter:
+ /// * [String] originalFileName:
///
- /// * [DateTime] updatedBefore:
+ /// * [String] originalPath:
///
- /// * [DateTime] updatedAfter:
+ /// * [num] page:
///
- /// * [DateTime] trashedBefore:
+ /// * [String] resizePath:
///
- /// * [DateTime] trashedAfter:
+ /// * [num] size:
///
- /// * [DateTime] takenBefore:
+ /// * [String] state:
///
/// * [DateTime] takenAfter:
///
- /// * [String] originalFileName:
- ///
- /// * [String] originalPath:
- ///
- /// * [String] resizePath:
+ /// * [DateTime] takenBefore:
///
- /// * [String] webpPath:
+ /// * [DateTime] trashedAfter:
///
- /// * [String] encodedVideoPath:
+ /// * [DateTime] trashedBefore:
///
- /// * [String] city:
+ /// * [AssetTypeEnum] type:
///
- /// * [String] state:
+ /// * [DateTime] updatedAfter:
///
- /// * [String] country:
+ /// * [DateTime] updatedBefore:
///
- /// * [String] make:
+ /// * [String] webpPath:
///
- /// * [String] model:
+ /// * [bool] withDeleted:
///
- /// * [String] lensModel:
+ /// * [bool] withExif:
///
- /// * [num] page:
+ /// * [bool] withPeople:
///
- /// * [num] size:
- Future<List<AssetResponseDto>?> searchAssets({ String? id, String? libraryId, AssetTypeEnum? type, AssetOrder? order, String? deviceAssetId, String? deviceId, String? checksum, bool? isArchived, bool? isEncoded, bool? isExternal, bool? isFavorite, bool? isMotion, bool? isOffline, bool? isReadOnly, bool? isVisible, bool? withDeleted, bool? withStacked, bool? withExif, bool? withPeople, DateTime? createdBefore, DateTime? createdAfter, DateTime? updatedBefore, DateTime? updatedAfter, DateTime? trashedBefore, DateTime? trashedAfter, DateTime? takenBefore, DateTime? takenAfter, String? originalFileName, String? originalPath, String? resizePath, String? webpPath, String? encodedVideoPath, String? city, String? state, String? country, String? make, String? model, String? lensModel, num? page, num? size, }) async {
- final response = await searchAssetsWithHttpInfo( id: id, libraryId: libraryId, type: type, order: order, deviceAssetId: deviceAssetId, deviceId: deviceId, checksum: checksum, isArchived: isArchived, isEncoded: isEncoded, isExternal: isExternal, isFavorite: isFavorite, isMotion: isMotion, isOffline: isOffline, isReadOnly: isReadOnly, isVisible: isVisible, withDeleted: withDeleted, withStacked: withStacked, withExif: withExif, withPeople: withPeople, createdBefore: createdBefore, createdAfter: createdAfter, updatedBefore: updatedBefore, updatedAfter: updatedAfter, trashedBefore: trashedBefore, trashedAfter: trashedAfter, takenBefore: takenBefore, takenAfter: takenAfter, originalFileName: originalFileName, originalPath: originalPath, resizePath: resizePath, webpPath: webpPath, encodedVideoPath: encodedVideoPath, city: city, state: state, country: country, make: make, model: model, lensModel: lensModel, page: page, size: size, );
+ /// * [bool] withStacked:
+ Future<List<AssetResponseDto>?> searchAssets({ String? checksum, String? city, String? country, DateTime? createdAfter, DateTime? createdBefore, String? deviceAssetId, String? deviceId, String? encodedVideoPath, String? id, bool? isArchived, bool? isEncoded, bool? isExternal, bool? isFavorite, bool? isMotion, bool? isOffline, bool? isReadOnly, bool? isVisible, String? lensModel, String? libraryId, String? make, String? model, AssetOrder? order, String? originalFileName, String? originalPath, num? page, String? resizePath, num? size, String? state, DateTime? takenAfter, DateTime? takenBefore, DateTime? trashedAfter, DateTime? trashedBefore, AssetTypeEnum? type, DateTime? updatedAfter, DateTime? updatedBefore, String? webpPath, bool? withDeleted, bool? withExif, bool? withPeople, bool? withStacked, }) async {
+ final response = await searchAssetsWithHttpInfo( checksum: checksum, city: city, country: country, createdAfter: createdAfter, createdBefore: createdBefore, deviceAssetId: deviceAssetId, deviceId: deviceId, encodedVideoPath: encodedVideoPath, id: id, isArchived: isArchived, isEncoded: isEncoded, isExternal: isExternal, isFavorite: isFavorite, isMotion: isMotion, isOffline: isOffline, isReadOnly: isReadOnly, isVisible: isVisible, lensModel: lensModel, libraryId: libraryId, make: make, model: model, order: order, originalFileName: originalFileName, originalPath: originalPath, page: page, resizePath: resizePath, size: size, state: state, takenAfter: takenAfter, takenBefore: takenBefore, trashedAfter: trashedAfter, trashedBefore: trashedBefore, type: type, updatedAfter: updatedAfter, updatedBefore: updatedBefore, webpPath: webpPath, withDeleted: withDeleted, withExif: withExif, withPeople: withPeople, withStacked: withStacked, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/lib/api/audit_api.dart b/mobile/openapi/lib/api/audit_api.dart
index 24b93f178f..d78246c31b 100644
--- a/mobile/openapi/lib/api/audit_api.dart
+++ b/mobile/openapi/lib/api/audit_api.dart
@@ -58,12 +58,12 @@ class AuditApi {
/// Performs an HTTP 'GET /audit/deletes' operation and returns the [Response].
/// Parameters:
///
- /// * [EntityType] entityType (required):
- ///
/// * [DateTime] after (required):
///
+ /// * [EntityType] entityType (required):
+ ///
/// * [String] userId:
- Future<Response> getAuditDeletesWithHttpInfo(EntityType entityType, DateTime after, { String? userId, }) async {
+ Future<Response> getAuditDeletesWithHttpInfo(DateTime after, EntityType entityType, { String? userId, }) async {
// ignore: prefer_const_declarations
final path = r'/audit/deletes';
@@ -74,11 +74,11 @@ class AuditApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
+ queryParams.addAll(_queryParams('', 'after', after));
queryParams.addAll(_queryParams('', 'entityType', entityType));
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
- queryParams.addAll(_queryParams('', 'after', after));
const contentTypes = <String>[];
@@ -96,13 +96,13 @@ class AuditApi {
/// Parameters:
///
- /// * [EntityType] entityType (required):
- ///
/// * [DateTime] after (required):
///
+ /// * [EntityType] entityType (required):
+ ///
/// * [String] userId:
- Future<AuditDeletesResponseDto?> getAuditDeletes(EntityType entityType, DateTime after, { String? userId, }) async {
- final response = await getAuditDeletesWithHttpInfo(entityType, after, userId: userId, );
+ Future<AuditDeletesResponseDto?> getAuditDeletes(DateTime after, EntityType entityType, { String? userId, }) async {
+ final response = await getAuditDeletesWithHttpInfo(after, entityType, userId: userId, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/lib/api/search_api.dart b/mobile/openapi/lib/api/search_api.dart
index 5dd8dc0c70..2efae6838a 100644
--- a/mobile/openapi/lib/api/search_api.dart
+++ b/mobile/openapi/lib/api/search_api.dart
@@ -63,20 +63,20 @@ class SearchApi {
/// Performs an HTTP 'GET /search' operation and returns the [Response].
/// Parameters:
///
- /// * [String] q:
+ /// * [bool] clip:
///
- /// * [String] query:
+ /// * [bool] motion:
///
- /// * [bool] clip:
+ /// * [String] q:
///
- /// * [String] type:
+ /// * [String] query:
///
/// * [bool] recent:
///
- /// * [bool] motion:
+ /// * [String] type:
///
/// * [bool] withArchived:
- Future<Response> searchWithHttpInfo({ String? q, String? query, bool? clip, String? type, bool? recent, bool? motion, bool? withArchived, }) async {
+ Future<Response> searchWithHttpInfo({ bool? clip, bool? motion, String? q, String? query, bool? recent, String? type, bool? withArchived, }) async {
// ignore: prefer_const_declarations
final path = r'/search';
@@ -87,23 +87,23 @@ class SearchApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
+ if (clip != null) {
+ queryParams.addAll(_queryParams('', 'clip', clip));
+ }
+ if (motion != null) {
+ queryParams.addAll(_queryParams('', 'motion', motion));
+ }
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 (recent != null) {
queryParams.addAll(_queryParams('', 'recent', recent));
}
- if (motion != null) {
- queryParams.addAll(_queryParams('', 'motion', motion));
+ if (type != null) {
+ queryParams.addAll(_queryParams('', 'type', type));
}
if (withArchived != null) {
queryParams.addAll(_queryParams('', 'withArchived', withArchived));
@@ -125,21 +125,21 @@ class SearchApi {
/// Parameters:
///
- /// * [String] q:
+ /// * [bool] clip:
///
- /// * [String] query:
+ /// * [bool] motion:
///
- /// * [bool] clip:
+ /// * [String] q:
///
- /// * [String] type:
+ /// * [String] query:
///
/// * [bool] recent:
///
- /// * [bool] motion:
+ /// * [String] type:
///
/// * [bool] withArchived:
- Future<SearchResponseDto?> search({ String? q, String? query, bool? clip, String? type, bool? recent, bool? motion, bool? withArchived, }) async {
- final response = await searchWithHttpInfo( q: q, query: query, clip: clip, type: type, recent: recent, motion: motion, withArchived: withArchived, );
+ Future<SearchResponseDto?> search({ bool? clip, bool? motion, String? q, String? query, bool? recent, String? type, bool? withArchived, }) async {
+ final response = await searchWithHttpInfo( clip: clip, motion: motion, q: q, query: query, recent: recent, type: type, withArchived: withArchived, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/lib/api/shared_link_api.dart b/mobile/openapi/lib/api/shared_link_api.dart
index 661da45eb8..e43ee615c3 100644
--- a/mobile/openapi/lib/api/shared_link_api.dart
+++ b/mobile/openapi/lib/api/shared_link_api.dart
@@ -173,12 +173,12 @@ class SharedLinkApi {
/// Performs an HTTP 'GET /shared-link/me' operation and returns the [Response].
/// Parameters:
///
+ /// * [String] key:
+ ///
/// * [String] password:
///
/// * [String] token:
- ///
- /// * [String] key:
- Future<Response> getMySharedLinkWithHttpInfo({ String? password, String? token, String? key, }) async {
+ Future<Response> getMySharedLinkWithHttpInfo({ String? key, String? password, String? token, }) async {
// ignore: prefer_const_declarations
final path = r'/shared-link/me';
@@ -189,15 +189,15 @@ class SharedLinkApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
+ if (key != null) {
+ queryParams.addAll(_queryParams('', 'key', key));
+ }
if (password != null) {
queryParams.addAll(_queryParams('', 'password', password));
}
if (token != null) {
queryParams.addAll(_queryParams('', 'token', token));
}
- if (key != null) {
- queryParams.addAll(_queryParams('', 'key', key));
- }
const contentTypes = <String>[];
@@ -215,13 +215,13 @@ class SharedLinkApi {
/// Parameters:
///
+ /// * [String] key:
+ ///
/// * [String] password:
///
/// * [String] token:
- ///
- /// * [String] key:
- Future<SharedLinkResponseDto?> getMySharedLink({ String? password, String? token, String? key, }) async {
- final response = await getMySharedLinkWithHttpInfo( password: password, token: token, key: key, );
+ Future<SharedLinkResponseDto?> getMySharedLink({ String? key, String? password, String? token, }) async {
+ final response = await getMySharedLinkWithHttpInfo( key: key, password: password, token: token, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
diff --git a/mobile/openapi/test/activity_api_test.dart b/mobile/openapi/test/activity_api_test.dart
index 7353c6ea35..05ffd928e0 100644
--- a/mobile/openapi/test/activity_api_test.dart
+++ b/mobile/openapi/test/activity_api_test.dart
@@ -27,7 +27,7 @@ void main() {
// TODO
});
- //Future<List<ActivityResponseDto>> getActivities(String albumId, { String assetId, ReactionType type, ReactionLevel level, String userId }) async
+ //Future<List<ActivityResponseDto>> getActivities(String albumId, { String assetId, ReactionLevel level, ReactionType type, String userId }) async
test('test getActivities', () async {
// TODO
});
diff --git a/mobile/openapi/test/album_api_test.dart b/mobile/openapi/test/album_api_test.dart
index af4cd2a45b..aee26e095d 100644
--- a/mobile/openapi/test/album_api_test.dart
+++ b/mobile/openapi/test/album_api_test.dart
@@ -42,12 +42,12 @@ void main() {
// TODO
});
- //Future<AlbumResponseDto> getAlbumInfo(String id, { bool withoutAssets, String key }) async
+ //Future<AlbumResponseDto> getAlbumInfo(String id, { String key, bool withoutAssets }) async
test('test getAlbumInfo', () async {
// TODO
});
- //Future<List<AlbumResponseDto>> getAllAlbums({ bool shared, String assetId }) async
+ //Future<List<AlbumResponseDto>> getAllAlbums({ String assetId, bool shared }) async
test('test getAllAlbums', () async {
// TODO
});
diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dart
index c4f6c85112..b87cacf29a 100644
--- a/mobile/openapi/test/asset_api_test.dart
+++ b/mobile/openapi/test/asset_api_test.dart
@@ -53,7 +53,7 @@ void main() {
// Get all AssetEntity belong to the user
//
- //Future<List<AssetResponseDto>> getAllAssets({ int skip, int take, String userId, bool isFavorite, bool isArchived, DateTime updatedAfter, DateTime updatedBefore, String ifNoneMatch }) async
+ //Future<List<AssetResponseDto>> getAllAssets({ String ifNoneMatch, bool isArchived, bool isFavorite, int skip, int take, DateTime updatedAfter, DateTime updatedBefore, String userId }) async
test('test getAllAssets', () async {
// TODO
});
@@ -102,7 +102,7 @@ void main() {
// TODO
});
- //Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isArchived, bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async
+ //Future<List<MapMarkerResponseDto>> getMapMarkers({ DateTime fileCreatedAfter, DateTime fileCreatedBefore, bool isArchived, bool isFavorite }) async
test('test getMapMarkers', () async {
// TODO
});
@@ -117,12 +117,12 @@ void main() {
// TODO
});
- //Future<List<AssetResponseDto>> getTimeBucket(TimeBucketSize size, String timeBucket, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, bool isTrashed, bool withStacked, bool withPartners, String key }) async
+ //Future<List<AssetResponseDto>> getTimeBucket(TimeBucketSize size, String timeBucket, { String albumId, bool isArchived, bool isFavorite, bool isTrashed, String key, String personId, String userId, bool withPartners, bool withStacked }) async
test('test getTimeBucket', () async {
// TODO
});
- //Future<List<TimeBucketResponseDto>> getTimeBuckets(TimeBucketSize size, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, bool isTrashed, bool withStacked, bool withPartners, String key }) async
+ //Future<List<TimeBucketResponseDto>> getTimeBuckets(TimeBucketSize size, { String albumId, bool isArchived, bool isFavorite, bool isTrashed, String key, String personId, String userId, bool withPartners, bool withStacked }) async
test('test getTimeBuckets', () async {
// TODO
});
@@ -149,7 +149,7 @@ void main() {
// TODO
});
- //Future<List<AssetResponseDto>> searchAssets({ String id, String libraryId, AssetTypeEnum type, AssetOrder order, String deviceAssetId, String deviceId, String checksum, bool isArchived, bool isEncoded, bool isExternal, bool isFavorite, bool isMotion, bool isOffline, bool isReadOnly, bool isVisible, bool withDeleted, bool withStacked, bool withExif, bool withPeople, DateTime createdBefore, DateTime createdAfter, DateTime updatedBefore, DateTime updatedAfter, DateTime trashedBefore, DateTime trashedAfter, DateTime takenBefore, DateTime takenAfter, String originalFileName, String originalPath, String resizePath, String webpPath, String encodedVideoPath, String city, String state, String country, String make, String model, String lensModel, num page, num size }) async
+ //Future<List<AssetResponseDto>> searchAssets({ String checksum, String city, String country, DateTime createdAfter, DateTime createdBefore, String deviceAssetId, String deviceId, String encodedVideoPath, String id, bool isArchived, bool isEncoded, bool isExternal, bool isFavorite, bool isMotion, bool isOffline, bool isReadOnly, bool isVisible, String lensModel, String libraryId, String make, String model, AssetOrder order, String originalFileName, String originalPath, num page, String resizePath, num size, String state, DateTime takenAfter, DateTime takenBefore, DateTime trashedAfter, DateTime trashedBefore, AssetTypeEnum type, DateTime updatedAfter, DateTime updatedBefore, String webpPath, bool withDeleted, bool withExif, bool withPeople, bool withStacked }) async
test('test searchAssets', () async {
// TODO
});
diff --git a/mobile/openapi/test/audit_api_test.dart b/mobile/openapi/test/audit_api_test.dart
index 2ce8d3d860..8161d4e4db 100644
--- a/mobile/openapi/test/audit_api_test.dart
+++ b/mobile/openapi/test/audit_api_test.dart
@@ -22,7 +22,7 @@ void main() {
// TODO
});
- //Future<AuditDeletesResponseDto> getAuditDeletes(EntityType entityType, DateTime after, { String userId }) async
+ //Future<AuditDeletesResponseDto> getAuditDeletes(DateTime after, EntityType entityType, { String userId }) async
test('test getAuditDeletes', () async {
// TODO
});
diff --git a/mobile/openapi/test/search_api_test.dart b/mobile/openapi/test/search_api_test.dart
index edbbfa45b7..50406e90d1 100644
--- a/mobile/openapi/test/search_api_test.dart
+++ b/mobile/openapi/test/search_api_test.dart
@@ -22,7 +22,7 @@ void main() {
// TODO
});
- //Future<SearchResponseDto> search({ String q, String query, bool clip, String type, bool recent, bool motion, bool withArchived }) async
+ //Future<SearchResponseDto> search({ bool clip, bool motion, String q, String query, bool recent, String type, bool withArchived }) async
test('test search', () async {
// TODO
});
diff --git a/mobile/openapi/test/shared_link_api_test.dart b/mobile/openapi/test/shared_link_api_test.dart
index edc2c55d0a..ebe5bf199f 100644
--- a/mobile/openapi/test/shared_link_api_test.dart
+++ b/mobile/openapi/test/shared_link_api_test.dart
@@ -32,7 +32,7 @@ void main() {
// TODO
});
- //Future<SharedLinkResponseDto> getMySharedLink({ String password, String token, String key }) async
+ //Future<SharedLinkResponseDto> getMySharedLink({ String key, String password, String token }) async
test('test getMySharedLink', () async {
// TODO
});
diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json
index 549a377576..0c3a480a27 100644
--- a/open-api/immich-openapi-specs.json
+++ b/open-api/immich-openapi-specs.json
@@ -24,19 +24,19 @@
}
},
{
- "name": "type",
+ "name": "level",
"required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/ReactionType"
+ "$ref": "#/components/schemas/ReactionLevel"
}
},
{
- "name": "level",
+ "name": "type",
"required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/ReactionLevel"
+ "$ref": "#/components/schemas/ReactionType"
}
},
{
@@ -211,21 +211,21 @@
"operationId": "getAllAlbums",
"parameters": [
{
- "name": "shared",
+ "name": "assetId",
"required": false,
"in": "query",
+ "description": "Only returns albums that contain the asset\nIgnores the shared parameter\nundefined: get all albums",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "assetId",
+ "name": "shared",
"required": false,
"in": "query",
- "description": "Only returns albums that contain the asset\nIgnores the shared parameter\nundefined: get all albums",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
}
],
@@ -379,19 +379,19 @@
}
},
{
- "name": "withoutAssets",
+ "name": "key",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "key",
+ "name": "withoutAssets",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
}
],
@@ -923,44 +923,44 @@
"operationId": "getAllAssets",
"parameters": [
{
- "name": "skip",
+ "name": "if-none-match",
+ "in": "header",
+ "description": "ETag of data already cached on the client",
"required": false,
- "in": "query",
"schema": {
- "type": "integer"
+ "type": "string"
}
},
{
- "name": "take",
+ "name": "isArchived",
"required": false,
"in": "query",
"schema": {
- "type": "integer"
+ "type": "boolean"
}
},
{
- "name": "userId",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "isFavorite",
+ "name": "skip",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "integer"
}
},
{
- "name": "isArchived",
+ "name": "take",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "integer"
}
},
{
@@ -982,11 +982,11 @@
}
},
{
- "name": "if-none-match",
- "in": "header",
- "description": "ETag of data already cached on the client",
+ "name": "userId",
"required": false,
+ "in": "query",
"schema": {
+ "format": "uuid",
"type": "string"
}
}
@@ -1570,37 +1570,37 @@
"operationId": "getMapMarkers",
"parameters": [
{
- "name": "isArchived",
+ "name": "fileCreatedAfter",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "date-time",
+ "type": "string"
}
},
{
- "name": "isFavorite",
+ "name": "fileCreatedBefore",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "date-time",
+ "type": "string"
}
},
{
- "name": "fileCreatedAfter",
+ "name": "isArchived",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "fileCreatedBefore",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
- "type": "string"
+ "type": "boolean"
}
}
],
@@ -1897,6 +1897,14 @@
"get": {
"operationId": "getAssetThumbnail",
"parameters": [
+ {
+ "name": "format",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "$ref": "#/components/schemas/ThumbnailFormat"
+ }
+ },
{
"name": "id",
"required": true,
@@ -1906,14 +1914,6 @@
"type": "string"
}
},
- {
- "name": "format",
- "required": false,
- "in": "query",
- "schema": {
- "$ref": "#/components/schemas/ThumbnailFormat"
- }
- },
{
"name": "key",
"required": false,
@@ -1957,94 +1957,94 @@
"operationId": "getTimeBucket",
"parameters": [
{
- "name": "size",
- "required": true,
+ "name": "albumId",
+ "required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/TimeBucketSize"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "userId",
+ "name": "isArchived",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "albumId",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "personId",
+ "name": "isTrashed",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "isArchived",
+ "name": "key",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "isFavorite",
+ "name": "personId",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "isTrashed",
- "required": false,
+ "name": "size",
+ "required": true,
"in": "query",
"schema": {
- "type": "boolean"
+ "$ref": "#/components/schemas/TimeBucketSize"
}
},
{
- "name": "withStacked",
- "required": false,
+ "name": "timeBucket",
+ "required": true,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "withPartners",
+ "name": "userId",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "timeBucket",
- "required": true,
+ "name": "withPartners",
+ "required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "key",
+ "name": "withStacked",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
}
],
@@ -2093,70 +2093,70 @@
"operationId": "getTimeBuckets",
"parameters": [
{
- "name": "size",
- "required": true,
+ "name": "albumId",
+ "required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/TimeBucketSize"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "userId",
+ "name": "isArchived",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "albumId",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "personId",
+ "name": "isTrashed",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "isArchived",
+ "name": "key",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "isFavorite",
+ "name": "personId",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "isTrashed",
- "required": false,
+ "name": "size",
+ "required": true,
"in": "query",
"schema": {
- "type": "boolean"
+ "$ref": "#/components/schemas/TimeBucketSize"
}
},
{
- "name": "withStacked",
+ "name": "userId",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
@@ -2168,11 +2168,11 @@
}
},
{
- "name": "key",
+ "name": "withStacked",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
}
],
@@ -2421,49 +2421,49 @@
"operationId": "searchAssets",
"parameters": [
{
- "name": "id",
+ "name": "checksum",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
},
{
- "name": "libraryId",
+ "name": "city",
"required": false,
"in": "query",
"schema": {
- "format": "uuid",
"type": "string"
}
},
{
- "name": "type",
+ "name": "country",
"required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/AssetTypeEnum"
+ "type": "string"
}
},
{
- "name": "order",
+ "name": "createdAfter",
"required": false,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/AssetOrder"
+ "format": "date-time",
+ "type": "string"
}
},
{
- "name": "deviceAssetId",
+ "name": "createdBefore",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "deviceId",
+ "name": "deviceAssetId",
"required": false,
"in": "query",
"schema": {
@@ -2471,7 +2471,7 @@
}
},
{
- "name": "checksum",
+ "name": "deviceId",
"required": false,
"in": "query",
"schema": {
@@ -2479,23 +2479,24 @@
}
},
{
- "name": "isArchived",
+ "name": "encodedVideoPath",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "isEncoded",
+ "name": "id",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "isExternal",
+ "name": "isArchived",
"required": false,
"in": "query",
"schema": {
@@ -2503,7 +2504,7 @@
}
},
{
- "name": "isFavorite",
+ "name": "isEncoded",
"required": false,
"in": "query",
"schema": {
@@ -2511,7 +2512,7 @@
}
},
{
- "name": "isMotion",
+ "name": "isExternal",
"required": false,
"in": "query",
"schema": {
@@ -2519,7 +2520,7 @@
}
},
{
- "name": "isOffline",
+ "name": "isFavorite",
"required": false,
"in": "query",
"schema": {
@@ -2527,7 +2528,7 @@
}
},
{
- "name": "isReadOnly",
+ "name": "isMotion",
"required": false,
"in": "query",
"schema": {
@@ -2535,7 +2536,7 @@
}
},
{
- "name": "isVisible",
+ "name": "isOffline",
"required": false,
"in": "query",
"schema": {
@@ -2543,7 +2544,7 @@
}
},
{
- "name": "withDeleted",
+ "name": "isReadOnly",
"required": false,
"in": "query",
"schema": {
@@ -2551,7 +2552,7 @@
}
},
{
- "name": "withStacked",
+ "name": "isVisible",
"required": false,
"in": "query",
"schema": {
@@ -2559,95 +2560,88 @@
}
},
{
- "name": "withExif",
+ "name": "lensModel",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "withPeople",
+ "name": "libraryId",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "format": "uuid",
+ "type": "string"
}
},
{
- "name": "createdBefore",
+ "name": "make",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
"type": "string"
}
},
{
- "name": "createdAfter",
+ "name": "model",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
"type": "string"
}
},
{
- "name": "updatedBefore",
+ "name": "order",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
- "type": "string"
+ "$ref": "#/components/schemas/AssetOrder"
}
},
{
- "name": "updatedAfter",
+ "name": "originalFileName",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
"type": "string"
}
},
{
- "name": "trashedBefore",
+ "name": "originalPath",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
"type": "string"
}
},
{
- "name": "trashedAfter",
+ "name": "page",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
- "type": "string"
+ "type": "number"
}
},
{
- "name": "takenBefore",
+ "name": "resizePath",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
"type": "string"
}
},
{
- "name": "takenAfter",
+ "name": "size",
"required": false,
"in": "query",
"schema": {
- "format": "date-time",
- "type": "string"
+ "type": "number"
}
},
{
- "name": "originalFileName",
+ "name": "state",
"required": false,
"in": "query",
"schema": {
@@ -2655,63 +2649,69 @@
}
},
{
- "name": "originalPath",
+ "name": "takenAfter",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "resizePath",
+ "name": "takenBefore",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "webpPath",
+ "name": "trashedAfter",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "encodedVideoPath",
+ "name": "trashedBefore",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "city",
+ "name": "type",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "$ref": "#/components/schemas/AssetTypeEnum"
}
},
{
- "name": "state",
+ "name": "updatedAfter",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "country",
+ "name": "updatedBefore",
"required": false,
"in": "query",
"schema": {
+ "format": "date-time",
"type": "string"
}
},
{
- "name": "make",
+ "name": "webpPath",
"required": false,
"in": "query",
"schema": {
@@ -2719,35 +2719,35 @@
}
},
{
- "name": "model",
+ "name": "withDeleted",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "lensModel",
+ "name": "withExif",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "page",
+ "name": "withPeople",
"required": false,
"in": "query",
"schema": {
- "type": "number"
+ "type": "boolean"
}
},
{
- "name": "size",
+ "name": "withStacked",
"required": false,
"in": "query",
"schema": {
- "type": "number"
+ "type": "boolean"
}
}
],
@@ -2787,28 +2787,28 @@
"operationId": "getAuditDeletes",
"parameters": [
{
- "name": "entityType",
+ "name": "after",
"required": true,
"in": "query",
"schema": {
- "$ref": "#/components/schemas/EntityType"
+ "format": "date-time",
+ "type": "string"
}
},
{
- "name": "userId",
- "required": false,
+ "name": "entityType",
+ "required": true,
"in": "query",
"schema": {
- "format": "uuid",
- "type": "string"
+ "$ref": "#/components/schemas/EntityType"
}
},
{
- "name": "after",
- "required": true,
+ "name": "userId",
+ "required": false,
"in": "query",
"schema": {
- "format": "date-time",
+ "format": "uuid",
"type": "string"
}
}
@@ -4524,40 +4524,34 @@
"operationId": "search",
"parameters": [
{
- "name": "q",
+ "name": "clip",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "query",
+ "name": "motion",
"required": false,
"in": "query",
"schema": {
- "type": "string"
+ "type": "boolean"
}
},
{
- "name": "clip",
+ "name": "q",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "type": "string"
}
},
{
- "name": "type",
+ "name": "query",
"required": false,
"in": "query",
"schema": {
- "enum": [
- "IMAGE",
- "VIDEO",
- "AUDIO",
- "OTHER"
- ],
"type": "string"
}
},
@@ -4570,11 +4564,17 @@
}
},
{
- "name": "motion",
+ "name": "type",
"required": false,
"in": "query",
"schema": {
- "type": "boolean"
+ "enum": [
+ "IMAGE",
+ "VIDEO",
+ "AUDIO",
+ "OTHER"
+ ],
+ "type": "string"
}
},
{
@@ -4996,24 +4996,24 @@
"operationId": "getMySharedLink",
"parameters": [
{
- "name": "password",
+ "name": "key",
"required": false,
"in": "query",
- "example": "password",
"schema": {
"type": "string"
}
},
{
- "name": "token",
+ "name": "password",
"required": false,
"in": "query",
+ "example": "password",
"schema": {
"type": "string"
}
},
{
- "name": "key",
+ "name": "token",
"required": false,
"in": "query",
"schema": {
@@ -6268,8 +6268,8 @@
}
},
"required": [
- "secret",
- "apiKey"
+ "apiKey",
+ "secret"
],
"type": "object"
},
@@ -6291,9 +6291,9 @@
}
},
"required": [
+ "createdAt",
"id",
"name",
- "createdAt",
"updatedAt"
],
"type": "object"
@@ -6361,11 +6361,11 @@
}
},
"required": [
- "id",
+ "assetId",
"createdAt",
+ "id",
"type",
- "user",
- "assetId"
+ "user"
],
"type": "object"
},
@@ -6408,9 +6408,9 @@
}
},
"required": [
+ "notShared",
"owned",
- "shared",
- "notShared"
+ "shared"
],
"type": "object"
},
@@ -6481,20 +6481,20 @@
}
},
"required": [
+ "albumName",
+ "albumThumbnailAssetId",
"assetCount",
+ "assets",
+ "createdAt",
+ "description",
+ "hasSharedLink",
"id",
+ "isActivityEnabled",
+ "owner",
"ownerId",
- "albumName",
- "description",
- "createdAt",
- "updatedAt",
- "albumThumbnailAssetId",
"shared",
"sharedUsers",
- "hasSharedLink",
- "assets",
- "owner",
- "isActivityEnabled"
+ "updatedAt"
],
"type": "object"
},
@@ -6538,18 +6538,18 @@
}
},
"required": [
- "thumbnailGeneration",
- "metadataExtraction",
- "videoConversion",
- "smartSearch",
- "storageTemplateMigration",
- "migration",
"backgroundTask",
- "search",
"faceDetection",
"facialRecognition",
+ "library",
+ "metadataExtraction",
+ "migration",
+ "search",
"sidecar",
- "library"
+ "smartSearch",
+ "storageTemplateMigration",
+ "thumbnailGeneration",
+ "videoConversion"
],
"type": "object"
},
@@ -6633,8 +6633,8 @@
}
},
"required": [
- "id",
- "checksum"
+ "checksum",
+ "id"
],
"type": "object"
},
@@ -6676,8 +6676,8 @@
}
},
"required": [
- "id",
- "action"
+ "action",
+ "id"
],
"type": "object"
},
@@ -6715,13 +6715,13 @@
}
},
"required": [
- "id",
- "imageHeight",
- "imageWidth",
"boundingBoxX1",
"boundingBoxX2",
"boundingBoxY1",
"boundingBoxY2",
+ "id",
+ "imageHeight",
+ "imageWidth",
"person"
],
"type": "object"
@@ -6752,8 +6752,8 @@
}
},
"required": [
- "personId",
- "assetId"
+ "assetId",
+ "personId"
],
"type": "object"
},
@@ -6783,13 +6783,13 @@
}
},
"required": [
- "id",
- "imageHeight",
- "imageWidth",
"boundingBoxX1",
"boundingBoxX2",
"boundingBoxY1",
- "boundingBoxY2"
+ "boundingBoxY2",
+ "id",
+ "imageHeight",
+ "imageWidth"
],
"type": "object"
},
@@ -6803,8 +6803,8 @@
}
},
"required": [
- "id",
- "duplicate"
+ "duplicate",
+ "id"
],
"type": "object"
},
@@ -6998,30 +6998,30 @@
}
},
"required": [
- "type",
- "stackCount",
+ "checksum",
"deviceAssetId",
"deviceId",
- "ownerId",
- "libraryId",
- "originalPath",
- "originalFileName",
- "resized",
+ "duration",
"fileCreatedAt",
"fileModifiedAt",
- "updatedAt",
- "isFavorite",
+ "hasMetadata",
+ "id",
"isArchived",
- "isTrashed",
- "isOffline",
"isExternal",
+ "isFavorite",
+ "isOffline",
"isReadOnly",
- "checksum",
- "id",
- "thumbhash",
+ "isTrashed",
+ "libraryId",
"localDateTime",
- "duration",
- "hasMetadata"
+ "originalFileName",
+ "originalPath",
+ "ownerId",
+ "resized",
+ "stackCount",
+ "thumbhash",
+ "type",
+ "updatedAt"
],
"type": "object"
},
@@ -7039,8 +7039,8 @@
},
"required": [
"images",
- "videos",
- "total"
+ "total",
+ "videos"
],
"type": "object"
},
@@ -7074,8 +7074,8 @@
}
},
"required": [
- "needsFullSync",
- "ids"
+ "ids",
+ "needsFullSync"
],
"type": "object"
},
@@ -7101,12 +7101,12 @@
}
},
"required": [
- "id",
"createdAt",
- "updatedAt",
"current",
+ "deviceOS",
"deviceType",
- "deviceOS"
+ "id",
+ "updatedAt"
],
"type": "object"
},
@@ -7197,8 +7197,8 @@
}
},
"required": [
- "password",
- "newPassword"
+ "newPassword",
+ "password"
],
"type": "object"
},
@@ -7383,8 +7383,8 @@
}
},
"required": [
- "userId",
- "profileImagePath"
+ "profileImagePath",
+ "userId"
],
"type": "object"
},
@@ -7398,8 +7398,8 @@
}
},
"required": [
- "type",
- "name"
+ "name",
+ "type"
],
"type": "object"
},
@@ -7433,8 +7433,8 @@
},
"required": [
"email",
- "password",
- "name"
+ "name",
+ "password"
],
"type": "object"
},
@@ -7457,11 +7457,11 @@
}
},
"required": [
- "id",
"city",
- "resizePath",
"deviceAssetId",
- "deviceId"
+ "deviceId",
+ "id",
+ "resizePath"
],
"type": "object"
},
@@ -7484,11 +7484,11 @@
}
},
"required": [
+ "deviceAssetId",
+ "deviceId",
"id",
"object",
- "resizePath",
- "deviceAssetId",
- "deviceId"
+ "resizePath"
],
"type": "object"
},
@@ -7505,8 +7505,8 @@
}
},
"required": [
- "size",
- "assetIds"
+ "assetIds",
+ "size"
],
"type": "object"
},
@@ -7546,8 +7546,8 @@
}
},
"required": [
- "totalSize",
- "archives"
+ "archives",
+ "totalSize"
],
"type": "object"
},
@@ -7707,8 +7707,8 @@
}
},
"required": [
- "filename",
- "checksum"
+ "checksum",
+ "filename"
],
"type": "object"
},
@@ -7728,8 +7728,8 @@
}
},
"required": [
- "orphans",
- "extras"
+ "extras",
+ "orphans"
],
"type": "object"
},
@@ -7823,10 +7823,10 @@
"required": [
"active",
"completed",
- "failed",
"delayed",
- "waiting",
- "paused"
+ "failed",
+ "paused",
+ "waiting"
],
"type": "object"
},
@@ -7917,16 +7917,16 @@
}
},
"required": [
- "type",
"assetCount",
+ "createdAt",
+ "exclusionPatterns",
"id",
- "ownerId",
- "name",
"importPaths",
- "exclusionPatterns",
- "createdAt",
- "updatedAt",
- "refreshedAt"
+ "name",
+ "ownerId",
+ "refreshedAt",
+ "type",
+ "updatedAt"
],
"type": "object"
},
@@ -7952,9 +7952,9 @@
},
"required": [
"photos",
- "videos",
"total",
- "usage"
+ "usage",
+ "videos"
],
"type": "object"
},
@@ -8019,12 +8019,12 @@
},
"required": [
"accessToken",
- "userId",
- "userEmail",
+ "isAdmin",
"name",
"profileImagePath",
- "isAdmin",
- "shouldChangePassword"
+ "shouldChangePassword",
+ "userEmail",
+ "userId"
],
"type": "object"
},
@@ -8038,8 +8038,8 @@
}
},
"required": [
- "successful",
- "redirectUri"
+ "redirectUri",
+ "successful"
],
"type": "object"
},
@@ -8084,8 +8084,8 @@
}
},
"required": [
- "title",
- "assets"
+ "assets",
+ "title"
],
"type": "object"
},
@@ -8234,20 +8234,20 @@
},
"required": [
"avatarColor",
- "quotaSizeInBytes",
- "quotaUsageInBytes",
- "storageLabel",
- "externalPath",
- "shouldChangePassword",
- "isAdmin",
"createdAt",
"deletedAt",
- "updatedAt",
- "oauthId",
+ "email",
+ "externalPath",
"id",
+ "isAdmin",
"name",
- "email",
- "profileImagePath"
+ "oauthId",
+ "profileImagePath",
+ "quotaSizeInBytes",
+ "quotaUsageInBytes",
+ "shouldChangePassword",
+ "storageLabel",
+ "updatedAt"
],
"type": "object"
},
@@ -8287,9 +8287,9 @@
}
},
"required": [
+ "people",
"total",
- "visible",
- "people"
+ "visible"
],
"type": "object"
},
@@ -8360,9 +8360,9 @@
"required": [
"birthDate",
"id",
+ "isHidden",
"name",
- "thumbnailPath",
- "isHidden"
+ "thumbnailPath"
],
"type": "object"
},
@@ -8430,9 +8430,9 @@
"birthDate",
"faces",
"id",
+ "isHidden",
"name",
- "thumbnailPath",
- "isHidden"
+ "thumbnailPath"
],
"type": "object"
},
@@ -8489,10 +8489,10 @@
}
},
"required": [
- "minScore",
+ "enabled",
"maxDistance",
"minFaces",
- "enabled",
+ "minScore",
"modelName"
],
"type": "object"
@@ -8531,10 +8531,10 @@
}
},
"required": [
- "total",
"count",
+ "facets",
"items",
- "facets"
+ "total"
],
"type": "object"
},
@@ -8560,10 +8560,10 @@
}
},
"required": [
- "total",
"count",
+ "facets",
"items",
- "facets"
+ "total"
],
"type": "object"
},
@@ -8577,8 +8577,8 @@
}
},
"required": [
- "value",
- "data"
+ "data",
+ "value"
],
"type": "object"
},
@@ -8628,8 +8628,8 @@
}
},
"required": [
- "fieldName",
- "counts"
+ "counts",
+ "fieldName"
],
"type": "object"
},
@@ -8670,12 +8670,12 @@
}
},
"required": [
- "trashDays",
- "oauthButtonText",
- "loginPageMessage",
+ "externalDomain",
"isInitialized",
"isOnboarded",
- "externalDomain"
+ "loginPageMessage",
+ "oauthButtonText",
+ "trashDays"
],
"type": "object"
},
@@ -8720,13 +8720,13 @@
"configFile",
"facialRecognition",
"map",
- "trash",
- "reverseGeocoding",
"oauth",
"oauthAutoLaunch",
"passwordLogin",
+ "reverseGeocoding",
+ "search",
"sidecar",
- "search"
+ "trash"
],
"type": "object"
},
@@ -8759,13 +8759,13 @@
}
},
"required": [
- "diskSizeRaw",
- "diskUseRaw",
+ "diskAvailable",
"diskAvailableRaw",
- "diskUsagePercentage",
"diskSize",
+ "diskSizeRaw",
+ "diskUsagePercentage",
"diskUse",
- "diskAvailable"
+ "diskUseRaw"
],
"type": "object"
},
@@ -8791,9 +8791,9 @@
}
},
"required": [
- "video",
"image",
- "sidecar"
+ "sidecar",
+ "video"
],
"type": "object"
},
@@ -8843,9 +8843,9 @@
},
"required": [
"photos",
- "videos",
"usage",
- "usageByUser"
+ "usageByUser",
+ "videos"
],
"type": "object"
},
@@ -9009,18 +9009,18 @@
}
},
"required": [
- "type",
- "id",
- "description",
- "password",
- "userId",
- "key",
+ "allowDownload",
+ "allowUpload",
+ "assets",
"createdAt",
+ "description",
"expiresAt",
- "assets",
- "allowUpload",
- "allowDownload",
- "showMetadata"
+ "id",
+ "key",
+ "password",
+ "showMetadata",
+ "type",
+ "userId"
],
"type": "object"
},
@@ -9048,8 +9048,8 @@
},
"required": [
"email",
- "password",
- "name"
+ "name",
+ "password"
],
"type": "object"
},
@@ -9122,6 +9122,8 @@
},
"required": [
"ffmpeg",
+ "job",
+ "library",
"logging",
"machineLearning",
"map",
@@ -9129,13 +9131,11 @@
"oauth",
"passwordLogin",
"reverseGeocoding",
+ "server",
"storageTemplate",
- "job",
- "thumbnail",
- "trash",
"theme",
- "library",
- "server"
+ "thumbnail",
+ "trash"
],
"type": "object"
},
@@ -9194,22 +9194,22 @@
}
},
"required": [
- "crf",
- "threads",
- "targetVideoCodec",
- "targetAudioCodec",
+ "accel",
"bframes",
- "refs",
+ "cqMode",
+ "crf",
"gopSize",
+ "maxBitrate",
"npl",
- "cqMode",
- "transcode",
- "accel",
- "tonemap",
"preset",
+ "refs",
+ "targetAudioCodec",
"targetResolution",
- "maxBitrate",
+ "targetVideoCodec",
"temporalAQ",
+ "threads",
+ "tonemap",
+ "transcode",
"twoPass"
],
"type": "object"
@@ -9248,16 +9248,16 @@
}
},
"required": [
- "thumbnailGeneration",
+ "backgroundTask",
+ "faceDetection",
+ "library",
"metadataExtraction",
- "videoConversion",
- "smartSearch",
"migration",
- "backgroundTask",
"search",
- "faceDetection",
"sidecar",
- "library"
+ "smartSearch",
+ "thumbnailGeneration",
+ "videoConversion"
],
"type": "object"
},
@@ -9282,8 +9282,8 @@
}
},
"required": [
- "enabled",
- "cronExpression"
+ "cronExpression",
+ "enabled"
],
"type": "object"
},
@@ -9297,8 +9297,8 @@
}
},
"required": [
- "level",
- "enabled"
+ "enabled",
+ "level"
],
"type": "object"
},
@@ -9318,10 +9318,10 @@
}
},
"required": [
- "enabled",
- "url",
"clip",
- "facialRecognition"
+ "enabled",
+ "facialRecognition",
+ "url"
],
"type": "object"
},
@@ -9338,9 +9338,9 @@
}
},
"required": [
+ "darkStyle",
"enabled",
- "lightStyle",
- "darkStyle"
+ "lightStyle"
],
"type": "object"
},
@@ -9392,17 +9392,17 @@
}
},
"required": [
- "enabled",
- "issuerUrl",
+ "autoLaunch",
+ "autoRegister",
+ "buttonText",
"clientId",
"clientSecret",
- "scope",
- "storageLabelClaim",
- "buttonText",
- "autoRegister",
- "autoLaunch",
+ "enabled",
+ "issuerUrl",
"mobileOverrideEnabled",
- "mobileRedirectUri"
+ "mobileRedirectUri",
+ "scope",
+ "storageLabelClaim"
],
"type": "object"
},
@@ -9514,14 +9514,14 @@
}
},
"required": [
- "yearOptions",
- "monthOptions",
- "weekOptions",
"dayOptions",
"hourOptions",
"minuteOptions",
+ "monthOptions",
+ "presetOptions",
"secondOptions",
- "presetOptions"
+ "weekOptions",
+ "yearOptions"
],
"type": "object"
},
@@ -9552,10 +9552,10 @@
}
},
"required": [
- "webpSize",
+ "colorspace",
"jpegSize",
"quality",
- "colorspace"
+ "webpSize"
],
"type": "object"
},
@@ -9590,9 +9590,9 @@
}
},
"required": [
- "type",
"id",
"name",
+ "type",
"userId"
],
"type": "object"
@@ -9622,8 +9622,8 @@
}
},
"required": [
- "timeBucket",
- "count"
+ "count",
+ "timeBucket"
],
"type": "object"
},
@@ -9749,8 +9749,8 @@
}
},
"required": [
- "oldParentId",
- "newParentId"
+ "newParentId",
+ "oldParentId"
],
"type": "object"
},
@@ -9831,12 +9831,12 @@
}
},
"required": [
- "userId",
- "userName",
"photos",
- "videos",
+ "quotaSizeInBytes",
"usage",
- "quotaSizeInBytes"
+ "userId",
+ "userName",
+ "videos"
],
"type": "object"
},
@@ -9875,9 +9875,9 @@
},
"required": [
"avatarColor",
+ "email",
"id",
"name",
- "email",
"profileImagePath"
],
"type": "object"
@@ -9945,20 +9945,20 @@
},
"required": [
"avatarColor",
- "quotaSizeInBytes",
- "quotaUsageInBytes",
- "storageLabel",
- "externalPath",
- "shouldChangePassword",
- "isAdmin",
"createdAt",
"deletedAt",
- "updatedAt",
- "oauthId",
+ "email",
+ "externalPath",
"id",
+ "isAdmin",
"name",
- "email",
- "profileImagePath"
+ "oauthId",
+ "profileImagePath",
+ "quotaSizeInBytes",
+ "quotaUsageInBytes",
+ "shouldChangePassword",
+ "storageLabel",
+ "updatedAt"
],
"type": "object"
},
diff --git a/open-api/typescript-sdk/client/api.ts b/open-api/typescript-sdk/client/api.ts
index 25005732de..f1cbdae068 100644
--- a/open-api/typescript-sdk/client/api.ts
+++ b/open-api/typescript-sdk/client/api.ts
@@ -5387,13 +5387,13 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
*
* @param {string} albumId
* @param {string} [assetId]
- * @param {ReactionType} [type]
* @param {ReactionLevel} [level]
+ * @param {ReactionType} [type]
* @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getActivities: async (albumId: string, assetId?: string, level?: ReactionLevel, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'albumId' is not null or undefined
assertParamExists('getActivities', 'albumId', albumId)
const localVarPath = `/activity`;
@@ -5425,14 +5425,14 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
localVarQueryParameter['assetId'] = assetId;
}
- if (type !== undefined) {
- localVarQueryParameter['type'] = type;
- }
-
if (level !== undefined) {
localVarQueryParameter['level'] = level;
}
+ if (type !== undefined) {
+ localVarQueryParameter['type'] = type;
+ }
+
if (userId !== undefined) {
localVarQueryParameter['userId'] = userId;
}
@@ -5532,14 +5532,14 @@ export const ActivityApiFp = function(configuration?: Configuration) {
*
* @param {string} albumId
* @param {string} [assetId]
- * @param {ReactionType} [type]
* @param {ReactionLevel} [level]
+ * @param {ReactionType} [type]
* @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
+ async getActivities(albumId: string, assetId?: string, level?: ReactionLevel, type?: ReactionType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, level, type, userId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -5588,7 +5588,7 @@ export const ActivityApiFactory = function (configuration?: Configuration, baseP
* @throws {RequiredError}
*/
getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
- return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
+ return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.level, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
},
/**
*
@@ -5652,17 +5652,17 @@ export interface ActivityApiGetActivitiesRequest {
/**
*
- * @type {ReactionType}
+ * @type {ReactionLevel}
* @memberof ActivityApiGetActivities
*/
- readonly type?: ReactionType
+ readonly level?: ReactionLevel
/**
*
- * @type {ReactionLevel}
+ * @type {ReactionType}
* @memberof ActivityApiGetActivities
*/
- readonly level?: ReactionLevel
+ readonly type?: ReactionType
/**
*
@@ -5730,7 +5730,7 @@ export class ActivityApi extends BaseAPI {
* @memberof ActivityApi
*/
public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
- return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
+ return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.level, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -5980,12 +5980,12 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
/**
*
* @param {string} id
- * @param {boolean} [withoutAssets]
* @param {string} [key]
+ * @param {boolean} [withoutAssets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getAlbumInfo: async (id: string, key?: string, withoutAssets?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getAlbumInfo', 'id', id)
const localVarPath = `/album/{id}`
@@ -6010,14 +6010,14 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (withoutAssets !== undefined) {
- localVarQueryParameter['withoutAssets'] = withoutAssets;
- }
-
if (key !== undefined) {
localVarQueryParameter['key'] = key;
}
+ if (withoutAssets !== undefined) {
+ localVarQueryParameter['withoutAssets'] = withoutAssets;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6031,12 +6031,12 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
},
/**
*
- * @param {boolean} [shared]
* @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
+ * @param {boolean} [shared]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getAllAlbums: async (assetId?: string, shared?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/album`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6058,14 +6058,14 @@ export const AlbumApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (shared !== undefined) {
- localVarQueryParameter['shared'] = shared;
- }
-
if (assetId !== undefined) {
localVarQueryParameter['assetId'] = assetId;
}
+ if (shared !== undefined) {
+ localVarQueryParameter['shared'] = shared;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6284,24 +6284,24 @@ export const AlbumApiFp = function(configuration?: Configuration) {
/**
*
* @param {string} id
- * @param {boolean} [withoutAssets]
* @param {string} [key]
+ * @param {boolean} [withoutAssets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
+ async getAlbumInfo(id: string, key?: string, withoutAssets?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, key, withoutAssets, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {boolean} [shared]
* @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
+ * @param {boolean} [shared]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
+ async getAllAlbums(assetId?: string, shared?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(assetId, shared, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -6398,7 +6398,7 @@ export const AlbumApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
- return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
+ return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.key, requestParameters.withoutAssets, options).then((request) => request(axios, basePath));
},
/**
*
@@ -6407,7 +6407,7 @@ export const AlbumApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
- return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
+ return localVarFp.getAllAlbums(requestParameters.assetId, requestParameters.shared, options).then((request) => request(axios, basePath));
},
/**
*
@@ -6531,17 +6531,17 @@ export interface AlbumApiGetAlbumInfoRequest {
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AlbumApiGetAlbumInfo
*/
- readonly withoutAssets?: boolean
+ readonly key?: string
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AlbumApiGetAlbumInfo
*/
- readonly key?: string
+ readonly withoutAssets?: boolean
}
/**
@@ -6551,18 +6551,18 @@ export interface AlbumApiGetAlbumInfoRequest {
*/
export interface AlbumApiGetAllAlbumsRequest {
/**
- *
- * @type {boolean}
+ * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
+ * @type {string}
* @memberof AlbumApiGetAllAlbums
*/
- readonly shared?: boolean
+ readonly assetId?: string
/**
- * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
- * @type {string}
+ *
+ * @type {boolean}
* @memberof AlbumApiGetAllAlbums
*/
- readonly assetId?: string
+ readonly shared?: boolean
}
/**
@@ -6697,7 +6697,7 @@ export class AlbumApi extends BaseAPI {
* @memberof AlbumApi
*/
public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
- return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
+ return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.key, requestParameters.withoutAssets, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -6708,7 +6708,7 @@ export class AlbumApi extends BaseAPI {
* @memberof AlbumApi
*/
public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
- return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
+ return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.assetId, requestParameters.shared, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -7020,18 +7020,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
},
/**
* Get all AssetEntity belong to the user
+ * @param {string} [ifNoneMatch] ETag of data already cached on the client
+ * @param {boolean} [isArchived]
+ * @param {boolean} [isFavorite]
* @param {number} [skip]
* @param {number} [take]
- * @param {string} [userId]
- * @param {boolean} [isFavorite]
- * @param {boolean} [isArchived]
* @param {string} [updatedAfter]
* @param {string} [updatedBefore]
- * @param {string} [ifNoneMatch] ETag of data already cached on the client
+ * @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getAllAssets: async (ifNoneMatch?: string, isArchived?: boolean, isFavorite?: boolean, skip?: number, take?: number, updatedAfter?: string, updatedBefore?: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/asset`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7053,24 +7053,20 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (skip !== undefined) {
- localVarQueryParameter['skip'] = skip;
- }
-
- if (take !== undefined) {
- localVarQueryParameter['take'] = take;
- }
-
- if (userId !== undefined) {
- localVarQueryParameter['userId'] = userId;
+ if (isArchived !== undefined) {
+ localVarQueryParameter['isArchived'] = isArchived;
}
if (isFavorite !== undefined) {
localVarQueryParameter['isFavorite'] = isFavorite;
}
- if (isArchived !== undefined) {
- localVarQueryParameter['isArchived'] = isArchived;
+ if (skip !== undefined) {
+ localVarQueryParameter['skip'] = skip;
+ }
+
+ if (take !== undefined) {
+ localVarQueryParameter['take'] = take;
}
if (updatedAfter !== undefined) {
@@ -7085,6 +7081,10 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
updatedBefore;
}
+ if (userId !== undefined) {
+ localVarQueryParameter['userId'] = userId;
+ }
+
if (ifNoneMatch != null) {
localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
}
@@ -7459,14 +7459,14 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
},
/**
*
- * @param {boolean} [isArchived]
- * @param {boolean} [isFavorite]
* @param {string} [fileCreatedAfter]
* @param {string} [fileCreatedBefore]
+ * @param {boolean} [isArchived]
+ * @param {boolean} [isFavorite]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getMapMarkers: async (fileCreatedAfter?: string, fileCreatedBefore?: string, isArchived?: boolean, isFavorite?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/asset/map-marker`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7488,14 +7488,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (isArchived !== undefined) {
- localVarQueryParameter['isArchived'] = isArchived;
- }
-
- if (isFavorite !== undefined) {
- localVarQueryParameter['isFavorite'] = isFavorite;
- }
-
if (fileCreatedAfter !== undefined) {
localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
(fileCreatedAfter as any).toISOString() :
@@ -7508,6 +7500,14 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
fileCreatedBefore;
}
+ if (isArchived !== undefined) {
+ localVarQueryParameter['isArchived'] = isArchived;
+ }
+
+ if (isFavorite !== undefined) {
+ localVarQueryParameter['isFavorite'] = isFavorite;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7618,19 +7618,19 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
*
* @param {TimeBucketSize} size
* @param {string} timeBucket
- * @param {string} [userId]
* @param {string} [albumId]
- * @param {string} [personId]
* @param {boolean} [isArchived]
* @param {boolean} [isFavorite]
* @param {boolean} [isTrashed]
- * @param {boolean} [withStacked]
- * @param {boolean} [withPartners]
* @param {string} [key]
+ * @param {string} [personId]
+ * @param {string} [userId]
+ * @param {boolean} [withPartners]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getTimeBucket: async (size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getTimeBucket: async (size: TimeBucketSize, timeBucket: string, albumId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, personId?: string, userId?: string, withPartners?: boolean, withStacked?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'size' is not null or undefined
assertParamExists('getTimeBucket', 'size', size)
// verify required parameter 'timeBucket' is not null or undefined
@@ -7656,22 +7656,10 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (size !== undefined) {
- localVarQueryParameter['size'] = size;
- }
-
- if (userId !== undefined) {
- localVarQueryParameter['userId'] = userId;
- }
-
if (albumId !== undefined) {
localVarQueryParameter['albumId'] = albumId;
}
- if (personId !== undefined) {
- localVarQueryParameter['personId'] = personId;
- }
-
if (isArchived !== undefined) {
localVarQueryParameter['isArchived'] = isArchived;
}
@@ -7684,20 +7672,32 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['isTrashed'] = isTrashed;
}
- if (withStacked !== undefined) {
- localVarQueryParameter['withStacked'] = withStacked;
+ if (key !== undefined) {
+ localVarQueryParameter['key'] = key;
}
- if (withPartners !== undefined) {
- localVarQueryParameter['withPartners'] = withPartners;
+ if (personId !== undefined) {
+ localVarQueryParameter['personId'] = personId;
+ }
+
+ if (size !== undefined) {
+ localVarQueryParameter['size'] = size;
}
if (timeBucket !== undefined) {
localVarQueryParameter['timeBucket'] = timeBucket;
}
- if (key !== undefined) {
- localVarQueryParameter['key'] = key;
+ if (userId !== undefined) {
+ localVarQueryParameter['userId'] = userId;
+ }
+
+ if (withPartners !== undefined) {
+ localVarQueryParameter['withPartners'] = withPartners;
+ }
+
+ if (withStacked !== undefined) {
+ localVarQueryParameter['withStacked'] = withStacked;
}
@@ -7714,19 +7714,19 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
/**
*
* @param {TimeBucketSize} size
- * @param {string} [userId]
* @param {string} [albumId]
- * @param {string} [personId]
* @param {boolean} [isArchived]
* @param {boolean} [isFavorite]
* @param {boolean} [isTrashed]
- * @param {boolean} [withStacked]
- * @param {boolean} [withPartners]
* @param {string} [key]
+ * @param {string} [personId]
+ * @param {string} [userId]
+ * @param {boolean} [withPartners]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getTimeBuckets: async (size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getTimeBuckets: async (size: TimeBucketSize, albumId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, personId?: string, userId?: string, withPartners?: boolean, withStacked?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'size' is not null or undefined
assertParamExists('getTimeBuckets', 'size', size)
const localVarPath = `/asset/time-buckets`;
@@ -7750,22 +7750,10 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (size !== undefined) {
- localVarQueryParameter['size'] = size;
- }
-
- if (userId !== undefined) {
- localVarQueryParameter['userId'] = userId;
- }
-
if (albumId !== undefined) {
localVarQueryParameter['albumId'] = albumId;
}
- if (personId !== undefined) {
- localVarQueryParameter['personId'] = personId;
- }
-
if (isArchived !== undefined) {
localVarQueryParameter['isArchived'] = isArchived;
}
@@ -7778,16 +7766,28 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['isTrashed'] = isTrashed;
}
- if (withStacked !== undefined) {
- localVarQueryParameter['withStacked'] = withStacked;
+ if (key !== undefined) {
+ localVarQueryParameter['key'] = key;
+ }
+
+ if (personId !== undefined) {
+ localVarQueryParameter['personId'] = personId;
+ }
+
+ if (size !== undefined) {
+ localVarQueryParameter['size'] = size;
+ }
+
+ if (userId !== undefined) {
+ localVarQueryParameter['userId'] = userId;
}
if (withPartners !== undefined) {
localVarQueryParameter['withPartners'] = withPartners;
}
- if (key !== undefined) {
- localVarQueryParameter['key'] = key;
+ if (withStacked !== undefined) {
+ localVarQueryParameter['withStacked'] = withStacked;
}
@@ -7973,13 +7973,15 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
},
/**
*
- * @param {string} [id]
- * @param {string} [libraryId]
- * @param {AssetTypeEnum} [type]
- * @param {AssetOrder} [order]
+ * @param {string} [checksum]
+ * @param {string} [city]
+ * @param {string} [country]
+ * @param {string} [createdAfter]
+ * @param {string} [createdBefore]
* @param {string} [deviceAssetId]
* @param {string} [deviceId]
- * @param {string} [checksum]
+ * @param {string} [encodedVideoPath]
+ * @param {string} [id]
* @param {boolean} [isArchived]
* @param {boolean} [isEncoded]
* @param {boolean} [isExternal]
@@ -7988,35 +7990,33 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
* @param {boolean} [isOffline]
* @param {boolean} [isReadOnly]
* @param {boolean} [isVisible]
- * @param {boolean} [withDeleted]
- * @param {boolean} [withStacked]
- * @param {boolean} [withExif]
- * @param {boolean} [withPeople]
- * @param {string} [createdBefore]
- * @param {string} [createdAfter]
- * @param {string} [updatedBefore]
- * @param {string} [updatedAfter]
- * @param {string} [trashedBefore]
- * @param {string} [trashedAfter]
- * @param {string} [takenBefore]
- * @param {string} [takenAfter]
- * @param {string} [originalFileName]
- * @param {string} [originalPath]
- * @param {string} [resizePath]
- * @param {string} [webpPath]
- * @param {string} [encodedVideoPath]
- * @param {string} [city]
- * @param {string} [state]
- * @param {string} [country]
+ * @param {string} [lensModel]
+ * @param {string} [libraryId]
* @param {string} [make]
* @param {string} [model]
- * @param {string} [lensModel]
+ * @param {AssetOrder} [order]
+ * @param {string} [originalFileName]
+ * @param {string} [originalPath]
* @param {number} [page]
+ * @param {string} [resizePath]
* @param {number} [size]
+ * @param {string} [state]
+ * @param {string} [takenAfter]
+ * @param {string} [takenBefore]
+ * @param {string} [trashedAfter]
+ * @param {string} [trashedBefore]
+ * @param {AssetTypeEnum} [type]
+ * @param {string} [updatedAfter]
+ * @param {string} [updatedBefore]
+ * @param {string} [webpPath]
+ * @param {boolean} [withDeleted]
+ * @param {boolean} [withExif]
+ * @param {boolean} [withPeople]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- searchAssets: async (id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ searchAssets: async (checksum?: string, city?: string, country?: string, createdAfter?: string, createdBefore?: string, deviceAssetId?: string, deviceId?: string, encodedVideoPath?: string, id?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, lensModel?: string, libraryId?: string, make?: string, model?: string, order?: AssetOrder, originalFileName?: string, originalPath?: string, page?: number, resizePath?: string, size?: number, state?: string, takenAfter?: string, takenBefore?: string, trashedAfter?: string, trashedBefore?: string, type?: AssetTypeEnum, updatedAfter?: string, updatedBefore?: string, webpPath?: string, withDeleted?: boolean, withExif?: boolean, withPeople?: boolean, withStacked?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/assets`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8038,20 +8038,28 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (id !== undefined) {
- localVarQueryParameter['id'] = id;
+ if (checksum !== undefined) {
+ localVarQueryParameter['checksum'] = checksum;
}
- if (libraryId !== undefined) {
- localVarQueryParameter['libraryId'] = libraryId;
+ if (city !== undefined) {
+ localVarQueryParameter['city'] = city;
}
- if (type !== undefined) {
- localVarQueryParameter['type'] = type;
+ if (country !== undefined) {
+ localVarQueryParameter['country'] = country;
}
- if (order !== undefined) {
- localVarQueryParameter['order'] = order;
+ if (createdAfter !== undefined) {
+ localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
+ (createdAfter as any).toISOString() :
+ createdAfter;
+ }
+
+ if (createdBefore !== undefined) {
+ localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
+ (createdBefore as any).toISOString() :
+ createdBefore;
}
if (deviceAssetId !== undefined) {
@@ -8062,8 +8070,12 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['deviceId'] = deviceId;
}
- if (checksum !== undefined) {
- localVarQueryParameter['checksum'] = checksum;
+ if (encodedVideoPath !== undefined) {
+ localVarQueryParameter['encodedVideoPath'] = encodedVideoPath;
+ }
+
+ if (id !== undefined) {
+ localVarQueryParameter['id'] = id;
}
if (isArchived !== undefined) {
@@ -8098,62 +8110,48 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['isVisible'] = isVisible;
}
- if (withDeleted !== undefined) {
- localVarQueryParameter['withDeleted'] = withDeleted;
+ if (lensModel !== undefined) {
+ localVarQueryParameter['lensModel'] = lensModel;
}
- if (withStacked !== undefined) {
- localVarQueryParameter['withStacked'] = withStacked;
+ if (libraryId !== undefined) {
+ localVarQueryParameter['libraryId'] = libraryId;
}
- if (withExif !== undefined) {
- localVarQueryParameter['withExif'] = withExif;
+ if (make !== undefined) {
+ localVarQueryParameter['make'] = make;
}
- if (withPeople !== undefined) {
- localVarQueryParameter['withPeople'] = withPeople;
+ if (model !== undefined) {
+ localVarQueryParameter['model'] = model;
}
- if (createdBefore !== undefined) {
- localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
- (createdBefore as any).toISOString() :
- createdBefore;
+ if (order !== undefined) {
+ localVarQueryParameter['order'] = order;
}
- if (createdAfter !== undefined) {
- localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
- (createdAfter as any).toISOString() :
- createdAfter;
+ if (originalFileName !== undefined) {
+ localVarQueryParameter['originalFileName'] = originalFileName;
}
- if (updatedBefore !== undefined) {
- localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
- (updatedBefore as any).toISOString() :
- updatedBefore;
+ if (originalPath !== undefined) {
+ localVarQueryParameter['originalPath'] = originalPath;
}
- if (updatedAfter !== undefined) {
- localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
- (updatedAfter as any).toISOString() :
- updatedAfter;
+ if (page !== undefined) {
+ localVarQueryParameter['page'] = page;
}
- if (trashedBefore !== undefined) {
- localVarQueryParameter['trashedBefore'] = (trashedBefore as any instanceof Date) ?
- (trashedBefore as any).toISOString() :
- trashedBefore;
+ if (resizePath !== undefined) {
+ localVarQueryParameter['resizePath'] = resizePath;
}
- if (trashedAfter !== undefined) {
- localVarQueryParameter['trashedAfter'] = (trashedAfter as any instanceof Date) ?
- (trashedAfter as any).toISOString() :
- trashedAfter;
+ if (size !== undefined) {
+ localVarQueryParameter['size'] = size;
}
- if (takenBefore !== undefined) {
- localVarQueryParameter['takenBefore'] = (takenBefore as any instanceof Date) ?
- (takenBefore as any).toISOString() :
- takenBefore;
+ if (state !== undefined) {
+ localVarQueryParameter['state'] = state;
}
if (takenAfter !== undefined) {
@@ -8162,56 +8160,58 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
takenAfter;
}
- if (originalFileName !== undefined) {
- localVarQueryParameter['originalFileName'] = originalFileName;
- }
-
- if (originalPath !== undefined) {
- localVarQueryParameter['originalPath'] = originalPath;
- }
-
- if (resizePath !== undefined) {
- localVarQueryParameter['resizePath'] = resizePath;
+ if (takenBefore !== undefined) {
+ localVarQueryParameter['takenBefore'] = (takenBefore as any instanceof Date) ?
+ (takenBefore as any).toISOString() :
+ takenBefore;
}
- if (webpPath !== undefined) {
- localVarQueryParameter['webpPath'] = webpPath;
+ if (trashedAfter !== undefined) {
+ localVarQueryParameter['trashedAfter'] = (trashedAfter as any instanceof Date) ?
+ (trashedAfter as any).toISOString() :
+ trashedAfter;
}
- if (encodedVideoPath !== undefined) {
- localVarQueryParameter['encodedVideoPath'] = encodedVideoPath;
+ if (trashedBefore !== undefined) {
+ localVarQueryParameter['trashedBefore'] = (trashedBefore as any instanceof Date) ?
+ (trashedBefore as any).toISOString() :
+ trashedBefore;
}
- if (city !== undefined) {
- localVarQueryParameter['city'] = city;
+ if (type !== undefined) {
+ localVarQueryParameter['type'] = type;
}
- if (state !== undefined) {
- localVarQueryParameter['state'] = state;
+ if (updatedAfter !== undefined) {
+ localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
+ (updatedAfter as any).toISOString() :
+ updatedAfter;
}
- if (country !== undefined) {
- localVarQueryParameter['country'] = country;
+ if (updatedBefore !== undefined) {
+ localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
+ (updatedBefore as any).toISOString() :
+ updatedBefore;
}
- if (make !== undefined) {
- localVarQueryParameter['make'] = make;
+ if (webpPath !== undefined) {
+ localVarQueryParameter['webpPath'] = webpPath;
}
- if (model !== undefined) {
- localVarQueryParameter['model'] = model;
+ if (withDeleted !== undefined) {
+ localVarQueryParameter['withDeleted'] = withDeleted;
}
- if (lensModel !== undefined) {
- localVarQueryParameter['lensModel'] = lensModel;
+ if (withExif !== undefined) {
+ localVarQueryParameter['withExif'] = withExif;
}
- if (page !== undefined) {
- localVarQueryParameter['page'] = page;
+ if (withPeople !== undefined) {
+ localVarQueryParameter['withPeople'] = withPeople;
}
- if (size !== undefined) {
- localVarQueryParameter['size'] = size;
+ if (withStacked !== undefined) {
+ localVarQueryParameter['withStacked'] = withStacked;
}
@@ -8623,19 +8623,19 @@ export const AssetApiFp = function(configuration?: Configuration) {
},
/**
* Get all AssetEntity belong to the user
+ * @param {string} [ifNoneMatch] ETag of data already cached on the client
+ * @param {boolean} [isArchived]
+ * @param {boolean} [isFavorite]
* @param {number} [skip]
* @param {number} [take]
- * @param {string} [userId]
- * @param {boolean} [isFavorite]
- * @param {boolean} [isArchived]
* @param {string} [updatedAfter]
* @param {string} [updatedBefore]
- * @param {string} [ifNoneMatch] ETag of data already cached on the client
+ * @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getAllAssets(skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
+ async getAllAssets(ifNoneMatch?: string, isArchived?: boolean, isFavorite?: boolean, skip?: number, take?: number, updatedAfter?: string, updatedBefore?: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -8723,15 +8723,15 @@ export const AssetApiFp = function(configuration?: Configuration) {
},
/**
*
- * @param {boolean} [isArchived]
- * @param {boolean} [isFavorite]
* @param {string} [fileCreatedAfter]
* @param {string} [fileCreatedBefore]
+ * @param {boolean} [isArchived]
+ * @param {boolean} [isFavorite]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
+ async getMapMarkers(fileCreatedAfter?: string, fileCreatedBefore?: string, isArchived?: boolean, isFavorite?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -8759,39 +8759,39 @@ export const AssetApiFp = function(configuration?: Configuration) {
*
* @param {TimeBucketSize} size
* @param {string} timeBucket
- * @param {string} [userId]
* @param {string} [albumId]
- * @param {string} [personId]
* @param {boolean} [isArchived]
* @param {boolean} [isFavorite]
* @param {boolean} [isTrashed]
- * @param {boolean} [withStacked]
- * @param {boolean} [withPartners]
* @param {string} [key]
+ * @param {string} [personId]
+ * @param {string} [userId]
+ * @param {boolean} [withPartners]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
+ async getTimeBucket(size: TimeBucketSize, timeBucket: string, albumId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, personId?: string, userId?: string, withPartners?: boolean, withStacked?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @param {TimeBucketSize} size
- * @param {string} [userId]
* @param {string} [albumId]
- * @param {string} [personId]
* @param {boolean} [isArchived]
* @param {boolean} [isFavorite]
* @param {boolean} [isTrashed]
- * @param {boolean} [withStacked]
- * @param {boolean} [withPartners]
* @param {string} [key]
+ * @param {string} [personId]
+ * @param {string} [userId]
+ * @param {boolean} [withPartners]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, withStacked?: boolean, withPartners?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
+ async getTimeBuckets(size: TimeBucketSize, albumId?: string, isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, key?: string, personId?: string, userId?: string, withPartners?: boolean, withStacked?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TimeBucketResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, albumId, isArchived, isFavorite, isTrashed, key, personId, userId, withPartners, withStacked, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -8837,13 +8837,15 @@ export const AssetApiFp = function(configuration?: Configuration) {
},
/**
*
- * @param {string} [id]
- * @param {string} [libraryId]
- * @param {AssetTypeEnum} [type]
- * @param {AssetOrder} [order]
+ * @param {string} [checksum]
+ * @param {string} [city]
+ * @param {string} [country]
+ * @param {string} [createdAfter]
+ * @param {string} [createdBefore]
* @param {string} [deviceAssetId]
* @param {string} [deviceId]
- * @param {string} [checksum]
+ * @param {string} [encodedVideoPath]
+ * @param {string} [id]
* @param {boolean} [isArchived]
* @param {boolean} [isEncoded]
* @param {boolean} [isExternal]
@@ -8852,36 +8854,34 @@ export const AssetApiFp = function(configuration?: Configuration) {
* @param {boolean} [isOffline]
* @param {boolean} [isReadOnly]
* @param {boolean} [isVisible]
- * @param {boolean} [withDeleted]
- * @param {boolean} [withStacked]
- * @param {boolean} [withExif]
- * @param {boolean} [withPeople]
- * @param {string} [createdBefore]
- * @param {string} [createdAfter]
- * @param {string} [updatedBefore]
- * @param {string} [updatedAfter]
- * @param {string} [trashedBefore]
- * @param {string} [trashedAfter]
- * @param {string} [takenBefore]
- * @param {string} [takenAfter]
- * @param {string} [originalFileName]
- * @param {string} [originalPath]
- * @param {string} [resizePath]
- * @param {string} [webpPath]
- * @param {string} [encodedVideoPath]
- * @param {string} [city]
- * @param {string} [state]
- * @param {string} [country]
+ * @param {string} [lensModel]
+ * @param {string} [libraryId]
* @param {string} [make]
* @param {string} [model]
- * @param {string} [lensModel]
+ * @param {AssetOrder} [order]
+ * @param {string} [originalFileName]
+ * @param {string} [originalPath]
* @param {number} [page]
+ * @param {string} [resizePath]
* @param {number} [size]
+ * @param {string} [state]
+ * @param {string} [takenAfter]
+ * @param {string} [takenBefore]
+ * @param {string} [trashedAfter]
+ * @param {string} [trashedBefore]
+ * @param {AssetTypeEnum} [type]
+ * @param {string} [updatedAfter]
+ * @param {string} [updatedBefore]
+ * @param {string} [webpPath]
+ * @param {boolean} [withDeleted]
+ * @param {boolean} [withExif]
+ * @param {boolean} [withPeople]
+ * @param {boolean} [withStacked]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async searchAssets(id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size, options);
+ async searchAssets(checksum?: string, city?: string, country?: string, createdAfter?: string, createdBefore?: string, deviceAssetId?: string, deviceId?: string, encodedVideoPath?: string, id?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, lensModel?: string, libraryId?: string, make?: string, model?: string, order?: AssetOrder, originalFileName?: string, originalPath?: string, page?: number, resizePath?: string, size?: number, state?: string, takenAfter?: string, takenBefore?: string, trashedAfter?: string, trashedBefore?: string, type?: AssetTypeEnum, updatedAfter?: string, updatedBefore?: string, webpPath?: string, withDeleted?: boolean, withExif?: boolean, withPeople?: boolean, withStacked?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAssets(checksum, city, country, createdAfter, createdBefore, deviceAssetId, deviceId, encodedVideoPath, id, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, lensModel, libraryId, make, model, order, originalFileName, originalPath, page, resizePath, size, state, takenAfter, takenBefore, trashedAfter, trashedBefore, type, updatedAfter, updatedBefore, webpPath, withDeleted, withExif, withPeople, withStacked, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -9023,7 +9023,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
+ return localVarFp.getAllAssets(requestParameters.ifNoneMatch, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.skip, requestParameters.take, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.userId, options).then((request) => request(axios, basePath));
},
/**
* Get all asset of a device that are in the database, ID only.
@@ -9101,7 +9101,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
- return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
+ return localVarFp.getMapMarkers(requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, requestParameters.isArchived, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
},
/**
*
@@ -9128,7 +9128,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
+ return localVarFp.getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(axios, basePath));
},
/**
*
@@ -9137,7 +9137,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
- return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(axios, basePath));
+ return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(axios, basePath));
},
/**
*
@@ -9183,7 +9183,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
+ return localVarFp.searchAssets(requestParameters.checksum, requestParameters.city, requestParameters.country, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.encodedVideoPath, requestParameters.id, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.lensModel, requestParameters.libraryId, requestParameters.make, requestParameters.model, requestParameters.order, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.page, requestParameters.resizePath, requestParameters.size, requestParameters.state, requestParameters.takenAfter, requestParameters.takenBefore, requestParameters.trashedAfter, requestParameters.trashedBefore, requestParameters.type, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.webpPath, requestParameters.withDeleted, requestParameters.withExif, requestParameters.withPeople, requestParameters.withStacked, options).then((request) => request(axios, basePath));
},
/**
*
@@ -9324,39 +9324,39 @@ export interface AssetApiDownloadFileRequest {
*/
export interface AssetApiGetAllAssetsRequest {
/**
- *
- * @type {number}
+ * ETag of data already cached on the client
+ * @type {string}
* @memberof AssetApiGetAllAssets
*/
- readonly skip?: number
+ readonly ifNoneMatch?: string
/**
*
- * @type {number}
+ * @type {boolean}
* @memberof AssetApiGetAllAssets
*/
- readonly take?: number
+ readonly isArchived?: boolean
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetAllAssets
*/
- readonly userId?: string
+ readonly isFavorite?: boolean
/**
*
- * @type {boolean}
+ * @type {number}
* @memberof AssetApiGetAllAssets
*/
- readonly isFavorite?: boolean
+ readonly skip?: number
/**
*
- * @type {boolean}
+ * @type {number}
* @memberof AssetApiGetAllAssets
*/
- readonly isArchived?: boolean
+ readonly take?: number
/**
*
@@ -9373,11 +9373,11 @@ export interface AssetApiGetAllAssetsRequest {
readonly updatedBefore?: string
/**
- * ETag of data already cached on the client
+ *
* @type {string}
* @memberof AssetApiGetAllAssets
*/
- readonly ifNoneMatch?: string
+ readonly userId?: string
}
/**
@@ -9500,31 +9500,31 @@ export interface AssetApiGetDownloadInfoRequest {
export interface AssetApiGetMapMarkersRequest {
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetMapMarkers
*/
- readonly isArchived?: boolean
+ readonly fileCreatedAfter?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetMapMarkers
*/
- readonly isFavorite?: boolean
+ readonly fileCreatedBefore?: string
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetMapMarkers
*/
- readonly fileCreatedAfter?: string
+ readonly isArchived?: boolean
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetMapMarkers
*/
- readonly fileCreatedBefore?: string
+ readonly isFavorite?: boolean
}
/**
@@ -9582,13 +9582,6 @@ export interface AssetApiGetTimeBucketRequest {
*/
readonly timeBucket: string
- /**
- *
- * @type {string}
- * @memberof AssetApiGetTimeBucket
- */
- readonly userId?: string
-
/**
*
* @type {string}
@@ -9596,13 +9589,6 @@ export interface AssetApiGetTimeBucketRequest {
*/
readonly albumId?: string
- /**
- *
- * @type {string}
- * @memberof AssetApiGetTimeBucket
- */
- readonly personId?: string
-
/**
*
* @type {boolean}
@@ -9626,10 +9612,24 @@ export interface AssetApiGetTimeBucketRequest {
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetTimeBucket
*/
- readonly withStacked?: boolean
+ readonly key?: string
+
+ /**
+ *
+ * @type {string}
+ * @memberof AssetApiGetTimeBucket
+ */
+ readonly personId?: string
+
+ /**
+ *
+ * @type {string}
+ * @memberof AssetApiGetTimeBucket
+ */
+ readonly userId?: string
/**
*
@@ -9640,10 +9640,10 @@ export interface AssetApiGetTimeBucketRequest {
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetTimeBucket
*/
- readonly key?: string
+ readonly withStacked?: boolean
}
/**
@@ -9664,49 +9664,49 @@ export interface AssetApiGetTimeBucketsRequest {
* @type {string}
* @memberof AssetApiGetTimeBuckets
*/
- readonly userId?: string
+ readonly albumId?: string
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetTimeBuckets
*/
- readonly albumId?: string
+ readonly isArchived?: boolean
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetTimeBuckets
*/
- readonly personId?: string
+ readonly isFavorite?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiGetTimeBuckets
*/
- readonly isArchived?: boolean
+ readonly isTrashed?: boolean
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetTimeBuckets
*/
- readonly isFavorite?: boolean
+ readonly key?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetTimeBuckets
*/
- readonly isTrashed?: boolean
+ readonly personId?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiGetTimeBuckets
*/
- readonly withStacked?: boolean
+ readonly userId?: string
/**
*
@@ -9717,10 +9717,10 @@ export interface AssetApiGetTimeBucketsRequest {
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiGetTimeBuckets
*/
- readonly key?: string
+ readonly withStacked?: boolean
}
/**
@@ -9776,280 +9776,280 @@ export interface AssetApiSearchAssetsRequest {
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly id?: string
+ readonly checksum?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly libraryId?: string
+ readonly city?: string
/**
*
- * @type {AssetTypeEnum}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly type?: AssetTypeEnum
+ readonly country?: string
/**
*
- * @type {AssetOrder}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly order?: AssetOrder
+ readonly createdAfter?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly deviceAssetId?: string
+ readonly createdBefore?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly deviceId?: string
+ readonly deviceAssetId?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly checksum?: string
+ readonly deviceId?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly isArchived?: boolean
+ readonly encodedVideoPath?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly isEncoded?: boolean
+ readonly id?: string
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isExternal?: boolean
+ readonly isArchived?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isFavorite?: boolean
+ readonly isEncoded?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isMotion?: boolean
+ readonly isExternal?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isOffline?: boolean
+ readonly isFavorite?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isReadOnly?: boolean
+ readonly isMotion?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly isVisible?: boolean
+ readonly isOffline?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly withDeleted?: boolean
+ readonly isReadOnly?: boolean
/**
*
* @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly withStacked?: boolean
+ readonly isVisible?: boolean
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly withExif?: boolean
+ readonly lensModel?: string
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly withPeople?: boolean
+ readonly libraryId?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly createdBefore?: string
+ readonly make?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly createdAfter?: string
+ readonly model?: string
/**
*
- * @type {string}
+ * @type {AssetOrder}
* @memberof AssetApiSearchAssets
*/
- readonly updatedBefore?: string
+ readonly order?: AssetOrder
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly updatedAfter?: string
+ readonly originalFileName?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly trashedBefore?: string
+ readonly originalPath?: string
/**
*
- * @type {string}
+ * @type {number}
* @memberof AssetApiSearchAssets
*/
- readonly trashedAfter?: string
+ readonly page?: number
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly takenBefore?: string
+ readonly resizePath?: string
/**
*
- * @type {string}
+ * @type {number}
* @memberof AssetApiSearchAssets
*/
- readonly takenAfter?: string
+ readonly size?: number
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly originalFileName?: string
+ readonly state?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly originalPath?: string
+ readonly takenAfter?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly resizePath?: string
+ readonly takenBefore?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly webpPath?: string
+ readonly trashedAfter?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly encodedVideoPath?: string
+ readonly trashedBefore?: string
/**
*
- * @type {string}
+ * @type {AssetTypeEnum}
* @memberof AssetApiSearchAssets
*/
- readonly city?: string
+ readonly type?: AssetTypeEnum
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly state?: string
+ readonly updatedAfter?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly country?: string
+ readonly updatedBefore?: string
/**
*
* @type {string}
* @memberof AssetApiSearchAssets
*/
- readonly make?: string
+ readonly webpPath?: string
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly model?: string
+ readonly withDeleted?: boolean
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly lensModel?: string
+ readonly withExif?: boolean
/**
*
- * @type {number}
+ * @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly page?: number
+ readonly withPeople?: boolean
/**
*
- * @type {number}
+ * @type {boolean}
* @memberof AssetApiSearchAssets
*/
- readonly size?: number
+ readonly withStacked?: boolean
}
/**
@@ -10335,7 +10335,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
*/
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
- return AssetApiFp(this.configuration).getAllAssets(requestParameters.skip, requestParameters.take, requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
+ return AssetApiFp(this.configuration).getAllAssets(requestParameters.ifNoneMatch, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.skip, requestParameters.take, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -10431,7 +10431,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
*/
public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
- return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
+ return AssetApiFp(this.configuration).getMapMarkers(requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, requestParameters.isArchived, requestParameters.isFavorite, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -10464,7 +10464,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
*/
public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
- return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
+ return AssetApiFp(this.configuration).getTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -10475,7 +10475,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
*/
public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
- return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.withStacked, requestParameters.withPartners, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
+ return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -10531,7 +10531,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
*/
public searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig) {
- return AssetApiFp(this.configuration).searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
+ return AssetApiFp(this.configuration).searchAssets(requestParameters.checksum, requestParameters.city, requestParameters.country, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.encodedVideoPath, requestParameters.id, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.lensModel, requestParameters.libraryId, requestParameters.make, requestParameters.model, requestParameters.order, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.page, requestParameters.resizePath, requestParameters.size, requestParameters.state, requestParameters.takenAfter, requestParameters.takenBefore, requestParameters.trashedAfter, requestParameters.trashedBefore, requestParameters.type, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.webpPath, requestParameters.withDeleted, requestParameters.withExif, requestParameters.withPeople, requestParameters.withStacked, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -10643,17 +10643,17 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
},
/**
*
- * @param {EntityType} entityType
* @param {string} after
+ * @param {EntityType} entityType
* @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
- // verify required parameter 'entityType' is not null or undefined
- assertParamExists('getAuditDeletes', 'entityType', entityType)
+ getAuditDeletes: async (after: string, entityType: EntityType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'after' is not null or undefined
assertParamExists('getAuditDeletes', 'after', after)
+ // verify required parameter 'entityType' is not null or undefined
+ assertParamExists('getAuditDeletes', 'entityType', entityType)
const localVarPath = `/audit/deletes`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10675,6 +10675,12 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
+ if (after !== undefined) {
+ localVarQueryParameter['after'] = (after as any instanceof Date) ?
+ (after as any).toISOString() :
+ after;
+ }
+
if (entityType !== undefined) {
localVarQueryParameter['entityType'] = entityType;
}
@@ -10683,12 +10689,6 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['userId'] = userId;
}
- if (after !== undefined) {
- localVarQueryParameter['after'] = (after as any instanceof Date) ?
- (after as any).toISOString() :
- after;
- }
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10804,14 +10804,14 @@ export const AuditApiFp = function(configuration?: Configuration) {
},
/**
*
- * @param {EntityType} entityType
* @param {string} after
+ * @param {EntityType} entityType
* @param {string} [userId]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
+ async getAuditDeletes(after: string, entityType: EntityType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(after, entityType, userId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -10859,7 +10859,7 @@ export const AuditApiFactory = function (configuration?: Configuration, basePath
* @throws {RequiredError}
*/
getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
- return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
+ return localVarFp.getAuditDeletes(requestParameters.after, requestParameters.entityType, requestParameters.userId, options).then((request) => request(axios, basePath));
},
/**
*
@@ -10903,17 +10903,17 @@ export interface AuditApiFixAuditFilesRequest {
export interface AuditApiGetAuditDeletesRequest {
/**
*
- * @type {EntityType}
+ * @type {string}
* @memberof AuditApiGetAuditDeletes
*/
- readonly entityType: EntityType
+ readonly after: string
/**
*
- * @type {string}
+ * @type {EntityType}
* @memberof AuditApiGetAuditDeletes
*/
- readonly after: string
+ readonly entityType: EntityType
/**
*
@@ -10963,7 +10963,7 @@ export class AuditApi extends BaseAPI {
* @memberof AuditApi
*/
public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
- return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
+ return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.after, requestParameters.entityType, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -14639,17 +14639,17 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
},
/**
*
+ * @param {boolean} [clip]
+ * @param {boolean} [motion]
* @param {string} [q]
* @param {string} [query]
- * @param {boolean} [clip]
- * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
* @param {boolean} [recent]
- * @param {boolean} [motion]
+ * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
* @param {boolean} [withArchived]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- search: async (q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', recent?: boolean, motion?: boolean, withArchived?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ search: async (clip?: boolean, motion?: boolean, q?: string, query?: string, recent?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', withArchived?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/search`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14671,28 +14671,28 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
- if (q !== undefined) {
- localVarQueryParameter['q'] = q;
+ if (clip !== undefined) {
+ localVarQueryParameter['clip'] = clip;
}
- if (query !== undefined) {
- localVarQueryParameter['query'] = query;
+ if (motion !== undefined) {
+ localVarQueryParameter['motion'] = motion;
}
- if (clip !== undefined) {
- localVarQueryParameter['clip'] = clip;
+ if (q !== undefined) {
+ localVarQueryParameter['q'] = q;
}
- if (type !== undefined) {
- localVarQueryParameter['type'] = type;
+ if (query !== undefined) {
+ localVarQueryParameter['query'] = query;
}
if (recent !== undefined) {
localVarQueryParameter['recent'] = recent;
}
- if (motion !== undefined) {
- localVarQueryParameter['motion'] = motion;
+ if (type !== undefined) {
+ localVarQueryParameter['type'] = type;
}
if (withArchived !== undefined) {
@@ -14781,18 +14781,18 @@ export const SearchApiFp = function(configuration?: Configuration) {
},
/**
*
+ * @param {boolean} [clip]
+ * @param {boolean} [motion]
* @param {string} [q]
* @param {string} [query]
- * @param {boolean} [clip]
- * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
* @param {boolean} [recent]
- * @param {boolean} [motion]
+ * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
* @param {boolean} [withArchived]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', recent?: boolean, motion?: boolean, withArchived?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, recent, motion, withArchived, options);
+ async search(clip?: boolean, motion?: boolean, q?: string, query?: string, recent?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', withArchived?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResponseDto>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.search(clip, motion, q, query, recent, type, withArchived, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -14831,7 +14831,7 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
* @throws {RequiredError}
*/
search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
- return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.recent, requestParameters.motion, requestParameters.withArchived, options).then((request) => request(axios, basePath));
+ return localVarFp.search(requestParameters.clip, requestParameters.motion, requestParameters.q, requestParameters.query, requestParameters.recent, requestParameters.type, requestParameters.withArchived, options).then((request) => request(axios, basePath));
},
/**
*
@@ -14853,31 +14853,31 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
export interface SearchApiSearchRequest {
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof SearchApiSearch
*/
- readonly q?: string
+ readonly clip?: boolean
/**
*
- * @type {string}
+ * @type {boolean}
* @memberof SearchApiSearch
*/
- readonly query?: string
+ readonly motion?: boolean
/**
*
- * @type {boolean}
+ * @type {string}
* @memberof SearchApiSearch
*/
- readonly clip?: boolean
+ readonly q?: string
/**
*
- * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
+ * @type {string}
* @memberof SearchApiSearch
*/
- readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
+ readonly query?: string
/**
*
@@ -14888,10 +14888,10 @@ export interface SearchApiSearchRequest {
/**
*
- * @type {boolean}
+ * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
* @memberof SearchApiSearch
*/
- readonly motion?: boolean
+ readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
/**
*
@@ -14947,7 +14947,7 @@ export class SearchApi extends BaseAPI {
* @memberof SearchApi
*/
public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
- return SearchApiFp(this.configuration).search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.recent, requestParameters.motion, requestParameters.withArchived, options).then((request) => request(this.axios, this.basePath));
+ return SearchApiFp(this.configuration).search(requestParameters.clip, requestParameters.motion, requestParameters.q, requestParameters.query, requestParameters.recent, requestParameters.type, requestParameters.withArchived, options).then((request) => request(this.axios, this.basePath));
}
/**
@@ -15675,13 +15675,13 @@ export const SharedLinkApiAxiosParamCreator = function (configuration?: Configur
},
/**
*
+ * @param {string} [key]
* @param {string} [password]
* @param {string} [token]
- * @param {string} [key]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ getMySharedLink: async (key?: string, password?: string, token?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/shared-link/me`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15703,6 +15703,10 @@ export const SharedLinkApiAxiosParamCreator = function (configuration?: Configur
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)
+ if (key !== undefined) {
+ localVarQueryParameter['key'] = key;
+ }
+
if (password !== undefined) {
localVarQueryParameter['password'] = password;
}
@@ -15711,10 +15715,6 @@ export const SharedLinkApiAxiosParamCreator = function (configuration?: Configur
localVarQueryParameter['token'] = token;
}
- if (key !== undefined) {
- localVarQueryParameter['key'] = key;
- }
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15954,14 +15954,14 @@ export const SharedLinkApiFp = function(configuration?: Configuration) {
},
/**
*
+ * @param {string} [key]
* @param {string} [password]
* @param {string} [token]
- * @param {string} [key]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
+ async getMySharedLink(key?: string, password?: string, token?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(key, password, token, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -16050,7 +16050,7 @@ export const SharedLinkApiFactory = function (configuration?: Configuration, bas
* @throws {RequiredError}
*/
getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
- return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
+ return localVarFp.getMySharedLink(requestParameters.key, requestParameters.password, requestParameters.token, options).then((request) => request(axios, basePath));
},
/**
*
@@ -16144,21 +16144,21 @@ export interface SharedLinkApiGetMySharedLinkRequest {
* @type {string}
* @memberof SharedLinkApiGetMySharedLink
*/
- readonly password?: string
+ readonly key?: string
/**
*
* @type {string}
* @memberof SharedLinkApiGetMySharedLink
*/
- readonly token?: string
+ readonly password?: string
/**
*
* @type {string}
* @memberof SharedLinkApiGetMySharedLink
*/
- readonly key?: string
+ readonly token?: string
}
/**
@@ -16285,7 +16285,7 @@ export class SharedLinkApi extends BaseAPI {
* @memberof SharedLinkApi
*/
public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
- return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
+ return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.key, requestParameters.password, requestParameters.token, options).then((request) => request(this.axios, this.basePath));
}
/**
diff --git a/server/src/immich/app.utils.ts b/server/src/immich/app.utils.ts
index 4eeba8cc4f..0dd984a02d 100644
--- a/server/src/immich/app.utils.ts
+++ b/server/src/immich/app.utils.ts
@@ -20,10 +20,12 @@ import {
import { NextFunction, Response } from 'express';
import { writeFileSync } from 'fs';
import { access, constants } from 'fs/promises';
+import _ from 'lodash';
import path, { isAbsolute } from 'path';
import { promisify } from 'util';
import { applyDecorators, UsePipes, ValidationPipe } from '@nestjs/common';
+import { SchemaObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
import { Metadata } from './app.guard';
export function UseValidation() {
@@ -110,8 +112,21 @@ export const routeToErrorMessage = (methodName: string) =>
const patchOpenAPI = (document: OpenAPIObject) => {
document.paths = sortKeys(document.paths);
+
if (document.components?.schemas) {
- document.components.schemas = sortKeys(document.components.schemas);
+ const schemas = document.components.schemas as Record<string, SchemaObject>;
+
+ document.components.schemas = sortKeys(schemas);
+
+ for (const schema of Object.values(schemas)) {
+ if (schema.properties) {
+ schema.properties = sortKeys(schema.properties);
+ }
+
+ if (schema.required) {
+ schema.required = schema.required.sort();
+ }
+ }
}
for (const [key, value] of Object.entries(document.paths)) {
@@ -152,6 +167,10 @@ const patchOpenAPI = (document: OpenAPIObject) => {
if (operation.description === '') {
delete operation.description;
}
+
+ if (operation.parameters) {
+ operation.parameters = _.orderBy(operation.parameters, 'name');
+ }
}
}