@brite-future-schools-contracts/contracts 1.0.4 → 1.0.8
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-YCJJTWIN.mjs → chunk-M6LF6JUL.mjs} +110 -1
- package/dist/chunk-M6LF6JUL.mjs.map +1 -0
- package/dist/{chunk-U7ZLVMHY.mjs → chunk-VC6SCJVW.mjs} +178 -41
- package/dist/chunk-VC6SCJVW.mjs.map +1 -0
- package/dist/contracts/index.d.mts +5665 -2881
- package/dist/contracts/index.d.ts +5665 -2881
- package/dist/contracts/index.js +262 -37
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/index.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +282 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/schemas/index.d.mts +340 -1
- package/dist/schemas/index.d.ts +340 -1
- package/dist/schemas/index.js +119 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +21 -1
- package/package.json +1 -1
- package/src/contracts/index.ts +226 -41
- package/src/schemas/index.ts +109 -0
- package/dist/chunk-U7ZLVMHY.mjs.map +0 -1
- package/dist/chunk-YCJJTWIN.mjs.map +0 -1
package/dist/schemas/index.d.mts
CHANGED
|
@@ -668,6 +668,345 @@ declare const busRegisterEntrySchema: z.ZodObject<{
|
|
|
668
668
|
status: "boarded" | "alighted" | "absent";
|
|
669
669
|
studentId: string;
|
|
670
670
|
}>;
|
|
671
|
+
declare const vehicleStatusEnum: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
672
|
+
declare const tripCategoryEnum: z.ZodEnum<["regular", "special"]>;
|
|
673
|
+
declare const tripStatusEnum: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
674
|
+
declare const transportAppStatusEnum: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
675
|
+
declare const maintenanceRequestStatusEnum: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
676
|
+
declare const vehicleSchema: z.ZodObject<{
|
|
677
|
+
id: z.ZodString;
|
|
678
|
+
branchId: z.ZodString;
|
|
679
|
+
plateNo: z.ZodString;
|
|
680
|
+
make: z.ZodNullable<z.ZodString>;
|
|
681
|
+
model: z.ZodNullable<z.ZodString>;
|
|
682
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
683
|
+
type: z.ZodString;
|
|
684
|
+
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
685
|
+
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
686
|
+
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
687
|
+
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
688
|
+
driverUserId: z.ZodNullable<z.ZodString>;
|
|
689
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
690
|
+
createdAt: z.ZodString;
|
|
691
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
|
+
type: string;
|
|
693
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
694
|
+
id: string;
|
|
695
|
+
branchId: string;
|
|
696
|
+
createdAt: string;
|
|
697
|
+
plateNo: string;
|
|
698
|
+
make: string | null;
|
|
699
|
+
model: string | null;
|
|
700
|
+
capacity: number | null;
|
|
701
|
+
ownershipType: "owned" | "contracted";
|
|
702
|
+
insuranceExpiry: string | null;
|
|
703
|
+
inspectionDate: string | null;
|
|
704
|
+
driverUserId: string | null;
|
|
705
|
+
notes: string | null;
|
|
706
|
+
}, {
|
|
707
|
+
type: string;
|
|
708
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
709
|
+
id: string;
|
|
710
|
+
branchId: string;
|
|
711
|
+
createdAt: string;
|
|
712
|
+
plateNo: string;
|
|
713
|
+
make: string | null;
|
|
714
|
+
model: string | null;
|
|
715
|
+
capacity: number | null;
|
|
716
|
+
ownershipType: "owned" | "contracted";
|
|
717
|
+
insuranceExpiry: string | null;
|
|
718
|
+
inspectionDate: string | null;
|
|
719
|
+
driverUserId: string | null;
|
|
720
|
+
notes: string | null;
|
|
721
|
+
}>;
|
|
722
|
+
declare const routeSchema: z.ZodObject<{
|
|
723
|
+
id: z.ZodString;
|
|
724
|
+
branchId: z.ZodString;
|
|
725
|
+
name: z.ZodString;
|
|
726
|
+
description: z.ZodNullable<z.ZodString>;
|
|
727
|
+
isActive: z.ZodBoolean;
|
|
728
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
729
|
+
routeCategory: z.ZodString;
|
|
730
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
731
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
732
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
733
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
734
|
+
plateNo: z.ZodString;
|
|
735
|
+
type: z.ZodString;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
type: string;
|
|
738
|
+
plateNo: string;
|
|
739
|
+
}, {
|
|
740
|
+
type: string;
|
|
741
|
+
plateNo: string;
|
|
742
|
+
}>>>;
|
|
743
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
stopName: z.ZodString;
|
|
746
|
+
stopOrder: z.ZodNumber;
|
|
747
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
748
|
+
}, "strip", z.ZodTypeAny, {
|
|
749
|
+
id: string;
|
|
750
|
+
stopName: string;
|
|
751
|
+
stopOrder: number;
|
|
752
|
+
estimatedTime: string | null;
|
|
753
|
+
}, {
|
|
754
|
+
id: string;
|
|
755
|
+
stopName: string;
|
|
756
|
+
stopOrder: number;
|
|
757
|
+
estimatedTime: string | null;
|
|
758
|
+
}>, "many">>;
|
|
759
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
760
|
+
studentId: z.ZodString;
|
|
761
|
+
studentName: z.ZodString;
|
|
762
|
+
admissionNo: z.ZodString;
|
|
763
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
764
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
admissionNo: string;
|
|
767
|
+
studentId: string;
|
|
768
|
+
studentName: string;
|
|
769
|
+
pickupStop: string | null;
|
|
770
|
+
dropoffStop: string | null;
|
|
771
|
+
}, {
|
|
772
|
+
admissionNo: string;
|
|
773
|
+
studentId: string;
|
|
774
|
+
studentName: string;
|
|
775
|
+
pickupStop: string | null;
|
|
776
|
+
dropoffStop: string | null;
|
|
777
|
+
}>, "many">>;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
id: string;
|
|
780
|
+
name: string;
|
|
781
|
+
branchId: string;
|
|
782
|
+
isActive: boolean;
|
|
783
|
+
vehicleId: string | null;
|
|
784
|
+
departureTime: string | null;
|
|
785
|
+
description: string | null;
|
|
786
|
+
routeCategory: string;
|
|
787
|
+
returnTime: string | null;
|
|
788
|
+
fare: number | null;
|
|
789
|
+
vehicle?: {
|
|
790
|
+
type: string;
|
|
791
|
+
plateNo: string;
|
|
792
|
+
} | null | undefined;
|
|
793
|
+
stops?: {
|
|
794
|
+
id: string;
|
|
795
|
+
stopName: string;
|
|
796
|
+
stopOrder: number;
|
|
797
|
+
estimatedTime: string | null;
|
|
798
|
+
}[] | undefined;
|
|
799
|
+
roster?: {
|
|
800
|
+
admissionNo: string;
|
|
801
|
+
studentId: string;
|
|
802
|
+
studentName: string;
|
|
803
|
+
pickupStop: string | null;
|
|
804
|
+
dropoffStop: string | null;
|
|
805
|
+
}[] | undefined;
|
|
806
|
+
}, {
|
|
807
|
+
id: string;
|
|
808
|
+
name: string;
|
|
809
|
+
branchId: string;
|
|
810
|
+
isActive: boolean;
|
|
811
|
+
vehicleId: string | null;
|
|
812
|
+
departureTime: string | null;
|
|
813
|
+
description: string | null;
|
|
814
|
+
routeCategory: string;
|
|
815
|
+
returnTime: string | null;
|
|
816
|
+
fare: number | null;
|
|
817
|
+
vehicle?: {
|
|
818
|
+
type: string;
|
|
819
|
+
plateNo: string;
|
|
820
|
+
} | null | undefined;
|
|
821
|
+
stops?: {
|
|
822
|
+
id: string;
|
|
823
|
+
stopName: string;
|
|
824
|
+
stopOrder: number;
|
|
825
|
+
estimatedTime: string | null;
|
|
826
|
+
}[] | undefined;
|
|
827
|
+
roster?: {
|
|
828
|
+
admissionNo: string;
|
|
829
|
+
studentId: string;
|
|
830
|
+
studentName: string;
|
|
831
|
+
pickupStop: string | null;
|
|
832
|
+
dropoffStop: string | null;
|
|
833
|
+
}[] | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
declare const tripLogSchema: z.ZodObject<{
|
|
836
|
+
id: z.ZodString;
|
|
837
|
+
branchId: z.ZodString;
|
|
838
|
+
vehicleId: z.ZodString;
|
|
839
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
840
|
+
driverUserId: z.ZodString;
|
|
841
|
+
departureTime: z.ZodString;
|
|
842
|
+
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
843
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
844
|
+
tripType: z.ZodString;
|
|
845
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
846
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
847
|
+
title: z.ZodNullable<z.ZodString>;
|
|
848
|
+
description: z.ZodNullable<z.ZodString>;
|
|
849
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
850
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
851
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
852
|
+
createdAt: z.ZodString;
|
|
853
|
+
vehicle: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
plateNo: z.ZodString;
|
|
855
|
+
type: z.ZodString;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
type: string;
|
|
858
|
+
plateNo: string;
|
|
859
|
+
}, {
|
|
860
|
+
type: string;
|
|
861
|
+
plateNo: string;
|
|
862
|
+
}>>;
|
|
863
|
+
route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
864
|
+
name: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
name: string;
|
|
867
|
+
}, {
|
|
868
|
+
name: string;
|
|
869
|
+
}>>>;
|
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
|
871
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
872
|
+
id: string;
|
|
873
|
+
branchId: string;
|
|
874
|
+
createdAt: string;
|
|
875
|
+
vehicleId: string;
|
|
876
|
+
routeId: string | null;
|
|
877
|
+
departureTime: string;
|
|
878
|
+
tripType: string;
|
|
879
|
+
driverUserId: string;
|
|
880
|
+
notes: string | null;
|
|
881
|
+
description: string | null;
|
|
882
|
+
returnTime: string | null;
|
|
883
|
+
arrivalTime: string | null;
|
|
884
|
+
tripCategory: "regular" | "special";
|
|
885
|
+
title: string | null;
|
|
886
|
+
destination: string | null;
|
|
887
|
+
expectedStudents: number | null;
|
|
888
|
+
vehicle?: {
|
|
889
|
+
type: string;
|
|
890
|
+
plateNo: string;
|
|
891
|
+
} | undefined;
|
|
892
|
+
route?: {
|
|
893
|
+
name: string;
|
|
894
|
+
} | null | undefined;
|
|
895
|
+
}, {
|
|
896
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
897
|
+
id: string;
|
|
898
|
+
branchId: string;
|
|
899
|
+
createdAt: string;
|
|
900
|
+
vehicleId: string;
|
|
901
|
+
routeId: string | null;
|
|
902
|
+
departureTime: string;
|
|
903
|
+
tripType: string;
|
|
904
|
+
driverUserId: string;
|
|
905
|
+
notes: string | null;
|
|
906
|
+
description: string | null;
|
|
907
|
+
returnTime: string | null;
|
|
908
|
+
arrivalTime: string | null;
|
|
909
|
+
tripCategory: "regular" | "special";
|
|
910
|
+
title: string | null;
|
|
911
|
+
destination: string | null;
|
|
912
|
+
expectedStudents: number | null;
|
|
913
|
+
vehicle?: {
|
|
914
|
+
type: string;
|
|
915
|
+
plateNo: string;
|
|
916
|
+
} | undefined;
|
|
917
|
+
route?: {
|
|
918
|
+
name: string;
|
|
919
|
+
} | null | undefined;
|
|
920
|
+
}>;
|
|
921
|
+
declare const maintenanceRequestSchema: z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
vehicleId: z.ZodString;
|
|
924
|
+
requestedBy: z.ZodString;
|
|
925
|
+
issue: z.ZodString;
|
|
926
|
+
severity: z.ZodString;
|
|
927
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
928
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
929
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
930
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
931
|
+
createdAt: z.ZodString;
|
|
932
|
+
vehiclePlate: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, "strip", z.ZodTypeAny, {
|
|
934
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
935
|
+
id: string;
|
|
936
|
+
createdAt: string;
|
|
937
|
+
vehicleId: string;
|
|
938
|
+
requestedBy: string;
|
|
939
|
+
issue: string;
|
|
940
|
+
severity: string;
|
|
941
|
+
reviewedBy: string | null;
|
|
942
|
+
reviewNotes: string | null;
|
|
943
|
+
reviewedAt: string | null;
|
|
944
|
+
vehiclePlate?: string | undefined;
|
|
945
|
+
}, {
|
|
946
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
947
|
+
id: string;
|
|
948
|
+
createdAt: string;
|
|
949
|
+
vehicleId: string;
|
|
950
|
+
requestedBy: string;
|
|
951
|
+
issue: string;
|
|
952
|
+
severity: string;
|
|
953
|
+
reviewedBy: string | null;
|
|
954
|
+
reviewNotes: string | null;
|
|
955
|
+
reviewedAt: string | null;
|
|
956
|
+
vehiclePlate?: string | undefined;
|
|
957
|
+
}>;
|
|
958
|
+
declare const transportApplicationSchema: z.ZodObject<{
|
|
959
|
+
id: z.ZodString;
|
|
960
|
+
branchId: z.ZodString;
|
|
961
|
+
studentId: z.ZodString;
|
|
962
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
963
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
964
|
+
tripLogId: z.ZodNullable<z.ZodString>;
|
|
965
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
966
|
+
appliedBy: z.ZodString;
|
|
967
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
968
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
969
|
+
feeItemId: z.ZodNullable<z.ZodString>;
|
|
970
|
+
invoiceUpdated: z.ZodBoolean;
|
|
971
|
+
createdAt: z.ZodString;
|
|
972
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
973
|
+
routeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
974
|
+
tripTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
975
|
+
}, "strip", z.ZodTypeAny, {
|
|
976
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
977
|
+
id: string;
|
|
978
|
+
branchId: string;
|
|
979
|
+
createdAt: string;
|
|
980
|
+
studentId: string;
|
|
981
|
+
routeId: string | null;
|
|
982
|
+
reviewedBy: string | null;
|
|
983
|
+
reviewNotes: string | null;
|
|
984
|
+
applicationType: "route" | "trip";
|
|
985
|
+
tripLogId: string | null;
|
|
986
|
+
appliedBy: string;
|
|
987
|
+
feeItemId: string | null;
|
|
988
|
+
invoiceUpdated: boolean;
|
|
989
|
+
studentName?: string | undefined;
|
|
990
|
+
routeName?: string | null | undefined;
|
|
991
|
+
tripTitle?: string | null | undefined;
|
|
992
|
+
}, {
|
|
993
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
994
|
+
id: string;
|
|
995
|
+
branchId: string;
|
|
996
|
+
createdAt: string;
|
|
997
|
+
studentId: string;
|
|
998
|
+
routeId: string | null;
|
|
999
|
+
reviewedBy: string | null;
|
|
1000
|
+
reviewNotes: string | null;
|
|
1001
|
+
applicationType: "route" | "trip";
|
|
1002
|
+
tripLogId: string | null;
|
|
1003
|
+
appliedBy: string;
|
|
1004
|
+
feeItemId: string | null;
|
|
1005
|
+
invoiceUpdated: boolean;
|
|
1006
|
+
studentName?: string | undefined;
|
|
1007
|
+
routeName?: string | null | undefined;
|
|
1008
|
+
tripTitle?: string | null | undefined;
|
|
1009
|
+
}>;
|
|
671
1010
|
declare const assetCategoryEnum: z.ZodEnum<["furniture", "lab_equipment", "ict_device", "vehicle", "sports_equipment", "kitchen_equipment", "musical_instrument", "classroom_supply", "library_book", "other"]>;
|
|
672
1011
|
declare const assetConditionEnum: z.ZodEnum<["excellent", "good", "fair", "poor", "condemned"]>;
|
|
673
1012
|
declare const maintenanceTicketStatusEnum: z.ZodEnum<["open", "in_progress", "resolved", "closed"]>;
|
|
@@ -697,4 +1036,4 @@ declare const sendBulkSmsInputSchema: z.ZodObject<{
|
|
|
697
1036
|
scheduleAt?: string | undefined;
|
|
698
1037
|
}>;
|
|
699
1038
|
|
|
700
|
-
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, rubricBandEnum, sendBulkSmsInputSchema, sponsorSchema, sponsorTypeEnum, staffSchema, studentSchema, studentStatusEnum, subjectSchema, systemRoleEnum, tripLogInputSchema, userSchema, userStatusEnum, uuidSchema, vehicleOwnershipEnum, vehicleTypeEnum };
|
|
1039
|
+
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, maintenanceRequestSchema, maintenanceRequestStatusEnum, maintenanceTicketStatusEnum, mfaVerifyInputSchema, notificationTypeEnum, paginationSchema, paymentMethodEnum, payrollRunStatusEnum, recordPaymentInputSchema, refreshInputSchema, refreshTokenOutputSchema, reportCardStatusEnum, routeSchema, rubricBandEnum, sendBulkSmsInputSchema, sponsorSchema, sponsorTypeEnum, staffSchema, studentSchema, studentStatusEnum, subjectSchema, systemRoleEnum, transportAppStatusEnum, transportApplicationSchema, tripCategoryEnum, tripLogInputSchema, tripLogSchema, tripStatusEnum, userSchema, userStatusEnum, uuidSchema, vehicleOwnershipEnum, vehicleSchema, vehicleStatusEnum, vehicleTypeEnum };
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -668,6 +668,345 @@ declare const busRegisterEntrySchema: z.ZodObject<{
|
|
|
668
668
|
status: "boarded" | "alighted" | "absent";
|
|
669
669
|
studentId: string;
|
|
670
670
|
}>;
|
|
671
|
+
declare const vehicleStatusEnum: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
672
|
+
declare const tripCategoryEnum: z.ZodEnum<["regular", "special"]>;
|
|
673
|
+
declare const tripStatusEnum: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
674
|
+
declare const transportAppStatusEnum: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
675
|
+
declare const maintenanceRequestStatusEnum: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
676
|
+
declare const vehicleSchema: z.ZodObject<{
|
|
677
|
+
id: z.ZodString;
|
|
678
|
+
branchId: z.ZodString;
|
|
679
|
+
plateNo: z.ZodString;
|
|
680
|
+
make: z.ZodNullable<z.ZodString>;
|
|
681
|
+
model: z.ZodNullable<z.ZodString>;
|
|
682
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
683
|
+
type: z.ZodString;
|
|
684
|
+
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
685
|
+
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
686
|
+
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
687
|
+
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
688
|
+
driverUserId: z.ZodNullable<z.ZodString>;
|
|
689
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
690
|
+
createdAt: z.ZodString;
|
|
691
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
|
+
type: string;
|
|
693
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
694
|
+
id: string;
|
|
695
|
+
branchId: string;
|
|
696
|
+
createdAt: string;
|
|
697
|
+
plateNo: string;
|
|
698
|
+
make: string | null;
|
|
699
|
+
model: string | null;
|
|
700
|
+
capacity: number | null;
|
|
701
|
+
ownershipType: "owned" | "contracted";
|
|
702
|
+
insuranceExpiry: string | null;
|
|
703
|
+
inspectionDate: string | null;
|
|
704
|
+
driverUserId: string | null;
|
|
705
|
+
notes: string | null;
|
|
706
|
+
}, {
|
|
707
|
+
type: string;
|
|
708
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
709
|
+
id: string;
|
|
710
|
+
branchId: string;
|
|
711
|
+
createdAt: string;
|
|
712
|
+
plateNo: string;
|
|
713
|
+
make: string | null;
|
|
714
|
+
model: string | null;
|
|
715
|
+
capacity: number | null;
|
|
716
|
+
ownershipType: "owned" | "contracted";
|
|
717
|
+
insuranceExpiry: string | null;
|
|
718
|
+
inspectionDate: string | null;
|
|
719
|
+
driverUserId: string | null;
|
|
720
|
+
notes: string | null;
|
|
721
|
+
}>;
|
|
722
|
+
declare const routeSchema: z.ZodObject<{
|
|
723
|
+
id: z.ZodString;
|
|
724
|
+
branchId: z.ZodString;
|
|
725
|
+
name: z.ZodString;
|
|
726
|
+
description: z.ZodNullable<z.ZodString>;
|
|
727
|
+
isActive: z.ZodBoolean;
|
|
728
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
729
|
+
routeCategory: z.ZodString;
|
|
730
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
731
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
732
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
733
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
734
|
+
plateNo: z.ZodString;
|
|
735
|
+
type: z.ZodString;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
type: string;
|
|
738
|
+
plateNo: string;
|
|
739
|
+
}, {
|
|
740
|
+
type: string;
|
|
741
|
+
plateNo: string;
|
|
742
|
+
}>>>;
|
|
743
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
744
|
+
id: z.ZodString;
|
|
745
|
+
stopName: z.ZodString;
|
|
746
|
+
stopOrder: z.ZodNumber;
|
|
747
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
748
|
+
}, "strip", z.ZodTypeAny, {
|
|
749
|
+
id: string;
|
|
750
|
+
stopName: string;
|
|
751
|
+
stopOrder: number;
|
|
752
|
+
estimatedTime: string | null;
|
|
753
|
+
}, {
|
|
754
|
+
id: string;
|
|
755
|
+
stopName: string;
|
|
756
|
+
stopOrder: number;
|
|
757
|
+
estimatedTime: string | null;
|
|
758
|
+
}>, "many">>;
|
|
759
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
760
|
+
studentId: z.ZodString;
|
|
761
|
+
studentName: z.ZodString;
|
|
762
|
+
admissionNo: z.ZodString;
|
|
763
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
764
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
765
|
+
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
admissionNo: string;
|
|
767
|
+
studentId: string;
|
|
768
|
+
studentName: string;
|
|
769
|
+
pickupStop: string | null;
|
|
770
|
+
dropoffStop: string | null;
|
|
771
|
+
}, {
|
|
772
|
+
admissionNo: string;
|
|
773
|
+
studentId: string;
|
|
774
|
+
studentName: string;
|
|
775
|
+
pickupStop: string | null;
|
|
776
|
+
dropoffStop: string | null;
|
|
777
|
+
}>, "many">>;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
id: string;
|
|
780
|
+
name: string;
|
|
781
|
+
branchId: string;
|
|
782
|
+
isActive: boolean;
|
|
783
|
+
vehicleId: string | null;
|
|
784
|
+
departureTime: string | null;
|
|
785
|
+
description: string | null;
|
|
786
|
+
routeCategory: string;
|
|
787
|
+
returnTime: string | null;
|
|
788
|
+
fare: number | null;
|
|
789
|
+
vehicle?: {
|
|
790
|
+
type: string;
|
|
791
|
+
plateNo: string;
|
|
792
|
+
} | null | undefined;
|
|
793
|
+
stops?: {
|
|
794
|
+
id: string;
|
|
795
|
+
stopName: string;
|
|
796
|
+
stopOrder: number;
|
|
797
|
+
estimatedTime: string | null;
|
|
798
|
+
}[] | undefined;
|
|
799
|
+
roster?: {
|
|
800
|
+
admissionNo: string;
|
|
801
|
+
studentId: string;
|
|
802
|
+
studentName: string;
|
|
803
|
+
pickupStop: string | null;
|
|
804
|
+
dropoffStop: string | null;
|
|
805
|
+
}[] | undefined;
|
|
806
|
+
}, {
|
|
807
|
+
id: string;
|
|
808
|
+
name: string;
|
|
809
|
+
branchId: string;
|
|
810
|
+
isActive: boolean;
|
|
811
|
+
vehicleId: string | null;
|
|
812
|
+
departureTime: string | null;
|
|
813
|
+
description: string | null;
|
|
814
|
+
routeCategory: string;
|
|
815
|
+
returnTime: string | null;
|
|
816
|
+
fare: number | null;
|
|
817
|
+
vehicle?: {
|
|
818
|
+
type: string;
|
|
819
|
+
plateNo: string;
|
|
820
|
+
} | null | undefined;
|
|
821
|
+
stops?: {
|
|
822
|
+
id: string;
|
|
823
|
+
stopName: string;
|
|
824
|
+
stopOrder: number;
|
|
825
|
+
estimatedTime: string | null;
|
|
826
|
+
}[] | undefined;
|
|
827
|
+
roster?: {
|
|
828
|
+
admissionNo: string;
|
|
829
|
+
studentId: string;
|
|
830
|
+
studentName: string;
|
|
831
|
+
pickupStop: string | null;
|
|
832
|
+
dropoffStop: string | null;
|
|
833
|
+
}[] | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
declare const tripLogSchema: z.ZodObject<{
|
|
836
|
+
id: z.ZodString;
|
|
837
|
+
branchId: z.ZodString;
|
|
838
|
+
vehicleId: z.ZodString;
|
|
839
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
840
|
+
driverUserId: z.ZodString;
|
|
841
|
+
departureTime: z.ZodString;
|
|
842
|
+
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
843
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
844
|
+
tripType: z.ZodString;
|
|
845
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
846
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
847
|
+
title: z.ZodNullable<z.ZodString>;
|
|
848
|
+
description: z.ZodNullable<z.ZodString>;
|
|
849
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
850
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
851
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
852
|
+
createdAt: z.ZodString;
|
|
853
|
+
vehicle: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
plateNo: z.ZodString;
|
|
855
|
+
type: z.ZodString;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
type: string;
|
|
858
|
+
plateNo: string;
|
|
859
|
+
}, {
|
|
860
|
+
type: string;
|
|
861
|
+
plateNo: string;
|
|
862
|
+
}>>;
|
|
863
|
+
route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
864
|
+
name: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
name: string;
|
|
867
|
+
}, {
|
|
868
|
+
name: string;
|
|
869
|
+
}>>>;
|
|
870
|
+
}, "strip", z.ZodTypeAny, {
|
|
871
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
872
|
+
id: string;
|
|
873
|
+
branchId: string;
|
|
874
|
+
createdAt: string;
|
|
875
|
+
vehicleId: string;
|
|
876
|
+
routeId: string | null;
|
|
877
|
+
departureTime: string;
|
|
878
|
+
tripType: string;
|
|
879
|
+
driverUserId: string;
|
|
880
|
+
notes: string | null;
|
|
881
|
+
description: string | null;
|
|
882
|
+
returnTime: string | null;
|
|
883
|
+
arrivalTime: string | null;
|
|
884
|
+
tripCategory: "regular" | "special";
|
|
885
|
+
title: string | null;
|
|
886
|
+
destination: string | null;
|
|
887
|
+
expectedStudents: number | null;
|
|
888
|
+
vehicle?: {
|
|
889
|
+
type: string;
|
|
890
|
+
plateNo: string;
|
|
891
|
+
} | undefined;
|
|
892
|
+
route?: {
|
|
893
|
+
name: string;
|
|
894
|
+
} | null | undefined;
|
|
895
|
+
}, {
|
|
896
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
897
|
+
id: string;
|
|
898
|
+
branchId: string;
|
|
899
|
+
createdAt: string;
|
|
900
|
+
vehicleId: string;
|
|
901
|
+
routeId: string | null;
|
|
902
|
+
departureTime: string;
|
|
903
|
+
tripType: string;
|
|
904
|
+
driverUserId: string;
|
|
905
|
+
notes: string | null;
|
|
906
|
+
description: string | null;
|
|
907
|
+
returnTime: string | null;
|
|
908
|
+
arrivalTime: string | null;
|
|
909
|
+
tripCategory: "regular" | "special";
|
|
910
|
+
title: string | null;
|
|
911
|
+
destination: string | null;
|
|
912
|
+
expectedStudents: number | null;
|
|
913
|
+
vehicle?: {
|
|
914
|
+
type: string;
|
|
915
|
+
plateNo: string;
|
|
916
|
+
} | undefined;
|
|
917
|
+
route?: {
|
|
918
|
+
name: string;
|
|
919
|
+
} | null | undefined;
|
|
920
|
+
}>;
|
|
921
|
+
declare const maintenanceRequestSchema: z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
vehicleId: z.ZodString;
|
|
924
|
+
requestedBy: z.ZodString;
|
|
925
|
+
issue: z.ZodString;
|
|
926
|
+
severity: z.ZodString;
|
|
927
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
928
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
929
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
930
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
931
|
+
createdAt: z.ZodString;
|
|
932
|
+
vehiclePlate: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, "strip", z.ZodTypeAny, {
|
|
934
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
935
|
+
id: string;
|
|
936
|
+
createdAt: string;
|
|
937
|
+
vehicleId: string;
|
|
938
|
+
requestedBy: string;
|
|
939
|
+
issue: string;
|
|
940
|
+
severity: string;
|
|
941
|
+
reviewedBy: string | null;
|
|
942
|
+
reviewNotes: string | null;
|
|
943
|
+
reviewedAt: string | null;
|
|
944
|
+
vehiclePlate?: string | undefined;
|
|
945
|
+
}, {
|
|
946
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
947
|
+
id: string;
|
|
948
|
+
createdAt: string;
|
|
949
|
+
vehicleId: string;
|
|
950
|
+
requestedBy: string;
|
|
951
|
+
issue: string;
|
|
952
|
+
severity: string;
|
|
953
|
+
reviewedBy: string | null;
|
|
954
|
+
reviewNotes: string | null;
|
|
955
|
+
reviewedAt: string | null;
|
|
956
|
+
vehiclePlate?: string | undefined;
|
|
957
|
+
}>;
|
|
958
|
+
declare const transportApplicationSchema: z.ZodObject<{
|
|
959
|
+
id: z.ZodString;
|
|
960
|
+
branchId: z.ZodString;
|
|
961
|
+
studentId: z.ZodString;
|
|
962
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
963
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
964
|
+
tripLogId: z.ZodNullable<z.ZodString>;
|
|
965
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
966
|
+
appliedBy: z.ZodString;
|
|
967
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
968
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
969
|
+
feeItemId: z.ZodNullable<z.ZodString>;
|
|
970
|
+
invoiceUpdated: z.ZodBoolean;
|
|
971
|
+
createdAt: z.ZodString;
|
|
972
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
973
|
+
routeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
974
|
+
tripTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
975
|
+
}, "strip", z.ZodTypeAny, {
|
|
976
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
977
|
+
id: string;
|
|
978
|
+
branchId: string;
|
|
979
|
+
createdAt: string;
|
|
980
|
+
studentId: string;
|
|
981
|
+
routeId: string | null;
|
|
982
|
+
reviewedBy: string | null;
|
|
983
|
+
reviewNotes: string | null;
|
|
984
|
+
applicationType: "route" | "trip";
|
|
985
|
+
tripLogId: string | null;
|
|
986
|
+
appliedBy: string;
|
|
987
|
+
feeItemId: string | null;
|
|
988
|
+
invoiceUpdated: boolean;
|
|
989
|
+
studentName?: string | undefined;
|
|
990
|
+
routeName?: string | null | undefined;
|
|
991
|
+
tripTitle?: string | null | undefined;
|
|
992
|
+
}, {
|
|
993
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
994
|
+
id: string;
|
|
995
|
+
branchId: string;
|
|
996
|
+
createdAt: string;
|
|
997
|
+
studentId: string;
|
|
998
|
+
routeId: string | null;
|
|
999
|
+
reviewedBy: string | null;
|
|
1000
|
+
reviewNotes: string | null;
|
|
1001
|
+
applicationType: "route" | "trip";
|
|
1002
|
+
tripLogId: string | null;
|
|
1003
|
+
appliedBy: string;
|
|
1004
|
+
feeItemId: string | null;
|
|
1005
|
+
invoiceUpdated: boolean;
|
|
1006
|
+
studentName?: string | undefined;
|
|
1007
|
+
routeName?: string | null | undefined;
|
|
1008
|
+
tripTitle?: string | null | undefined;
|
|
1009
|
+
}>;
|
|
671
1010
|
declare const assetCategoryEnum: z.ZodEnum<["furniture", "lab_equipment", "ict_device", "vehicle", "sports_equipment", "kitchen_equipment", "musical_instrument", "classroom_supply", "library_book", "other"]>;
|
|
672
1011
|
declare const assetConditionEnum: z.ZodEnum<["excellent", "good", "fair", "poor", "condemned"]>;
|
|
673
1012
|
declare const maintenanceTicketStatusEnum: z.ZodEnum<["open", "in_progress", "resolved", "closed"]>;
|
|
@@ -697,4 +1036,4 @@ declare const sendBulkSmsInputSchema: z.ZodObject<{
|
|
|
697
1036
|
scheduleAt?: string | undefined;
|
|
698
1037
|
}>;
|
|
699
1038
|
|
|
700
|
-
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, rubricBandEnum, sendBulkSmsInputSchema, sponsorSchema, sponsorTypeEnum, staffSchema, studentSchema, studentStatusEnum, subjectSchema, systemRoleEnum, tripLogInputSchema, userSchema, userStatusEnum, uuidSchema, vehicleOwnershipEnum, vehicleTypeEnum };
|
|
1039
|
+
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, maintenanceRequestSchema, maintenanceRequestStatusEnum, maintenanceTicketStatusEnum, mfaVerifyInputSchema, notificationTypeEnum, paginationSchema, paymentMethodEnum, payrollRunStatusEnum, recordPaymentInputSchema, refreshInputSchema, refreshTokenOutputSchema, reportCardStatusEnum, routeSchema, rubricBandEnum, sendBulkSmsInputSchema, sponsorSchema, sponsorTypeEnum, staffSchema, studentSchema, studentStatusEnum, subjectSchema, systemRoleEnum, transportAppStatusEnum, transportApplicationSchema, tripCategoryEnum, tripLogInputSchema, tripLogSchema, tripStatusEnum, userSchema, userStatusEnum, uuidSchema, vehicleOwnershipEnum, vehicleSchema, vehicleStatusEnum, vehicleTypeEnum };
|