The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
updated enriched schema
Steven Tey2d63fccd385a
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.tsindex 41d6a16f00..4e24808bf2 100644--- a/apps/web/lib/zod/schemas/leads.ts+++ b/apps/web/lib/zod/schemas/leads.ts@@ -73,13 +73,14 @@ export const leadEventSchemaTB = clickEventSchemaTBexport const leadEventEnrichedSchema = z.object({timestamp: z.string(),event_id: z.string(),+ event_name: z.string(),+ customer_name: z.string(),+ customer_email: z.string(),+ customer_avatar: z.string(),click_id: z.string(),link_id: z.string(),domain: z.string(),key: z.string(),- customer_id: z.string(),- event_name: z.string(),- metadata: z.string(),url: z.string(),country: z.string().nullable(),city: z.string().nullable(),@@ -87,4 +88,6 @@ export const leadEventEnrichedSchema = z.object({browser: z.string().nullable(),os: z.string().nullable(),referer: z.string().nullable(),+ qr: z.number().nullable(),+ ip: z.string().nullable(),});diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 0bfe1b1dd7..400be53e53 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -75,13 +75,16 @@ export const saleEventSchemaTB = clickEventSchemaTBexport const saleEventEnrichedSchema = z.object({timestamp: z.string(),event_id: z.string(),+ event_name: z.string(),+ customer_name: z.string(),+ customer_email: z.string(),+ customer_avatar: z.string(),+ payment_processor: z.string(),+ amount: z.number(),click_id: z.string(),link_id: z.string(),domain: z.string(),key: z.string(),- customer_id: z.string(),- payment_processor: z.string(),- amount: z.number(),url: z.string(),country: z.string().nullable(),city: z.string().nullable(),@@ -89,4 +92,6 @@ export const saleEventEnrichedSchema = z.object({browser: z.string().nullable(),os: z.string().nullable(),referer: z.string().nullable(),+ qr: z.number().nullable(),+ ip: z.string().nullable(),});