Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into customers

Steven Teyda9a4ac59b55
diff --cc apps/web/lib/analytics/get-events.ts
index e42c7b5072,bf74d41db9..545705b55f
--- a/apps/web/lib/analytics/get-events.ts
+++ b/apps/web/lib/analytics/get-events.ts
@@@ -10,8 -10,9 +10,9 @@@ import
clickEventSchema,
clickEventSchemaTBEndpoint,
} from "../zod/schemas/clicks";
-import { customerSchema } from "../zod/schemas/customers";
+import { CustomerSchema } from "../zod/schemas/customers";
import {
+ leadEventResponseObfuscatedSchema,
leadEventResponseSchema,
leadEventSchemaTBEndpoint,
} from "../zod/schemas/leads";
diff --cc apps/web/lib/types.ts
index fc600d2c59,e1cdafb694..94fcec6338
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@@ -272,6 -275,10 +278,12 @@@ export type TrackLeadResponse = z.infer
export type TrackSaleResponse = z.infer<typeof trackSaleResponseSchema>;
+export type Customer = z.infer<typeof CustomerSchema>;
+
export type UsageResponse = z.infer<typeof usageResponse>;
+
+ export type PartnerProps = z.infer<typeof PartnerSchema>;
+
+ export type ProgramProps = z.infer<typeof ProgramSchema>;
+
+ export type ProgramEnrollmentProps = z.infer<typeof ProgramEnrollmentSchema>;
diff --cc apps/web/lib/zod/schemas/leads.ts
index be6f607324,5c70293e09..3a280c3690
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@@ -1,8 -1,8 +1,8 @@@
import z from "@/lib/zod";
import { clickEventSchema, clickEventSchemaTB } from "./clicks";
-import { customerSchema } from "./customers";
+import { CustomerSchema } from "./customers";
import { commonDeprecatedEventFields } from "./deprecated";
- import { linkEventSchema } from "./links";
+ import { linkEventSchema, LinkSchema } from "./links";
export const trackLeadRequestSchema = z.object({
// Required
diff --cc apps/web/lib/zod/schemas/sales.ts
index f135369c73,b56a8f1062..27ccacbaca
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@@ -1,8 -1,8 +1,8 @@@
import z from "@/lib/zod";
import { clickEventSchema, clickEventSchemaTB } from "./clicks";
-import { customerSchema } from "./customers";
+import { CustomerSchema } from "./customers";
import { commonDeprecatedEventFields } from "./deprecated";
- import { linkEventSchema } from "./links";
+ import { linkEventSchema, LinkSchema } from "./links";
export const trackSaleRequestSchema = z.object({
// Required