@aibrains/shared-types 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas/academics/assignment.schema.d.ts +12 -12
- package/dist/schemas/academics/attendance.schema.d.ts +10 -10
- package/dist/schemas/academics/classroom.schema.d.ts +10 -10
- package/dist/schemas/academics/course-offering.schema.d.ts +188 -0
- package/dist/schemas/academics/course-offering.schema.d.ts.map +1 -0
- package/dist/schemas/academics/course-offering.schema.js +74 -0
- package/dist/schemas/academics/course-offering.schema.js.map +1 -0
- package/dist/schemas/academics/course-section.schema.d.ts +64 -6
- package/dist/schemas/academics/course-section.schema.d.ts.map +1 -1
- package/dist/schemas/academics/course-section.schema.js +10 -0
- package/dist/schemas/academics/course-section.schema.js.map +1 -1
- package/dist/schemas/academics/grade.schema.d.ts +12 -12
- package/dist/schemas/academics/index.d.ts +1 -0
- package/dist/schemas/academics/index.d.ts.map +1 -1
- package/dist/schemas/academics/index.js +1 -0
- package/dist/schemas/academics/index.js.map +1 -1
- package/dist/schemas/enrollment/enrollment.schema.d.ts +8 -8
- package/dist/schemas/identity/academic-session.schema.d.ts +186 -0
- package/dist/schemas/identity/academic-session.schema.d.ts.map +1 -0
- package/dist/schemas/identity/academic-session.schema.js +70 -0
- package/dist/schemas/identity/academic-session.schema.js.map +1 -0
- package/dist/schemas/identity/academic-year.schema.d.ts +14 -0
- package/dist/schemas/identity/academic-year.schema.d.ts.map +1 -1
- package/dist/schemas/identity/academic-year.schema.js +3 -0
- package/dist/schemas/identity/academic-year.schema.js.map +1 -1
- package/dist/schemas/identity/calendar-date.schema.d.ts +30 -8
- package/dist/schemas/identity/calendar-date.schema.d.ts.map +1 -1
- package/dist/schemas/identity/calendar-date.schema.js +4 -0
- package/dist/schemas/identity/calendar-date.schema.js.map +1 -1
- package/dist/schemas/identity/calendar.schema.d.ts +155 -0
- package/dist/schemas/identity/calendar.schema.d.ts.map +1 -0
- package/dist/schemas/identity/calendar.schema.js +69 -0
- package/dist/schemas/identity/calendar.schema.js.map +1 -0
- package/dist/schemas/identity/class-period.schema.d.ts +216 -0
- package/dist/schemas/identity/class-period.schema.d.ts.map +1 -0
- package/dist/schemas/identity/class-period.schema.js +96 -0
- package/dist/schemas/identity/class-period.schema.js.map +1 -0
- package/dist/schemas/identity/index.d.ts +4 -0
- package/dist/schemas/identity/index.d.ts.map +1 -1
- package/dist/schemas/identity/index.js +5 -0
- package/dist/schemas/identity/index.js.map +1 -1
- package/dist/schemas/identity/location.schema.d.ts +194 -0
- package/dist/schemas/identity/location.schema.d.ts.map +1 -0
- package/dist/schemas/identity/location.schema.js +87 -0
- package/dist/schemas/identity/location.schema.js.map +1 -0
- package/package.json +1 -1
|
@@ -56,6 +56,7 @@ export declare const calendarDateSchema: z.ZodObject<{
|
|
|
56
56
|
endTime?: string | undefined;
|
|
57
57
|
isAllDay?: boolean | undefined;
|
|
58
58
|
}>, "many">;
|
|
59
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
59
60
|
isInstructionalDay: z.ZodBoolean;
|
|
60
61
|
isHoliday: z.ZodDefault<z.ZodBoolean>;
|
|
61
62
|
isWeekend: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -78,6 +79,7 @@ export declare const calendarDateSchema: z.ZodObject<{
|
|
|
78
79
|
notes?: string | undefined;
|
|
79
80
|
bellScheduleName?: string | undefined;
|
|
80
81
|
bellScheduleId?: string | undefined;
|
|
82
|
+
calendarId?: string | undefined;
|
|
81
83
|
isWeekend?: boolean | undefined;
|
|
82
84
|
gradingPeriodId?: string | undefined;
|
|
83
85
|
gradingPeriodName?: string | undefined;
|
|
@@ -94,6 +96,7 @@ export declare const calendarDateSchema: z.ZodObject<{
|
|
|
94
96
|
notes?: string | undefined;
|
|
95
97
|
bellScheduleName?: string | undefined;
|
|
96
98
|
bellScheduleId?: string | undefined;
|
|
99
|
+
calendarId?: string | undefined;
|
|
97
100
|
isHoliday?: boolean | undefined;
|
|
98
101
|
isWeekend?: boolean | undefined;
|
|
99
102
|
gradingPeriodId?: string | undefined;
|
|
@@ -121,6 +124,7 @@ export declare const createCalendarDateSchema: z.ZodObject<{
|
|
|
121
124
|
endTime?: string | undefined;
|
|
122
125
|
isAllDay?: boolean | undefined;
|
|
123
126
|
}>, "many">;
|
|
127
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
124
128
|
isInstructionalDay: z.ZodBoolean;
|
|
125
129
|
isHoliday: z.ZodDefault<z.ZodBoolean>;
|
|
126
130
|
isWeekend: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -143,6 +147,7 @@ export declare const createCalendarDateSchema: z.ZodObject<{
|
|
|
143
147
|
notes?: string | undefined;
|
|
144
148
|
bellScheduleName?: string | undefined;
|
|
145
149
|
bellScheduleId?: string | undefined;
|
|
150
|
+
calendarId?: string | undefined;
|
|
146
151
|
isWeekend?: boolean | undefined;
|
|
147
152
|
gradingPeriodId?: string | undefined;
|
|
148
153
|
gradingPeriodName?: string | undefined;
|
|
@@ -159,6 +164,7 @@ export declare const createCalendarDateSchema: z.ZodObject<{
|
|
|
159
164
|
notes?: string | undefined;
|
|
160
165
|
bellScheduleName?: string | undefined;
|
|
161
166
|
bellScheduleId?: string | undefined;
|
|
167
|
+
calendarId?: string | undefined;
|
|
162
168
|
isHoliday?: boolean | undefined;
|
|
163
169
|
isWeekend?: boolean | undefined;
|
|
164
170
|
gradingPeriodId?: string | undefined;
|
|
@@ -186,6 +192,7 @@ export declare const updateCalendarDateSchema: z.ZodObject<Omit<{
|
|
|
186
192
|
endTime?: string | undefined;
|
|
187
193
|
isAllDay?: boolean | undefined;
|
|
188
194
|
}>, "many">>;
|
|
195
|
+
calendarId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
189
196
|
isInstructionalDay: z.ZodOptional<z.ZodBoolean>;
|
|
190
197
|
isHoliday: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
191
198
|
isWeekend: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -198,6 +205,7 @@ export declare const updateCalendarDateSchema: z.ZodObject<Omit<{
|
|
|
198
205
|
notes?: string | undefined;
|
|
199
206
|
bellScheduleName?: string | undefined;
|
|
200
207
|
bellScheduleId?: string | undefined;
|
|
208
|
+
calendarId?: string | undefined;
|
|
201
209
|
calendarEvents?: {
|
|
202
210
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
203
211
|
isAllDay: boolean;
|
|
@@ -214,6 +222,7 @@ export declare const updateCalendarDateSchema: z.ZodObject<Omit<{
|
|
|
214
222
|
notes?: string | undefined;
|
|
215
223
|
bellScheduleName?: string | undefined;
|
|
216
224
|
bellScheduleId?: string | undefined;
|
|
225
|
+
calendarId?: string | undefined;
|
|
217
226
|
calendarEvents?: {
|
|
218
227
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
219
228
|
description?: string | undefined;
|
|
@@ -253,6 +262,7 @@ export declare const calendarDateResponseSchema: z.ZodObject<{
|
|
|
253
262
|
endTime?: string | undefined;
|
|
254
263
|
isAllDay?: boolean | undefined;
|
|
255
264
|
}>, "many">;
|
|
265
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
256
266
|
isInstructionalDay: z.ZodBoolean;
|
|
257
267
|
isHoliday: z.ZodBoolean;
|
|
258
268
|
isWeekend: z.ZodBoolean;
|
|
@@ -273,6 +283,7 @@ export declare const calendarDateResponseSchema: z.ZodObject<{
|
|
|
273
283
|
date: string;
|
|
274
284
|
schoolId: string;
|
|
275
285
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
286
|
+
academicYearId: string;
|
|
276
287
|
calendarEvents: {
|
|
277
288
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
278
289
|
isAllDay: boolean;
|
|
@@ -284,10 +295,10 @@ export declare const calendarDateResponseSchema: z.ZodObject<{
|
|
|
284
295
|
isHoliday: boolean;
|
|
285
296
|
isWeekend: boolean;
|
|
286
297
|
calendarDateId: string;
|
|
287
|
-
academicYearId: string;
|
|
288
298
|
notes?: string | undefined;
|
|
289
299
|
bellScheduleName?: string | undefined;
|
|
290
300
|
bellScheduleId?: string | undefined;
|
|
301
|
+
calendarId?: string | undefined;
|
|
291
302
|
gradingPeriodId?: string | undefined;
|
|
292
303
|
gradingPeriodName?: string | undefined;
|
|
293
304
|
dayNumber?: number | undefined;
|
|
@@ -299,6 +310,7 @@ export declare const calendarDateResponseSchema: z.ZodObject<{
|
|
|
299
310
|
date: string;
|
|
300
311
|
schoolId: string;
|
|
301
312
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
313
|
+
academicYearId: string;
|
|
302
314
|
calendarEvents: {
|
|
303
315
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
304
316
|
description?: string | undefined;
|
|
@@ -310,10 +322,10 @@ export declare const calendarDateResponseSchema: z.ZodObject<{
|
|
|
310
322
|
isHoliday: boolean;
|
|
311
323
|
isWeekend: boolean;
|
|
312
324
|
calendarDateId: string;
|
|
313
|
-
academicYearId: string;
|
|
314
325
|
notes?: string | undefined;
|
|
315
326
|
bellScheduleName?: string | undefined;
|
|
316
327
|
bellScheduleId?: string | undefined;
|
|
328
|
+
calendarId?: string | undefined;
|
|
317
329
|
gradingPeriodId?: string | undefined;
|
|
318
330
|
gradingPeriodName?: string | undefined;
|
|
319
331
|
dayNumber?: number | undefined;
|
|
@@ -346,6 +358,7 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
346
358
|
endTime?: string | undefined;
|
|
347
359
|
isAllDay?: boolean | undefined;
|
|
348
360
|
}>, "many">;
|
|
361
|
+
calendarId: z.ZodOptional<z.ZodString>;
|
|
349
362
|
isInstructionalDay: z.ZodBoolean;
|
|
350
363
|
isHoliday: z.ZodBoolean;
|
|
351
364
|
isWeekend: z.ZodBoolean;
|
|
@@ -366,6 +379,7 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
366
379
|
date: string;
|
|
367
380
|
schoolId: string;
|
|
368
381
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
382
|
+
academicYearId: string;
|
|
369
383
|
calendarEvents: {
|
|
370
384
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
371
385
|
isAllDay: boolean;
|
|
@@ -377,10 +391,10 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
377
391
|
isHoliday: boolean;
|
|
378
392
|
isWeekend: boolean;
|
|
379
393
|
calendarDateId: string;
|
|
380
|
-
academicYearId: string;
|
|
381
394
|
notes?: string | undefined;
|
|
382
395
|
bellScheduleName?: string | undefined;
|
|
383
396
|
bellScheduleId?: string | undefined;
|
|
397
|
+
calendarId?: string | undefined;
|
|
384
398
|
gradingPeriodId?: string | undefined;
|
|
385
399
|
gradingPeriodName?: string | undefined;
|
|
386
400
|
dayNumber?: number | undefined;
|
|
@@ -392,6 +406,7 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
392
406
|
date: string;
|
|
393
407
|
schoolId: string;
|
|
394
408
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
409
|
+
academicYearId: string;
|
|
395
410
|
calendarEvents: {
|
|
396
411
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
397
412
|
description?: string | undefined;
|
|
@@ -403,10 +418,10 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
403
418
|
isHoliday: boolean;
|
|
404
419
|
isWeekend: boolean;
|
|
405
420
|
calendarDateId: string;
|
|
406
|
-
academicYearId: string;
|
|
407
421
|
notes?: string | undefined;
|
|
408
422
|
bellScheduleName?: string | undefined;
|
|
409
423
|
bellScheduleId?: string | undefined;
|
|
424
|
+
calendarId?: string | undefined;
|
|
410
425
|
gradingPeriodId?: string | undefined;
|
|
411
426
|
gradingPeriodName?: string | undefined;
|
|
412
427
|
dayNumber?: number | undefined;
|
|
@@ -423,6 +438,7 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
423
438
|
date: string;
|
|
424
439
|
schoolId: string;
|
|
425
440
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
441
|
+
academicYearId: string;
|
|
426
442
|
calendarEvents: {
|
|
427
443
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
428
444
|
isAllDay: boolean;
|
|
@@ -434,10 +450,10 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
434
450
|
isHoliday: boolean;
|
|
435
451
|
isWeekend: boolean;
|
|
436
452
|
calendarDateId: string;
|
|
437
|
-
academicYearId: string;
|
|
438
453
|
notes?: string | undefined;
|
|
439
454
|
bellScheduleName?: string | undefined;
|
|
440
455
|
bellScheduleId?: string | undefined;
|
|
456
|
+
calendarId?: string | undefined;
|
|
441
457
|
gradingPeriodId?: string | undefined;
|
|
442
458
|
gradingPeriodName?: string | undefined;
|
|
443
459
|
dayNumber?: number | undefined;
|
|
@@ -454,6 +470,7 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
454
470
|
date: string;
|
|
455
471
|
schoolId: string;
|
|
456
472
|
dayOfWeek: "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
473
|
+
academicYearId: string;
|
|
457
474
|
calendarEvents: {
|
|
458
475
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
459
476
|
description?: string | undefined;
|
|
@@ -465,10 +482,10 @@ export declare const calendarDateListResponseSchema: z.ZodObject<{
|
|
|
465
482
|
isHoliday: boolean;
|
|
466
483
|
isWeekend: boolean;
|
|
467
484
|
calendarDateId: string;
|
|
468
|
-
academicYearId: string;
|
|
469
485
|
notes?: string | undefined;
|
|
470
486
|
bellScheduleName?: string | undefined;
|
|
471
487
|
bellScheduleId?: string | undefined;
|
|
488
|
+
calendarId?: string | undefined;
|
|
472
489
|
gradingPeriodId?: string | undefined;
|
|
473
490
|
gradingPeriodName?: string | undefined;
|
|
474
491
|
dayNumber?: number | undefined;
|
|
@@ -499,11 +516,11 @@ export declare const calendarDateFilterSchema: z.ZodObject<{
|
|
|
499
516
|
endDate?: string | undefined;
|
|
500
517
|
schoolId?: string | undefined;
|
|
501
518
|
year?: number | undefined;
|
|
519
|
+
academicYearId?: string | undefined;
|
|
502
520
|
eventType?: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day" | undefined;
|
|
503
521
|
isInstructionalDay?: boolean | undefined;
|
|
504
522
|
isHoliday?: boolean | undefined;
|
|
505
523
|
gradingPeriodId?: string | undefined;
|
|
506
|
-
academicYearId?: string | undefined;
|
|
507
524
|
month?: number | undefined;
|
|
508
525
|
}, {
|
|
509
526
|
limit?: number | undefined;
|
|
@@ -512,11 +529,11 @@ export declare const calendarDateFilterSchema: z.ZodObject<{
|
|
|
512
529
|
endDate?: string | undefined;
|
|
513
530
|
schoolId?: string | undefined;
|
|
514
531
|
year?: number | undefined;
|
|
532
|
+
academicYearId?: string | undefined;
|
|
515
533
|
eventType?: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day" | undefined;
|
|
516
534
|
isInstructionalDay?: boolean | undefined;
|
|
517
535
|
isHoliday?: boolean | undefined;
|
|
518
536
|
gradingPeriodId?: string | undefined;
|
|
519
|
-
academicYearId?: string | undefined;
|
|
520
537
|
month?: number | undefined;
|
|
521
538
|
}>;
|
|
522
539
|
export type CalendarDateFilterDto = z.infer<typeof calendarDateFilterSchema>;
|
|
@@ -656,6 +673,7 @@ export declare const bulkUpdateCalendarDatesSchema: z.ZodObject<{
|
|
|
656
673
|
endTime?: string | undefined;
|
|
657
674
|
isAllDay?: boolean | undefined;
|
|
658
675
|
}>, "many">>;
|
|
676
|
+
calendarId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
659
677
|
isInstructionalDay: z.ZodOptional<z.ZodBoolean>;
|
|
660
678
|
isHoliday: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
661
679
|
isWeekend: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -668,6 +686,7 @@ export declare const bulkUpdateCalendarDatesSchema: z.ZodObject<{
|
|
|
668
686
|
notes?: string | undefined;
|
|
669
687
|
bellScheduleName?: string | undefined;
|
|
670
688
|
bellScheduleId?: string | undefined;
|
|
689
|
+
calendarId?: string | undefined;
|
|
671
690
|
calendarEvents?: {
|
|
672
691
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
673
692
|
isAllDay: boolean;
|
|
@@ -684,6 +703,7 @@ export declare const bulkUpdateCalendarDatesSchema: z.ZodObject<{
|
|
|
684
703
|
notes?: string | undefined;
|
|
685
704
|
bellScheduleName?: string | undefined;
|
|
686
705
|
bellScheduleId?: string | undefined;
|
|
706
|
+
calendarId?: string | undefined;
|
|
687
707
|
calendarEvents?: {
|
|
688
708
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
689
709
|
description?: string | undefined;
|
|
@@ -703,6 +723,7 @@ export declare const bulkUpdateCalendarDatesSchema: z.ZodObject<{
|
|
|
703
723
|
notes?: string | undefined;
|
|
704
724
|
bellScheduleName?: string | undefined;
|
|
705
725
|
bellScheduleId?: string | undefined;
|
|
726
|
+
calendarId?: string | undefined;
|
|
706
727
|
calendarEvents?: {
|
|
707
728
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
708
729
|
isAllDay: boolean;
|
|
@@ -722,6 +743,7 @@ export declare const bulkUpdateCalendarDatesSchema: z.ZodObject<{
|
|
|
722
743
|
notes?: string | undefined;
|
|
723
744
|
bellScheduleName?: string | undefined;
|
|
724
745
|
bellScheduleId?: string | undefined;
|
|
746
|
+
calendarId?: string | undefined;
|
|
725
747
|
calendarEvents?: {
|
|
726
748
|
eventType: "break" | "other" | "early_release" | "late_start" | "instructional_day" | "non_instructional_day" | "holiday" | "teacher_only" | "student_holiday" | "weather_day" | "testing_day" | "conference_day" | "graduation" | "in_service" | "make_up_day";
|
|
727
749
|
description?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-date.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/identity/calendar-date.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,eAAO,MAAM,6BAA6B,qPAgBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,uBAAuB,2FAQlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAMnE,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"calendar-date.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/identity/calendar-date.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,eAAO,MAAM,6BAA6B,qPAgBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,uBAAuB,2FAQlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;A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anC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM7E;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BlC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMzE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAMvF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgChC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -61,6 +61,8 @@ exports.calendarDateSchema = zod_1.z.object({
|
|
|
61
61
|
// Ed-Fi Core
|
|
62
62
|
date: common_1.dateSchema, // Ed-Fi: date (YYYY-MM-DD)
|
|
63
63
|
calendarEvents: zod_1.z.array(exports.calendarEventSchema).min(1), // Ed-Fi: calendarEvents
|
|
64
|
+
// Calendar reference (Ed-Fi: CalendarDate → Calendar)
|
|
65
|
+
calendarId: zod_1.z.string().uuid().optional(),
|
|
64
66
|
// EdForge Extensions
|
|
65
67
|
isInstructionalDay: zod_1.z.boolean(),
|
|
66
68
|
isHoliday: zod_1.z.boolean().default(false),
|
|
@@ -96,6 +98,8 @@ exports.calendarDateResponseSchema = zod_1.z.object({
|
|
|
96
98
|
// Ed-Fi Core
|
|
97
99
|
date: zod_1.z.string(),
|
|
98
100
|
calendarEvents: zod_1.z.array(exports.calendarEventSchema),
|
|
101
|
+
// Calendar reference
|
|
102
|
+
calendarId: zod_1.z.string().uuid().optional(),
|
|
99
103
|
// EdForge Extensions
|
|
100
104
|
isInstructionalDay: zod_1.z.boolean(),
|
|
101
105
|
isHoliday: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-date.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/calendar-date.schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAwB;AACxB,sCAImB;AAEnB,+CAA+C;AAC/C,wBAAwB;AACxB,+CAA+C;AAE/C;;GAEG;AACU,QAAA,6BAA6B,GAAG,OAAC,CAAC,IAAI,CAAC;IAClD,mBAAmB,EAAQ,qBAAqB;IAChD,uBAAuB,EAAI,aAAa;IACxC,SAAS,EAAkB,mBAAmB;IAC9C,cAAc,EAAa,2BAA2B;IACtD,iBAAiB,EAAU,8BAA8B;IACzD,aAAa,EAAc,oBAAoB;IAC/C,aAAa,EAAc,uBAAuB;IAClD,eAAe,EAAY,gBAAgB;IAC3C,YAAY,EAAe,gBAAgB;IAC3C,gBAAgB,EAAW,6BAA6B;IACxD,YAAY,EAAe,sBAAsB;IACjD,OAAO,EAAoB,sBAAsB;IACjD,YAAY,EAAe,qBAAqB;IAChD,aAAa,EAAc,yBAAyB;IACpD,OAAO;CACR,CAAC,CAAC;AAGH;;GAEG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC5C,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAGH,+CAA+C;AAC/C,wBAAwB;AACxB,+CAA+C;AAElC,QAAA,mBAAmB,GA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C,CAAC,MAAM,EAAE;QAChB,SAAS,EAAE,qCAA6B;QACxC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACf,CAAC,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calendar Schemas - Identity Service
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for Ed-Fi Calendar entity.
|
|
5
|
+
* Ed-Fi: Calendar is an intermediary between School and CalendarDate.
|
|
6
|
+
* A school can have multiple calendars (Student, Teacher, IEP, etc.)
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
/**
|
|
10
|
+
* Calendar type descriptor (Ed-Fi: calendarTypeDescriptor)
|
|
11
|
+
*/
|
|
12
|
+
export declare const calendarTypeDescriptorSchema: z.ZodEnum<["student", "teacher", "IEP", "other"]>;
|
|
13
|
+
export type CalendarTypeDescriptor = z.infer<typeof calendarTypeDescriptorSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* Grade level descriptor for calendar association
|
|
16
|
+
*/
|
|
17
|
+
export declare const calendarGradeLevelSchema: z.ZodEnum<["PK", "KG", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]>;
|
|
18
|
+
export type CalendarGradeLevel = z.infer<typeof calendarGradeLevelSchema>;
|
|
19
|
+
export declare const createCalendarSchema: z.ZodObject<{
|
|
20
|
+
academicYearId: z.ZodString;
|
|
21
|
+
calendarCode: z.ZodString;
|
|
22
|
+
calendarTypeDescriptor: z.ZodEnum<["student", "teacher", "IEP", "other"]>;
|
|
23
|
+
gradeLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<["PK", "KG", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]>, "many">>;
|
|
24
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
isDefault: boolean;
|
|
27
|
+
academicYearId: string;
|
|
28
|
+
calendarCode: string;
|
|
29
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
30
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
academicYearId: string;
|
|
33
|
+
calendarCode: string;
|
|
34
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
35
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
36
|
+
isDefault?: boolean | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type CreateCalendarDto = z.infer<typeof createCalendarSchema>;
|
|
39
|
+
export declare const updateCalendarSchema: z.ZodObject<{
|
|
40
|
+
calendarCode: z.ZodOptional<z.ZodString>;
|
|
41
|
+
calendarTypeDescriptor: z.ZodOptional<z.ZodEnum<["student", "teacher", "IEP", "other"]>>;
|
|
42
|
+
gradeLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<["PK", "KG", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]>, "many">>;
|
|
43
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
46
|
+
isDefault?: boolean | undefined;
|
|
47
|
+
calendarCode?: string | undefined;
|
|
48
|
+
calendarTypeDescriptor?: "teacher" | "other" | "student" | "IEP" | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
51
|
+
isDefault?: boolean | undefined;
|
|
52
|
+
calendarCode?: string | undefined;
|
|
53
|
+
calendarTypeDescriptor?: "teacher" | "other" | "student" | "IEP" | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
export type UpdateCalendarDto = z.infer<typeof updateCalendarSchema>;
|
|
56
|
+
export declare const calendarResponseSchema: z.ZodObject<{
|
|
57
|
+
calendarId: z.ZodString;
|
|
58
|
+
schoolId: z.ZodString;
|
|
59
|
+
academicYearId: z.ZodString;
|
|
60
|
+
calendarCode: z.ZodString;
|
|
61
|
+
calendarTypeDescriptor: z.ZodEnum<["student", "teacher", "IEP", "other"]>;
|
|
62
|
+
gradeLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<["PK", "KG", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]>, "many">>;
|
|
63
|
+
isDefault: z.ZodBoolean;
|
|
64
|
+
createdAt: z.ZodString;
|
|
65
|
+
updatedAt: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
createdAt: string;
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
schoolId: string;
|
|
70
|
+
isDefault: boolean;
|
|
71
|
+
academicYearId: string;
|
|
72
|
+
calendarCode: string;
|
|
73
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
74
|
+
calendarId: string;
|
|
75
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
createdAt: string;
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
schoolId: string;
|
|
80
|
+
isDefault: boolean;
|
|
81
|
+
academicYearId: string;
|
|
82
|
+
calendarCode: string;
|
|
83
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
84
|
+
calendarId: string;
|
|
85
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
export type CalendarResponseDto = z.infer<typeof calendarResponseSchema>;
|
|
88
|
+
export declare const calendarListResponseSchema: z.ZodObject<{
|
|
89
|
+
items: z.ZodArray<z.ZodObject<{
|
|
90
|
+
calendarId: z.ZodString;
|
|
91
|
+
schoolId: z.ZodString;
|
|
92
|
+
academicYearId: z.ZodString;
|
|
93
|
+
calendarCode: z.ZodString;
|
|
94
|
+
calendarTypeDescriptor: z.ZodEnum<["student", "teacher", "IEP", "other"]>;
|
|
95
|
+
gradeLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<["PK", "KG", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]>, "many">>;
|
|
96
|
+
isDefault: z.ZodBoolean;
|
|
97
|
+
createdAt: z.ZodString;
|
|
98
|
+
updatedAt: z.ZodString;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
|
+
schoolId: string;
|
|
103
|
+
isDefault: boolean;
|
|
104
|
+
academicYearId: string;
|
|
105
|
+
calendarCode: string;
|
|
106
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
107
|
+
calendarId: string;
|
|
108
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
schoolId: string;
|
|
113
|
+
isDefault: boolean;
|
|
114
|
+
academicYearId: string;
|
|
115
|
+
calendarCode: string;
|
|
116
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
117
|
+
calendarId: string;
|
|
118
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
119
|
+
}>, "many">;
|
|
120
|
+
lastEvaluatedKey: z.ZodOptional<z.ZodString>;
|
|
121
|
+
hasMore: z.ZodBoolean;
|
|
122
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
items: {
|
|
125
|
+
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
schoolId: string;
|
|
128
|
+
isDefault: boolean;
|
|
129
|
+
academicYearId: string;
|
|
130
|
+
calendarCode: string;
|
|
131
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
132
|
+
calendarId: string;
|
|
133
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
hasMore: boolean;
|
|
136
|
+
lastEvaluatedKey?: string | undefined;
|
|
137
|
+
total?: number | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
items: {
|
|
140
|
+
createdAt: string;
|
|
141
|
+
updatedAt: string;
|
|
142
|
+
schoolId: string;
|
|
143
|
+
isDefault: boolean;
|
|
144
|
+
academicYearId: string;
|
|
145
|
+
calendarCode: string;
|
|
146
|
+
calendarTypeDescriptor: "teacher" | "other" | "student" | "IEP";
|
|
147
|
+
calendarId: string;
|
|
148
|
+
gradeLevels?: ("PK" | "10" | "11" | "12" | "KG" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09")[] | undefined;
|
|
149
|
+
}[];
|
|
150
|
+
hasMore: boolean;
|
|
151
|
+
lastEvaluatedKey?: string | undefined;
|
|
152
|
+
total?: number | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
export type CalendarListResponseDto = z.infer<typeof calendarListResponseSchema>;
|
|
155
|
+
//# sourceMappingURL=calendar.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/identity/calendar.schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AACH,eAAO,MAAM,4BAA4B,mDAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB,iGAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM1E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMrE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMrE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMzE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAC;AAChG,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Calendar Schemas - Identity Service
|
|
4
|
+
*
|
|
5
|
+
* Zod schemas for Ed-Fi Calendar entity.
|
|
6
|
+
* Ed-Fi: Calendar is an intermediary between School and CalendarDate.
|
|
7
|
+
* A school can have multiple calendars (Student, Teacher, IEP, etc.)
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.calendarListResponseSchema = exports.calendarResponseSchema = exports.updateCalendarSchema = exports.createCalendarSchema = exports.calendarGradeLevelSchema = exports.calendarTypeDescriptorSchema = void 0;
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
const common_1 = require("../common");
|
|
13
|
+
// ============================================
|
|
14
|
+
// Enums (Ed-Fi aligned)
|
|
15
|
+
// ============================================
|
|
16
|
+
/**
|
|
17
|
+
* Calendar type descriptor (Ed-Fi: calendarTypeDescriptor)
|
|
18
|
+
*/
|
|
19
|
+
exports.calendarTypeDescriptorSchema = zod_1.z.enum([
|
|
20
|
+
'student', // Standard student calendar
|
|
21
|
+
'teacher', // Teacher/staff calendar
|
|
22
|
+
'IEP', // Individualized Education Program
|
|
23
|
+
'other',
|
|
24
|
+
]);
|
|
25
|
+
/**
|
|
26
|
+
* Grade level descriptor for calendar association
|
|
27
|
+
*/
|
|
28
|
+
exports.calendarGradeLevelSchema = zod_1.z.enum([
|
|
29
|
+
'PK', 'KG', '01', '02', '03', '04', '05', '06',
|
|
30
|
+
'07', '08', '09', '10', '11', '12',
|
|
31
|
+
]);
|
|
32
|
+
// ============================================
|
|
33
|
+
// Create Calendar Schema
|
|
34
|
+
// ============================================
|
|
35
|
+
exports.createCalendarSchema = zod_1.z.object({
|
|
36
|
+
academicYearId: zod_1.z.string().uuid(),
|
|
37
|
+
calendarCode: zod_1.z.string().min(1).max(50), // e.g., "STUDENT-2026"
|
|
38
|
+
calendarTypeDescriptor: exports.calendarTypeDescriptorSchema,
|
|
39
|
+
gradeLevels: zod_1.z.array(exports.calendarGradeLevelSchema).optional(), // Ed-Fi: GradeLevel[]
|
|
40
|
+
isDefault: zod_1.z.boolean().default(false),
|
|
41
|
+
});
|
|
42
|
+
// ============================================
|
|
43
|
+
// Update Calendar Schema
|
|
44
|
+
// ============================================
|
|
45
|
+
exports.updateCalendarSchema = zod_1.z.object({
|
|
46
|
+
calendarCode: zod_1.z.string().min(1).max(50).optional(),
|
|
47
|
+
calendarTypeDescriptor: exports.calendarTypeDescriptorSchema.optional(),
|
|
48
|
+
gradeLevels: zod_1.z.array(exports.calendarGradeLevelSchema).optional(),
|
|
49
|
+
isDefault: zod_1.z.boolean().optional(),
|
|
50
|
+
});
|
|
51
|
+
// ============================================
|
|
52
|
+
// Calendar Response Schema
|
|
53
|
+
// ============================================
|
|
54
|
+
exports.calendarResponseSchema = zod_1.z.object({
|
|
55
|
+
calendarId: zod_1.z.string().uuid(),
|
|
56
|
+
schoolId: zod_1.z.string().uuid(),
|
|
57
|
+
academicYearId: zod_1.z.string().uuid(),
|
|
58
|
+
calendarCode: zod_1.z.string(),
|
|
59
|
+
calendarTypeDescriptor: exports.calendarTypeDescriptorSchema,
|
|
60
|
+
gradeLevels: zod_1.z.array(exports.calendarGradeLevelSchema).optional(),
|
|
61
|
+
isDefault: zod_1.z.boolean(),
|
|
62
|
+
createdAt: common_1.isoDateSchema,
|
|
63
|
+
updatedAt: common_1.isoDateSchema,
|
|
64
|
+
});
|
|
65
|
+
// ============================================
|
|
66
|
+
// Calendar List Response
|
|
67
|
+
// ============================================
|
|
68
|
+
exports.calendarListResponseSchema = (0, common_1.createPaginatedResponseSchema)(exports.calendarResponseSchema);
|
|
69
|
+
//# sourceMappingURL=calendar.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.schema.js","sourceRoot":"","sources":["../../../src/schemas/identity/calendar.schema.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,6BAAwB;AACxB,sCAAyE;AAEzE,+CAA+C;AAC/C,wBAAwB;AACxB,+CAA+C;AAE/C;;GAEG;AACU,QAAA,4BAA4B,GAAG,OAAC,CAAC,IAAI,CAAC;IACjD,SAAS,EAAM,4BAA4B;IAC3C,SAAS,EAAM,yBAAyB;IACxC,KAAK,EAAU,mCAAmC;IAClD,OAAO;CACR,CAAC,CA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