mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
26 lines
987 B
TypeScript
26 lines
987 B
TypeScript
import { z } from "zod";
|
|
|
|
import { ZTextFilterValue } from "@calcom/features/data-table/lib/types";
|
|
|
|
export const ZGetInputSchema = z.object({
|
|
filters: z.object({
|
|
teamIds: z.number().array().optional(),
|
|
userIds: z.number().array().optional(),
|
|
status: z.enum(["upcoming", "recurring", "past", "cancelled", "unconfirmed"]).optional(),
|
|
eventTypeIds: z.number().array().optional(),
|
|
attendeeEmail: z.union([z.string(), ZTextFilterValue]).optional(),
|
|
attendeeName: z.union([z.string(), ZTextFilterValue]).optional(),
|
|
bookingUid: z.string().optional(),
|
|
afterStartDate: z.string().optional(),
|
|
beforeEndDate: z.string().optional(),
|
|
afterUpdatedDate: z.string().optional(),
|
|
beforeUpdatedDate: z.string().optional(),
|
|
afterCreatedDate: z.string().optional(),
|
|
beforeCreatedDate: z.string().optional(),
|
|
}),
|
|
limit: z.number().min(1).max(100),
|
|
offset: z.number().default(0),
|
|
});
|
|
|
|
export type TGetInputSchema = z.infer<typeof ZGetInputSchema>;
|