@brite-future-schools-contracts/contracts 1.0.7 → 2.0.2
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/chunk-AEZO7MJD.js +127 -0
- package/dist/chunk-AEZO7MJD.js.map +1 -0
- package/dist/chunk-IR6JUP6L.js +48 -0
- package/dist/chunk-IR6JUP6L.js.map +1 -0
- package/dist/chunk-PCHAGP5X.js +1 -0
- package/dist/contracts/index.cjs +179 -0
- package/dist/contracts/index.cjs.map +1 -0
- package/dist/contracts/index.d.cts +201 -0
- package/dist/contracts/index.d.ts +159 -7896
- package/dist/contracts/index.js +22 -1281
- package/dist/contracts/index.js.map +1 -1
- package/dist/index.cjs +222 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +62 -1393
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +181 -0
- package/dist/schemas/index.cjs.map +1 -0
- package/dist/schemas/index.d.cts +145 -0
- package/dist/schemas/index.d.ts +130 -841
- package/dist/schemas/index.js +42 -572
- package/dist/schemas/index.js.map +1 -1
- package/package.json +32 -59
- package/dist/chunk-7A7N5DCT.mjs +0 -854
- package/dist/chunk-7A7N5DCT.mjs.map +0 -1
- package/dist/chunk-OJCH3PZZ.mjs +0 -495
- package/dist/chunk-OJCH3PZZ.mjs.map +0 -1
- package/dist/contracts/index.d.mts +0 -7938
- package/dist/contracts/index.mjs +0 -36
- package/dist/index.d.mts +0 -4
- package/dist/index.mjs +0 -149
- package/dist/index.mjs.map +0 -1
- package/dist/schemas/index.d.mts +0 -856
- package/dist/schemas/index.mjs +0 -117
- package/dist/schemas/index.mjs.map +0 -1
- package/src/contracts/index.ts +0 -1096
- package/src/index.ts +0 -2
- package/src/schemas/index.ts +0 -524
- /package/dist/{contracts/index.mjs.map → chunk-PCHAGP5X.js.map} +0 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,856 +1,145 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Brite Future Schools — bfs-contracts
|
|
5
|
+
* Base Zod schemas: reusable primitives shared across all domain schemas.
|
|
6
|
+
*
|
|
7
|
+
* Phase History:
|
|
8
|
+
* Phase 0.1 (2026-06-05): Initial creation
|
|
9
|
+
*
|
|
10
|
+
* @module src/schemas/base
|
|
11
|
+
* @since Phase 0.1
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
declare const CuidSchema: z.ZodString;
|
|
15
|
+
declare const UuidSchema: z.ZodUUID;
|
|
16
|
+
declare const TimestampsSchema: z.ZodObject<{
|
|
17
|
+
createdAt: z.ZodISODateTime;
|
|
18
|
+
updatedAt: z.ZodISODateTime;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const SoftDeleteSchema: z.ZodObject<{
|
|
21
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const PaginationInputSchema: z.ZodObject<{
|
|
24
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
25
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare function paginatedOutputSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
28
|
+
items: z.ZodArray<T>;
|
|
29
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
30
|
+
total: z.ZodInt;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const BranchRefSchema: z.ZodObject<{
|
|
33
|
+
branchId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type Timestamps = z.infer<typeof TimestampsSchema>;
|
|
36
|
+
type SoftDelete = z.infer<typeof SoftDeleteSchema>;
|
|
37
|
+
type PaginationInput = z.infer<typeof PaginationInputSchema>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Brite Future Schools — bfs-contracts
|
|
41
|
+
* Auth-related Zod schemas.
|
|
42
|
+
*
|
|
43
|
+
* Phase History:
|
|
44
|
+
* Phase 0.1 (2026-06-05): Initial creation
|
|
45
|
+
*
|
|
46
|
+
* @module src/schemas/auth
|
|
47
|
+
* @since Phase 0.1
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
declare const SessionUserRoleSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
branchId: z.ZodString;
|
|
54
|
+
isPrimary: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
declare const SessionUserSubRoleSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
branchId: z.ZodString;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
declare const SessionUserOutputSchema: z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
email: z.ZodEmail;
|
|
64
|
+
firstName: z.ZodString;
|
|
65
|
+
lastName: z.ZodString;
|
|
66
|
+
activeBranchId: z.ZodString;
|
|
67
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
branchId: z.ZodString;
|
|
71
|
+
isPrimary: z.ZodBoolean;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
subRoles: z.ZodArray<z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
branchId: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
isActive: z.ZodBoolean;
|
|
79
|
+
mustChangePassword: z.ZodBoolean;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
declare const LoginInputSchema: z.ZodObject<{
|
|
82
|
+
email: z.ZodEmail;
|
|
30
83
|
password: z.ZodString;
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
password: string;
|
|
35
|
-
deviceFingerprint?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
email: string;
|
|
38
|
-
password: string;
|
|
39
|
-
deviceFingerprint?: string | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
declare const loginOutputSchema: z.ZodObject<{
|
|
84
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
declare const LoginOutputSchema: z.ZodObject<{
|
|
42
87
|
accessToken: z.ZodString;
|
|
43
|
-
refreshToken: z.
|
|
88
|
+
refreshToken: z.ZodString;
|
|
89
|
+
expiresIn: z.ZodInt;
|
|
44
90
|
user: z.ZodObject<{
|
|
45
91
|
id: z.ZodString;
|
|
92
|
+
email: z.ZodEmail;
|
|
46
93
|
firstName: z.ZodString;
|
|
47
|
-
middleName: z.ZodNullable<z.ZodString>;
|
|
48
94
|
lastName: z.ZodString;
|
|
49
|
-
|
|
50
|
-
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
95
|
+
activeBranchId: z.ZodString;
|
|
51
96
|
roles: z.ZodArray<z.ZodObject<{
|
|
52
97
|
id: z.ZodString;
|
|
53
98
|
name: z.ZodString;
|
|
54
|
-
branchId: z.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
middleName: string | null;
|
|
71
|
-
lastName: string;
|
|
72
|
-
avatarUrl: string | null;
|
|
73
|
-
roles: {
|
|
74
|
-
id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
branchId: string | null;
|
|
77
|
-
}[];
|
|
78
|
-
activeBranchId: string | null;
|
|
79
|
-
isMfaEnabled: boolean;
|
|
80
|
-
}, {
|
|
81
|
-
email: string;
|
|
82
|
-
id: string;
|
|
83
|
-
firstName: string;
|
|
84
|
-
middleName: string | null;
|
|
85
|
-
lastName: string;
|
|
86
|
-
avatarUrl: string | null;
|
|
87
|
-
roles: {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
branchId: string | null;
|
|
91
|
-
}[];
|
|
92
|
-
activeBranchId: string | null;
|
|
93
|
-
isMfaEnabled: boolean;
|
|
94
|
-
}>;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
accessToken: string;
|
|
97
|
-
user: {
|
|
98
|
-
email: string;
|
|
99
|
-
id: string;
|
|
100
|
-
firstName: string;
|
|
101
|
-
middleName: string | null;
|
|
102
|
-
lastName: string;
|
|
103
|
-
avatarUrl: string | null;
|
|
104
|
-
roles: {
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
branchId: string | null;
|
|
108
|
-
}[];
|
|
109
|
-
activeBranchId: string | null;
|
|
110
|
-
isMfaEnabled: boolean;
|
|
111
|
-
};
|
|
112
|
-
refreshToken?: string | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
accessToken: string;
|
|
115
|
-
user: {
|
|
116
|
-
email: string;
|
|
117
|
-
id: string;
|
|
118
|
-
firstName: string;
|
|
119
|
-
middleName: string | null;
|
|
120
|
-
lastName: string;
|
|
121
|
-
avatarUrl: string | null;
|
|
122
|
-
roles: {
|
|
123
|
-
id: string;
|
|
124
|
-
name: string;
|
|
125
|
-
branchId: string | null;
|
|
126
|
-
}[];
|
|
127
|
-
activeBranchId: string | null;
|
|
128
|
-
isMfaEnabled: boolean;
|
|
129
|
-
};
|
|
130
|
-
refreshToken?: string | undefined;
|
|
131
|
-
}>;
|
|
132
|
-
declare const refreshTokenOutputSchema: z.ZodObject<{
|
|
99
|
+
branchId: z.ZodString;
|
|
100
|
+
isPrimary: z.ZodBoolean;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
subRoles: z.ZodArray<z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
branchId: z.ZodString;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
isActive: z.ZodBoolean;
|
|
108
|
+
mustChangePassword: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
declare const RefreshTokenInputSchema: z.ZodObject<{
|
|
112
|
+
refreshToken: z.ZodString;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
declare const RefreshTokenOutputSchema: z.ZodObject<{
|
|
133
115
|
accessToken: z.ZodString;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}>;
|
|
139
|
-
declare const
|
|
140
|
-
refreshToken: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
refreshToken?: string | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
refreshToken?: string | undefined;
|
|
145
|
-
}>;
|
|
146
|
-
declare const mfaVerifyInputSchema: z.ZodObject<{
|
|
147
|
-
totp: z.ZodString;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
totp: string;
|
|
150
|
-
}, {
|
|
151
|
-
totp: string;
|
|
152
|
-
}>;
|
|
153
|
-
declare const changePasswordInputSchema: z.ZodObject<{
|
|
116
|
+
expiresIn: z.ZodInt;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
declare const LogoutInputSchema: z.ZodObject<{
|
|
119
|
+
refreshToken: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
declare const ChangePasswordInputSchema: z.ZodObject<{
|
|
154
122
|
currentPassword: z.ZodString;
|
|
155
123
|
newPassword: z.ZodString;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
lastName: z.ZodString;
|
|
168
|
-
email: z.ZodString;
|
|
169
|
-
phone: z.ZodNullable<z.ZodString>;
|
|
170
|
-
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
171
|
-
isActive: z.ZodBoolean;
|
|
172
|
-
isMfaEnabled: z.ZodBoolean;
|
|
173
|
-
lastLoginAt: z.ZodNullable<z.ZodString>;
|
|
174
|
-
createdAt: z.ZodString;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
email: string;
|
|
177
|
-
id: string;
|
|
178
|
-
firstName: string;
|
|
179
|
-
middleName: string | null;
|
|
180
|
-
lastName: string;
|
|
181
|
-
avatarUrl: string | null;
|
|
182
|
-
isMfaEnabled: boolean;
|
|
183
|
-
phone: string | null;
|
|
184
|
-
isActive: boolean;
|
|
185
|
-
lastLoginAt: string | null;
|
|
186
|
-
createdAt: string;
|
|
187
|
-
}, {
|
|
188
|
-
email: string;
|
|
189
|
-
id: string;
|
|
190
|
-
firstName: string;
|
|
191
|
-
middleName: string | null;
|
|
192
|
-
lastName: string;
|
|
193
|
-
avatarUrl: string | null;
|
|
194
|
-
isMfaEnabled: boolean;
|
|
195
|
-
phone: string | null;
|
|
196
|
-
isActive: boolean;
|
|
197
|
-
lastLoginAt: string | null;
|
|
198
|
-
createdAt: string;
|
|
199
|
-
}>;
|
|
200
|
-
declare const branchSchema: z.ZodObject<{
|
|
201
|
-
id: z.ZodString;
|
|
202
|
-
name: z.ZodString;
|
|
203
|
-
code: z.ZodString;
|
|
204
|
-
address: z.ZodString;
|
|
205
|
-
county: z.ZodString;
|
|
206
|
-
phone: z.ZodNullable<z.ZodString>;
|
|
207
|
-
email: z.ZodNullable<z.ZodString>;
|
|
208
|
-
logoUrl: z.ZodNullable<z.ZodString>;
|
|
209
|
-
motto: z.ZodNullable<z.ZodString>;
|
|
210
|
-
principalId: z.ZodNullable<z.ZodString>;
|
|
211
|
-
mpesaPaybill: z.ZodNullable<z.ZodString>;
|
|
212
|
-
featureFlags: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
213
|
-
createdAt: z.ZodString;
|
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
code: string;
|
|
216
|
-
email: string | null;
|
|
217
|
-
id: string;
|
|
218
|
-
name: string;
|
|
219
|
-
phone: string | null;
|
|
220
|
-
createdAt: string;
|
|
221
|
-
address: string;
|
|
222
|
-
county: string;
|
|
223
|
-
logoUrl: string | null;
|
|
224
|
-
motto: string | null;
|
|
225
|
-
principalId: string | null;
|
|
226
|
-
mpesaPaybill: string | null;
|
|
227
|
-
featureFlags: Record<string, boolean>;
|
|
228
|
-
}, {
|
|
229
|
-
code: string;
|
|
230
|
-
email: string | null;
|
|
231
|
-
id: string;
|
|
232
|
-
name: string;
|
|
233
|
-
phone: string | null;
|
|
234
|
-
createdAt: string;
|
|
235
|
-
address: string;
|
|
236
|
-
county: string;
|
|
237
|
-
logoUrl: string | null;
|
|
238
|
-
motto: string | null;
|
|
239
|
-
principalId: string | null;
|
|
240
|
-
mpesaPaybill: string | null;
|
|
241
|
-
featureFlags: Record<string, boolean>;
|
|
242
|
-
}>;
|
|
243
|
-
declare const createBranchInputSchema: z.ZodObject<{
|
|
244
|
-
name: z.ZodString;
|
|
245
|
-
code: z.ZodString;
|
|
246
|
-
address: z.ZodString;
|
|
247
|
-
county: z.ZodString;
|
|
248
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
249
|
-
email: z.ZodOptional<z.ZodString>;
|
|
250
|
-
motto: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
code: string;
|
|
253
|
-
name: string;
|
|
254
|
-
address: string;
|
|
255
|
-
county: string;
|
|
256
|
-
email?: string | undefined;
|
|
257
|
-
phone?: string | undefined;
|
|
258
|
-
motto?: string | undefined;
|
|
259
|
-
}, {
|
|
260
|
-
code: string;
|
|
261
|
-
name: string;
|
|
262
|
-
address: string;
|
|
263
|
-
county: string;
|
|
264
|
-
email?: string | undefined;
|
|
265
|
-
phone?: string | undefined;
|
|
266
|
-
motto?: string | undefined;
|
|
267
|
-
}>;
|
|
268
|
-
declare const studentStatusEnum: z.ZodEnum<["active", "transferred", "graduated", "suspended", "withdrawn"]>;
|
|
269
|
-
declare const studentSchema: z.ZodObject<{
|
|
270
|
-
id: z.ZodString;
|
|
271
|
-
branchId: z.ZodString;
|
|
272
|
-
admissionNo: z.ZodString;
|
|
273
|
-
nemisNo: z.ZodNullable<z.ZodString>;
|
|
274
|
-
firstName: z.ZodString;
|
|
275
|
-
middleName: z.ZodNullable<z.ZodString>;
|
|
276
|
-
lastName: z.ZodString;
|
|
277
|
-
dateOfBirth: z.ZodString;
|
|
278
|
-
gender: z.ZodEnum<["male", "female"]>;
|
|
279
|
-
photoUrl: z.ZodNullable<z.ZodString>;
|
|
280
|
-
bloodGroup: z.ZodNullable<z.ZodString>;
|
|
281
|
-
admissionDate: z.ZodString;
|
|
282
|
-
status: z.ZodEnum<["active", "transferred", "graduated", "suspended", "withdrawn"]>;
|
|
283
|
-
currentClassId: z.ZodNullable<z.ZodString>;
|
|
284
|
-
createdAt: z.ZodString;
|
|
285
|
-
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
status: "active" | "suspended" | "transferred" | "graduated" | "withdrawn";
|
|
287
|
-
id: string;
|
|
288
|
-
firstName: string;
|
|
289
|
-
middleName: string | null;
|
|
290
|
-
lastName: string;
|
|
291
|
-
branchId: string;
|
|
292
|
-
createdAt: string;
|
|
293
|
-
admissionNo: string;
|
|
294
|
-
nemisNo: string | null;
|
|
295
|
-
dateOfBirth: string;
|
|
296
|
-
gender: "male" | "female";
|
|
297
|
-
photoUrl: string | null;
|
|
298
|
-
bloodGroup: string | null;
|
|
299
|
-
admissionDate: string;
|
|
300
|
-
currentClassId: string | null;
|
|
301
|
-
}, {
|
|
302
|
-
status: "active" | "suspended" | "transferred" | "graduated" | "withdrawn";
|
|
303
|
-
id: string;
|
|
304
|
-
firstName: string;
|
|
305
|
-
middleName: string | null;
|
|
306
|
-
lastName: string;
|
|
307
|
-
branchId: string;
|
|
308
|
-
createdAt: string;
|
|
309
|
-
admissionNo: string;
|
|
310
|
-
nemisNo: string | null;
|
|
311
|
-
dateOfBirth: string;
|
|
312
|
-
gender: "male" | "female";
|
|
313
|
-
photoUrl: string | null;
|
|
314
|
-
bloodGroup: string | null;
|
|
315
|
-
admissionDate: string;
|
|
316
|
-
currentClassId: string | null;
|
|
317
|
-
}>;
|
|
318
|
-
declare const createStudentInputSchema: z.ZodObject<{
|
|
319
|
-
admissionNo: z.ZodString;
|
|
320
|
-
nemisNo: z.ZodOptional<z.ZodString>;
|
|
321
|
-
firstName: z.ZodString;
|
|
322
|
-
middleName: z.ZodOptional<z.ZodString>;
|
|
323
|
-
lastName: z.ZodString;
|
|
324
|
-
dateOfBirth: z.ZodString;
|
|
325
|
-
gender: z.ZodEnum<["male", "female"]>;
|
|
326
|
-
admissionDate: z.ZodString;
|
|
327
|
-
guardianId: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}, "strip", z.ZodTypeAny, {
|
|
329
|
-
firstName: string;
|
|
330
|
-
lastName: string;
|
|
331
|
-
admissionNo: string;
|
|
332
|
-
dateOfBirth: string;
|
|
333
|
-
gender: "male" | "female";
|
|
334
|
-
admissionDate: string;
|
|
335
|
-
middleName?: string | undefined;
|
|
336
|
-
nemisNo?: string | undefined;
|
|
337
|
-
guardianId?: string | undefined;
|
|
338
|
-
}, {
|
|
339
|
-
firstName: string;
|
|
340
|
-
lastName: string;
|
|
341
|
-
admissionNo: string;
|
|
342
|
-
dateOfBirth: string;
|
|
343
|
-
gender: "male" | "female";
|
|
344
|
-
admissionDate: string;
|
|
345
|
-
middleName?: string | undefined;
|
|
346
|
-
nemisNo?: string | undefined;
|
|
347
|
-
guardianId?: string | undefined;
|
|
348
|
-
}>;
|
|
349
|
-
declare const listStudentsInputSchema: z.ZodObject<{
|
|
350
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
351
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
352
|
-
} & {
|
|
353
|
-
branchId: z.ZodOptional<z.ZodString>;
|
|
354
|
-
classId: z.ZodOptional<z.ZodString>;
|
|
355
|
-
gradeId: z.ZodOptional<z.ZodString>;
|
|
356
|
-
search: z.ZodOptional<z.ZodString>;
|
|
357
|
-
status: z.ZodOptional<z.ZodEnum<["active", "transferred", "graduated", "suspended", "withdrawn"]>>;
|
|
358
|
-
termId: z.ZodOptional<z.ZodString>;
|
|
359
|
-
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
page: number;
|
|
361
|
-
limit: number;
|
|
362
|
-
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
363
|
-
branchId?: string | undefined;
|
|
364
|
-
classId?: string | undefined;
|
|
365
|
-
gradeId?: string | undefined;
|
|
366
|
-
search?: string | undefined;
|
|
367
|
-
termId?: string | undefined;
|
|
368
|
-
}, {
|
|
369
|
-
page?: number | undefined;
|
|
370
|
-
limit?: number | undefined;
|
|
371
|
-
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
372
|
-
branchId?: string | undefined;
|
|
373
|
-
classId?: string | undefined;
|
|
374
|
-
gradeId?: string | undefined;
|
|
375
|
-
search?: string | undefined;
|
|
376
|
-
termId?: string | undefined;
|
|
377
|
-
}>;
|
|
378
|
-
declare const guardianSchema: z.ZodObject<{
|
|
379
|
-
id: z.ZodString;
|
|
380
|
-
userId: z.ZodString;
|
|
381
|
-
firstName: z.ZodString;
|
|
382
|
-
middleName: z.ZodNullable<z.ZodString>;
|
|
383
|
-
lastName: z.ZodString;
|
|
384
|
-
relationship: z.ZodString;
|
|
385
|
-
phone: z.ZodString;
|
|
386
|
-
email: z.ZodNullable<z.ZodString>;
|
|
387
|
-
nationalId: z.ZodNullable<z.ZodString>;
|
|
388
|
-
occupation: z.ZodNullable<z.ZodString>;
|
|
389
|
-
address: z.ZodNullable<z.ZodString>;
|
|
390
|
-
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
email: string | null;
|
|
392
|
-
id: string;
|
|
393
|
-
firstName: string;
|
|
394
|
-
middleName: string | null;
|
|
395
|
-
lastName: string;
|
|
396
|
-
phone: string;
|
|
397
|
-
address: string | null;
|
|
398
|
-
userId: string;
|
|
399
|
-
relationship: string;
|
|
400
|
-
nationalId: string | null;
|
|
401
|
-
occupation: string | null;
|
|
402
|
-
}, {
|
|
403
|
-
email: string | null;
|
|
404
|
-
id: string;
|
|
405
|
-
firstName: string;
|
|
406
|
-
middleName: string | null;
|
|
407
|
-
lastName: string;
|
|
408
|
-
phone: string;
|
|
409
|
-
address: string | null;
|
|
410
|
-
userId: string;
|
|
411
|
-
relationship: string;
|
|
412
|
-
nationalId: string | null;
|
|
413
|
-
occupation: string | null;
|
|
414
|
-
}>;
|
|
415
|
-
declare const sponsorTypeEnum: z.ZodEnum<["organisation", "individual"]>;
|
|
416
|
-
declare const sponsorSchema: z.ZodObject<{
|
|
417
|
-
id: z.ZodString;
|
|
418
|
-
branchId: z.ZodString;
|
|
419
|
-
type: z.ZodEnum<["organisation", "individual"]>;
|
|
420
|
-
organisationName: z.ZodNullable<z.ZodString>;
|
|
421
|
-
firstName: z.ZodNullable<z.ZodString>;
|
|
422
|
-
middleName: z.ZodNullable<z.ZodString>;
|
|
423
|
-
lastName: z.ZodNullable<z.ZodString>;
|
|
424
|
-
contactUserId: z.ZodNullable<z.ZodString>;
|
|
425
|
-
phone: z.ZodString;
|
|
426
|
-
email: z.ZodNullable<z.ZodString>;
|
|
427
|
-
address: z.ZodNullable<z.ZodString>;
|
|
428
|
-
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
type: "organisation" | "individual";
|
|
430
|
-
email: string | null;
|
|
431
|
-
id: string;
|
|
432
|
-
firstName: string | null;
|
|
433
|
-
middleName: string | null;
|
|
434
|
-
lastName: string | null;
|
|
435
|
-
branchId: string;
|
|
436
|
-
phone: string;
|
|
437
|
-
address: string | null;
|
|
438
|
-
organisationName: string | null;
|
|
439
|
-
contactUserId: string | null;
|
|
440
|
-
}, {
|
|
441
|
-
type: "organisation" | "individual";
|
|
442
|
-
email: string | null;
|
|
443
|
-
id: string;
|
|
444
|
-
firstName: string | null;
|
|
445
|
-
middleName: string | null;
|
|
446
|
-
lastName: string | null;
|
|
447
|
-
branchId: string;
|
|
448
|
-
phone: string;
|
|
449
|
-
address: string | null;
|
|
450
|
-
organisationName: string | null;
|
|
451
|
-
contactUserId: string | null;
|
|
452
|
-
}>;
|
|
453
|
-
declare const gradeLevelEnum: z.ZodEnum<["PP1", "PP2", "G1", "G2", "G3", "G4", "G5", "G6", "G7", "G8", "G9"]>;
|
|
454
|
-
declare const assessmentTypeEnum: z.ZodEnum<["formative", "summative", "knec_national", "informal"]>;
|
|
455
|
-
declare const rubricBandEnum: z.ZodEnum<["EE", "ME", "AE", "BE"]>;
|
|
456
|
-
declare const subjectSchema: z.ZodObject<{
|
|
457
|
-
id: z.ZodString;
|
|
458
|
-
branchId: z.ZodString;
|
|
459
|
-
name: z.ZodString;
|
|
460
|
-
code: z.ZodString;
|
|
461
|
-
gradeLevel: z.ZodEnum<["PP1", "PP2", "G1", "G2", "G3", "G4", "G5", "G6", "G7", "G8", "G9"]>;
|
|
462
|
-
departmentId: z.ZodNullable<z.ZodString>;
|
|
463
|
-
}, "strip", z.ZodTypeAny, {
|
|
464
|
-
code: string;
|
|
465
|
-
id: string;
|
|
466
|
-
name: string;
|
|
467
|
-
branchId: string;
|
|
468
|
-
gradeLevel: "PP1" | "PP2" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9";
|
|
469
|
-
departmentId: string | null;
|
|
470
|
-
}, {
|
|
471
|
-
code: string;
|
|
472
|
-
id: string;
|
|
473
|
-
name: string;
|
|
474
|
-
branchId: string;
|
|
475
|
-
gradeLevel: "PP1" | "PP2" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9";
|
|
476
|
-
departmentId: string | null;
|
|
477
|
-
}>;
|
|
478
|
-
declare const assessmentScoreInputSchema: z.ZodObject<{
|
|
479
|
-
assessmentId: z.ZodString;
|
|
480
|
-
studentId: z.ZodString;
|
|
481
|
-
subStrandId: z.ZodString;
|
|
482
|
-
numericScore: z.ZodNumber;
|
|
483
|
-
comments: z.ZodOptional<z.ZodString>;
|
|
484
|
-
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
assessmentId: string;
|
|
486
|
-
studentId: string;
|
|
487
|
-
subStrandId: string;
|
|
488
|
-
numericScore: number;
|
|
489
|
-
comments?: string | undefined;
|
|
490
|
-
}, {
|
|
491
|
-
assessmentId: string;
|
|
492
|
-
studentId: string;
|
|
493
|
-
subStrandId: string;
|
|
494
|
-
numericScore: number;
|
|
495
|
-
comments?: string | undefined;
|
|
496
|
-
}>;
|
|
497
|
-
declare const reportCardStatusEnum: z.ZodEnum<["draft", "hod_review", "principal_review", "released", "blocked"]>;
|
|
498
|
-
declare const feeItemCategoryEnum: z.ZodEnum<["compulsory", "class_specific", "additive"]>;
|
|
499
|
-
declare const paymentMethodEnum: z.ZodEnum<["mpesa", "bank", "card", "cash", "cheque"]>;
|
|
500
|
-
declare const invoiceStatusEnum: z.ZodEnum<["draft", "sent", "partial", "paid", "overdue", "cancelled"]>;
|
|
501
|
-
declare const feeItemSchema: z.ZodObject<{
|
|
502
|
-
id: z.ZodString;
|
|
503
|
-
branchId: z.ZodString;
|
|
504
|
-
name: z.ZodString;
|
|
505
|
-
category: z.ZodEnum<["compulsory", "class_specific", "additive"]>;
|
|
506
|
-
defaultAmount: z.ZodNumber;
|
|
507
|
-
applicableGrades: z.ZodArray<z.ZodEnum<["PP1", "PP2", "G1", "G2", "G3", "G4", "G5", "G6", "G7", "G8", "G9"]>, "many">;
|
|
508
|
-
isActive: z.ZodBoolean;
|
|
509
|
-
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
id: string;
|
|
511
|
-
name: string;
|
|
512
|
-
branchId: string;
|
|
513
|
-
isActive: boolean;
|
|
514
|
-
category: "compulsory" | "class_specific" | "additive";
|
|
515
|
-
defaultAmount: number;
|
|
516
|
-
applicableGrades: ("PP1" | "PP2" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9")[];
|
|
517
|
-
}, {
|
|
518
|
-
id: string;
|
|
519
|
-
name: string;
|
|
520
|
-
branchId: string;
|
|
521
|
-
isActive: boolean;
|
|
522
|
-
category: "compulsory" | "class_specific" | "additive";
|
|
523
|
-
defaultAmount: number;
|
|
524
|
-
applicableGrades: ("PP1" | "PP2" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9")[];
|
|
525
|
-
}>;
|
|
526
|
-
declare const recordPaymentInputSchema: z.ZodObject<{
|
|
527
|
-
studentId: z.ZodString;
|
|
528
|
-
invoiceId: z.ZodString;
|
|
529
|
-
amount: z.ZodNumber;
|
|
530
|
-
method: z.ZodEnum<["mpesa", "bank", "card", "cash", "cheque"]>;
|
|
531
|
-
reference: z.ZodOptional<z.ZodString>;
|
|
532
|
-
mpesaReceipt: z.ZodOptional<z.ZodString>;
|
|
533
|
-
paymentDate: z.ZodString;
|
|
534
|
-
}, "strip", z.ZodTypeAny, {
|
|
535
|
-
studentId: string;
|
|
536
|
-
invoiceId: string;
|
|
537
|
-
amount: number;
|
|
538
|
-
method: "mpesa" | "bank" | "card" | "cash" | "cheque";
|
|
539
|
-
paymentDate: string;
|
|
540
|
-
reference?: string | undefined;
|
|
541
|
-
mpesaReceipt?: string | undefined;
|
|
542
|
-
}, {
|
|
543
|
-
studentId: string;
|
|
544
|
-
invoiceId: string;
|
|
545
|
-
amount: number;
|
|
546
|
-
method: "mpesa" | "bank" | "card" | "cash" | "cheque";
|
|
547
|
-
paymentDate: string;
|
|
548
|
-
reference?: string | undefined;
|
|
549
|
-
mpesaReceipt?: string | undefined;
|
|
550
|
-
}>;
|
|
551
|
-
declare const employmentTypeEnum: z.ZodEnum<["permanent", "contract", "temporary", "intern"]>;
|
|
552
|
-
declare const staffSchema: z.ZodObject<{
|
|
553
|
-
id: z.ZodString;
|
|
554
|
-
branchId: z.ZodString;
|
|
555
|
-
userId: z.ZodString;
|
|
556
|
-
firstName: z.ZodString;
|
|
557
|
-
middleName: z.ZodNullable<z.ZodString>;
|
|
558
|
-
lastName: z.ZodString;
|
|
559
|
-
tscNumber: z.ZodNullable<z.ZodString>;
|
|
560
|
-
nationalId: z.ZodString;
|
|
561
|
-
kraPin: z.ZodNullable<z.ZodString>;
|
|
562
|
-
nhifNo: z.ZodNullable<z.ZodString>;
|
|
563
|
-
nssfNo: z.ZodNullable<z.ZodString>;
|
|
564
|
-
phone: z.ZodString;
|
|
565
|
-
departmentId: z.ZodNullable<z.ZodString>;
|
|
566
|
-
designation: z.ZodString;
|
|
567
|
-
employmentType: z.ZodEnum<["permanent", "contract", "temporary", "intern"]>;
|
|
568
|
-
contractStart: z.ZodString;
|
|
569
|
-
contractEnd: z.ZodNullable<z.ZodString>;
|
|
570
|
-
basicSalary: z.ZodNumber;
|
|
571
|
-
houseAllowance: z.ZodDefault<z.ZodNumber>;
|
|
572
|
-
transportAllowance: z.ZodDefault<z.ZodNumber>;
|
|
573
|
-
bankName: z.ZodNullable<z.ZodString>;
|
|
574
|
-
bankAccount: z.ZodNullable<z.ZodString>;
|
|
575
|
-
status: z.ZodEnum<["active", "inactive", "suspended"]>;
|
|
576
|
-
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
status: "active" | "inactive" | "suspended";
|
|
578
|
-
id: string;
|
|
579
|
-
firstName: string;
|
|
580
|
-
middleName: string | null;
|
|
581
|
-
lastName: string;
|
|
582
|
-
branchId: string;
|
|
583
|
-
phone: string;
|
|
584
|
-
userId: string;
|
|
585
|
-
nationalId: string;
|
|
586
|
-
departmentId: string | null;
|
|
587
|
-
tscNumber: string | null;
|
|
588
|
-
kraPin: string | null;
|
|
589
|
-
nhifNo: string | null;
|
|
590
|
-
nssfNo: string | null;
|
|
591
|
-
designation: string;
|
|
592
|
-
employmentType: "permanent" | "contract" | "temporary" | "intern";
|
|
593
|
-
contractStart: string;
|
|
594
|
-
contractEnd: string | null;
|
|
595
|
-
basicSalary: number;
|
|
596
|
-
houseAllowance: number;
|
|
597
|
-
transportAllowance: number;
|
|
598
|
-
bankName: string | null;
|
|
599
|
-
bankAccount: string | null;
|
|
600
|
-
}, {
|
|
601
|
-
status: "active" | "inactive" | "suspended";
|
|
602
|
-
id: string;
|
|
603
|
-
firstName: string;
|
|
604
|
-
middleName: string | null;
|
|
605
|
-
lastName: string;
|
|
606
|
-
branchId: string;
|
|
607
|
-
phone: string;
|
|
608
|
-
userId: string;
|
|
609
|
-
nationalId: string;
|
|
610
|
-
departmentId: string | null;
|
|
611
|
-
tscNumber: string | null;
|
|
612
|
-
kraPin: string | null;
|
|
613
|
-
nhifNo: string | null;
|
|
614
|
-
nssfNo: string | null;
|
|
615
|
-
designation: string;
|
|
616
|
-
employmentType: "permanent" | "contract" | "temporary" | "intern";
|
|
617
|
-
contractStart: string;
|
|
618
|
-
contractEnd: string | null;
|
|
619
|
-
basicSalary: number;
|
|
620
|
-
bankName: string | null;
|
|
621
|
-
bankAccount: string | null;
|
|
622
|
-
houseAllowance?: number | undefined;
|
|
623
|
-
transportAllowance?: number | undefined;
|
|
624
|
-
}>;
|
|
625
|
-
declare const leaveStatusEnum: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
626
|
-
declare const leaveRequestInputSchema: z.ZodObject<{
|
|
627
|
-
leaveTypeId: z.ZodString;
|
|
628
|
-
startDate: z.ZodString;
|
|
629
|
-
endDate: z.ZodString;
|
|
630
|
-
reason: z.ZodString;
|
|
631
|
-
}, "strip", z.ZodTypeAny, {
|
|
632
|
-
leaveTypeId: string;
|
|
633
|
-
startDate: string;
|
|
634
|
-
endDate: string;
|
|
635
|
-
reason: string;
|
|
636
|
-
}, {
|
|
637
|
-
leaveTypeId: string;
|
|
638
|
-
startDate: string;
|
|
639
|
-
endDate: string;
|
|
640
|
-
reason: string;
|
|
641
|
-
}>;
|
|
642
|
-
declare const vehicleOwnershipEnum: z.ZodEnum<["owned", "contracted"]>;
|
|
643
|
-
declare const vehicleTypeEnum: z.ZodEnum<["bus", "van", "pickup", "other"]>;
|
|
644
|
-
declare const busRegisterStatusEnum: z.ZodEnum<["boarded", "alighted", "absent"]>;
|
|
645
|
-
declare const tripLogInputSchema: z.ZodObject<{
|
|
646
|
-
vehicleId: z.ZodString;
|
|
647
|
-
routeId: z.ZodString;
|
|
648
|
-
departureTime: z.ZodString;
|
|
649
|
-
tripType: z.ZodEnum<["morning", "evening", "errand"]>;
|
|
650
|
-
}, "strip", z.ZodTypeAny, {
|
|
651
|
-
vehicleId: string;
|
|
652
|
-
routeId: string;
|
|
653
|
-
departureTime: string;
|
|
654
|
-
tripType: "morning" | "evening" | "errand";
|
|
655
|
-
}, {
|
|
656
|
-
vehicleId: string;
|
|
657
|
-
routeId: string;
|
|
658
|
-
departureTime: string;
|
|
659
|
-
tripType: "morning" | "evening" | "errand";
|
|
660
|
-
}>;
|
|
661
|
-
declare const busRegisterEntrySchema: z.ZodObject<{
|
|
662
|
-
studentId: z.ZodString;
|
|
663
|
-
status: z.ZodEnum<["boarded", "alighted", "absent"]>;
|
|
664
|
-
}, "strip", z.ZodTypeAny, {
|
|
665
|
-
status: "boarded" | "alighted" | "absent";
|
|
666
|
-
studentId: string;
|
|
667
|
-
}, {
|
|
668
|
-
status: "boarded" | "alighted" | "absent";
|
|
669
|
-
studentId: string;
|
|
670
|
-
}>;
|
|
671
|
-
declare const vehicleStatusEnum: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
672
|
-
declare const vehicleSchema: z.ZodObject<{
|
|
673
|
-
id: z.ZodString;
|
|
674
|
-
branchId: z.ZodString;
|
|
675
|
-
plateNo: z.ZodString;
|
|
676
|
-
make: z.ZodNullable<z.ZodString>;
|
|
677
|
-
model: z.ZodNullable<z.ZodString>;
|
|
678
|
-
capacity: z.ZodNullable<z.ZodNumber>;
|
|
679
|
-
type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
|
|
680
|
-
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
681
|
-
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
682
|
-
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
683
|
-
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
684
|
-
driverUserId: z.ZodNullable<z.ZodString>;
|
|
685
|
-
createdAt: z.ZodString;
|
|
686
|
-
}, "strip", z.ZodTypeAny, {
|
|
687
|
-
type: "bus" | "van" | "pickup" | "other";
|
|
688
|
-
status: "active" | "in_maintenance" | "decommissioned";
|
|
689
|
-
id: string;
|
|
690
|
-
branchId: string;
|
|
691
|
-
createdAt: string;
|
|
692
|
-
plateNo: string;
|
|
693
|
-
make: string | null;
|
|
694
|
-
model: string | null;
|
|
695
|
-
capacity: number | null;
|
|
696
|
-
ownershipType: "owned" | "contracted";
|
|
697
|
-
insuranceExpiry: string | null;
|
|
698
|
-
inspectionDate: string | null;
|
|
699
|
-
driverUserId: string | null;
|
|
700
|
-
}, {
|
|
701
|
-
type: "bus" | "van" | "pickup" | "other";
|
|
702
|
-
status: "active" | "in_maintenance" | "decommissioned";
|
|
703
|
-
id: string;
|
|
704
|
-
branchId: string;
|
|
705
|
-
createdAt: string;
|
|
706
|
-
plateNo: string;
|
|
707
|
-
make: string | null;
|
|
708
|
-
model: string | null;
|
|
709
|
-
capacity: number | null;
|
|
710
|
-
ownershipType: "owned" | "contracted";
|
|
711
|
-
insuranceExpiry: string | null;
|
|
712
|
-
inspectionDate: string | null;
|
|
713
|
-
driverUserId: string | null;
|
|
714
|
-
}>;
|
|
715
|
-
declare const routeSchema: z.ZodObject<{
|
|
716
|
-
id: z.ZodString;
|
|
717
|
-
branchId: z.ZodString;
|
|
718
|
-
name: z.ZodString;
|
|
719
|
-
description: z.ZodNullable<z.ZodString>;
|
|
720
|
-
isActive: z.ZodBoolean;
|
|
721
|
-
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
722
|
-
id: z.ZodString;
|
|
723
|
-
stopName: z.ZodString;
|
|
724
|
-
stopOrder: z.ZodNumber;
|
|
725
|
-
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
726
|
-
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
id: string;
|
|
728
|
-
stopName: string;
|
|
729
|
-
stopOrder: number;
|
|
730
|
-
estimatedTime: string | null;
|
|
731
|
-
}, {
|
|
732
|
-
id: string;
|
|
733
|
-
stopName: string;
|
|
734
|
-
stopOrder: number;
|
|
735
|
-
estimatedTime: string | null;
|
|
736
|
-
}>, "many">>;
|
|
737
|
-
}, "strip", z.ZodTypeAny, {
|
|
738
|
-
id: string;
|
|
739
|
-
name: string;
|
|
740
|
-
branchId: string;
|
|
741
|
-
isActive: boolean;
|
|
742
|
-
description: string | null;
|
|
743
|
-
stops?: {
|
|
744
|
-
id: string;
|
|
745
|
-
stopName: string;
|
|
746
|
-
stopOrder: number;
|
|
747
|
-
estimatedTime: string | null;
|
|
748
|
-
}[] | undefined;
|
|
749
|
-
}, {
|
|
750
|
-
id: string;
|
|
751
|
-
name: string;
|
|
752
|
-
branchId: string;
|
|
753
|
-
isActive: boolean;
|
|
754
|
-
description: string | null;
|
|
755
|
-
stops?: {
|
|
756
|
-
id: string;
|
|
757
|
-
stopName: string;
|
|
758
|
-
stopOrder: number;
|
|
759
|
-
estimatedTime: string | null;
|
|
760
|
-
}[] | undefined;
|
|
761
|
-
}>;
|
|
762
|
-
declare const tripLogSchema: z.ZodObject<{
|
|
763
|
-
id: z.ZodString;
|
|
764
|
-
branchId: z.ZodString;
|
|
765
|
-
vehicleId: z.ZodString;
|
|
766
|
-
routeId: z.ZodNullable<z.ZodString>;
|
|
767
|
-
driverUserId: z.ZodString;
|
|
768
|
-
departureTime: z.ZodString;
|
|
769
|
-
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
770
|
-
tripType: z.ZodEnum<["morning", "evening", "errand"]>;
|
|
771
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
772
|
-
createdAt: z.ZodString;
|
|
773
|
-
vehicle: z.ZodOptional<z.ZodObject<{
|
|
774
|
-
plateNo: z.ZodString;
|
|
775
|
-
type: z.ZodString;
|
|
776
|
-
}, "strip", z.ZodTypeAny, {
|
|
777
|
-
type: string;
|
|
778
|
-
plateNo: string;
|
|
779
|
-
}, {
|
|
780
|
-
type: string;
|
|
781
|
-
plateNo: string;
|
|
782
|
-
}>>;
|
|
783
|
-
route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
784
|
-
name: z.ZodString;
|
|
785
|
-
}, "strip", z.ZodTypeAny, {
|
|
786
|
-
name: string;
|
|
787
|
-
}, {
|
|
788
|
-
name: string;
|
|
789
|
-
}>>>;
|
|
790
|
-
}, "strip", z.ZodTypeAny, {
|
|
791
|
-
id: string;
|
|
792
|
-
branchId: string;
|
|
793
|
-
createdAt: string;
|
|
794
|
-
vehicleId: string;
|
|
795
|
-
routeId: string | null;
|
|
796
|
-
departureTime: string;
|
|
797
|
-
tripType: "morning" | "evening" | "errand";
|
|
798
|
-
driverUserId: string;
|
|
799
|
-
arrivalTime: string | null;
|
|
800
|
-
notes: string | null;
|
|
801
|
-
vehicle?: {
|
|
802
|
-
type: string;
|
|
803
|
-
plateNo: string;
|
|
804
|
-
} | undefined;
|
|
805
|
-
route?: {
|
|
806
|
-
name: string;
|
|
807
|
-
} | null | undefined;
|
|
808
|
-
}, {
|
|
809
|
-
id: string;
|
|
810
|
-
branchId: string;
|
|
811
|
-
createdAt: string;
|
|
812
|
-
vehicleId: string;
|
|
813
|
-
routeId: string | null;
|
|
814
|
-
departureTime: string;
|
|
815
|
-
tripType: "morning" | "evening" | "errand";
|
|
816
|
-
driverUserId: string;
|
|
817
|
-
arrivalTime: string | null;
|
|
818
|
-
notes: string | null;
|
|
819
|
-
vehicle?: {
|
|
820
|
-
type: string;
|
|
821
|
-
plateNo: string;
|
|
822
|
-
} | undefined;
|
|
823
|
-
route?: {
|
|
824
|
-
name: string;
|
|
825
|
-
} | null | undefined;
|
|
826
|
-
}>;
|
|
827
|
-
declare const assetCategoryEnum: z.ZodEnum<["furniture", "lab_equipment", "ict_device", "vehicle", "sports_equipment", "kitchen_equipment", "musical_instrument", "classroom_supply", "library_book", "other"]>;
|
|
828
|
-
declare const assetConditionEnum: z.ZodEnum<["excellent", "good", "fair", "poor", "condemned"]>;
|
|
829
|
-
declare const maintenanceTicketStatusEnum: z.ZodEnum<["open", "in_progress", "resolved", "closed"]>;
|
|
830
|
-
declare const borrowingStatusEnum: z.ZodEnum<["active", "returned", "overdue", "lost"]>;
|
|
831
|
-
declare const incidentSeverityEnum: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
|
|
832
|
-
declare const incidentStatusEnum: z.ZodEnum<["open", "counsellor_review", "hod_review", "principal_ruling", "resolved"]>;
|
|
833
|
-
declare const disciplineRulingEnum: z.ZodEnum<["verbal_warning", "written_warning", "suspension", "expulsion", "dismissed"]>;
|
|
834
|
-
declare const payrollRunStatusEnum: z.ZodEnum<["draft", "approved", "paid"]>;
|
|
835
|
-
declare const notificationTypeEnum: z.ZodEnum<["report_card", "fee_invoice", "fee_reminder", "fee_block", "attendance_absent", "bus_departed", "bus_arrived", "discipline_incident", "assignment", "notice", "leave", "payslip"]>;
|
|
836
|
-
declare const sendBulkSmsInputSchema: z.ZodObject<{
|
|
124
|
+
confirmPassword: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
declare const RequestPasswordResetInputSchema: z.ZodObject<{
|
|
127
|
+
email: z.ZodEmail;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
declare const ResetPasswordInputSchema: z.ZodObject<{
|
|
130
|
+
token: z.ZodString;
|
|
131
|
+
newPassword: z.ZodString;
|
|
132
|
+
confirmPassword: z.ZodString;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
declare const SwitchBranchInputSchema: z.ZodObject<{
|
|
837
135
|
branchId: z.ZodString;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
recipientIds?: string[] | undefined;
|
|
847
|
-
scheduleAt?: string | undefined;
|
|
848
|
-
}, {
|
|
849
|
-
message: string;
|
|
850
|
-
branchId: string;
|
|
851
|
-
recipientType: "custom" | "class" | "grade" | "whole_school";
|
|
852
|
-
recipientIds?: string[] | undefined;
|
|
853
|
-
scheduleAt?: string | undefined;
|
|
854
|
-
}>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type LoginInput = z.infer<typeof LoginInputSchema>;
|
|
138
|
+
type LoginOutput = z.infer<typeof LoginOutputSchema>;
|
|
139
|
+
type SessionUserOutput = z.infer<typeof SessionUserOutputSchema>;
|
|
140
|
+
type RefreshTokenInput = z.infer<typeof RefreshTokenInputSchema>;
|
|
141
|
+
type RefreshTokenOutput = z.infer<typeof RefreshTokenOutputSchema>;
|
|
142
|
+
type ChangePasswordInput = z.infer<typeof ChangePasswordInputSchema>;
|
|
143
|
+
type SwitchBranchInput = z.infer<typeof SwitchBranchInputSchema>;
|
|
855
144
|
|
|
856
|
-
export {
|
|
145
|
+
export { BranchRefSchema, type ChangePasswordInput, ChangePasswordInputSchema, CuidSchema, type LoginInput, LoginInputSchema, type LoginOutput, LoginOutputSchema, LogoutInputSchema, type PaginationInput, PaginationInputSchema, type RefreshTokenInput, RefreshTokenInputSchema, type RefreshTokenOutput, RefreshTokenOutputSchema, RequestPasswordResetInputSchema, ResetPasswordInputSchema, type SessionUserOutput, SessionUserOutputSchema, SessionUserRoleSchema, SessionUserSubRoleSchema, type SoftDelete, SoftDeleteSchema, type SwitchBranchInput, SwitchBranchInputSchema, type Timestamps, TimestampsSchema, UuidSchema, paginatedOutputSchema };
|