mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Update open-api
This commit is contained in:
parent
4fa8fa2946
commit
31b4324823
8 changed files with 156 additions and 8 deletions
1
mobile/openapi/README.md
generated
1
mobile/openapi/README.md
generated
|
|
@ -340,6 +340,7 @@ Class | Method | HTTP request | Description
|
||||||
- [AssetMetadataUpsertDto](doc//AssetMetadataUpsertDto.md)
|
- [AssetMetadataUpsertDto](doc//AssetMetadataUpsertDto.md)
|
||||||
- [AssetMetadataUpsertItemDto](doc//AssetMetadataUpsertItemDto.md)
|
- [AssetMetadataUpsertItemDto](doc//AssetMetadataUpsertItemDto.md)
|
||||||
- [AssetOrder](doc//AssetOrder.md)
|
- [AssetOrder](doc//AssetOrder.md)
|
||||||
|
- [AssetOrderBy](doc//AssetOrderBy.md)
|
||||||
- [AssetResponseDto](doc//AssetResponseDto.md)
|
- [AssetResponseDto](doc//AssetResponseDto.md)
|
||||||
- [AssetStackResponseDto](doc//AssetStackResponseDto.md)
|
- [AssetStackResponseDto](doc//AssetStackResponseDto.md)
|
||||||
- [AssetStatsResponseDto](doc//AssetStatsResponseDto.md)
|
- [AssetStatsResponseDto](doc//AssetStatsResponseDto.md)
|
||||||
|
|
|
||||||
1
mobile/openapi/lib/api.dart
generated
1
mobile/openapi/lib/api.dart
generated
|
|
@ -111,6 +111,7 @@ part 'model/asset_metadata_response_dto.dart';
|
||||||
part 'model/asset_metadata_upsert_dto.dart';
|
part 'model/asset_metadata_upsert_dto.dart';
|
||||||
part 'model/asset_metadata_upsert_item_dto.dart';
|
part 'model/asset_metadata_upsert_item_dto.dart';
|
||||||
part 'model/asset_order.dart';
|
part 'model/asset_order.dart';
|
||||||
|
part 'model/asset_order_by.dart';
|
||||||
part 'model/asset_response_dto.dart';
|
part 'model/asset_response_dto.dart';
|
||||||
part 'model/asset_stack_response_dto.dart';
|
part 'model/asset_stack_response_dto.dart';
|
||||||
part 'model/asset_stats_response_dto.dart';
|
part 'model/asset_stats_response_dto.dart';
|
||||||
|
|
|
||||||
30
mobile/openapi/lib/api/timeline_api.dart
generated
30
mobile/openapi/lib/api/timeline_api.dart
generated
|
|
@ -39,6 +39,9 @@ class TimelineApi {
|
||||||
/// * [AssetOrder] order:
|
/// * [AssetOrder] order:
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
||||||
///
|
///
|
||||||
|
/// * [AssetOrderBy] orderBy:
|
||||||
|
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
|
||||||
|
///
|
||||||
/// * [String] personId:
|
/// * [String] personId:
|
||||||
/// Filter assets containing a specific person (face recognition)
|
/// Filter assets containing a specific person (face recognition)
|
||||||
///
|
///
|
||||||
|
|
@ -61,7 +64,7 @@ class TimelineApi {
|
||||||
///
|
///
|
||||||
/// * [bool] withStacked:
|
/// * [bool] withStacked:
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
||||||
Future<Response> getTimeBucketWithHttpInfo(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
Future<Response> getTimeBucketWithHttpInfo(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, AssetOrderBy? orderBy, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
||||||
// ignore: prefer_const_declarations
|
// ignore: prefer_const_declarations
|
||||||
final apiPath = r'/timeline/bucket';
|
final apiPath = r'/timeline/bucket';
|
||||||
|
|
||||||
|
|
@ -87,6 +90,9 @@ class TimelineApi {
|
||||||
if (order != null) {
|
if (order != null) {
|
||||||
queryParams.addAll(_queryParams('', 'order', order));
|
queryParams.addAll(_queryParams('', 'order', order));
|
||||||
}
|
}
|
||||||
|
if (orderBy != null) {
|
||||||
|
queryParams.addAll(_queryParams('', 'orderBy', orderBy));
|
||||||
|
}
|
||||||
if (personId != null) {
|
if (personId != null) {
|
||||||
queryParams.addAll(_queryParams('', 'personId', personId));
|
queryParams.addAll(_queryParams('', 'personId', personId));
|
||||||
}
|
}
|
||||||
|
|
@ -148,6 +154,9 @@ class TimelineApi {
|
||||||
/// * [AssetOrder] order:
|
/// * [AssetOrder] order:
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
||||||
///
|
///
|
||||||
|
/// * [AssetOrderBy] orderBy:
|
||||||
|
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
|
||||||
|
///
|
||||||
/// * [String] personId:
|
/// * [String] personId:
|
||||||
/// Filter assets containing a specific person (face recognition)
|
/// Filter assets containing a specific person (face recognition)
|
||||||
///
|
///
|
||||||
|
|
@ -170,8 +179,8 @@ class TimelineApi {
|
||||||
///
|
///
|
||||||
/// * [bool] withStacked:
|
/// * [bool] withStacked:
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
||||||
Future<TimeBucketAssetResponseDto?> getTimeBucket(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
Future<TimeBucketAssetResponseDto?> getTimeBucket(String timeBucket, { String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, AssetOrderBy? orderBy, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
||||||
final response = await getTimeBucketWithHttpInfo(timeBucket, albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withCoordinates: withCoordinates, withPartners: withPartners, withStacked: withStacked, );
|
final response = await getTimeBucketWithHttpInfo(timeBucket, albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, orderBy: orderBy, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withCoordinates: withCoordinates, withPartners: withPartners, withStacked: withStacked, );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
|
|
@ -205,6 +214,9 @@ class TimelineApi {
|
||||||
/// * [AssetOrder] order:
|
/// * [AssetOrder] order:
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
||||||
///
|
///
|
||||||
|
/// * [AssetOrderBy] orderBy:
|
||||||
|
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
|
||||||
|
///
|
||||||
/// * [String] personId:
|
/// * [String] personId:
|
||||||
/// Filter assets containing a specific person (face recognition)
|
/// Filter assets containing a specific person (face recognition)
|
||||||
///
|
///
|
||||||
|
|
@ -227,7 +239,7 @@ class TimelineApi {
|
||||||
///
|
///
|
||||||
/// * [bool] withStacked:
|
/// * [bool] withStacked:
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
||||||
Future<Response> getTimeBucketsWithHttpInfo({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
Future<Response> getTimeBucketsWithHttpInfo({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, AssetOrderBy? orderBy, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
||||||
// ignore: prefer_const_declarations
|
// ignore: prefer_const_declarations
|
||||||
final apiPath = r'/timeline/buckets';
|
final apiPath = r'/timeline/buckets';
|
||||||
|
|
||||||
|
|
@ -253,6 +265,9 @@ class TimelineApi {
|
||||||
if (order != null) {
|
if (order != null) {
|
||||||
queryParams.addAll(_queryParams('', 'order', order));
|
queryParams.addAll(_queryParams('', 'order', order));
|
||||||
}
|
}
|
||||||
|
if (orderBy != null) {
|
||||||
|
queryParams.addAll(_queryParams('', 'orderBy', orderBy));
|
||||||
|
}
|
||||||
if (personId != null) {
|
if (personId != null) {
|
||||||
queryParams.addAll(_queryParams('', 'personId', personId));
|
queryParams.addAll(_queryParams('', 'personId', personId));
|
||||||
}
|
}
|
||||||
|
|
@ -310,6 +325,9 @@ class TimelineApi {
|
||||||
/// * [AssetOrder] order:
|
/// * [AssetOrder] order:
|
||||||
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
|
||||||
///
|
///
|
||||||
|
/// * [AssetOrderBy] orderBy:
|
||||||
|
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
|
||||||
|
///
|
||||||
/// * [String] personId:
|
/// * [String] personId:
|
||||||
/// Filter assets containing a specific person (face recognition)
|
/// Filter assets containing a specific person (face recognition)
|
||||||
///
|
///
|
||||||
|
|
@ -332,8 +350,8 @@ class TimelineApi {
|
||||||
///
|
///
|
||||||
/// * [bool] withStacked:
|
/// * [bool] withStacked:
|
||||||
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
/// Include stacked assets in the response. When true, only primary assets from stacks are returned.
|
||||||
Future<List<TimeBucketsResponseDto>?> getTimeBuckets({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
Future<List<TimeBucketsResponseDto>?> getTimeBuckets({ String? albumId, bool? isFavorite, bool? isTrashed, String? key, AssetOrder? order, AssetOrderBy? orderBy, String? personId, String? slug, String? tagId, String? userId, AssetVisibility? visibility, bool? withCoordinates, bool? withPartners, bool? withStacked, }) async {
|
||||||
final response = await getTimeBucketsWithHttpInfo( albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withCoordinates: withCoordinates, withPartners: withPartners, withStacked: withStacked, );
|
final response = await getTimeBucketsWithHttpInfo( albumId: albumId, isFavorite: isFavorite, isTrashed: isTrashed, key: key, order: order, orderBy: orderBy, personId: personId, slug: slug, tagId: tagId, userId: userId, visibility: visibility, withCoordinates: withCoordinates, withPartners: withPartners, withStacked: withStacked, );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
mobile/openapi/lib/api_client.dart
generated
2
mobile/openapi/lib/api_client.dart
generated
|
|
@ -276,6 +276,8 @@ class ApiClient {
|
||||||
return AssetMetadataUpsertItemDto.fromJson(value);
|
return AssetMetadataUpsertItemDto.fromJson(value);
|
||||||
case 'AssetOrder':
|
case 'AssetOrder':
|
||||||
return AssetOrderTypeTransformer().decode(value);
|
return AssetOrderTypeTransformer().decode(value);
|
||||||
|
case 'AssetOrderBy':
|
||||||
|
return AssetOrderByTypeTransformer().decode(value);
|
||||||
case 'AssetResponseDto':
|
case 'AssetResponseDto':
|
||||||
return AssetResponseDto.fromJson(value);
|
return AssetResponseDto.fromJson(value);
|
||||||
case 'AssetStackResponseDto':
|
case 'AssetStackResponseDto':
|
||||||
|
|
|
||||||
3
mobile/openapi/lib/api_helper.dart
generated
3
mobile/openapi/lib/api_helper.dart
generated
|
|
@ -73,6 +73,9 @@ String parameterToString(dynamic value) {
|
||||||
if (value is AssetOrder) {
|
if (value is AssetOrder) {
|
||||||
return AssetOrderTypeTransformer().encode(value).toString();
|
return AssetOrderTypeTransformer().encode(value).toString();
|
||||||
}
|
}
|
||||||
|
if (value is AssetOrderBy) {
|
||||||
|
return AssetOrderByTypeTransformer().encode(value).toString();
|
||||||
|
}
|
||||||
if (value is AssetTypeEnum) {
|
if (value is AssetTypeEnum) {
|
||||||
return AssetTypeEnumTypeTransformer().encode(value).toString();
|
return AssetTypeEnumTypeTransformer().encode(value).toString();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
88
mobile/openapi/lib/model/asset_order_by.dart
generated
Normal file
88
mobile/openapi/lib/model/asset_order_by.dart
generated
Normal file
|
|
@ -0,0 +1,88 @@
|
||||||
|
//
|
||||||
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||||
|
//
|
||||||
|
// @dart=2.18
|
||||||
|
|
||||||
|
// ignore_for_file: unused_element, unused_import
|
||||||
|
// ignore_for_file: always_put_required_named_parameters_first
|
||||||
|
// ignore_for_file: constant_identifier_names
|
||||||
|
// ignore_for_file: lines_longer_than_80_chars
|
||||||
|
|
||||||
|
part of openapi.api;
|
||||||
|
|
||||||
|
|
||||||
|
class AssetOrderBy {
|
||||||
|
/// Instantiate a new enum with the provided [value].
|
||||||
|
const AssetOrderBy._(this.value);
|
||||||
|
|
||||||
|
/// The underlying value of this enum member.
|
||||||
|
final String value;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => value;
|
||||||
|
|
||||||
|
String toJson() => value;
|
||||||
|
|
||||||
|
static const ADDED = AssetOrderBy._(r'DATE_ADDED');
|
||||||
|
static const DELETED = AssetOrderBy._(r'DATE_DELETED');
|
||||||
|
static const TAKEN = AssetOrderBy._(r'DATE_TAKEN');
|
||||||
|
|
||||||
|
/// List of all possible values in this [enum][AssetOrderBy].
|
||||||
|
static const values = <AssetOrderBy>[
|
||||||
|
ADDED,
|
||||||
|
DELETED,
|
||||||
|
TAKEN,
|
||||||
|
];
|
||||||
|
|
||||||
|
static AssetOrderBy? fromJson(dynamic value) => AssetOrderByTypeTransformer().decode(value);
|
||||||
|
|
||||||
|
static List<AssetOrderBy> listFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final result = <AssetOrderBy>[];
|
||||||
|
if (json is List && json.isNotEmpty) {
|
||||||
|
for (final row in json) {
|
||||||
|
final value = AssetOrderBy.fromJson(row);
|
||||||
|
if (value != null) {
|
||||||
|
result.add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result.toList(growable: growable);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Transformation class that can [encode] an instance of [AssetOrderBy] to String,
|
||||||
|
/// and [decode] dynamic data back to [AssetOrderBy].
|
||||||
|
class AssetOrderByTypeTransformer {
|
||||||
|
factory AssetOrderByTypeTransformer() => _instance ??= const AssetOrderByTypeTransformer._();
|
||||||
|
|
||||||
|
const AssetOrderByTypeTransformer._();
|
||||||
|
|
||||||
|
String encode(AssetOrderBy data) => data.value;
|
||||||
|
|
||||||
|
/// Decodes a [dynamic value][data] to a AssetOrderBy.
|
||||||
|
///
|
||||||
|
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
||||||
|
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
||||||
|
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
||||||
|
///
|
||||||
|
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
||||||
|
/// and users are still using an old app with the old code.
|
||||||
|
AssetOrderBy? decode(dynamic data, {bool allowNull = true}) {
|
||||||
|
if (data != null) {
|
||||||
|
switch (data) {
|
||||||
|
case r'DATE_ADDED': return AssetOrderBy.ADDED;
|
||||||
|
case r'DATE_DELETED': return AssetOrderBy.DELETED;
|
||||||
|
case r'DATE_TAKEN': return AssetOrderBy.TAKEN;
|
||||||
|
default:
|
||||||
|
if (!allowNull) {
|
||||||
|
throw ArgumentError('Unknown enum value to decode: $data');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Singleton [AssetOrderByTypeTransformer] instance.
|
||||||
|
static AssetOrderByTypeTransformer? _instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -8841,6 +8841,15 @@
|
||||||
"$ref": "#/components/schemas/AssetOrder"
|
"$ref": "#/components/schemas/AssetOrder"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "orderBy",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"description": "Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/AssetOrderBy"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "personId",
|
"name": "personId",
|
||||||
"required": false,
|
"required": false,
|
||||||
|
|
@ -9005,6 +9014,15 @@
|
||||||
"$ref": "#/components/schemas/AssetOrder"
|
"$ref": "#/components/schemas/AssetOrder"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "orderBy",
|
||||||
|
"required": false,
|
||||||
|
"in": "query",
|
||||||
|
"description": "Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/AssetOrderBy"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "personId",
|
"name": "personId",
|
||||||
"required": false,
|
"required": false,
|
||||||
|
|
@ -11050,6 +11068,14 @@
|
||||||
],
|
],
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"AssetOrderBy": {
|
||||||
|
"enum": [
|
||||||
|
"DATE_ADDED",
|
||||||
|
"DATE_DELETED",
|
||||||
|
"DATE_TAKEN"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"AssetResponseDto": {
|
"AssetResponseDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"checksum": {
|
"checksum": {
|
||||||
|
|
|
||||||
|
|
@ -4301,12 +4301,13 @@ export function tagAssets({ id, bulkIdsDto }: {
|
||||||
/**
|
/**
|
||||||
* This endpoint requires the `asset.read` permission.
|
* This endpoint requires the `asset.read` permission.
|
||||||
*/
|
*/
|
||||||
export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }: {
|
export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, orderBy, personId, slug, tagId, timeBucket, userId, visibility, withCoordinates, withPartners, withStacked }: {
|
||||||
albumId?: string;
|
albumId?: string;
|
||||||
isFavorite?: boolean;
|
isFavorite?: boolean;
|
||||||
isTrashed?: boolean;
|
isTrashed?: boolean;
|
||||||
key?: string;
|
key?: string;
|
||||||
order?: AssetOrder;
|
order?: AssetOrder;
|
||||||
|
orderBy?: AssetOrderBy;
|
||||||
personId?: string;
|
personId?: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
tagId?: string;
|
tagId?: string;
|
||||||
|
|
@ -4326,6 +4327,7 @@ export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, pers
|
||||||
isTrashed,
|
isTrashed,
|
||||||
key,
|
key,
|
||||||
order,
|
order,
|
||||||
|
orderBy,
|
||||||
personId,
|
personId,
|
||||||
slug,
|
slug,
|
||||||
tagId,
|
tagId,
|
||||||
|
|
@ -4342,12 +4344,13 @@ export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, pers
|
||||||
/**
|
/**
|
||||||
* This endpoint requires the `asset.read` permission.
|
* This endpoint requires the `asset.read` permission.
|
||||||
*/
|
*/
|
||||||
export function getTimeBuckets({ albumId, isFavorite, isTrashed, key, order, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }: {
|
export function getTimeBuckets({ albumId, isFavorite, isTrashed, key, order, orderBy, personId, slug, tagId, userId, visibility, withCoordinates, withPartners, withStacked }: {
|
||||||
albumId?: string;
|
albumId?: string;
|
||||||
isFavorite?: boolean;
|
isFavorite?: boolean;
|
||||||
isTrashed?: boolean;
|
isTrashed?: boolean;
|
||||||
key?: string;
|
key?: string;
|
||||||
order?: AssetOrder;
|
order?: AssetOrder;
|
||||||
|
orderBy?: AssetOrderBy;
|
||||||
personId?: string;
|
personId?: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
tagId?: string;
|
tagId?: string;
|
||||||
|
|
@ -4366,6 +4369,7 @@ export function getTimeBuckets({ albumId, isFavorite, isTrashed, key, order, per
|
||||||
isTrashed,
|
isTrashed,
|
||||||
key,
|
key,
|
||||||
order,
|
order,
|
||||||
|
orderBy,
|
||||||
personId,
|
personId,
|
||||||
slug,
|
slug,
|
||||||
tagId,
|
tagId,
|
||||||
|
|
@ -5040,3 +5044,8 @@ export enum OAuthTokenEndpointAuthMethod {
|
||||||
ClientSecretPost = "client_secret_post",
|
ClientSecretPost = "client_secret_post",
|
||||||
ClientSecretBasic = "client_secret_basic"
|
ClientSecretBasic = "client_secret_basic"
|
||||||
}
|
}
|
||||||
|
export enum AssetOrderBy {
|
||||||
|
DateAdded = "DATE_ADDED",
|
||||||
|
DateDeleted = "DATE_DELETED",
|
||||||
|
DateTaken = "DATE_TAKEN"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue