@aibrains/shared-types 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas/academics/assignment.schema.d.ts +2 -2
- package/dist/schemas/academics/attendance.schema.d.ts +10 -10
- package/dist/schemas/academics/grade.schema.d.ts +23 -23
- package/dist/schemas/academics/student.schema.d.ts +278 -26
- package/dist/schemas/academics/student.schema.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +15 -1
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +5 -1
- package/dist/schemas/common.js.map +1 -1
- package/dist/schemas/enrollment/enrollment.schema.d.ts +133 -21
- package/dist/schemas/enrollment/enrollment.schema.d.ts.map +1 -1
- package/dist/schemas/enrollment/enrollment.schema.js +1 -1
- package/dist/schemas/enrollment/enrollment.schema.js.map +1 -1
- package/dist/schemas/identity/role.schema.d.ts +12 -12
- package/dist/schemas/identity/user.schema.d.ts +248 -0
- package/dist/schemas/identity/user.schema.d.ts.map +1 -1
- package/dist/schemas/identity/user.schema.js +35 -1
- package/dist/schemas/identity/user.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export declare const guardianSchema: z.ZodObject<{
|
|
|
24
24
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
25
25
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
26
26
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
28
28
|
street1: z.ZodOptional<z.ZodString>;
|
|
29
29
|
street2: z.ZodOptional<z.ZodString>;
|
|
30
30
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -45,6 +45,20 @@ export declare const guardianSchema: z.ZodObject<{
|
|
|
45
45
|
state?: string | undefined;
|
|
46
46
|
zipCode?: string | undefined;
|
|
47
47
|
country?: string | undefined;
|
|
48
|
+
}>, {
|
|
49
|
+
street1?: string | undefined;
|
|
50
|
+
street2?: string | undefined;
|
|
51
|
+
city?: string | undefined;
|
|
52
|
+
state?: string | undefined;
|
|
53
|
+
zipCode?: string | undefined;
|
|
54
|
+
country?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
street1?: string | undefined;
|
|
57
|
+
street2?: string | undefined;
|
|
58
|
+
city?: string | undefined;
|
|
59
|
+
state?: string | undefined;
|
|
60
|
+
zipCode?: string | undefined;
|
|
61
|
+
country?: string | undefined;
|
|
48
62
|
}>>;
|
|
49
63
|
employer: z.ZodOptional<z.ZodString>;
|
|
50
64
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -159,7 +173,7 @@ export declare const studentContactInfoSchema: z.ZodObject<{
|
|
|
159
173
|
email: z.ZodOptional<z.ZodString>;
|
|
160
174
|
phone: z.ZodOptional<z.ZodString>;
|
|
161
175
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
162
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
163
177
|
street1: z.ZodOptional<z.ZodString>;
|
|
164
178
|
street2: z.ZodOptional<z.ZodString>;
|
|
165
179
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -180,8 +194,22 @@ export declare const studentContactInfoSchema: z.ZodObject<{
|
|
|
180
194
|
state?: string | undefined;
|
|
181
195
|
zipCode?: string | undefined;
|
|
182
196
|
country?: string | undefined;
|
|
197
|
+
}>, {
|
|
198
|
+
street1?: string | undefined;
|
|
199
|
+
street2?: string | undefined;
|
|
200
|
+
city?: string | undefined;
|
|
201
|
+
state?: string | undefined;
|
|
202
|
+
zipCode?: string | undefined;
|
|
203
|
+
country?: string | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
street1?: string | undefined;
|
|
206
|
+
street2?: string | undefined;
|
|
207
|
+
city?: string | undefined;
|
|
208
|
+
state?: string | undefined;
|
|
209
|
+
zipCode?: string | undefined;
|
|
210
|
+
country?: string | undefined;
|
|
183
211
|
}>>;
|
|
184
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
185
213
|
street1: z.ZodOptional<z.ZodString>;
|
|
186
214
|
street2: z.ZodOptional<z.ZodString>;
|
|
187
215
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -202,6 +230,20 @@ export declare const studentContactInfoSchema: z.ZodObject<{
|
|
|
202
230
|
state?: string | undefined;
|
|
203
231
|
zipCode?: string | undefined;
|
|
204
232
|
country?: string | undefined;
|
|
233
|
+
}>, {
|
|
234
|
+
street1?: string | undefined;
|
|
235
|
+
street2?: string | undefined;
|
|
236
|
+
city?: string | undefined;
|
|
237
|
+
state?: string | undefined;
|
|
238
|
+
zipCode?: string | undefined;
|
|
239
|
+
country?: string | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
street1?: string | undefined;
|
|
242
|
+
street2?: string | undefined;
|
|
243
|
+
city?: string | undefined;
|
|
244
|
+
state?: string | undefined;
|
|
245
|
+
zipCode?: string | undefined;
|
|
246
|
+
country?: string | undefined;
|
|
205
247
|
}>>;
|
|
206
248
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
207
249
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -264,7 +306,7 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
264
306
|
email: z.ZodOptional<z.ZodString>;
|
|
265
307
|
phone: z.ZodOptional<z.ZodString>;
|
|
266
308
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
267
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
268
310
|
street1: z.ZodOptional<z.ZodString>;
|
|
269
311
|
street2: z.ZodOptional<z.ZodString>;
|
|
270
312
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -285,8 +327,22 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
285
327
|
state?: string | undefined;
|
|
286
328
|
zipCode?: string | undefined;
|
|
287
329
|
country?: string | undefined;
|
|
330
|
+
}>, {
|
|
331
|
+
street1?: string | undefined;
|
|
332
|
+
street2?: string | undefined;
|
|
333
|
+
city?: string | undefined;
|
|
334
|
+
state?: string | undefined;
|
|
335
|
+
zipCode?: string | undefined;
|
|
336
|
+
country?: string | undefined;
|
|
337
|
+
}, {
|
|
338
|
+
street1?: string | undefined;
|
|
339
|
+
street2?: string | undefined;
|
|
340
|
+
city?: string | undefined;
|
|
341
|
+
state?: string | undefined;
|
|
342
|
+
zipCode?: string | undefined;
|
|
343
|
+
country?: string | undefined;
|
|
288
344
|
}>>;
|
|
289
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
290
346
|
street1: z.ZodOptional<z.ZodString>;
|
|
291
347
|
street2: z.ZodOptional<z.ZodString>;
|
|
292
348
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -307,6 +363,20 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
307
363
|
state?: string | undefined;
|
|
308
364
|
zipCode?: string | undefined;
|
|
309
365
|
country?: string | undefined;
|
|
366
|
+
}>, {
|
|
367
|
+
street1?: string | undefined;
|
|
368
|
+
street2?: string | undefined;
|
|
369
|
+
city?: string | undefined;
|
|
370
|
+
state?: string | undefined;
|
|
371
|
+
zipCode?: string | undefined;
|
|
372
|
+
country?: string | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
street1?: string | undefined;
|
|
375
|
+
street2?: string | undefined;
|
|
376
|
+
city?: string | undefined;
|
|
377
|
+
state?: string | undefined;
|
|
378
|
+
zipCode?: string | undefined;
|
|
379
|
+
country?: string | undefined;
|
|
310
380
|
}>>;
|
|
311
381
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
312
382
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -364,7 +434,7 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
364
434
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
365
435
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
366
436
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
367
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
437
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
368
438
|
street1: z.ZodOptional<z.ZodString>;
|
|
369
439
|
street2: z.ZodOptional<z.ZodString>;
|
|
370
440
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -385,6 +455,20 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
385
455
|
state?: string | undefined;
|
|
386
456
|
zipCode?: string | undefined;
|
|
387
457
|
country?: string | undefined;
|
|
458
|
+
}>, {
|
|
459
|
+
street1?: string | undefined;
|
|
460
|
+
street2?: string | undefined;
|
|
461
|
+
city?: string | undefined;
|
|
462
|
+
state?: string | undefined;
|
|
463
|
+
zipCode?: string | undefined;
|
|
464
|
+
country?: string | undefined;
|
|
465
|
+
}, {
|
|
466
|
+
street1?: string | undefined;
|
|
467
|
+
street2?: string | undefined;
|
|
468
|
+
city?: string | undefined;
|
|
469
|
+
state?: string | undefined;
|
|
470
|
+
zipCode?: string | undefined;
|
|
471
|
+
country?: string | undefined;
|
|
388
472
|
}>>;
|
|
389
473
|
employer: z.ZodOptional<z.ZodString>;
|
|
390
474
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -693,7 +777,7 @@ export declare const updateStudentSchema: z.ZodObject<Omit<{
|
|
|
693
777
|
email: z.ZodOptional<z.ZodString>;
|
|
694
778
|
phone: z.ZodOptional<z.ZodString>;
|
|
695
779
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
696
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
780
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
697
781
|
street1: z.ZodOptional<z.ZodString>;
|
|
698
782
|
street2: z.ZodOptional<z.ZodString>;
|
|
699
783
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -714,8 +798,22 @@ export declare const updateStudentSchema: z.ZodObject<Omit<{
|
|
|
714
798
|
state?: string | undefined;
|
|
715
799
|
zipCode?: string | undefined;
|
|
716
800
|
country?: string | undefined;
|
|
801
|
+
}>, {
|
|
802
|
+
street1?: string | undefined;
|
|
803
|
+
street2?: string | undefined;
|
|
804
|
+
city?: string | undefined;
|
|
805
|
+
state?: string | undefined;
|
|
806
|
+
zipCode?: string | undefined;
|
|
807
|
+
country?: string | undefined;
|
|
808
|
+
}, {
|
|
809
|
+
street1?: string | undefined;
|
|
810
|
+
street2?: string | undefined;
|
|
811
|
+
city?: string | undefined;
|
|
812
|
+
state?: string | undefined;
|
|
813
|
+
zipCode?: string | undefined;
|
|
814
|
+
country?: string | undefined;
|
|
717
815
|
}>>;
|
|
718
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
816
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
719
817
|
street1: z.ZodOptional<z.ZodString>;
|
|
720
818
|
street2: z.ZodOptional<z.ZodString>;
|
|
721
819
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -736,6 +834,20 @@ export declare const updateStudentSchema: z.ZodObject<Omit<{
|
|
|
736
834
|
state?: string | undefined;
|
|
737
835
|
zipCode?: string | undefined;
|
|
738
836
|
country?: string | undefined;
|
|
837
|
+
}>, {
|
|
838
|
+
street1?: string | undefined;
|
|
839
|
+
street2?: string | undefined;
|
|
840
|
+
city?: string | undefined;
|
|
841
|
+
state?: string | undefined;
|
|
842
|
+
zipCode?: string | undefined;
|
|
843
|
+
country?: string | undefined;
|
|
844
|
+
}, {
|
|
845
|
+
street1?: string | undefined;
|
|
846
|
+
street2?: string | undefined;
|
|
847
|
+
city?: string | undefined;
|
|
848
|
+
state?: string | undefined;
|
|
849
|
+
zipCode?: string | undefined;
|
|
850
|
+
country?: string | undefined;
|
|
739
851
|
}>>;
|
|
740
852
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
741
853
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -793,7 +905,7 @@ export declare const updateStudentSchema: z.ZodObject<Omit<{
|
|
|
793
905
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
794
906
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
795
907
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
796
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
797
909
|
street1: z.ZodOptional<z.ZodString>;
|
|
798
910
|
street2: z.ZodOptional<z.ZodString>;
|
|
799
911
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -814,6 +926,20 @@ export declare const updateStudentSchema: z.ZodObject<Omit<{
|
|
|
814
926
|
state?: string | undefined;
|
|
815
927
|
zipCode?: string | undefined;
|
|
816
928
|
country?: string | undefined;
|
|
929
|
+
}>, {
|
|
930
|
+
street1?: string | undefined;
|
|
931
|
+
street2?: string | undefined;
|
|
932
|
+
city?: string | undefined;
|
|
933
|
+
state?: string | undefined;
|
|
934
|
+
zipCode?: string | undefined;
|
|
935
|
+
country?: string | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
street1?: string | undefined;
|
|
938
|
+
street2?: string | undefined;
|
|
939
|
+
city?: string | undefined;
|
|
940
|
+
state?: string | undefined;
|
|
941
|
+
zipCode?: string | undefined;
|
|
942
|
+
country?: string | undefined;
|
|
817
943
|
}>>;
|
|
818
944
|
employer: z.ZodOptional<z.ZodString>;
|
|
819
945
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -1124,7 +1250,7 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1124
1250
|
email: z.ZodOptional<z.ZodString>;
|
|
1125
1251
|
phone: z.ZodOptional<z.ZodString>;
|
|
1126
1252
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
1127
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1253
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1128
1254
|
street1: z.ZodOptional<z.ZodString>;
|
|
1129
1255
|
street2: z.ZodOptional<z.ZodString>;
|
|
1130
1256
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1145,8 +1271,22 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1145
1271
|
state?: string | undefined;
|
|
1146
1272
|
zipCode?: string | undefined;
|
|
1147
1273
|
country?: string | undefined;
|
|
1274
|
+
}>, {
|
|
1275
|
+
street1?: string | undefined;
|
|
1276
|
+
street2?: string | undefined;
|
|
1277
|
+
city?: string | undefined;
|
|
1278
|
+
state?: string | undefined;
|
|
1279
|
+
zipCode?: string | undefined;
|
|
1280
|
+
country?: string | undefined;
|
|
1281
|
+
}, {
|
|
1282
|
+
street1?: string | undefined;
|
|
1283
|
+
street2?: string | undefined;
|
|
1284
|
+
city?: string | undefined;
|
|
1285
|
+
state?: string | undefined;
|
|
1286
|
+
zipCode?: string | undefined;
|
|
1287
|
+
country?: string | undefined;
|
|
1148
1288
|
}>>;
|
|
1149
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
1289
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1150
1290
|
street1: z.ZodOptional<z.ZodString>;
|
|
1151
1291
|
street2: z.ZodOptional<z.ZodString>;
|
|
1152
1292
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1167,6 +1307,20 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1167
1307
|
state?: string | undefined;
|
|
1168
1308
|
zipCode?: string | undefined;
|
|
1169
1309
|
country?: string | undefined;
|
|
1310
|
+
}>, {
|
|
1311
|
+
street1?: string | undefined;
|
|
1312
|
+
street2?: string | undefined;
|
|
1313
|
+
city?: string | undefined;
|
|
1314
|
+
state?: string | undefined;
|
|
1315
|
+
zipCode?: string | undefined;
|
|
1316
|
+
country?: string | undefined;
|
|
1317
|
+
}, {
|
|
1318
|
+
street1?: string | undefined;
|
|
1319
|
+
street2?: string | undefined;
|
|
1320
|
+
city?: string | undefined;
|
|
1321
|
+
state?: string | undefined;
|
|
1322
|
+
zipCode?: string | undefined;
|
|
1323
|
+
country?: string | undefined;
|
|
1170
1324
|
}>>;
|
|
1171
1325
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
1172
1326
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1224,7 +1378,7 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1224
1378
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1225
1379
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
1226
1380
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
1227
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1381
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1228
1382
|
street1: z.ZodOptional<z.ZodString>;
|
|
1229
1383
|
street2: z.ZodOptional<z.ZodString>;
|
|
1230
1384
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1245,6 +1399,20 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1245
1399
|
state?: string | undefined;
|
|
1246
1400
|
zipCode?: string | undefined;
|
|
1247
1401
|
country?: string | undefined;
|
|
1402
|
+
}>, {
|
|
1403
|
+
street1?: string | undefined;
|
|
1404
|
+
street2?: string | undefined;
|
|
1405
|
+
city?: string | undefined;
|
|
1406
|
+
state?: string | undefined;
|
|
1407
|
+
zipCode?: string | undefined;
|
|
1408
|
+
country?: string | undefined;
|
|
1409
|
+
}, {
|
|
1410
|
+
street1?: string | undefined;
|
|
1411
|
+
street2?: string | undefined;
|
|
1412
|
+
city?: string | undefined;
|
|
1413
|
+
state?: string | undefined;
|
|
1414
|
+
zipCode?: string | undefined;
|
|
1415
|
+
country?: string | undefined;
|
|
1248
1416
|
}>>;
|
|
1249
1417
|
employer: z.ZodOptional<z.ZodString>;
|
|
1250
1418
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -1374,9 +1542,9 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1374
1542
|
firstName: string;
|
|
1375
1543
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
1376
1544
|
lastName: string;
|
|
1545
|
+
studentId: string;
|
|
1377
1546
|
dateOfBirth: string;
|
|
1378
1547
|
currentGradeLevel: string;
|
|
1379
|
-
studentId: string;
|
|
1380
1548
|
fullName: string;
|
|
1381
1549
|
createdBy?: string | undefined;
|
|
1382
1550
|
updatedBy?: string | undefined;
|
|
@@ -1469,9 +1637,9 @@ export declare const studentResponseSchema: z.ZodObject<{
|
|
|
1469
1637
|
firstName: string;
|
|
1470
1638
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
1471
1639
|
lastName: string;
|
|
1640
|
+
studentId: string;
|
|
1472
1641
|
dateOfBirth: string;
|
|
1473
1642
|
currentGradeLevel: string;
|
|
1474
|
-
studentId: string;
|
|
1475
1643
|
fullName: string;
|
|
1476
1644
|
createdBy?: string | undefined;
|
|
1477
1645
|
updatedBy?: string | undefined;
|
|
@@ -1578,7 +1746,7 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1578
1746
|
email: z.ZodOptional<z.ZodString>;
|
|
1579
1747
|
phone: z.ZodOptional<z.ZodString>;
|
|
1580
1748
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
1581
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1749
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1582
1750
|
street1: z.ZodOptional<z.ZodString>;
|
|
1583
1751
|
street2: z.ZodOptional<z.ZodString>;
|
|
1584
1752
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1599,8 +1767,22 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1599
1767
|
state?: string | undefined;
|
|
1600
1768
|
zipCode?: string | undefined;
|
|
1601
1769
|
country?: string | undefined;
|
|
1770
|
+
}>, {
|
|
1771
|
+
street1?: string | undefined;
|
|
1772
|
+
street2?: string | undefined;
|
|
1773
|
+
city?: string | undefined;
|
|
1774
|
+
state?: string | undefined;
|
|
1775
|
+
zipCode?: string | undefined;
|
|
1776
|
+
country?: string | undefined;
|
|
1777
|
+
}, {
|
|
1778
|
+
street1?: string | undefined;
|
|
1779
|
+
street2?: string | undefined;
|
|
1780
|
+
city?: string | undefined;
|
|
1781
|
+
state?: string | undefined;
|
|
1782
|
+
zipCode?: string | undefined;
|
|
1783
|
+
country?: string | undefined;
|
|
1602
1784
|
}>>;
|
|
1603
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
1785
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1604
1786
|
street1: z.ZodOptional<z.ZodString>;
|
|
1605
1787
|
street2: z.ZodOptional<z.ZodString>;
|
|
1606
1788
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1621,6 +1803,20 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1621
1803
|
state?: string | undefined;
|
|
1622
1804
|
zipCode?: string | undefined;
|
|
1623
1805
|
country?: string | undefined;
|
|
1806
|
+
}>, {
|
|
1807
|
+
street1?: string | undefined;
|
|
1808
|
+
street2?: string | undefined;
|
|
1809
|
+
city?: string | undefined;
|
|
1810
|
+
state?: string | undefined;
|
|
1811
|
+
zipCode?: string | undefined;
|
|
1812
|
+
country?: string | undefined;
|
|
1813
|
+
}, {
|
|
1814
|
+
street1?: string | undefined;
|
|
1815
|
+
street2?: string | undefined;
|
|
1816
|
+
city?: string | undefined;
|
|
1817
|
+
state?: string | undefined;
|
|
1818
|
+
zipCode?: string | undefined;
|
|
1819
|
+
country?: string | undefined;
|
|
1624
1820
|
}>>;
|
|
1625
1821
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
1626
1822
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1678,7 +1874,7 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1678
1874
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1679
1875
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
1680
1876
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
1681
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1877
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1682
1878
|
street1: z.ZodOptional<z.ZodString>;
|
|
1683
1879
|
street2: z.ZodOptional<z.ZodString>;
|
|
1684
1880
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -1699,6 +1895,20 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1699
1895
|
state?: string | undefined;
|
|
1700
1896
|
zipCode?: string | undefined;
|
|
1701
1897
|
country?: string | undefined;
|
|
1898
|
+
}>, {
|
|
1899
|
+
street1?: string | undefined;
|
|
1900
|
+
street2?: string | undefined;
|
|
1901
|
+
city?: string | undefined;
|
|
1902
|
+
state?: string | undefined;
|
|
1903
|
+
zipCode?: string | undefined;
|
|
1904
|
+
country?: string | undefined;
|
|
1905
|
+
}, {
|
|
1906
|
+
street1?: string | undefined;
|
|
1907
|
+
street2?: string | undefined;
|
|
1908
|
+
city?: string | undefined;
|
|
1909
|
+
state?: string | undefined;
|
|
1910
|
+
zipCode?: string | undefined;
|
|
1911
|
+
country?: string | undefined;
|
|
1702
1912
|
}>>;
|
|
1703
1913
|
employer: z.ZodOptional<z.ZodString>;
|
|
1704
1914
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -1828,9 +2038,9 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1828
2038
|
firstName: string;
|
|
1829
2039
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
1830
2040
|
lastName: string;
|
|
2041
|
+
studentId: string;
|
|
1831
2042
|
dateOfBirth: string;
|
|
1832
2043
|
currentGradeLevel: string;
|
|
1833
|
-
studentId: string;
|
|
1834
2044
|
fullName: string;
|
|
1835
2045
|
createdBy?: string | undefined;
|
|
1836
2046
|
updatedBy?: string | undefined;
|
|
@@ -1923,9 +2133,9 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
1923
2133
|
firstName: string;
|
|
1924
2134
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
1925
2135
|
lastName: string;
|
|
2136
|
+
studentId: string;
|
|
1926
2137
|
dateOfBirth: string;
|
|
1927
2138
|
currentGradeLevel: string;
|
|
1928
|
-
studentId: string;
|
|
1929
2139
|
fullName: string;
|
|
1930
2140
|
createdBy?: string | undefined;
|
|
1931
2141
|
updatedBy?: string | undefined;
|
|
@@ -2023,9 +2233,9 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
2023
2233
|
firstName: string;
|
|
2024
2234
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
2025
2235
|
lastName: string;
|
|
2236
|
+
studentId: string;
|
|
2026
2237
|
dateOfBirth: string;
|
|
2027
2238
|
currentGradeLevel: string;
|
|
2028
|
-
studentId: string;
|
|
2029
2239
|
fullName: string;
|
|
2030
2240
|
createdBy?: string | undefined;
|
|
2031
2241
|
updatedBy?: string | undefined;
|
|
@@ -2123,9 +2333,9 @@ export declare const studentListResponseSchema: z.ZodObject<{
|
|
|
2123
2333
|
firstName: string;
|
|
2124
2334
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
2125
2335
|
lastName: string;
|
|
2336
|
+
studentId: string;
|
|
2126
2337
|
dateOfBirth: string;
|
|
2127
2338
|
currentGradeLevel: string;
|
|
2128
|
-
studentId: string;
|
|
2129
2339
|
fullName: string;
|
|
2130
2340
|
createdBy?: string | undefined;
|
|
2131
2341
|
updatedBy?: string | undefined;
|
|
@@ -2264,7 +2474,7 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2264
2474
|
email: z.ZodOptional<z.ZodString>;
|
|
2265
2475
|
phone: z.ZodOptional<z.ZodString>;
|
|
2266
2476
|
phoneType: z.ZodOptional<z.ZodEnum<["mobile", "home", "work"]>>;
|
|
2267
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
2477
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2268
2478
|
street1: z.ZodOptional<z.ZodString>;
|
|
2269
2479
|
street2: z.ZodOptional<z.ZodString>;
|
|
2270
2480
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -2285,8 +2495,22 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2285
2495
|
state?: string | undefined;
|
|
2286
2496
|
zipCode?: string | undefined;
|
|
2287
2497
|
country?: string | undefined;
|
|
2498
|
+
}>, {
|
|
2499
|
+
street1?: string | undefined;
|
|
2500
|
+
street2?: string | undefined;
|
|
2501
|
+
city?: string | undefined;
|
|
2502
|
+
state?: string | undefined;
|
|
2503
|
+
zipCode?: string | undefined;
|
|
2504
|
+
country?: string | undefined;
|
|
2505
|
+
}, {
|
|
2506
|
+
street1?: string | undefined;
|
|
2507
|
+
street2?: string | undefined;
|
|
2508
|
+
city?: string | undefined;
|
|
2509
|
+
state?: string | undefined;
|
|
2510
|
+
zipCode?: string | undefined;
|
|
2511
|
+
country?: string | undefined;
|
|
2288
2512
|
}>>;
|
|
2289
|
-
mailingAddress: z.ZodOptional<z.ZodObject<{
|
|
2513
|
+
mailingAddress: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2290
2514
|
street1: z.ZodOptional<z.ZodString>;
|
|
2291
2515
|
street2: z.ZodOptional<z.ZodString>;
|
|
2292
2516
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -2307,6 +2531,20 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2307
2531
|
state?: string | undefined;
|
|
2308
2532
|
zipCode?: string | undefined;
|
|
2309
2533
|
country?: string | undefined;
|
|
2534
|
+
}>, {
|
|
2535
|
+
street1?: string | undefined;
|
|
2536
|
+
street2?: string | undefined;
|
|
2537
|
+
city?: string | undefined;
|
|
2538
|
+
state?: string | undefined;
|
|
2539
|
+
zipCode?: string | undefined;
|
|
2540
|
+
country?: string | undefined;
|
|
2541
|
+
}, {
|
|
2542
|
+
street1?: string | undefined;
|
|
2543
|
+
street2?: string | undefined;
|
|
2544
|
+
city?: string | undefined;
|
|
2545
|
+
state?: string | undefined;
|
|
2546
|
+
zipCode?: string | undefined;
|
|
2547
|
+
country?: string | undefined;
|
|
2310
2548
|
}>>;
|
|
2311
2549
|
useMailingAddress: z.ZodOptional<z.ZodBoolean>;
|
|
2312
2550
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2364,7 +2602,7 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2364
2602
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2365
2603
|
hasPortalAccess: z.ZodDefault<z.ZodBoolean>;
|
|
2366
2604
|
canPickup: z.ZodDefault<z.ZodBoolean>;
|
|
2367
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
2605
|
+
address: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2368
2606
|
street1: z.ZodOptional<z.ZodString>;
|
|
2369
2607
|
street2: z.ZodOptional<z.ZodString>;
|
|
2370
2608
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -2385,6 +2623,20 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2385
2623
|
state?: string | undefined;
|
|
2386
2624
|
zipCode?: string | undefined;
|
|
2387
2625
|
country?: string | undefined;
|
|
2626
|
+
}>, {
|
|
2627
|
+
street1?: string | undefined;
|
|
2628
|
+
street2?: string | undefined;
|
|
2629
|
+
city?: string | undefined;
|
|
2630
|
+
state?: string | undefined;
|
|
2631
|
+
zipCode?: string | undefined;
|
|
2632
|
+
country?: string | undefined;
|
|
2633
|
+
}, {
|
|
2634
|
+
street1?: string | undefined;
|
|
2635
|
+
street2?: string | undefined;
|
|
2636
|
+
city?: string | undefined;
|
|
2637
|
+
state?: string | undefined;
|
|
2638
|
+
zipCode?: string | undefined;
|
|
2639
|
+
country?: string | undefined;
|
|
2388
2640
|
}>>;
|
|
2389
2641
|
employer: z.ZodOptional<z.ZodString>;
|
|
2390
2642
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -2625,9 +2877,9 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2625
2877
|
firstName: string;
|
|
2626
2878
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
2627
2879
|
lastName: string;
|
|
2880
|
+
studentId: string;
|
|
2628
2881
|
dateOfBirth: string;
|
|
2629
2882
|
currentGradeLevel: string;
|
|
2630
|
-
studentId: string;
|
|
2631
2883
|
fullName: string;
|
|
2632
2884
|
createdBy?: string | undefined;
|
|
2633
2885
|
updatedBy?: string | undefined;
|
|
@@ -2760,9 +3012,9 @@ export declare const studentProfileResponseSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2760
3012
|
firstName: string;
|
|
2761
3013
|
gender: "male" | "female" | "prefer_not_to_say" | "other";
|
|
2762
3014
|
lastName: string;
|
|
3015
|
+
studentId: string;
|
|
2763
3016
|
dateOfBirth: string;
|
|
2764
3017
|
currentGradeLevel: string;
|
|
2765
|
-
studentId: string;
|
|
2766
3018
|
fullName: string;
|
|
2767
3019
|
createdBy?: string | undefined;
|
|
2768
3020
|
updatedBy?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/academics/student.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,YAAY,6DAA2D,CAAC;AACrF,MAAM,MAAM,MAAM,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*/
|
|
97
|
-
export declare const addressSchema: z.ZodObject<{
|
|
97
|
+
export declare const addressSchema: z.ZodEffects<z.ZodObject<{
|
|
98
98
|
street1: z.ZodOptional<z.ZodString>;
|
|
99
99
|
street2: z.ZodOptional<z.ZodString>;
|
|
100
100
|
city: z.ZodOptional<z.ZodString>;
|
|
@@ -115,6 +115,20 @@ export declare const addressSchema: z.ZodObject<{
|
|
|
115
115
|
state?: string | undefined;
|
|
116
116
|
zipCode?: string | undefined;
|
|
117
117
|
country?: string | undefined;
|
|
118
|
+
}>, {
|
|
119
|
+
street1?: string | undefined;
|
|
120
|
+
street2?: string | undefined;
|
|
121
|
+
city?: string | undefined;
|
|
122
|
+
state?: string | undefined;
|
|
123
|
+
zipCode?: string | undefined;
|
|
124
|
+
country?: string | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
street1?: string | undefined;
|
|
127
|
+
street2?: string | undefined;
|
|
128
|
+
city?: string | undefined;
|
|
129
|
+
state?: string | undefined;
|
|
130
|
+
zipCode?: string | undefined;
|
|
131
|
+
country?: string | undefined;
|
|
118
132
|
}>;
|
|
119
133
|
export type Address = z.infer<typeof addressSchema>;
|
|
120
134
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;EAM/E,CAAC;AAML;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAA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AAC;AAE1C;;GAEG;AACH,eAAO,MAAM,aAAa,aAAwB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,UAAU,2CAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,aAGtB,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAMpD;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAA6C,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/schemas/common.js
CHANGED
|
@@ -85,7 +85,11 @@ exports.addressSchema = zod_1.z.object({
|
|
|
85
85
|
state: zod_1.z.string().max(100).optional(),
|
|
86
86
|
zipCode: zod_1.z.string().max(20).optional(),
|
|
87
87
|
country: zod_1.z.string().max(100).optional(),
|
|
88
|
-
})
|
|
88
|
+
}).refine((data) => {
|
|
89
|
+
// If any address field is provided, street1 is required
|
|
90
|
+
const hasAnyField = data.street2 || data.city || data.state || data.zipCode || data.country;
|
|
91
|
+
return !hasAnyField || (data.street1 && data.street1.length > 0);
|
|
92
|
+
}, { message: 'Street address (street1) is required when providing address details', path: ['street1'] });
|
|
89
93
|
// ============================================
|
|
90
94
|
// Status Enums
|
|
91
95
|
// ============================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6BAAwB;AAExB,+CAA+C;AAC/C,aAAa;AACb,+CAA+C;AAE/C;;GAEG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAIH;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAAyB,UAAa,EAAE,EAAE,CACrF,OAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAC1B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AANQ,QAAA,6BAA6B,iCAMrC;AAEL,+CAA+C;AAC/C,kBAAkB;AAClB,+CAA+C;AAE/C;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE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