@sekolaos/shared-schema 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/academic/academic-year.schema.js +8 -1
- package/dist/cjs/academic/academic-year.schema.js.map +1 -1
- package/dist/cjs/academic/class-room.schema.js +10 -3
- package/dist/cjs/academic/class-room.schema.js.map +1 -1
- package/dist/cjs/academic/subject.schema.js +11 -2
- package/dist/cjs/academic/subject.schema.js.map +1 -1
- package/dist/cjs/academic/teaching-schedule.schema.js +10 -1
- package/dist/cjs/academic/teaching-schedule.schema.js.map +1 -1
- package/dist/cjs/attendance/attendance-class.schema.js +9 -1
- package/dist/cjs/attendance/attendance-class.schema.js.map +1 -1
- package/dist/cjs/attendance/attendance-kiosk.schema.js +48 -1
- package/dist/cjs/attendance/attendance-kiosk.schema.js.map +1 -1
- package/dist/cjs/attendance/barcode-rolling.schema.js +27 -1
- package/dist/cjs/attendance/barcode-rolling.schema.js.map +1 -1
- package/dist/cjs/attendance/picket-assignment.schema.js +7 -1
- package/dist/cjs/attendance/picket-assignment.schema.js.map +1 -1
- package/dist/cjs/common/common.schema.js +15 -1
- package/dist/cjs/common/common.schema.js.map +1 -1
- package/dist/cjs/tenant/tenant.schema.js +37 -1
- package/dist/cjs/tenant/tenant.schema.js.map +1 -1
- package/dist/cjs/user/student.schema.js +14 -1
- package/dist/cjs/user/student.schema.js.map +1 -1
- package/dist/cjs/user/user.schema.js +10 -1
- package/dist/cjs/user/user.schema.js.map +1 -1
- package/dist/esm/academic/academic-year.schema.js +8 -1
- package/dist/esm/academic/academic-year.schema.js.map +1 -1
- package/dist/esm/academic/class-room.schema.js +10 -3
- package/dist/esm/academic/class-room.schema.js.map +1 -1
- package/dist/esm/academic/subject.schema.js +11 -2
- package/dist/esm/academic/subject.schema.js.map +1 -1
- package/dist/esm/academic/teaching-schedule.schema.js +9 -0
- package/dist/esm/academic/teaching-schedule.schema.js.map +1 -1
- package/dist/esm/attendance/attendance-class.schema.js +8 -0
- package/dist/esm/attendance/attendance-class.schema.js.map +1 -1
- package/dist/esm/attendance/attendance-kiosk.schema.js +48 -1
- package/dist/esm/attendance/attendance-kiosk.schema.js.map +1 -1
- package/dist/esm/attendance/barcode-rolling.schema.js +26 -0
- package/dist/esm/attendance/barcode-rolling.schema.js.map +1 -1
- package/dist/esm/attendance/picket-assignment.schema.js +7 -1
- package/dist/esm/attendance/picket-assignment.schema.js.map +1 -1
- package/dist/esm/common/common.schema.js +14 -0
- package/dist/esm/common/common.schema.js.map +1 -1
- package/dist/esm/tenant/tenant.schema.js +36 -0
- package/dist/esm/tenant/tenant.schema.js.map +1 -1
- package/dist/esm/user/student.schema.js +14 -1
- package/dist/esm/user/student.schema.js.map +1 -1
- package/dist/esm/user/user.schema.js +10 -1
- package/dist/esm/user/user.schema.js.map +1 -1
- package/dist/types/academic/academic-year.schema.d.ts +29 -4
- package/dist/types/academic/class-room.schema.d.ts +37 -12
- package/dist/types/academic/subject.schema.d.ts +25 -2
- package/dist/types/academic/teaching-schedule.schema.d.ts +25 -0
- package/dist/types/attendance/attendance-class.schema.d.ts +23 -0
- package/dist/types/attendance/attendance-kiosk.schema.d.ts +281 -0
- package/dist/types/attendance/barcode-rolling.schema.d.ts +75 -0
- package/dist/types/attendance/picket-assignment.schema.d.ts +17 -0
- package/dist/types/auth/role.schema.d.ts +4 -4
- package/dist/types/common/common.schema.d.ts +12 -0
- package/dist/types/tenant/attendance-shift.schema.d.ts +8 -8
- package/dist/types/tenant/tenant.schema.d.ts +79 -5
- package/dist/types/user/student.schema.d.ts +47 -0
- package/dist/types/user/user.schema.d.ts +33 -2
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare const studentSchema: z.ZodObject<{
|
|
|
15
15
|
classroomName: z.ZodString;
|
|
16
16
|
parentPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
barcodeValue: z.ZodString;
|
|
18
|
+
photoUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
19
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
id: string;
|
|
@@ -28,6 +29,7 @@ export declare const studentSchema: z.ZodObject<{
|
|
|
28
29
|
barcodeValue: string;
|
|
29
30
|
nisn?: string | null | undefined;
|
|
30
31
|
parentPhone?: string | null | undefined;
|
|
32
|
+
photoUrl?: string | null | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
id: string;
|
|
33
35
|
tenantId: string;
|
|
@@ -40,6 +42,7 @@ export declare const studentSchema: z.ZodObject<{
|
|
|
40
42
|
isActive?: boolean | undefined;
|
|
41
43
|
nisn?: string | null | undefined;
|
|
42
44
|
parentPhone?: string | null | undefined;
|
|
45
|
+
photoUrl?: string | null | undefined;
|
|
43
46
|
}>;
|
|
44
47
|
export declare const createStudentSchema: z.ZodObject<{
|
|
45
48
|
nis: z.ZodString;
|
|
@@ -49,6 +52,7 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
49
52
|
classroomId: z.ZodString;
|
|
50
53
|
parentPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
54
|
barcodeValue: z.ZodOptional<z.ZodString>;
|
|
55
|
+
photoUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
52
56
|
}, "strip", z.ZodTypeAny, {
|
|
53
57
|
classroomId: string;
|
|
54
58
|
fullName: string;
|
|
@@ -57,6 +61,7 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
57
61
|
nisn?: string | null | undefined;
|
|
58
62
|
parentPhone?: string | null | undefined;
|
|
59
63
|
barcodeValue?: string | undefined;
|
|
64
|
+
photoUrl?: string | null | undefined;
|
|
60
65
|
}, {
|
|
61
66
|
classroomId: string;
|
|
62
67
|
fullName: string;
|
|
@@ -65,6 +70,7 @@ export declare const createStudentSchema: z.ZodObject<{
|
|
|
65
70
|
nisn?: string | null | undefined;
|
|
66
71
|
parentPhone?: string | null | undefined;
|
|
67
72
|
barcodeValue?: string | undefined;
|
|
73
|
+
photoUrl?: string | null | undefined;
|
|
68
74
|
}>;
|
|
69
75
|
export declare const updateStudentSchema: z.ZodObject<{
|
|
70
76
|
nis: z.ZodOptional<z.ZodString>;
|
|
@@ -74,6 +80,7 @@ export declare const updateStudentSchema: z.ZodObject<{
|
|
|
74
80
|
classroomId: z.ZodOptional<z.ZodString>;
|
|
75
81
|
parentPhone: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
76
82
|
barcodeValue: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
77
84
|
}, "strip", z.ZodTypeAny, {
|
|
78
85
|
classroomId?: string | undefined;
|
|
79
86
|
fullName?: string | undefined;
|
|
@@ -82,6 +89,7 @@ export declare const updateStudentSchema: z.ZodObject<{
|
|
|
82
89
|
gender?: "L" | "P" | undefined;
|
|
83
90
|
parentPhone?: string | null | undefined;
|
|
84
91
|
barcodeValue?: string | undefined;
|
|
92
|
+
photoUrl?: string | null | undefined;
|
|
85
93
|
}, {
|
|
86
94
|
classroomId?: string | undefined;
|
|
87
95
|
fullName?: string | undefined;
|
|
@@ -90,6 +98,7 @@ export declare const updateStudentSchema: z.ZodObject<{
|
|
|
90
98
|
gender?: "L" | "P" | undefined;
|
|
91
99
|
parentPhone?: string | null | undefined;
|
|
92
100
|
barcodeValue?: string | undefined;
|
|
101
|
+
photoUrl?: string | null | undefined;
|
|
93
102
|
}>;
|
|
94
103
|
export declare const studentOfflineSyncCacheSchema: z.ZodObject<Pick<{
|
|
95
104
|
id: z.ZodString;
|
|
@@ -102,6 +111,7 @@ export declare const studentOfflineSyncCacheSchema: z.ZodObject<Pick<{
|
|
|
102
111
|
classroomName: z.ZodString;
|
|
103
112
|
parentPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
113
|
barcodeValue: z.ZodString;
|
|
114
|
+
photoUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
115
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
106
116
|
}, "id" | "classroomId" | "classroomName" | "fullName" | "nis" | "barcodeValue">, "strip", z.ZodTypeAny, {
|
|
107
117
|
id: string;
|
|
@@ -224,6 +234,43 @@ export declare const bulkImportStudentResponseSchema: z.ZodObject<{
|
|
|
224
234
|
totalSuccess: number;
|
|
225
235
|
totalFailed: number;
|
|
226
236
|
}>;
|
|
237
|
+
export declare const studentParamsSchema: z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
id: string;
|
|
241
|
+
}, {
|
|
242
|
+
id: string;
|
|
243
|
+
}>;
|
|
244
|
+
export declare const studentListQuerySchema: z.ZodObject<{
|
|
245
|
+
sortBy: z.ZodDefault<z.ZodEnum<["fullName", "nis"]>>;
|
|
246
|
+
sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
247
|
+
classroomId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
249
|
+
isActive: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
250
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
251
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
252
|
+
search: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
page: number;
|
|
255
|
+
limit: number;
|
|
256
|
+
sortBy: "fullName" | "nis";
|
|
257
|
+
sortOrder: "asc" | "desc";
|
|
258
|
+
search?: string | undefined;
|
|
259
|
+
academicYearId?: string | undefined;
|
|
260
|
+
isActive?: boolean | undefined;
|
|
261
|
+
classroomId?: string | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
page?: number | undefined;
|
|
264
|
+
limit?: number | undefined;
|
|
265
|
+
search?: string | undefined;
|
|
266
|
+
sortBy?: "fullName" | "nis" | undefined;
|
|
267
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
268
|
+
academicYearId?: string | undefined;
|
|
269
|
+
isActive?: "true" | "false" | undefined;
|
|
270
|
+
classroomId?: string | undefined;
|
|
271
|
+
}>;
|
|
272
|
+
export type StudentParams = z.infer<typeof studentParamsSchema>;
|
|
273
|
+
export type StudentListQuery = z.infer<typeof studentListQuerySchema>;
|
|
227
274
|
export type Gender = z.infer<typeof genderEnum>;
|
|
228
275
|
export type Student = z.infer<typeof studentSchema>;
|
|
229
276
|
export type CreateStudentInput = z.infer<typeof createStudentSchema>;
|
|
@@ -54,9 +54,9 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
54
54
|
updatedAt: z.ZodString;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
id: string;
|
|
57
|
+
tenantId: string;
|
|
57
58
|
createdAt: string;
|
|
58
59
|
updatedAt: string;
|
|
59
|
-
tenantId: string;
|
|
60
60
|
isActive: boolean;
|
|
61
61
|
username: string;
|
|
62
62
|
email: string;
|
|
@@ -71,9 +71,9 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
71
71
|
}[] | undefined;
|
|
72
72
|
}, {
|
|
73
73
|
id: string;
|
|
74
|
+
tenantId: string;
|
|
74
75
|
createdAt: string;
|
|
75
76
|
updatedAt: string;
|
|
76
|
-
tenantId: string;
|
|
77
77
|
username: string;
|
|
78
78
|
email: string;
|
|
79
79
|
fullName: string;
|
|
@@ -147,8 +147,39 @@ export declare const assignUserRolesRequestSchema: z.ZodObject<{
|
|
|
147
147
|
academicYearId: string;
|
|
148
148
|
roleIds: string[];
|
|
149
149
|
}>;
|
|
150
|
+
export declare const teacherParamsSchema: z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
id: string;
|
|
154
|
+
}, {
|
|
155
|
+
id: string;
|
|
156
|
+
}>;
|
|
157
|
+
export declare const teacherListQuerySchema: z.ZodObject<{
|
|
158
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
academicYearId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
isActive: z.ZodEffects<z.ZodOptional<z.ZodEnum<["true", "false"]>>, boolean | undefined, "true" | "false" | undefined>;
|
|
161
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
162
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
163
|
+
search: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
page: number;
|
|
166
|
+
limit: number;
|
|
167
|
+
search?: string | undefined;
|
|
168
|
+
roleId?: string | undefined;
|
|
169
|
+
academicYearId?: string | undefined;
|
|
170
|
+
isActive?: boolean | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
page?: number | undefined;
|
|
173
|
+
limit?: number | undefined;
|
|
174
|
+
search?: string | undefined;
|
|
175
|
+
roleId?: string | undefined;
|
|
176
|
+
academicYearId?: string | undefined;
|
|
177
|
+
isActive?: "true" | "false" | undefined;
|
|
178
|
+
}>;
|
|
150
179
|
export type User = z.infer<typeof userSchema>;
|
|
151
180
|
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
152
181
|
export type CreateUserInput = z.infer<typeof createUserSchema>;
|
|
153
182
|
export type UpdateUserInput = z.infer<typeof updateUserSchema>;
|
|
154
183
|
export type AssignUserRolesRequest = z.infer<typeof assignUserRolesRequestSchema>;
|
|
184
|
+
export type TeacherParams = z.infer<typeof teacherParamsSchema>;
|
|
185
|
+
export type TeacherListQuery = z.infer<typeof teacherListQuerySchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekolaos/shared-schema",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Single source of truth untuk validasi skema data dan inferensi tipe TypeScript pada ekosistem Sekolaos (backend Express, kiosk presensi, dan modul lainnya).",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Sekolaos",
|