The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Mark partner.application_submitted deprecated and keep flat socials in payload
Kiran K275b8392c0be
diff --git a/apps/web/lib/webhook/schemas.ts b/apps/web/lib/webhook/schemas.tsindex b6f6a7a3c6..d0fec36bbd 100644--- a/apps/web/lib/webhook/schemas.ts+++ b/apps/web/lib/webhook/schemas.ts@@ -156,7 +156,8 @@ export const webhookEventSchema = z}).meta({description:- "Triggered when a partner submits an application to join a program.",+ "Deprecated: Use `program_application.created` instead. Triggered when a partner submits an application to join a program.",+ deprecated: true,id: "ProgramApplicationSubmittedEvent",outputId: "ProgramApplicationSubmittedEvent",}),diff --git a/apps/web/lib/zod/schemas/program-application.ts b/apps/web/lib/zod/schemas/program-application.tsindex 9e5b6a5852..d16ed73f5b 100644--- a/apps/web/lib/zod/schemas/program-application.ts+++ b/apps/web/lib/zod/schemas/program-application.ts@@ -72,16 +72,7 @@ export const ProgramApplicationSchema = PartnerApplicationSchema.extend({// @deprecated Use programApplicationWebhookSchema instead. Kept for backward compatibility.export const partnerApplicationWebhookSchema = PartnerApplicationSchema;-export const programApplicationWebhookSchema = ProgramApplicationSchema.extend({- partner: ProgramApplicationSchema.shape.partner.omit({- website: true,- youtube: true,- twitter: true,- linkedin: true,- instagram: true,- tiktok: true,- }),-});+export const programApplicationWebhookSchema = ProgramApplicationSchema;export const getProgramApplicationsQuerySchema = getPartnersQuerySchema.pick({