@aibrains/shared-types 0.13.0 → 0.15.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 (41) hide show
  1. package/dist/schemas/academics/assignment.schema.d.ts +10 -10
  2. package/dist/schemas/academics/attendance.schema.d.ts +16 -16
  3. package/dist/schemas/academics/classwork.schema.d.ts +507 -0
  4. package/dist/schemas/academics/classwork.schema.d.ts.map +1 -0
  5. package/dist/schemas/academics/classwork.schema.js +149 -0
  6. package/dist/schemas/academics/classwork.schema.js.map +1 -0
  7. package/dist/schemas/academics/grade.schema.d.ts +2 -2
  8. package/dist/schemas/academics/index.d.ts +2 -0
  9. package/dist/schemas/academics/index.d.ts.map +1 -1
  10. package/dist/schemas/academics/index.js +2 -0
  11. package/dist/schemas/academics/index.js.map +1 -1
  12. package/dist/schemas/academics/section-attendance.schema.d.ts +447 -0
  13. package/dist/schemas/academics/section-attendance.schema.d.ts.map +1 -0
  14. package/dist/schemas/academics/section-attendance.schema.js +126 -0
  15. package/dist/schemas/academics/section-attendance.schema.js.map +1 -0
  16. package/dist/schemas/academics/student.schema.d.ts +15 -15
  17. package/dist/schemas/common.d.ts +4 -2
  18. package/dist/schemas/common.d.ts.map +1 -1
  19. package/dist/schemas/common.js +7 -2
  20. package/dist/schemas/common.js.map +1 -1
  21. package/dist/schemas/enrollment/enrollment.schema.d.ts +55 -55
  22. package/dist/schemas/finance/fee-structure.schema.d.ts +4 -4
  23. package/dist/schemas/finance/invoice.schema.d.ts +5 -5
  24. package/dist/schemas/finance/payment.schema.d.ts +16 -0
  25. package/dist/schemas/finance/payment.schema.d.ts.map +1 -1
  26. package/dist/schemas/finance/payment.schema.js +2 -0
  27. package/dist/schemas/finance/payment.schema.js.map +1 -1
  28. package/dist/schemas/identity/bell-schedule.schema.d.ts +5 -5
  29. package/dist/schemas/identity/calendar-date.schema.d.ts +12 -12
  30. package/dist/schemas/identity/credential.schema.d.ts +4 -4
  31. package/dist/schemas/identity/education-org-network.schema.d.ts +7 -7
  32. package/dist/schemas/identity/education-organization.schema.d.ts +1 -1
  33. package/dist/schemas/identity/education-service-center.schema.d.ts +4 -4
  34. package/dist/schemas/identity/leave.schema.d.ts +8 -8
  35. package/dist/schemas/identity/local-education-agency.schema.d.ts +4 -4
  36. package/dist/schemas/identity/school.schema.d.ts +4 -4
  37. package/dist/schemas/identity/staff-assignment.schema.d.ts +3 -3
  38. package/dist/schemas/identity/staff.schema.d.ts +18 -18
  39. package/dist/schemas/identity/state-education-agency.schema.d.ts +3 -3
  40. package/dist/validators/date-range.d.ts +6 -6
  41. package/package.json +1 -1
