mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
refactor(server): describe check upload id as string (#29274)
This commit is contained in:
parent
7dd02ffbad
commit
f22836e1bf
4 changed files with 7 additions and 7 deletions
|
|
@ -31,7 +31,7 @@ class AssetBulkUploadCheckResult {
|
||||||
///
|
///
|
||||||
Optional<String?> assetId;
|
Optional<String?> assetId;
|
||||||
|
|
||||||
/// Asset ID
|
/// Client-side identifier echoed from the request to match results to inputs
|
||||||
String id;
|
String id;
|
||||||
|
|
||||||
/// Whether existing asset is trashed
|
/// Whether existing asset is trashed
|
||||||
|
|
|
||||||
|
|
@ -17012,12 +17012,12 @@
|
||||||
},
|
},
|
||||||
"assetId": {
|
"assetId": {
|
||||||
"description": "Existing asset ID if duplicate",
|
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"description": "Asset ID",
|
"description": "Client-side identifier echoed from the request to match results to inputs",
|
||||||
"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"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"isTrashed": {
|
"isTrashed": {
|
||||||
|
|
|
||||||
|
|
@ -707,7 +707,7 @@ export type AssetBulkUploadCheckResult = {
|
||||||
action: AssetUploadAction;
|
action: AssetUploadAction;
|
||||||
/** Existing asset ID if duplicate */
|
/** Existing asset ID if duplicate */
|
||||||
assetId?: string;
|
assetId?: string;
|
||||||
/** Asset ID */
|
/** Client-side identifier echoed from the request to match results to inputs */
|
||||||
id: string;
|
id: string;
|
||||||
/** Whether existing asset is trashed */
|
/** Whether existing asset is trashed */
|
||||||
isTrashed?: boolean;
|
isTrashed?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,10 @@ const AssetRejectReasonSchema = z
|
||||||
|
|
||||||
const AssetBulkUploadCheckResultSchema = z
|
const AssetBulkUploadCheckResultSchema = z
|
||||||
.object({
|
.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,
|
action: AssetUploadActionSchema,
|
||||||
reason: AssetRejectReasonSchema.optional(),
|
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'),
|
isTrashed: z.boolean().optional().describe('Whether existing asset is trashed'),
|
||||||
})
|
})
|
||||||
.meta({ id: 'AssetBulkUploadCheckResult' });
|
.meta({ id: 'AssetBulkUploadCheckResult' });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue