@brite-future-schools-contracts/contracts 1.0.7 → 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-OJCH3PZZ.mjs → chunk-M6LF6JUL.mjs} +65 -3
- package/dist/chunk-M6LF6JUL.mjs.map +1 -0
- package/dist/{chunk-7A7N5DCT.mjs → chunk-VC6SCJVW.mjs} +167 -86
- package/dist/chunk-VC6SCJVW.mjs.map +1 -0
- package/dist/contracts/index.d.mts +1979 -197
- package/dist/contracts/index.d.ts +1979 -197
- package/dist/contracts/index.js +216 -83
- 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 +228 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/schemas/index.d.mts +192 -9
- package/dist/schemas/index.d.ts +192 -9
- package/dist/schemas/index.js +70 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +13 -1
- package/package.json +1 -1
- package/src/contracts/index.ts +198 -85
- package/src/schemas/index.ts +64 -2
- package/dist/chunk-7A7N5DCT.mjs.map +0 -1
- package/dist/chunk-OJCH3PZZ.mjs.map +0 -1
|
@@ -1569,15 +1569,15 @@ declare const academicsContract: {
|
|
|
1569
1569
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
1570
1570
|
date: string;
|
|
1571
1571
|
id: string;
|
|
1572
|
-
subjectId: string;
|
|
1573
1572
|
title: string;
|
|
1573
|
+
subjectId: string;
|
|
1574
1574
|
maxScore: number;
|
|
1575
1575
|
}, {
|
|
1576
1576
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
1577
1577
|
date: string;
|
|
1578
1578
|
id: string;
|
|
1579
|
-
subjectId: string;
|
|
1580
1579
|
title: string;
|
|
1580
|
+
subjectId: string;
|
|
1581
1581
|
maxScore: number;
|
|
1582
1582
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
1583
1583
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -1593,16 +1593,16 @@ declare const academicsContract: {
|
|
|
1593
1593
|
date: string;
|
|
1594
1594
|
classId: string;
|
|
1595
1595
|
termId: string;
|
|
1596
|
-
subjectId: string;
|
|
1597
1596
|
title: string;
|
|
1597
|
+
subjectId: string;
|
|
1598
1598
|
maxScore: number;
|
|
1599
1599
|
}, {
|
|
1600
1600
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
1601
1601
|
date: string;
|
|
1602
1602
|
classId: string;
|
|
1603
1603
|
termId: string;
|
|
1604
|
-
subjectId: string;
|
|
1605
1604
|
title: string;
|
|
1605
|
+
subjectId: string;
|
|
1606
1606
|
maxScore: number;
|
|
1607
1607
|
}>, z.ZodObject<{
|
|
1608
1608
|
id: z.ZodString;
|
|
@@ -2679,15 +2679,16 @@ declare const transportContract: {
|
|
|
2679
2679
|
make: z.ZodNullable<z.ZodString>;
|
|
2680
2680
|
model: z.ZodNullable<z.ZodString>;
|
|
2681
2681
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
2682
|
-
type: z.
|
|
2682
|
+
type: z.ZodString;
|
|
2683
2683
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
2684
2684
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
2685
2685
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
2686
2686
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
2687
2687
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
2688
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2688
2689
|
createdAt: z.ZodString;
|
|
2689
2690
|
}, "strip", z.ZodTypeAny, {
|
|
2690
|
-
type:
|
|
2691
|
+
type: string;
|
|
2691
2692
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2692
2693
|
id: string;
|
|
2693
2694
|
branchId: string;
|
|
@@ -2700,8 +2701,9 @@ declare const transportContract: {
|
|
|
2700
2701
|
insuranceExpiry: string | null;
|
|
2701
2702
|
inspectionDate: string | null;
|
|
2702
2703
|
driverUserId: string | null;
|
|
2704
|
+
notes: string | null;
|
|
2703
2705
|
}, {
|
|
2704
|
-
type:
|
|
2706
|
+
type: string;
|
|
2705
2707
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2706
2708
|
id: string;
|
|
2707
2709
|
branchId: string;
|
|
@@ -2714,11 +2716,12 @@ declare const transportContract: {
|
|
|
2714
2716
|
insuranceExpiry: string | null;
|
|
2715
2717
|
inspectionDate: string | null;
|
|
2716
2718
|
driverUserId: string | null;
|
|
2719
|
+
notes: string | null;
|
|
2717
2720
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
2718
2721
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2719
2722
|
branchId: z.ZodString;
|
|
2720
2723
|
plateNo: z.ZodString;
|
|
2721
|
-
type: z.
|
|
2724
|
+
type: z.ZodString;
|
|
2722
2725
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
2723
2726
|
make: z.ZodOptional<z.ZodString>;
|
|
2724
2727
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -2726,8 +2729,21 @@ declare const transportContract: {
|
|
|
2726
2729
|
insuranceExpiry: z.ZodOptional<z.ZodString>;
|
|
2727
2730
|
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
2728
2731
|
driverUserId: z.ZodOptional<z.ZodString>;
|
|
2732
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2729
2733
|
}, "strip", z.ZodTypeAny, {
|
|
2730
|
-
type:
|
|
2734
|
+
type: string;
|
|
2735
|
+
branchId: string;
|
|
2736
|
+
plateNo: string;
|
|
2737
|
+
ownershipType: "owned" | "contracted";
|
|
2738
|
+
make?: string | undefined;
|
|
2739
|
+
model?: string | undefined;
|
|
2740
|
+
capacity?: number | undefined;
|
|
2741
|
+
insuranceExpiry?: string | undefined;
|
|
2742
|
+
inspectionDate?: string | undefined;
|
|
2743
|
+
driverUserId?: string | undefined;
|
|
2744
|
+
notes?: string | undefined;
|
|
2745
|
+
}, {
|
|
2746
|
+
type: string;
|
|
2731
2747
|
branchId: string;
|
|
2732
2748
|
plateNo: string;
|
|
2733
2749
|
ownershipType: "owned" | "contracted";
|
|
@@ -2737,17 +2753,89 @@ declare const transportContract: {
|
|
|
2737
2753
|
insuranceExpiry?: string | undefined;
|
|
2738
2754
|
inspectionDate?: string | undefined;
|
|
2739
2755
|
driverUserId?: string | undefined;
|
|
2756
|
+
notes?: string | undefined;
|
|
2757
|
+
}>, z.ZodObject<{
|
|
2758
|
+
id: z.ZodString;
|
|
2759
|
+
branchId: z.ZodString;
|
|
2760
|
+
plateNo: z.ZodString;
|
|
2761
|
+
make: z.ZodNullable<z.ZodString>;
|
|
2762
|
+
model: z.ZodNullable<z.ZodString>;
|
|
2763
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
2764
|
+
type: z.ZodString;
|
|
2765
|
+
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
2766
|
+
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
2767
|
+
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
2768
|
+
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
2769
|
+
driverUserId: z.ZodNullable<z.ZodString>;
|
|
2770
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2771
|
+
createdAt: z.ZodString;
|
|
2772
|
+
}, "strip", z.ZodTypeAny, {
|
|
2773
|
+
type: string;
|
|
2774
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
2775
|
+
id: string;
|
|
2776
|
+
branchId: string;
|
|
2777
|
+
createdAt: string;
|
|
2778
|
+
plateNo: string;
|
|
2779
|
+
make: string | null;
|
|
2780
|
+
model: string | null;
|
|
2781
|
+
capacity: number | null;
|
|
2782
|
+
ownershipType: "owned" | "contracted";
|
|
2783
|
+
insuranceExpiry: string | null;
|
|
2784
|
+
inspectionDate: string | null;
|
|
2785
|
+
driverUserId: string | null;
|
|
2786
|
+
notes: string | null;
|
|
2740
2787
|
}, {
|
|
2741
|
-
type:
|
|
2788
|
+
type: string;
|
|
2789
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
2790
|
+
id: string;
|
|
2742
2791
|
branchId: string;
|
|
2792
|
+
createdAt: string;
|
|
2743
2793
|
plateNo: string;
|
|
2794
|
+
make: string | null;
|
|
2795
|
+
model: string | null;
|
|
2796
|
+
capacity: number | null;
|
|
2744
2797
|
ownershipType: "owned" | "contracted";
|
|
2798
|
+
insuranceExpiry: string | null;
|
|
2799
|
+
inspectionDate: string | null;
|
|
2800
|
+
driverUserId: string | null;
|
|
2801
|
+
notes: string | null;
|
|
2802
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2803
|
+
update: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2804
|
+
id: z.ZodString;
|
|
2805
|
+
plateNo: z.ZodOptional<z.ZodString>;
|
|
2806
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2807
|
+
ownershipType: z.ZodOptional<z.ZodEnum<["owned", "contracted"]>>;
|
|
2808
|
+
make: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2810
|
+
capacity: z.ZodOptional<z.ZodNumber>;
|
|
2811
|
+
insuranceExpiry: z.ZodOptional<z.ZodString>;
|
|
2812
|
+
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
2813
|
+
driverUserId: z.ZodOptional<z.ZodString>;
|
|
2814
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2815
|
+
}, "strip", z.ZodTypeAny, {
|
|
2816
|
+
id: string;
|
|
2817
|
+
type?: string | undefined;
|
|
2818
|
+
plateNo?: string | undefined;
|
|
2819
|
+
make?: string | undefined;
|
|
2820
|
+
model?: string | undefined;
|
|
2821
|
+
capacity?: number | undefined;
|
|
2822
|
+
ownershipType?: "owned" | "contracted" | undefined;
|
|
2823
|
+
insuranceExpiry?: string | undefined;
|
|
2824
|
+
inspectionDate?: string | undefined;
|
|
2825
|
+
driverUserId?: string | undefined;
|
|
2826
|
+
notes?: string | undefined;
|
|
2827
|
+
}, {
|
|
2828
|
+
id: string;
|
|
2829
|
+
type?: string | undefined;
|
|
2830
|
+
plateNo?: string | undefined;
|
|
2745
2831
|
make?: string | undefined;
|
|
2746
2832
|
model?: string | undefined;
|
|
2747
2833
|
capacity?: number | undefined;
|
|
2834
|
+
ownershipType?: "owned" | "contracted" | undefined;
|
|
2748
2835
|
insuranceExpiry?: string | undefined;
|
|
2749
2836
|
inspectionDate?: string | undefined;
|
|
2750
2837
|
driverUserId?: string | undefined;
|
|
2838
|
+
notes?: string | undefined;
|
|
2751
2839
|
}>, z.ZodObject<{
|
|
2752
2840
|
id: z.ZodString;
|
|
2753
2841
|
branchId: z.ZodString;
|
|
@@ -2755,15 +2843,16 @@ declare const transportContract: {
|
|
|
2755
2843
|
make: z.ZodNullable<z.ZodString>;
|
|
2756
2844
|
model: z.ZodNullable<z.ZodString>;
|
|
2757
2845
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
2758
|
-
type: z.
|
|
2846
|
+
type: z.ZodString;
|
|
2759
2847
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
2760
2848
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
2761
2849
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
2762
2850
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
2763
2851
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
2852
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2764
2853
|
createdAt: z.ZodString;
|
|
2765
2854
|
}, "strip", z.ZodTypeAny, {
|
|
2766
|
-
type:
|
|
2855
|
+
type: string;
|
|
2767
2856
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2768
2857
|
id: string;
|
|
2769
2858
|
branchId: string;
|
|
@@ -2776,8 +2865,9 @@ declare const transportContract: {
|
|
|
2776
2865
|
insuranceExpiry: string | null;
|
|
2777
2866
|
inspectionDate: string | null;
|
|
2778
2867
|
driverUserId: string | null;
|
|
2868
|
+
notes: string | null;
|
|
2779
2869
|
}, {
|
|
2780
|
-
type:
|
|
2870
|
+
type: string;
|
|
2781
2871
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2782
2872
|
id: string;
|
|
2783
2873
|
branchId: string;
|
|
@@ -2790,6 +2880,7 @@ declare const transportContract: {
|
|
|
2790
2880
|
insuranceExpiry: string | null;
|
|
2791
2881
|
inspectionDate: string | null;
|
|
2792
2882
|
driverUserId: string | null;
|
|
2883
|
+
notes: string | null;
|
|
2793
2884
|
}>, Record<never, never>, Record<never, never>>;
|
|
2794
2885
|
updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2795
2886
|
id: z.ZodString;
|
|
@@ -2807,15 +2898,16 @@ declare const transportContract: {
|
|
|
2807
2898
|
make: z.ZodNullable<z.ZodString>;
|
|
2808
2899
|
model: z.ZodNullable<z.ZodString>;
|
|
2809
2900
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
2810
|
-
type: z.
|
|
2901
|
+
type: z.ZodString;
|
|
2811
2902
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
2812
2903
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
2813
2904
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
2814
2905
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
2815
2906
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
2907
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2816
2908
|
createdAt: z.ZodString;
|
|
2817
2909
|
}, "strip", z.ZodTypeAny, {
|
|
2818
|
-
type:
|
|
2910
|
+
type: string;
|
|
2819
2911
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2820
2912
|
id: string;
|
|
2821
2913
|
branchId: string;
|
|
@@ -2828,8 +2920,9 @@ declare const transportContract: {
|
|
|
2828
2920
|
insuranceExpiry: string | null;
|
|
2829
2921
|
inspectionDate: string | null;
|
|
2830
2922
|
driverUserId: string | null;
|
|
2923
|
+
notes: string | null;
|
|
2831
2924
|
}, {
|
|
2832
|
-
type:
|
|
2925
|
+
type: string;
|
|
2833
2926
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
2834
2927
|
id: string;
|
|
2835
2928
|
branchId: string;
|
|
@@ -2842,6 +2935,7 @@ declare const transportContract: {
|
|
|
2842
2935
|
insuranceExpiry: string | null;
|
|
2843
2936
|
inspectionDate: string | null;
|
|
2844
2937
|
driverUserId: string | null;
|
|
2938
|
+
notes: string | null;
|
|
2845
2939
|
}>, Record<never, never>, Record<never, never>>;
|
|
2846
2940
|
};
|
|
2847
2941
|
routes: {
|
|
@@ -2857,6 +2951,21 @@ declare const transportContract: {
|
|
|
2857
2951
|
name: z.ZodString;
|
|
2858
2952
|
description: z.ZodNullable<z.ZodString>;
|
|
2859
2953
|
isActive: z.ZodBoolean;
|
|
2954
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
2955
|
+
routeCategory: z.ZodString;
|
|
2956
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
2957
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
2958
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
2959
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2960
|
+
plateNo: z.ZodString;
|
|
2961
|
+
type: z.ZodString;
|
|
2962
|
+
}, "strip", z.ZodTypeAny, {
|
|
2963
|
+
type: string;
|
|
2964
|
+
plateNo: string;
|
|
2965
|
+
}, {
|
|
2966
|
+
type: string;
|
|
2967
|
+
plateNo: string;
|
|
2968
|
+
}>>>;
|
|
2860
2969
|
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2861
2970
|
id: z.ZodString;
|
|
2862
2971
|
stopName: z.ZodString;
|
|
@@ -2873,35 +2982,210 @@ declare const transportContract: {
|
|
|
2873
2982
|
stopOrder: number;
|
|
2874
2983
|
estimatedTime: string | null;
|
|
2875
2984
|
}>, "many">>;
|
|
2985
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2986
|
+
studentId: z.ZodString;
|
|
2987
|
+
studentName: z.ZodString;
|
|
2988
|
+
admissionNo: z.ZodString;
|
|
2989
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
2990
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
2991
|
+
}, "strip", z.ZodTypeAny, {
|
|
2992
|
+
admissionNo: string;
|
|
2993
|
+
studentId: string;
|
|
2994
|
+
studentName: string;
|
|
2995
|
+
pickupStop: string | null;
|
|
2996
|
+
dropoffStop: string | null;
|
|
2997
|
+
}, {
|
|
2998
|
+
admissionNo: string;
|
|
2999
|
+
studentId: string;
|
|
3000
|
+
studentName: string;
|
|
3001
|
+
pickupStop: string | null;
|
|
3002
|
+
dropoffStop: string | null;
|
|
3003
|
+
}>, "many">>;
|
|
2876
3004
|
}, "strip", z.ZodTypeAny, {
|
|
2877
3005
|
id: string;
|
|
2878
3006
|
name: string;
|
|
2879
3007
|
branchId: string;
|
|
2880
3008
|
isActive: boolean;
|
|
3009
|
+
vehicleId: string | null;
|
|
3010
|
+
departureTime: string | null;
|
|
2881
3011
|
description: string | null;
|
|
3012
|
+
routeCategory: string;
|
|
3013
|
+
returnTime: string | null;
|
|
3014
|
+
fare: number | null;
|
|
3015
|
+
vehicle?: {
|
|
3016
|
+
type: string;
|
|
3017
|
+
plateNo: string;
|
|
3018
|
+
} | null | undefined;
|
|
2882
3019
|
stops?: {
|
|
2883
3020
|
id: string;
|
|
2884
3021
|
stopName: string;
|
|
2885
3022
|
stopOrder: number;
|
|
2886
3023
|
estimatedTime: string | null;
|
|
2887
3024
|
}[] | undefined;
|
|
3025
|
+
roster?: {
|
|
3026
|
+
admissionNo: string;
|
|
3027
|
+
studentId: string;
|
|
3028
|
+
studentName: string;
|
|
3029
|
+
pickupStop: string | null;
|
|
3030
|
+
dropoffStop: string | null;
|
|
3031
|
+
}[] | undefined;
|
|
2888
3032
|
}, {
|
|
2889
3033
|
id: string;
|
|
2890
3034
|
name: string;
|
|
2891
3035
|
branchId: string;
|
|
2892
3036
|
isActive: boolean;
|
|
3037
|
+
vehicleId: string | null;
|
|
3038
|
+
departureTime: string | null;
|
|
2893
3039
|
description: string | null;
|
|
3040
|
+
routeCategory: string;
|
|
3041
|
+
returnTime: string | null;
|
|
3042
|
+
fare: number | null;
|
|
3043
|
+
vehicle?: {
|
|
3044
|
+
type: string;
|
|
3045
|
+
plateNo: string;
|
|
3046
|
+
} | null | undefined;
|
|
2894
3047
|
stops?: {
|
|
2895
3048
|
id: string;
|
|
2896
3049
|
stopName: string;
|
|
2897
3050
|
stopOrder: number;
|
|
2898
3051
|
estimatedTime: string | null;
|
|
2899
3052
|
}[] | undefined;
|
|
3053
|
+
roster?: {
|
|
3054
|
+
admissionNo: string;
|
|
3055
|
+
studentId: string;
|
|
3056
|
+
studentName: string;
|
|
3057
|
+
pickupStop: string | null;
|
|
3058
|
+
dropoffStop: string | null;
|
|
3059
|
+
}[] | undefined;
|
|
2900
3060
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
3061
|
+
get: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3062
|
+
routeId: z.ZodString;
|
|
3063
|
+
}, "strip", z.ZodTypeAny, {
|
|
3064
|
+
routeId: string;
|
|
3065
|
+
}, {
|
|
3066
|
+
routeId: string;
|
|
3067
|
+
}>, z.ZodObject<{
|
|
3068
|
+
id: z.ZodString;
|
|
3069
|
+
branchId: z.ZodString;
|
|
3070
|
+
name: z.ZodString;
|
|
3071
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3072
|
+
isActive: z.ZodBoolean;
|
|
3073
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
3074
|
+
routeCategory: z.ZodString;
|
|
3075
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
3076
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
3077
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
3078
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3079
|
+
plateNo: z.ZodString;
|
|
3080
|
+
type: z.ZodString;
|
|
3081
|
+
}, "strip", z.ZodTypeAny, {
|
|
3082
|
+
type: string;
|
|
3083
|
+
plateNo: string;
|
|
3084
|
+
}, {
|
|
3085
|
+
type: string;
|
|
3086
|
+
plateNo: string;
|
|
3087
|
+
}>>>;
|
|
3088
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3089
|
+
id: z.ZodString;
|
|
3090
|
+
stopName: z.ZodString;
|
|
3091
|
+
stopOrder: z.ZodNumber;
|
|
3092
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
3093
|
+
}, "strip", z.ZodTypeAny, {
|
|
3094
|
+
id: string;
|
|
3095
|
+
stopName: string;
|
|
3096
|
+
stopOrder: number;
|
|
3097
|
+
estimatedTime: string | null;
|
|
3098
|
+
}, {
|
|
3099
|
+
id: string;
|
|
3100
|
+
stopName: string;
|
|
3101
|
+
stopOrder: number;
|
|
3102
|
+
estimatedTime: string | null;
|
|
3103
|
+
}>, "many">>;
|
|
3104
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3105
|
+
studentId: z.ZodString;
|
|
3106
|
+
studentName: z.ZodString;
|
|
3107
|
+
admissionNo: z.ZodString;
|
|
3108
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
3109
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
3110
|
+
}, "strip", z.ZodTypeAny, {
|
|
3111
|
+
admissionNo: string;
|
|
3112
|
+
studentId: string;
|
|
3113
|
+
studentName: string;
|
|
3114
|
+
pickupStop: string | null;
|
|
3115
|
+
dropoffStop: string | null;
|
|
3116
|
+
}, {
|
|
3117
|
+
admissionNo: string;
|
|
3118
|
+
studentId: string;
|
|
3119
|
+
studentName: string;
|
|
3120
|
+
pickupStop: string | null;
|
|
3121
|
+
dropoffStop: string | null;
|
|
3122
|
+
}>, "many">>;
|
|
3123
|
+
}, "strip", z.ZodTypeAny, {
|
|
3124
|
+
id: string;
|
|
3125
|
+
name: string;
|
|
3126
|
+
branchId: string;
|
|
3127
|
+
isActive: boolean;
|
|
3128
|
+
vehicleId: string | null;
|
|
3129
|
+
departureTime: string | null;
|
|
3130
|
+
description: string | null;
|
|
3131
|
+
routeCategory: string;
|
|
3132
|
+
returnTime: string | null;
|
|
3133
|
+
fare: number | null;
|
|
3134
|
+
vehicle?: {
|
|
3135
|
+
type: string;
|
|
3136
|
+
plateNo: string;
|
|
3137
|
+
} | null | undefined;
|
|
3138
|
+
stops?: {
|
|
3139
|
+
id: string;
|
|
3140
|
+
stopName: string;
|
|
3141
|
+
stopOrder: number;
|
|
3142
|
+
estimatedTime: string | null;
|
|
3143
|
+
}[] | undefined;
|
|
3144
|
+
roster?: {
|
|
3145
|
+
admissionNo: string;
|
|
3146
|
+
studentId: string;
|
|
3147
|
+
studentName: string;
|
|
3148
|
+
pickupStop: string | null;
|
|
3149
|
+
dropoffStop: string | null;
|
|
3150
|
+
}[] | undefined;
|
|
3151
|
+
}, {
|
|
3152
|
+
id: string;
|
|
3153
|
+
name: string;
|
|
3154
|
+
branchId: string;
|
|
3155
|
+
isActive: boolean;
|
|
3156
|
+
vehicleId: string | null;
|
|
3157
|
+
departureTime: string | null;
|
|
3158
|
+
description: string | null;
|
|
3159
|
+
routeCategory: string;
|
|
3160
|
+
returnTime: string | null;
|
|
3161
|
+
fare: number | null;
|
|
3162
|
+
vehicle?: {
|
|
3163
|
+
type: string;
|
|
3164
|
+
plateNo: string;
|
|
3165
|
+
} | null | undefined;
|
|
3166
|
+
stops?: {
|
|
3167
|
+
id: string;
|
|
3168
|
+
stopName: string;
|
|
3169
|
+
stopOrder: number;
|
|
3170
|
+
estimatedTime: string | null;
|
|
3171
|
+
}[] | undefined;
|
|
3172
|
+
roster?: {
|
|
3173
|
+
admissionNo: string;
|
|
3174
|
+
studentId: string;
|
|
3175
|
+
studentName: string;
|
|
3176
|
+
pickupStop: string | null;
|
|
3177
|
+
dropoffStop: string | null;
|
|
3178
|
+
}[] | undefined;
|
|
3179
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2901
3180
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2902
3181
|
branchId: z.ZodString;
|
|
2903
3182
|
name: z.ZodString;
|
|
2904
3183
|
description: z.ZodOptional<z.ZodString>;
|
|
3184
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
routeCategory: z.ZodOptional<z.ZodString>;
|
|
3186
|
+
departureTime: z.ZodOptional<z.ZodString>;
|
|
3187
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
3188
|
+
fare: z.ZodOptional<z.ZodNumber>;
|
|
2905
3189
|
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2906
3190
|
stopName: z.ZodString;
|
|
2907
3191
|
stopOrder: z.ZodNumber;
|
|
@@ -2918,7 +3202,12 @@ declare const transportContract: {
|
|
|
2918
3202
|
}, "strip", z.ZodTypeAny, {
|
|
2919
3203
|
name: string;
|
|
2920
3204
|
branchId: string;
|
|
3205
|
+
vehicleId?: string | undefined;
|
|
3206
|
+
departureTime?: string | undefined;
|
|
2921
3207
|
description?: string | undefined;
|
|
3208
|
+
routeCategory?: string | undefined;
|
|
3209
|
+
returnTime?: string | undefined;
|
|
3210
|
+
fare?: number | undefined;
|
|
2922
3211
|
stops?: {
|
|
2923
3212
|
stopName: string;
|
|
2924
3213
|
stopOrder: number;
|
|
@@ -2927,7 +3216,12 @@ declare const transportContract: {
|
|
|
2927
3216
|
}, {
|
|
2928
3217
|
name: string;
|
|
2929
3218
|
branchId: string;
|
|
3219
|
+
vehicleId?: string | undefined;
|
|
3220
|
+
departureTime?: string | undefined;
|
|
2930
3221
|
description?: string | undefined;
|
|
3222
|
+
routeCategory?: string | undefined;
|
|
3223
|
+
returnTime?: string | undefined;
|
|
3224
|
+
fare?: number | undefined;
|
|
2931
3225
|
stops?: {
|
|
2932
3226
|
stopName: string;
|
|
2933
3227
|
stopOrder: number;
|
|
@@ -2939,6 +3233,21 @@ declare const transportContract: {
|
|
|
2939
3233
|
name: z.ZodString;
|
|
2940
3234
|
description: z.ZodNullable<z.ZodString>;
|
|
2941
3235
|
isActive: z.ZodBoolean;
|
|
3236
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
3237
|
+
routeCategory: z.ZodString;
|
|
3238
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
3239
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
3240
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
3241
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3242
|
+
plateNo: z.ZodString;
|
|
3243
|
+
type: z.ZodString;
|
|
3244
|
+
}, "strip", z.ZodTypeAny, {
|
|
3245
|
+
type: string;
|
|
3246
|
+
plateNo: string;
|
|
3247
|
+
}, {
|
|
3248
|
+
type: string;
|
|
3249
|
+
plateNo: string;
|
|
3250
|
+
}>>>;
|
|
2942
3251
|
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2943
3252
|
id: z.ZodString;
|
|
2944
3253
|
stopName: z.ZodString;
|
|
@@ -2955,33 +3264,224 @@ declare const transportContract: {
|
|
|
2955
3264
|
stopOrder: number;
|
|
2956
3265
|
estimatedTime: string | null;
|
|
2957
3266
|
}>, "many">>;
|
|
3267
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3268
|
+
studentId: z.ZodString;
|
|
3269
|
+
studentName: z.ZodString;
|
|
3270
|
+
admissionNo: z.ZodString;
|
|
3271
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
3272
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
3273
|
+
}, "strip", z.ZodTypeAny, {
|
|
3274
|
+
admissionNo: string;
|
|
3275
|
+
studentId: string;
|
|
3276
|
+
studentName: string;
|
|
3277
|
+
pickupStop: string | null;
|
|
3278
|
+
dropoffStop: string | null;
|
|
3279
|
+
}, {
|
|
3280
|
+
admissionNo: string;
|
|
3281
|
+
studentId: string;
|
|
3282
|
+
studentName: string;
|
|
3283
|
+
pickupStop: string | null;
|
|
3284
|
+
dropoffStop: string | null;
|
|
3285
|
+
}>, "many">>;
|
|
2958
3286
|
}, "strip", z.ZodTypeAny, {
|
|
2959
3287
|
id: string;
|
|
2960
3288
|
name: string;
|
|
2961
3289
|
branchId: string;
|
|
2962
3290
|
isActive: boolean;
|
|
3291
|
+
vehicleId: string | null;
|
|
3292
|
+
departureTime: string | null;
|
|
2963
3293
|
description: string | null;
|
|
3294
|
+
routeCategory: string;
|
|
3295
|
+
returnTime: string | null;
|
|
3296
|
+
fare: number | null;
|
|
3297
|
+
vehicle?: {
|
|
3298
|
+
type: string;
|
|
3299
|
+
plateNo: string;
|
|
3300
|
+
} | null | undefined;
|
|
2964
3301
|
stops?: {
|
|
2965
3302
|
id: string;
|
|
2966
3303
|
stopName: string;
|
|
2967
3304
|
stopOrder: number;
|
|
2968
3305
|
estimatedTime: string | null;
|
|
2969
3306
|
}[] | undefined;
|
|
3307
|
+
roster?: {
|
|
3308
|
+
admissionNo: string;
|
|
3309
|
+
studentId: string;
|
|
3310
|
+
studentName: string;
|
|
3311
|
+
pickupStop: string | null;
|
|
3312
|
+
dropoffStop: string | null;
|
|
3313
|
+
}[] | undefined;
|
|
2970
3314
|
}, {
|
|
2971
3315
|
id: string;
|
|
2972
3316
|
name: string;
|
|
2973
3317
|
branchId: string;
|
|
2974
3318
|
isActive: boolean;
|
|
3319
|
+
vehicleId: string | null;
|
|
3320
|
+
departureTime: string | null;
|
|
2975
3321
|
description: string | null;
|
|
3322
|
+
routeCategory: string;
|
|
3323
|
+
returnTime: string | null;
|
|
3324
|
+
fare: number | null;
|
|
3325
|
+
vehicle?: {
|
|
3326
|
+
type: string;
|
|
3327
|
+
plateNo: string;
|
|
3328
|
+
} | null | undefined;
|
|
2976
3329
|
stops?: {
|
|
2977
3330
|
id: string;
|
|
2978
3331
|
stopName: string;
|
|
2979
3332
|
stopOrder: number;
|
|
2980
3333
|
estimatedTime: string | null;
|
|
2981
3334
|
}[] | undefined;
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3335
|
+
roster?: {
|
|
3336
|
+
admissionNo: string;
|
|
3337
|
+
studentId: string;
|
|
3338
|
+
studentName: string;
|
|
3339
|
+
pickupStop: string | null;
|
|
3340
|
+
dropoffStop: string | null;
|
|
3341
|
+
}[] | undefined;
|
|
3342
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3343
|
+
update: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3344
|
+
id: z.ZodString;
|
|
3345
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3346
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3347
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
3348
|
+
routeCategory: z.ZodOptional<z.ZodString>;
|
|
3349
|
+
departureTime: z.ZodOptional<z.ZodString>;
|
|
3350
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
3351
|
+
fare: z.ZodOptional<z.ZodNumber>;
|
|
3352
|
+
}, "strip", z.ZodTypeAny, {
|
|
3353
|
+
id: string;
|
|
3354
|
+
name?: string | undefined;
|
|
3355
|
+
vehicleId?: string | undefined;
|
|
3356
|
+
departureTime?: string | undefined;
|
|
3357
|
+
description?: string | undefined;
|
|
3358
|
+
routeCategory?: string | undefined;
|
|
3359
|
+
returnTime?: string | undefined;
|
|
3360
|
+
fare?: number | undefined;
|
|
3361
|
+
}, {
|
|
3362
|
+
id: string;
|
|
3363
|
+
name?: string | undefined;
|
|
3364
|
+
vehicleId?: string | undefined;
|
|
3365
|
+
departureTime?: string | undefined;
|
|
3366
|
+
description?: string | undefined;
|
|
3367
|
+
routeCategory?: string | undefined;
|
|
3368
|
+
returnTime?: string | undefined;
|
|
3369
|
+
fare?: number | undefined;
|
|
3370
|
+
}>, z.ZodObject<{
|
|
3371
|
+
id: z.ZodString;
|
|
3372
|
+
branchId: z.ZodString;
|
|
3373
|
+
name: z.ZodString;
|
|
3374
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3375
|
+
isActive: z.ZodBoolean;
|
|
3376
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
3377
|
+
routeCategory: z.ZodString;
|
|
3378
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
3379
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
3380
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
3381
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3382
|
+
plateNo: z.ZodString;
|
|
3383
|
+
type: z.ZodString;
|
|
3384
|
+
}, "strip", z.ZodTypeAny, {
|
|
3385
|
+
type: string;
|
|
3386
|
+
plateNo: string;
|
|
3387
|
+
}, {
|
|
3388
|
+
type: string;
|
|
3389
|
+
plateNo: string;
|
|
3390
|
+
}>>>;
|
|
3391
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3392
|
+
id: z.ZodString;
|
|
3393
|
+
stopName: z.ZodString;
|
|
3394
|
+
stopOrder: z.ZodNumber;
|
|
3395
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
3396
|
+
}, "strip", z.ZodTypeAny, {
|
|
3397
|
+
id: string;
|
|
3398
|
+
stopName: string;
|
|
3399
|
+
stopOrder: number;
|
|
3400
|
+
estimatedTime: string | null;
|
|
3401
|
+
}, {
|
|
3402
|
+
id: string;
|
|
3403
|
+
stopName: string;
|
|
3404
|
+
stopOrder: number;
|
|
3405
|
+
estimatedTime: string | null;
|
|
3406
|
+
}>, "many">>;
|
|
3407
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3408
|
+
studentId: z.ZodString;
|
|
3409
|
+
studentName: z.ZodString;
|
|
3410
|
+
admissionNo: z.ZodString;
|
|
3411
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
3412
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
3413
|
+
}, "strip", z.ZodTypeAny, {
|
|
3414
|
+
admissionNo: string;
|
|
3415
|
+
studentId: string;
|
|
3416
|
+
studentName: string;
|
|
3417
|
+
pickupStop: string | null;
|
|
3418
|
+
dropoffStop: string | null;
|
|
3419
|
+
}, {
|
|
3420
|
+
admissionNo: string;
|
|
3421
|
+
studentId: string;
|
|
3422
|
+
studentName: string;
|
|
3423
|
+
pickupStop: string | null;
|
|
3424
|
+
dropoffStop: string | null;
|
|
3425
|
+
}>, "many">>;
|
|
3426
|
+
}, "strip", z.ZodTypeAny, {
|
|
3427
|
+
id: string;
|
|
3428
|
+
name: string;
|
|
3429
|
+
branchId: string;
|
|
3430
|
+
isActive: boolean;
|
|
3431
|
+
vehicleId: string | null;
|
|
3432
|
+
departureTime: string | null;
|
|
3433
|
+
description: string | null;
|
|
3434
|
+
routeCategory: string;
|
|
3435
|
+
returnTime: string | null;
|
|
3436
|
+
fare: number | null;
|
|
3437
|
+
vehicle?: {
|
|
3438
|
+
type: string;
|
|
3439
|
+
plateNo: string;
|
|
3440
|
+
} | null | undefined;
|
|
3441
|
+
stops?: {
|
|
3442
|
+
id: string;
|
|
3443
|
+
stopName: string;
|
|
3444
|
+
stopOrder: number;
|
|
3445
|
+
estimatedTime: string | null;
|
|
3446
|
+
}[] | undefined;
|
|
3447
|
+
roster?: {
|
|
3448
|
+
admissionNo: string;
|
|
3449
|
+
studentId: string;
|
|
3450
|
+
studentName: string;
|
|
3451
|
+
pickupStop: string | null;
|
|
3452
|
+
dropoffStop: string | null;
|
|
3453
|
+
}[] | undefined;
|
|
3454
|
+
}, {
|
|
3455
|
+
id: string;
|
|
3456
|
+
name: string;
|
|
3457
|
+
branchId: string;
|
|
3458
|
+
isActive: boolean;
|
|
3459
|
+
vehicleId: string | null;
|
|
3460
|
+
departureTime: string | null;
|
|
3461
|
+
description: string | null;
|
|
3462
|
+
routeCategory: string;
|
|
3463
|
+
returnTime: string | null;
|
|
3464
|
+
fare: number | null;
|
|
3465
|
+
vehicle?: {
|
|
3466
|
+
type: string;
|
|
3467
|
+
plateNo: string;
|
|
3468
|
+
} | null | undefined;
|
|
3469
|
+
stops?: {
|
|
3470
|
+
id: string;
|
|
3471
|
+
stopName: string;
|
|
3472
|
+
stopOrder: number;
|
|
3473
|
+
estimatedTime: string | null;
|
|
3474
|
+
}[] | undefined;
|
|
3475
|
+
roster?: {
|
|
3476
|
+
admissionNo: string;
|
|
3477
|
+
studentId: string;
|
|
3478
|
+
studentName: string;
|
|
3479
|
+
pickupStop: string | null;
|
|
3480
|
+
dropoffStop: string | null;
|
|
3481
|
+
}[] | undefined;
|
|
3482
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3483
|
+
toggle: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3484
|
+
id: z.ZodString;
|
|
2985
3485
|
isActive: z.ZodBoolean;
|
|
2986
3486
|
}, "strip", z.ZodTypeAny, {
|
|
2987
3487
|
id: string;
|
|
@@ -2996,20 +3496,98 @@ declare const transportContract: {
|
|
|
2996
3496
|
}, {
|
|
2997
3497
|
success: boolean;
|
|
2998
3498
|
}>, Record<never, never>, Record<never, never>>;
|
|
3499
|
+
roster: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3500
|
+
routeId: z.ZodString;
|
|
3501
|
+
termId: z.ZodString;
|
|
3502
|
+
}, "strip", z.ZodTypeAny, {
|
|
3503
|
+
termId: string;
|
|
3504
|
+
routeId: string;
|
|
3505
|
+
}, {
|
|
3506
|
+
termId: string;
|
|
3507
|
+
routeId: string;
|
|
3508
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
3509
|
+
studentId: z.ZodString;
|
|
3510
|
+
studentName: z.ZodString;
|
|
3511
|
+
admissionNo: z.ZodString;
|
|
3512
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
3513
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
3514
|
+
}, "strip", z.ZodTypeAny, {
|
|
3515
|
+
admissionNo: string;
|
|
3516
|
+
studentId: string;
|
|
3517
|
+
studentName: string;
|
|
3518
|
+
pickupStop: string | null;
|
|
3519
|
+
dropoffStop: string | null;
|
|
3520
|
+
}, {
|
|
3521
|
+
admissionNo: string;
|
|
3522
|
+
studentId: string;
|
|
3523
|
+
studentName: string;
|
|
3524
|
+
pickupStop: string | null;
|
|
3525
|
+
dropoffStop: string | null;
|
|
3526
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
3527
|
+
enroll: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3528
|
+
studentId: z.ZodString;
|
|
3529
|
+
routeId: z.ZodString;
|
|
3530
|
+
termId: z.ZodString;
|
|
3531
|
+
pickupStopId: z.ZodOptional<z.ZodString>;
|
|
3532
|
+
dropoffStopId: z.ZodOptional<z.ZodString>;
|
|
3533
|
+
}, "strip", z.ZodTypeAny, {
|
|
3534
|
+
termId: string;
|
|
3535
|
+
studentId: string;
|
|
3536
|
+
routeId: string;
|
|
3537
|
+
pickupStopId?: string | undefined;
|
|
3538
|
+
dropoffStopId?: string | undefined;
|
|
3539
|
+
}, {
|
|
3540
|
+
termId: string;
|
|
3541
|
+
studentId: string;
|
|
3542
|
+
routeId: string;
|
|
3543
|
+
pickupStopId?: string | undefined;
|
|
3544
|
+
dropoffStopId?: string | undefined;
|
|
3545
|
+
}>, z.ZodObject<{
|
|
3546
|
+
success: z.ZodBoolean;
|
|
3547
|
+
}, "strip", z.ZodTypeAny, {
|
|
3548
|
+
success: boolean;
|
|
3549
|
+
}, {
|
|
3550
|
+
success: boolean;
|
|
3551
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3552
|
+
unenroll: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3553
|
+
studentId: z.ZodString;
|
|
3554
|
+
routeId: z.ZodString;
|
|
3555
|
+
termId: z.ZodString;
|
|
3556
|
+
}, "strip", z.ZodTypeAny, {
|
|
3557
|
+
termId: string;
|
|
3558
|
+
studentId: string;
|
|
3559
|
+
routeId: string;
|
|
3560
|
+
}, {
|
|
3561
|
+
termId: string;
|
|
3562
|
+
studentId: string;
|
|
3563
|
+
routeId: string;
|
|
3564
|
+
}>, z.ZodObject<{
|
|
3565
|
+
success: z.ZodBoolean;
|
|
3566
|
+
}, "strip", z.ZodTypeAny, {
|
|
3567
|
+
success: boolean;
|
|
3568
|
+
}, {
|
|
3569
|
+
success: boolean;
|
|
3570
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2999
3571
|
};
|
|
3000
3572
|
trips: {
|
|
3001
3573
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3002
3574
|
branchId: z.ZodString;
|
|
3003
3575
|
date: z.ZodOptional<z.ZodString>;
|
|
3004
3576
|
vehicleId: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
tripCategory: z.ZodOptional<z.ZodEnum<["regular", "special"]>>;
|
|
3578
|
+
status: z.ZodOptional<z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>>;
|
|
3005
3579
|
}, "strip", z.ZodTypeAny, {
|
|
3006
3580
|
branchId: string;
|
|
3581
|
+
status?: "cancelled" | "scheduled" | "in_progress" | "completed" | undefined;
|
|
3007
3582
|
date?: string | undefined;
|
|
3008
3583
|
vehicleId?: string | undefined;
|
|
3584
|
+
tripCategory?: "regular" | "special" | undefined;
|
|
3009
3585
|
}, {
|
|
3010
3586
|
branchId: string;
|
|
3587
|
+
status?: "cancelled" | "scheduled" | "in_progress" | "completed" | undefined;
|
|
3011
3588
|
date?: string | undefined;
|
|
3012
3589
|
vehicleId?: string | undefined;
|
|
3590
|
+
tripCategory?: "regular" | "special" | undefined;
|
|
3013
3591
|
}>, z.ZodArray<z.ZodObject<{
|
|
3014
3592
|
id: z.ZodString;
|
|
3015
3593
|
branchId: z.ZodString;
|
|
@@ -3018,7 +3596,14 @@ declare const transportContract: {
|
|
|
3018
3596
|
driverUserId: z.ZodString;
|
|
3019
3597
|
departureTime: z.ZodString;
|
|
3020
3598
|
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
3021
|
-
|
|
3599
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
3600
|
+
tripType: z.ZodString;
|
|
3601
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
3602
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
3603
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3604
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3605
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
3606
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
3022
3607
|
notes: z.ZodNullable<z.ZodString>;
|
|
3023
3608
|
createdAt: z.ZodString;
|
|
3024
3609
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
@@ -3039,16 +3624,23 @@ declare const transportContract: {
|
|
|
3039
3624
|
name: string;
|
|
3040
3625
|
}>>>;
|
|
3041
3626
|
}, "strip", z.ZodTypeAny, {
|
|
3627
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3042
3628
|
id: string;
|
|
3043
3629
|
branchId: string;
|
|
3044
3630
|
createdAt: string;
|
|
3045
3631
|
vehicleId: string;
|
|
3046
3632
|
routeId: string | null;
|
|
3047
3633
|
departureTime: string;
|
|
3048
|
-
tripType:
|
|
3634
|
+
tripType: string;
|
|
3049
3635
|
driverUserId: string;
|
|
3050
|
-
arrivalTime: string | null;
|
|
3051
3636
|
notes: string | null;
|
|
3637
|
+
description: string | null;
|
|
3638
|
+
returnTime: string | null;
|
|
3639
|
+
arrivalTime: string | null;
|
|
3640
|
+
tripCategory: "regular" | "special";
|
|
3641
|
+
title: string | null;
|
|
3642
|
+
destination: string | null;
|
|
3643
|
+
expectedStudents: number | null;
|
|
3052
3644
|
vehicle?: {
|
|
3053
3645
|
type: string;
|
|
3054
3646
|
plateNo: string;
|
|
@@ -3057,16 +3649,23 @@ declare const transportContract: {
|
|
|
3057
3649
|
name: string;
|
|
3058
3650
|
} | null | undefined;
|
|
3059
3651
|
}, {
|
|
3652
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3060
3653
|
id: string;
|
|
3061
3654
|
branchId: string;
|
|
3062
3655
|
createdAt: string;
|
|
3063
3656
|
vehicleId: string;
|
|
3064
3657
|
routeId: string | null;
|
|
3065
3658
|
departureTime: string;
|
|
3066
|
-
tripType:
|
|
3659
|
+
tripType: string;
|
|
3067
3660
|
driverUserId: string;
|
|
3068
|
-
arrivalTime: string | null;
|
|
3069
3661
|
notes: string | null;
|
|
3662
|
+
description: string | null;
|
|
3663
|
+
returnTime: string | null;
|
|
3664
|
+
arrivalTime: string | null;
|
|
3665
|
+
tripCategory: "regular" | "special";
|
|
3666
|
+
title: string | null;
|
|
3667
|
+
destination: string | null;
|
|
3668
|
+
expectedStudents: number | null;
|
|
3070
3669
|
vehicle?: {
|
|
3071
3670
|
type: string;
|
|
3072
3671
|
plateNo: string;
|
|
@@ -3089,7 +3688,14 @@ declare const transportContract: {
|
|
|
3089
3688
|
driverUserId: z.ZodString;
|
|
3090
3689
|
departureTime: z.ZodString;
|
|
3091
3690
|
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
3092
|
-
|
|
3691
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
3692
|
+
tripType: z.ZodString;
|
|
3693
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
3694
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
3695
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3696
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3697
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
3698
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
3093
3699
|
notes: z.ZodNullable<z.ZodString>;
|
|
3094
3700
|
createdAt: z.ZodString;
|
|
3095
3701
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
@@ -3127,16 +3733,23 @@ declare const transportContract: {
|
|
|
3127
3733
|
recordedAt: string;
|
|
3128
3734
|
}>, "many">;
|
|
3129
3735
|
}, "strip", z.ZodTypeAny, {
|
|
3736
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3130
3737
|
id: string;
|
|
3131
3738
|
branchId: string;
|
|
3132
3739
|
createdAt: string;
|
|
3133
3740
|
vehicleId: string;
|
|
3134
3741
|
routeId: string | null;
|
|
3135
3742
|
departureTime: string;
|
|
3136
|
-
tripType:
|
|
3743
|
+
tripType: string;
|
|
3137
3744
|
driverUserId: string;
|
|
3138
|
-
arrivalTime: string | null;
|
|
3139
3745
|
notes: string | null;
|
|
3746
|
+
description: string | null;
|
|
3747
|
+
returnTime: string | null;
|
|
3748
|
+
arrivalTime: string | null;
|
|
3749
|
+
tripCategory: "regular" | "special";
|
|
3750
|
+
title: string | null;
|
|
3751
|
+
destination: string | null;
|
|
3752
|
+
expectedStudents: number | null;
|
|
3140
3753
|
boardings: {
|
|
3141
3754
|
status: "boarded" | "alighted" | "absent";
|
|
3142
3755
|
studentId: string;
|
|
@@ -3151,16 +3764,23 @@ declare const transportContract: {
|
|
|
3151
3764
|
name: string;
|
|
3152
3765
|
} | null | undefined;
|
|
3153
3766
|
}, {
|
|
3767
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3154
3768
|
id: string;
|
|
3155
3769
|
branchId: string;
|
|
3156
3770
|
createdAt: string;
|
|
3157
3771
|
vehicleId: string;
|
|
3158
3772
|
routeId: string | null;
|
|
3159
3773
|
departureTime: string;
|
|
3160
|
-
tripType:
|
|
3774
|
+
tripType: string;
|
|
3161
3775
|
driverUserId: string;
|
|
3162
|
-
arrivalTime: string | null;
|
|
3163
3776
|
notes: string | null;
|
|
3777
|
+
description: string | null;
|
|
3778
|
+
returnTime: string | null;
|
|
3779
|
+
arrivalTime: string | null;
|
|
3780
|
+
tripCategory: "regular" | "special";
|
|
3781
|
+
title: string | null;
|
|
3782
|
+
destination: string | null;
|
|
3783
|
+
expectedStudents: number | null;
|
|
3164
3784
|
boardings: {
|
|
3165
3785
|
status: "boarded" | "alighted" | "absent";
|
|
3166
3786
|
studentId: string;
|
|
@@ -3175,21 +3795,45 @@ declare const transportContract: {
|
|
|
3175
3795
|
name: string;
|
|
3176
3796
|
} | null | undefined;
|
|
3177
3797
|
}>, Record<never, never>, Record<never, never>>;
|
|
3178
|
-
|
|
3798
|
+
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3799
|
+
branchId: z.ZodString;
|
|
3179
3800
|
vehicleId: z.ZodString;
|
|
3180
|
-
routeId: z.ZodString
|
|
3801
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
3802
|
+
tripType: z.ZodString;
|
|
3803
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
3181
3804
|
departureTime: z.ZodString;
|
|
3182
|
-
|
|
3805
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
3806
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3807
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3808
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
3809
|
+
expectedStudents: z.ZodOptional<z.ZodNumber>;
|
|
3810
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
3183
3811
|
}, "strip", z.ZodTypeAny, {
|
|
3812
|
+
branchId: string;
|
|
3184
3813
|
vehicleId: string;
|
|
3185
|
-
routeId: string;
|
|
3186
3814
|
departureTime: string;
|
|
3187
|
-
tripType:
|
|
3815
|
+
tripType: string;
|
|
3816
|
+
tripCategory: "regular" | "special";
|
|
3817
|
+
routeId?: string | undefined;
|
|
3818
|
+
notes?: string | undefined;
|
|
3819
|
+
description?: string | undefined;
|
|
3820
|
+
returnTime?: string | undefined;
|
|
3821
|
+
title?: string | undefined;
|
|
3822
|
+
destination?: string | undefined;
|
|
3823
|
+
expectedStudents?: number | undefined;
|
|
3188
3824
|
}, {
|
|
3825
|
+
branchId: string;
|
|
3189
3826
|
vehicleId: string;
|
|
3190
|
-
routeId: string;
|
|
3191
3827
|
departureTime: string;
|
|
3192
|
-
tripType:
|
|
3828
|
+
tripType: string;
|
|
3829
|
+
tripCategory: "regular" | "special";
|
|
3830
|
+
routeId?: string | undefined;
|
|
3831
|
+
notes?: string | undefined;
|
|
3832
|
+
description?: string | undefined;
|
|
3833
|
+
returnTime?: string | undefined;
|
|
3834
|
+
title?: string | undefined;
|
|
3835
|
+
destination?: string | undefined;
|
|
3836
|
+
expectedStudents?: number | undefined;
|
|
3193
3837
|
}>, z.ZodObject<{
|
|
3194
3838
|
id: z.ZodString;
|
|
3195
3839
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3197,6 +3841,38 @@ declare const transportContract: {
|
|
|
3197
3841
|
}, {
|
|
3198
3842
|
id: string;
|
|
3199
3843
|
}>, Record<never, never>, Record<never, never>>;
|
|
3844
|
+
updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3845
|
+
tripId: z.ZodString;
|
|
3846
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
3847
|
+
}, "strip", z.ZodTypeAny, {
|
|
3848
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3849
|
+
tripId: string;
|
|
3850
|
+
}, {
|
|
3851
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
3852
|
+
tripId: string;
|
|
3853
|
+
}>, z.ZodObject<{
|
|
3854
|
+
success: z.ZodBoolean;
|
|
3855
|
+
}, "strip", z.ZodTypeAny, {
|
|
3856
|
+
success: boolean;
|
|
3857
|
+
}, {
|
|
3858
|
+
success: boolean;
|
|
3859
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3860
|
+
complete: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3861
|
+
tripId: z.ZodString;
|
|
3862
|
+
arrivalTime: z.ZodString;
|
|
3863
|
+
}, "strip", z.ZodTypeAny, {
|
|
3864
|
+
arrivalTime: string;
|
|
3865
|
+
tripId: string;
|
|
3866
|
+
}, {
|
|
3867
|
+
arrivalTime: string;
|
|
3868
|
+
tripId: string;
|
|
3869
|
+
}>, z.ZodObject<{
|
|
3870
|
+
success: z.ZodBoolean;
|
|
3871
|
+
}, "strip", z.ZodTypeAny, {
|
|
3872
|
+
success: boolean;
|
|
3873
|
+
}, {
|
|
3874
|
+
success: boolean;
|
|
3875
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3200
3876
|
recordBoardings: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3201
3877
|
tripId: z.ZodString;
|
|
3202
3878
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3228,22 +3904,6 @@ declare const transportContract: {
|
|
|
3228
3904
|
}, {
|
|
3229
3905
|
saved: number;
|
|
3230
3906
|
}>, Record<never, never>, Record<never, never>>;
|
|
3231
|
-
complete: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3232
|
-
tripId: z.ZodString;
|
|
3233
|
-
arrivalTime: z.ZodString;
|
|
3234
|
-
}, "strip", z.ZodTypeAny, {
|
|
3235
|
-
arrivalTime: string;
|
|
3236
|
-
tripId: string;
|
|
3237
|
-
}, {
|
|
3238
|
-
arrivalTime: string;
|
|
3239
|
-
tripId: string;
|
|
3240
|
-
}>, z.ZodObject<{
|
|
3241
|
-
success: z.ZodBoolean;
|
|
3242
|
-
}, "strip", z.ZodTypeAny, {
|
|
3243
|
-
success: boolean;
|
|
3244
|
-
}, {
|
|
3245
|
-
success: boolean;
|
|
3246
|
-
}>, Record<never, never>, Record<never, never>>;
|
|
3247
3907
|
reportIncident: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3248
3908
|
tripId: z.ZodString;
|
|
3249
3909
|
description: z.ZodString;
|
|
@@ -3251,13 +3911,13 @@ declare const transportContract: {
|
|
|
3251
3911
|
location: z.ZodOptional<z.ZodString>;
|
|
3252
3912
|
}, "strip", z.ZodTypeAny, {
|
|
3253
3913
|
description: string;
|
|
3254
|
-
tripId: string;
|
|
3255
3914
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
3915
|
+
tripId: string;
|
|
3256
3916
|
location?: string | undefined;
|
|
3257
3917
|
}, {
|
|
3258
3918
|
description: string;
|
|
3259
|
-
tripId: string;
|
|
3260
3919
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
3920
|
+
tripId: string;
|
|
3261
3921
|
location?: string | undefined;
|
|
3262
3922
|
}>, z.ZodObject<{
|
|
3263
3923
|
id: z.ZodString;
|
|
@@ -3266,20 +3926,74 @@ declare const transportContract: {
|
|
|
3266
3926
|
}, {
|
|
3267
3927
|
id: string;
|
|
3268
3928
|
}>, Record<never, never>, Record<never, never>>;
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
vehicleId: z.ZodString;
|
|
3273
|
-
issue: z.ZodString;
|
|
3274
|
-
severity: z.ZodEnum<["routine", "urgent", "critical"]>;
|
|
3929
|
+
enrollStudent: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3930
|
+
tripId: z.ZodString;
|
|
3931
|
+
studentId: z.ZodString;
|
|
3275
3932
|
}, "strip", z.ZodTypeAny, {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
issue: string;
|
|
3933
|
+
studentId: string;
|
|
3934
|
+
tripId: string;
|
|
3279
3935
|
}, {
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3936
|
+
studentId: string;
|
|
3937
|
+
tripId: string;
|
|
3938
|
+
}>, z.ZodObject<{
|
|
3939
|
+
success: z.ZodBoolean;
|
|
3940
|
+
}, "strip", z.ZodTypeAny, {
|
|
3941
|
+
success: boolean;
|
|
3942
|
+
}, {
|
|
3943
|
+
success: boolean;
|
|
3944
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3945
|
+
unenrollStudent: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3946
|
+
tripId: z.ZodString;
|
|
3947
|
+
studentId: z.ZodString;
|
|
3948
|
+
}, "strip", z.ZodTypeAny, {
|
|
3949
|
+
studentId: string;
|
|
3950
|
+
tripId: string;
|
|
3951
|
+
}, {
|
|
3952
|
+
studentId: string;
|
|
3953
|
+
tripId: string;
|
|
3954
|
+
}>, z.ZodObject<{
|
|
3955
|
+
success: z.ZodBoolean;
|
|
3956
|
+
}, "strip", z.ZodTypeAny, {
|
|
3957
|
+
success: boolean;
|
|
3958
|
+
}, {
|
|
3959
|
+
success: boolean;
|
|
3960
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3961
|
+
listEnrolled: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3962
|
+
tripId: z.ZodString;
|
|
3963
|
+
}, "strip", z.ZodTypeAny, {
|
|
3964
|
+
tripId: string;
|
|
3965
|
+
}, {
|
|
3966
|
+
tripId: string;
|
|
3967
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
3968
|
+
studentId: z.ZodString;
|
|
3969
|
+
studentName: z.ZodString;
|
|
3970
|
+
admissionNo: z.ZodString;
|
|
3971
|
+
status: z.ZodNullable<z.ZodEnum<["boarded", "alighted", "absent"]>>;
|
|
3972
|
+
}, "strip", z.ZodTypeAny, {
|
|
3973
|
+
status: "boarded" | "alighted" | "absent" | null;
|
|
3974
|
+
admissionNo: string;
|
|
3975
|
+
studentId: string;
|
|
3976
|
+
studentName: string;
|
|
3977
|
+
}, {
|
|
3978
|
+
status: "boarded" | "alighted" | "absent" | null;
|
|
3979
|
+
admissionNo: string;
|
|
3980
|
+
studentId: string;
|
|
3981
|
+
studentName: string;
|
|
3982
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
3983
|
+
};
|
|
3984
|
+
maintenance: {
|
|
3985
|
+
submit: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3986
|
+
vehicleId: z.ZodString;
|
|
3987
|
+
issue: z.ZodString;
|
|
3988
|
+
severity: z.ZodEnum<["routine", "urgent", "critical"]>;
|
|
3989
|
+
}, "strip", z.ZodTypeAny, {
|
|
3990
|
+
vehicleId: string;
|
|
3991
|
+
issue: string;
|
|
3992
|
+
severity: "critical" | "routine" | "urgent";
|
|
3993
|
+
}, {
|
|
3994
|
+
vehicleId: string;
|
|
3995
|
+
issue: string;
|
|
3996
|
+
severity: "critical" | "routine" | "urgent";
|
|
3283
3997
|
}>, z.ZodObject<{
|
|
3284
3998
|
id: z.ZodString;
|
|
3285
3999
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3288,22 +4002,83 @@ declare const transportContract: {
|
|
|
3288
4002
|
id: string;
|
|
3289
4003
|
}>, Record<never, never>, Record<never, never>>;
|
|
3290
4004
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4005
|
+
branchId: z.ZodString;
|
|
4006
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
4007
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "resolved"]>>;
|
|
4008
|
+
}, "strip", z.ZodTypeAny, {
|
|
4009
|
+
branchId: string;
|
|
4010
|
+
status?: "pending" | "approved" | "rejected" | "resolved" | undefined;
|
|
4011
|
+
vehicleId?: string | undefined;
|
|
4012
|
+
}, {
|
|
4013
|
+
branchId: string;
|
|
4014
|
+
status?: "pending" | "approved" | "rejected" | "resolved" | undefined;
|
|
4015
|
+
vehicleId?: string | undefined;
|
|
4016
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4017
|
+
id: z.ZodString;
|
|
3291
4018
|
vehicleId: z.ZodString;
|
|
4019
|
+
requestedBy: z.ZodString;
|
|
4020
|
+
issue: z.ZodString;
|
|
4021
|
+
severity: z.ZodString;
|
|
4022
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
4023
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
4024
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
4025
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
4026
|
+
createdAt: z.ZodString;
|
|
4027
|
+
vehiclePlate: z.ZodOptional<z.ZodString>;
|
|
3292
4028
|
}, "strip", z.ZodTypeAny, {
|
|
4029
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
4030
|
+
id: string;
|
|
4031
|
+
createdAt: string;
|
|
3293
4032
|
vehicleId: string;
|
|
4033
|
+
requestedBy: string;
|
|
4034
|
+
issue: string;
|
|
4035
|
+
severity: string;
|
|
4036
|
+
reviewedBy: string | null;
|
|
4037
|
+
reviewNotes: string | null;
|
|
4038
|
+
reviewedAt: string | null;
|
|
4039
|
+
vehiclePlate?: string | undefined;
|
|
3294
4040
|
}, {
|
|
4041
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
4042
|
+
id: string;
|
|
4043
|
+
createdAt: string;
|
|
3295
4044
|
vehicleId: string;
|
|
3296
|
-
|
|
4045
|
+
requestedBy: string;
|
|
4046
|
+
issue: string;
|
|
4047
|
+
severity: string;
|
|
4048
|
+
reviewedBy: string | null;
|
|
4049
|
+
reviewNotes: string | null;
|
|
4050
|
+
reviewedAt: string | null;
|
|
4051
|
+
vehiclePlate?: string | undefined;
|
|
4052
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4053
|
+
review: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4054
|
+
id: z.ZodString;
|
|
4055
|
+
approved: z.ZodBoolean;
|
|
4056
|
+
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
4057
|
+
}, "strip", z.ZodTypeAny, {
|
|
4058
|
+
id: string;
|
|
4059
|
+
approved: boolean;
|
|
4060
|
+
reviewNotes?: string | undefined;
|
|
4061
|
+
}, {
|
|
4062
|
+
id: string;
|
|
4063
|
+
approved: boolean;
|
|
4064
|
+
reviewNotes?: string | undefined;
|
|
4065
|
+
}>, z.ZodObject<{
|
|
4066
|
+
success: z.ZodBoolean;
|
|
4067
|
+
}, "strip", z.ZodTypeAny, {
|
|
4068
|
+
success: boolean;
|
|
4069
|
+
}, {
|
|
4070
|
+
success: boolean;
|
|
4071
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
3297
4072
|
resolve: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3298
|
-
|
|
4073
|
+
id: z.ZodString;
|
|
3299
4074
|
notes: z.ZodOptional<z.ZodString>;
|
|
3300
4075
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
3301
4076
|
}, "strip", z.ZodTypeAny, {
|
|
3302
|
-
|
|
4077
|
+
id: string;
|
|
3303
4078
|
notes?: string | undefined;
|
|
3304
4079
|
cost?: number | undefined;
|
|
3305
4080
|
}, {
|
|
3306
|
-
|
|
4081
|
+
id: string;
|
|
3307
4082
|
notes?: string | undefined;
|
|
3308
4083
|
cost?: number | undefined;
|
|
3309
4084
|
}>, z.ZodObject<{
|
|
@@ -3314,6 +4089,122 @@ declare const transportContract: {
|
|
|
3314
4089
|
success: boolean;
|
|
3315
4090
|
}>, Record<never, never>, Record<never, never>>;
|
|
3316
4091
|
};
|
|
4092
|
+
applications: {
|
|
4093
|
+
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4094
|
+
branchId: z.ZodString;
|
|
4095
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>>;
|
|
4096
|
+
applicationType: z.ZodOptional<z.ZodEnum<["route", "trip"]>>;
|
|
4097
|
+
}, "strip", z.ZodTypeAny, {
|
|
4098
|
+
branchId: string;
|
|
4099
|
+
status?: "cancelled" | "pending" | "approved" | "rejected" | undefined;
|
|
4100
|
+
applicationType?: "route" | "trip" | undefined;
|
|
4101
|
+
}, {
|
|
4102
|
+
branchId: string;
|
|
4103
|
+
status?: "cancelled" | "pending" | "approved" | "rejected" | undefined;
|
|
4104
|
+
applicationType?: "route" | "trip" | undefined;
|
|
4105
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
4106
|
+
id: z.ZodString;
|
|
4107
|
+
branchId: z.ZodString;
|
|
4108
|
+
studentId: z.ZodString;
|
|
4109
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
4110
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
4111
|
+
tripLogId: z.ZodNullable<z.ZodString>;
|
|
4112
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
4113
|
+
appliedBy: z.ZodString;
|
|
4114
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
4115
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
4116
|
+
feeItemId: z.ZodNullable<z.ZodString>;
|
|
4117
|
+
invoiceUpdated: z.ZodBoolean;
|
|
4118
|
+
createdAt: z.ZodString;
|
|
4119
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
4120
|
+
routeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4121
|
+
tripTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4122
|
+
}, "strip", z.ZodTypeAny, {
|
|
4123
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
4124
|
+
id: string;
|
|
4125
|
+
branchId: string;
|
|
4126
|
+
createdAt: string;
|
|
4127
|
+
studentId: string;
|
|
4128
|
+
routeId: string | null;
|
|
4129
|
+
reviewedBy: string | null;
|
|
4130
|
+
reviewNotes: string | null;
|
|
4131
|
+
applicationType: "route" | "trip";
|
|
4132
|
+
tripLogId: string | null;
|
|
4133
|
+
appliedBy: string;
|
|
4134
|
+
feeItemId: string | null;
|
|
4135
|
+
invoiceUpdated: boolean;
|
|
4136
|
+
studentName?: string | undefined;
|
|
4137
|
+
routeName?: string | null | undefined;
|
|
4138
|
+
tripTitle?: string | null | undefined;
|
|
4139
|
+
}, {
|
|
4140
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
4141
|
+
id: string;
|
|
4142
|
+
branchId: string;
|
|
4143
|
+
createdAt: string;
|
|
4144
|
+
studentId: string;
|
|
4145
|
+
routeId: string | null;
|
|
4146
|
+
reviewedBy: string | null;
|
|
4147
|
+
reviewNotes: string | null;
|
|
4148
|
+
applicationType: "route" | "trip";
|
|
4149
|
+
tripLogId: string | null;
|
|
4150
|
+
appliedBy: string;
|
|
4151
|
+
feeItemId: string | null;
|
|
4152
|
+
invoiceUpdated: boolean;
|
|
4153
|
+
studentName?: string | undefined;
|
|
4154
|
+
routeName?: string | null | undefined;
|
|
4155
|
+
tripTitle?: string | null | undefined;
|
|
4156
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
4157
|
+
apply: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4158
|
+
branchId: z.ZodString;
|
|
4159
|
+
studentId: z.ZodString;
|
|
4160
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
4161
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
4162
|
+
tripLogId: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
feeItemId: z.ZodOptional<z.ZodString>;
|
|
4164
|
+
}, "strip", z.ZodTypeAny, {
|
|
4165
|
+
branchId: string;
|
|
4166
|
+
studentId: string;
|
|
4167
|
+
applicationType: "route" | "trip";
|
|
4168
|
+
routeId?: string | undefined;
|
|
4169
|
+
tripLogId?: string | undefined;
|
|
4170
|
+
feeItemId?: string | undefined;
|
|
4171
|
+
}, {
|
|
4172
|
+
branchId: string;
|
|
4173
|
+
studentId: string;
|
|
4174
|
+
applicationType: "route" | "trip";
|
|
4175
|
+
routeId?: string | undefined;
|
|
4176
|
+
tripLogId?: string | undefined;
|
|
4177
|
+
feeItemId?: string | undefined;
|
|
4178
|
+
}>, z.ZodObject<{
|
|
4179
|
+
id: z.ZodString;
|
|
4180
|
+
}, "strip", z.ZodTypeAny, {
|
|
4181
|
+
id: string;
|
|
4182
|
+
}, {
|
|
4183
|
+
id: string;
|
|
4184
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
4185
|
+
review: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4186
|
+
id: z.ZodString;
|
|
4187
|
+
approved: z.ZodBoolean;
|
|
4188
|
+
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
4189
|
+
updateInvoice: z.ZodOptional<z.ZodBoolean>;
|
|
4190
|
+
}, "strip", z.ZodTypeAny, {
|
|
4191
|
+
id: string;
|
|
4192
|
+
approved: boolean;
|
|
4193
|
+
reviewNotes?: string | undefined;
|
|
4194
|
+
updateInvoice?: boolean | undefined;
|
|
4195
|
+
}, {
|
|
4196
|
+
id: string;
|
|
4197
|
+
approved: boolean;
|
|
4198
|
+
reviewNotes?: string | undefined;
|
|
4199
|
+
updateInvoice?: boolean | undefined;
|
|
4200
|
+
}>, z.ZodObject<{
|
|
4201
|
+
success: z.ZodBoolean;
|
|
4202
|
+
}, "strip", z.ZodTypeAny, {
|
|
4203
|
+
success: boolean;
|
|
4204
|
+
}, {
|
|
4205
|
+
success: boolean;
|
|
4206
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
4207
|
+
};
|
|
3317
4208
|
};
|
|
3318
4209
|
declare const assetsContract: {
|
|
3319
4210
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -3427,12 +4318,12 @@ declare const assetsContract: {
|
|
|
3427
4318
|
notes: z.ZodOptional<z.ZodString>;
|
|
3428
4319
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
3429
4320
|
}, "strip", z.ZodTypeAny, {
|
|
3430
|
-
status: "
|
|
4321
|
+
status: "in_progress" | "resolved" | "open" | "closed";
|
|
3431
4322
|
ticketId: string;
|
|
3432
4323
|
notes?: string | undefined;
|
|
3433
4324
|
cost?: number | undefined;
|
|
3434
4325
|
}, {
|
|
3435
|
-
status: "
|
|
4326
|
+
status: "in_progress" | "resolved" | "open" | "closed";
|
|
3436
4327
|
ticketId: string;
|
|
3437
4328
|
notes?: string | undefined;
|
|
3438
4329
|
cost?: number | undefined;
|
|
@@ -3600,13 +4491,13 @@ declare const disciplineContract: {
|
|
|
3600
4491
|
page: number;
|
|
3601
4492
|
limit: number;
|
|
3602
4493
|
branchId: string;
|
|
3603
|
-
status?: "hod_review" | "
|
|
4494
|
+
status?: "hod_review" | "resolved" | "open" | "counsellor_review" | "principal_ruling" | undefined;
|
|
3604
4495
|
studentId?: string | undefined;
|
|
3605
4496
|
}, {
|
|
3606
4497
|
branchId: string;
|
|
3607
4498
|
page?: number | undefined;
|
|
3608
4499
|
limit?: number | undefined;
|
|
3609
|
-
status?: "hod_review" | "
|
|
4500
|
+
status?: "hod_review" | "resolved" | "open" | "counsellor_review" | "principal_ruling" | undefined;
|
|
3610
4501
|
studentId?: string | undefined;
|
|
3611
4502
|
}>, z.ZodObject<{
|
|
3612
4503
|
data: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -5535,15 +6426,15 @@ declare const appContract: {
|
|
|
5535
6426
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
5536
6427
|
date: string;
|
|
5537
6428
|
id: string;
|
|
5538
|
-
subjectId: string;
|
|
5539
6429
|
title: string;
|
|
6430
|
+
subjectId: string;
|
|
5540
6431
|
maxScore: number;
|
|
5541
6432
|
}, {
|
|
5542
6433
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
5543
6434
|
date: string;
|
|
5544
6435
|
id: string;
|
|
5545
|
-
subjectId: string;
|
|
5546
6436
|
title: string;
|
|
6437
|
+
subjectId: string;
|
|
5547
6438
|
maxScore: number;
|
|
5548
6439
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
5549
6440
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -5559,16 +6450,16 @@ declare const appContract: {
|
|
|
5559
6450
|
date: string;
|
|
5560
6451
|
classId: string;
|
|
5561
6452
|
termId: string;
|
|
5562
|
-
subjectId: string;
|
|
5563
6453
|
title: string;
|
|
6454
|
+
subjectId: string;
|
|
5564
6455
|
maxScore: number;
|
|
5565
6456
|
}, {
|
|
5566
6457
|
type: "formative" | "summative" | "knec_national" | "informal";
|
|
5567
6458
|
date: string;
|
|
5568
6459
|
classId: string;
|
|
5569
6460
|
termId: string;
|
|
5570
|
-
subjectId: string;
|
|
5571
6461
|
title: string;
|
|
6462
|
+
subjectId: string;
|
|
5572
6463
|
maxScore: number;
|
|
5573
6464
|
}>, z.ZodObject<{
|
|
5574
6465
|
id: z.ZodString;
|
|
@@ -6645,15 +7536,16 @@ declare const appContract: {
|
|
|
6645
7536
|
make: z.ZodNullable<z.ZodString>;
|
|
6646
7537
|
model: z.ZodNullable<z.ZodString>;
|
|
6647
7538
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
6648
|
-
type: z.
|
|
7539
|
+
type: z.ZodString;
|
|
6649
7540
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
6650
7541
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
6651
7542
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
6652
7543
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
6653
7544
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
7545
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6654
7546
|
createdAt: z.ZodString;
|
|
6655
7547
|
}, "strip", z.ZodTypeAny, {
|
|
6656
|
-
type:
|
|
7548
|
+
type: string;
|
|
6657
7549
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6658
7550
|
id: string;
|
|
6659
7551
|
branchId: string;
|
|
@@ -6666,8 +7558,9 @@ declare const appContract: {
|
|
|
6666
7558
|
insuranceExpiry: string | null;
|
|
6667
7559
|
inspectionDate: string | null;
|
|
6668
7560
|
driverUserId: string | null;
|
|
7561
|
+
notes: string | null;
|
|
6669
7562
|
}, {
|
|
6670
|
-
type:
|
|
7563
|
+
type: string;
|
|
6671
7564
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6672
7565
|
id: string;
|
|
6673
7566
|
branchId: string;
|
|
@@ -6680,11 +7573,12 @@ declare const appContract: {
|
|
|
6680
7573
|
insuranceExpiry: string | null;
|
|
6681
7574
|
inspectionDate: string | null;
|
|
6682
7575
|
driverUserId: string | null;
|
|
7576
|
+
notes: string | null;
|
|
6683
7577
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
6684
7578
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6685
7579
|
branchId: z.ZodString;
|
|
6686
7580
|
plateNo: z.ZodString;
|
|
6687
|
-
type: z.
|
|
7581
|
+
type: z.ZodString;
|
|
6688
7582
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
6689
7583
|
make: z.ZodOptional<z.ZodString>;
|
|
6690
7584
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -6692,8 +7586,9 @@ declare const appContract: {
|
|
|
6692
7586
|
insuranceExpiry: z.ZodOptional<z.ZodString>;
|
|
6693
7587
|
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
6694
7588
|
driverUserId: z.ZodOptional<z.ZodString>;
|
|
7589
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
6695
7590
|
}, "strip", z.ZodTypeAny, {
|
|
6696
|
-
type:
|
|
7591
|
+
type: string;
|
|
6697
7592
|
branchId: string;
|
|
6698
7593
|
plateNo: string;
|
|
6699
7594
|
ownershipType: "owned" | "contracted";
|
|
@@ -6703,8 +7598,9 @@ declare const appContract: {
|
|
|
6703
7598
|
insuranceExpiry?: string | undefined;
|
|
6704
7599
|
inspectionDate?: string | undefined;
|
|
6705
7600
|
driverUserId?: string | undefined;
|
|
7601
|
+
notes?: string | undefined;
|
|
6706
7602
|
}, {
|
|
6707
|
-
type:
|
|
7603
|
+
type: string;
|
|
6708
7604
|
branchId: string;
|
|
6709
7605
|
plateNo: string;
|
|
6710
7606
|
ownershipType: "owned" | "contracted";
|
|
@@ -6714,6 +7610,7 @@ declare const appContract: {
|
|
|
6714
7610
|
insuranceExpiry?: string | undefined;
|
|
6715
7611
|
inspectionDate?: string | undefined;
|
|
6716
7612
|
driverUserId?: string | undefined;
|
|
7613
|
+
notes?: string | undefined;
|
|
6717
7614
|
}>, z.ZodObject<{
|
|
6718
7615
|
id: z.ZodString;
|
|
6719
7616
|
branchId: z.ZodString;
|
|
@@ -6721,15 +7618,16 @@ declare const appContract: {
|
|
|
6721
7618
|
make: z.ZodNullable<z.ZodString>;
|
|
6722
7619
|
model: z.ZodNullable<z.ZodString>;
|
|
6723
7620
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
6724
|
-
type: z.
|
|
7621
|
+
type: z.ZodString;
|
|
6725
7622
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
6726
7623
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
6727
7624
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
6728
7625
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
6729
7626
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
7627
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6730
7628
|
createdAt: z.ZodString;
|
|
6731
7629
|
}, "strip", z.ZodTypeAny, {
|
|
6732
|
-
type:
|
|
7630
|
+
type: string;
|
|
6733
7631
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6734
7632
|
id: string;
|
|
6735
7633
|
branchId: string;
|
|
@@ -6742,8 +7640,9 @@ declare const appContract: {
|
|
|
6742
7640
|
insuranceExpiry: string | null;
|
|
6743
7641
|
inspectionDate: string | null;
|
|
6744
7642
|
driverUserId: string | null;
|
|
7643
|
+
notes: string | null;
|
|
6745
7644
|
}, {
|
|
6746
|
-
type:
|
|
7645
|
+
type: string;
|
|
6747
7646
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6748
7647
|
id: string;
|
|
6749
7648
|
branchId: string;
|
|
@@ -6756,16 +7655,44 @@ declare const appContract: {
|
|
|
6756
7655
|
insuranceExpiry: string | null;
|
|
6757
7656
|
inspectionDate: string | null;
|
|
6758
7657
|
driverUserId: string | null;
|
|
7658
|
+
notes: string | null;
|
|
6759
7659
|
}>, Record<never, never>, Record<never, never>>;
|
|
6760
|
-
|
|
7660
|
+
update: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6761
7661
|
id: z.ZodString;
|
|
6762
|
-
|
|
7662
|
+
plateNo: z.ZodOptional<z.ZodString>;
|
|
7663
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7664
|
+
ownershipType: z.ZodOptional<z.ZodEnum<["owned", "contracted"]>>;
|
|
7665
|
+
make: z.ZodOptional<z.ZodString>;
|
|
7666
|
+
model: z.ZodOptional<z.ZodString>;
|
|
7667
|
+
capacity: z.ZodOptional<z.ZodNumber>;
|
|
7668
|
+
insuranceExpiry: z.ZodOptional<z.ZodString>;
|
|
7669
|
+
inspectionDate: z.ZodOptional<z.ZodString>;
|
|
7670
|
+
driverUserId: z.ZodOptional<z.ZodString>;
|
|
7671
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
6763
7672
|
}, "strip", z.ZodTypeAny, {
|
|
6764
|
-
status: "active" | "in_maintenance" | "decommissioned";
|
|
6765
7673
|
id: string;
|
|
7674
|
+
type?: string | undefined;
|
|
7675
|
+
plateNo?: string | undefined;
|
|
7676
|
+
make?: string | undefined;
|
|
7677
|
+
model?: string | undefined;
|
|
7678
|
+
capacity?: number | undefined;
|
|
7679
|
+
ownershipType?: "owned" | "contracted" | undefined;
|
|
7680
|
+
insuranceExpiry?: string | undefined;
|
|
7681
|
+
inspectionDate?: string | undefined;
|
|
7682
|
+
driverUserId?: string | undefined;
|
|
7683
|
+
notes?: string | undefined;
|
|
6766
7684
|
}, {
|
|
6767
|
-
status: "active" | "in_maintenance" | "decommissioned";
|
|
6768
7685
|
id: string;
|
|
7686
|
+
type?: string | undefined;
|
|
7687
|
+
plateNo?: string | undefined;
|
|
7688
|
+
make?: string | undefined;
|
|
7689
|
+
model?: string | undefined;
|
|
7690
|
+
capacity?: number | undefined;
|
|
7691
|
+
ownershipType?: "owned" | "contracted" | undefined;
|
|
7692
|
+
insuranceExpiry?: string | undefined;
|
|
7693
|
+
inspectionDate?: string | undefined;
|
|
7694
|
+
driverUserId?: string | undefined;
|
|
7695
|
+
notes?: string | undefined;
|
|
6769
7696
|
}>, z.ZodObject<{
|
|
6770
7697
|
id: z.ZodString;
|
|
6771
7698
|
branchId: z.ZodString;
|
|
@@ -6773,15 +7700,16 @@ declare const appContract: {
|
|
|
6773
7700
|
make: z.ZodNullable<z.ZodString>;
|
|
6774
7701
|
model: z.ZodNullable<z.ZodString>;
|
|
6775
7702
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
6776
|
-
type: z.
|
|
7703
|
+
type: z.ZodString;
|
|
6777
7704
|
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
6778
7705
|
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
6779
7706
|
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
6780
7707
|
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
6781
7708
|
driverUserId: z.ZodNullable<z.ZodString>;
|
|
7709
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6782
7710
|
createdAt: z.ZodString;
|
|
6783
7711
|
}, "strip", z.ZodTypeAny, {
|
|
6784
|
-
type:
|
|
7712
|
+
type: string;
|
|
6785
7713
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6786
7714
|
id: string;
|
|
6787
7715
|
branchId: string;
|
|
@@ -6794,8 +7722,9 @@ declare const appContract: {
|
|
|
6794
7722
|
insuranceExpiry: string | null;
|
|
6795
7723
|
inspectionDate: string | null;
|
|
6796
7724
|
driverUserId: string | null;
|
|
7725
|
+
notes: string | null;
|
|
6797
7726
|
}, {
|
|
6798
|
-
type:
|
|
7727
|
+
type: string;
|
|
6799
7728
|
status: "active" | "in_maintenance" | "decommissioned";
|
|
6800
7729
|
id: string;
|
|
6801
7730
|
branchId: string;
|
|
@@ -6808,66 +7737,312 @@ declare const appContract: {
|
|
|
6808
7737
|
insuranceExpiry: string | null;
|
|
6809
7738
|
inspectionDate: string | null;
|
|
6810
7739
|
driverUserId: string | null;
|
|
7740
|
+
notes: string | null;
|
|
6811
7741
|
}>, Record<never, never>, Record<never, never>>;
|
|
6812
|
-
|
|
6813
|
-
routes: {
|
|
6814
|
-
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6815
|
-
branchId: z.ZodString;
|
|
6816
|
-
}, "strip", z.ZodTypeAny, {
|
|
6817
|
-
branchId: string;
|
|
6818
|
-
}, {
|
|
6819
|
-
branchId: string;
|
|
6820
|
-
}>, z.ZodArray<z.ZodObject<{
|
|
7742
|
+
updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6821
7743
|
id: z.ZodString;
|
|
6822
|
-
|
|
6823
|
-
name: z.ZodString;
|
|
6824
|
-
description: z.ZodNullable<z.ZodString>;
|
|
6825
|
-
isActive: z.ZodBoolean;
|
|
6826
|
-
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6827
|
-
id: z.ZodString;
|
|
6828
|
-
stopName: z.ZodString;
|
|
6829
|
-
stopOrder: z.ZodNumber;
|
|
6830
|
-
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
6831
|
-
}, "strip", z.ZodTypeAny, {
|
|
6832
|
-
id: string;
|
|
6833
|
-
stopName: string;
|
|
6834
|
-
stopOrder: number;
|
|
6835
|
-
estimatedTime: string | null;
|
|
6836
|
-
}, {
|
|
6837
|
-
id: string;
|
|
6838
|
-
stopName: string;
|
|
6839
|
-
stopOrder: number;
|
|
6840
|
-
estimatedTime: string | null;
|
|
6841
|
-
}>, "many">>;
|
|
7744
|
+
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
6842
7745
|
}, "strip", z.ZodTypeAny, {
|
|
7746
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
6843
7747
|
id: string;
|
|
6844
|
-
name: string;
|
|
6845
|
-
branchId: string;
|
|
6846
|
-
isActive: boolean;
|
|
6847
|
-
description: string | null;
|
|
6848
|
-
stops?: {
|
|
6849
|
-
id: string;
|
|
6850
|
-
stopName: string;
|
|
6851
|
-
stopOrder: number;
|
|
6852
|
-
estimatedTime: string | null;
|
|
6853
|
-
}[] | undefined;
|
|
6854
7748
|
}, {
|
|
7749
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
6855
7750
|
id: string;
|
|
6856
|
-
|
|
7751
|
+
}>, z.ZodObject<{
|
|
7752
|
+
id: z.ZodString;
|
|
7753
|
+
branchId: z.ZodString;
|
|
7754
|
+
plateNo: z.ZodString;
|
|
7755
|
+
make: z.ZodNullable<z.ZodString>;
|
|
7756
|
+
model: z.ZodNullable<z.ZodString>;
|
|
7757
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
7758
|
+
type: z.ZodString;
|
|
7759
|
+
ownershipType: z.ZodEnum<["owned", "contracted"]>;
|
|
7760
|
+
insuranceExpiry: z.ZodNullable<z.ZodString>;
|
|
7761
|
+
inspectionDate: z.ZodNullable<z.ZodString>;
|
|
7762
|
+
status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
|
|
7763
|
+
driverUserId: z.ZodNullable<z.ZodString>;
|
|
7764
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
7765
|
+
createdAt: z.ZodString;
|
|
7766
|
+
}, "strip", z.ZodTypeAny, {
|
|
7767
|
+
type: string;
|
|
7768
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
7769
|
+
id: string;
|
|
7770
|
+
branchId: string;
|
|
7771
|
+
createdAt: string;
|
|
7772
|
+
plateNo: string;
|
|
7773
|
+
make: string | null;
|
|
7774
|
+
model: string | null;
|
|
7775
|
+
capacity: number | null;
|
|
7776
|
+
ownershipType: "owned" | "contracted";
|
|
7777
|
+
insuranceExpiry: string | null;
|
|
7778
|
+
inspectionDate: string | null;
|
|
7779
|
+
driverUserId: string | null;
|
|
7780
|
+
notes: string | null;
|
|
7781
|
+
}, {
|
|
7782
|
+
type: string;
|
|
7783
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
7784
|
+
id: string;
|
|
7785
|
+
branchId: string;
|
|
7786
|
+
createdAt: string;
|
|
7787
|
+
plateNo: string;
|
|
7788
|
+
make: string | null;
|
|
7789
|
+
model: string | null;
|
|
7790
|
+
capacity: number | null;
|
|
7791
|
+
ownershipType: "owned" | "contracted";
|
|
7792
|
+
insuranceExpiry: string | null;
|
|
7793
|
+
inspectionDate: string | null;
|
|
7794
|
+
driverUserId: string | null;
|
|
7795
|
+
notes: string | null;
|
|
7796
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
7797
|
+
};
|
|
7798
|
+
routes: {
|
|
7799
|
+
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7800
|
+
branchId: z.ZodString;
|
|
7801
|
+
}, "strip", z.ZodTypeAny, {
|
|
7802
|
+
branchId: string;
|
|
7803
|
+
}, {
|
|
7804
|
+
branchId: string;
|
|
7805
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
7806
|
+
id: z.ZodString;
|
|
7807
|
+
branchId: z.ZodString;
|
|
7808
|
+
name: z.ZodString;
|
|
7809
|
+
description: z.ZodNullable<z.ZodString>;
|
|
7810
|
+
isActive: z.ZodBoolean;
|
|
7811
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
7812
|
+
routeCategory: z.ZodString;
|
|
7813
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
7814
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
7815
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
7816
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7817
|
+
plateNo: z.ZodString;
|
|
7818
|
+
type: z.ZodString;
|
|
7819
|
+
}, "strip", z.ZodTypeAny, {
|
|
7820
|
+
type: string;
|
|
7821
|
+
plateNo: string;
|
|
7822
|
+
}, {
|
|
7823
|
+
type: string;
|
|
7824
|
+
plateNo: string;
|
|
7825
|
+
}>>>;
|
|
7826
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7827
|
+
id: z.ZodString;
|
|
7828
|
+
stopName: z.ZodString;
|
|
7829
|
+
stopOrder: z.ZodNumber;
|
|
7830
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
7831
|
+
}, "strip", z.ZodTypeAny, {
|
|
7832
|
+
id: string;
|
|
7833
|
+
stopName: string;
|
|
7834
|
+
stopOrder: number;
|
|
7835
|
+
estimatedTime: string | null;
|
|
7836
|
+
}, {
|
|
7837
|
+
id: string;
|
|
7838
|
+
stopName: string;
|
|
7839
|
+
stopOrder: number;
|
|
7840
|
+
estimatedTime: string | null;
|
|
7841
|
+
}>, "many">>;
|
|
7842
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7843
|
+
studentId: z.ZodString;
|
|
7844
|
+
studentName: z.ZodString;
|
|
7845
|
+
admissionNo: z.ZodString;
|
|
7846
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
7847
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
7848
|
+
}, "strip", z.ZodTypeAny, {
|
|
7849
|
+
admissionNo: string;
|
|
7850
|
+
studentId: string;
|
|
7851
|
+
studentName: string;
|
|
7852
|
+
pickupStop: string | null;
|
|
7853
|
+
dropoffStop: string | null;
|
|
7854
|
+
}, {
|
|
7855
|
+
admissionNo: string;
|
|
7856
|
+
studentId: string;
|
|
7857
|
+
studentName: string;
|
|
7858
|
+
pickupStop: string | null;
|
|
7859
|
+
dropoffStop: string | null;
|
|
7860
|
+
}>, "many">>;
|
|
7861
|
+
}, "strip", z.ZodTypeAny, {
|
|
7862
|
+
id: string;
|
|
7863
|
+
name: string;
|
|
6857
7864
|
branchId: string;
|
|
6858
7865
|
isActive: boolean;
|
|
7866
|
+
vehicleId: string | null;
|
|
7867
|
+
departureTime: string | null;
|
|
6859
7868
|
description: string | null;
|
|
7869
|
+
routeCategory: string;
|
|
7870
|
+
returnTime: string | null;
|
|
7871
|
+
fare: number | null;
|
|
7872
|
+
vehicle?: {
|
|
7873
|
+
type: string;
|
|
7874
|
+
plateNo: string;
|
|
7875
|
+
} | null | undefined;
|
|
6860
7876
|
stops?: {
|
|
6861
7877
|
id: string;
|
|
6862
7878
|
stopName: string;
|
|
6863
7879
|
stopOrder: number;
|
|
6864
7880
|
estimatedTime: string | null;
|
|
6865
7881
|
}[] | undefined;
|
|
7882
|
+
roster?: {
|
|
7883
|
+
admissionNo: string;
|
|
7884
|
+
studentId: string;
|
|
7885
|
+
studentName: string;
|
|
7886
|
+
pickupStop: string | null;
|
|
7887
|
+
dropoffStop: string | null;
|
|
7888
|
+
}[] | undefined;
|
|
7889
|
+
}, {
|
|
7890
|
+
id: string;
|
|
7891
|
+
name: string;
|
|
7892
|
+
branchId: string;
|
|
7893
|
+
isActive: boolean;
|
|
7894
|
+
vehicleId: string | null;
|
|
7895
|
+
departureTime: string | null;
|
|
7896
|
+
description: string | null;
|
|
7897
|
+
routeCategory: string;
|
|
7898
|
+
returnTime: string | null;
|
|
7899
|
+
fare: number | null;
|
|
7900
|
+
vehicle?: {
|
|
7901
|
+
type: string;
|
|
7902
|
+
plateNo: string;
|
|
7903
|
+
} | null | undefined;
|
|
7904
|
+
stops?: {
|
|
7905
|
+
id: string;
|
|
7906
|
+
stopName: string;
|
|
7907
|
+
stopOrder: number;
|
|
7908
|
+
estimatedTime: string | null;
|
|
7909
|
+
}[] | undefined;
|
|
7910
|
+
roster?: {
|
|
7911
|
+
admissionNo: string;
|
|
7912
|
+
studentId: string;
|
|
7913
|
+
studentName: string;
|
|
7914
|
+
pickupStop: string | null;
|
|
7915
|
+
dropoffStop: string | null;
|
|
7916
|
+
}[] | undefined;
|
|
6866
7917
|
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
7918
|
+
get: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7919
|
+
routeId: z.ZodString;
|
|
7920
|
+
}, "strip", z.ZodTypeAny, {
|
|
7921
|
+
routeId: string;
|
|
7922
|
+
}, {
|
|
7923
|
+
routeId: string;
|
|
7924
|
+
}>, z.ZodObject<{
|
|
7925
|
+
id: z.ZodString;
|
|
7926
|
+
branchId: z.ZodString;
|
|
7927
|
+
name: z.ZodString;
|
|
7928
|
+
description: z.ZodNullable<z.ZodString>;
|
|
7929
|
+
isActive: z.ZodBoolean;
|
|
7930
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
7931
|
+
routeCategory: z.ZodString;
|
|
7932
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
7933
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
7934
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
7935
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7936
|
+
plateNo: z.ZodString;
|
|
7937
|
+
type: z.ZodString;
|
|
7938
|
+
}, "strip", z.ZodTypeAny, {
|
|
7939
|
+
type: string;
|
|
7940
|
+
plateNo: string;
|
|
7941
|
+
}, {
|
|
7942
|
+
type: string;
|
|
7943
|
+
plateNo: string;
|
|
7944
|
+
}>>>;
|
|
7945
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7946
|
+
id: z.ZodString;
|
|
7947
|
+
stopName: z.ZodString;
|
|
7948
|
+
stopOrder: z.ZodNumber;
|
|
7949
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
7950
|
+
}, "strip", z.ZodTypeAny, {
|
|
7951
|
+
id: string;
|
|
7952
|
+
stopName: string;
|
|
7953
|
+
stopOrder: number;
|
|
7954
|
+
estimatedTime: string | null;
|
|
7955
|
+
}, {
|
|
7956
|
+
id: string;
|
|
7957
|
+
stopName: string;
|
|
7958
|
+
stopOrder: number;
|
|
7959
|
+
estimatedTime: string | null;
|
|
7960
|
+
}>, "many">>;
|
|
7961
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7962
|
+
studentId: z.ZodString;
|
|
7963
|
+
studentName: z.ZodString;
|
|
7964
|
+
admissionNo: z.ZodString;
|
|
7965
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
7966
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
7967
|
+
}, "strip", z.ZodTypeAny, {
|
|
7968
|
+
admissionNo: string;
|
|
7969
|
+
studentId: string;
|
|
7970
|
+
studentName: string;
|
|
7971
|
+
pickupStop: string | null;
|
|
7972
|
+
dropoffStop: string | null;
|
|
7973
|
+
}, {
|
|
7974
|
+
admissionNo: string;
|
|
7975
|
+
studentId: string;
|
|
7976
|
+
studentName: string;
|
|
7977
|
+
pickupStop: string | null;
|
|
7978
|
+
dropoffStop: string | null;
|
|
7979
|
+
}>, "many">>;
|
|
7980
|
+
}, "strip", z.ZodTypeAny, {
|
|
7981
|
+
id: string;
|
|
7982
|
+
name: string;
|
|
7983
|
+
branchId: string;
|
|
7984
|
+
isActive: boolean;
|
|
7985
|
+
vehicleId: string | null;
|
|
7986
|
+
departureTime: string | null;
|
|
7987
|
+
description: string | null;
|
|
7988
|
+
routeCategory: string;
|
|
7989
|
+
returnTime: string | null;
|
|
7990
|
+
fare: number | null;
|
|
7991
|
+
vehicle?: {
|
|
7992
|
+
type: string;
|
|
7993
|
+
plateNo: string;
|
|
7994
|
+
} | null | undefined;
|
|
7995
|
+
stops?: {
|
|
7996
|
+
id: string;
|
|
7997
|
+
stopName: string;
|
|
7998
|
+
stopOrder: number;
|
|
7999
|
+
estimatedTime: string | null;
|
|
8000
|
+
}[] | undefined;
|
|
8001
|
+
roster?: {
|
|
8002
|
+
admissionNo: string;
|
|
8003
|
+
studentId: string;
|
|
8004
|
+
studentName: string;
|
|
8005
|
+
pickupStop: string | null;
|
|
8006
|
+
dropoffStop: string | null;
|
|
8007
|
+
}[] | undefined;
|
|
8008
|
+
}, {
|
|
8009
|
+
id: string;
|
|
8010
|
+
name: string;
|
|
8011
|
+
branchId: string;
|
|
8012
|
+
isActive: boolean;
|
|
8013
|
+
vehicleId: string | null;
|
|
8014
|
+
departureTime: string | null;
|
|
8015
|
+
description: string | null;
|
|
8016
|
+
routeCategory: string;
|
|
8017
|
+
returnTime: string | null;
|
|
8018
|
+
fare: number | null;
|
|
8019
|
+
vehicle?: {
|
|
8020
|
+
type: string;
|
|
8021
|
+
plateNo: string;
|
|
8022
|
+
} | null | undefined;
|
|
8023
|
+
stops?: {
|
|
8024
|
+
id: string;
|
|
8025
|
+
stopName: string;
|
|
8026
|
+
stopOrder: number;
|
|
8027
|
+
estimatedTime: string | null;
|
|
8028
|
+
}[] | undefined;
|
|
8029
|
+
roster?: {
|
|
8030
|
+
admissionNo: string;
|
|
8031
|
+
studentId: string;
|
|
8032
|
+
studentName: string;
|
|
8033
|
+
pickupStop: string | null;
|
|
8034
|
+
dropoffStop: string | null;
|
|
8035
|
+
}[] | undefined;
|
|
8036
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
6867
8037
|
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6868
8038
|
branchId: z.ZodString;
|
|
6869
8039
|
name: z.ZodString;
|
|
6870
8040
|
description: z.ZodOptional<z.ZodString>;
|
|
8041
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
8042
|
+
routeCategory: z.ZodOptional<z.ZodString>;
|
|
8043
|
+
departureTime: z.ZodOptional<z.ZodString>;
|
|
8044
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
8045
|
+
fare: z.ZodOptional<z.ZodNumber>;
|
|
6871
8046
|
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6872
8047
|
stopName: z.ZodString;
|
|
6873
8048
|
stopOrder: z.ZodNumber;
|
|
@@ -6884,7 +8059,12 @@ declare const appContract: {
|
|
|
6884
8059
|
}, "strip", z.ZodTypeAny, {
|
|
6885
8060
|
name: string;
|
|
6886
8061
|
branchId: string;
|
|
8062
|
+
vehicleId?: string | undefined;
|
|
8063
|
+
departureTime?: string | undefined;
|
|
6887
8064
|
description?: string | undefined;
|
|
8065
|
+
routeCategory?: string | undefined;
|
|
8066
|
+
returnTime?: string | undefined;
|
|
8067
|
+
fare?: number | undefined;
|
|
6888
8068
|
stops?: {
|
|
6889
8069
|
stopName: string;
|
|
6890
8070
|
stopOrder: number;
|
|
@@ -6893,7 +8073,12 @@ declare const appContract: {
|
|
|
6893
8073
|
}, {
|
|
6894
8074
|
name: string;
|
|
6895
8075
|
branchId: string;
|
|
8076
|
+
vehicleId?: string | undefined;
|
|
8077
|
+
departureTime?: string | undefined;
|
|
6896
8078
|
description?: string | undefined;
|
|
8079
|
+
routeCategory?: string | undefined;
|
|
8080
|
+
returnTime?: string | undefined;
|
|
8081
|
+
fare?: number | undefined;
|
|
6897
8082
|
stops?: {
|
|
6898
8083
|
stopName: string;
|
|
6899
8084
|
stopOrder: number;
|
|
@@ -6905,6 +8090,161 @@ declare const appContract: {
|
|
|
6905
8090
|
name: z.ZodString;
|
|
6906
8091
|
description: z.ZodNullable<z.ZodString>;
|
|
6907
8092
|
isActive: z.ZodBoolean;
|
|
8093
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
8094
|
+
routeCategory: z.ZodString;
|
|
8095
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
8096
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
8097
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
8098
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8099
|
+
plateNo: z.ZodString;
|
|
8100
|
+
type: z.ZodString;
|
|
8101
|
+
}, "strip", z.ZodTypeAny, {
|
|
8102
|
+
type: string;
|
|
8103
|
+
plateNo: string;
|
|
8104
|
+
}, {
|
|
8105
|
+
type: string;
|
|
8106
|
+
plateNo: string;
|
|
8107
|
+
}>>>;
|
|
8108
|
+
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8109
|
+
id: z.ZodString;
|
|
8110
|
+
stopName: z.ZodString;
|
|
8111
|
+
stopOrder: z.ZodNumber;
|
|
8112
|
+
estimatedTime: z.ZodNullable<z.ZodString>;
|
|
8113
|
+
}, "strip", z.ZodTypeAny, {
|
|
8114
|
+
id: string;
|
|
8115
|
+
stopName: string;
|
|
8116
|
+
stopOrder: number;
|
|
8117
|
+
estimatedTime: string | null;
|
|
8118
|
+
}, {
|
|
8119
|
+
id: string;
|
|
8120
|
+
stopName: string;
|
|
8121
|
+
stopOrder: number;
|
|
8122
|
+
estimatedTime: string | null;
|
|
8123
|
+
}>, "many">>;
|
|
8124
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8125
|
+
studentId: z.ZodString;
|
|
8126
|
+
studentName: z.ZodString;
|
|
8127
|
+
admissionNo: z.ZodString;
|
|
8128
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
8129
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
8130
|
+
}, "strip", z.ZodTypeAny, {
|
|
8131
|
+
admissionNo: string;
|
|
8132
|
+
studentId: string;
|
|
8133
|
+
studentName: string;
|
|
8134
|
+
pickupStop: string | null;
|
|
8135
|
+
dropoffStop: string | null;
|
|
8136
|
+
}, {
|
|
8137
|
+
admissionNo: string;
|
|
8138
|
+
studentId: string;
|
|
8139
|
+
studentName: string;
|
|
8140
|
+
pickupStop: string | null;
|
|
8141
|
+
dropoffStop: string | null;
|
|
8142
|
+
}>, "many">>;
|
|
8143
|
+
}, "strip", z.ZodTypeAny, {
|
|
8144
|
+
id: string;
|
|
8145
|
+
name: string;
|
|
8146
|
+
branchId: string;
|
|
8147
|
+
isActive: boolean;
|
|
8148
|
+
vehicleId: string | null;
|
|
8149
|
+
departureTime: string | null;
|
|
8150
|
+
description: string | null;
|
|
8151
|
+
routeCategory: string;
|
|
8152
|
+
returnTime: string | null;
|
|
8153
|
+
fare: number | null;
|
|
8154
|
+
vehicle?: {
|
|
8155
|
+
type: string;
|
|
8156
|
+
plateNo: string;
|
|
8157
|
+
} | null | undefined;
|
|
8158
|
+
stops?: {
|
|
8159
|
+
id: string;
|
|
8160
|
+
stopName: string;
|
|
8161
|
+
stopOrder: number;
|
|
8162
|
+
estimatedTime: string | null;
|
|
8163
|
+
}[] | undefined;
|
|
8164
|
+
roster?: {
|
|
8165
|
+
admissionNo: string;
|
|
8166
|
+
studentId: string;
|
|
8167
|
+
studentName: string;
|
|
8168
|
+
pickupStop: string | null;
|
|
8169
|
+
dropoffStop: string | null;
|
|
8170
|
+
}[] | undefined;
|
|
8171
|
+
}, {
|
|
8172
|
+
id: string;
|
|
8173
|
+
name: string;
|
|
8174
|
+
branchId: string;
|
|
8175
|
+
isActive: boolean;
|
|
8176
|
+
vehicleId: string | null;
|
|
8177
|
+
departureTime: string | null;
|
|
8178
|
+
description: string | null;
|
|
8179
|
+
routeCategory: string;
|
|
8180
|
+
returnTime: string | null;
|
|
8181
|
+
fare: number | null;
|
|
8182
|
+
vehicle?: {
|
|
8183
|
+
type: string;
|
|
8184
|
+
plateNo: string;
|
|
8185
|
+
} | null | undefined;
|
|
8186
|
+
stops?: {
|
|
8187
|
+
id: string;
|
|
8188
|
+
stopName: string;
|
|
8189
|
+
stopOrder: number;
|
|
8190
|
+
estimatedTime: string | null;
|
|
8191
|
+
}[] | undefined;
|
|
8192
|
+
roster?: {
|
|
8193
|
+
admissionNo: string;
|
|
8194
|
+
studentId: string;
|
|
8195
|
+
studentName: string;
|
|
8196
|
+
pickupStop: string | null;
|
|
8197
|
+
dropoffStop: string | null;
|
|
8198
|
+
}[] | undefined;
|
|
8199
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8200
|
+
update: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8201
|
+
id: z.ZodString;
|
|
8202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8204
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
8205
|
+
routeCategory: z.ZodOptional<z.ZodString>;
|
|
8206
|
+
departureTime: z.ZodOptional<z.ZodString>;
|
|
8207
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
8208
|
+
fare: z.ZodOptional<z.ZodNumber>;
|
|
8209
|
+
}, "strip", z.ZodTypeAny, {
|
|
8210
|
+
id: string;
|
|
8211
|
+
name?: string | undefined;
|
|
8212
|
+
vehicleId?: string | undefined;
|
|
8213
|
+
departureTime?: string | undefined;
|
|
8214
|
+
description?: string | undefined;
|
|
8215
|
+
routeCategory?: string | undefined;
|
|
8216
|
+
returnTime?: string | undefined;
|
|
8217
|
+
fare?: number | undefined;
|
|
8218
|
+
}, {
|
|
8219
|
+
id: string;
|
|
8220
|
+
name?: string | undefined;
|
|
8221
|
+
vehicleId?: string | undefined;
|
|
8222
|
+
departureTime?: string | undefined;
|
|
8223
|
+
description?: string | undefined;
|
|
8224
|
+
routeCategory?: string | undefined;
|
|
8225
|
+
returnTime?: string | undefined;
|
|
8226
|
+
fare?: number | undefined;
|
|
8227
|
+
}>, z.ZodObject<{
|
|
8228
|
+
id: z.ZodString;
|
|
8229
|
+
branchId: z.ZodString;
|
|
8230
|
+
name: z.ZodString;
|
|
8231
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8232
|
+
isActive: z.ZodBoolean;
|
|
8233
|
+
vehicleId: z.ZodNullable<z.ZodString>;
|
|
8234
|
+
routeCategory: z.ZodString;
|
|
8235
|
+
departureTime: z.ZodNullable<z.ZodString>;
|
|
8236
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
8237
|
+
fare: z.ZodNullable<z.ZodNumber>;
|
|
8238
|
+
vehicle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8239
|
+
plateNo: z.ZodString;
|
|
8240
|
+
type: z.ZodString;
|
|
8241
|
+
}, "strip", z.ZodTypeAny, {
|
|
8242
|
+
type: string;
|
|
8243
|
+
plateNo: string;
|
|
8244
|
+
}, {
|
|
8245
|
+
type: string;
|
|
8246
|
+
plateNo: string;
|
|
8247
|
+
}>>>;
|
|
6908
8248
|
stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6909
8249
|
id: z.ZodString;
|
|
6910
8250
|
stopName: z.ZodString;
|
|
@@ -6921,40 +8261,163 @@ declare const appContract: {
|
|
|
6921
8261
|
stopOrder: number;
|
|
6922
8262
|
estimatedTime: string | null;
|
|
6923
8263
|
}>, "many">>;
|
|
8264
|
+
roster: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8265
|
+
studentId: z.ZodString;
|
|
8266
|
+
studentName: z.ZodString;
|
|
8267
|
+
admissionNo: z.ZodString;
|
|
8268
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
8269
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
8270
|
+
}, "strip", z.ZodTypeAny, {
|
|
8271
|
+
admissionNo: string;
|
|
8272
|
+
studentId: string;
|
|
8273
|
+
studentName: string;
|
|
8274
|
+
pickupStop: string | null;
|
|
8275
|
+
dropoffStop: string | null;
|
|
8276
|
+
}, {
|
|
8277
|
+
admissionNo: string;
|
|
8278
|
+
studentId: string;
|
|
8279
|
+
studentName: string;
|
|
8280
|
+
pickupStop: string | null;
|
|
8281
|
+
dropoffStop: string | null;
|
|
8282
|
+
}>, "many">>;
|
|
6924
8283
|
}, "strip", z.ZodTypeAny, {
|
|
6925
8284
|
id: string;
|
|
6926
8285
|
name: string;
|
|
6927
8286
|
branchId: string;
|
|
6928
8287
|
isActive: boolean;
|
|
8288
|
+
vehicleId: string | null;
|
|
8289
|
+
departureTime: string | null;
|
|
8290
|
+
description: string | null;
|
|
8291
|
+
routeCategory: string;
|
|
8292
|
+
returnTime: string | null;
|
|
8293
|
+
fare: number | null;
|
|
8294
|
+
vehicle?: {
|
|
8295
|
+
type: string;
|
|
8296
|
+
plateNo: string;
|
|
8297
|
+
} | null | undefined;
|
|
8298
|
+
stops?: {
|
|
8299
|
+
id: string;
|
|
8300
|
+
stopName: string;
|
|
8301
|
+
stopOrder: number;
|
|
8302
|
+
estimatedTime: string | null;
|
|
8303
|
+
}[] | undefined;
|
|
8304
|
+
roster?: {
|
|
8305
|
+
admissionNo: string;
|
|
8306
|
+
studentId: string;
|
|
8307
|
+
studentName: string;
|
|
8308
|
+
pickupStop: string | null;
|
|
8309
|
+
dropoffStop: string | null;
|
|
8310
|
+
}[] | undefined;
|
|
8311
|
+
}, {
|
|
8312
|
+
id: string;
|
|
8313
|
+
name: string;
|
|
8314
|
+
branchId: string;
|
|
8315
|
+
isActive: boolean;
|
|
8316
|
+
vehicleId: string | null;
|
|
8317
|
+
departureTime: string | null;
|
|
6929
8318
|
description: string | null;
|
|
8319
|
+
routeCategory: string;
|
|
8320
|
+
returnTime: string | null;
|
|
8321
|
+
fare: number | null;
|
|
8322
|
+
vehicle?: {
|
|
8323
|
+
type: string;
|
|
8324
|
+
plateNo: string;
|
|
8325
|
+
} | null | undefined;
|
|
6930
8326
|
stops?: {
|
|
6931
8327
|
id: string;
|
|
6932
8328
|
stopName: string;
|
|
6933
8329
|
stopOrder: number;
|
|
6934
8330
|
estimatedTime: string | null;
|
|
6935
8331
|
}[] | undefined;
|
|
8332
|
+
roster?: {
|
|
8333
|
+
admissionNo: string;
|
|
8334
|
+
studentId: string;
|
|
8335
|
+
studentName: string;
|
|
8336
|
+
pickupStop: string | null;
|
|
8337
|
+
dropoffStop: string | null;
|
|
8338
|
+
}[] | undefined;
|
|
8339
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8340
|
+
toggle: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8341
|
+
id: z.ZodString;
|
|
8342
|
+
isActive: z.ZodBoolean;
|
|
8343
|
+
}, "strip", z.ZodTypeAny, {
|
|
8344
|
+
id: string;
|
|
8345
|
+
isActive: boolean;
|
|
8346
|
+
}, {
|
|
8347
|
+
id: string;
|
|
8348
|
+
isActive: boolean;
|
|
8349
|
+
}>, z.ZodObject<{
|
|
8350
|
+
success: z.ZodBoolean;
|
|
8351
|
+
}, "strip", z.ZodTypeAny, {
|
|
8352
|
+
success: boolean;
|
|
8353
|
+
}, {
|
|
8354
|
+
success: boolean;
|
|
8355
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8356
|
+
roster: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8357
|
+
routeId: z.ZodString;
|
|
8358
|
+
termId: z.ZodString;
|
|
8359
|
+
}, "strip", z.ZodTypeAny, {
|
|
8360
|
+
termId: string;
|
|
8361
|
+
routeId: string;
|
|
8362
|
+
}, {
|
|
8363
|
+
termId: string;
|
|
8364
|
+
routeId: string;
|
|
8365
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
8366
|
+
studentId: z.ZodString;
|
|
8367
|
+
studentName: z.ZodString;
|
|
8368
|
+
admissionNo: z.ZodString;
|
|
8369
|
+
pickupStop: z.ZodNullable<z.ZodString>;
|
|
8370
|
+
dropoffStop: z.ZodNullable<z.ZodString>;
|
|
8371
|
+
}, "strip", z.ZodTypeAny, {
|
|
8372
|
+
admissionNo: string;
|
|
8373
|
+
studentId: string;
|
|
8374
|
+
studentName: string;
|
|
8375
|
+
pickupStop: string | null;
|
|
8376
|
+
dropoffStop: string | null;
|
|
8377
|
+
}, {
|
|
8378
|
+
admissionNo: string;
|
|
8379
|
+
studentId: string;
|
|
8380
|
+
studentName: string;
|
|
8381
|
+
pickupStop: string | null;
|
|
8382
|
+
dropoffStop: string | null;
|
|
8383
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
8384
|
+
enroll: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8385
|
+
studentId: z.ZodString;
|
|
8386
|
+
routeId: z.ZodString;
|
|
8387
|
+
termId: z.ZodString;
|
|
8388
|
+
pickupStopId: z.ZodOptional<z.ZodString>;
|
|
8389
|
+
dropoffStopId: z.ZodOptional<z.ZodString>;
|
|
8390
|
+
}, "strip", z.ZodTypeAny, {
|
|
8391
|
+
termId: string;
|
|
8392
|
+
studentId: string;
|
|
8393
|
+
routeId: string;
|
|
8394
|
+
pickupStopId?: string | undefined;
|
|
8395
|
+
dropoffStopId?: string | undefined;
|
|
8396
|
+
}, {
|
|
8397
|
+
termId: string;
|
|
8398
|
+
studentId: string;
|
|
8399
|
+
routeId: string;
|
|
8400
|
+
pickupStopId?: string | undefined;
|
|
8401
|
+
dropoffStopId?: string | undefined;
|
|
8402
|
+
}>, z.ZodObject<{
|
|
8403
|
+
success: z.ZodBoolean;
|
|
8404
|
+
}, "strip", z.ZodTypeAny, {
|
|
8405
|
+
success: boolean;
|
|
6936
8406
|
}, {
|
|
6937
|
-
|
|
6938
|
-
name: string;
|
|
6939
|
-
branchId: string;
|
|
6940
|
-
isActive: boolean;
|
|
6941
|
-
description: string | null;
|
|
6942
|
-
stops?: {
|
|
6943
|
-
id: string;
|
|
6944
|
-
stopName: string;
|
|
6945
|
-
stopOrder: number;
|
|
6946
|
-
estimatedTime: string | null;
|
|
6947
|
-
}[] | undefined;
|
|
8407
|
+
success: boolean;
|
|
6948
8408
|
}>, Record<never, never>, Record<never, never>>;
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
8409
|
+
unenroll: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8410
|
+
studentId: z.ZodString;
|
|
8411
|
+
routeId: z.ZodString;
|
|
8412
|
+
termId: z.ZodString;
|
|
6952
8413
|
}, "strip", z.ZodTypeAny, {
|
|
6953
|
-
|
|
6954
|
-
|
|
8414
|
+
termId: string;
|
|
8415
|
+
studentId: string;
|
|
8416
|
+
routeId: string;
|
|
6955
8417
|
}, {
|
|
6956
|
-
|
|
6957
|
-
|
|
8418
|
+
termId: string;
|
|
8419
|
+
studentId: string;
|
|
8420
|
+
routeId: string;
|
|
6958
8421
|
}>, z.ZodObject<{
|
|
6959
8422
|
success: z.ZodBoolean;
|
|
6960
8423
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6968,14 +8431,20 @@ declare const appContract: {
|
|
|
6968
8431
|
branchId: z.ZodString;
|
|
6969
8432
|
date: z.ZodOptional<z.ZodString>;
|
|
6970
8433
|
vehicleId: z.ZodOptional<z.ZodString>;
|
|
8434
|
+
tripCategory: z.ZodOptional<z.ZodEnum<["regular", "special"]>>;
|
|
8435
|
+
status: z.ZodOptional<z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>>;
|
|
6971
8436
|
}, "strip", z.ZodTypeAny, {
|
|
6972
8437
|
branchId: string;
|
|
8438
|
+
status?: "cancelled" | "scheduled" | "in_progress" | "completed" | undefined;
|
|
6973
8439
|
date?: string | undefined;
|
|
6974
8440
|
vehicleId?: string | undefined;
|
|
8441
|
+
tripCategory?: "regular" | "special" | undefined;
|
|
6975
8442
|
}, {
|
|
6976
8443
|
branchId: string;
|
|
8444
|
+
status?: "cancelled" | "scheduled" | "in_progress" | "completed" | undefined;
|
|
6977
8445
|
date?: string | undefined;
|
|
6978
8446
|
vehicleId?: string | undefined;
|
|
8447
|
+
tripCategory?: "regular" | "special" | undefined;
|
|
6979
8448
|
}>, z.ZodArray<z.ZodObject<{
|
|
6980
8449
|
id: z.ZodString;
|
|
6981
8450
|
branchId: z.ZodString;
|
|
@@ -6984,7 +8453,14 @@ declare const appContract: {
|
|
|
6984
8453
|
driverUserId: z.ZodString;
|
|
6985
8454
|
departureTime: z.ZodString;
|
|
6986
8455
|
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
6987
|
-
|
|
8456
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
8457
|
+
tripType: z.ZodString;
|
|
8458
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
8459
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
8460
|
+
title: z.ZodNullable<z.ZodString>;
|
|
8461
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8462
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
8463
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
6988
8464
|
notes: z.ZodNullable<z.ZodString>;
|
|
6989
8465
|
createdAt: z.ZodString;
|
|
6990
8466
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
@@ -7005,16 +8481,23 @@ declare const appContract: {
|
|
|
7005
8481
|
name: string;
|
|
7006
8482
|
}>>>;
|
|
7007
8483
|
}, "strip", z.ZodTypeAny, {
|
|
8484
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
7008
8485
|
id: string;
|
|
7009
8486
|
branchId: string;
|
|
7010
8487
|
createdAt: string;
|
|
7011
8488
|
vehicleId: string;
|
|
7012
8489
|
routeId: string | null;
|
|
7013
8490
|
departureTime: string;
|
|
7014
|
-
tripType:
|
|
8491
|
+
tripType: string;
|
|
7015
8492
|
driverUserId: string;
|
|
7016
|
-
arrivalTime: string | null;
|
|
7017
8493
|
notes: string | null;
|
|
8494
|
+
description: string | null;
|
|
8495
|
+
returnTime: string | null;
|
|
8496
|
+
arrivalTime: string | null;
|
|
8497
|
+
tripCategory: "regular" | "special";
|
|
8498
|
+
title: string | null;
|
|
8499
|
+
destination: string | null;
|
|
8500
|
+
expectedStudents: number | null;
|
|
7018
8501
|
vehicle?: {
|
|
7019
8502
|
type: string;
|
|
7020
8503
|
plateNo: string;
|
|
@@ -7023,16 +8506,23 @@ declare const appContract: {
|
|
|
7023
8506
|
name: string;
|
|
7024
8507
|
} | null | undefined;
|
|
7025
8508
|
}, {
|
|
8509
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
7026
8510
|
id: string;
|
|
7027
8511
|
branchId: string;
|
|
7028
8512
|
createdAt: string;
|
|
7029
8513
|
vehicleId: string;
|
|
7030
8514
|
routeId: string | null;
|
|
7031
8515
|
departureTime: string;
|
|
7032
|
-
tripType:
|
|
8516
|
+
tripType: string;
|
|
7033
8517
|
driverUserId: string;
|
|
7034
|
-
arrivalTime: string | null;
|
|
7035
8518
|
notes: string | null;
|
|
8519
|
+
description: string | null;
|
|
8520
|
+
returnTime: string | null;
|
|
8521
|
+
arrivalTime: string | null;
|
|
8522
|
+
tripCategory: "regular" | "special";
|
|
8523
|
+
title: string | null;
|
|
8524
|
+
destination: string | null;
|
|
8525
|
+
expectedStudents: number | null;
|
|
7036
8526
|
vehicle?: {
|
|
7037
8527
|
type: string;
|
|
7038
8528
|
plateNo: string;
|
|
@@ -7055,7 +8545,14 @@ declare const appContract: {
|
|
|
7055
8545
|
driverUserId: z.ZodString;
|
|
7056
8546
|
departureTime: z.ZodString;
|
|
7057
8547
|
arrivalTime: z.ZodNullable<z.ZodString>;
|
|
7058
|
-
|
|
8548
|
+
returnTime: z.ZodNullable<z.ZodString>;
|
|
8549
|
+
tripType: z.ZodString;
|
|
8550
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
8551
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
8552
|
+
title: z.ZodNullable<z.ZodString>;
|
|
8553
|
+
description: z.ZodNullable<z.ZodString>;
|
|
8554
|
+
destination: z.ZodNullable<z.ZodString>;
|
|
8555
|
+
expectedStudents: z.ZodNullable<z.ZodNumber>;
|
|
7059
8556
|
notes: z.ZodNullable<z.ZodString>;
|
|
7060
8557
|
createdAt: z.ZodString;
|
|
7061
8558
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
@@ -7093,16 +8590,23 @@ declare const appContract: {
|
|
|
7093
8590
|
recordedAt: string;
|
|
7094
8591
|
}>, "many">;
|
|
7095
8592
|
}, "strip", z.ZodTypeAny, {
|
|
8593
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
7096
8594
|
id: string;
|
|
7097
8595
|
branchId: string;
|
|
7098
8596
|
createdAt: string;
|
|
7099
8597
|
vehicleId: string;
|
|
7100
8598
|
routeId: string | null;
|
|
7101
8599
|
departureTime: string;
|
|
7102
|
-
tripType:
|
|
8600
|
+
tripType: string;
|
|
7103
8601
|
driverUserId: string;
|
|
7104
|
-
arrivalTime: string | null;
|
|
7105
8602
|
notes: string | null;
|
|
8603
|
+
description: string | null;
|
|
8604
|
+
returnTime: string | null;
|
|
8605
|
+
arrivalTime: string | null;
|
|
8606
|
+
tripCategory: "regular" | "special";
|
|
8607
|
+
title: string | null;
|
|
8608
|
+
destination: string | null;
|
|
8609
|
+
expectedStudents: number | null;
|
|
7106
8610
|
boardings: {
|
|
7107
8611
|
status: "boarded" | "alighted" | "absent";
|
|
7108
8612
|
studentId: string;
|
|
@@ -7117,16 +8621,23 @@ declare const appContract: {
|
|
|
7117
8621
|
name: string;
|
|
7118
8622
|
} | null | undefined;
|
|
7119
8623
|
}, {
|
|
8624
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
7120
8625
|
id: string;
|
|
7121
8626
|
branchId: string;
|
|
7122
8627
|
createdAt: string;
|
|
7123
8628
|
vehicleId: string;
|
|
7124
8629
|
routeId: string | null;
|
|
7125
8630
|
departureTime: string;
|
|
7126
|
-
tripType:
|
|
8631
|
+
tripType: string;
|
|
7127
8632
|
driverUserId: string;
|
|
7128
|
-
arrivalTime: string | null;
|
|
7129
8633
|
notes: string | null;
|
|
8634
|
+
description: string | null;
|
|
8635
|
+
returnTime: string | null;
|
|
8636
|
+
arrivalTime: string | null;
|
|
8637
|
+
tripCategory: "regular" | "special";
|
|
8638
|
+
title: string | null;
|
|
8639
|
+
destination: string | null;
|
|
8640
|
+
expectedStudents: number | null;
|
|
7130
8641
|
boardings: {
|
|
7131
8642
|
status: "boarded" | "alighted" | "absent";
|
|
7132
8643
|
studentId: string;
|
|
@@ -7141,21 +8652,45 @@ declare const appContract: {
|
|
|
7141
8652
|
name: string;
|
|
7142
8653
|
} | null | undefined;
|
|
7143
8654
|
}>, Record<never, never>, Record<never, never>>;
|
|
7144
|
-
|
|
8655
|
+
create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8656
|
+
branchId: z.ZodString;
|
|
7145
8657
|
vehicleId: z.ZodString;
|
|
7146
|
-
routeId: z.ZodString
|
|
8658
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
8659
|
+
tripType: z.ZodString;
|
|
8660
|
+
tripCategory: z.ZodEnum<["regular", "special"]>;
|
|
7147
8661
|
departureTime: z.ZodString;
|
|
7148
|
-
|
|
8662
|
+
returnTime: z.ZodOptional<z.ZodString>;
|
|
8663
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8665
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
8666
|
+
expectedStudents: z.ZodOptional<z.ZodNumber>;
|
|
8667
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
7149
8668
|
}, "strip", z.ZodTypeAny, {
|
|
8669
|
+
branchId: string;
|
|
7150
8670
|
vehicleId: string;
|
|
7151
|
-
routeId: string;
|
|
7152
8671
|
departureTime: string;
|
|
7153
|
-
tripType:
|
|
8672
|
+
tripType: string;
|
|
8673
|
+
tripCategory: "regular" | "special";
|
|
8674
|
+
routeId?: string | undefined;
|
|
8675
|
+
notes?: string | undefined;
|
|
8676
|
+
description?: string | undefined;
|
|
8677
|
+
returnTime?: string | undefined;
|
|
8678
|
+
title?: string | undefined;
|
|
8679
|
+
destination?: string | undefined;
|
|
8680
|
+
expectedStudents?: number | undefined;
|
|
7154
8681
|
}, {
|
|
8682
|
+
branchId: string;
|
|
7155
8683
|
vehicleId: string;
|
|
7156
|
-
routeId: string;
|
|
7157
8684
|
departureTime: string;
|
|
7158
|
-
tripType:
|
|
8685
|
+
tripType: string;
|
|
8686
|
+
tripCategory: "regular" | "special";
|
|
8687
|
+
routeId?: string | undefined;
|
|
8688
|
+
notes?: string | undefined;
|
|
8689
|
+
description?: string | undefined;
|
|
8690
|
+
returnTime?: string | undefined;
|
|
8691
|
+
title?: string | undefined;
|
|
8692
|
+
destination?: string | undefined;
|
|
8693
|
+
expectedStudents?: number | undefined;
|
|
7159
8694
|
}>, z.ZodObject<{
|
|
7160
8695
|
id: z.ZodString;
|
|
7161
8696
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7163,6 +8698,38 @@ declare const appContract: {
|
|
|
7163
8698
|
}, {
|
|
7164
8699
|
id: string;
|
|
7165
8700
|
}>, Record<never, never>, Record<never, never>>;
|
|
8701
|
+
updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8702
|
+
tripId: z.ZodString;
|
|
8703
|
+
status: z.ZodEnum<["scheduled", "in_progress", "completed", "cancelled"]>;
|
|
8704
|
+
}, "strip", z.ZodTypeAny, {
|
|
8705
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
8706
|
+
tripId: string;
|
|
8707
|
+
}, {
|
|
8708
|
+
status: "cancelled" | "scheduled" | "in_progress" | "completed";
|
|
8709
|
+
tripId: string;
|
|
8710
|
+
}>, z.ZodObject<{
|
|
8711
|
+
success: z.ZodBoolean;
|
|
8712
|
+
}, "strip", z.ZodTypeAny, {
|
|
8713
|
+
success: boolean;
|
|
8714
|
+
}, {
|
|
8715
|
+
success: boolean;
|
|
8716
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8717
|
+
complete: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8718
|
+
tripId: z.ZodString;
|
|
8719
|
+
arrivalTime: z.ZodString;
|
|
8720
|
+
}, "strip", z.ZodTypeAny, {
|
|
8721
|
+
arrivalTime: string;
|
|
8722
|
+
tripId: string;
|
|
8723
|
+
}, {
|
|
8724
|
+
arrivalTime: string;
|
|
8725
|
+
tripId: string;
|
|
8726
|
+
}>, z.ZodObject<{
|
|
8727
|
+
success: z.ZodBoolean;
|
|
8728
|
+
}, "strip", z.ZodTypeAny, {
|
|
8729
|
+
success: boolean;
|
|
8730
|
+
}, {
|
|
8731
|
+
success: boolean;
|
|
8732
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
7166
8733
|
recordBoardings: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7167
8734
|
tripId: z.ZodString;
|
|
7168
8735
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -7194,14 +8761,36 @@ declare const appContract: {
|
|
|
7194
8761
|
}, {
|
|
7195
8762
|
saved: number;
|
|
7196
8763
|
}>, Record<never, never>, Record<never, never>>;
|
|
7197
|
-
|
|
8764
|
+
reportIncident: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7198
8765
|
tripId: z.ZodString;
|
|
7199
|
-
|
|
8766
|
+
description: z.ZodString;
|
|
8767
|
+
severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
|
|
8768
|
+
location: z.ZodOptional<z.ZodString>;
|
|
7200
8769
|
}, "strip", z.ZodTypeAny, {
|
|
7201
|
-
|
|
8770
|
+
description: string;
|
|
8771
|
+
severity: "minor" | "moderate" | "serious" | "critical";
|
|
8772
|
+
tripId: string;
|
|
8773
|
+
location?: string | undefined;
|
|
8774
|
+
}, {
|
|
8775
|
+
description: string;
|
|
8776
|
+
severity: "minor" | "moderate" | "serious" | "critical";
|
|
7202
8777
|
tripId: string;
|
|
8778
|
+
location?: string | undefined;
|
|
8779
|
+
}>, z.ZodObject<{
|
|
8780
|
+
id: z.ZodString;
|
|
8781
|
+
}, "strip", z.ZodTypeAny, {
|
|
8782
|
+
id: string;
|
|
7203
8783
|
}, {
|
|
7204
|
-
|
|
8784
|
+
id: string;
|
|
8785
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
8786
|
+
enrollStudent: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8787
|
+
tripId: z.ZodString;
|
|
8788
|
+
studentId: z.ZodString;
|
|
8789
|
+
}, "strip", z.ZodTypeAny, {
|
|
8790
|
+
studentId: string;
|
|
8791
|
+
tripId: string;
|
|
8792
|
+
}, {
|
|
8793
|
+
studentId: string;
|
|
7205
8794
|
tripId: string;
|
|
7206
8795
|
}>, z.ZodObject<{
|
|
7207
8796
|
success: z.ZodBoolean;
|
|
@@ -7210,42 +8799,58 @@ declare const appContract: {
|
|
|
7210
8799
|
}, {
|
|
7211
8800
|
success: boolean;
|
|
7212
8801
|
}>, Record<never, never>, Record<never, never>>;
|
|
7213
|
-
|
|
8802
|
+
unenrollStudent: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7214
8803
|
tripId: z.ZodString;
|
|
7215
|
-
|
|
7216
|
-
severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
|
|
7217
|
-
location: z.ZodOptional<z.ZodString>;
|
|
8804
|
+
studentId: z.ZodString;
|
|
7218
8805
|
}, "strip", z.ZodTypeAny, {
|
|
7219
|
-
|
|
8806
|
+
studentId: string;
|
|
7220
8807
|
tripId: string;
|
|
7221
|
-
severity: "minor" | "moderate" | "serious" | "critical";
|
|
7222
|
-
location?: string | undefined;
|
|
7223
8808
|
}, {
|
|
7224
|
-
|
|
8809
|
+
studentId: string;
|
|
7225
8810
|
tripId: string;
|
|
7226
|
-
severity: "minor" | "moderate" | "serious" | "critical";
|
|
7227
|
-
location?: string | undefined;
|
|
7228
8811
|
}>, z.ZodObject<{
|
|
7229
|
-
|
|
8812
|
+
success: z.ZodBoolean;
|
|
7230
8813
|
}, "strip", z.ZodTypeAny, {
|
|
7231
|
-
|
|
8814
|
+
success: boolean;
|
|
7232
8815
|
}, {
|
|
7233
|
-
|
|
8816
|
+
success: boolean;
|
|
7234
8817
|
}>, Record<never, never>, Record<never, never>>;
|
|
8818
|
+
listEnrolled: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8819
|
+
tripId: z.ZodString;
|
|
8820
|
+
}, "strip", z.ZodTypeAny, {
|
|
8821
|
+
tripId: string;
|
|
8822
|
+
}, {
|
|
8823
|
+
tripId: string;
|
|
8824
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
8825
|
+
studentId: z.ZodString;
|
|
8826
|
+
studentName: z.ZodString;
|
|
8827
|
+
admissionNo: z.ZodString;
|
|
8828
|
+
status: z.ZodNullable<z.ZodEnum<["boarded", "alighted", "absent"]>>;
|
|
8829
|
+
}, "strip", z.ZodTypeAny, {
|
|
8830
|
+
status: "boarded" | "alighted" | "absent" | null;
|
|
8831
|
+
admissionNo: string;
|
|
8832
|
+
studentId: string;
|
|
8833
|
+
studentName: string;
|
|
8834
|
+
}, {
|
|
8835
|
+
status: "boarded" | "alighted" | "absent" | null;
|
|
8836
|
+
admissionNo: string;
|
|
8837
|
+
studentId: string;
|
|
8838
|
+
studentName: string;
|
|
8839
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
7235
8840
|
};
|
|
7236
8841
|
maintenance: {
|
|
7237
|
-
|
|
8842
|
+
submit: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7238
8843
|
vehicleId: z.ZodString;
|
|
7239
8844
|
issue: z.ZodString;
|
|
7240
8845
|
severity: z.ZodEnum<["routine", "urgent", "critical"]>;
|
|
7241
8846
|
}, "strip", z.ZodTypeAny, {
|
|
7242
8847
|
vehicleId: string;
|
|
7243
|
-
severity: "critical" | "routine" | "urgent";
|
|
7244
8848
|
issue: string;
|
|
8849
|
+
severity: "critical" | "routine" | "urgent";
|
|
7245
8850
|
}, {
|
|
7246
8851
|
vehicleId: string;
|
|
7247
|
-
severity: "critical" | "routine" | "urgent";
|
|
7248
8852
|
issue: string;
|
|
8853
|
+
severity: "critical" | "routine" | "urgent";
|
|
7249
8854
|
}>, z.ZodObject<{
|
|
7250
8855
|
id: z.ZodString;
|
|
7251
8856
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7254,22 +8859,83 @@ declare const appContract: {
|
|
|
7254
8859
|
id: string;
|
|
7255
8860
|
}>, Record<never, never>, Record<never, never>>;
|
|
7256
8861
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8862
|
+
branchId: z.ZodString;
|
|
8863
|
+
vehicleId: z.ZodOptional<z.ZodString>;
|
|
8864
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "resolved"]>>;
|
|
8865
|
+
}, "strip", z.ZodTypeAny, {
|
|
8866
|
+
branchId: string;
|
|
8867
|
+
status?: "pending" | "approved" | "rejected" | "resolved" | undefined;
|
|
8868
|
+
vehicleId?: string | undefined;
|
|
8869
|
+
}, {
|
|
8870
|
+
branchId: string;
|
|
8871
|
+
status?: "pending" | "approved" | "rejected" | "resolved" | undefined;
|
|
8872
|
+
vehicleId?: string | undefined;
|
|
8873
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
8874
|
+
id: z.ZodString;
|
|
7257
8875
|
vehicleId: z.ZodString;
|
|
8876
|
+
requestedBy: z.ZodString;
|
|
8877
|
+
issue: z.ZodString;
|
|
8878
|
+
severity: z.ZodString;
|
|
8879
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "resolved"]>;
|
|
8880
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
8881
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
8882
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
8883
|
+
createdAt: z.ZodString;
|
|
8884
|
+
vehiclePlate: z.ZodOptional<z.ZodString>;
|
|
7258
8885
|
}, "strip", z.ZodTypeAny, {
|
|
8886
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
8887
|
+
id: string;
|
|
8888
|
+
createdAt: string;
|
|
7259
8889
|
vehicleId: string;
|
|
8890
|
+
requestedBy: string;
|
|
8891
|
+
issue: string;
|
|
8892
|
+
severity: string;
|
|
8893
|
+
reviewedBy: string | null;
|
|
8894
|
+
reviewNotes: string | null;
|
|
8895
|
+
reviewedAt: string | null;
|
|
8896
|
+
vehiclePlate?: string | undefined;
|
|
7260
8897
|
}, {
|
|
8898
|
+
status: "pending" | "approved" | "rejected" | "resolved";
|
|
8899
|
+
id: string;
|
|
8900
|
+
createdAt: string;
|
|
7261
8901
|
vehicleId: string;
|
|
7262
|
-
|
|
8902
|
+
requestedBy: string;
|
|
8903
|
+
issue: string;
|
|
8904
|
+
severity: string;
|
|
8905
|
+
reviewedBy: string | null;
|
|
8906
|
+
reviewNotes: string | null;
|
|
8907
|
+
reviewedAt: string | null;
|
|
8908
|
+
vehiclePlate?: string | undefined;
|
|
8909
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
8910
|
+
review: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8911
|
+
id: z.ZodString;
|
|
8912
|
+
approved: z.ZodBoolean;
|
|
8913
|
+
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
8914
|
+
}, "strip", z.ZodTypeAny, {
|
|
8915
|
+
id: string;
|
|
8916
|
+
approved: boolean;
|
|
8917
|
+
reviewNotes?: string | undefined;
|
|
8918
|
+
}, {
|
|
8919
|
+
id: string;
|
|
8920
|
+
approved: boolean;
|
|
8921
|
+
reviewNotes?: string | undefined;
|
|
8922
|
+
}>, z.ZodObject<{
|
|
8923
|
+
success: z.ZodBoolean;
|
|
8924
|
+
}, "strip", z.ZodTypeAny, {
|
|
8925
|
+
success: boolean;
|
|
8926
|
+
}, {
|
|
8927
|
+
success: boolean;
|
|
8928
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
7263
8929
|
resolve: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
7264
|
-
|
|
8930
|
+
id: z.ZodString;
|
|
7265
8931
|
notes: z.ZodOptional<z.ZodString>;
|
|
7266
8932
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
7267
8933
|
}, "strip", z.ZodTypeAny, {
|
|
7268
|
-
|
|
8934
|
+
id: string;
|
|
7269
8935
|
notes?: string | undefined;
|
|
7270
8936
|
cost?: number | undefined;
|
|
7271
8937
|
}, {
|
|
7272
|
-
|
|
8938
|
+
id: string;
|
|
7273
8939
|
notes?: string | undefined;
|
|
7274
8940
|
cost?: number | undefined;
|
|
7275
8941
|
}>, z.ZodObject<{
|
|
@@ -7280,6 +8946,122 @@ declare const appContract: {
|
|
|
7280
8946
|
success: boolean;
|
|
7281
8947
|
}>, Record<never, never>, Record<never, never>>;
|
|
7282
8948
|
};
|
|
8949
|
+
applications: {
|
|
8950
|
+
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
8951
|
+
branchId: z.ZodString;
|
|
8952
|
+
status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>>;
|
|
8953
|
+
applicationType: z.ZodOptional<z.ZodEnum<["route", "trip"]>>;
|
|
8954
|
+
}, "strip", z.ZodTypeAny, {
|
|
8955
|
+
branchId: string;
|
|
8956
|
+
status?: "cancelled" | "pending" | "approved" | "rejected" | undefined;
|
|
8957
|
+
applicationType?: "route" | "trip" | undefined;
|
|
8958
|
+
}, {
|
|
8959
|
+
branchId: string;
|
|
8960
|
+
status?: "cancelled" | "pending" | "approved" | "rejected" | undefined;
|
|
8961
|
+
applicationType?: "route" | "trip" | undefined;
|
|
8962
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
8963
|
+
id: z.ZodString;
|
|
8964
|
+
branchId: z.ZodString;
|
|
8965
|
+
studentId: z.ZodString;
|
|
8966
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
8967
|
+
routeId: z.ZodNullable<z.ZodString>;
|
|
8968
|
+
tripLogId: z.ZodNullable<z.ZodString>;
|
|
8969
|
+
status: z.ZodEnum<["pending", "approved", "rejected", "cancelled"]>;
|
|
8970
|
+
appliedBy: z.ZodString;
|
|
8971
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
8972
|
+
reviewNotes: z.ZodNullable<z.ZodString>;
|
|
8973
|
+
feeItemId: z.ZodNullable<z.ZodString>;
|
|
8974
|
+
invoiceUpdated: z.ZodBoolean;
|
|
8975
|
+
createdAt: z.ZodString;
|
|
8976
|
+
studentName: z.ZodOptional<z.ZodString>;
|
|
8977
|
+
routeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8978
|
+
tripTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8979
|
+
}, "strip", z.ZodTypeAny, {
|
|
8980
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
8981
|
+
id: string;
|
|
8982
|
+
branchId: string;
|
|
8983
|
+
createdAt: string;
|
|
8984
|
+
studentId: string;
|
|
8985
|
+
routeId: string | null;
|
|
8986
|
+
reviewedBy: string | null;
|
|
8987
|
+
reviewNotes: string | null;
|
|
8988
|
+
applicationType: "route" | "trip";
|
|
8989
|
+
tripLogId: string | null;
|
|
8990
|
+
appliedBy: string;
|
|
8991
|
+
feeItemId: string | null;
|
|
8992
|
+
invoiceUpdated: boolean;
|
|
8993
|
+
studentName?: string | undefined;
|
|
8994
|
+
routeName?: string | null | undefined;
|
|
8995
|
+
tripTitle?: string | null | undefined;
|
|
8996
|
+
}, {
|
|
8997
|
+
status: "cancelled" | "pending" | "approved" | "rejected";
|
|
8998
|
+
id: string;
|
|
8999
|
+
branchId: string;
|
|
9000
|
+
createdAt: string;
|
|
9001
|
+
studentId: string;
|
|
9002
|
+
routeId: string | null;
|
|
9003
|
+
reviewedBy: string | null;
|
|
9004
|
+
reviewNotes: string | null;
|
|
9005
|
+
applicationType: "route" | "trip";
|
|
9006
|
+
tripLogId: string | null;
|
|
9007
|
+
appliedBy: string;
|
|
9008
|
+
feeItemId: string | null;
|
|
9009
|
+
invoiceUpdated: boolean;
|
|
9010
|
+
studentName?: string | undefined;
|
|
9011
|
+
routeName?: string | null | undefined;
|
|
9012
|
+
tripTitle?: string | null | undefined;
|
|
9013
|
+
}>, "many">, Record<never, never>, Record<never, never>>;
|
|
9014
|
+
apply: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
9015
|
+
branchId: z.ZodString;
|
|
9016
|
+
studentId: z.ZodString;
|
|
9017
|
+
applicationType: z.ZodEnum<["route", "trip"]>;
|
|
9018
|
+
routeId: z.ZodOptional<z.ZodString>;
|
|
9019
|
+
tripLogId: z.ZodOptional<z.ZodString>;
|
|
9020
|
+
feeItemId: z.ZodOptional<z.ZodString>;
|
|
9021
|
+
}, "strip", z.ZodTypeAny, {
|
|
9022
|
+
branchId: string;
|
|
9023
|
+
studentId: string;
|
|
9024
|
+
applicationType: "route" | "trip";
|
|
9025
|
+
routeId?: string | undefined;
|
|
9026
|
+
tripLogId?: string | undefined;
|
|
9027
|
+
feeItemId?: string | undefined;
|
|
9028
|
+
}, {
|
|
9029
|
+
branchId: string;
|
|
9030
|
+
studentId: string;
|
|
9031
|
+
applicationType: "route" | "trip";
|
|
9032
|
+
routeId?: string | undefined;
|
|
9033
|
+
tripLogId?: string | undefined;
|
|
9034
|
+
feeItemId?: string | undefined;
|
|
9035
|
+
}>, z.ZodObject<{
|
|
9036
|
+
id: z.ZodString;
|
|
9037
|
+
}, "strip", z.ZodTypeAny, {
|
|
9038
|
+
id: string;
|
|
9039
|
+
}, {
|
|
9040
|
+
id: string;
|
|
9041
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
9042
|
+
review: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
9043
|
+
id: z.ZodString;
|
|
9044
|
+
approved: z.ZodBoolean;
|
|
9045
|
+
reviewNotes: z.ZodOptional<z.ZodString>;
|
|
9046
|
+
updateInvoice: z.ZodOptional<z.ZodBoolean>;
|
|
9047
|
+
}, "strip", z.ZodTypeAny, {
|
|
9048
|
+
id: string;
|
|
9049
|
+
approved: boolean;
|
|
9050
|
+
reviewNotes?: string | undefined;
|
|
9051
|
+
updateInvoice?: boolean | undefined;
|
|
9052
|
+
}, {
|
|
9053
|
+
id: string;
|
|
9054
|
+
approved: boolean;
|
|
9055
|
+
reviewNotes?: string | undefined;
|
|
9056
|
+
updateInvoice?: boolean | undefined;
|
|
9057
|
+
}>, z.ZodObject<{
|
|
9058
|
+
success: z.ZodBoolean;
|
|
9059
|
+
}, "strip", z.ZodTypeAny, {
|
|
9060
|
+
success: boolean;
|
|
9061
|
+
}, {
|
|
9062
|
+
success: boolean;
|
|
9063
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
9064
|
+
};
|
|
7283
9065
|
};
|
|
7284
9066
|
assets: {
|
|
7285
9067
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -7393,12 +9175,12 @@ declare const appContract: {
|
|
|
7393
9175
|
notes: z.ZodOptional<z.ZodString>;
|
|
7394
9176
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
7395
9177
|
}, "strip", z.ZodTypeAny, {
|
|
7396
|
-
status: "
|
|
9178
|
+
status: "in_progress" | "resolved" | "open" | "closed";
|
|
7397
9179
|
ticketId: string;
|
|
7398
9180
|
notes?: string | undefined;
|
|
7399
9181
|
cost?: number | undefined;
|
|
7400
9182
|
}, {
|
|
7401
|
-
status: "
|
|
9183
|
+
status: "in_progress" | "resolved" | "open" | "closed";
|
|
7402
9184
|
ticketId: string;
|
|
7403
9185
|
notes?: string | undefined;
|
|
7404
9186
|
cost?: number | undefined;
|
|
@@ -7566,13 +9348,13 @@ declare const appContract: {
|
|
|
7566
9348
|
page: number;
|
|
7567
9349
|
limit: number;
|
|
7568
9350
|
branchId: string;
|
|
7569
|
-
status?: "hod_review" | "
|
|
9351
|
+
status?: "hod_review" | "resolved" | "open" | "counsellor_review" | "principal_ruling" | undefined;
|
|
7570
9352
|
studentId?: string | undefined;
|
|
7571
9353
|
}, {
|
|
7572
9354
|
branchId: string;
|
|
7573
9355
|
page?: number | undefined;
|
|
7574
9356
|
limit?: number | undefined;
|
|
7575
|
-
status?: "hod_review" | "
|
|
9357
|
+
status?: "hod_review" | "resolved" | "open" | "counsellor_review" | "principal_ruling" | undefined;
|
|
7576
9358
|
studentId?: string | undefined;
|
|
7577
9359
|
}>, z.ZodObject<{
|
|
7578
9360
|
data: z.ZodArray<z.ZodAny, "many">;
|