This commit is contained in:
mertalev
2025-05-04 19:26:09 -04:00
parent 97cc9e223e
commit 8837f5b4fb
10 changed files with 75 additions and 477 deletions
+27 -80
View File
@@ -6963,6 +6963,7 @@
"required": false,
"in": "query",
"schema": {
"minimum": 1,
"type": "number"
}
},
@@ -7023,7 +7024,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TimeBucketResponseDto"
"$ref": "#/components/schemas/TimeBucketAssetResponseDto"
}
}
},
@@ -13561,146 +13562,128 @@
},
"TimeBucketAssetResponseDto": {
"properties": {
"description": {
"default": [],
"city": {
"items": {
"$ref": "#/components/schemas/TimelineAssetDescriptionDto"
"nullable": true,
"type": "string"
},
"type": "array"
},
"country": {
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
},
"duration": {
"default": [],
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
},
"id": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"isArchived": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"isFavorite": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"isImage": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"isTrashed": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"isVideo": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"livePhotoVideoId": {
"default": [],
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
},
"localDateTime": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"ownerId": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"projectionType": {
"default": [],
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
},
"ratio": {
"default": [],
"items": {
"type": "number"
},
"type": "array"
},
"stack": {
"default": [],
"stackCount": {
"items": {
"$ref": "#/components/schemas/TimelineStackResponseDto"
"type": "number"
},
"type": "array"
},
"stackId": {
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
},
"thumbhash": {
"default": [],
"items": {
"nullable": true,
"type": "string"
},
"type": "array"
}
},
"required": [
"description",
"city",
"country",
"duration",
"id",
"isArchived",
"isFavorite",
"isImage",
"isTrashed",
"isVideo",
"livePhotoVideoId",
"localDateTime",
"ownerId",
"projectionType",
"ratio",
"stack",
"thumbhash"
],
"type": "object"
},
"TimeBucketResponseDto": {
"properties": {
"bucketAssets": {
"$ref": "#/components/schemas/TimeBucketAssetResponseDto"
},
"hasNextPage": {
"type": "boolean"
}
},
"required": [
"bucketAssets",
"hasNextPage"
],
"type": "object"
},
"TimeBucketsResponseDto": {
"properties": {
"count": {
@@ -13716,42 +13699,6 @@
],
"type": "object"
},
"TimelineAssetDescriptionDto": {
"properties": {
"city": {
"nullable": true,
"type": "string"
},
"country": {
"nullable": true,
"type": "string"
}
},
"required": [
"city",
"country"
],
"type": "object"
},
"TimelineStackResponseDto": {
"properties": {
"assetCount": {
"type": "number"
},
"id": {
"type": "string"
},
"primaryAssetId": {
"type": "string"
}
},
"required": [
"assetCount",
"id",
"primaryAssetId"
],
"type": "object"
},
"ToneMapping": {
"enum": [
"hable",
+9 -21
View File
@@ -1384,35 +1384,23 @@ export type TagBulkAssetsResponseDto = {
export type TagUpdateDto = {
color?: string | null;
};
export type TimelineAssetDescriptionDto = {
city: string | null;
country: string | null;
};
export type TimelineStackResponseDto = {
assetCount: number;
id: string;
primaryAssetId: string;
};
export type TimeBucketAssetResponseDto = {
description: TimelineAssetDescriptionDto[];
duration: string[];
city: (string | null)[];
country: (string | null)[];
duration: (string | null)[];
id: string[];
isArchived: number[];
isFavorite: number[];
isImage: number[];
isTrashed: number[];
isVideo: number[];
livePhotoVideoId: string[];
livePhotoVideoId: (string | null)[];
localDateTime: string[];
ownerId: string[];
projectionType: string[];
projectionType: (string | null)[];
ratio: number[];
stack: TimelineStackResponseDto[];
thumbhash: string[];
};
export type TimeBucketResponseDto = {
bucketAssets: TimeBucketAssetResponseDto;
hasNextPage: boolean;
stackCount?: number[];
stackId?: (string | null)[];
thumbhash: (string | null)[];
};
export type TimeBucketsResponseDto = {
count: number;
@@ -3290,7 +3278,7 @@ export function getTimeBucket({ albumId, isArchived, isFavorite, isTrashed, key,
}, opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: TimeBucketResponseDto;
data: TimeBucketAssetResponseDto;
}>(`/timeline/bucket${QS.query(QS.explode({
albumId,
isArchived,