The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add user agent to clicks, leads, and sales TB endpoint schemas
Kiran Kcd4ab69f7487
diff --git a/apps/web/lib/zod/schemas/clicks.ts b/apps/web/lib/zod/schemas/clicks.tsindex ee52264116..b6e70bdef3 100644--- a/apps/web/lib/zod/schemas/clicks.ts+++ b/apps/web/lib/zod/schemas/clicks.ts@@ -49,6 +49,7 @@ export const clickEventSchemaTBEndpoint = z.object({device: z.string().nullable(),browser: z.string().nullable(),os: z.string().nullable(),+ ua: z.string().nullable(),trigger: z.string().nullish(), // backwards compatibilityreferer: z.string().nullable(),referer_url: z.string().nullable(),diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.tsindex 03e1f70bcc..278742b953 100644--- a/apps/web/lib/zod/schemas/leads.ts+++ b/apps/web/lib/zod/schemas/leads.ts@@ -121,6 +121,7 @@ export const leadEventSchemaTBEndpoint = z.object({device: z.string().nullable(),browser: z.string().nullable(),os: z.string().nullable(),+ ua: z.string().nullable(),trigger: z.string().nullish(), // backwards compatibilityreferer: z.string().nullable(),referer_url: z.string().nullable(),diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 5c50793cbc..9d191a8b76 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -164,6 +164,7 @@ export const saleEventSchemaTBEndpoint = z.object({device: z.string().nullable(),browser: z.string().nullable(),os: z.string().nullable(),+ ua: z.string().nullable(),trigger: z.string().nullish(), // backwards compatibilityreferer: z.string().nullable(),referer_url: z.string().nullable(),