@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.
Files changed (40) hide show
  1. package/dist/chunk-AEZO7MJD.js +127 -0
  2. package/dist/chunk-AEZO7MJD.js.map +1 -0
  3. package/dist/chunk-IR6JUP6L.js +48 -0
  4. package/dist/chunk-IR6JUP6L.js.map +1 -0
  5. package/dist/chunk-PCHAGP5X.js +1 -0
  6. package/dist/contracts/index.cjs +179 -0
  7. package/dist/contracts/index.cjs.map +1 -0
  8. package/dist/contracts/index.d.cts +201 -0
  9. package/dist/contracts/index.d.ts +159 -7896
  10. package/dist/contracts/index.js +22 -1281
  11. package/dist/contracts/index.js.map +1 -1
  12. package/dist/index.cjs +222 -0
  13. package/dist/index.cjs.map +1 -0
  14. package/dist/index.d.cts +4 -0
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.js +62 -1393
  17. package/dist/index.js.map +1 -1
  18. package/dist/schemas/index.cjs +181 -0
  19. package/dist/schemas/index.cjs.map +1 -0
  20. package/dist/schemas/index.d.cts +145 -0
  21. package/dist/schemas/index.d.ts +130 -841
  22. package/dist/schemas/index.js +42 -572
  23. package/dist/schemas/index.js.map +1 -1
  24. package/package.json +32 -59
  25. package/dist/chunk-7A7N5DCT.mjs +0 -854
  26. package/dist/chunk-7A7N5DCT.mjs.map +0 -1
  27. package/dist/chunk-OJCH3PZZ.mjs +0 -495
  28. package/dist/chunk-OJCH3PZZ.mjs.map +0 -1
  29. package/dist/contracts/index.d.mts +0 -7938
  30. package/dist/contracts/index.mjs +0 -36
  31. package/dist/index.d.mts +0 -4
  32. package/dist/index.mjs +0 -149
  33. package/dist/index.mjs.map +0 -1
  34. package/dist/schemas/index.d.mts +0 -856
  35. package/dist/schemas/index.mjs +0 -117
  36. package/dist/schemas/index.mjs.map +0 -1
  37. package/src/contracts/index.ts +0 -1096
  38. package/src/index.ts +0 -2
  39. package/src/schemas/index.ts +0 -524
  40. /package/dist/{contracts/index.mjs.map → chunk-PCHAGP5X.js.map} +0 -0
