@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
|
@@ -1429,8 +1429,8 @@ export declare const studentSubmissionSchema: z.ZodObject<{
|
|
|
1429
1429
|
submittedAt: z.ZodOptional<z.ZodString>;
|
|
1430
1430
|
attemptNumber: z.ZodDefault<z.ZodNumber>;
|
|
1431
1431
|
}, "strip", z.ZodTypeAny, {
|
|
1432
|
-
assignmentId: string;
|
|
1433
1432
|
studentId: string;
|
|
1433
|
+
assignmentId: string;
|
|
1434
1434
|
attemptNumber: number;
|
|
1435
1435
|
submittedAt?: string | undefined;
|
|
1436
1436
|
attachments?: {
|
|
@@ -1444,8 +1444,8 @@ export declare const studentSubmissionSchema: z.ZodObject<{
|
|
|
1444
1444
|
content?: string | undefined;
|
|
1445
1445
|
externalUrl?: string | undefined;
|
|
1446
1446
|
}, {
|
|
1447
|
-
assignmentId: string;
|
|
1448
1447
|
studentId: string;
|
|
1448
|
+
assignmentId: string;
|
|
1449
1449
|
submittedAt?: string | undefined;
|
|
1450
1450
|
attachments?: {
|
|
1451
1451
|
name: string;
|
|
@@ -487,8 +487,8 @@ export declare const attendanceFilterSchema: z.ZodObject<{
|
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
488
|
status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
|
|
489
489
|
schoolId?: string | undefined;
|
|
490
|
-
academicYearId?: string | undefined;
|
|
491
490
|
studentId?: string | undefined;
|
|
491
|
+
academicYearId?: string | undefined;
|
|
492
492
|
gradeLevel?: string | undefined;
|
|
493
493
|
classroomId?: string | undefined;
|
|
494
494
|
attendanceType?: "daily" | "period" | "event" | undefined;
|
|
@@ -497,8 +497,8 @@ export declare const attendanceFilterSchema: z.ZodObject<{
|
|
|
497
497
|
}, {
|
|
498
498
|
status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
|
|
499
499
|
schoolId?: string | undefined;
|
|
500
|
-
academicYearId?: string | undefined;
|
|
501
500
|
studentId?: string | undefined;
|
|
501
|
+
academicYearId?: string | undefined;
|
|
502
502
|
gradeLevel?: string | undefined;
|
|
503
503
|
classroomId?: string | undefined;
|
|
504
504
|
attendanceType?: "daily" | "period" | "event" | undefined;
|
|
@@ -526,8 +526,8 @@ export declare const attendanceSummarySchema: z.ZodObject<{
|
|
|
526
526
|
to: string;
|
|
527
527
|
}>;
|
|
528
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
totalDays: number;
|
|
530
529
|
studentId: string;
|
|
530
|
+
totalDays: number;
|
|
531
531
|
attendanceRate: number;
|
|
532
532
|
studentName: string;
|
|
533
533
|
presentDays: number;
|
|
@@ -539,8 +539,8 @@ export declare const attendanceSummarySchema: z.ZodObject<{
|
|
|
539
539
|
to: string;
|
|
540
540
|
};
|
|
541
541
|
}, {
|
|
542
|
-
totalDays: number;
|
|
543
542
|
studentId: string;
|
|
543
|
+
totalDays: number;
|
|
544
544
|
attendanceRate: number;
|
|
545
545
|
studentName: string;
|
|
546
546
|
presentDays: number;
|
|
@@ -684,8 +684,8 @@ export declare const studentAttendanceSummarySchema: z.ZodObject<{
|
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
686
|
schoolId: string;
|
|
687
|
-
totalDays: number;
|
|
688
687
|
studentId: string;
|
|
688
|
+
totalDays: number;
|
|
689
689
|
present: number;
|
|
690
690
|
absent: number;
|
|
691
691
|
late: number;
|
|
@@ -700,8 +700,8 @@ export declare const studentAttendanceSummarySchema: z.ZodObject<{
|
|
|
700
700
|
academicYearId?: string | undefined;
|
|
701
701
|
}, {
|
|
702
702
|
schoolId: string;
|
|
703
|
-
totalDays: number;
|
|
704
703
|
studentId: string;
|
|
704
|
+
totalDays: number;
|
|
705
705
|
present: number;
|
|
706
706
|
absent: number;
|
|
707
707
|
late: number;
|
|
@@ -977,16 +977,16 @@ export declare const attendanceOverviewResponseSchema: z.ZodObject<{
|
|
|
977
977
|
absentDays: z.ZodNumber;
|
|
978
978
|
trend: z.ZodEnum<["improving", "declining", "stable"]>;
|
|
979
979
|
}, "strip", z.ZodTypeAny, {
|
|
980
|
-
totalDays: number;
|
|
981
980
|
studentId: string;
|
|
981
|
+
totalDays: number;
|
|
982
982
|
attendanceRate: number;
|
|
983
983
|
studentName: string;
|
|
984
984
|
absentDays: number;
|
|
985
985
|
trend: "improving" | "declining" | "stable";
|
|
986
986
|
gradeLevel?: string | undefined;
|
|
987
987
|
}, {
|
|
988
|
-
totalDays: number;
|
|
989
988
|
studentId: string;
|
|
989
|
+
totalDays: number;
|
|
990
990
|
attendanceRate: number;
|
|
991
991
|
studentName: string;
|
|
992
992
|
absentDays: number;
|
|
@@ -1080,8 +1080,8 @@ export declare const attendanceOverviewResponseSchema: z.ZodObject<{
|
|
|
1080
1080
|
academicYear: number;
|
|
1081
1081
|
};
|
|
1082
1082
|
atRiskStudents: {
|
|
1083
|
-
totalDays: number;
|
|
1084
1083
|
studentId: string;
|
|
1084
|
+
totalDays: number;
|
|
1085
1085
|
attendanceRate: number;
|
|
1086
1086
|
studentName: string;
|
|
1087
1087
|
absentDays: number;
|
|
@@ -1157,8 +1157,8 @@ export declare const attendanceOverviewResponseSchema: z.ZodObject<{
|
|
|
1157
1157
|
academicYear: number;
|
|
1158
1158
|
};
|
|
1159
1159
|
atRiskStudents: {
|
|
1160
|
-
totalDays: number;
|
|
1161
1160
|
studentId: string;
|
|
1161
|
+
totalDays: number;
|
|
1162
1162
|
attendanceRate: number;
|
|
1163
1163
|
studentName: string;
|
|
1164
1164
|
absentDays: number;
|
|
@@ -284,8 +284,8 @@ export declare const createGradeSchema: z.ZodObject<{
|
|
|
284
284
|
gradedAt: z.ZodOptional<z.ZodString>;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
286
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
287
|
-
assignmentId: string;
|
|
288
287
|
studentId: string;
|
|
288
|
+
assignmentId: string;
|
|
289
289
|
classroomId: string;
|
|
290
290
|
isExtraCredit: boolean;
|
|
291
291
|
isLate: boolean;
|
|
@@ -303,8 +303,8 @@ export declare const createGradeSchema: z.ZodObject<{
|
|
|
303
303
|
submittedAt?: string | undefined;
|
|
304
304
|
gradedAt?: string | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
assignmentId: string;
|
|
307
306
|
studentId: string;
|
|
307
|
+
assignmentId: string;
|
|
308
308
|
classroomId: string;
|
|
309
309
|
status?: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete" | undefined;
|
|
310
310
|
percentage?: number | undefined;
|
|
@@ -352,7 +352,7 @@ export declare const updateGradeSchema: z.ZodObject<Omit<{
|
|
|
352
352
|
}>, "many">>>;
|
|
353
353
|
submittedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
354
354
|
gradedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
355
|
-
}, "
|
|
355
|
+
}, "studentId" | "assignmentId" | "classroomId">, "strip", z.ZodTypeAny, {
|
|
356
356
|
status?: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete" | undefined;
|
|
357
357
|
percentage?: number | undefined;
|
|
358
358
|
isExtraCredit?: boolean | undefined;
|
|
@@ -433,8 +433,8 @@ export declare const gradeResponseSchema: z.ZodObject<{
|
|
|
433
433
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
434
434
|
createdAt: string;
|
|
435
435
|
updatedAt: string;
|
|
436
|
-
assignmentId: string;
|
|
437
436
|
studentId: string;
|
|
437
|
+
assignmentId: string;
|
|
438
438
|
classroomId: string;
|
|
439
439
|
isExtraCredit: boolean;
|
|
440
440
|
isLate: boolean;
|
|
@@ -462,8 +462,8 @@ export declare const gradeResponseSchema: z.ZodObject<{
|
|
|
462
462
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
463
463
|
createdAt: string;
|
|
464
464
|
updatedAt: string;
|
|
465
|
-
assignmentId: string;
|
|
466
465
|
studentId: string;
|
|
466
|
+
assignmentId: string;
|
|
467
467
|
classroomId: string;
|
|
468
468
|
isExtraCredit: boolean;
|
|
469
469
|
isLate: boolean;
|
|
@@ -535,8 +535,8 @@ export declare const gradeListResponseSchema: z.ZodObject<{
|
|
|
535
535
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
536
536
|
createdAt: string;
|
|
537
537
|
updatedAt: string;
|
|
538
|
-
assignmentId: string;
|
|
539
538
|
studentId: string;
|
|
539
|
+
assignmentId: string;
|
|
540
540
|
classroomId: string;
|
|
541
541
|
isExtraCredit: boolean;
|
|
542
542
|
isLate: boolean;
|
|
@@ -564,8 +564,8 @@ export declare const gradeListResponseSchema: z.ZodObject<{
|
|
|
564
564
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
565
565
|
createdAt: string;
|
|
566
566
|
updatedAt: string;
|
|
567
|
-
assignmentId: string;
|
|
568
567
|
studentId: string;
|
|
568
|
+
assignmentId: string;
|
|
569
569
|
classroomId: string;
|
|
570
570
|
isExtraCredit: boolean;
|
|
571
571
|
isLate: boolean;
|
|
@@ -598,8 +598,8 @@ export declare const gradeListResponseSchema: z.ZodObject<{
|
|
|
598
598
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
599
599
|
createdAt: string;
|
|
600
600
|
updatedAt: string;
|
|
601
|
-
assignmentId: string;
|
|
602
601
|
studentId: string;
|
|
602
|
+
assignmentId: string;
|
|
603
603
|
classroomId: string;
|
|
604
604
|
isExtraCredit: boolean;
|
|
605
605
|
isLate: boolean;
|
|
@@ -632,8 +632,8 @@ export declare const gradeListResponseSchema: z.ZodObject<{
|
|
|
632
632
|
status: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete";
|
|
633
633
|
createdAt: string;
|
|
634
634
|
updatedAt: string;
|
|
635
|
-
assignmentId: string;
|
|
636
635
|
studentId: string;
|
|
636
|
+
assignmentId: string;
|
|
637
637
|
classroomId: string;
|
|
638
638
|
isExtraCredit: boolean;
|
|
639
639
|
isLate: boolean;
|
|
@@ -740,18 +740,18 @@ export declare const gradeFilterSchema: z.ZodObject<{
|
|
|
740
740
|
gradingPeriodId: z.ZodOptional<z.ZodString>;
|
|
741
741
|
}, "strip", z.ZodTypeAny, {
|
|
742
742
|
status?: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete" | undefined;
|
|
743
|
+
studentId?: string | undefined;
|
|
743
744
|
assignmentId?: string | undefined;
|
|
744
745
|
gradingPeriodId?: string | undefined;
|
|
745
|
-
studentId?: string | undefined;
|
|
746
746
|
classroomId?: string | undefined;
|
|
747
747
|
dateFrom?: string | undefined;
|
|
748
748
|
dateTo?: string | undefined;
|
|
749
749
|
categoryType?: "other" | "lab" | "assignment" | "quiz" | "test" | "exam" | "project" | "homework" | "participation" | "presentation" | undefined;
|
|
750
750
|
}, {
|
|
751
751
|
status?: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete" | undefined;
|
|
752
|
+
studentId?: string | undefined;
|
|
752
753
|
assignmentId?: string | undefined;
|
|
753
754
|
gradingPeriodId?: string | undefined;
|
|
754
|
-
studentId?: string | undefined;
|
|
755
755
|
classroomId?: string | undefined;
|
|
756
756
|
dateFrom?: string | undefined;
|
|
757
757
|
dateTo?: string | undefined;
|
|
@@ -1109,8 +1109,8 @@ export declare const courseGradeResponseSchema: z.ZodObject<{
|
|
|
1109
1109
|
updatedAt: string;
|
|
1110
1110
|
schoolId: string;
|
|
1111
1111
|
termId: string;
|
|
1112
|
-
academicYearId: string;
|
|
1113
1112
|
studentId: string;
|
|
1113
|
+
academicYearId: string;
|
|
1114
1114
|
teacherId: string;
|
|
1115
1115
|
gradeId: string;
|
|
1116
1116
|
courseId: string;
|
|
@@ -1162,8 +1162,8 @@ export declare const courseGradeResponseSchema: z.ZodObject<{
|
|
|
1162
1162
|
updatedAt: string;
|
|
1163
1163
|
schoolId: string;
|
|
1164
1164
|
termId: string;
|
|
1165
|
-
academicYearId: string;
|
|
1166
1165
|
studentId: string;
|
|
1166
|
+
academicYearId: string;
|
|
1167
1167
|
teacherId: string;
|
|
1168
1168
|
gradeId: string;
|
|
1169
1169
|
courseId: string;
|
|
@@ -1268,8 +1268,8 @@ export declare const recordAssignmentGradeSchema: z.ZodObject<{
|
|
|
1268
1268
|
}, "strip", z.ZodTypeAny, {
|
|
1269
1269
|
schoolId: string;
|
|
1270
1270
|
termId: string;
|
|
1271
|
-
academicYearId: string;
|
|
1272
1271
|
studentId: string;
|
|
1272
|
+
academicYearId: string;
|
|
1273
1273
|
teacherId: string;
|
|
1274
1274
|
assignment: {
|
|
1275
1275
|
assignmentName: string;
|
|
@@ -1292,8 +1292,8 @@ export declare const recordAssignmentGradeSchema: z.ZodObject<{
|
|
|
1292
1292
|
}, {
|
|
1293
1293
|
schoolId: string;
|
|
1294
1294
|
termId: string;
|
|
1295
|
-
academicYearId: string;
|
|
1296
1295
|
studentId: string;
|
|
1296
|
+
academicYearId: string;
|
|
1297
1297
|
teacherId: string;
|
|
1298
1298
|
assignment: {
|
|
1299
1299
|
assignmentName: string;
|
|
@@ -1865,8 +1865,8 @@ export declare const sectionGradebookResponseSchema: z.ZodObject<{
|
|
|
1865
1865
|
updatedAt: string;
|
|
1866
1866
|
schoolId: string;
|
|
1867
1867
|
termId: string;
|
|
1868
|
-
academicYearId: string;
|
|
1869
1868
|
studentId: string;
|
|
1869
|
+
academicYearId: string;
|
|
1870
1870
|
teacherId: string;
|
|
1871
1871
|
gradeId: string;
|
|
1872
1872
|
courseId: string;
|
|
@@ -1918,8 +1918,8 @@ export declare const sectionGradebookResponseSchema: z.ZodObject<{
|
|
|
1918
1918
|
updatedAt: string;
|
|
1919
1919
|
schoolId: string;
|
|
1920
1920
|
termId: string;
|
|
1921
|
-
academicYearId: string;
|
|
1922
1921
|
studentId: string;
|
|
1922
|
+
academicYearId: string;
|
|
1923
1923
|
teacherId: string;
|
|
1924
1924
|
gradeId: string;
|
|
1925
1925
|
courseId: string;
|
|
@@ -1974,8 +1974,8 @@ export declare const sectionGradebookResponseSchema: z.ZodObject<{
|
|
|
1974
1974
|
updatedAt: string;
|
|
1975
1975
|
schoolId: string;
|
|
1976
1976
|
termId: string;
|
|
1977
|
-
academicYearId: string;
|
|
1978
1977
|
studentId: string;
|
|
1978
|
+
academicYearId: string;
|
|
1979
1979
|
teacherId: string;
|
|
1980
1980
|
gradeId: string;
|
|
1981
1981
|
courseId: string;
|
|
@@ -2031,8 +2031,8 @@ export declare const sectionGradebookResponseSchema: z.ZodObject<{
|
|
|
2031
2031
|
updatedAt: string;
|
|
2032
2032
|
schoolId: string;
|
|
2033
2033
|
termId: string;
|
|
2034
|
-
academicYearId: string;
|
|
2035
2034
|
studentId: string;
|
|
2035
|
+
academicYearId: string;
|
|
2036
2036
|
teacherId: string;
|
|
2037
2037
|
gradeId: string;
|
|
2038
2038
|
courseId: string;
|
|
@@ -2199,8 +2199,8 @@ export declare const studentGradesResponseSchema: z.ZodObject<{
|
|
|
2199
2199
|
updatedAt: string;
|
|
2200
2200
|
schoolId: string;
|
|
2201
2201
|
termId: string;
|
|
2202
|
-
academicYearId: string;
|
|
2203
2202
|
studentId: string;
|
|
2203
|
+
academicYearId: string;
|
|
2204
2204
|
teacherId: string;
|
|
2205
2205
|
gradeId: string;
|
|
2206
2206
|
courseId: string;
|
|
@@ -2252,8 +2252,8 @@ export declare const studentGradesResponseSchema: z.ZodObject<{
|
|
|
2252
2252
|
updatedAt: string;
|
|
2253
2253
|
schoolId: string;
|
|
2254
2254
|
termId: string;
|
|
2255
|
-
academicYearId: string;
|
|
2256
2255
|
studentId: string;
|
|
2256
|
+
academicYearId: string;
|
|
2257
2257
|
teacherId: string;
|
|
2258
2258
|
gradeId: string;
|
|
2259
2259
|
courseId: string;
|
|
@@ -2320,8 +2320,8 @@ export declare const studentGradesResponseSchema: z.ZodObject<{
|
|
|
2320
2320
|
updatedAt: string;
|
|
2321
2321
|
schoolId: string;
|
|
2322
2322
|
termId: string;
|
|
2323
|
-
academicYearId: string;
|
|
2324
2323
|
studentId: string;
|
|
2324
|
+
academicYearId: string;
|
|
2325
2325
|
teacherId: string;
|
|
2326
2326
|
gradeId: string;
|
|
2327
2327
|
courseId: string;
|
|
@@ -2381,8 +2381,8 @@ export declare const studentGradesResponseSchema: z.ZodObject<{
|
|
|
2381
2381
|
updatedAt: string;
|
|
2382
2382
|
schoolId: string;
|
|
2383
2383
|
termId: string;
|
|
2384
|
-
academicYearId: string;
|
|
2385
2384
|
studentId: string;
|
|
2385
|
+
academicYearId: string;
|
|
2386
2386
|
teacherId: string;
|
|
2387
2387
|
gradeId: string;
|
|
2388
2388
|
courseId: string;
|