mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-07 22:31:35 -05:00
chore: adds webhook types (#4606)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { Webhook } from "@prisma/client";
|
||||
import { z } from "zod";
|
||||
|
||||
export const ZWebhook = z.object({
|
||||
id: z.string().cuid2(),
|
||||
name: z.string().nullable(),
|
||||
createdAt: z.date(),
|
||||
updatedAt: z.date(),
|
||||
url: z.string().url(),
|
||||
source: z.enum(["user", "zapier", "make", "n8n"]),
|
||||
environmentId: z.string().cuid2(),
|
||||
triggers: z.array(z.enum(["responseFinished", "responseCreated", "responseUpdated"])),
|
||||
surveyIds: z.array(z.string().cuid2()),
|
||||
}) satisfies z.ZodType<Webhook>;
|
||||
Reference in New Issue
Block a user