The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Remove old externalId prop from OpenAPI (but keep backwards compatibility)
Steven Tey151bb1ffdbad
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.tsindex d4f2e19879..1d4dd68c67 100644--- a/apps/web/lib/zod/schemas/leads.ts+++ b/apps/web/lib/zod/schemas/leads.ts@@ -70,13 +70,6 @@ export const trackLeadRequestSchema = z.object({.describe("Additional metadata to be stored with the lead event. Max 10,000 characters.",),- externalId: z- .string()- .trim()- .max(100)- .nullish()- .describe("Deprecated. Use `customerExternalId` instead.")- .openapi({ deprecated: true }),});export const trackLeadResponseSchema = z.object({diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 7b12e64b6e..88c0d07447 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -63,13 +63,6 @@ export const trackSaleRequestSchema = z.object({.describe("Additional metadata to be stored with the sale event. Max 10,000 characters when stringified.",),- externalId: z- .string()- .trim()- .max(100)- .nullish()- .describe("Deprecated. Use `customerExternalId` instead.")- .openapi({ deprecated: true }),});export const trackSaleResponseSchema = z.object({