feat: add bulk pricing refresh
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 00:07:29 -04:00
parent e0d231facc
commit 099ec2fe72
10 changed files with 205 additions and 11 deletions
+14 -1
View File
@@ -13,4 +13,17 @@ export const bulkArchiveInventorySchema = z
action: z.literal('ARCHIVE'),
inventoryItemIds: z.array(z.uuid()).min(1).max(100),
})
.strict();
.strict();
export const bulkPricingRefreshInventorySchema = z
.object({
action: z.literal('PRICING_REFRESH'),
inventoryItemIds: z.array(z.uuid()).min(1).max(100),
providerId: z.string().trim().min(1).max(100).optional(),
})
.strict();
export const bulkInventorySchema = z.discriminatedUnion('action', [
bulkArchiveInventorySchema,
bulkPricingRefreshInventorySchema,
]);