@@ -29,8 +29,8 @@ export declare const createCredentialSchema: z.ZodObject<{
29
29
  credentialIdentifier: z.ZodString;
30
30
  credentialTypeDescriptor: z.ZodEnum<["certification", "license", "endorsement", "degree", "registration", "permit", "clearance", "training", "other"]>;
31
31
  credentialFieldDescriptor: z.ZodOptional<z.ZodEnum<["elementary_education", "secondary_education", "special_education", "early_childhood", "mathematics", "science", "english_language_arts", "social_studies", "foreign_language", "physical_education", "music", "art", "technology", "counseling", "administration", "library_media", "other"]>>;
32
- issuanceDate: z.ZodEffects<z.ZodString, string, string>;
33
- expirationDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
32
+ issuanceDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
33
+ expirationDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
34
  issuingState: z.ZodOptional<z.ZodString>;
35
35
  issuingOrganization: z.ZodString;
36
36
  gradeLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<["pre_k", "kindergarten", "first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth", "adult_education", "ungraded"]>, "many">>;
@@ -91,8 +91,8 @@ export declare const updateCredentialSchema: z.ZodObject<z.objectUtil.extendShap
91
91
  credentialIdentifier: z.ZodOptional<z.ZodString>;
92
92
  credentialTypeDescriptor: z.ZodOptional<z.ZodEnum<["certification", "license", "endorsement", "degree", "registration", "permit", "clearance", "training", "other"]>>;
93
93
  credentialFieldDescriptor: z.ZodOptional<z.ZodOptional<z.ZodEnum<["elementary_education", "secondary_education", "special_education", "early_childhood", "mathematics", "science", "english_language_arts", "social_studies", "foreign_language", "physical_education", "music", "art", "technology", "counseling", "administration", "library_media", "other"]>>>;
94
- issuanceDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
95
- expirationDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
94
+ issuanceDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
95
+ expirationDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
96
96
  issuingState: z.ZodOptional<z.ZodOptional<z.ZodString>>;
97
97
  issuingOrganization: z.ZodOptional<z.ZodString>;
98
98
  gradeLevels: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<["pre_k", "kindergarten", "first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth", "adult_education", "ungraded"]>, "many">>>;
@@ -704,8 +704,8 @@ export declare const createNetworkAssociationSchema: z.ZodObject<{
704
704
  networkId: z.ZodString;
705
705
  memberEducationOrganizationId: z.ZodString;
706
706
  memberType: z.ZodEnum<["stateEducationAgency", "localEducationAgency", "school", "educationServiceCenter", "educationOrganizationNetwork", "organizationDepartment", "communityOrganization", "communityProvider", "postSecondaryInstitution"]>;
707
- beginDate: z.ZodEffects<z.ZodString, string, string>;
708
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
707
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
708
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
709
709
  }, "strip", z.ZodTypeAny, {
710
710
  beginDate: string;
711
711
  networkId: string;
@@ -721,7 +721,7 @@ export declare const createNetworkAssociationSchema: z.ZodObject<{
721
721
  }>;
722
722
  export type CreateNetworkAssociationDto = z.infer<typeof createNetworkAssociationSchema>;
723
723
  export declare const updateNetworkAssociationSchema: z.ZodObject<{
724
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
724
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
725
725
  }, "strip", z.ZodTypeAny, {
726
726
  endDate?: string | undefined;
727
727
  }, {
@@ -734,8 +734,8 @@ export declare const networkAssociationResponseSchema: z.ZodObject<{
734
734
  memberEducationOrganizationId: z.ZodString;
735
735
  memberType: z.ZodEnum<["stateEducationAgency", "localEducationAgency", "school", "educationServiceCenter", "educationOrganizationNetwork", "organizationDepartment", "communityOrganization", "communityProvider", "postSecondaryInstitution"]>;
736
736
  memberName: z.ZodString;
737
- beginDate: z.ZodEffects<z.ZodString, string, string>;
738
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
737
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
738
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
739
739
  tenantId: z.ZodString;
740
740
  createdAt: z.ZodString;
741
741
  updatedAt: z.ZodString;
@@ -770,8 +770,8 @@ export declare const networkAssociationListResponseSchema: z.ZodObject<{
770
770
  memberEducationOrganizationId: z.ZodString;
771
771
  memberType: z.ZodEnum<["stateEducationAgency", "localEducationAgency", "school", "educationServiceCenter", "educationOrganizationNetwork", "organizationDepartment", "communityOrganization", "communityProvider", "postSecondaryInstitution"]>;
772
772
  memberName: z.ZodString;
773
- beginDate: z.ZodEffects<z.ZodString, string, string>;
774
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
773
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
774
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
775
775
  tenantId: z.ZodString;
776
776
  createdAt: z.ZodString;
777
777
  updatedAt: z.ZodString;
@@ -109,7 +109,7 @@ export declare const accountabilityRatingSchema: z.ZodObject<{
109
109
  title: z.ZodString;
110
110
  rating: z.ZodString;
111
111
  ratingOrganization: z.ZodOptional<z.ZodString>;
112
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
112
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  schoolYear: number;
115
115
  title: string;
@@ -81,7 +81,7 @@ export declare const createEducationServiceCenterSchema: z.ZodObject<{
81
81
  title: z.ZodString;
82
82
  rating: z.ZodString;
83
83
  ratingOrganization: z.ZodOptional<z.ZodString>;
84
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
84
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  schoolYear: number;
87
87
  title: string;
@@ -244,7 +244,7 @@ export declare const updateEducationServiceCenterSchema: z.ZodObject<Omit<{
244
244
  title: z.ZodString;
245
245
  rating: z.ZodString;
246
246
  ratingOrganization: z.ZodOptional<z.ZodString>;
247
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
247
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  schoolYear: number;
250
250
  title: string;
@@ -407,7 +407,7 @@ export declare const escResponseSchema: z.ZodObject<{
407
407
  title: z.ZodString;
408
408
  rating: z.ZodString;
409
409
  ratingOrganization: z.ZodOptional<z.ZodString>;
410
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
410
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
411
411
  }, "strip", z.ZodTypeAny, {
412
412
  schoolYear: number;
413
413
  title: string;
@@ -592,7 +592,7 @@ export declare const escListResponseSchema: z.ZodObject<{
592
592
  title: z.ZodString;
593
593
  rating: z.ZodString;
594
594
  ratingOrganization: z.ZodOptional<z.ZodString>;
595
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
595
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
596
596
  }, "strip", z.ZodTypeAny, {
597
597
  schoolYear: number;
598
598
  title: string;
@@ -22,8 +22,8 @@ export declare const leaveDurationTypeSchema: z.ZodEnum<["full_day", "half_day_a
22
22
  export type LeaveDurationType = z.infer<typeof leaveDurationTypeSchema>;
23
23
  export declare const createLeaveRequestSchema: z.ZodObject<{
24
24
  leaveType: z.ZodEnum<["annual", "sick", "personal", "bereavement", "maternity", "paternity", "family_medical", "jury_duty", "military", "professional_development", "sabbatical", "unpaid", "other"]>;
25
- startDate: z.ZodEffects<z.ZodString, string, string>;
26
- endDate: z.ZodEffects<z.ZodString, string, string>;
25
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
26
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
27
27
  durationType: z.ZodDefault<z.ZodEnum<["full_day", "half_day_am", "half_day_pm", "hours"]>>;
28
28
  hours: z.ZodOptional<z.ZodNumber>;
29
29
  reason: z.ZodOptional<z.ZodString>;
@@ -82,8 +82,8 @@ export declare const createLeaveRequestSchema: z.ZodObject<{
82
82
  }>;
83
83
  export declare const createLeaveRequestWithValidationSchema: z.ZodEffects<z.ZodObject<{
84
84
  leaveType: z.ZodEnum<["annual", "sick", "personal", "bereavement", "maternity", "paternity", "family_medical", "jury_duty", "military", "professional_development", "sabbatical", "unpaid", "other"]>;
85
- startDate: z.ZodEffects<z.ZodString, string, string>;
86
- endDate: z.ZodEffects<z.ZodString, string, string>;
85
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
86
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
87
87
  durationType: z.ZodDefault<z.ZodEnum<["full_day", "half_day_am", "half_day_pm", "hours"]>>;
88
88
  hours: z.ZodOptional<z.ZodNumber>;
89
89
  reason: z.ZodOptional<z.ZodString>;
@@ -177,8 +177,8 @@ export declare const createLeaveRequestWithValidationSchema: z.ZodEffects<z.ZodO
177
177
  export type CreateLeaveRequestDto = z.infer<typeof createLeaveRequestWithValidationSchema>;
178
178
  export declare const updateLeaveRequestSchema: z.ZodEffects<z.ZodObject<{
179
179
  leaveType: z.ZodOptional<z.ZodEnum<["annual", "sick", "personal", "bereavement", "maternity", "paternity", "family_medical", "jury_duty", "military", "professional_development", "sabbatical", "unpaid", "other"]>>;
180
- startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
181
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
180
+ startDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
181
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
182
182
  durationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["full_day", "half_day_am", "half_day_pm", "hours"]>>>;
183
183
  hours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
184
184
  reason: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -566,8 +566,8 @@ export declare const leaveFilterSchema: z.ZodObject<{
566
566
  schoolId: z.ZodOptional<z.ZodString>;
567
567
  leaveType: z.ZodOptional<z.ZodEnum<["annual", "sick", "personal", "bereavement", "maternity", "paternity", "family_medical", "jury_duty", "military", "professional_development", "sabbatical", "unpaid", "other"]>>;
568
568
  status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "cancelled", "in_progress", "completed"]>>;
569
- startDateFrom: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
570
- startDateTo: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
569
+ startDateFrom: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
570
+ startDateTo: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
571
571
  limit: z.ZodDefault<z.ZodNumber>;
572
572
  cursor: z.ZodOptional<z.ZodString>;
573
573
  }, "strip", z.ZodTypeAny, {
@@ -85,7 +85,7 @@ export declare const createLocalEducationAgencySchema: z.ZodObject<{
85
85
  title: z.ZodString;
86
86
  rating: z.ZodString;
87
87
  ratingOrganization: z.ZodOptional<z.ZodString>;
88
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
88
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  schoolYear: number;
91
91
  title: string;
@@ -260,7 +260,7 @@ export declare const updateLocalEducationAgencySchema: z.ZodObject<Omit<{
260
260
  title: z.ZodString;
261
261
  rating: z.ZodString;
262
262
  ratingOrganization: z.ZodOptional<z.ZodString>;
263
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
263
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
264
264
  }, "strip", z.ZodTypeAny, {
265
265
  schoolYear: number;
266
266
  title: string;
@@ -435,7 +435,7 @@ export declare const leaResponseSchema: z.ZodObject<{
435
435
  title: z.ZodString;
436
436
  rating: z.ZodString;
437
437
  ratingOrganization: z.ZodOptional<z.ZodString>;
438
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
438
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  schoolYear: number;
441
441
  title: string;
@@ -632,7 +632,7 @@ export declare const leaListResponseSchema: z.ZodObject<{
632
632
  title: z.ZodString;
633
633
  rating: z.ZodString;
634
634
  ratingOrganization: z.ZodOptional<z.ZodString>;
635
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
635
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
636
636
  }, "strip", z.ZodTypeAny, {
637
637
  schoolYear: number;
638
638
  title: string;
@@ -185,7 +185,7 @@ export declare const createSchoolSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
185
185
  title: z.ZodString;
186
186
  rating: z.ZodString;
187
187
  ratingOrganization: z.ZodOptional<z.ZodString>;
188
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
188
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
189
189
  }, "strip", z.ZodTypeAny, {
190
190
  schoolYear: number;
191
191
  title: string;
@@ -664,7 +664,7 @@ export declare const updateSchoolSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
664
664
  title: z.ZodString;
665
665
  rating: z.ZodString;
666
666
  ratingOrganization: z.ZodOptional<z.ZodString>;
667
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
667
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
668
668
  }, "strip", z.ZodTypeAny, {
669
669
  schoolYear: number;
670
670
  title: string;
@@ -1149,7 +1149,7 @@ export declare const schoolResponseSchema: z.ZodObject<{
1149
1149
  title: z.ZodString;
1150
1150
  rating: z.ZodString;
1151
1151
  ratingOrganization: z.ZodOptional<z.ZodString>;
1152
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1152
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1153
1153
  }, "strip", z.ZodTypeAny, {
1154
1154
  schoolYear: number;
1155
1155
  title: string;
@@ -1417,7 +1417,7 @@ export declare const schoolListResponseSchema: z.ZodObject<{
1417
1417
  title: z.ZodString;
1418
1418
  rating: z.ZodString;
1419
1419
  ratingOrganization: z.ZodOptional<z.ZodString>;
1420
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1420
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1421
1421
  }, "strip", z.ZodTypeAny, {
1422
1422
  schoolYear: number;
1423
1423
  title: string;
@@ -12,8 +12,8 @@ export declare const createStaffAssignmentSchema: z.ZodObject<{
12
12
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
13
13
  department: z.ZodOptional<z.ZodString>;
14
14
  isPrimary: z.ZodDefault<z.ZodBoolean>;
15
- beginDate: z.ZodEffects<z.ZodString, string, string>;
16
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
15
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
16
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
17
17
  positionTitle: z.ZodOptional<z.ZodString>;
18
18
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
19
19
  staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
@@ -46,7 +46,7 @@ export declare const updateStaffAssignmentSchema: z.ZodObject<{
46
46
  role: z.ZodOptional<z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>>;
47
47
  department: z.ZodOptional<z.ZodString>;
48
48
  isPrimary: z.ZodOptional<z.ZodBoolean>;
49
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
49
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
50
50
  positionTitle: z.ZodOptional<z.ZodString>;
51
51
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
52
52
  staffClassificationDescriptor: z.ZodOptional<z.ZodString>;
@@ -90,8 +90,8 @@ export declare const staffSchoolAssignmentSchema: z.ZodObject<{
90
90
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
91
91
  department: z.ZodOptional<z.ZodString>;
92
92
  isPrimary: z.ZodDefault<z.ZodBoolean>;
93
- beginDate: z.ZodEffects<z.ZodString, string, string>;
94
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
93
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
94
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
95
95
  positionTitle: z.ZodOptional<z.ZodString>;
96
96
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
97
97
  }, "strip", z.ZodTypeAny, {
@@ -144,13 +144,13 @@ export declare const createStaffSchema: z.ZodObject<{
144
144
  middleName: z.ZodOptional<z.ZodString>;
145
145
  generationCodeSuffix: z.ZodOptional<z.ZodString>;
146
146
  maidenName: z.ZodOptional<z.ZodString>;
147
- birthDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
147
+ birthDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
148
148
  gender: z.ZodOptional<z.ZodEnum<["male", "female", "non_binary", "prefer_not_to_say"]>>;
149
149
  hispanicLatinoEthnicity: z.ZodOptional<z.ZodBoolean>;
150
150
  primarySchoolId: z.ZodString;
151
151
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
152
152
  employmentType: z.ZodDefault<z.ZodEnum<["full_time", "part_time", "contract", "temporary", "volunteer"]>>;
153
- hireDate: z.ZodEffects<z.ZodString, string, string>;
153
+ hireDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
154
154
  email: z.ZodString;
155
155
  phone: z.ZodOptional<z.ZodString>;
156
156
  addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -311,13 +311,13 @@ export declare const updateStaffSchema: z.ZodObject<z.objectUtil.extendShape<Omi
311
311
  middleName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
312
312
  generationCodeSuffix: z.ZodOptional<z.ZodOptional<z.ZodString>>;
313
313
  maidenName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
314
- birthDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
314
+ birthDate: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
315
315
  gender: z.ZodOptional<z.ZodOptional<z.ZodEnum<["male", "female", "non_binary", "prefer_not_to_say"]>>>;
316
316
  hispanicLatinoEthnicity: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
317
317
  primarySchoolId: z.ZodOptional<z.ZodString>;
318
318
  role: z.ZodOptional<z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>>;
319
319
  employmentType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["full_time", "part_time", "contract", "temporary", "volunteer"]>>>;
320
- hireDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
320
+ hireDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
321
321
  email: z.ZodOptional<z.ZodString>;
322
322
  phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
323
323
  addresses: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -384,7 +384,7 @@ export declare const updateStaffSchema: z.ZodObject<z.objectUtil.extendShape<Omi
384
384
  }>, "many">>>;
385
385
  }, "staffUniqueId" | "primarySchoolId">, {
386
386
  employmentStatus: z.ZodOptional<z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>>;
387
- terminationDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
387
+ terminationDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
388
388
  terminationReason: z.ZodOptional<z.ZodString>;
389
389
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "pending"]>>;
390
390
  }>, "strip", z.ZodTypeAny, {
@@ -525,8 +525,8 @@ export declare const staffResponseSchema: z.ZodObject<{
525
525
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
526
526
  department: z.ZodOptional<z.ZodString>;
527
527
  isPrimary: z.ZodDefault<z.ZodBoolean>;
528
- beginDate: z.ZodEffects<z.ZodString, string, string>;
529
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
528
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
529
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
530
530
  positionTitle: z.ZodOptional<z.ZodString>;
531
531
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
532
532
  }, "strip", z.ZodTypeAny, {
@@ -711,8 +711,8 @@ export declare const staffListResponseSchema: z.ZodObject<{
711
711
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
712
712
  department: z.ZodOptional<z.ZodString>;
713
713
  isPrimary: z.ZodDefault<z.ZodBoolean>;
714
- beginDate: z.ZodEffects<z.ZodString, string, string>;
715
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
714
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
715
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
716
716
  positionTitle: z.ZodOptional<z.ZodString>;
717
717
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
718
718
  }, "strip", z.ZodTypeAny, {
@@ -993,8 +993,8 @@ export declare const assignStaffToSchoolSchema: z.ZodObject<{
993
993
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
994
994
  department: z.ZodOptional<z.ZodString>;
995
995
  isPrimary: z.ZodDefault<z.ZodBoolean>;
996
- beginDate: z.ZodEffects<z.ZodString, string, string>;
997
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
996
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
997
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
998
998
  positionTitle: z.ZodOptional<z.ZodString>;
999
999
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
1000
1000
  }, "strip", z.ZodTypeAny, {
@@ -1019,7 +1019,7 @@ export declare const assignStaffToSchoolSchema: z.ZodObject<{
1019
1019
  export type AssignStaffToSchoolDto = z.infer<typeof assignStaffToSchoolSchema>;
1020
1020
  export declare const updateEmploymentStatusSchema: z.ZodObject<{
1021
1021
  employmentStatus: z.ZodEnum<["active", "on_leave", "suspended", "terminated", "retired", "resigned"]>;
1022
- effectiveDate: z.ZodEffects<z.ZodString, string, string>;
1022
+ effectiveDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1023
1023
  reason: z.ZodOptional<z.ZodString>;
1024
1024
  notes: z.ZodOptional<z.ZodString>;
1025
1025
  }, "strip", z.ZodTypeAny, {
@@ -1042,13 +1042,13 @@ export declare const createStaffWithUserSchema: z.ZodObject<z.objectUtil.extendS
1042
1042
  middleName: z.ZodOptional<z.ZodString>;
1043
1043
  generationCodeSuffix: z.ZodOptional<z.ZodString>;
1044
1044
  maidenName: z.ZodOptional<z.ZodString>;
1045
- birthDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1045
+ birthDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1046
1046
  gender: z.ZodOptional<z.ZodEnum<["male", "female", "non_binary", "prefer_not_to_say"]>>;
1047
1047
  hispanicLatinoEthnicity: z.ZodOptional<z.ZodBoolean>;
1048
1048
  primarySchoolId: z.ZodString;
1049
1049
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
1050
1050
  employmentType: z.ZodDefault<z.ZodEnum<["full_time", "part_time", "contract", "temporary", "volunteer"]>>;
1051
- hireDate: z.ZodEffects<z.ZodString, string, string>;
1051
+ hireDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1052
1052
  email: z.ZodString;
1053
1053
  phone: z.ZodOptional<z.ZodString>;
1054
1054
  addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1258,8 +1258,8 @@ export declare const staffWithUserResponseSchema: z.ZodObject<{
1258
1258
  role: z.ZodEnum<["teacher", "principal", "vice_principal", "counselor", "librarian", "nurse", "admin_staff", "support_staff", "it_staff", "substitute", "contractor"]>;
1259
1259
  department: z.ZodOptional<z.ZodString>;
1260
1260
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1261
- beginDate: z.ZodEffects<z.ZodString, string, string>;
1262
- endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1261
+ beginDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1262
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1263
1263
  positionTitle: z.ZodOptional<z.ZodString>;
1264
1264
  fullTimeEquivalency: z.ZodOptional<z.ZodNumber>;
1265
1265
  }, "strip", z.ZodTypeAny, {
@@ -81,7 +81,7 @@ export declare const createStateEducationAgencySchema: z.ZodObject<{
81
81
  title: z.ZodString;
82
82
  rating: z.ZodString;
83
83
  ratingOrganization: z.ZodOptional<z.ZodString>;
84
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
84
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  schoolYear: number;
87
87
  title: string;
@@ -241,7 +241,7 @@ export declare const updateStateEducationAgencySchema: z.ZodObject<Omit<{
241
241
  title: z.ZodString;
242
242
  rating: z.ZodString;
243
243
  ratingOrganization: z.ZodOptional<z.ZodString>;
244
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
244
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
245
245
  }, "strip", z.ZodTypeAny, {
246
246
  schoolYear: number;
247
247
  title: string;
@@ -401,7 +401,7 @@ export declare const seaResponseSchema: z.ZodObject<{
401
401
  title: z.ZodString;
402
402
  rating: z.ZodString;
403
403
  ratingOrganization: z.ZodOptional<z.ZodString>;
404
- ratingDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
404
+ ratingDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
405
405
  }, "strip", z.ZodTypeAny, {
406
406
  schoolYear: number;
407
407
  title: string;
@@ -10,8 +10,8 @@ export { dateSchema } from '../schemas/common';
10
10
  */
11
11
  export declare const datetimeSchema: z.ZodString;
12
12
  export declare const dateRangeSchema: z.ZodEffects<z.ZodObject<{
13
- startDate: z.ZodEffects<z.ZodString, string, string>;
14
- endDate: z.ZodEffects<z.ZodString, string, string>;
13
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  startDate: string;
17
17
  endDate: string;
@@ -30,8 +30,8 @@ export type DateRange = z.infer<typeof dateRangeSchema>;
30
30
  * Academic year must be between 120 and 365 days
31
31
  */
32
32
  export declare const academicYearDateRangeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
33
- startDate: z.ZodEffects<z.ZodString, string, string>;
34
- endDate: z.ZodEffects<z.ZodString, string, string>;
33
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
34
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  startDate: string;
37
37
  endDate: string;
@@ -56,8 +56,8 @@ export type AcademicYearDateRange = z.infer<typeof academicYearDateRangeSchema>;
56
56
  * Grading period must be between 7 and 180 days
57
57
  */
58
58
  export declare const gradingPeriodDateRangeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
59
- startDate: z.ZodEffects<z.ZodString, string, string>;
60
- endDate: z.ZodEffects<z.ZodString, string, string>;
59
+ startDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
60
+ endDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  startDate: string;
63
63
  endDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibrains/shared-types",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Shared Zod schemas, TypeScript types, and validators for Education data models.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",