The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add back deprecated fields
Steven Teyd862892929df
diff --git a/apps/web/lib/zod/schemas/discount.ts b/apps/web/lib/zod/schemas/discount.tsindex 923c2cc31c..29d89bf6c8 100644--- a/apps/web/lib/zod/schemas/discount.ts+++ b/apps/web/lib/zod/schemas/discount.ts@@ -10,6 +10,11 @@ export const DiscountSchema = z.object({couponId: z.string().nullable(),couponTestId: z.string().nullable(),partnersCount: z.number().nullish(),+ duration: z+ .number()+ .nullish()+ .describe("Deprecated: Use `maxDuration` instead"),+ interval: z.string().nullish().describe("Deprecated: Defaults to `month`"),});export const createDiscountSchema = z.object({