Fix zod types interfer with zapier integration (#697)

This commit is contained in:
Matti Nannt
2023-08-15 15:49:48 +02:00
committed by GitHub
parent 1b64fd32b3
commit 0659343a0b
+2 -2
View File
@@ -3,7 +3,7 @@ import { ZPipelineTrigger } from "./pipelines";
export const ZWebhook = z.object({
id: z.string().cuid2(),
name: z.string().nullable(),
name: z.string().nullish(),
createdAt: z.date(),
updatedAt: z.date(),
url: z.string().url(),
@@ -16,7 +16,7 @@ export type TWebhook = z.infer<typeof ZWebhook>;
export const ZWebhookInput = z.object({
url: z.string().url(),
name: z.string().nullable(),
name: z.string().nullish(),
triggers: z.array(ZPipelineTrigger),
surveyIds: z.array(z.string().cuid2()).optional(),
});