The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix Events SDK
Steven Teyc2c4ca710c74
diff --git a/apps/web/lib/zod/schemas/clicks.ts b/apps/web/lib/zod/schemas/clicks.tsindex 8d7735d95a..50b2047496 100644--- a/apps/web/lib/zod/schemas/clicks.ts+++ b/apps/web/lib/zod/schemas/clicks.ts@@ -31,7 +31,7 @@ export const clickEventSchemaTB = z.object({export const clickEventEnrichedSchema = z.object({- event: z.literal("click").default("click"),+ event: z.literal("click"),timestamp: z.string(),click_id: z.string(),link_id: z.string(),diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.tsindex c66c086655..951e020d78 100644--- a/apps/web/lib/zod/schemas/leads.ts+++ b/apps/web/lib/zod/schemas/leads.ts@@ -74,7 +74,7 @@ export const leadEventSchemaTB = clickEventSchemaTBexport const leadEventEnrichedSchema = z.object({- event: z.literal("lead").default("lead"),+ event: z.literal("lead"),timestamp: z.string(),event_id: z.string(),event_name: z.string(),diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 83a8d487a0..fc4ec83187 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -81,7 +81,7 @@ export const saleEventSchemaTB = clickEventSchemaTBexport const saleEventEnrichedSchema = z.object({- event: z.literal("sale").default("sale"),+ event: z.literal("sale"),timestamp: z.string(),event_id: z.string(),event_name: z.string(),