@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.
- package/dist/schemas/academics/assignment.schema.d.ts +10 -10
- package/dist/schemas/academics/attendance.schema.d.ts +16 -16
- package/dist/schemas/academics/classwork.schema.d.ts +507 -0
- package/dist/schemas/academics/classwork.schema.d.ts.map +1 -0
- package/dist/schemas/academics/classwork.schema.js +149 -0
- package/dist/schemas/academics/classwork.schema.js.map +1 -0
- package/dist/schemas/academics/grade.schema.d.ts +2 -2
- package/dist/schemas/academics/index.d.ts +2 -0
- package/dist/schemas/academics/index.d.ts.map +1 -1
- package/dist/schemas/academics/index.js +2 -0
- package/dist/schemas/academics/index.js.map +1 -1
- package/dist/schemas/academics/section-attendance.schema.d.ts +447 -0
- package/dist/schemas/academics/section-attendance.schema.d.ts.map +1 -0
- package/dist/schemas/academics/section-attendance.schema.js +126 -0
- package/dist/schemas/academics/section-attendance.schema.js.map +1 -0
- package/dist/schemas/academics/student.schema.d.ts +15 -15
- package/dist/schemas/common.d.ts +4 -2
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +7 -2
- package/dist/schemas/common.js.map +1 -1
- package/dist/schemas/enrollment/enrollment.schema.d.ts +55 -55
- package/dist/schemas/finance/fee-structure.schema.d.ts +4 -4
- package/dist/schemas/finance/invoice.schema.d.ts +5 -5
- package/dist/schemas/finance/payment.schema.d.ts +16 -0
- package/dist/schemas/finance/payment.schema.d.ts.map +1 -1
- package/dist/schemas/finance/payment.schema.js +2 -0
- package/dist/schemas/finance/payment.schema.js.map +1 -1
- package/dist/schemas/identity/bell-schedule.schema.d.ts +5 -5
- package/dist/schemas/identity/calendar-date.schema.d.ts +12 -12
- package/dist/schemas/identity/credential.schema.d.ts +4 -4
- package/dist/schemas/identity/education-org-network.schema.d.ts +7 -7
- package/dist/schemas/identity/education-organization.schema.d.ts +1 -1
- package/dist/schemas/identity/education-service-center.schema.d.ts +4 -4
- package/dist/schemas/identity/leave.schema.d.ts +8 -8
- package/dist/schemas/identity/local-education-agency.schema.d.ts +4 -4
- package/dist/schemas/identity/school.schema.d.ts +4 -4
- package/dist/schemas/identity/staff-assignment.schema.d.ts +3 -3
- package/dist/schemas/identity/staff.schema.d.ts +18 -18
- package/dist/schemas/identity/state-education-agency.schema.d.ts +3 -3
- package/dist/validators/date-range.d.ts +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classwork.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/academics/classwork.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB,2DAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB,gDAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iCAAiC,uCAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAM5F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAMpC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM/E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBtC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMnF,eAAO,M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CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Classwork Schemas - Academics Service
|
|
4
|
+
*
|
|
5
|
+
* Zod schemas for classwork items (assignments, quizzes, materials, questions)
|
|
6
|
+
* and organizational topics within class sections.
|
|
7
|
+
*
|
|
8
|
+
* Ed-Fi Aligned: Classwork items with type 'assignment' or 'quiz' bridge to
|
|
9
|
+
* the Grade entity via itemId → AssignmentGrade.assignmentId.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.reorderClassworkItemsSchema = exports.updateClassworkTopicSchema = exports.createClassworkTopicSchema = exports.updateClassworkItemSchema = exports.createClassworkItemSchema = exports.sectionClassworkResponseSchema = exports.classworkTopicResponseSchema = exports.classworkItemResponseSchema = exports.classworkAttachmentSchema = exports.classworkAssessmentCategorySchema = exports.classworkItemStatusSchema = exports.classworkItemTypeSchema = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const common_1 = require("../common");
|
|
15
|
+
// ============================================
|
|
16
|
+
// Enums
|
|
17
|
+
// ============================================
|
|
18
|
+
exports.classworkItemTypeSchema = zod_1.z.enum([
|
|
19
|
+
'assignment',
|
|
20
|
+
'quiz',
|
|
21
|
+
'material',
|
|
22
|
+
'question',
|
|
23
|
+
]);
|
|
24
|
+
exports.classworkItemStatusSchema = zod_1.z.enum([
|
|
25
|
+
'draft',
|
|
26
|
+
'published',
|
|
27
|
+
'scheduled',
|
|
28
|
+
]);
|
|
29
|
+
exports.classworkAssessmentCategorySchema = zod_1.z.enum([
|
|
30
|
+
'formative',
|
|
31
|
+
'summative',
|
|
32
|
+
]);
|
|
33
|
+
// ============================================
|
|
34
|
+
// Classwork Attachment Schema
|
|
35
|
+
// ============================================
|
|
36
|
+
exports.classworkAttachmentSchema = zod_1.z.object({
|
|
37
|
+
attachmentId: zod_1.z.string().uuid(),
|
|
38
|
+
fileName: zod_1.z.string().min(1).max(255),
|
|
39
|
+
fileType: zod_1.z.string().max(100),
|
|
40
|
+
fileUrl: zod_1.z.string().max(2048),
|
|
41
|
+
fileSize: zod_1.z.number().int().positive().optional(),
|
|
42
|
+
});
|
|
43
|
+
// ============================================
|
|
44
|
+
// Classwork Item Response Schema
|
|
45
|
+
// ============================================
|
|
46
|
+
exports.classworkItemResponseSchema = zod_1.z.object({
|
|
47
|
+
itemId: zod_1.z.string().uuid(),
|
|
48
|
+
sectionId: zod_1.z.string().uuid(),
|
|
49
|
+
schoolId: zod_1.z.string().uuid(),
|
|
50
|
+
type: exports.classworkItemTypeSchema,
|
|
51
|
+
title: zod_1.z.string(),
|
|
52
|
+
description: zod_1.z.string().optional(),
|
|
53
|
+
topicId: zod_1.z.string().uuid().optional(),
|
|
54
|
+
topicName: zod_1.z.string().optional(),
|
|
55
|
+
sortOrder: zod_1.z.number().int().min(0),
|
|
56
|
+
categoryId: zod_1.z.string().optional(),
|
|
57
|
+
categoryName: zod_1.z.string().optional(),
|
|
58
|
+
assessmentCategory: exports.classworkAssessmentCategorySchema.optional(),
|
|
59
|
+
possiblePoints: zod_1.z.number().min(0).optional(),
|
|
60
|
+
dueDate: common_1.dateSchema.optional(),
|
|
61
|
+
status: exports.classworkItemStatusSchema,
|
|
62
|
+
publishedAt: common_1.isoDateSchema.optional(),
|
|
63
|
+
scheduledAt: common_1.isoDateSchema.optional(),
|
|
64
|
+
attachments: zod_1.z.array(exports.classworkAttachmentSchema).optional(),
|
|
65
|
+
createdAt: common_1.isoDateSchema,
|
|
66
|
+
updatedAt: common_1.isoDateSchema,
|
|
67
|
+
createdBy: zod_1.z.string(),
|
|
68
|
+
});
|
|
69
|
+
// ============================================
|
|
70
|
+
// Classwork Topic Response Schema
|
|
71
|
+
// ============================================
|
|
72
|
+
exports.classworkTopicResponseSchema = zod_1.z.object({
|
|
73
|
+
topicId: zod_1.z.string().uuid(),
|
|
74
|
+
sectionId: zod_1.z.string().uuid(),
|
|
75
|
+
schoolId: zod_1.z.string().uuid(),
|
|
76
|
+
name: zod_1.z.string(),
|
|
77
|
+
sortOrder: zod_1.z.number().int().min(0),
|
|
78
|
+
createdAt: common_1.isoDateSchema,
|
|
79
|
+
updatedAt: common_1.isoDateSchema,
|
|
80
|
+
});
|
|
81
|
+
// ============================================
|
|
82
|
+
// Section Classwork Response (grouped)
|
|
83
|
+
// ============================================
|
|
84
|
+
exports.sectionClassworkResponseSchema = zod_1.z.object({
|
|
85
|
+
sectionId: zod_1.z.string().uuid(),
|
|
86
|
+
topics: zod_1.z.array(exports.classworkTopicResponseSchema),
|
|
87
|
+
items: zod_1.z.array(exports.classworkItemResponseSchema),
|
|
88
|
+
});
|
|
89
|
+
// ============================================
|
|
90
|
+
// Create Classwork Item Schema
|
|
91
|
+
// ============================================
|
|
92
|
+
exports.createClassworkItemSchema = zod_1.z.object({
|
|
93
|
+
sectionId: zod_1.z.string().uuid(),
|
|
94
|
+
schoolId: zod_1.z.string().uuid(),
|
|
95
|
+
type: exports.classworkItemTypeSchema,
|
|
96
|
+
title: zod_1.z.string().min(1).max(255),
|
|
97
|
+
description: zod_1.z.string().max(5000).optional(),
|
|
98
|
+
topicId: zod_1.z.string().uuid().optional(),
|
|
99
|
+
categoryId: zod_1.z.string().optional(),
|
|
100
|
+
categoryName: zod_1.z.string().max(100).optional(),
|
|
101
|
+
assessmentCategory: exports.classworkAssessmentCategorySchema.optional(),
|
|
102
|
+
possiblePoints: zod_1.z.number().min(0).max(10000).optional(),
|
|
103
|
+
dueDate: common_1.dateSchema.optional(),
|
|
104
|
+
status: exports.classworkItemStatusSchema.default('draft'),
|
|
105
|
+
});
|
|
106
|
+
// ============================================
|
|
107
|
+
// Update Classwork Item Schema
|
|
108
|
+
// ============================================
|
|
109
|
+
exports.updateClassworkItemSchema = zod_1.z.object({
|
|
110
|
+
title: zod_1.z.string().min(1).max(255).optional(),
|
|
111
|
+
description: zod_1.z.string().max(5000).optional(),
|
|
112
|
+
topicId: zod_1.z.string().uuid().nullable().optional(),
|
|
113
|
+
categoryId: zod_1.z.string().nullable().optional(),
|
|
114
|
+
categoryName: zod_1.z.string().max(100).nullable().optional(),
|
|
115
|
+
assessmentCategory: exports.classworkAssessmentCategorySchema.nullable().optional(),
|
|
116
|
+
possiblePoints: zod_1.z.number().min(0).max(10000).nullable().optional(),
|
|
117
|
+
dueDate: common_1.dateSchema.nullable().optional(),
|
|
118
|
+
status: exports.classworkItemStatusSchema.optional(),
|
|
119
|
+
sortOrder: zod_1.z.number().int().min(0).optional(),
|
|
120
|
+
});
|
|
121
|
+
// ============================================
|
|
122
|
+
// Create Classwork Topic Schema
|
|
123
|
+
// ============================================
|
|
124
|
+
exports.createClassworkTopicSchema = zod_1.z.object({
|
|
125
|
+
sectionId: zod_1.z.string().uuid(),
|
|
126
|
+
schoolId: zod_1.z.string().uuid(),
|
|
127
|
+
name: zod_1.z.string().min(1).max(200),
|
|
128
|
+
});
|
|
129
|
+
// ============================================
|
|
130
|
+
// Update Classwork Topic Schema
|
|
131
|
+
// ============================================
|
|
132
|
+
exports.updateClassworkTopicSchema = zod_1.z.object({
|
|
133
|
+
name: zod_1.z.string().min(1).max(200).optional(),
|
|
134
|
+
sortOrder: zod_1.z.number().int().min(0).optional(),
|
|
135
|
+
});
|
|
136
|
+
// ============================================
|
|
137
|
+
// Reorder Classwork Items Schema
|
|
138
|
+
// ============================================
|
|
139
|
+
exports.reorderClassworkItemsSchema = zod_1.z.object({
|
|
140
|
+
schoolId: zod_1.z.string().uuid(),
|
|
141
|
+
sectionId: zod_1.z.string().uuid(),
|
|
142
|
+
items: zod_1.z.array(zod_1.z.object({
|
|
143
|
+
id: zod_1.z.string().uuid(),
|
|
144
|
+
type: zod_1.z.enum(['item', 'topic']),
|
|
145
|
+
sortOrder: zod_1.z.number().int().min(0),
|
|
146
|
+
topicId: zod_1.z.string().uuid().nullable().optional(),
|
|
147
|
+
})).min(1).max(200),
|
|
148
|
+
});
|
|
149
|
+
//# sourceMappingURL=classwork.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classwork.schema.js","sourceRoot":"","sources":["../../../src/schemas/academics/classwork.schema.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,6BAAwB;AACxB,sCAAsD;AAEtD,+CAA+C;AAC/C,QAAQ;AACR,+CAA+C;AAElC,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC5C,YAAY;IACZ,MAAM;IACN,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC9C,OAAO;IACP,WAAW;IACX,WAAW;CACZ,CAAC,CAAC;AAGU,QAAA,iCAAiC,GAAG,OAAC,CAAC,IAAI,CAAC;IACtD,WAAW;IACX,WAAW;CACZ,CAAC,CAAC;AAGH,+CAA+C;AAC/C,8BAA8B;AAC9B,+CAA+C;AAElC,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAGH,+CAA+C;AAC/C,iCAAiC;AACjC,+CAA+C;AAElC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAA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AAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC/B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAClC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACpB,CAAC,CAAC"}
|
|
@@ -735,8 +735,8 @@ export declare const gradeFilterSchema: z.ZodObject<{
|
|
|
735
735
|
assignmentId: z.ZodOptional<z.ZodString>;
|
|
736
736
|
categoryType: z.ZodOptional<z.ZodEnum<["assignment", "quiz", "test", "exam", "project", "homework", "participation", "lab", "presentation", "other"]>>;
|
|
737
737
|
status: z.ZodOptional<z.ZodEnum<["draft", "submitted", "published", "excused", "missing", "incomplete"]>>;
|
|
738
|
-
dateFrom: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
739
|
-
dateTo: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
738
|
+
dateFrom: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
739
|
+
dateTo: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
740
740
|
gradingPeriodId: z.ZodOptional<z.ZodString>;
|
|
741
741
|
}, "strip", z.ZodTypeAny, {
|
|
742
742
|
status?: "excused" | "draft" | "submitted" | "published" | "missing" | "incomplete" | undefined;
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
export * from './student.schema';
|
|
7
7
|
export * from './classroom.schema';
|
|
8
8
|
export * from './attendance.schema';
|
|
9
|
+
export * from './section-attendance.schema';
|
|
9
10
|
export * from './grade.schema';
|
|
10
11
|
export * from './assignment.schema';
|
|
11
12
|
export * from './course.schema';
|
|
12
13
|
export * from './course-section.schema';
|
|
13
14
|
export * from './course-offering.schema';
|
|
14
15
|
export * from './grading-policy.schema';
|
|
16
|
+
export * from './classwork.schema';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/academics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/academics/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
|
@@ -22,10 +22,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
__exportStar(require("./student.schema"), exports);
|
|
23
23
|
__exportStar(require("./classroom.schema"), exports);
|
|
24
24
|
__exportStar(require("./attendance.schema"), exports);
|
|
25
|
+
__exportStar(require("./section-attendance.schema"), exports);
|
|
25
26
|
__exportStar(require("./grade.schema"), exports);
|
|
26
27
|
__exportStar(require("./assignment.schema"), exports);
|
|
27
28
|
__exportStar(require("./course.schema"), exports);
|
|
28
29
|
__exportStar(require("./course-section.schema"), exports);
|
|
29
30
|
__exportStar(require("./course-offering.schema"), exports);
|
|
30
31
|
__exportStar(require("./grading-policy.schema"), exports);
|
|
32
|
+
__exportStar(require("./classwork.schema"), exports);
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/academics/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schemas/academics/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,8DAA4C;AAC5C,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,0DAAwC;AACxC,qDAAmC"}
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section Attendance Schemas (Ed-Fi: StudentSectionAttendanceEvent)
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for section-level attendance DTOs.
|
|
5
|
+
* sectionId is REQUIRED on all create/bulk operations.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export declare const createSectionAttendanceSchema: z.ZodObject<{
|
|
9
|
+
studentId: z.ZodString;
|
|
10
|
+
sectionId: z.ZodString;
|
|
11
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
12
|
+
schoolId: z.ZodString;
|
|
13
|
+
status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
|
|
14
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
16
|
+
checkOutTime: z.ZodOptional<z.ZodString>;
|
|
17
|
+
durationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
|
|
19
|
+
excuseReason: z.ZodOptional<z.ZodString>;
|
|
20
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
21
|
+
parentNotified: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
parentNotifiedAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
25
|
+
date: string;
|
|
26
|
+
schoolId: string;
|
|
27
|
+
studentId: string;
|
|
28
|
+
parentNotified: boolean;
|
|
29
|
+
sectionId: string;
|
|
30
|
+
notes?: string | undefined;
|
|
31
|
+
durationMinutes?: number | undefined;
|
|
32
|
+
academicYearId?: string | undefined;
|
|
33
|
+
checkInTime?: string | undefined;
|
|
34
|
+
checkOutTime?: string | undefined;
|
|
35
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
36
|
+
excuseReason?: string | undefined;
|
|
37
|
+
parentNotifiedAt?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
40
|
+
date: string;
|
|
41
|
+
schoolId: string;
|
|
42
|
+
studentId: string;
|
|
43
|
+
sectionId: string;
|
|
44
|
+
notes?: string | undefined;
|
|
45
|
+
durationMinutes?: number | undefined;
|
|
46
|
+
academicYearId?: string | undefined;
|
|
47
|
+
checkInTime?: string | undefined;
|
|
48
|
+
checkOutTime?: string | undefined;
|
|
49
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
50
|
+
excuseReason?: string | undefined;
|
|
51
|
+
parentNotified?: boolean | undefined;
|
|
52
|
+
parentNotifiedAt?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type CreateSectionAttendanceDto = z.infer<typeof createSectionAttendanceSchema>;
|
|
55
|
+
export declare const updateSectionAttendanceSchema: z.ZodObject<{
|
|
56
|
+
status: z.ZodOptional<z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>>;
|
|
57
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
58
|
+
checkOutTime: z.ZodOptional<z.ZodString>;
|
|
59
|
+
durationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
|
|
61
|
+
excuseReason: z.ZodOptional<z.ZodString>;
|
|
62
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
63
|
+
parentNotified: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
parentNotifiedAt: z.ZodOptional<z.ZodString>;
|
|
65
|
+
expectedVersion: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
|
|
68
|
+
notes?: string | undefined;
|
|
69
|
+
durationMinutes?: number | undefined;
|
|
70
|
+
checkInTime?: string | undefined;
|
|
71
|
+
checkOutTime?: string | undefined;
|
|
72
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
73
|
+
excuseReason?: string | undefined;
|
|
74
|
+
parentNotified?: boolean | undefined;
|
|
75
|
+
parentNotifiedAt?: string | undefined;
|
|
76
|
+
expectedVersion?: number | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
status?: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote" | undefined;
|
|
79
|
+
notes?: string | undefined;
|
|
80
|
+
durationMinutes?: number | undefined;
|
|
81
|
+
checkInTime?: string | undefined;
|
|
82
|
+
checkOutTime?: string | undefined;
|
|
83
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
84
|
+
excuseReason?: string | undefined;
|
|
85
|
+
parentNotified?: boolean | undefined;
|
|
86
|
+
parentNotifiedAt?: string | undefined;
|
|
87
|
+
expectedVersion?: number | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
export type UpdateSectionAttendanceDto = z.infer<typeof updateSectionAttendanceSchema>;
|
|
90
|
+
export declare const sectionAttendanceResponseSchema: z.ZodObject<{
|
|
91
|
+
sectionAttendanceId: z.ZodString;
|
|
92
|
+
studentId: z.ZodString;
|
|
93
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
94
|
+
schoolId: z.ZodString;
|
|
95
|
+
sectionId: z.ZodString;
|
|
96
|
+
courseName: z.ZodOptional<z.ZodString>;
|
|
97
|
+
courseCode: z.ZodOptional<z.ZodString>;
|
|
98
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
99
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
100
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
|
|
102
|
+
attendanceEventCategory: z.ZodOptional<z.ZodString>;
|
|
103
|
+
attendanceEventReason: z.ZodOptional<z.ZodString>;
|
|
104
|
+
educationalEnvironment: z.ZodOptional<z.ZodString>;
|
|
105
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
106
|
+
checkOutTime: z.ZodOptional<z.ZodString>;
|
|
107
|
+
durationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
|
|
109
|
+
excuseReason: z.ZodOptional<z.ZodString>;
|
|
110
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
111
|
+
parentNotified: z.ZodBoolean;
|
|
112
|
+
parentNotifiedAt: z.ZodOptional<z.ZodString>;
|
|
113
|
+
createdAt: z.ZodString;
|
|
114
|
+
updatedAt: z.ZodString;
|
|
115
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
116
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
117
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
120
|
+
createdAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
date: string;
|
|
123
|
+
schoolId: string;
|
|
124
|
+
studentId: string;
|
|
125
|
+
parentNotified: boolean;
|
|
126
|
+
sectionId: string;
|
|
127
|
+
sectionAttendanceId: string;
|
|
128
|
+
createdBy?: string | undefined;
|
|
129
|
+
updatedBy?: string | undefined;
|
|
130
|
+
version?: number | undefined;
|
|
131
|
+
notes?: string | undefined;
|
|
132
|
+
durationMinutes?: number | undefined;
|
|
133
|
+
dayOfWeek?: number | undefined;
|
|
134
|
+
academicYearId?: string | undefined;
|
|
135
|
+
courseCode?: string | undefined;
|
|
136
|
+
checkInTime?: string | undefined;
|
|
137
|
+
checkOutTime?: string | undefined;
|
|
138
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
139
|
+
excuseReason?: string | undefined;
|
|
140
|
+
parentNotifiedAt?: string | undefined;
|
|
141
|
+
studentName?: string | undefined;
|
|
142
|
+
courseName?: string | undefined;
|
|
143
|
+
attendanceEventCategory?: string | undefined;
|
|
144
|
+
attendanceEventReason?: string | undefined;
|
|
145
|
+
educationalEnvironment?: string | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
date: string;
|
|
151
|
+
schoolId: string;
|
|
152
|
+
studentId: string;
|
|
153
|
+
parentNotified: boolean;
|
|
154
|
+
sectionId: string;
|
|
155
|
+
sectionAttendanceId: string;
|
|
156
|
+
createdBy?: string | undefined;
|
|
157
|
+
updatedBy?: string | undefined;
|
|
158
|
+
version?: number | undefined;
|
|
159
|
+
notes?: string | undefined;
|
|
160
|
+
durationMinutes?: number | undefined;
|
|
161
|
+
dayOfWeek?: number | undefined;
|
|
162
|
+
academicYearId?: string | undefined;
|
|
163
|
+
courseCode?: string | undefined;
|
|
164
|
+
checkInTime?: string | undefined;
|
|
165
|
+
checkOutTime?: string | undefined;
|
|
166
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
167
|
+
excuseReason?: string | undefined;
|
|
168
|
+
parentNotifiedAt?: string | undefined;
|
|
169
|
+
studentName?: string | undefined;
|
|
170
|
+
courseName?: string | undefined;
|
|
171
|
+
attendanceEventCategory?: string | undefined;
|
|
172
|
+
attendanceEventReason?: string | undefined;
|
|
173
|
+
educationalEnvironment?: string | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
export type SectionAttendanceResponseDto = z.infer<typeof sectionAttendanceResponseSchema>;
|
|
176
|
+
export declare const sectionAttendanceListResponseSchema: z.ZodObject<{
|
|
177
|
+
items: z.ZodArray<z.ZodObject<{
|
|
178
|
+
sectionAttendanceId: z.ZodString;
|
|
179
|
+
studentId: z.ZodString;
|
|
180
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
181
|
+
schoolId: z.ZodString;
|
|
182
|
+
sectionId: z.ZodString;
|
|
183
|
+
courseName: z.ZodOptional<z.ZodString>;
|
|
184
|
+
courseCode: z.ZodOptional<z.ZodString>;
|
|
185
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
186
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
187
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
|
|
189
|
+
attendanceEventCategory: z.ZodOptional<z.ZodString>;
|
|
190
|
+
attendanceEventReason: z.ZodOptional<z.ZodString>;
|
|
191
|
+
educationalEnvironment: z.ZodOptional<z.ZodString>;
|
|
192
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
193
|
+
checkOutTime: z.ZodOptional<z.ZodString>;
|
|
194
|
+
durationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
excuseType: z.ZodOptional<z.ZodEnum<["medical", "family_emergency", "religious", "school_activity", "weather", "transportation", "other"]>>;
|
|
196
|
+
excuseReason: z.ZodOptional<z.ZodString>;
|
|
197
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
198
|
+
parentNotified: z.ZodBoolean;
|
|
199
|
+
parentNotifiedAt: z.ZodOptional<z.ZodString>;
|
|
200
|
+
createdAt: z.ZodString;
|
|
201
|
+
updatedAt: z.ZodString;
|
|
202
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
203
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
204
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
207
|
+
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
date: string;
|
|
210
|
+
schoolId: string;
|
|
211
|
+
studentId: string;
|
|
212
|
+
parentNotified: boolean;
|
|
213
|
+
sectionId: string;
|
|
214
|
+
sectionAttendanceId: string;
|
|
215
|
+
createdBy?: string | undefined;
|
|
216
|
+
updatedBy?: string | undefined;
|
|
217
|
+
version?: number | undefined;
|
|
218
|
+
notes?: string | undefined;
|
|
219
|
+
durationMinutes?: number | undefined;
|
|
220
|
+
dayOfWeek?: number | undefined;
|
|
221
|
+
academicYearId?: string | undefined;
|
|
222
|
+
courseCode?: string | undefined;
|
|
223
|
+
checkInTime?: string | undefined;
|
|
224
|
+
checkOutTime?: string | undefined;
|
|
225
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
226
|
+
excuseReason?: string | undefined;
|
|
227
|
+
parentNotifiedAt?: string | undefined;
|
|
228
|
+
studentName?: string | undefined;
|
|
229
|
+
courseName?: string | undefined;
|
|
230
|
+
attendanceEventCategory?: string | undefined;
|
|
231
|
+
attendanceEventReason?: string | undefined;
|
|
232
|
+
educationalEnvironment?: string | undefined;
|
|
233
|
+
}, {
|
|
234
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
235
|
+
createdAt: string;
|
|
236
|
+
updatedAt: string;
|
|
237
|
+
date: string;
|
|
238
|
+
schoolId: string;
|
|
239
|
+
studentId: string;
|
|
240
|
+
parentNotified: boolean;
|
|
241
|
+
sectionId: string;
|
|
242
|
+
sectionAttendanceId: string;
|
|
243
|
+
createdBy?: string | undefined;
|
|
244
|
+
updatedBy?: string | undefined;
|
|
245
|
+
version?: number | undefined;
|
|
246
|
+
notes?: string | undefined;
|
|
247
|
+
durationMinutes?: number | undefined;
|
|
248
|
+
dayOfWeek?: number | undefined;
|
|
249
|
+
academicYearId?: string | undefined;
|
|
250
|
+
courseCode?: string | undefined;
|
|
251
|
+
checkInTime?: string | undefined;
|
|
252
|
+
checkOutTime?: string | undefined;
|
|
253
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
254
|
+
excuseReason?: string | undefined;
|
|
255
|
+
parentNotifiedAt?: string | undefined;
|
|
256
|
+
studentName?: string | undefined;
|
|
257
|
+
courseName?: string | undefined;
|
|
258
|
+
attendanceEventCategory?: string | undefined;
|
|
259
|
+
attendanceEventReason?: string | undefined;
|
|
260
|
+
educationalEnvironment?: string | undefined;
|
|
261
|
+
}>, "many">;
|
|
262
|
+
lastEvaluatedKey: z.ZodOptional<z.ZodString>;
|
|
263
|
+
hasMore: z.ZodBoolean;
|
|
264
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
items: {
|
|
267
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
268
|
+
createdAt: string;
|
|
269
|
+
updatedAt: string;
|
|
270
|
+
date: string;
|
|
271
|
+
schoolId: string;
|
|
272
|
+
studentId: string;
|
|
273
|
+
parentNotified: boolean;
|
|
274
|
+
sectionId: string;
|
|
275
|
+
sectionAttendanceId: string;
|
|
276
|
+
createdBy?: string | undefined;
|
|
277
|
+
updatedBy?: string | undefined;
|
|
278
|
+
version?: number | undefined;
|
|
279
|
+
notes?: string | undefined;
|
|
280
|
+
durationMinutes?: number | undefined;
|
|
281
|
+
dayOfWeek?: number | undefined;
|
|
282
|
+
academicYearId?: string | undefined;
|
|
283
|
+
courseCode?: string | undefined;
|
|
284
|
+
checkInTime?: string | undefined;
|
|
285
|
+
checkOutTime?: string | undefined;
|
|
286
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
287
|
+
excuseReason?: string | undefined;
|
|
288
|
+
parentNotifiedAt?: string | undefined;
|
|
289
|
+
studentName?: string | undefined;
|
|
290
|
+
courseName?: string | undefined;
|
|
291
|
+
attendanceEventCategory?: string | undefined;
|
|
292
|
+
attendanceEventReason?: string | undefined;
|
|
293
|
+
educationalEnvironment?: string | undefined;
|
|
294
|
+
}[];
|
|
295
|
+
hasMore: boolean;
|
|
296
|
+
lastEvaluatedKey?: string | undefined;
|
|
297
|
+
total?: number | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
items: {
|
|
300
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
301
|
+
createdAt: string;
|
|
302
|
+
updatedAt: string;
|
|
303
|
+
date: string;
|
|
304
|
+
schoolId: string;
|
|
305
|
+
studentId: string;
|
|
306
|
+
parentNotified: boolean;
|
|
307
|
+
sectionId: string;
|
|
308
|
+
sectionAttendanceId: string;
|
|
309
|
+
createdBy?: string | undefined;
|
|
310
|
+
updatedBy?: string | undefined;
|
|
311
|
+
version?: number | undefined;
|
|
312
|
+
notes?: string | undefined;
|
|
313
|
+
durationMinutes?: number | undefined;
|
|
314
|
+
dayOfWeek?: number | undefined;
|
|
315
|
+
academicYearId?: string | undefined;
|
|
316
|
+
courseCode?: string | undefined;
|
|
317
|
+
checkInTime?: string | undefined;
|
|
318
|
+
checkOutTime?: string | undefined;
|
|
319
|
+
excuseType?: "other" | "medical" | "family_emergency" | "religious" | "school_activity" | "weather" | "transportation" | undefined;
|
|
320
|
+
excuseReason?: string | undefined;
|
|
321
|
+
parentNotifiedAt?: string | undefined;
|
|
322
|
+
studentName?: string | undefined;
|
|
323
|
+
courseName?: string | undefined;
|
|
324
|
+
attendanceEventCategory?: string | undefined;
|
|
325
|
+
attendanceEventReason?: string | undefined;
|
|
326
|
+
educationalEnvironment?: string | undefined;
|
|
327
|
+
}[];
|
|
328
|
+
hasMore: boolean;
|
|
329
|
+
lastEvaluatedKey?: string | undefined;
|
|
330
|
+
total?: number | undefined;
|
|
331
|
+
}>;
|
|
332
|
+
export type SectionAttendanceListResponseDto = z.infer<typeof sectionAttendanceListResponseSchema>;
|
|
333
|
+
export declare const bulkSectionAttendanceRecordSchema: z.ZodObject<{
|
|
334
|
+
studentId: z.ZodString;
|
|
335
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
336
|
+
status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
|
|
337
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
338
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
341
|
+
studentId: string;
|
|
342
|
+
notes?: string | undefined;
|
|
343
|
+
checkInTime?: string | undefined;
|
|
344
|
+
studentName?: string | undefined;
|
|
345
|
+
}, {
|
|
346
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
347
|
+
studentId: string;
|
|
348
|
+
notes?: string | undefined;
|
|
349
|
+
checkInTime?: string | undefined;
|
|
350
|
+
studentName?: string | undefined;
|
|
351
|
+
}>;
|
|
352
|
+
export type BulkSectionAttendanceRecordDto = z.infer<typeof bulkSectionAttendanceRecordSchema>;
|
|
353
|
+
export declare const bulkSectionAttendanceSchema: z.ZodObject<{
|
|
354
|
+
sectionId: z.ZodString;
|
|
355
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
356
|
+
schoolId: z.ZodString;
|
|
357
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
358
|
+
records: z.ZodArray<z.ZodObject<{
|
|
359
|
+
studentId: z.ZodString;
|
|
360
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
361
|
+
status: z.ZodEnum<["present", "absent", "tardy", "excused", "late", "early_departure", "half_day", "remote"]>;
|
|
362
|
+
checkInTime: z.ZodOptional<z.ZodString>;
|
|
363
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
366
|
+
studentId: string;
|
|
367
|
+
notes?: string | undefined;
|
|
368
|
+
checkInTime?: string | undefined;
|
|
369
|
+
studentName?: string | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
372
|
+
studentId: string;
|
|
373
|
+
notes?: string | undefined;
|
|
374
|
+
checkInTime?: string | undefined;
|
|
375
|
+
studentName?: string | undefined;
|
|
376
|
+
}>, "many">;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
date: string;
|
|
379
|
+
schoolId: string;
|
|
380
|
+
sectionId: string;
|
|
381
|
+
records: {
|
|
382
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
383
|
+
studentId: string;
|
|
384
|
+
notes?: string | undefined;
|
|
385
|
+
checkInTime?: string | undefined;
|
|
386
|
+
studentName?: string | undefined;
|
|
387
|
+
}[];
|
|
388
|
+
academicYearId?: string | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
date: string;
|
|
391
|
+
schoolId: string;
|
|
392
|
+
sectionId: string;
|
|
393
|
+
records: {
|
|
394
|
+
status: "half_day" | "present" | "absent" | "late" | "excused" | "tardy" | "early_departure" | "remote";
|
|
395
|
+
studentId: string;
|
|
396
|
+
notes?: string | undefined;
|
|
397
|
+
checkInTime?: string | undefined;
|
|
398
|
+
studentName?: string | undefined;
|
|
399
|
+
}[];
|
|
400
|
+
academicYearId?: string | undefined;
|
|
401
|
+
}>;
|
|
402
|
+
export type BulkSectionAttendanceDto = z.infer<typeof bulkSectionAttendanceSchema>;
|
|
403
|
+
export declare const bulkSectionAttendanceResponseSchema: z.ZodObject<{
|
|
404
|
+
success: z.ZodBoolean;
|
|
405
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
406
|
+
schoolId: z.ZodString;
|
|
407
|
+
sectionId: z.ZodString;
|
|
408
|
+
totalProcessed: z.ZodNumber;
|
|
409
|
+
recordsCreated: z.ZodNumber;
|
|
410
|
+
recordsUpdated: z.ZodNumber;
|
|
411
|
+
errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
412
|
+
studentId: z.ZodString;
|
|
413
|
+
error: z.ZodString;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
error: string;
|
|
416
|
+
studentId: string;
|
|
417
|
+
}, {
|
|
418
|
+
error: string;
|
|
419
|
+
studentId: string;
|
|
420
|
+
}>, "many">>;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
date: string;
|
|
423
|
+
schoolId: string;
|
|
424
|
+
success: boolean;
|
|
425
|
+
sectionId: string;
|
|
426
|
+
totalProcessed: number;
|
|
427
|
+
recordsCreated: number;
|
|
428
|
+
recordsUpdated: number;
|
|
429
|
+
errors: {
|
|
430
|
+
error: string;
|
|
431
|
+
studentId: string;
|
|
432
|
+
}[];
|
|
433
|
+
}, {
|
|
434
|
+
date: string;
|
|
435
|
+
schoolId: string;
|
|
436
|
+
success: boolean;
|
|
437
|
+
sectionId: string;
|
|
438
|
+
totalProcessed: number;
|
|
439
|
+
recordsCreated: number;
|
|
440
|
+
recordsUpdated: number;
|
|
441
|
+
errors?: {
|
|
442
|
+
error: string;
|
|
443
|
+
studentId: string;
|
|
444
|
+
}[] | undefined;
|
|
445
|
+
}>;
|
|
446
|
+
export type BulkSectionAttendanceResponseDto = z.infer<typeof bulkSectionAttendanceResponseSchema>;
|
|
447
|
+
//# sourceMappingURL=section-attendance.schema.d.ts.map
|