UNPKG

school-schedule-sync

Version:

Synchronization between JSON schedule and Google Calendar

58 lines 2.11 kB
import { z } from 'zod'; declare const eventSchema: z.ZodObject<{ startTime: z.ZodString; length: z.ZodNumber; name: z.ZodString; location: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type Event = z.infer<typeof eventSchema>; 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; location: z.ZodOptional<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; location: z.ZodOptional<z.ZodString>; }, z.core.$strip>>>; }, z.core.$strip>]>>; }, z.core.$strip>; export type Schedule = z.infer<typeof scheduleSchema>; export {}; //# sourceMappingURL=types.d.ts.map