school-schedule-sync
Version:
Synchronization between JSON schedule and Google Calendar
49 lines • 1.79 kB
TypeScript
import { z } from 'zod';
declare const lessonCalendarSchema: z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"lessons">;
days: z.ZodArray<z.ZodArray<z.ZodString>>;
lessonTimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
startTime: z.ZodString;
length: z.ZodNumber;
}, z.core.$strip>>>;
}, z.core.$strip>;
export type LessonCalendar = z.infer<typeof lessonCalendarSchema>;
declare const sectionCalendarSchema: z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"sections">;
days: z.ZodArray<z.ZodArray<z.ZodObject<{
startTime: z.ZodString;
length: z.ZodNumber;
name: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>;
export type SectionCalendar = z.infer<typeof sectionCalendarSchema>;
export declare const scheduleSchema: z.ZodObject<{
defaults: z.ZodObject<{
lessonTimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
startTime: z.ZodString;
length: z.ZodNumber;
}, z.core.$strip>>>;
}, z.core.$strip>;
calendars: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"lessons">;
days: z.ZodArray<z.ZodArray<z.ZodString>>;
lessonTimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
startTime: z.ZodString;
length: z.ZodNumber;
}, z.core.$strip>>>;
}, z.core.$strip>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"sections">;
days: z.ZodArray<z.ZodArray<z.ZodObject<{
startTime: z.ZodString;
length: z.ZodNumber;
name: z.ZodString;
}, z.core.$strip>>>;
}, z.core.$strip>]>>;
}, z.core.$strip>;
export type Schedule = z.infer<typeof scheduleSchema>;
export {};
//# sourceMappingURL=types.d.ts.map