changemaker.lite/api/dist/modules/map/shifts/shift-series.schemas.d.ts

108 lines
3.6 KiB
TypeScript

import { z } from 'zod';
export declare const createShiftSeriesSchema: z.ZodEffects<z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
startTime: z.ZodString;
endTime: z.ZodString;
location: z.ZodOptional<z.ZodString>;
maxVolunteers: z.ZodNumber;
isPublic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
cutId: z.ZodOptional<z.ZodString>;
frequency: z.ZodNativeEnum<{
DAILY: "DAILY";
WEEKLY: "WEEKLY";
MONTHLY: "MONTHLY";
}>;
daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
startDate: z.ZodString;
endDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
startDate: string;
isPublic: boolean;
startTime: string;
endTime: string;
maxVolunteers: number;
frequency: "DAILY" | "WEEKLY" | "MONTHLY";
location?: string | undefined;
endDate?: string | undefined;
description?: string | undefined;
cutId?: string | undefined;
daysOfWeek?: number[] | undefined;
}, {
title: string;
startDate: string;
startTime: string;
endTime: string;
maxVolunteers: number;
frequency: "DAILY" | "WEEKLY" | "MONTHLY";
location?: string | undefined;
endDate?: string | undefined;
description?: string | undefined;
isPublic?: boolean | undefined;
cutId?: string | undefined;
daysOfWeek?: number[] | undefined;
}>, {
title: string;
startDate: string;
isPublic: boolean;
startTime: string;
endTime: string;
maxVolunteers: number;
frequency: "DAILY" | "WEEKLY" | "MONTHLY";
location?: string | undefined;
endDate?: string | undefined;
description?: string | undefined;
cutId?: string | undefined;
daysOfWeek?: number[] | undefined;
}, {
title: string;
startDate: string;
startTime: string;
endTime: string;
maxVolunteers: number;
frequency: "DAILY" | "WEEKLY" | "MONTHLY";
location?: string | undefined;
endDate?: string | undefined;
description?: string | undefined;
isPublic?: boolean | undefined;
cutId?: string | undefined;
daysOfWeek?: number[] | undefined;
}>;
export declare const updateShiftSeriesSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
startTime: z.ZodOptional<z.ZodString>;
endTime: z.ZodOptional<z.ZodString>;
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
maxVolunteers: z.ZodOptional<z.ZodNumber>;
isPublic: z.ZodOptional<z.ZodBoolean>;
cutId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
editMode: z.ZodEnum<["THIS", "FUTURE", "ALL"]>;
fromDate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
editMode: "THIS" | "FUTURE" | "ALL";
location?: string | null | undefined;
title?: string | undefined;
description?: string | null | undefined;
isPublic?: boolean | undefined;
cutId?: string | null | undefined;
startTime?: string | undefined;
endTime?: string | undefined;
maxVolunteers?: number | undefined;
fromDate?: string | undefined;
}, {
editMode: "THIS" | "FUTURE" | "ALL";
location?: string | null | undefined;
title?: string | undefined;
description?: string | null | undefined;
isPublic?: boolean | undefined;
cutId?: string | null | undefined;
startTime?: string | undefined;
endTime?: string | undefined;
maxVolunteers?: number | undefined;
fromDate?: string | undefined;
}>;
export type CreateShiftSeriesInput = z.infer<typeof createShiftSeriesSchema>;
export type UpdateShiftSeriesInput = z.infer<typeof updateShiftSeriesSchema>;
//# sourceMappingURL=shift-series.schemas.d.ts.map