Began implementation for getting promotion history
This commit is contained in:
@@ -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>;
|
||||
Reference in New Issue
Block a user