Began implementation for getting promotion history

This commit is contained in:
2025-12-16 22:28:32 -05:00
parent f9e5dacda8
commit 278690e094
8 changed files with 462 additions and 275 deletions

View File

@@ -6,7 +6,6 @@ export const batchPromotionMemberSchema = z.object({
start_date: z.string().refine((val) => !isNaN(Date.parse(val)), {
message: "Must be a valid date",
}),
reason: z.string({ required_error: "Reason is required" }).max(50, "Reason too long"),
});
export const batchPromotionSchema = z.object({
@@ -27,3 +26,7 @@ export const batchPromotionSchema = z.object({
}
});
});
export type BatchPromotion = z.infer<typeof batchPromotionSchema>;
export type BatchPromotionMember = z.infer<typeof batchPromotionMemberSchema>;