@aibrains/shared-types 0.1.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 (158) hide show
  1. package/README.md +170 -0
  2. package/dist/index.d.ts +48 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +74 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/mappers/edfi/calendar.mapper.d.ts +158 -0
  7. package/dist/mappers/edfi/calendar.mapper.d.ts.map +1 -0
  8. package/dist/mappers/edfi/calendar.mapper.js +235 -0
  9. package/dist/mappers/edfi/calendar.mapper.js.map +1 -0
  10. package/dist/mappers/edfi/credential.mapper.d.ts +50 -0
  11. package/dist/mappers/edfi/credential.mapper.d.ts.map +1 -0
  12. package/dist/mappers/edfi/credential.mapper.js +123 -0
  13. package/dist/mappers/edfi/credential.mapper.js.map +1 -0
  14. package/dist/mappers/edfi/index.d.ts +10 -0
  15. package/dist/mappers/edfi/index.d.ts.map +1 -0
  16. package/dist/mappers/edfi/index.js +26 -0
  17. package/dist/mappers/edfi/index.js.map +1 -0
  18. package/dist/mappers/edfi/staff.mapper.d.ts +96 -0
  19. package/dist/mappers/edfi/staff.mapper.d.ts.map +1 -0
  20. package/dist/mappers/edfi/staff.mapper.js +138 -0
  21. package/dist/mappers/edfi/staff.mapper.js.map +1 -0
  22. package/dist/mappers/index.d.ts +7 -0
  23. package/dist/mappers/index.d.ts.map +1 -0
  24. package/dist/mappers/index.js +23 -0
  25. package/dist/mappers/index.js.map +1 -0
  26. package/dist/schemas/academics/assignment.schema.d.ts +1463 -0
  27. package/dist/schemas/academics/assignment.schema.d.ts.map +1 -0
  28. package/dist/schemas/academics/assignment.schema.js +195 -0
  29. package/dist/schemas/academics/assignment.schema.js.map +1 -0
  30. package/dist/schemas/academics/attendance.schema.d.ts +762 -0
  31. package/dist/schemas/academics/attendance.schema.d.ts.map +1 -0
  32. package/dist/schemas/academics/attendance.schema.js +250 -0
  33. package/dist/schemas/academics/attendance.schema.js.map +1 -0
  34. package/dist/schemas/academics/classroom.schema.d.ts +742 -0
  35. package/dist/schemas/academics/classroom.schema.d.ts.map +1 -0
  36. package/dist/schemas/academics/classroom.schema.js +164 -0
  37. package/dist/schemas/academics/classroom.schema.js.map +1 -0
  38. package/dist/schemas/academics/course-section.schema.d.ts +388 -0
  39. package/dist/schemas/academics/course-section.schema.d.ts.map +1 -0
  40. package/dist/schemas/academics/course-section.schema.js +128 -0
  41. package/dist/schemas/academics/course-section.schema.js.map +1 -0
  42. package/dist/schemas/academics/course.schema.d.ts +778 -0
  43. package/dist/schemas/academics/course.schema.d.ts.map +1 -0
  44. package/dist/schemas/academics/course.schema.js +207 -0
  45. package/dist/schemas/academics/course.schema.js.map +1 -0
  46. package/dist/schemas/academics/grade.schema.d.ts +848 -0
  47. package/dist/schemas/academics/grade.schema.d.ts.map +1 -0
  48. package/dist/schemas/academics/grade.schema.js +251 -0
  49. package/dist/schemas/academics/grade.schema.js.map +1 -0
  50. package/dist/schemas/academics/index.d.ts +13 -0
  51. package/dist/schemas/academics/index.d.ts.map +1 -0
  52. package/dist/schemas/academics/index.js +29 -0
  53. package/dist/schemas/academics/index.js.map +1 -0
  54. package/dist/schemas/academics/student.schema.d.ts +2891 -0
  55. package/dist/schemas/academics/student.schema.d.ts.map +1 -0
  56. package/dist/schemas/academics/student.schema.js +249 -0
  57. package/dist/schemas/academics/student.schema.js.map +1 -0
  58. package/dist/schemas/common.d.ts +183 -0
  59. package/dist/schemas/common.d.ts.map +1 -0
  60. package/dist/schemas/common.js +126 -0
  61. package/dist/schemas/common.js.map +1 -0
  62. package/dist/schemas/enrollment/enrollment.schema.d.ts +2799 -0
  63. package/dist/schemas/enrollment/enrollment.schema.d.ts.map +1 -0
  64. package/dist/schemas/enrollment/enrollment.schema.js +435 -0
  65. package/dist/schemas/enrollment/enrollment.schema.js.map +1 -0
  66. package/dist/schemas/enrollment/index.d.ts +7 -0
  67. package/dist/schemas/enrollment/index.d.ts.map +1 -0
  68. package/dist/schemas/enrollment/index.js +23 -0
  69. package/dist/schemas/enrollment/index.js.map +1 -0
  70. package/dist/schemas/identity/academic-year.schema.d.ts +546 -0
  71. package/dist/schemas/identity/academic-year.schema.d.ts.map +1 -0
  72. package/dist/schemas/identity/academic-year.schema.js +137 -0
  73. package/dist/schemas/identity/academic-year.schema.js.map +1 -0
  74. package/dist/schemas/identity/auth.schema.d.ts +670 -0
  75. package/dist/schemas/identity/auth.schema.d.ts.map +1 -0
  76. package/dist/schemas/identity/auth.schema.js +126 -0
  77. package/dist/schemas/identity/auth.schema.js.map +1 -0
  78. package/dist/schemas/identity/bell-schedule.schema.d.ts +630 -0
  79. package/dist/schemas/identity/bell-schedule.schema.d.ts.map +1 -0
  80. package/dist/schemas/identity/bell-schedule.schema.js +143 -0
  81. package/dist/schemas/identity/bell-schedule.schema.js.map +1 -0
  82. package/dist/schemas/identity/calendar-date.schema.d.ts +830 -0
  83. package/dist/schemas/identity/calendar-date.schema.d.ts.map +1 -0
  84. package/dist/schemas/identity/calendar-date.schema.js +208 -0
  85. package/dist/schemas/identity/calendar-date.schema.js.map +1 -0
  86. package/dist/schemas/identity/credential.schema.d.ts +472 -0
  87. package/dist/schemas/identity/credential.schema.d.ts.map +1 -0
  88. package/dist/schemas/identity/credential.schema.js +200 -0
  89. package/dist/schemas/identity/credential.schema.js.map +1 -0
  90. package/dist/schemas/identity/department.schema.d.ts +567 -0
  91. package/dist/schemas/identity/department.schema.d.ts.map +1 -0
  92. package/dist/schemas/identity/department.schema.js +113 -0
  93. package/dist/schemas/identity/department.schema.js.map +1 -0
  94. package/dist/schemas/identity/index.d.ts +21 -0
  95. package/dist/schemas/identity/index.d.ts.map +1 -0
  96. package/dist/schemas/identity/index.js +39 -0
  97. package/dist/schemas/identity/index.js.map +1 -0
  98. package/dist/schemas/identity/leave.schema.d.ts +725 -0
  99. package/dist/schemas/identity/leave.schema.d.ts.map +1 -0
  100. package/dist/schemas/identity/leave.schema.js +204 -0
  101. package/dist/schemas/identity/leave.schema.js.map +1 -0
  102. package/dist/schemas/identity/role.schema.d.ts +356 -0
  103. package/dist/schemas/identity/role.schema.d.ts.map +1 -0
  104. package/dist/schemas/identity/role.schema.js +124 -0
  105. package/dist/schemas/identity/role.schema.js.map +1 -0
  106. package/dist/schemas/identity/school-year.schema.d.ts +303 -0
  107. package/dist/schemas/identity/school-year.schema.d.ts.map +1 -0
  108. package/dist/schemas/identity/school-year.schema.js +59 -0
  109. package/dist/schemas/identity/school-year.schema.js.map +1 -0
  110. package/dist/schemas/identity/school.schema.d.ts +844 -0
  111. package/dist/schemas/identity/school.schema.d.ts.map +1 -0
  112. package/dist/schemas/identity/school.schema.js +139 -0
  113. package/dist/schemas/identity/school.schema.js.map +1 -0
  114. package/dist/schemas/identity/security.schema.d.ts +422 -0
  115. package/dist/schemas/identity/security.schema.d.ts.map +1 -0
  116. package/dist/schemas/identity/security.schema.js +151 -0
  117. package/dist/schemas/identity/security.schema.js.map +1 -0
  118. package/dist/schemas/identity/session.schema.d.ts +193 -0
  119. package/dist/schemas/identity/session.schema.d.ts.map +1 -0
  120. package/dist/schemas/identity/session.schema.js +59 -0
  121. package/dist/schemas/identity/session.schema.js.map +1 -0
  122. package/dist/schemas/identity/staff.schema.d.ts +1037 -0
  123. package/dist/schemas/identity/staff.schema.d.ts.map +1 -0
  124. package/dist/schemas/identity/staff.schema.js +251 -0
  125. package/dist/schemas/identity/staff.schema.js.map +1 -0
  126. package/dist/schemas/identity/tenant.schema.d.ts +313 -0
  127. package/dist/schemas/identity/tenant.schema.d.ts.map +1 -0
  128. package/dist/schemas/identity/tenant.schema.js +81 -0
  129. package/dist/schemas/identity/tenant.schema.js.map +1 -0
  130. package/dist/schemas/identity/user.schema.d.ts +921 -0
  131. package/dist/schemas/identity/user.schema.d.ts.map +1 -0
  132. package/dist/schemas/identity/user.schema.js +201 -0
  133. package/dist/schemas/identity/user.schema.js.map +1 -0
  134. package/dist/schemas/index.d.ts +10 -0
  135. package/dist/schemas/index.d.ts.map +1 -0
  136. package/dist/schemas/index.js +26 -0
  137. package/dist/schemas/index.js.map +1 -0
  138. package/dist/validators/academic-year.d.ts +90 -0
  139. package/dist/validators/academic-year.d.ts.map +1 -0
  140. package/dist/validators/academic-year.js +190 -0
  141. package/dist/validators/academic-year.js.map +1 -0
  142. package/dist/validators/date-range.d.ts +142 -0
  143. package/dist/validators/date-range.d.ts.map +1 -0
  144. package/dist/validators/date-range.js +170 -0
  145. package/dist/validators/date-range.js.map +1 -0
  146. package/dist/validators/grade-level.d.ts +80 -0
  147. package/dist/validators/grade-level.d.ts.map +1 -0
  148. package/dist/validators/grade-level.js +157 -0
  149. package/dist/validators/grade-level.js.map +1 -0
  150. package/dist/validators/index.d.ts +10 -0
  151. package/dist/validators/index.d.ts.map +1 -0
  152. package/dist/validators/index.js +26 -0
  153. package/dist/validators/index.js.map +1 -0
  154. package/dist/validators/password.d.ts +60 -0
  155. package/dist/validators/password.d.ts.map +1 -0
  156. package/dist/validators/password.js +81 -0
  157. package/dist/validators/password.js.map +1 -0
  158. package/package.json +50 -0
