chore(repo): initialize planarchy workspace

This commit is contained in:
2026-03-14 14:31:09 +01:00
commit dd55d0e78b
769 changed files with 166461 additions and 0 deletions
@@ -0,0 +1,25 @@
import { z } from "zod";
import { VacationType } from "../types/enums.js";
export const CreateVacationSchema = z
.object({
resourceId: z.string(),
type: z.nativeEnum(VacationType),
startDate: z.coerce.date(),
endDate: z.coerce.date(),
note: z.string().max(500).optional(),
})
.refine((d) => d.endDate >= d.startDate, {
message: "End date must be after start date",
path: ["endDate"],
});
export type CreateVacationInput = z.infer<typeof CreateVacationSchema>;
export const UpdateVacationStatusSchema = z.object({
id: z.string(),
status: z.enum(["APPROVED", "REJECTED", "CANCELLED"]),
note: z.string().max(500).optional(),
});
export type UpdateVacationStatusInput = z.infer<typeof UpdateVacationStatusSchema>;