Add the first bulk inventory operation through a validated, CSRF-protected API route with lifecycle and ownership enforcement, tests, and implementation-status documentation.
This commit is contained in:
@@ -6,4 +6,11 @@ export const createInventoryItemSchema = z
|
||||
conditionId: z.uuid(),
|
||||
notes: z.string().trim().max(10000).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const bulkArchiveInventorySchema = z
|
||||
.object({
|
||||
action: z.literal('ARCHIVE'),
|
||||
inventoryItemIds: z.array(z.uuid()).min(1).max(100),
|
||||
})
|
||||
.strict();
|
||||
Reference in New Issue
Block a user