This commit is contained in:
@@ -14,3 +14,11 @@ export const createInventoryImageSchema = z.object({
|
||||
export const moveInventoryImageSchema = z.object({
|
||||
direction: z.enum(['up', 'down']),
|
||||
}).strict();
|
||||
|
||||
export const updateImageOrderSchema = z.object({
|
||||
sortOrder: z.int().min(0).max(2147483647),
|
||||
}).strict();
|
||||
|
||||
export const updateImageAltTextSchema = z.object({
|
||||
altText: z.string().trim().max(1000).nullable(),
|
||||
}).strict();
|
||||
|
||||
Reference in New Issue
Block a user