mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-03 04:11:55 -05:00
Fix zod types interfer with zapier integration (#697)
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user