@@ -0,0 +1,762 @@
1
+ /**
2
+ * Attendance Schemas - Academics Service
3
+ *
4
+ * Zod schemas for attendance management DTOs.
5
+ */
6
+ import { z } from 'zod';
7
+ export declare const attendanceStatusSchema: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
8
+ export type AttendanceStatus = z.infer<typeof attendanceStatusSchema>;
9
+ export declare const attendanceTypeSchema: z.ZodEnum<["daily", "period", "event"]>;
10
+ export type AttendanceType = z.infer<typeof attendanceTypeSchema>;
11
+ export declare const excuseTypeSchema: z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>;
12
+ export type ExcuseType = z.infer<typeof excuseTypeSchema>;
13
+ export declare const createAttendanceSchema: z.ZodObject<{
14
+ studentId: z.ZodString;
15
+ date: z.ZodEffects<z.ZodString, string, string>;
16
+ status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
17
+ checkInTime: z.ZodOptional<z.ZodString>;
18
+ checkOutTime: z.ZodOptional<z.ZodString>;
19
+ minutesLate: z.ZodOptional<z.ZodNumber>;
20
+ minutesEarly: z.ZodOptional<z.ZodNumber>;
21
+ classroomId: z.ZodOptional<z.ZodString>;
22
+ periodId: z.ZodOptional<z.ZodString>;
23
+ periodNumber: z.ZodOptional<z.ZodNumber>;
24
+ attendanceType: z.ZodDefault<z.ZodEnum<["daily", "period", "event"]>>;
25
+ excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
26
+ excuseReason: z.ZodOptional<z.ZodString>;
27
+ excuseDocumentUrl: z.ZodOptional<z.ZodString>;
28
+ notes: z.ZodOptional<z.ZodString>;
29
+ parentNotified: z.ZodDefault<z.ZodBoolean>;
30
+ parentNotifiedAt: z.ZodOptional<z.ZodString>;
31
+ locationVerified: z.ZodDefault<z.ZodBoolean>;
32
+ schoolId: z.ZodString;
33
+ academicYearId: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
36
+ date: string;
37
+ schoolId: string;
38
+ studentId: string;
39
+ attendanceType: "daily" | "period" | "event";
40
+ parentNotified: boolean;
41
+ locationVerified: boolean;
42
+ notes?: string | undefined;
43
+ periodNumber?: number | undefined;
44
+ academicYearId?: string | undefined;
45
+ classroomId?: string | undefined;
46
+ checkInTime?: string | undefined;
47
+ checkOutTime?: string | undefined;
48
+ minutesLate?: number | undefined;
49
+ minutesEarly?: number | undefined;
50
+ periodId?: string | undefined;
51
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
52
+ excuseReason?: string | undefined;
53
+ excuseDocumentUrl?: string | undefined;
54
+ parentNotifiedAt?: string | undefined;
55
+ }, {
56
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
57
+ date: string;
58
+ schoolId: string;
59
+ studentId: string;
60
+ notes?: string | undefined;
61
+ periodNumber?: number | undefined;
62
+ academicYearId?: string | undefined;
63
+ classroomId?: string | undefined;
64
+ checkInTime?: string | undefined;
65
+ checkOutTime?: string | undefined;
66
+ minutesLate?: number | undefined;
67
+ minutesEarly?: number | undefined;
68
+ periodId?: string | undefined;
69
+ attendanceType?: "daily" | "period" | "event" | undefined;
70
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
71
+ excuseReason?: string | undefined;
72
+ excuseDocumentUrl?: string | undefined;
73
+ parentNotified?: boolean | undefined;
74
+ parentNotifiedAt?: string | undefined;
75
+ locationVerified?: boolean | undefined;
76
+ }>;
77
+ export type CreateAttendanceDto = z.infer<typeof createAttendanceSchema>;
78
+ export declare const updateAttendanceSchema: z.ZodObject<Omit<{
79
+ studentId: z.ZodOptional<z.ZodString>;
80
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
81
+ status: z.ZodOptional<z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>>;
82
+ checkInTime: z.ZodOptional<z.ZodOptional<z.ZodString>>;
83
+ checkOutTime: z.ZodOptional<z.ZodOptional<z.ZodString>>;
84
+ minutesLate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
85
+ minutesEarly: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
86
+ classroomId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
87
+ periodId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
88
+ periodNumber: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
89
+ attendanceType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["daily", "period", "event"]>>>;
90
+ excuseType: z.ZodOptional<z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>>;
91
+ excuseReason: z.ZodOptional<z.ZodOptional<z.ZodString>>;
92
+ excuseDocumentUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
93
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
94
+ parentNotified: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
95
+ parentNotifiedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
96
+ locationVerified: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
97
+ schoolId: z.ZodOptional<z.ZodString>;
98
+ academicYearId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
99
+ }, "date" | "schoolId" | "studentId">, "strip", z.ZodTypeAny, {
100
+ status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
101
+ notes?: string | undefined;
102
+ periodNumber?: number | undefined;
103
+ academicYearId?: string | undefined;
104
+ classroomId?: string | undefined;
105
+ checkInTime?: string | undefined;
106
+ checkOutTime?: string | undefined;
107
+ minutesLate?: number | undefined;
108
+ minutesEarly?: number | undefined;
109
+ periodId?: string | undefined;
110
+ attendanceType?: "daily" | "period" | "event" | undefined;
111
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
112
+ excuseReason?: string | undefined;
113
+ excuseDocumentUrl?: string | undefined;
114
+ parentNotified?: boolean | undefined;
115
+ parentNotifiedAt?: string | undefined;
116
+ locationVerified?: boolean | undefined;
117
+ }, {
118
+ status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
119
+ notes?: string | undefined;
120
+ periodNumber?: number | undefined;
121
+ academicYearId?: string | undefined;
122
+ classroomId?: string | undefined;
123
+ checkInTime?: string | undefined;
124
+ checkOutTime?: string | undefined;
125
+ minutesLate?: number | undefined;
126
+ minutesEarly?: number | undefined;
127
+ periodId?: string | undefined;
128
+ attendanceType?: "daily" | "period" | "event" | undefined;
129
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
130
+ excuseReason?: string | undefined;
131
+ excuseDocumentUrl?: string | undefined;
132
+ parentNotified?: boolean | undefined;
133
+ parentNotifiedAt?: string | undefined;
134
+ locationVerified?: boolean | undefined;
135
+ }>;
136
+ export type UpdateAttendanceDto = z.infer<typeof updateAttendanceSchema>;
137
+ export declare const attendanceResponseSchema: z.ZodObject<{
138
+ attendanceId: z.ZodString;
139
+ studentId: z.ZodString;
140
+ studentName: z.ZodOptional<z.ZodString>;
141
+ studentNumber: z.ZodOptional<z.ZodString>;
142
+ schoolId: z.ZodString;
143
+ academicYearId: z.ZodOptional<z.ZodString>;
144
+ date: z.ZodEffects<z.ZodString, string, string>;
145
+ dayOfWeek: z.ZodOptional<z.ZodNumber>;
146
+ status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
147
+ attendanceType: z.ZodEnum<["daily", "period", "event"]>;
148
+ checkInTime: z.ZodOptional<z.ZodString>;
149
+ checkOutTime: z.ZodOptional<z.ZodString>;
150
+ minutesLate: z.ZodOptional<z.ZodNumber>;
151
+ minutesEarly: z.ZodOptional<z.ZodNumber>;
152
+ classroomId: z.ZodOptional<z.ZodString>;
153
+ classroomName: z.ZodOptional<z.ZodString>;
154
+ periodId: z.ZodOptional<z.ZodString>;
155
+ periodNumber: z.ZodOptional<z.ZodNumber>;
156
+ excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
157
+ excuseReason: z.ZodOptional<z.ZodString>;
158
+ excuseDocumentUrl: z.ZodOptional<z.ZodString>;
159
+ notes: z.ZodOptional<z.ZodString>;
160
+ parentNotified: z.ZodBoolean;
161
+ parentNotifiedAt: z.ZodOptional<z.ZodString>;
162
+ locationVerified: z.ZodBoolean;
163
+ createdAt: z.ZodString;
164
+ updatedAt: z.ZodString;
165
+ createdBy: z.ZodOptional<z.ZodString>;
166
+ updatedBy: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
169
+ createdAt: string;
170
+ updatedAt: string;
171
+ date: string;
172
+ schoolId: string;
173
+ studentId: string;
174
+ attendanceType: "daily" | "period" | "event";
175
+ parentNotified: boolean;
176
+ locationVerified: boolean;
177
+ attendanceId: string;
178
+ createdBy?: string | undefined;
179
+ updatedBy?: string | undefined;
180
+ notes?: string | undefined;
181
+ periodNumber?: number | undefined;
182
+ dayOfWeek?: number | undefined;
183
+ academicYearId?: string | undefined;
184
+ studentNumber?: string | undefined;
185
+ classroomId?: string | undefined;
186
+ checkInTime?: string | undefined;
187
+ checkOutTime?: string | undefined;
188
+ minutesLate?: number | undefined;
189
+ minutesEarly?: number | undefined;
190
+ periodId?: string | undefined;
191
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
192
+ excuseReason?: string | undefined;
193
+ excuseDocumentUrl?: string | undefined;
194
+ parentNotifiedAt?: string | undefined;
195
+ studentName?: string | undefined;
196
+ classroomName?: string | undefined;
197
+ }, {
198
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
199
+ createdAt: string;
200
+ updatedAt: string;
201
+ date: string;
202
+ schoolId: string;
203
+ studentId: string;
204
+ attendanceType: "daily" | "period" | "event";
205
+ parentNotified: boolean;
206
+ locationVerified: boolean;
207
+ attendanceId: string;
208
+ createdBy?: string | undefined;
209
+ updatedBy?: string | undefined;
210
+ notes?: string | undefined;
211
+ periodNumber?: number | undefined;
212
+ dayOfWeek?: number | undefined;
213
+ academicYearId?: string | undefined;
214
+ studentNumber?: string | undefined;
215
+ classroomId?: string | undefined;
216
+ checkInTime?: string | undefined;
217
+ checkOutTime?: string | undefined;
218
+ minutesLate?: number | undefined;
219
+ minutesEarly?: number | undefined;
220
+ periodId?: string | undefined;
221
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
222
+ excuseReason?: string | undefined;
223
+ excuseDocumentUrl?: string | undefined;
224
+ parentNotifiedAt?: string | undefined;
225
+ studentName?: string | undefined;
226
+ classroomName?: string | undefined;
227
+ }>;
228
+ export type AttendanceResponseDto = z.infer<typeof attendanceResponseSchema>;
229
+ export declare const attendanceListResponseSchema: z.ZodObject<{
230
+ items: z.ZodArray<z.ZodObject<{
231
+ attendanceId: z.ZodString;
232
+ studentId: z.ZodString;
233
+ studentName: z.ZodOptional<z.ZodString>;
234
+ studentNumber: z.ZodOptional<z.ZodString>;
235
+ schoolId: z.ZodString;
236
+ academicYearId: z.ZodOptional<z.ZodString>;
237
+ date: z.ZodEffects<z.ZodString, string, string>;
238
+ dayOfWeek: z.ZodOptional<z.ZodNumber>;
239
+ status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
240
+ attendanceType: z.ZodEnum<["daily", "period", "event"]>;
241
+ checkInTime: z.ZodOptional<z.ZodString>;
242
+ checkOutTime: z.ZodOptional<z.ZodString>;
243
+ minutesLate: z.ZodOptional<z.ZodNumber>;
244
+ minutesEarly: z.ZodOptional<z.ZodNumber>;
245
+ classroomId: z.ZodOptional<z.ZodString>;
246
+ classroomName: z.ZodOptional<z.ZodString>;
247
+ periodId: z.ZodOptional<z.ZodString>;
248
+ periodNumber: z.ZodOptional<z.ZodNumber>;
249
+ excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
250
+ excuseReason: z.ZodOptional<z.ZodString>;
251
+ excuseDocumentUrl: z.ZodOptional<z.ZodString>;
252
+ notes: z.ZodOptional<z.ZodString>;
253
+ parentNotified: z.ZodBoolean;
254
+ parentNotifiedAt: z.ZodOptional<z.ZodString>;
255
+ locationVerified: z.ZodBoolean;
256
+ createdAt: z.ZodString;
257
+ updatedAt: z.ZodString;
258
+ createdBy: z.ZodOptional<z.ZodString>;
259
+ updatedBy: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
262
+ createdAt: string;
263
+ updatedAt: string;
264
+ date: string;
265
+ schoolId: string;
266
+ studentId: string;
267
+ attendanceType: "daily" | "period" | "event";
268
+ parentNotified: boolean;
269
+ locationVerified: boolean;
270
+ attendanceId: string;
271
+ createdBy?: string | undefined;
272
+ updatedBy?: string | undefined;
273
+ notes?: string | undefined;
274
+ periodNumber?: number | undefined;
275
+ dayOfWeek?: number | undefined;
276
+ academicYearId?: string | undefined;
277
+ studentNumber?: string | undefined;
278
+ classroomId?: string | undefined;
279
+ checkInTime?: string | undefined;
280
+ checkOutTime?: string | undefined;
281
+ minutesLate?: number | undefined;
282
+ minutesEarly?: number | undefined;
283
+ periodId?: string | undefined;
284
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
285
+ excuseReason?: string | undefined;
286
+ excuseDocumentUrl?: string | undefined;
287
+ parentNotifiedAt?: string | undefined;
288
+ studentName?: string | undefined;
289
+ classroomName?: string | undefined;
290
+ }, {
291
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
292
+ createdAt: string;
293
+ updatedAt: string;
294
+ date: string;
295
+ schoolId: string;
296
+ studentId: string;
297
+ attendanceType: "daily" | "period" | "event";
298
+ parentNotified: boolean;
299
+ locationVerified: boolean;
300
+ attendanceId: string;
301
+ createdBy?: string | undefined;
302
+ updatedBy?: string | undefined;
303
+ notes?: string | undefined;
304
+ periodNumber?: number | undefined;
305
+ dayOfWeek?: number | undefined;
306
+ academicYearId?: string | undefined;
307
+ studentNumber?: string | undefined;
308
+ classroomId?: string | undefined;
309
+ checkInTime?: string | undefined;
310
+ checkOutTime?: string | undefined;
311
+ minutesLate?: number | undefined;
312
+ minutesEarly?: number | undefined;
313
+ periodId?: string | undefined;
314
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
315
+ excuseReason?: string | undefined;
316
+ excuseDocumentUrl?: string | undefined;
317
+ parentNotifiedAt?: string | undefined;
318
+ studentName?: string | undefined;
319
+ classroomName?: string | undefined;
320
+ }>, "many">;
321
+ lastEvaluatedKey: z.ZodOptional<z.ZodString>;
322
+ hasMore: z.ZodBoolean;
323
+ total: z.ZodOptional<z.ZodNumber>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ items: {
326
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
327
+ createdAt: string;
328
+ updatedAt: string;
329
+ date: string;
330
+ schoolId: string;
331
+ studentId: string;
332
+ attendanceType: "daily" | "period" | "event";
333
+ parentNotified: boolean;
334
+ locationVerified: boolean;
335
+ attendanceId: string;
336
+ createdBy?: string | undefined;
337
+ updatedBy?: string | undefined;
338
+ notes?: string | undefined;
339
+ periodNumber?: number | undefined;
340
+ dayOfWeek?: number | undefined;
341
+ academicYearId?: string | undefined;
342
+ studentNumber?: string | undefined;
343
+ classroomId?: string | undefined;
344
+ checkInTime?: string | undefined;
345
+ checkOutTime?: string | undefined;
346
+ minutesLate?: number | undefined;
347
+ minutesEarly?: number | undefined;
348
+ periodId?: string | undefined;
349
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
350
+ excuseReason?: string | undefined;
351
+ excuseDocumentUrl?: string | undefined;
352
+ parentNotifiedAt?: string | undefined;
353
+ studentName?: string | undefined;
354
+ classroomName?: string | undefined;
355
+ }[];
356
+ hasMore: boolean;
357
+ lastEvaluatedKey?: string | undefined;
358
+ total?: number | undefined;
359
+ }, {
360
+ items: {
361
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
362
+ createdAt: string;
363
+ updatedAt: string;
364
+ date: string;
365
+ schoolId: string;
366
+ studentId: string;
367
+ attendanceType: "daily" | "period" | "event";
368
+ parentNotified: boolean;
369
+ locationVerified: boolean;
370
+ attendanceId: string;
371
+ createdBy?: string | undefined;
372
+ updatedBy?: string | undefined;
373
+ notes?: string | undefined;
374
+ periodNumber?: number | undefined;
375
+ dayOfWeek?: number | undefined;
376
+ academicYearId?: string | undefined;
377
+ studentNumber?: string | undefined;
378
+ classroomId?: string | undefined;
379
+ checkInTime?: string | undefined;
380
+ checkOutTime?: string | undefined;
381
+ minutesLate?: number | undefined;
382
+ minutesEarly?: number | undefined;
383
+ periodId?: string | undefined;
384
+ excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
385
+ excuseReason?: string | undefined;
386
+ excuseDocumentUrl?: string | undefined;
387
+ parentNotifiedAt?: string | undefined;
388
+ studentName?: string | undefined;
389
+ classroomName?: string | undefined;
390
+ }[];
391
+ hasMore: boolean;
392
+ lastEvaluatedKey?: string | undefined;
393
+ total?: number | undefined;
394
+ }>;
395
+ export type AttendanceListResponseDto = z.infer<typeof attendanceListResponseSchema>;
396
+ export declare const bulkAttendanceRecordSchema: z.ZodObject<{
397
+ studentId: z.ZodString;
398
+ status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
399
+ checkInTime: z.ZodOptional<z.ZodString>;
400
+ minutesLate: z.ZodOptional<z.ZodNumber>;
401
+ notes: z.ZodOptional<z.ZodString>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
404
+ studentId: string;
405
+ notes?: string | undefined;
406
+ checkInTime?: string | undefined;
407
+ minutesLate?: number | undefined;
408
+ }, {
409
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
410
+ studentId: string;
411
+ notes?: string | undefined;
412
+ checkInTime?: string | undefined;
413
+ minutesLate?: number | undefined;
414
+ }>;
415
+ export type BulkAttendanceRecordDto = z.infer<typeof bulkAttendanceRecordSchema>;
416
+ export declare const bulkAttendanceSchema: z.ZodObject<{
417
+ date: z.ZodEffects<z.ZodString, string, string>;
418
+ schoolId: z.ZodString;
419
+ classroomId: z.ZodOptional<z.ZodString>;
420
+ periodNumber: z.ZodOptional<z.ZodNumber>;
421
+ attendanceType: z.ZodDefault<z.ZodEnum<["daily", "period", "event"]>>;
422
+ records: z.ZodArray<z.ZodObject<{
423
+ studentId: z.ZodString;
424
+ status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
425
+ checkInTime: z.ZodOptional<z.ZodString>;
426
+ minutesLate: z.ZodOptional<z.ZodNumber>;
427
+ notes: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
430
+ studentId: string;
431
+ notes?: string | undefined;
432
+ checkInTime?: string | undefined;
433
+ minutesLate?: number | undefined;
434
+ }, {
435
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
436
+ studentId: string;
437
+ notes?: string | undefined;
438
+ checkInTime?: string | undefined;
439
+ minutesLate?: number | undefined;
440
+ }>, "many">;
441
+ }, "strip", z.ZodTypeAny, {
442
+ date: string;
443
+ schoolId: string;
444
+ attendanceType: "daily" | "period" | "event";
445
+ records: {
446
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
447
+ studentId: string;
448
+ notes?: string | undefined;
449
+ checkInTime?: string | undefined;
450
+ minutesLate?: number | undefined;
451
+ }[];
452
+ periodNumber?: number | undefined;
453
+ classroomId?: string | undefined;
454
+ }, {
455
+ date: string;
456
+ schoolId: string;
457
+ records: {
458
+ status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
459
+ studentId: string;
460
+ notes?: string | undefined;
461
+ checkInTime?: string | undefined;
462
+ minutesLate?: number | undefined;
463
+ }[];
464
+ periodNumber?: number | undefined;
465
+ classroomId?: string | undefined;
466
+ attendanceType?: "daily" | "period" | "event" | undefined;
467
+ }>;
468
+ export type BulkAttendanceDto = z.infer<typeof bulkAttendanceSchema>;
469
+ export declare const attendanceFilterSchema: z.ZodObject<{
470
+ schoolId: z.ZodOptional<z.ZodString>;
471
+ studentId: z.ZodOptional<z.ZodString>;
472
+ classroomId: z.ZodOptional<z.ZodString>;
473
+ gradeLevel: z.ZodOptional<z.ZodString>;
474
+ status: z.ZodOptional<z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>>;
475
+ attendanceType: z.ZodOptional<z.ZodEnum<["daily", "period", "event"]>>;
476
+ dateFrom: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
477
+ dateTo: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
478
+ academicYearId: z.ZodOptional<z.ZodString>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
481
+ schoolId?: string | undefined;
482
+ academicYearId?: string | undefined;
483
+ studentId?: string | undefined;
484
+ gradeLevel?: string | undefined;
485
+ classroomId?: string | undefined;
486
+ attendanceType?: "daily" | "period" | "event" | undefined;
487
+ dateFrom?: string | undefined;
488
+ dateTo?: string | undefined;
489
+ }, {
490
+ status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
491
+ schoolId?: string | undefined;
492
+ academicYearId?: string | undefined;
493
+ studentId?: string | undefined;
494
+ gradeLevel?: string | undefined;
495
+ classroomId?: string | undefined;
496
+ attendanceType?: "daily" | "period" | "event" | undefined;
497
+ dateFrom?: string | undefined;
498
+ dateTo?: string | undefined;
499
+ }>;
500
+ export type AttendanceFilterDto = z.infer<typeof attendanceFilterSchema>;
501
+ export declare const attendanceSummarySchema: z.ZodObject<{
502
+ studentId: z.ZodString;
503
+ studentName: z.ZodString;
504
+ totalDays: z.ZodNumber;
505
+ presentDays: z.ZodNumber;
506
+ absentDays: z.ZodNumber;
507
+ tardyDays: z.ZodNumber;
508
+ excusedDays: z.ZodNumber;
509
+ attendanceRate: z.ZodNumber;
510
+ dateRange: z.ZodObject<{
511
+ from: z.ZodEffects<z.ZodString, string, string>;
512
+ to: z.ZodEffects<z.ZodString, string, string>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ from: string;
515
+ to: string;
516
+ }, {
517
+ from: string;
518
+ to: string;
519
+ }>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ totalDays: number;
522
+ studentId: string;
523
+ attendanceRate: number;
524
+ studentName: string;
525
+ presentDays: number;
526
+ absentDays: number;
527
+ tardyDays: number;
528
+ excusedDays: number;
529
+ dateRange: {
530
+ from: string;
531
+ to: string;
532
+ };
533
+ }, {
534
+ totalDays: number;
535
+ studentId: string;
536
+ attendanceRate: number;
537
+ studentName: string;
538
+ presentDays: number;
539
+ absentDays: number;
540
+ tardyDays: number;
541
+ excusedDays: number;
542
+ dateRange: {
543
+ from: string;
544
+ to: string;
545
+ };
546
+ }>;
547
+ export type AttendanceSummaryDto = z.infer<typeof attendanceSummarySchema>;
548
+ export declare const bulkAttendanceResponseSchema: z.ZodObject<{
549
+ success: z.ZodDefault<z.ZodBoolean>;
550
+ date: z.ZodEffects<z.ZodString, string, string>;
551
+ schoolId: z.ZodString;
552
+ totalProcessed: z.ZodNumber;
553
+ recordsCreated: z.ZodNumber;
554
+ recordsUpdated: z.ZodNumber;
555
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
556
+ studentId: z.ZodString;
557
+ error: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ error: string;
560
+ studentId: string;
561
+ }, {
562
+ error: string;
563
+ studentId: string;
564
+ }>, "many">>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ date: string;
567
+ schoolId: string;
568
+ success: boolean;
569
+ totalProcessed: number;
570
+ recordsCreated: number;
571
+ recordsUpdated: number;
572
+ errors: {
573
+ error: string;
574
+ studentId: string;
575
+ }[];
576
+ }, {
577
+ date: string;
578
+ schoolId: string;
579
+ totalProcessed: number;
580
+ recordsCreated: number;
581
+ recordsUpdated: number;
582
+ success?: boolean | undefined;
583
+ errors?: {
584
+ error: string;
585
+ studentId: string;
586
+ }[] | undefined;
587
+ }>;
588
+ export type BulkAttendanceResponseDto = z.infer<typeof bulkAttendanceResponseSchema>;
589
+ export declare const dailyAttendanceSummarySchema: z.ZodObject<{
590
+ date: z.ZodEffects<z.ZodString, string, string>;
591
+ schoolId: z.ZodString;
592
+ totalStudents: z.ZodNumber;
593
+ present: z.ZodNumber;
594
+ absent: z.ZodNumber;
595
+ late: z.ZodNumber;
596
+ excused: z.ZodNumber;
597
+ halfDay: z.ZodNumber;
598
+ attendanceRate: z.ZodNumber;
599
+ byGradeLevel: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
600
+ total: z.ZodNumber;
601
+ present: z.ZodNumber;
602
+ absent: z.ZodNumber;
603
+ rate: z.ZodNumber;
604
+ }, "strip", z.ZodTypeAny, {
605
+ total: number;
606
+ present: number;
607
+ absent: number;
608
+ rate: number;
609
+ }, {
610
+ total: number;
611
+ present: number;
612
+ absent: number;
613
+ rate: number;
614
+ }>>>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ date: string;
617
+ schoolId: string;
618
+ present: number;
619
+ absent: number;
620
+ late: number;
621
+ excused: number;
622
+ attendanceRate: number;
623
+ totalStudents: number;
624
+ halfDay: number;
625
+ byGradeLevel?: Record<string, {
626
+ total: number;
627
+ present: number;
628
+ absent: number;
629
+ rate: number;
630
+ }> | undefined;
631
+ }, {
632
+ date: string;
633
+ schoolId: string;
634
+ present: number;
635
+ absent: number;
636
+ late: number;
637
+ excused: number;
638
+ attendanceRate: number;
639
+ totalStudents: number;
640
+ halfDay: number;
641
+ byGradeLevel?: Record<string, {
642
+ total: number;
643
+ present: number;
644
+ absent: number;
645
+ rate: number;
646
+ }> | undefined;
647
+ }>;
648
+ export type DailyAttendanceSummaryDto = z.infer<typeof dailyAttendanceSummarySchema>;
649
+ export declare const studentAttendanceSummarySchema: z.ZodObject<{
650
+ studentId: z.ZodString;
651
+ studentName: z.ZodString;
652
+ schoolId: z.ZodString;
653
+ academicYearId: z.ZodOptional<z.ZodString>;
654
+ totalDays: z.ZodNumber;
655
+ present: z.ZodNumber;
656
+ absent: z.ZodNumber;
657
+ late: z.ZodNumber;
658
+ excused: z.ZodNumber;
659
+ halfDay: z.ZodNumber;
660
+ attendanceRate: z.ZodNumber;
661
+ dateRange: z.ZodObject<{
662
+ start: z.ZodEffects<z.ZodString, string, string>;
663
+ end: z.ZodEffects<z.ZodString, string, string>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ start: string;
666
+ end: string;
667
+ }, {
668
+ start: string;
669
+ end: string;
670
+ }>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ schoolId: string;
673
+ totalDays: number;
674
+ studentId: string;
675
+ present: number;
676
+ absent: number;
677
+ late: number;
678
+ excused: number;
679
+ attendanceRate: number;
680
+ studentName: string;
681
+ dateRange: {
682
+ start: string;
683
+ end: string;
684
+ };
685
+ halfDay: number;
686
+ academicYearId?: string | undefined;
687
+ }, {
688
+ schoolId: string;
689
+ totalDays: number;
690
+ studentId: string;
691
+ present: number;
692
+ absent: number;
693
+ late: number;
694
+ excused: number;
695
+ attendanceRate: number;
696
+ studentName: string;
697
+ dateRange: {
698
+ start: string;
699
+ end: string;
700
+ };
701
+ halfDay: number;
702
+ academicYearId?: string | undefined;
703
+ }>;
704
+ export type StudentAttendanceSummaryDto = z.infer<typeof studentAttendanceSummarySchema>;
705
+ export declare const dailyAttendanceReportSchema: z.ZodObject<{
706
+ date: z.ZodEffects<z.ZodString, string, string>;
707
+ schoolId: z.ZodString;
708
+ totalStudents: z.ZodNumber;
709
+ presentCount: z.ZodNumber;
710
+ absentCount: z.ZodNumber;
711
+ tardyCount: z.ZodNumber;
712
+ excusedCount: z.ZodNumber;
713
+ attendanceRate: z.ZodNumber;
714
+ byGradeLevel: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
715
+ total: z.ZodNumber;
716
+ present: z.ZodNumber;
717
+ absent: z.ZodNumber;
718
+ rate: z.ZodNumber;
719
+ }, "strip", z.ZodTypeAny, {
720
+ total: number;
721
+ present: number;
722
+ absent: number;
723
+ rate: number;
724
+ }, {
725
+ total: number;
726
+ present: number;
727
+ absent: number;
728
+ rate: number;
729
+ }>>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ date: string;
732
+ schoolId: string;
733
+ attendanceRate: number;
734
+ totalStudents: number;
735
+ presentCount: number;
736
+ absentCount: number;
737
+ tardyCount: number;
738
+ excusedCount: number;
739
+ byGradeLevel?: Record<string, {
740
+ total: number;
741
+ present: number;
742
+ absent: number;
743
+ rate: number;
744
+ }> | undefined;
745
+ }, {
746
+ date: string;
747
+ schoolId: string;
748
+ attendanceRate: number;
749
+ totalStudents: number;
750
+ presentCount: number;
751
+ absentCount: number;
752
+ tardyCount: number;
753
+ excusedCount: number;
754
+ byGradeLevel?: Record<string, {
755
+ total: number;
756
+ present: number;
757
+ absent: number;
758
+ rate: number;
759
+ }> | undefined;
760
+ }>;
761
+ export type DailyAttendanceReportDto = z.infer<typeof dailyAttendanceReportSchema>;
762
+ //# sourceMappingURL=attendance.schema.d.ts.map