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 link-folders

Steven Teybc4502b1dbd2
diff --cc apps/web/lib/zod/schemas/programs.ts
index 1eb765eaa9,dec3b9936b..c4a0b9395f
--- a/apps/web/lib/zod/schemas/programs.ts
+++ b/apps/web/lib/zod/schemas/programs.ts
@@@ -42,11 -41,23 +42,24 @@@ export const createProgramSchema = z.ob
cookieLength: z.number().min(1).max(180),
domain: z.string().nullable(),
url: z.string().nullable(),
+ defaultFolderId: z.string().nullable(),
});
+ export const PartnerLinkSchema = LinkSchema.pick({
+ id: true,
+ domain: true,
+ key: true,
+ shortLink: true,
+ url: true,
+ clicks: true,
+ leads: true,
+ sales: true,
+ saleAmount: true,
+ });
+
export const ProgramEnrollmentSchema = z.object({
partnerId: z.string(),
+ tenantId: z.string().nullable(),
programId: z.string(),
program: ProgramSchema,
status: z.nativeEnum(ProgramEnrollmentStatus),