Files
calendar/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntriesList.schema.ts
78ddf71823 perf: Move OOO-related tRPC procedures to new routers (#20136)
* perf: Move OOO-related tRPC procedures to new routers

* Moved test file

* push fix for import path in tests

* fix trpc response url that we wait for

---------

Co-authored-by: sean-brydon <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: sean-brydon <[email protected]>
2025-03-21 09:03:10 -07:00

13 lines
448 B
TypeScript

import { z } from "zod";
export const ZOutOfOfficeEntriesListSchema = z.object({
limit: z.number().min(1).max(100),
cursor: z.number().nullish(),
fetchTeamMembersEntries: z.boolean().optional().default(false),
searchTerm: z.string().optional(),
endDateFilterStartRange: z.string().optional(),
endDateFilterEndRange: z.string().optional(),
});
export type TOutOfOfficeEntriesListSchema = z.infer<typeof ZOutOfOfficeEntriesListSchema>;