@brite-future-schools-contracts/contracts 1.0.8 → 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 +158 -9677
  10. package/dist/contracts/index.js +22 -1414
  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 -1538
  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 -1024
  22. package/dist/schemas/index.js +42 -640
  23. package/dist/schemas/index.js.map +1 -1
  24. package/package.json +32 -59
  25. package/dist/chunk-M6LF6JUL.mjs +0 -557
  26. package/dist/chunk-M6LF6JUL.mjs.map +0 -1
  27. package/dist/chunk-VC6SCJVW.mjs +0 -935
  28. package/dist/chunk-VC6SCJVW.mjs.map +0 -1
  29. package/dist/contracts/index.d.mts +0 -9720
  30. package/dist/contracts/index.mjs +0 -36
  31. package/dist/index.d.mts +0 -4
  32. package/dist/index.mjs +0 -161
  33. package/dist/index.mjs.map +0 -1
  34. package/dist/schemas/index.d.mts +0 -1039
  35. package/dist/schemas/index.mjs +0 -129
  36. package/dist/schemas/index.mjs.map +0 -1
  37. package/src/contracts/index.ts +0 -1209
  38. package/src/index.ts +0 -2
  39. package/src/schemas/index.ts +0 -586
  40. /package/dist/{contracts/index.mjs.map → chunk-PCHAGP5X.js.map} +0 -0
@@ -1,642 +1,44 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ import "../chunk-PCHAGP5X.js";
2
+ import {
3
+ BranchRefSchema,
4
+ ChangePasswordInputSchema,
5
+ CuidSchema,
6
+ LoginInputSchema,
7
+ LoginOutputSchema,
8
+ LogoutInputSchema,
9
+ PaginationInputSchema,
10
+ RefreshTokenInputSchema,
11
+ RefreshTokenOutputSchema,
12
+ RequestPasswordResetInputSchema,
13
+ ResetPasswordInputSchema,
14
+ SessionUserOutputSchema,
15
+ SessionUserRoleSchema,
16
+ SessionUserSubRoleSchema,
17
+ SoftDeleteSchema,
18
+ SwitchBranchInputSchema,
19
+ TimestampsSchema,
20
+ UuidSchema,
21
+ paginatedOutputSchema
22
+ } from "../chunk-AEZO7MJD.js";
23
+ export {
24
+ BranchRefSchema,
25
+ ChangePasswordInputSchema,
26
+ CuidSchema,
27
+ LoginInputSchema,
28
+ LoginOutputSchema,
29
+ LogoutInputSchema,
30
+ PaginationInputSchema,
31
+ RefreshTokenInputSchema,
32
+ RefreshTokenOutputSchema,
33
+ RequestPasswordResetInputSchema,
34
+ ResetPasswordInputSchema,
35
+ SessionUserOutputSchema,
36
+ SessionUserRoleSchema,
37
+ SessionUserSubRoleSchema,
38
+ SoftDeleteSchema,
39
+ SwitchBranchInputSchema,
40
+ TimestampsSchema,
41
+ UuidSchema,
42
+ paginatedOutputSchema
9
43
  };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/schemas/index.ts
