The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
undo schema changes for now
Steven Tey14492aa2edc6
diff --git a/apps/web/lib/zod/schemas/clicks-analytics.ts b/apps/web/lib/zod/schemas/clicks-analytics.tsindex 047a510271..6f950f6e53 100644--- a/apps/web/lib/zod/schemas/clicks-analytics.ts+++ b/apps/web/lib/zod/schemas/clicks-analytics.ts@@ -1,5 +1,5 @@import z from "@/lib/zod";-import { CONTINENT_CODES, COUNTRY_CODES } from "@dub/utils";+import { COUNTRY_CODES } from "@dub/utils";// Click analytics response schemasexport const clickAnalyticsResponse = {@@ -16,16 +16,16 @@ export const clickAnalyticsResponse = {}).openapi({ ref: "ClicksTimeseries" }),- continents: z- .object({- continent: z- .enum(CONTINENT_CODES)- .describe(- "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",- ),- clicks: z.number().describe("The number of clicks from this continent"),- })- .openapi({ ref: "ClicksContinents" }),+ // continents: z+ // .object({+ // continent: z+ // .enum(CONTINENT_CODES)+ // .describe(+ // "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",+ // ),+ // clicks: z.number().describe("The number of clicks from this continent"),+ // })+ // .openapi({ ref: "ClicksContinents" }),countries: z.object({diff --git a/apps/web/lib/zod/schemas/composite-analytics.ts b/apps/web/lib/zod/schemas/composite-analytics.tsindex f5f7925739..165f59b2d8 100644--- a/apps/web/lib/zod/schemas/composite-analytics.ts+++ b/apps/web/lib/zod/schemas/composite-analytics.ts@@ -1,5 +1,5 @@import z from "@/lib/zod";-import { CONTINENT_CODES, COUNTRY_CODES } from "@dub/utils";+import { COUNTRY_CODES } from "@dub/utils";export const compositeAnalyticsResponse = {count: z.object({@@ -17,19 +17,19 @@ export const compositeAnalyticsResponse = {amount: z.number().describe("The total amount of sales in the interval"),}),- continents: z.object({- continent: z- .enum(CONTINENT_CODES)- .describe(- "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",- ),- clicks: z.number().describe("The number of clicks from this continent"),- leads: z.number().describe("The number of leads from this continent"),- sales: z.number().describe("The number of sales from this continent"),- amount: z- .number()- .describe("The total amount of sales from this continent"),- }),+ // continents: z.object({+ // continent: z+ // .enum(CONTINENT_CODES)+ // .describe(+ // "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",+ // ),+ // clicks: z.number().describe("The number of clicks from this continent"),+ // leads: z.number().describe("The number of leads from this continent"),+ // sales: z.number().describe("The number of sales from this continent"),+ // amount: z+ // .number()+ // .describe("The total amount of sales from this continent"),+ // }),countries: z.object({diff --git a/apps/web/lib/zod/schemas/leads-analytics.ts b/apps/web/lib/zod/schemas/leads-analytics.tsindex 6100df7ec3..de8e4eec2d 100644--- a/apps/web/lib/zod/schemas/leads-analytics.ts+++ b/apps/web/lib/zod/schemas/leads-analytics.ts@@ -1,5 +1,5 @@import z from "@/lib/zod";-import { CONTINENT_CODES, COUNTRY_CODES } from "@dub/utils";+import { COUNTRY_CODES } from "@dub/utils";export const leadAnalyticsResponse = {count: z@@ -15,16 +15,16 @@ export const leadAnalyticsResponse = {}).openapi({ ref: "LeadsTimeseries" }),- continents: z- .object({- continent: z- .enum(CONTINENT_CODES)- .describe(- "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",- ),- leads: z.number().describe("The number of leads from this continent"),- })- .openapi({ ref: "LeadsContinents" }),+ // continents: z+ // .object({+ // continent: z+ // .enum(CONTINENT_CODES)+ // .describe(+ // "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",+ // ),+ // leads: z.number().describe("The number of leads from this continent"),+ // })+ // .openapi({ ref: "LeadsContinents" }),countries: z.object({diff --git a/apps/web/lib/zod/schemas/sales-analytics.ts b/apps/web/lib/zod/schemas/sales-analytics.tsindex 4b6cecfa60..3a74ada69e 100644--- a/apps/web/lib/zod/schemas/sales-analytics.ts+++ b/apps/web/lib/zod/schemas/sales-analytics.ts@@ -1,5 +1,5 @@import z from "@/lib/zod";-import { CONTINENT_CODES, COUNTRY_CODES } from "@dub/utils";+import { COUNTRY_CODES } from "@dub/utils";export const saleAnalyticsResponse = {count: z@@ -17,16 +17,16 @@ export const saleAnalyticsResponse = {}).openapi({ ref: "SalesTimeseries" }),- continents: z- .object({- continent: z- .enum(CONTINENT_CODES)- .describe(- "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",- ),- sales: z.number().describe("The number of sales from this continent"),- })- .openapi({ ref: "SalesContinents" }),+ // continents: z+ // .object({+ // continent: z+ // .enum(CONTINENT_CODES)+ // .describe(+ // "The 2-letter ISO 3166-1 code representing the continent associated with the location of the user.",+ // ),+ // sales: z.number().describe("The number of sales from this continent"),+ // })+ // .openapi({ ref: "SalesContinents" }),countries: z.object({