Skip to content

Commit

Permalink
feat(zod-schemas): add merchant monitoring configuration options
Browse files Browse the repository at this point in the history
- Add isMerchantMonitoringEnabled flag
- Introduce maxBusinessReports field with default value

(your schema is now so flexible, it could double as yoga instructor)
  • Loading branch information
alonp99 committed Nov 29, 2024
1 parent 7fbcebc commit 27e0342
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const CustomerConfigSchema = z.object({
ongoingWorkflowDefinitionId: z.string().optional(),
isDemo: z.boolean().default(false).optional(),
hideCreateMerchantMonitoringButton: z.boolean().default(true).optional(),
isMerchantMonitoringEnabled: z.boolean().default(false).optional(),
maxBusinessReports: z.number().default(10).optional(),
});

export type TCustomerConfig = z.infer<typeof CustomerConfigSchema>;

0 comments on commit 27e0342

Please sign in to comment.