21
- var schemas_exports = {};
22
- __export(schemas_exports, {
23
- assessmentScoreInputSchema: () => assessmentScoreInputSchema,
24
- assessmentTypeEnum: () => assessmentTypeEnum,
25
- assetCategoryEnum: () => assetCategoryEnum,
26
- assetConditionEnum: () => assetConditionEnum,
27
- borrowingStatusEnum: () => borrowingStatusEnum,
28
- branchSchema: () => branchSchema,
29
- busRegisterEntrySchema: () => busRegisterEntrySchema,
30
- busRegisterStatusEnum: () => busRegisterStatusEnum,
31
- changePasswordInputSchema: () => changePasswordInputSchema,
32
- createBranchInputSchema: () => createBranchInputSchema,
33
- createStudentInputSchema: () => createStudentInputSchema,
34
- dateRangeSchema: () => dateRangeSchema,
35
- disciplineRulingEnum: () => disciplineRulingEnum,
36
- employmentTypeEnum: () => employmentTypeEnum,
37
- feeItemCategoryEnum: () => feeItemCategoryEnum,
38
- feeItemSchema: () => feeItemSchema,
39
- genderEnum: () => genderEnum,
40
- gradeLevelEnum: () => gradeLevelEnum,
41
- guardianSchema: () => guardianSchema,
42
- incidentSeverityEnum: () => incidentSeverityEnum,
43
- incidentStatusEnum: () => incidentStatusEnum,
44
- invoiceStatusEnum: () => invoiceStatusEnum,
45
- leaveRequestInputSchema: () => leaveRequestInputSchema,
46
- leaveStatusEnum: () => leaveStatusEnum,
47
- listStudentsInputSchema: () => listStudentsInputSchema,
48
- loginInputSchema: () => loginInputSchema,
49
- loginOutputSchema: () => loginOutputSchema,
50
- maintenanceRequestSchema: () => maintenanceRequestSchema,
51
- maintenanceRequestStatusEnum: () => maintenanceRequestStatusEnum,
52
- maintenanceTicketStatusEnum: () => maintenanceTicketStatusEnum,
53
- mfaVerifyInputSchema: () => mfaVerifyInputSchema,
54
- notificationTypeEnum: () => notificationTypeEnum,
55
- paginationSchema: () => paginationSchema,
56
- paymentMethodEnum: () => paymentMethodEnum,
57
- payrollRunStatusEnum: () => payrollRunStatusEnum,
58
- recordPaymentInputSchema: () => recordPaymentInputSchema,
59
- refreshInputSchema: () => refreshInputSchema,
60
- refreshTokenOutputSchema: () => refreshTokenOutputSchema,
61
- reportCardStatusEnum: () => reportCardStatusEnum,
62
- routeSchema: () => routeSchema,
63
- rubricBandEnum: () => rubricBandEnum,
64
- sendBulkSmsInputSchema: () => sendBulkSmsInputSchema,
65
- sponsorSchema: () => sponsorSchema,
66
- sponsorTypeEnum: () => sponsorTypeEnum,
67
- staffSchema: () => staffSchema,
68
- studentSchema: () => studentSchema,
69
- studentStatusEnum: () => studentStatusEnum,
70
- subjectSchema: () => subjectSchema,
71
- systemRoleEnum: () => systemRoleEnum,
72
- transportAppStatusEnum: () => transportAppStatusEnum,
73
- transportApplicationSchema: () => transportApplicationSchema,
74
- tripCategoryEnum: () => tripCategoryEnum,
75
- tripLogInputSchema: () => tripLogInputSchema,
76
- tripLogSchema: () => tripLogSchema,
77
- tripStatusEnum: () => tripStatusEnum,
78
- userSchema: () => userSchema,
79
- userStatusEnum: () => userStatusEnum,
80
- uuidSchema: () => uuidSchema,
81
- vehicleOwnershipEnum: () => vehicleOwnershipEnum,
82
- vehicleSchema: () => vehicleSchema,
83
- vehicleStatusEnum: () => vehicleStatusEnum,
84
- vehicleTypeEnum: () => vehicleTypeEnum
85
- });
86
- module.exports = __toCommonJS(schemas_exports);
87
- var import_zod = require("zod");
88
- var uuidSchema = import_zod.z.string().uuid();
89
- var paginationSchema = import_zod.z.object({
90
- page: import_zod.z.number().int().min(1).default(1),
91
- limit: import_zod.z.number().int().min(1).max(100).default(20)
92
- });
93
- var dateRangeSchema = import_zod.z.object({
94
- from: import_zod.z.string().datetime().optional(),
95
- to: import_zod.z.string().datetime().optional()
96
- });
97
- var genderEnum = import_zod.z.enum(["male", "female"]);
98
- var userStatusEnum = import_zod.z.enum(["active", "inactive", "suspended"]);
99
- var systemRoleEnum = import_zod.z.enum([
100
- "DIRECTOR",
101
- "PRINCIPAL",
102
- "DEPUTY_PRINCIPAL",
103
- "HOD",
104
- "CLASS_TEACHER",
105
- "SUBJECT_TEACHER",
106
- "BURSAR",
107
- "HR_ADMIN",
108
- "SCHOOL_NURSE",
109
- "LIBRARIAN",
110
- "LAB_TECHNICIAN",
111
- "SPORTS_COACH",
112
- "COUNSELLOR",
113
- "CARETAKER",
114
- "SECURITY",
115
- "KITCHEN_STAFF",
116
- "DRIVER",
117
- "IT_ADMIN",
118
- "STUDENT",
119
- "PARENT",
120
- "ORG_SPONSOR",
121
- "INDIVIDUAL_SPONSOR"
122
- ]);
123
- var loginInputSchema = import_zod.z.object({
124
- email: import_zod.z.string().email(),
125
- password: import_zod.z.string().min(8),
126
- deviceFingerprint: import_zod.z.string().optional()
127
- });
128
- var loginOutputSchema = import_zod.z.object({
129
- accessToken: import_zod.z.string(),
130
- refreshToken: import_zod.z.string().optional(),
131
- user: import_zod.z.object({
132
- id: uuidSchema,
133
- firstName: import_zod.z.string(),
134
- middleName: import_zod.z.string().nullable(),
135
- lastName: import_zod.z.string(),
136
- email: import_zod.z.string().email(),
137
- avatarUrl: import_zod.z.string().nullable(),
138
- roles: import_zod.z.array(
139
- import_zod.z.object({
140
- id: uuidSchema,
141
- name: import_zod.z.string(),
142
- branchId: uuidSchema.nullable()
143
- })
144
- ),
145
- activeBranchId: uuidSchema.nullable(),
146
- isMfaEnabled: import_zod.z.boolean()
147
- })
148
- });
149
- var refreshTokenOutputSchema = import_zod.z.object({
150
- accessToken: import_zod.z.string()
151
- });
152
- var refreshInputSchema = import_zod.z.object({
153
- refreshToken: import_zod.z.string().optional()
154
- });
155
- var mfaVerifyInputSchema = import_zod.z.object({
156
- totp: import_zod.z.string().length(6)
157
- });
158
- var changePasswordInputSchema = import_zod.z.object({
159
- currentPassword: import_zod.z.string().min(8),
160
- newPassword: import_zod.z.string().min(8)
161
- });
162
- var userSchema = import_zod.z.object({
163
- id: uuidSchema,
164
- firstName: import_zod.z.string(),
165
- middleName: import_zod.z.string().nullable(),
166
- lastName: import_zod.z.string(),
167
- email: import_zod.z.string().email(),
168
- phone: import_zod.z.string().nullable(),
169
- avatarUrl: import_zod.z.string().nullable(),
170
- isActive: import_zod.z.boolean(),
171
- isMfaEnabled: import_zod.z.boolean(),
172
- lastLoginAt: import_zod.z.string().datetime().nullable(),
173
- createdAt: import_zod.z.string().datetime()
174
- });
175
- var branchSchema = import_zod.z.object({
176
- id: uuidSchema,
177
- name: import_zod.z.string(),
178
- code: import_zod.z.string(),
179
- address: import_zod.z.string(),
180
- county: import_zod.z.string(),
181
- phone: import_zod.z.string().nullable(),
182
- email: import_zod.z.string().email().nullable(),
183
- logoUrl: import_zod.z.string().nullable(),
184
- motto: import_zod.z.string().nullable(),
185
- principalId: uuidSchema.nullable(),
186
- mpesaPaybill: import_zod.z.string().nullable(),
187
- featureFlags: import_zod.z.record(import_zod.z.boolean()),
188
- createdAt: import_zod.z.string().datetime()
189
- });
190
- var createBranchInputSchema = import_zod.z.object({
191
- name: import_zod.z.string().min(2).max(100),
192
- code: import_zod.z.string().min(2).max(20),
193
- address: import_zod.z.string(),
194
- county: import_zod.z.string(),
195
- phone: import_zod.z.string().optional(),
196
- email: import_zod.z.string().email().optional(),
197
- motto: import_zod.z.string().optional()
198
- });
199
- var studentStatusEnum = import_zod.z.enum([
200
- "active",
201
- "transferred",
202
- "graduated",
203
- "suspended",
204
- "withdrawn"
205
- ]);
206
- var studentSchema = import_zod.z.object({
207
- id: uuidSchema,
208
- branchId: uuidSchema,
209
- admissionNo: import_zod.z.string(),
210
- nemisNo: import_zod.z.string().nullable(),
211
- firstName: import_zod.z.string(),
212
- middleName: import_zod.z.string().nullable(),
213
- lastName: import_zod.z.string(),
214
- dateOfBirth: import_zod.z.string(),
215
- gender: genderEnum,
216
- photoUrl: import_zod.z.string().nullable(),
217
- bloodGroup: import_zod.z.string().nullable(),
218
- admissionDate: import_zod.z.string(),
219
- status: studentStatusEnum,
220
- currentClassId: uuidSchema.nullable(),
221
- createdAt: import_zod.z.string().datetime()
222
- });
223
- var createStudentInputSchema = import_zod.z.object({
224
- admissionNo: import_zod.z.string().min(1),
225
- nemisNo: import_zod.z.string().optional(),
226
- firstName: import_zod.z.string().min(1).max(100),
227
- middleName: import_zod.z.string().max(100).optional(),
228
- lastName: import_zod.z.string().min(1).max(100),
229
- dateOfBirth: import_zod.z.string(),
230
- gender: genderEnum,
231
- admissionDate: import_zod.z.string(),
232
- guardianId: uuidSchema.optional()
233
- });
234
- var listStudentsInputSchema = paginationSchema.extend({
235
- branchId: uuidSchema.optional(),
236
- classId: uuidSchema.optional(),
237
- gradeId: uuidSchema.optional(),
238
- search: import_zod.z.string().optional(),
239
- status: studentStatusEnum.optional(),
240
- termId: uuidSchema.optional()
241
- });
242
- var guardianSchema = import_zod.z.object({
243
- id: uuidSchema,
244
- userId: uuidSchema,
245
- firstName: import_zod.z.string(),
246
- middleName: import_zod.z.string().nullable(),
247
- lastName: import_zod.z.string(),
248
- relationship: import_zod.z.string(),
249
- phone: import_zod.z.string(),
250
- email: import_zod.z.string().email().nullable(),
251
- nationalId: import_zod.z.string().nullable(),
252
- occupation: import_zod.z.string().nullable(),
253
- address: import_zod.z.string().nullable()
254
- });
255
- var sponsorTypeEnum = import_zod.z.enum(["organisation", "individual"]);
256
- var sponsorSchema = import_zod.z.object({
257
- id: uuidSchema,
258
- branchId: uuidSchema,
259
- type: sponsorTypeEnum,
260
- organisationName: import_zod.z.string().nullable(),
261
- firstName: import_zod.z.string().nullable(),
262
- middleName: import_zod.z.string().nullable(),
263
- lastName: import_zod.z.string().nullable(),
264
- contactUserId: uuidSchema.nullable(),
265
- phone: import_zod.z.string(),
266
- email: import_zod.z.string().email().nullable(),
267
- address: import_zod.z.string().nullable()
268
- });
269
- var gradeLevelEnum = import_zod.z.enum([
270
- "PP1",
271
- "PP2",
272
- "G1",
273
- "G2",
274
- "G3",
275
- "G4",
276
- "G5",
277
- "G6",
278
- "G7",
279
- "G8",
280
- "G9"
281
- ]);
282
- var assessmentTypeEnum = import_zod.z.enum([
283
- "formative",
284
- "summative",
285
- "knec_national",
286
- "informal"
287
- ]);
288
- var rubricBandEnum = import_zod.z.enum(["EE", "ME", "AE", "BE"]);
289
- var subjectSchema = import_zod.z.object({
290
- id: uuidSchema,
291
- branchId: uuidSchema,
292
- name: import_zod.z.string(),
293
- code: import_zod.z.string(),
294
- gradeLevel: gradeLevelEnum,
295
- departmentId: uuidSchema.nullable()
296
- });
297
- var assessmentScoreInputSchema = import_zod.z.object({
298
- assessmentId: uuidSchema,
299
- studentId: uuidSchema,
300
- subStrandId: uuidSchema,
301
- numericScore: import_zod.z.number().min(0).max(100),
302
- comments: import_zod.z.string().optional()
303
- });
304
- var reportCardStatusEnum = import_zod.z.enum([
305
- "draft",
306
- "hod_review",
307
- "principal_review",
308
- "released",
309
- "blocked"
310
- ]);
311
- var feeItemCategoryEnum = import_zod.z.enum([
312
- "compulsory",
313
- "class_specific",
314
- "additive"
315
- ]);
316
- var paymentMethodEnum = import_zod.z.enum([
317
- "mpesa",
318
- "bank",
319
- "card",
320
- "cash",
321
- "cheque"
322
- ]);
323
- var invoiceStatusEnum = import_zod.z.enum([
324
- "draft",
325
- "sent",
326
- "partial",
327
- "paid",
328
- "overdue",
329
- "cancelled"
330
- ]);
331
- var feeItemSchema = import_zod.z.object({
332
- id: uuidSchema,
333
- branchId: uuidSchema,
334
- name: import_zod.z.string(),
335
- category: feeItemCategoryEnum,
336
- defaultAmount: import_zod.z.number(),
337
- applicableGrades: import_zod.z.array(gradeLevelEnum),
338
- isActive: import_zod.z.boolean()
339
- });
340
- var recordPaymentInputSchema = import_zod.z.object({
341
- studentId: uuidSchema,
342
- invoiceId: uuidSchema,
343
- amount: import_zod.z.number().positive(),
344
- method: paymentMethodEnum,
345
- reference: import_zod.z.string().optional(),
346
- mpesaReceipt: import_zod.z.string().optional(),
347
- paymentDate: import_zod.z.string()
348
- });
349
- var employmentTypeEnum = import_zod.z.enum([
350
- "permanent",
351
- "contract",
352
- "temporary",
353
- "intern"
354
- ]);
355
- var staffSchema = import_zod.z.object({
356
- id: uuidSchema,
357
- branchId: uuidSchema,
358
- userId: uuidSchema,
359
- firstName: import_zod.z.string(),
360
- middleName: import_zod.z.string().nullable(),
361
- lastName: import_zod.z.string(),
362
- tscNumber: import_zod.z.string().nullable(),
363
- nationalId: import_zod.z.string(),
364
- kraPin: import_zod.z.string().nullable(),
365
- nhifNo: import_zod.z.string().nullable(),
366
- nssfNo: import_zod.z.string().nullable(),
367
- phone: import_zod.z.string(),
368
- departmentId: uuidSchema.nullable(),
369
- designation: import_zod.z.string(),
370
- employmentType: employmentTypeEnum,
371
- contractStart: import_zod.z.string(),
372
- contractEnd: import_zod.z.string().nullable(),
373
- basicSalary: import_zod.z.number(),
374
- houseAllowance: import_zod.z.number().default(0),
375
- transportAllowance: import_zod.z.number().default(0),
376
- bankName: import_zod.z.string().nullable(),
377
- bankAccount: import_zod.z.string().nullable(),
378
- status: userStatusEnum
379
- });
380
- var leaveStatusEnum = import_zod.z.enum([
381
- "pending",
382
- "approved",
383
- "rejected",
384
- "cancelled"
385
- ]);
386
- var leaveRequestInputSchema = import_zod.z.object({
387
- leaveTypeId: uuidSchema,
388
- startDate: import_zod.z.string(),
389
- endDate: import_zod.z.string(),
390
- reason: import_zod.z.string().min(10)
391
- });
392
- var vehicleOwnershipEnum = import_zod.z.enum(["owned", "contracted"]);
393
- var vehicleTypeEnum = import_zod.z.enum(["bus", "van", "pickup", "other"]);
394
- var busRegisterStatusEnum = import_zod.z.enum(["boarded", "alighted", "absent"]);
395
- var tripLogInputSchema = import_zod.z.object({
396
- vehicleId: uuidSchema,
397
- routeId: uuidSchema,
398
- departureTime: import_zod.z.string().datetime(),
399
- tripType: import_zod.z.enum(["morning", "evening", "errand"])
400
- });
401
- var busRegisterEntrySchema = import_zod.z.object({
402
- studentId: uuidSchema,
403
- status: busRegisterStatusEnum
404
- });
405
- var vehicleStatusEnum = import_zod.z.enum(["active", "in_maintenance", "decommissioned"]);
406
- var tripCategoryEnum = import_zod.z.enum(["regular", "special"]);
407
- var tripStatusEnum = import_zod.z.enum(["scheduled", "in_progress", "completed", "cancelled"]);
408
- var transportAppStatusEnum = import_zod.z.enum(["pending", "approved", "rejected", "cancelled"]);
409
- var maintenanceRequestStatusEnum = import_zod.z.enum(["pending", "approved", "rejected", "resolved"]);
410
- var vehicleSchema = import_zod.z.object({
411
- id: uuidSchema,
412
- branchId: uuidSchema,
413
- plateNo: import_zod.z.string(),
414
- make: import_zod.z.string().nullable(),
415
- model: import_zod.z.string().nullable(),
416
- capacity: import_zod.z.number().nullable(),
417
- type: import_zod.z.string(),
418
- ownershipType: vehicleOwnershipEnum,
419
- insuranceExpiry: import_zod.z.string().nullable(),
420
- inspectionDate: import_zod.z.string().nullable(),
421
- status: vehicleStatusEnum,
422
- driverUserId: uuidSchema.nullable(),
423
- notes: import_zod.z.string().nullable(),
424
- createdAt: import_zod.z.string().datetime()
425
- });
426
- var routeSchema = import_zod.z.object({
427
- id: uuidSchema,
428
- branchId: uuidSchema,
429
- name: import_zod.z.string(),
430
- description: import_zod.z.string().nullable(),
431
- isActive: import_zod.z.boolean(),
432
- vehicleId: uuidSchema.nullable(),
433
- routeCategory: import_zod.z.string(),
434
- departureTime: import_zod.z.string().nullable(),
435
- returnTime: import_zod.z.string().nullable(),
436
- fare: import_zod.z.number().nullable(),
437
- vehicle: import_zod.z.object({ plateNo: import_zod.z.string(), type: import_zod.z.string() }).nullable().optional(),
438
- stops: import_zod.z.array(import_zod.z.object({
439
- id: uuidSchema,
440
- stopName: import_zod.z.string(),
441
- stopOrder: import_zod.z.number(),
442
- estimatedTime: import_zod.z.string().nullable()
443
- })).optional(),
444
- roster: import_zod.z.array(import_zod.z.object({
445
- studentId: uuidSchema,
446
- studentName: import_zod.z.string(),
447
- admissionNo: import_zod.z.string(),
448
- pickupStop: import_zod.z.string().nullable(),
449
- dropoffStop: import_zod.z.string().nullable()
450
- })).optional()
451
- });
452
- var tripLogSchema = import_zod.z.object({
453
- id: uuidSchema,
454
- branchId: uuidSchema,
455
- vehicleId: uuidSchema,
456
- routeId: uuidSchema.nullable(),
457
- driverUserId: uuidSchema,
458
- departureTime: import_zod.z.string().datetime(),
459
- arrivalTime: import_zod.z.string().datetime().nullable(),
460
- returnTime: import_zod.z.string().datetime().nullable(),
461
- tripType: import_zod.z.string(),
462
- tripCategory: tripCategoryEnum,
463
- status: tripStatusEnum,
464
- title: import_zod.z.string().nullable(),
465
- description: import_zod.z.string().nullable(),
466
- destination: import_zod.z.string().nullable(),
467
- expectedStudents: import_zod.z.number().nullable(),
468
- notes: import_zod.z.string().nullable(),
469
- createdAt: import_zod.z.string().datetime(),
470
- vehicle: import_zod.z.object({ plateNo: import_zod.z.string(), type: import_zod.z.string() }).optional(),
471
- route: import_zod.z.object({ name: import_zod.z.string() }).nullable().optional()
472
- });
473
- var maintenanceRequestSchema = import_zod.z.object({
474
- id: uuidSchema,
475
- vehicleId: uuidSchema,
476
- requestedBy: uuidSchema,
477
- issue: import_zod.z.string(),
478
- severity: import_zod.z.string(),
479
- status: maintenanceRequestStatusEnum,
480
- reviewedBy: uuidSchema.nullable(),
481
- reviewNotes: import_zod.z.string().nullable(),
482
- reviewedAt: import_zod.z.string().datetime().nullable(),
483
- createdAt: import_zod.z.string().datetime(),
484
- vehiclePlate: import_zod.z.string().optional()
485
- });
486
- var transportApplicationSchema = import_zod.z.object({
487
- id: uuidSchema,
488
- branchId: uuidSchema,
489
- studentId: uuidSchema,
490
- applicationType: import_zod.z.enum(["route", "trip"]),
491
- routeId: uuidSchema.nullable(),
492
- tripLogId: uuidSchema.nullable(),
493
- status: transportAppStatusEnum,
494
- appliedBy: uuidSchema,
495
- reviewedBy: uuidSchema.nullable(),
496
- reviewNotes: import_zod.z.string().nullable(),
497
- feeItemId: uuidSchema.nullable(),
498
- invoiceUpdated: import_zod.z.boolean(),
499
- createdAt: import_zod.z.string().datetime(),
500
- studentName: import_zod.z.string().optional(),
501
- routeName: import_zod.z.string().nullable().optional(),
502
- tripTitle: import_zod.z.string().nullable().optional()
503
- });
504
- var assetCategoryEnum = import_zod.z.enum([
505
- "furniture",
506
- "lab_equipment",
507
- "ict_device",
508
- "vehicle",
509
- "sports_equipment",
510
- "kitchen_equipment",
511
- "musical_instrument",
512
- "classroom_supply",
513
- "library_book",
514
- "other"
515
- ]);
516
- var assetConditionEnum = import_zod.z.enum([
517
- "excellent",
518
- "good",
519
- "fair",
520
- "poor",
521
- "condemned"
522
- ]);
523
- var maintenanceTicketStatusEnum = import_zod.z.enum([
524
- "open",
525
- "in_progress",
526
- "resolved",
527
- "closed"
528
- ]);
529
- var borrowingStatusEnum = import_zod.z.enum([
530
- "active",
531
- "returned",
532
- "overdue",
533
- "lost"
534
- ]);
535
- var incidentSeverityEnum = import_zod.z.enum([
536
- "minor",
537
- "moderate",
538
- "serious",
539
- "critical"
540
- ]);
541
- var incidentStatusEnum = import_zod.z.enum([
542
- "open",
543
- "counsellor_review",
544
- "hod_review",
545
- "principal_ruling",
546
- "resolved"
547
- ]);
548
- var disciplineRulingEnum = import_zod.z.enum([
549
- "verbal_warning",
550
- "written_warning",
551
- "suspension",
552
- "expulsion",
553
- "dismissed"
554
- ]);
555
- var payrollRunStatusEnum = import_zod.z.enum(["draft", "approved", "paid"]);
556
- var notificationTypeEnum = import_zod.z.enum([
557
- "report_card",
558
- "fee_invoice",
559
- "fee_reminder",
560
- "fee_block",
561
- "attendance_absent",
562
- "bus_departed",
563
- "bus_arrived",
564
- "discipline_incident",
565
- "assignment",
566
- "notice",
567
- "leave",
568
- "payslip"
569
- ]);
570
- var sendBulkSmsInputSchema = import_zod.z.object({
571
- branchId: uuidSchema,
572
- message: import_zod.z.string().min(1).max(160),
573
- recipientType: import_zod.z.enum(["class", "grade", "whole_school", "custom"]),
574
- recipientIds: import_zod.z.array(uuidSchema).optional(),
575
- scheduleAt: import_zod.z.string().datetime().optional()
576
- });
577
- // Annotate the CommonJS export names for ESM import in node:
578
- 0 && (module.exports = {
579
- assessmentScoreInputSchema,
580
- assessmentTypeEnum,
581
- assetCategoryEnum,
582
- assetConditionEnum,
583
- borrowingStatusEnum,
584
- branchSchema,
585
- busRegisterEntrySchema,
586
- busRegisterStatusEnum,
587
- changePasswordInputSchema,
588
- createBranchInputSchema,
589
- createStudentInputSchema,
590
- dateRangeSchema,
591
- disciplineRulingEnum,
592
- employmentTypeEnum,
593
- feeItemCategoryEnum,
594
- feeItemSchema,
595
- genderEnum,
596
- gradeLevelEnum,
597
- guardianSchema,
598
- incidentSeverityEnum,
599
- incidentStatusEnum,
600
- invoiceStatusEnum,
601
- leaveRequestInputSchema,
602
- leaveStatusEnum,
603
- listStudentsInputSchema,
604
- loginInputSchema,
605
- loginOutputSchema,
606
- maintenanceRequestSchema,
607
- maintenanceRequestStatusEnum,
608
- maintenanceTicketStatusEnum,
609
- mfaVerifyInputSchema,
610
- notificationTypeEnum,
611
- paginationSchema,
612
- paymentMethodEnum,
613
- payrollRunStatusEnum,
614
- recordPaymentInputSchema,
615
- refreshInputSchema,
616
- refreshTokenOutputSchema,
617
- reportCardStatusEnum,
618
- routeSchema,
619
- rubricBandEnum,
620
- sendBulkSmsInputSchema,
621
- sponsorSchema,
622
- sponsorTypeEnum,
623
- staffSchema,
624
- studentSchema,
625
- studentStatusEnum,
626
- subjectSchema,
627
- systemRoleEnum,
628
- transportAppStatusEnum,
629
- transportApplicationSchema,
630
- tripCategoryEnum,
631
- tripLogInputSchema,
632
- tripLogSchema,
633
- tripStatusEnum,
634
- userSchema,
635
- userStatusEnum,
636
- uuidSchema,
637
- vehicleOwnershipEnum,
638
- vehicleSchema,
639
- vehicleStatusEnum,
640
- vehicleTypeEnum
641
- });
642
44
  //# sourceMappingURL=index.js.map