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.

fix build

Kiran K50cc7a25f7fe
diff --git a/apps/web/lib/zod/schemas/partner-profile.ts b/apps/web/lib/zod/schemas/partner-profile.ts
index fc1e6ddfe6..e9a73032e9 100644
--- a/apps/web/lib/zod/schemas/partner-profile.ts
+++ b/apps/web/lib/zod/schemas/partner-profile.ts
@@ -198,6 +198,7 @@ export const partnerProfileChangeHistoryLogSchema = z.array(
);
export const partnerProfilePayoutsQuerySchema = payoutsQuerySchema.extend({
+ programId: z.string().optional(),
sortBy: payoutsQuerySchema.shape.sortBy.default("initiatedAt"),
});
diff --git a/apps/web/lib/zod/schemas/payouts.ts b/apps/web/lib/zod/schemas/payouts.ts
index 968db13414..3a27fa2f5d 100644
--- a/apps/web/lib/zod/schemas/payouts.ts
+++ b/apps/web/lib/zod/schemas/payouts.ts
@@ -64,6 +64,7 @@ export const payoutsCountQuerySchema = payoutsQuerySchema
invoiceId: true,
})
.extend({
+ programId: z.string().optional(),
groupBy: z.enum(["status"]).optional(),
eligibility: z.enum(["eligible", "ineligible"]).optional(),
});