@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
@@ -179,8 +179,8 @@ export declare const createAssignmentSchema: z.ZodObject<{
179
179
  gradingPeriodId: z.ZodOptional<z.ZodString>;
180
180
  pointsPossible: z.ZodNumber;
181
181
  isExtraCredit: z.ZodDefault<z.ZodBoolean>;
182
- assignedDate: z.ZodEffects<z.ZodString, string, string>;
183
- dueDate: z.ZodEffects<z.ZodString, string, string>;
182
+ assignedDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
183
+ dueDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
184
184
  dueDateTimeZone: z.ZodDefault<z.ZodString>;
185
185
  lockAfterDueDate: z.ZodDefault<z.ZodBoolean>;
186
186
  submissionType: z.ZodDefault<z.ZodEnum<["online_text", "online_upload", "external_url", "paper", "none", "discussion"]>>;
@@ -427,8 +427,8 @@ export declare const updateAssignmentSchema: z.ZodObject<Omit<{
427
427
  gradingPeriodId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
428
428
  pointsPossible: z.ZodOptional<z.ZodNumber>;
429
429
  isExtraCredit: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
430
- assignedDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
431
- dueDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
430
+ assignedDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
431
+ dueDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
432
432
  dueDateTimeZone: z.ZodOptional<z.ZodDefault<z.ZodString>>;
433
433
  lockAfterDueDate: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
434
434
  submissionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["online_text", "online_upload", "external_url", "paper", "none", "discussion"]>>>;
@@ -676,8 +676,8 @@ export declare const assignmentResponseSchema: z.ZodObject<{
676
676
  instructions: z.ZodOptional<z.ZodString>;
677
677
  pointsPossible: z.ZodNumber;
678
678
  isExtraCredit: z.ZodBoolean;
679
- assignedDate: z.ZodEffects<z.ZodString, string, string>;
680
- dueDate: z.ZodEffects<z.ZodString, string, string>;
679
+ assignedDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
680
+ dueDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
681
681
  dueDateTimeZone: z.ZodString;
682
682
  lockAfterDueDate: z.ZodBoolean;
683
683
  submissionType: z.ZodEnum<["online_text", "online_upload", "external_url", "paper", "none", "discussion"]>;
@@ -958,8 +958,8 @@ export declare const assignmentListResponseSchema: z.ZodObject<{
958
958
  instructions: z.ZodOptional<z.ZodString>;
959
959
  pointsPossible: z.ZodNumber;
960
960
  isExtraCredit: z.ZodBoolean;
961
- assignedDate: z.ZodEffects<z.ZodString, string, string>;
962
- dueDate: z.ZodEffects<z.ZodString, string, string>;
961
+ assignedDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
962
+ dueDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
963
963
  dueDateTimeZone: z.ZodString;
964
964
  lockAfterDueDate: z.ZodBoolean;
965
965
  submissionType: z.ZodEnum<["online_text", "online_upload", "external_url", "paper", "none", "discussion"]>;
@@ -1376,8 +1376,8 @@ export declare const assignmentFilterSchema: z.ZodObject<{
1376
1376
  categoryType: z.ZodOptional<z.ZodEnum<["assignment", "quiz", "test", "exam", "project", "homework", "participation", "lab", "presentation", "other"]>>;
1377
1377
  gradingPeriodId: z.ZodOptional<z.ZodString>;
1378
1378
  status: z.ZodOptional<z.ZodEnum<["draft", "published", "closed", "archived"]>>;
1379
- dueDateFrom: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1380
- dueDateTo: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1379
+ dueDateFrom: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1380
+ dueDateTo: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1381
1381
  searchTerm: z.ZodOptional<z.ZodString>;
1382
1382
  }, "strip", z.ZodTypeAny, {
1383
1383
  status?: "archived" | "closed" | "draft" | "published" | undefined;
@@ -12,7 +12,7 @@ export declare const excuseTypeSchema: z.ZodEnum<["medical", "family_emergency",
12
12
  export type ExcuseType = z.infer<typeof excuseTypeSchema>;
13
13
  export declare const createAttendanceSchema: z.ZodObject<{
14
14
  studentId: z.ZodString;
15
- date: z.ZodEffects<z.ZodString, string, string>;
15
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
16
16
  status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
17
17
  checkInTime: z.ZodOptional<z.ZodString>;
18
18
  checkOutTime: z.ZodOptional<z.ZodString>;
@@ -77,7 +77,7 @@ export declare const createAttendanceSchema: z.ZodObject<{
77
77
  export type CreateAttendanceDto = z.infer<typeof createAttendanceSchema>;
78
78
  export declare const updateAttendanceSchema: z.ZodObject<Omit<{
79
79
  studentId: z.ZodOptional<z.ZodString>;
80
- date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
80
+ date: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
81
81
  status: z.ZodOptional<z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>>;
82
82
  checkInTime: z.ZodOptional<z.ZodOptional<z.ZodString>>;
83
83
  checkOutTime: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -141,7 +141,7 @@ export declare const attendanceResponseSchema: z.ZodObject<{
141
141
  studentNumber: z.ZodOptional<z.ZodString>;
142
142
  schoolId: z.ZodString;
143
143
  academicYearId: z.ZodOptional<z.ZodString>;
144
- date: z.ZodEffects<z.ZodString, string, string>;
144
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
145
145
  dayOfWeek: z.ZodOptional<z.ZodNumber>;
146
146
  status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
147
147
  attendanceType: z.ZodEnum<["daily", "period", "event"]>;
@@ -240,7 +240,7 @@ export declare const attendanceListResponseSchema: z.ZodObject<{
240
240
  studentNumber: z.ZodOptional<z.ZodString>;
241
241
  schoolId: z.ZodString;
242
242
  academicYearId: z.ZodOptional<z.ZodString>;
243
- date: z.ZodEffects<z.ZodString, string, string>;
243
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
244
244
  dayOfWeek: z.ZodOptional<z.ZodNumber>;
245
245
  status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
246
246
  attendanceType: z.ZodEnum<["daily", "period", "event"]>;
@@ -433,7 +433,7 @@ export declare const bulkAttendanceRecordSchema: z.ZodObject<{
433
433
  }>;
434
434
  export type BulkAttendanceRecordDto = z.infer<typeof bulkAttendanceRecordSchema>;
435
435
  export declare const bulkAttendanceSchema: z.ZodObject<{
436
- date: z.ZodEffects<z.ZodString, string, string>;
436
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
437
437
  schoolId: z.ZodString;
438
438
  classroomId: z.ZodOptional<z.ZodString>;
439
439
  sectionId: z.ZodOptional<z.ZodString>;
@@ -500,8 +500,8 @@ export declare const attendanceFilterSchema: z.ZodObject<{
500
500
  gradeLevel: z.ZodOptional<z.ZodString>;
501
501
  status: z.ZodOptional<z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>>;
502
502
  attendanceType: z.ZodOptional<z.ZodEnum<["daily", "period", "event"]>>;
503
- dateFrom: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
504
- dateTo: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
503
+ dateFrom: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
504
+ dateTo: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
505
505
  academicYearId: z.ZodOptional<z.ZodString>;
506
506
  }, "strip", z.ZodTypeAny, {
507
507
  status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
@@ -535,8 +535,8 @@ export declare const attendanceSummarySchema: z.ZodObject<{
535
535
  excusedDays: z.ZodNumber;
536
536
  attendanceRate: z.ZodNumber;
537
537
  dateRange: z.ZodObject<{
538
- from: z.ZodEffects<z.ZodString, string, string>;
539
- to: z.ZodEffects<z.ZodString, string, string>;
538
+ from: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
539
+ to: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
540
540
  }, "strip", z.ZodTypeAny, {
541
541
  from: string;
542
542
  to: string;
@@ -574,7 +574,7 @@ export declare const attendanceSummarySchema: z.ZodObject<{
574
574
  export type AttendanceSummaryDto = z.infer<typeof attendanceSummarySchema>;
575
575
  export declare const bulkAttendanceResponseSchema: z.ZodObject<{
576
576
  success: z.ZodDefault<z.ZodBoolean>;
577
- date: z.ZodEffects<z.ZodString, string, string>;
577
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
578
578
  schoolId: z.ZodString;
579
579
  totalProcessed: z.ZodNumber;
580
580
  recordsCreated: z.ZodNumber;
@@ -614,7 +614,7 @@ export declare const bulkAttendanceResponseSchema: z.ZodObject<{
614
614
  }>;
615
615
  export type BulkAttendanceResponseDto = z.infer<typeof bulkAttendanceResponseSchema>;
616
616
  export declare const dailyAttendanceSummarySchema: z.ZodObject<{
617
- date: z.ZodEffects<z.ZodString, string, string>;
617
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
618
618
  schoolId: z.ZodString;
619
619
  totalStudents: z.ZodNumber;
620
620
  totalRecorded: z.ZodOptional<z.ZodNumber>;
@@ -692,8 +692,8 @@ export declare const studentAttendanceSummarySchema: z.ZodObject<{
692
692
  halfDay: z.ZodNumber;
693
693
  attendanceRate: z.ZodNumber;
694
694
  dateRange: z.ZodObject<{
695
- start: z.ZodEffects<z.ZodString, string, string>;
696
- end: z.ZodEffects<z.ZodString, string, string>;
695
+ start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
696
+ end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
697
697
  }, "strip", z.ZodTypeAny, {
698
698
  start: string;
699
699
  end: string;
@@ -736,7 +736,7 @@ export declare const studentAttendanceSummarySchema: z.ZodObject<{
736
736
  }>;
737
737
  export type StudentAttendanceSummaryDto = z.infer<typeof studentAttendanceSummarySchema>;
738
738
  export declare const dailyAttendanceReportSchema: z.ZodObject<{
739
- date: z.ZodEffects<z.ZodString, string, string>;
739
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
740
740
  schoolId: z.ZodString;
741
741
  totalStudents: z.ZodNumber;
742
742
  presentCount: z.ZodNumber;
@@ -794,7 +794,7 @@ export declare const dailyAttendanceReportSchema: z.ZodObject<{
794
794
  export type DailyAttendanceReportDto = z.infer<typeof dailyAttendanceReportSchema>;
795
795
  export declare const attendanceOverviewResponseSchema: z.ZodObject<{
796
796
  todaySummary: z.ZodObject<z.objectUtil.extendShape<{
797
- date: z.ZodEffects<z.ZodString, string, string>;
797
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
798
798
  schoolId: z.ZodString;
799
799
  totalStudents: z.ZodNumber;
800
800
  totalRecorded: z.ZodOptional<z.ZodNumber>;
@@ -910,7 +910,7 @@ export declare const attendanceOverviewResponseSchema: z.ZodObject<{
910
910
  }[];
911
911
  }>;
912
912
  trend: z.ZodArray<z.ZodObject<{
913
- date: z.ZodEffects<z.ZodString, string, string>;
913
+ date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
914
914
  schoolId: z.ZodString;
915
915
  totalStudents: z.ZodNumber;
916
916
  totalRecorded: z.ZodOptional<z.ZodNumber>;
@@ -0,0 +1,507 @@
1
+ /**
2
+ * Classwork Schemas - Academics Service
3
+ *
4
+ * Zod schemas for classwork items (assignments, quizzes, materials, questions)
5
+ * and organizational topics within class sections.
6
+ *
7
+ * Ed-Fi Aligned: Classwork items with type 'assignment' or 'quiz' bridge to
8
+ * the Grade entity via itemId → AssignmentGrade.assignmentId.
9
+ */
10
+ import { z } from 'zod';
11
+ export declare const classworkItemTypeSchema: z.ZodEnum<["assignment", "quiz", "material", "question"]>;
12
+ export type ClassworkItemType = z.infer<typeof classworkItemTypeSchema>;
13
+ export declare const classworkItemStatusSchema: z.ZodEnum<["draft", "published", "scheduled"]>;
14
+ export type ClassworkItemStatus = z.infer<typeof classworkItemStatusSchema>;
15
+ export declare const classworkAssessmentCategorySchema: z.ZodEnum<["formative", "summative"]>;
16
+ export type ClassworkAssessmentCategory = z.infer<typeof classworkAssessmentCategorySchema>;
17
+ export declare const classworkAttachmentSchema: z.ZodObject<{
18
+ attachmentId: z.ZodString;
19
+ fileName: z.ZodString;
20
+ fileType: z.ZodString;
21
+ fileUrl: z.ZodString;
22
+ fileSize: z.ZodOptional<z.ZodNumber>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ attachmentId: string;
25
+ fileName: string;
26
+ fileType: string;
27
+ fileUrl: string;
28
+ fileSize?: number | undefined;
29
+ }, {
30
+ attachmentId: string;
31
+ fileName: string;
32
+ fileType: string;
33
+ fileUrl: string;
34
+ fileSize?: number | undefined;
35
+ }>;
36
+ export type ClassworkAttachmentDto = z.infer<typeof classworkAttachmentSchema>;
37
+ export declare const classworkItemResponseSchema: z.ZodObject<{
38
+ itemId: z.ZodString;
39
+ sectionId: z.ZodString;
40
+ schoolId: z.ZodString;
41
+ type: z.ZodEnum<["assignment", "quiz", "material", "question"]>;
42
+ title: z.ZodString;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ topicId: z.ZodOptional<z.ZodString>;
45
+ topicName: z.ZodOptional<z.ZodString>;
46
+ sortOrder: z.ZodNumber;
47
+ categoryId: z.ZodOptional<z.ZodString>;
48
+ categoryName: z.ZodOptional<z.ZodString>;
49
+ assessmentCategory: z.ZodOptional<z.ZodEnum<["formative", "summative"]>>;
50
+ possiblePoints: z.ZodOptional<z.ZodNumber>;
51
+ dueDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
52
+ status: z.ZodEnum<["draft", "published", "scheduled"]>;
53
+ publishedAt: z.ZodOptional<z.ZodString>;
54
+ scheduledAt: z.ZodOptional<z.ZodString>;
55
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
+ attachmentId: z.ZodString;
57
+ fileName: z.ZodString;
58
+ fileType: z.ZodString;
59
+ fileUrl: z.ZodString;
60
+ fileSize: z.ZodOptional<z.ZodNumber>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ attachmentId: string;
63
+ fileName: string;
64
+ fileType: string;
65
+ fileUrl: string;
66
+ fileSize?: number | undefined;
67
+ }, {
68
+ attachmentId: string;
69
+ fileName: string;
70
+ fileType: string;
71
+ fileUrl: string;
72
+ fileSize?: number | undefined;
73
+ }>, "many">>;
74
+ createdAt: z.ZodString;
75
+ updatedAt: z.ZodString;
76
+ createdBy: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "assignment" | "quiz" | "material" | "question";
79
+ status: "draft" | "published" | "scheduled";
80
+ createdAt: string;
81
+ createdBy: string;
82
+ updatedAt: string;
83
+ title: string;
84
+ schoolId: string;
85
+ sortOrder: number;
86
+ sectionId: string;
87
+ itemId: string;
88
+ description?: string | undefined;
89
+ categoryId?: string | undefined;
90
+ categoryName?: string | undefined;
91
+ possiblePoints?: number | undefined;
92
+ assessmentCategory?: "formative" | "summative" | undefined;
93
+ dueDate?: string | undefined;
94
+ publishedAt?: string | undefined;
95
+ attachments?: {
96
+ attachmentId: string;
97
+ fileName: string;
98
+ fileType: string;
99
+ fileUrl: string;
100
+ fileSize?: number | undefined;
101
+ }[] | undefined;
102
+ topicId?: string | undefined;
103
+ topicName?: string | undefined;
104
+ scheduledAt?: string | undefined;
105
+ }, {
106
+ type: "assignment" | "quiz" | "material" | "question";
107
+ status: "draft" | "published" | "scheduled";
108
+ createdAt: string;
109
+ createdBy: string;
110
+ updatedAt: string;
111
+ title: string;
112
+ schoolId: string;
113
+ sortOrder: number;
114
+ sectionId: string;
115
+ itemId: string;
116
+ description?: string | undefined;
117
+ categoryId?: string | undefined;
118
+ categoryName?: string | undefined;
119
+ possiblePoints?: number | undefined;
120
+ assessmentCategory?: "formative" | "summative" | undefined;
121
+ dueDate?: string | undefined;
122
+ publishedAt?: string | undefined;
123
+ attachments?: {
124
+ attachmentId: string;
125
+ fileName: string;
126
+ fileType: string;
127
+ fileUrl: string;
128
+ fileSize?: number | undefined;
129
+ }[] | undefined;
130
+ topicId?: string | undefined;
131
+ topicName?: string | undefined;
132
+ scheduledAt?: string | undefined;
133
+ }>;
134
+ export type ClassworkItemResponseDto = z.infer<typeof classworkItemResponseSchema>;
135
+ export declare const classworkTopicResponseSchema: z.ZodObject<{
136
+ topicId: z.ZodString;
137
+ sectionId: z.ZodString;
138
+ schoolId: z.ZodString;
139
+ name: z.ZodString;
140
+ sortOrder: z.ZodNumber;
141
+ createdAt: z.ZodString;
142
+ updatedAt: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ createdAt: string;
145
+ updatedAt: string;
146
+ name: string;
147
+ schoolId: string;
148
+ sortOrder: number;
149
+ sectionId: string;
150
+ topicId: string;
151
+ }, {
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ name: string;
155
+ schoolId: string;
156
+ sortOrder: number;
157
+ sectionId: string;
158
+ topicId: string;
159
+ }>;
160
+ export type ClassworkTopicResponseDto = z.infer<typeof classworkTopicResponseSchema>;
161
+ export declare const sectionClassworkResponseSchema: z.ZodObject<{
162
+ sectionId: z.ZodString;
163
+ topics: z.ZodArray<z.ZodObject<{
164
+ topicId: z.ZodString;
165
+ sectionId: z.ZodString;
166
+ schoolId: z.ZodString;
167
+ name: z.ZodString;
168
+ sortOrder: z.ZodNumber;
169
+ createdAt: z.ZodString;
170
+ updatedAt: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ createdAt: string;
173
+ updatedAt: string;
174
+ name: string;
175
+ schoolId: string;
176
+ sortOrder: number;
177
+ sectionId: string;
178
+ topicId: string;
179
+ }, {
180
+ createdAt: string;
181
+ updatedAt: string;
182
+ name: string;
183
+ schoolId: string;
184
+ sortOrder: number;
185
+ sectionId: string;
186
+ topicId: string;
187
+ }>, "many">;
188
+ items: z.ZodArray<z.ZodObject<{
189
+ itemId: z.ZodString;
190
+ sectionId: z.ZodString;
191
+ schoolId: z.ZodString;
192
+ type: z.ZodEnum<["assignment", "quiz", "material", "question"]>;
193
+ title: z.ZodString;
194
+ description: z.ZodOptional<z.ZodString>;
195
+ topicId: z.ZodOptional<z.ZodString>;
196
+ topicName: z.ZodOptional<z.ZodString>;
197
+ sortOrder: z.ZodNumber;
198
+ categoryId: z.ZodOptional<z.ZodString>;
199
+ categoryName: z.ZodOptional<z.ZodString>;
200
+ assessmentCategory: z.ZodOptional<z.ZodEnum<["formative", "summative"]>>;
201
+ possiblePoints: z.ZodOptional<z.ZodNumber>;
202
+ dueDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
203
+ status: z.ZodEnum<["draft", "published", "scheduled"]>;
204
+ publishedAt: z.ZodOptional<z.ZodString>;
205
+ scheduledAt: z.ZodOptional<z.ZodString>;
206
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
207
+ attachmentId: z.ZodString;
208
+ fileName: z.ZodString;
209
+ fileType: z.ZodString;
210
+ fileUrl: z.ZodString;
211
+ fileSize: z.ZodOptional<z.ZodNumber>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ attachmentId: string;
214
+ fileName: string;
215
+ fileType: string;
216
+ fileUrl: string;
217
+ fileSize?: number | undefined;
218
+ }, {
219
+ attachmentId: string;
220
+ fileName: string;
221
+ fileType: string;
222
+ fileUrl: string;
223
+ fileSize?: number | undefined;
224
+ }>, "many">>;
225
+ createdAt: z.ZodString;
226
+ updatedAt: z.ZodString;
227
+ createdBy: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ type: "assignment" | "quiz" | "material" | "question";
230
+ status: "draft" | "published" | "scheduled";
231
+ createdAt: string;
232
+ createdBy: string;
233
+ updatedAt: string;
234
+ title: string;
235
+ schoolId: string;
236
+ sortOrder: number;
237
+ sectionId: string;
238
+ itemId: string;
239
+ description?: string | undefined;
240
+ categoryId?: string | undefined;
241
+ categoryName?: string | undefined;
242
+ possiblePoints?: number | undefined;
243
+ assessmentCategory?: "formative" | "summative" | undefined;
244
+ dueDate?: string | undefined;
245
+ publishedAt?: string | undefined;
246
+ attachments?: {
247
+ attachmentId: string;
248
+ fileName: string;
249
+ fileType: string;
250
+ fileUrl: string;
251
+ fileSize?: number | undefined;
252
+ }[] | undefined;
253
+ topicId?: string | undefined;
254
+ topicName?: string | undefined;
255
+ scheduledAt?: string | undefined;
256
+ }, {
257
+ type: "assignment" | "quiz" | "material" | "question";
258
+ status: "draft" | "published" | "scheduled";
259
+ createdAt: string;
260
+ createdBy: string;
261
+ updatedAt: string;
262
+ title: string;
263
+ schoolId: string;
264
+ sortOrder: number;
265
+ sectionId: string;
266
+ itemId: string;
267
+ description?: string | undefined;
268
+ categoryId?: string | undefined;
269
+ categoryName?: string | undefined;
270
+ possiblePoints?: number | undefined;
271
+ assessmentCategory?: "formative" | "summative" | undefined;
272
+ dueDate?: string | undefined;
273
+ publishedAt?: string | undefined;
274
+ attachments?: {
275
+ attachmentId: string;
276
+ fileName: string;
277
+ fileType: string;
278
+ fileUrl: string;
279
+ fileSize?: number | undefined;
280
+ }[] | undefined;
281
+ topicId?: string | undefined;
282
+ topicName?: string | undefined;
283
+ scheduledAt?: string | undefined;
284
+ }>, "many">;
285
+ }, "strip", z.ZodTypeAny, {
286
+ items: {
287
+ type: "assignment" | "quiz" | "material" | "question";
288
+ status: "draft" | "published" | "scheduled";
289
+ createdAt: string;
290
+ createdBy: string;
291
+ updatedAt: string;
292
+ title: string;
293
+ schoolId: string;
294
+ sortOrder: number;
295
+ sectionId: string;
296
+ itemId: string;
297
+ description?: string | undefined;
298
+ categoryId?: string | undefined;
299
+ categoryName?: string | undefined;
300
+ possiblePoints?: number | undefined;
301
+ assessmentCategory?: "formative" | "summative" | undefined;
302
+ dueDate?: string | undefined;
303
+ publishedAt?: string | undefined;
304
+ attachments?: {
305
+ attachmentId: string;
306
+ fileName: string;
307
+ fileType: string;
308
+ fileUrl: string;
309
+ fileSize?: number | undefined;
310
+ }[] | undefined;
311
+ topicId?: string | undefined;
312
+ topicName?: string | undefined;
313
+ scheduledAt?: string | undefined;
314
+ }[];
315
+ sectionId: string;
316
+ topics: {
317
+ createdAt: string;
318
+ updatedAt: string;
319
+ name: string;
320
+ schoolId: string;
321
+ sortOrder: number;
322
+ sectionId: string;
323
+ topicId: string;
324
+ }[];
325
+ }, {
326
+ items: {
327
+ type: "assignment" | "quiz" | "material" | "question";
328
+ status: "draft" | "published" | "scheduled";
329
+ createdAt: string;
330
+ createdBy: string;
331
+ updatedAt: string;
332
+ title: string;
333
+ schoolId: string;
334
+ sortOrder: number;
335
+ sectionId: string;
336
+ itemId: string;
337
+ description?: string | undefined;
338
+ categoryId?: string | undefined;
339
+ categoryName?: string | undefined;
340
+ possiblePoints?: number | undefined;
341
+ assessmentCategory?: "formative" | "summative" | undefined;
342
+ dueDate?: string | undefined;
343
+ publishedAt?: string | undefined;
344
+ attachments?: {
345
+ attachmentId: string;
346
+ fileName: string;
347
+ fileType: string;
348
+ fileUrl: string;
349
+ fileSize?: number | undefined;
350
+ }[] | undefined;
351
+ topicId?: string | undefined;
352
+ topicName?: string | undefined;
353
+ scheduledAt?: string | undefined;
354
+ }[];
355
+ sectionId: string;
356
+ topics: {
357
+ createdAt: string;
358
+ updatedAt: string;
359
+ name: string;
360
+ schoolId: string;
361
+ sortOrder: number;
362
+ sectionId: string;
363
+ topicId: string;
364
+ }[];
365
+ }>;
366
+ export type SectionClassworkResponseDto = z.infer<typeof sectionClassworkResponseSchema>;
367
+ export declare const createClassworkItemSchema: z.ZodObject<{
368
+ sectionId: z.ZodString;
369
+ schoolId: z.ZodString;
370
+ type: z.ZodEnum<["assignment", "quiz", "material", "question"]>;
371
+ title: z.ZodString;
372
+ description: z.ZodOptional<z.ZodString>;
373
+ topicId: z.ZodOptional<z.ZodString>;
374
+ categoryId: z.ZodOptional<z.ZodString>;
375
+ categoryName: z.ZodOptional<z.ZodString>;
376
+ assessmentCategory: z.ZodOptional<z.ZodEnum<["formative", "summative"]>>;
377
+ possiblePoints: z.ZodOptional<z.ZodNumber>;
378
+ dueDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
379
+ status: z.ZodDefault<z.ZodEnum<["draft", "published", "scheduled"]>>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ type: "assignment" | "quiz" | "material" | "question";
382
+ status: "draft" | "published" | "scheduled";
383
+ title: string;
384
+ schoolId: string;
385
+ sectionId: string;
386
+ description?: string | undefined;
387
+ categoryId?: string | undefined;
388
+ categoryName?: string | undefined;
389
+ possiblePoints?: number | undefined;
390
+ assessmentCategory?: "formative" | "summative" | undefined;
391
+ dueDate?: string | undefined;
392
+ topicId?: string | undefined;
393
+ }, {
394
+ type: "assignment" | "quiz" | "material" | "question";
395
+ title: string;
396
+ schoolId: string;
397
+ sectionId: string;
398
+ status?: "draft" | "published" | "scheduled" | undefined;
399
+ description?: string | undefined;
400
+ categoryId?: string | undefined;
401
+ categoryName?: string | undefined;
402
+ possiblePoints?: number | undefined;
403
+ assessmentCategory?: "formative" | "summative" | undefined;
404
+ dueDate?: string | undefined;
405
+ topicId?: string | undefined;
406
+ }>;
407
+ export type CreateClassworkItemDto = z.infer<typeof createClassworkItemSchema>;
408
+ export declare const updateClassworkItemSchema: z.ZodObject<{
409
+ title: z.ZodOptional<z.ZodString>;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ topicId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ categoryName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ assessmentCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<["formative", "summative"]>>>;
415
+ possiblePoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
416
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
417
+ status: z.ZodOptional<z.ZodEnum<["draft", "published", "scheduled"]>>;
418
+ sortOrder: z.ZodOptional<z.ZodNumber>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ status?: "draft" | "published" | "scheduled" | undefined;
421
+ title?: string | undefined;
422
+ description?: string | undefined;
423
+ sortOrder?: number | undefined;
424
+ categoryId?: string | null | undefined;
425
+ categoryName?: string | null | undefined;
426
+ possiblePoints?: number | null | undefined;
427
+ assessmentCategory?: "formative" | "summative" | null | undefined;
428
+ dueDate?: string | null | undefined;
429
+ topicId?: string | null | undefined;
430
+ }, {
431
+ status?: "draft" | "published" | "scheduled" | undefined;
432
+ title?: string | undefined;
433
+ description?: string | undefined;
434
+ sortOrder?: number | undefined;
435
+ categoryId?: string | null | undefined;
436
+ categoryName?: string | null | undefined;
437
+ possiblePoints?: number | null | undefined;
438
+ assessmentCategory?: "formative" | "summative" | null | undefined;
439
+ dueDate?: string | null | undefined;
440
+ topicId?: string | null | undefined;
441
+ }>;
442
+ export type UpdateClassworkItemDto = z.infer<typeof updateClassworkItemSchema>;
443
+ export declare const createClassworkTopicSchema: z.ZodObject<{
444
+ sectionId: z.ZodString;
445
+ schoolId: z.ZodString;
446
+ name: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ name: string;
449
+ schoolId: string;
450
+ sectionId: string;
451
+ }, {
452
+ name: string;
453
+ schoolId: string;
454
+ sectionId: string;
455
+ }>;
456
+ export type CreateClassworkTopicDto = z.infer<typeof createClassworkTopicSchema>;
457
+ export declare const updateClassworkTopicSchema: z.ZodObject<{
458
+ name: z.ZodOptional<z.ZodString>;
459
+ sortOrder: z.ZodOptional<z.ZodNumber>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ name?: string | undefined;
462
+ sortOrder?: number | undefined;
463
+ }, {
464
+ name?: string | undefined;
465
+ sortOrder?: number | undefined;
466
+ }>;
467
+ export type UpdateClassworkTopicDto = z.infer<typeof updateClassworkTopicSchema>;
468
+ export declare const reorderClassworkItemsSchema: z.ZodObject<{
469
+ schoolId: z.ZodString;
470
+ sectionId: z.ZodString;
471
+ items: z.ZodArray<z.ZodObject<{
472
+ id: z.ZodString;
473
+ type: z.ZodEnum<["item", "topic"]>;
474
+ sortOrder: z.ZodNumber;
475
+ topicId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ type: "item" | "topic";
478
+ id: string;
479
+ sortOrder: number;
480
+ topicId?: string | null | undefined;
481
+ }, {
482
+ type: "item" | "topic";
483
+ id: string;
484
+ sortOrder: number;
485
+ topicId?: string | null | undefined;
486
+ }>, "many">;
487
+ }, "strip", z.ZodTypeAny, {
488
+ items: {
489
+ type: "item" | "topic";
490
+ id: string;
491
+ sortOrder: number;
492
+ topicId?: string | null | undefined;
493
+ }[];
494
+ schoolId: string;
495
+ sectionId: string;
496
+ }, {
497
+ items: {
498
+ type: "item" | "topic";
499
+ id: string;
500
+ sortOrder: number;
501
+ topicId?: string | null | undefined;
502
+ }[];
503
+ schoolId: string;
504
+ sectionId: string;
505
+ }>;
506
+ export type ReorderClassworkItemsDto = z.infer<typeof reorderClassworkItemsSchema>;
507
+ //# sourceMappingURL=classwork.schema.d.ts.map