mirror of
https://github.com/immich-app/immich.git
synced 2026-06-27 14:26:52 +00:00
refactor(server): describe check upload id as string (#29274)
This commit is contained in:
@@ -31,7 +31,7 @@ class AssetBulkUploadCheckResult {
|
||||
///
|
||||
Optional<String?> assetId;
|
||||
|
||||
/// Asset ID
|
||||
/// Client-side identifier echoed from the request to match results to inputs
|
||||
String id;
|
||||
|
||||
/// Whether existing asset is trashed
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -34,10 +34,10 @@ const AssetRejectReasonSchema = z
|
||||
|
||||
const 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' });
|
||||
|
||||
Reference in New Issue
Block a user