@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.
Files changed (46) hide show
  1. package/dist/schemas/academics/assignment.schema.d.ts +12 -12
  2. package/dist/schemas/academics/attendance.schema.d.ts +10 -10
  3. package/dist/schemas/academics/classroom.schema.d.ts +10 -10
  4. package/dist/schemas/academics/course-offering.schema.d.ts +188 -0
  5. package/dist/schemas/academics/course-offering.schema.d.ts.map +1 -0
  6. package/dist/schemas/academics/course-offering.schema.js +74 -0
  7. package/dist/schemas/academics/course-offering.schema.js.map +1 -0
  8. package/dist/schemas/academics/course-section.schema.d.ts +64 -6
  9. package/dist/schemas/academics/course-section.schema.d.ts.map +1 -1
  10. package/dist/schemas/academics/course-section.schema.js +10 -0
  11. package/dist/schemas/academics/course-section.schema.js.map +1 -1
  12. package/dist/schemas/academics/grade.schema.d.ts +12 -12
  13. package/dist/schemas/academics/index.d.ts +1 -0
  14. package/dist/schemas/academics/index.d.ts.map +1 -1
  15. package/dist/schemas/academics/index.js +1 -0
  16. package/dist/schemas/academics/index.js.map +1 -1
  17. package/dist/schemas/enrollment/enrollment.schema.d.ts +8 -8
  18. package/dist/schemas/identity/academic-session.schema.d.ts +186 -0
  19. package/dist/schemas/identity/academic-session.schema.d.ts.map +1 -0
  20. package/dist/schemas/identity/academic-session.schema.js +70 -0
  21. package/dist/schemas/identity/academic-session.schema.js.map +1 -0
  22. package/dist/schemas/identity/academic-year.schema.d.ts +14 -0
  23. package/dist/schemas/identity/academic-year.schema.d.ts.map +1 -1
  24. package/dist/schemas/identity/academic-year.schema.js +3 -0
  25. package/dist/schemas/identity/academic-year.schema.js.map +1 -1
  26. package/dist/schemas/identity/calendar-date.schema.d.ts +30 -8
  27. package/dist/schemas/identity/calendar-date.schema.d.ts.map +1 -1
  28. package/dist/schemas/identity/calendar-date.schema.js +4 -0
  29. package/dist/schemas/identity/calendar-date.schema.js.map +1 -1
  30. package/dist/schemas/identity/calendar.schema.d.ts +155 -0
  31. package/dist/schemas/identity/calendar.schema.d.ts.map +1 -0
  32. package/dist/schemas/identity/calendar.schema.js +69 -0
  33. package/dist/schemas/identity/calendar.schema.js.map +1 -0
  34. package/dist/schemas/identity/class-period.schema.d.ts +216 -0
  35. package/dist/schemas/identity/class-period.schema.d.ts.map +1 -0
  36. package/dist/schemas/identity/class-period.schema.js +96 -0
  37. package/dist/schemas/identity/class-period.schema.js.map +1 -0
  38. package/dist/schemas/identity/index.d.ts +4 -0
  39. package/dist/schemas/identity/index.d.ts.map +1 -1
  40. package/dist/schemas/identity/index.js +5 -0
  41. package/dist/schemas/identity/index.js.map +1 -1
  42. package/dist/schemas/identity/location.schema.d.ts +194 -0
  43. package/dist/schemas/identity/location.schema.d.ts.map +1 -0
  44. package/dist/schemas/identity/location.schema.js +87 -0
  45. package/dist/schemas/identity/location.schema.js.map +1 -0
  46. package/package.json +1 -1
