The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update sales.ts
Steven Tey5375b5f951a2
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 5729809531..64ef7fd92f 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -25,11 +25,11 @@ export const trackSaleRequestSchema = z.object({.string().max(50).optional()- .default("Purchase completed")+ .default("Purchase").describe(- "The name of the sale event. It can be used to track different types of event for example 'Purchase completed', 'Subscription created', etc.",+ "The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', etc.",)- .openapi({ example: "Purchase completed" }),+ .openapi({ example: "Purchase" }),invoiceId: z.string().nullish()@@ -62,7 +62,7 @@ export const saleEventSchemaTB = clickEventSchemaTBz.object({timestamp: z.string().optional(), //autogenerated by Tinybirdevent_id: z.string(),- event_name: z.string().default("Purchase completed"),+ event_name: z.string().default("Purchase"),customer_id: z.string(),payment_processor: z.string(),amount: z.number(),