High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
refactor(server): describe check upload id as string (#29274)
Timonf22836e1bf44
diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_result.dartindex ed7508b18e..572c99c11e 100644--- a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart+++ b/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart@@ -31,7 +31,7 @@ class AssetBulkUploadCheckResult {///Optional<String?> assetId;- /// Asset ID+ /// Client-side identifier echoed from the request to match results to inputsString id;/// Whether existing asset is trasheddiff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.jsonindex 174409bb15..f3b4e99cd9 100644--- a/open-api/immich-openapi-specs.json+++ b/open-api/immich-openapi-specs.json@@ -17012,12 +17012,12 @@},"assetId": {"description": "Existing asset ID if duplicate",+ "format": "uuid",+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$","type": "string"},"id": {- "description": "Asset ID",- "format": "uuid",- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",+ "description": "Client-side identifier echoed from the request to match results to inputs","type": "string"},"isTrashed": {diff --git a/packages/sdk/src/fetch-client.ts b/packages/sdk/src/fetch-client.tsindex 6506cab8a3..c673cb2369 100644--- a/packages/sdk/src/fetch-client.ts+++ b/packages/sdk/src/fetch-client.ts@@ -707,7 +707,7 @@ export type AssetBulkUploadCheckResult = {action: AssetUploadAction;/** Existing asset ID if duplicate */assetId?: string;- /** Asset ID */+ /** Client-side identifier echoed from the request to match results to inputs */id: string;/** Whether existing asset is trashed */isTrashed?: boolean;diff --git a/server/src/dtos/asset-media-response.dto.ts b/server/src/dtos/asset-media-response.dto.tsindex b0c50794b9..a35d75fb5f 100644--- a/server/src/dtos/asset-media-response.dto.ts+++ b/server/src/dtos/asset-media-response.dto.ts@@ -34,10 +34,10 @@ const AssetRejectReasonSchema = zconst AssetBulkUploadCheckResultSchema = z.object({- id: z.uuidv4().describe('Asset ID'),+ id: z.string().describe('Client-side identifier echoed from the request to match results to inputs'),action: AssetUploadActionSchema,reason: AssetRejectReasonSchema.optional(),- assetId: z.string().optional().describe('Existing asset ID if duplicate'),+ assetId: z.uuidv4().optional().describe('Existing asset ID if duplicate'),isTrashed: z.boolean().optional().describe('Whether existing asset is trashed'),}).meta({ id: 'AssetBulkUploadCheckResult' });