Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

format

Kiran Ka114dd3b78c4
diff --git a/apps/web/lib/webhook/schemas.ts b/apps/web/lib/webhook/schemas.ts
index f71cb7ab84..b28e12c2ab 100644
--- a/apps/web/lib/webhook/schemas.ts
+++ b/apps/web/lib/webhook/schemas.ts
@@ -61,18 +61,21 @@ export const webhookEventSchema = z
createdAt: z.string(),
data: linkEventSchema,
}),
+
z.object({
id: z.string(),
event: z.literal("link.clicked"),
createdAt: z.string(),
data: clickWebhookEventSchema,
}),
+
z.object({
id: z.string(),
event: z.literal("lead.created"),
createdAt: z.string(),
data: leadWebhookEventSchema,
}),
+
z.object({
id: z.string(),
event: z.literal("sale.created"),