@@ -1,856 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const uuidSchema: z.ZodString;
4
- declare const paginationSchema: z.ZodObject<{
5
- page: z.ZodDefault<z.ZodNumber>;
6
- limit: z.ZodDefault<z.ZodNumber>;
7
- }, "strip", z.ZodTypeAny, {
8
- page: number;
9
- limit: number;
10
- }, {
11
- page?: number | undefined;
12
- limit?: number | undefined;
13
- }>;
14
- declare const dateRangeSchema: z.ZodObject<{
15
- from: z.ZodOptional<z.ZodString>;
16
- to: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- from?: string | undefined;
19
- to?: string | undefined;
20
- }, {
21
- from?: string | undefined;
22
- to?: string | undefined;
23
- }>;
24
- declare const genderEnum: z.ZodEnum<["male", "female"]>;
25
- declare const userStatusEnum: z.ZodEnum<["active", "inactive", "suspended"]>;
26
- declare const systemRoleEnum: z.ZodEnum<["DIRECTOR", "PRINCIPAL", "DEPUTY_PRINCIPAL", "HOD", "CLASS_TEACHER", "SUBJECT_TEACHER", "BURSAR", "HR_ADMIN", "SCHOOL_NURSE", "LIBRARIAN", "LAB_TECHNICIAN", "SPORTS_COACH", "COUNSELLOR", "CARETAKER", "SECURITY", "KITCHEN_STAFF", "DRIVER", "IT_ADMIN", "STUDENT", "PARENT", "ORG_SPONSOR", "INDIVIDUAL_SPONSOR"]>;
27
- type SystemRole = z.infer<typeof systemRoleEnum>;
28
- declare const loginInputSchema: z.ZodObject<{
29
- email: z.ZodString;
30
- password: z.ZodString;
31
- deviceFingerprint: z.ZodOptional<z.ZodString>;
32
- }, "strip", z.ZodTypeAny, {
33
- email: string;
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<{
42
- accessToken: z.ZodString;
43
- refreshToken: z.ZodOptional<z.ZodString>;
44
- user: z.ZodObject<{
45
- id: z.ZodString;
46
- firstName: z.ZodString;
47
- middleName: z.ZodNullable<z.ZodString>;
48
- lastName: z.ZodString;
49
- email: z.ZodString;
50
- avatarUrl: z.ZodNullable<z.ZodString>;
51
- roles: z.ZodArray<z.ZodObject<{
52
- id: z.ZodString;
53
- name: z.ZodString;
54
- branchId: z.ZodNullable<z.ZodString>;
55
- }, "strip", z.ZodTypeAny, {
56
- id: string;
57
- name: string;
58
- branchId: string | null;
59
- }, {
60
- id: string;
61
- name: string;
62
- branchId: string | null;
63
- }>, "many">;
64
- activeBranchId: z.ZodNullable<z.ZodString>;
65
- isMfaEnabled: z.ZodBoolean;
66
- }, "strip", z.ZodTypeAny, {
67
- email: string;
68
- id: string;
69
- firstName: string;
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<{
133
- accessToken: z.ZodString;
134
- }, "strip", z.ZodTypeAny, {
135
- accessToken: string;
136
- }, {
137
- accessToken: string;
138
- }>;
139
- declare const refreshInputSchema: z.ZodObject<{
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<{
154
- currentPassword: z.ZodString;
155
- newPassword: z.ZodString;
156
- }, "strip", z.ZodTypeAny, {
157
- currentPassword: string;
158
- newPassword: string;
159
- }, {
160
- currentPassword: string;
161
- newPassword: string;
162
- }>;
163
- declare const userSchema: z.ZodObject<{
164
- id: z.ZodString;
165
- firstName: z.ZodString;
166
- middleName: z.ZodNullable<z.ZodString>;
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<{
837
- branchId: z.ZodString;
838
- message: z.ZodString;
839
- recipientType: z.ZodEnum<["class", "grade", "whole_school", "custom"]>;
840
- recipientIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
841
- scheduleAt: z.ZodOptional<z.ZodString>;
842
- }, "strip", z.ZodTypeAny, {
843
- message: string;
844
- branchId: string;
845
- recipientType: "custom" | "class" | "grade" | "whole_school";
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
- }>;
855
-
856
- export { type SystemRole, assessmentScoreInputSchema, assessmentTypeEnum, assetCategoryEnum, assetConditionEnum, borrowingStatusEnum, branchSchema, busRegisterEntrySchema, busRegisterStatusEnum, changePasswordInputSchema, createBranchInputSchema, createStudentInputSchema, dateRangeSchema, disciplineRulingEnum, employmentTypeEnum, feeItemCategoryEnum, feeItemSchema, genderEnum, gradeLevelEnum, guardianSchema, incidentSeverityEnum, incidentStatusEnum, invoiceStatusEnum, leaveRequestInputSchema, leaveStatusEnum, listStudentsInputSchema, loginInputSchema, loginOutputSchema, maintenanceTicketStatusEnum, mfaVerifyInputSchema, notificationTypeEnum, paginationSchema, paymentMethodEnum, payrollRunStatusEnum, recordPaymentInputSchema, refreshInputSchema, refreshTokenOutputSchema, reportCardStatusEnum, routeSchema, rubricBandEnum, sendBulkSmsInputSchema, sponsorSchema, sponsorTypeEnum, staffSchema, studentSchema, studentStatusEnum, subjectSchema, systemRoleEnum, tripLogInputSchema, tripLogSchema, userSchema, userStatusEnum, uuidSchema, vehicleOwnershipEnum, vehicleSchema, vehicleStatusEnum, vehicleTypeEnum };