@@ -324,7 +324,7 @@ export declare const createAssignmentSchema: z.ZodObject<{
324
324
  anonymousGrading: boolean;
325
325
  description?: string | undefined;
326
326
  gradingPeriodId?: string | undefined;
327
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
327
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
328
328
  categoryId?: string | undefined;
329
329
  instructions?: string | undefined;
330
330
  allowedFileTypes?: string[] | undefined;
@@ -370,7 +370,7 @@ export declare const createAssignmentSchema: z.ZodObject<{
370
370
  status?: "archived" | "closed" | "draft" | "published" | undefined;
371
371
  description?: string | undefined;
372
372
  gradingPeriodId?: string | undefined;
373
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
373
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
374
374
  isExtraCredit?: boolean | undefined;
375
375
  categoryId?: string | undefined;
376
376
  instructions?: string | undefined;
@@ -560,7 +560,7 @@ export declare const updateAssignmentSchema: z.ZodObject<Omit<{
560
560
  title?: string | undefined;
561
561
  description?: string | undefined;
562
562
  gradingPeriodId?: string | undefined;
563
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
563
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
564
564
  isExtraCredit?: boolean | undefined;
565
565
  pointsPossible?: number | undefined;
566
566
  categoryId?: string | undefined;
@@ -613,7 +613,7 @@ export declare const updateAssignmentSchema: z.ZodObject<Omit<{
613
613
  title?: string | undefined;
614
614
  description?: string | undefined;
615
615
  gradingPeriodId?: string | undefined;
616
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
616
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
617
617
  isExtraCredit?: boolean | undefined;
618
618
  pointsPossible?: number | undefined;
619
619
  categoryId?: string | undefined;
@@ -836,7 +836,7 @@ export declare const assignmentResponseSchema: z.ZodObject<{
836
836
  gradingPeriodId?: string | undefined;
837
837
  classroomName?: string | undefined;
838
838
  totalStudents?: number | undefined;
839
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
839
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
840
840
  categoryId?: string | undefined;
841
841
  categoryName?: string | undefined;
842
842
  instructions?: string | undefined;
@@ -901,7 +901,7 @@ export declare const assignmentResponseSchema: z.ZodObject<{
901
901
  gradingPeriodId?: string | undefined;
902
902
  classroomName?: string | undefined;
903
903
  totalStudents?: number | undefined;
904
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
904
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
905
905
  categoryId?: string | undefined;
906
906
  categoryName?: string | undefined;
907
907
  instructions?: string | undefined;
@@ -1118,7 +1118,7 @@ export declare const assignmentListResponseSchema: z.ZodObject<{
1118
1118
  gradingPeriodId?: string | undefined;
1119
1119
  classroomName?: string | undefined;
1120
1120
  totalStudents?: number | undefined;
1121
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1121
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1122
1122
  categoryId?: string | undefined;
1123
1123
  categoryName?: string | undefined;
1124
1124
  instructions?: string | undefined;
@@ -1183,7 +1183,7 @@ export declare const assignmentListResponseSchema: z.ZodObject<{
1183
1183
  gradingPeriodId?: string | undefined;
1184
1184
  classroomName?: string | undefined;
1185
1185
  totalStudents?: number | undefined;
1186
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1186
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1187
1187
  categoryId?: string | undefined;
1188
1188
  categoryName?: string | undefined;
1189
1189
  instructions?: string | undefined;
@@ -1253,7 +1253,7 @@ export declare const assignmentListResponseSchema: z.ZodObject<{
1253
1253
  gradingPeriodId?: string | undefined;
1254
1254
  classroomName?: string | undefined;
1255
1255
  totalStudents?: number | undefined;
1256
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1256
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1257
1257
  categoryId?: string | undefined;
1258
1258
  categoryName?: string | undefined;
1259
1259
  instructions?: string | undefined;
@@ -1323,7 +1323,7 @@ export declare const assignmentListResponseSchema: z.ZodObject<{
1323
1323
  gradingPeriodId?: string | undefined;
1324
1324
  classroomName?: string | undefined;
1325
1325
  totalStudents?: number | undefined;
1326
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1326
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1327
1327
  categoryId?: string | undefined;
1328
1328
  categoryName?: string | undefined;
1329
1329
  instructions?: string | undefined;
@@ -1384,7 +1384,7 @@ export declare const assignmentFilterSchema: z.ZodObject<{
1384
1384
  gradingPeriodId?: string | undefined;
1385
1385
  searchTerm?: string | undefined;
1386
1386
  classroomId?: string | undefined;
1387
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1387
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1388
1388
  categoryId?: string | undefined;
1389
1389
  dueDateFrom?: string | undefined;
1390
1390
  dueDateTo?: string | undefined;
@@ -1393,7 +1393,7 @@ export declare const assignmentFilterSchema: z.ZodObject<{
1393
1393
  gradingPeriodId?: string | undefined;
1394
1394
  searchTerm?: string | undefined;
1395
1395
  classroomId?: string | undefined;
1396
- categoryType?: "other" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "lab" | "presentation" | undefined;
1396
+ categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
1397
1397
  categoryId?: string | undefined;
1398
1398
  dueDateFrom?: string | undefined;
1399
1399
  dueDateTo?: string | undefined;
@@ -42,12 +42,12 @@ export declare const createAttendanceSchema: z.ZodObject<{
42
42
  notes?: string | undefined;
43
43
  periodNumber?: number | undefined;
44
44
  academicYearId?: string | undefined;
45
+ periodId?: string | undefined;
45
46
  classroomId?: string | undefined;
46
47
  checkInTime?: string | undefined;
47
48
  checkOutTime?: string | undefined;
48
49
  minutesLate?: number | undefined;
49
50
  minutesEarly?: number | undefined;
50
- periodId?: string | undefined;
51
51
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
52
52
  excuseReason?: string | undefined;
53
53
  excuseDocumentUrl?: string | undefined;
@@ -60,12 +60,12 @@ export declare const createAttendanceSchema: z.ZodObject<{
60
60
  notes?: string | undefined;
61
61
  periodNumber?: number | undefined;
62
62
  academicYearId?: string | undefined;
63
+ periodId?: string | undefined;
63
64
  classroomId?: string | undefined;
64
65
  checkInTime?: string | undefined;
65
66
  checkOutTime?: string | undefined;
66
67
  minutesLate?: number | undefined;
67
68
  minutesEarly?: number | undefined;
68
- periodId?: string | undefined;
69
69
  attendanceType?: "daily" | "period" | "event" | undefined;
70
70
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
71
71
  excuseReason?: string | undefined;
@@ -101,12 +101,12 @@ export declare const updateAttendanceSchema: z.ZodObject<Omit<{
101
101
  notes?: string | undefined;
102
102
  periodNumber?: number | undefined;
103
103
  academicYearId?: string | undefined;
104
+ periodId?: string | undefined;
104
105
  classroomId?: string | undefined;
105
106
  checkInTime?: string | undefined;
106
107
  checkOutTime?: string | undefined;
107
108
  minutesLate?: number | undefined;
108
109
  minutesEarly?: number | undefined;
109
- periodId?: string | undefined;
110
110
  attendanceType?: "daily" | "period" | "event" | undefined;
111
111
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
112
112
  excuseReason?: string | undefined;
@@ -119,12 +119,12 @@ export declare const updateAttendanceSchema: z.ZodObject<Omit<{
119
119
  notes?: string | undefined;
120
120
  periodNumber?: number | undefined;
121
121
  academicYearId?: string | undefined;
122
+ periodId?: string | undefined;
122
123
  classroomId?: string | undefined;
123
124
  checkInTime?: string | undefined;
124
125
  checkOutTime?: string | undefined;
125
126
  minutesLate?: number | undefined;
126
127
  minutesEarly?: number | undefined;
127
- periodId?: string | undefined;
128
128
  attendanceType?: "daily" | "period" | "event" | undefined;
129
129
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
130
130
  excuseReason?: string | undefined;
@@ -181,13 +181,13 @@ export declare const attendanceResponseSchema: z.ZodObject<{
181
181
  periodNumber?: number | undefined;
182
182
  dayOfWeek?: number | undefined;
183
183
  academicYearId?: string | undefined;
184
+ periodId?: string | undefined;
184
185
  studentNumber?: string | undefined;
185
186
  classroomId?: string | undefined;
186
187
  checkInTime?: string | undefined;
187
188
  checkOutTime?: string | undefined;
188
189
  minutesLate?: number | undefined;
189
190
  minutesEarly?: number | undefined;
190
- periodId?: string | undefined;
191
191
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
192
192
  excuseReason?: string | undefined;
193
193
  excuseDocumentUrl?: string | undefined;
@@ -211,13 +211,13 @@ export declare const attendanceResponseSchema: z.ZodObject<{
211
211
  periodNumber?: number | undefined;
212
212
  dayOfWeek?: number | undefined;
213
213
  academicYearId?: string | undefined;
214
+ periodId?: string | undefined;
214
215
  studentNumber?: string | undefined;
215
216
  classroomId?: string | undefined;
216
217
  checkInTime?: string | undefined;
217
218
  checkOutTime?: string | undefined;
218
219
  minutesLate?: number | undefined;
219
220
  minutesEarly?: number | undefined;
220
- periodId?: string | undefined;
221
221
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
222
222
  excuseReason?: string | undefined;
223
223
  excuseDocumentUrl?: string | undefined;
@@ -274,13 +274,13 @@ export declare const attendanceListResponseSchema: z.ZodObject<{
274
274
  periodNumber?: number | undefined;
275
275
  dayOfWeek?: number | undefined;
276
276
  academicYearId?: string | undefined;
277
+ periodId?: string | undefined;
277
278
  studentNumber?: string | undefined;
278
279
  classroomId?: string | undefined;
279
280
  checkInTime?: string | undefined;
280
281
  checkOutTime?: string | undefined;
281
282
  minutesLate?: number | undefined;
282
283
  minutesEarly?: number | undefined;
283
- periodId?: string | undefined;
284
284
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
285
285
  excuseReason?: string | undefined;
286
286
  excuseDocumentUrl?: string | undefined;
@@ -304,13 +304,13 @@ export declare const attendanceListResponseSchema: z.ZodObject<{
304
304
  periodNumber?: number | undefined;
305
305
  dayOfWeek?: number | undefined;
306
306
  academicYearId?: string | undefined;
307
+ periodId?: string | undefined;
307
308
  studentNumber?: string | undefined;
308
309
  classroomId?: string | undefined;
309
310
  checkInTime?: string | undefined;
310
311
  checkOutTime?: string | undefined;
311
312
  minutesLate?: number | undefined;
312
313
  minutesEarly?: number | undefined;
313
- periodId?: string | undefined;
314
314
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
315
315
  excuseReason?: string | undefined;
316
316
  excuseDocumentUrl?: string | undefined;
@@ -339,13 +339,13 @@ export declare const attendanceListResponseSchema: z.ZodObject<{
339
339
  periodNumber?: number | undefined;
340
340
  dayOfWeek?: number | undefined;
341
341
  academicYearId?: string | undefined;
342
+ periodId?: string | undefined;
342
343
  studentNumber?: string | undefined;
343
344
  classroomId?: string | undefined;
344
345
  checkInTime?: string | undefined;
345
346
  checkOutTime?: string | undefined;
346
347
  minutesLate?: number | undefined;
347
348
  minutesEarly?: number | undefined;
348
- periodId?: string | undefined;
349
349
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
350
350
  excuseReason?: string | undefined;
351
351
  excuseDocumentUrl?: string | undefined;
@@ -374,13 +374,13 @@ export declare const attendanceListResponseSchema: z.ZodObject<{
374
374
  periodNumber?: number | undefined;
375
375
  dayOfWeek?: number | undefined;
376
376
  academicYearId?: string | undefined;
377
+ periodId?: string | undefined;
377
378
  studentNumber?: string | undefined;
378
379
  classroomId?: string | undefined;
379
380
  checkInTime?: string | undefined;
380
381
  checkOutTime?: string | undefined;
381
382
  minutesLate?: number | undefined;
382
383
  minutesEarly?: number | undefined;
383
- periodId?: string | undefined;
384
384
  excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
385
385
  excuseReason?: string | undefined;
386
386
  excuseDocumentUrl?: string | undefined;
@@ -128,12 +128,12 @@ export declare const createClassroomSchema: z.ZodObject<{
128
128
  termId?: string | undefined;
129
129
  description?: string | undefined;
130
130
  departmentId?: string | undefined;
131
+ capacity?: number | undefined;
131
132
  room?: string | undefined;
132
133
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
133
134
  section?: string | undefined;
134
135
  coTeacherIds?: string[] | undefined;
135
136
  building?: string | undefined;
136
- capacity?: number | undefined;
137
137
  virtualMeetingUrl?: string | undefined;
138
138
  courseCode?: string | undefined;
139
139
  credits?: number | undefined;
@@ -157,12 +157,12 @@ export declare const createClassroomSchema: z.ZodObject<{
157
157
  termId?: string | undefined;
158
158
  description?: string | undefined;
159
159
  departmentId?: string | undefined;
160
+ capacity?: number | undefined;
160
161
  room?: string | undefined;
161
162
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
162
163
  section?: string | undefined;
163
164
  coTeacherIds?: string[] | undefined;
164
165
  building?: string | undefined;
165
- capacity?: number | undefined;
166
166
  allowSelfEnrollment?: boolean | undefined;
167
167
  isVirtual?: boolean | undefined;
168
168
  virtualMeetingUrl?: string | undefined;
@@ -236,6 +236,7 @@ export declare const updateClassroomSchema: z.ZodObject<Omit<{
236
236
  termId?: string | undefined;
237
237
  description?: string | undefined;
238
238
  departmentId?: string | undefined;
239
+ capacity?: number | undefined;
239
240
  gradeLevel?: string | undefined;
240
241
  subject?: string | undefined;
241
242
  room?: string | undefined;
@@ -244,7 +245,6 @@ export declare const updateClassroomSchema: z.ZodObject<Omit<{
244
245
  primaryTeacherId?: string | undefined;
245
246
  coTeacherIds?: string[] | undefined;
246
247
  building?: string | undefined;
247
- capacity?: number | undefined;
248
248
  schedule?: {
249
249
  startTime: string;
250
250
  endTime: string;
@@ -265,6 +265,7 @@ export declare const updateClassroomSchema: z.ZodObject<Omit<{
265
265
  termId?: string | undefined;
266
266
  description?: string | undefined;
267
267
  departmentId?: string | undefined;
268
+ capacity?: number | undefined;
268
269
  gradeLevel?: string | undefined;
269
270
  subject?: string | undefined;
270
271
  room?: string | undefined;
@@ -273,7 +274,6 @@ export declare const updateClassroomSchema: z.ZodObject<Omit<{
273
274
  primaryTeacherId?: string | undefined;
274
275
  coTeacherIds?: string[] | undefined;
275
276
  building?: string | undefined;
276
- capacity?: number | undefined;
277
277
  schedule?: {
278
278
  startTime: string;
279
279
  endTime: string;
@@ -384,12 +384,12 @@ export declare const classroomResponseSchema: z.ZodObject<{
384
384
  termId?: string | undefined;
385
385
  description?: string | undefined;
386
386
  departmentId?: string | undefined;
387
+ capacity?: number | undefined;
387
388
  room?: string | undefined;
388
389
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
389
390
  section?: string | undefined;
390
391
  coTeacherIds?: string[] | undefined;
391
392
  building?: string | undefined;
392
- capacity?: number | undefined;
393
393
  virtualMeetingUrl?: string | undefined;
394
394
  courseCode?: string | undefined;
395
395
  credits?: number | undefined;
@@ -423,12 +423,12 @@ export declare const classroomResponseSchema: z.ZodObject<{
423
423
  termId?: string | undefined;
424
424
  description?: string | undefined;
425
425
  departmentId?: string | undefined;
426
+ capacity?: number | undefined;
426
427
  room?: string | undefined;
427
428
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
428
429
  section?: string | undefined;
429
430
  coTeacherIds?: string[] | undefined;
430
431
  building?: string | undefined;
431
- capacity?: number | undefined;
432
432
  virtualMeetingUrl?: string | undefined;
433
433
  courseCode?: string | undefined;
434
434
  credits?: number | undefined;
@@ -532,12 +532,12 @@ export declare const classroomListResponseSchema: z.ZodObject<{
532
532
  termId?: string | undefined;
533
533
  description?: string | undefined;
534
534
  departmentId?: string | undefined;
535
+ capacity?: number | undefined;
535
536
  room?: string | undefined;
536
537
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
537
538
  section?: string | undefined;
538
539
  coTeacherIds?: string[] | undefined;
539
540
  building?: string | undefined;
540
- capacity?: number | undefined;
541
541
  virtualMeetingUrl?: string | undefined;
542
542
  courseCode?: string | undefined;
543
543
  credits?: number | undefined;
@@ -571,12 +571,12 @@ export declare const classroomListResponseSchema: z.ZodObject<{
571
571
  termId?: string | undefined;
572
572
  description?: string | undefined;
573
573
  departmentId?: string | undefined;
574
+ capacity?: number | undefined;
574
575
  room?: string | undefined;
575
576
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
576
577
  section?: string | undefined;
577
578
  coTeacherIds?: string[] | undefined;
578
579
  building?: string | undefined;
579
- capacity?: number | undefined;
580
580
  virtualMeetingUrl?: string | undefined;
581
581
  courseCode?: string | undefined;
582
582
  credits?: number | undefined;
@@ -615,12 +615,12 @@ export declare const classroomListResponseSchema: z.ZodObject<{
615
615
  termId?: string | undefined;
616
616
  description?: string | undefined;
617
617
  departmentId?: string | undefined;
618
+ capacity?: number | undefined;
618
619
  room?: string | undefined;
619
620
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
620
621
  section?: string | undefined;
621
622
  coTeacherIds?: string[] | undefined;
622
623
  building?: string | undefined;
623
- capacity?: number | undefined;
624
624
  virtualMeetingUrl?: string | undefined;
625
625
  courseCode?: string | undefined;
626
626
  credits?: number | undefined;
@@ -659,12 +659,12 @@ export declare const classroomListResponseSchema: z.ZodObject<{
659
659
  termId?: string | undefined;
660
660
  description?: string | undefined;
661
661
  departmentId?: string | undefined;
662
+ capacity?: number | undefined;
662
663
  room?: string | undefined;
663
664
  subjectArea?: "other" | "mathematics" | "science" | "english_language_arts" | "social_studies" | "foreign_language" | "physical_education" | "music" | "art" | "technology" | "elective" | undefined;
664
665
  section?: string | undefined;
665
666
  coTeacherIds?: string[] | undefined;
666
667
  building?: string | undefined;
667
- capacity?: number | undefined;
668
668
  virtualMeetingUrl?: string | undefined;
669
669
  courseCode?: string | undefined;
670
670
  credits?: number | undefined;
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Course Offering Schemas - Academics Service
3
+ *
4
+ * Zod schemas for CourseOffering entity management.
5
+ * Ed-Fi: CourseOffering represents a Course offered in a specific
6
+ * Session (academic term) at a school. This is the bridge between
7
+ * Course (catalog) and Section (scheduled class instance).
8
+ *
9
+ * Chain: Course → CourseOffering → Section
10
+ *
11
+ * @see https://api.ed-fi.org/v7.1/docs/swagger/index.html - CourseOffering
12
+ */
13
+ import { z } from 'zod';
14
+ export declare const createCourseOfferingSchema: z.ZodObject<{
15
+ courseId: z.ZodString;
16
+ academicSessionId: z.ZodString;
17
+ schoolId: z.ZodString;
18
+ localCourseCode: z.ZodOptional<z.ZodString>;
19
+ localCourseTitle: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ schoolId: string;
22
+ academicSessionId: string;
23
+ courseId: string;
24
+ localCourseCode?: string | undefined;
25
+ localCourseTitle?: string | undefined;
26
+ }, {
27
+ schoolId: string;
28
+ academicSessionId: string;
29
+ courseId: string;
30
+ localCourseCode?: string | undefined;
31
+ localCourseTitle?: string | undefined;
32
+ }>;
33
+ export type CreateCourseOfferingDto = z.infer<typeof createCourseOfferingSchema>;
34
+ export declare const updateCourseOfferingSchema: z.ZodObject<{
35
+ localCourseCode: z.ZodOptional<z.ZodString>;
36
+ localCourseTitle: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ localCourseCode?: string | undefined;
39
+ localCourseTitle?: string | undefined;
40
+ }, {
41
+ localCourseCode?: string | undefined;
42
+ localCourseTitle?: string | undefined;
43
+ }>;
44
+ export type UpdateCourseOfferingDto = z.infer<typeof updateCourseOfferingSchema>;
45
+ export declare const courseOfferingResponseSchema: z.ZodObject<{
46
+ courseOfferingId: z.ZodString;
47
+ tenantId: z.ZodString;
48
+ courseId: z.ZodString;
49
+ academicSessionId: z.ZodString;
50
+ schoolId: z.ZodString;
51
+ localCourseCode: z.ZodOptional<z.ZodString>;
52
+ localCourseTitle: z.ZodOptional<z.ZodString>;
53
+ courseName: z.ZodOptional<z.ZodString>;
54
+ courseCode: z.ZodOptional<z.ZodString>;
55
+ sessionName: z.ZodOptional<z.ZodString>;
56
+ createdAt: z.ZodString;
57
+ updatedAt: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ tenantId: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ schoolId: string;
63
+ academicSessionId: string;
64
+ courseId: string;
65
+ courseOfferingId: string;
66
+ sessionName?: string | undefined;
67
+ courseCode?: string | undefined;
68
+ courseName?: string | undefined;
69
+ localCourseCode?: string | undefined;
70
+ localCourseTitle?: string | undefined;
71
+ }, {
72
+ tenantId: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ schoolId: string;
76
+ academicSessionId: string;
77
+ courseId: string;
78
+ courseOfferingId: string;
79
+ sessionName?: string | undefined;
80
+ courseCode?: string | undefined;
81
+ courseName?: string | undefined;
82
+ localCourseCode?: string | undefined;
83
+ localCourseTitle?: string | undefined;
84
+ }>;
85
+ export type CourseOfferingResponseDto = z.infer<typeof courseOfferingResponseSchema>;
86
+ export declare const courseOfferingListResponseSchema: z.ZodObject<{
87
+ items: z.ZodArray<z.ZodObject<{
88
+ courseOfferingId: z.ZodString;
89
+ tenantId: z.ZodString;
90
+ courseId: z.ZodString;
91
+ academicSessionId: z.ZodString;
92
+ schoolId: z.ZodString;
93
+ localCourseCode: z.ZodOptional<z.ZodString>;
94
+ localCourseTitle: z.ZodOptional<z.ZodString>;
95
+ courseName: z.ZodOptional<z.ZodString>;
96
+ courseCode: z.ZodOptional<z.ZodString>;
97
+ sessionName: z.ZodOptional<z.ZodString>;
98
+ createdAt: z.ZodString;
99
+ updatedAt: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ tenantId: string;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ schoolId: string;
105
+ academicSessionId: string;
106
+ courseId: string;
107
+ courseOfferingId: string;
108
+ sessionName?: string | undefined;
109
+ courseCode?: string | undefined;
110
+ courseName?: string | undefined;
111
+ localCourseCode?: string | undefined;
112
+ localCourseTitle?: string | undefined;
113
+ }, {
114
+ tenantId: string;
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ schoolId: string;
118
+ academicSessionId: string;
119
+ courseId: string;
120
+ courseOfferingId: string;
121
+ sessionName?: string | undefined;
122
+ courseCode?: string | undefined;
123
+ courseName?: string | undefined;
124
+ localCourseCode?: string | undefined;
125
+ localCourseTitle?: string | undefined;
126
+ }>, "many">;
127
+ lastEvaluatedKey: z.ZodOptional<z.ZodString>;
128
+ hasMore: z.ZodBoolean;
129
+ total: z.ZodOptional<z.ZodNumber>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ items: {
132
+ tenantId: string;
133
+ createdAt: string;
134
+ updatedAt: string;
135
+ schoolId: string;
136
+ academicSessionId: string;
137
+ courseId: string;
138
+ courseOfferingId: string;
139
+ sessionName?: string | undefined;
140
+ courseCode?: string | undefined;
141
+ courseName?: string | undefined;
142
+ localCourseCode?: string | undefined;
143
+ localCourseTitle?: string | undefined;
144
+ }[];
145
+ hasMore: boolean;
146
+ lastEvaluatedKey?: string | undefined;
147
+ total?: number | undefined;
148
+ }, {
149
+ items: {
150
+ tenantId: string;
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ schoolId: string;
154
+ academicSessionId: string;
155
+ courseId: string;
156
+ courseOfferingId: string;
157
+ sessionName?: string | undefined;
158
+ courseCode?: string | undefined;
159
+ courseName?: string | undefined;
160
+ localCourseCode?: string | undefined;
161
+ localCourseTitle?: string | undefined;
162
+ }[];
163
+ hasMore: boolean;
164
+ lastEvaluatedKey?: string | undefined;
165
+ total?: number | undefined;
166
+ }>;
167
+ export type CourseOfferingListResponseDto = z.infer<typeof courseOfferingListResponseSchema>;
168
+ export declare const courseOfferingFilterSchema: z.ZodObject<{
169
+ schoolId: z.ZodOptional<z.ZodString>;
170
+ courseId: z.ZodOptional<z.ZodString>;
171
+ academicSessionId: z.ZodOptional<z.ZodString>;
172
+ limit: z.ZodDefault<z.ZodNumber>;
173
+ cursor: z.ZodOptional<z.ZodString>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ limit: number;
176
+ cursor?: string | undefined;
177
+ schoolId?: string | undefined;
178
+ academicSessionId?: string | undefined;
179
+ courseId?: string | undefined;
180
+ }, {
181
+ limit?: number | undefined;
182
+ cursor?: string | undefined;
183
+ schoolId?: string | undefined;
184
+ academicSessionId?: string | undefined;
185
+ courseId?: string | undefined;
186
+ }>;
187
+ export type CourseOfferingFilterDto = z.infer<typeof courseOfferingFilterSchema>;
188
+ //# sourceMappingURL=course-offering.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course-offering.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/academics/course-offering.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAWrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAMjF,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAMjF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBvC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAMrF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8D,CAAC;AAC5G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAM7F,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /**
3
+ * Course Offering Schemas - Academics Service
4
+ *
5
+ * Zod schemas for CourseOffering entity management.
6
+ * Ed-Fi: CourseOffering represents a Course offered in a specific
7
+ * Session (academic term) at a school. This is the bridge between
8
+ * Course (catalog) and Section (scheduled class instance).
9
+ *
10
+ * Chain: Course → CourseOffering → Section
11
+ *
12
+ * @see https://api.ed-fi.org/v7.1/docs/swagger/index.html - CourseOffering
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.courseOfferingFilterSchema = exports.courseOfferingListResponseSchema = exports.courseOfferingResponseSchema = exports.updateCourseOfferingSchema = exports.createCourseOfferingSchema = void 0;
16
+ const zod_1 = require("zod");
17
+ const common_1 = require("../common");
18
+ // ============================================
19
+ // Create Course Offering Schema
20
+ // ============================================
21
+ exports.createCourseOfferingSchema = zod_1.z.object({
22
+ // Ed-Fi Core References
23
+ courseId: zod_1.z.string().uuid(),
24
+ academicSessionId: zod_1.z.string().uuid(),
25
+ schoolId: zod_1.z.string().uuid(),
26
+ // Ed-Fi: localCourseCode — school-specific override of courseCode
27
+ localCourseCode: zod_1.z.string().max(50).optional(),
28
+ // Ed-Fi: localCourseTitle — school-specific override of courseName
29
+ localCourseTitle: zod_1.z.string().max(200).optional(),
30
+ });
31
+ // ============================================
32
+ // Update Course Offering Schema
33
+ // ============================================
34
+ exports.updateCourseOfferingSchema = zod_1.z.object({
35
+ localCourseCode: zod_1.z.string().max(50).optional(),
36
+ localCourseTitle: zod_1.z.string().max(200).optional(),
37
+ });
38
+ // ============================================
39
+ // Course Offering Response Schema
40
+ // ============================================
41
+ exports.courseOfferingResponseSchema = zod_1.z.object({
42
+ // Identifiers
43
+ courseOfferingId: zod_1.z.string().uuid(),
44
+ tenantId: zod_1.z.string(),
45
+ // Ed-Fi Core References
46
+ courseId: zod_1.z.string().uuid(),
47
+ academicSessionId: zod_1.z.string().uuid(),
48
+ schoolId: zod_1.z.string().uuid(),
49
+ // Local overrides
50
+ localCourseCode: zod_1.z.string().optional(),
51
+ localCourseTitle: zod_1.z.string().optional(),
52
+ // Denormalized for read efficiency
53
+ courseName: zod_1.z.string().optional(),
54
+ courseCode: zod_1.z.string().optional(),
55
+ sessionName: zod_1.z.string().optional(),
56
+ // Metadata
57
+ createdAt: common_1.isoDateSchema,
58
+ updatedAt: common_1.isoDateSchema,
59
+ });
60
+ // ============================================
61
+ // Course Offering List Response
62
+ // ============================================
63
+ exports.courseOfferingListResponseSchema = (0, common_1.createPaginatedResponseSchema)(exports.courseOfferingResponseSchema);
64
+ // ============================================
65
+ // Course Offering Filter Schema
66
+ // ============================================
67
+ exports.courseOfferingFilterSchema = zod_1.z.object({
68
+ schoolId: zod_1.z.string().uuid().optional(),
69
+ courseId: zod_1.z.string().uuid().optional(),
70
+ academicSessionId: zod_1.z.string().uuid().optional(),
71
+ limit: zod_1.z.coerce.number().min(1).max(100).default(20),
72
+ cursor: zod_1.z.string().optional(),
73
+ });
74
+ //# sourceMappingURL=course-offering.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course-offering.schema.js","sourceRoot":"","sources":["../../../src/schemas/academics/course-offering.schema.ts"],"names":[],"mappings":"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"}