The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update customers.ts
Kiran Kd25731c4add5
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.tsindex 6c574e1497..58b6a6e6c2 100644--- a/apps/web/lib/zod/schemas/customers.ts+++ b/apps/web/lib/zod/schemas/customers.ts@@ -35,10 +35,6 @@ export const CustomerSchema = z.object({name: z.string().describe("Name of the customer."),email: z.string().nullish().describe("Email of the customer."),avatar: z.string().nullish().describe("Avatar URL of the customer."),- country: z- .string()- .nullish()- .describe("The 2-letter ISO 3166-1 country code of the customer."),createdAt: z.date().describe("The date the customer was created."),});@@ -117,7 +113,11 @@ export const customerActivityResponseSchema = z.object({timeToLead: z.number(),timeToSale: z.number().nullable(),activity: z.array(customerActivitySchema),- customer: CustomerSchema,+ customer: CustomerSchema.merge(+ z.object({+ country: z.string().nullish(),+ }),+ ),link: LinkSchema.pick({id: true,domain: true,