@brite-future-schools-contracts/contracts 1.0.4 → 1.0.7

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.
@@ -2674,25 +2674,507 @@ declare const transportContract: {
2674
2674
  branchId: string;
2675
2675
  }>, z.ZodArray<z.ZodObject<{
2676
2676
  id: z.ZodString;
2677
+ branchId: z.ZodString;
2677
2678
  plateNo: z.ZodString;
2678
- type: z.ZodString;
2679
- status: z.ZodString;
2680
- currentTrip: z.ZodNullable<z.ZodAny>;
2679
+ make: z.ZodNullable<z.ZodString>;
2680
+ model: z.ZodNullable<z.ZodString>;
2681
+ capacity: z.ZodNullable<z.ZodNumber>;
2682
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
2683
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
2684
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
2685
+ inspectionDate: z.ZodNullable<z.ZodString>;
2686
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
2687
+ driverUserId: z.ZodNullable<z.ZodString>;
2688
+ createdAt: z.ZodString;
2681
2689
  }, "strip", z.ZodTypeAny, {
2682
- type: string;
2683
- status: string;
2690
+ type: "bus" | "van" | "pickup" | "other";
2691
+ status: "active" | "in_maintenance" | "decommissioned";
2684
2692
  id: string;
2693
+ branchId: string;
2694
+ createdAt: string;
2685
2695
  plateNo: string;
2686
- currentTrip?: any;
2696
+ make: string | null;
2697
+ model: string | null;
2698
+ capacity: number | null;
2699
+ ownershipType: "owned" | "contracted";
2700
+ insuranceExpiry: string | null;
2701
+ inspectionDate: string | null;
2702
+ driverUserId: string | null;
2687
2703
  }, {
2688
- type: string;
2689
- status: string;
2704
+ type: "bus" | "van" | "pickup" | "other";
2705
+ status: "active" | "in_maintenance" | "decommissioned";
2690
2706
  id: string;
2707
+ branchId: string;
2708
+ createdAt: string;
2691
2709
  plateNo: string;
2692
- currentTrip?: any;
2710
+ make: string | null;
2711
+ model: string | null;
2712
+ capacity: number | null;
2713
+ ownershipType: "owned" | "contracted";
2714
+ insuranceExpiry: string | null;
2715
+ inspectionDate: string | null;
2716
+ driverUserId: string | null;
2717
+ }>, "many">, Record<never, never>, Record<never, never>>;
2718
+ create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2719
+ branchId: z.ZodString;
2720
+ plateNo: z.ZodString;
2721
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
2722
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
2723
+ make: z.ZodOptional<z.ZodString>;
2724
+ model: z.ZodOptional<z.ZodString>;
2725
+ capacity: z.ZodOptional<z.ZodNumber>;
2726
+ insuranceExpiry: z.ZodOptional<z.ZodString>;
2727
+ inspectionDate: z.ZodOptional<z.ZodString>;
2728
+ driverUserId: z.ZodOptional<z.ZodString>;
2729
+ }, "strip", z.ZodTypeAny, {
2730
+ type: "bus" | "van" | "pickup" | "other";
2731
+ branchId: string;
2732
+ plateNo: string;
2733
+ ownershipType: "owned" | "contracted";
2734
+ make?: string | undefined;
2735
+ model?: string | undefined;
2736
+ capacity?: number | undefined;
2737
+ insuranceExpiry?: string | undefined;
2738
+ inspectionDate?: string | undefined;
2739
+ driverUserId?: string | undefined;
2740
+ }, {
2741
+ type: "bus" | "van" | "pickup" | "other";
2742
+ branchId: string;
2743
+ plateNo: string;
2744
+ ownershipType: "owned" | "contracted";
2745
+ make?: string | undefined;
2746
+ model?: string | undefined;
2747
+ capacity?: number | undefined;
2748
+ insuranceExpiry?: string | undefined;
2749
+ inspectionDate?: string | undefined;
2750
+ driverUserId?: string | undefined;
2751
+ }>, z.ZodObject<{
2752
+ id: z.ZodString;
2753
+ branchId: z.ZodString;
2754
+ plateNo: z.ZodString;
2755
+ make: z.ZodNullable<z.ZodString>;
2756
+ model: z.ZodNullable<z.ZodString>;
2757
+ capacity: z.ZodNullable<z.ZodNumber>;
2758
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
2759
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
2760
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
2761
+ inspectionDate: z.ZodNullable<z.ZodString>;
2762
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
2763
+ driverUserId: z.ZodNullable<z.ZodString>;
2764
+ createdAt: z.ZodString;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ type: "bus" | "van" | "pickup" | "other";
2767
+ status: "active" | "in_maintenance" | "decommissioned";
2768
+ id: string;
2769
+ branchId: string;
2770
+ createdAt: string;
2771
+ plateNo: string;
2772
+ make: string | null;
2773
+ model: string | null;
2774
+ capacity: number | null;
2775
+ ownershipType: "owned" | "contracted";
2776
+ insuranceExpiry: string | null;
2777
+ inspectionDate: string | null;
2778
+ driverUserId: string | null;
2779
+ }, {
2780
+ type: "bus" | "van" | "pickup" | "other";
2781
+ status: "active" | "in_maintenance" | "decommissioned";
2782
+ id: string;
2783
+ branchId: string;
2784
+ createdAt: string;
2785
+ plateNo: string;
2786
+ make: string | null;
2787
+ model: string | null;
2788
+ capacity: number | null;
2789
+ ownershipType: "owned" | "contracted";
2790
+ insuranceExpiry: string | null;
2791
+ inspectionDate: string | null;
2792
+ driverUserId: string | null;
2793
+ }>, Record<never, never>, Record<never, never>>;
2794
+ updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2795
+ id: z.ZodString;
2796
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ status: "active" | "in_maintenance" | "decommissioned";
2799
+ id: string;
2800
+ }, {
2801
+ status: "active" | "in_maintenance" | "decommissioned";
2802
+ id: string;
2803
+ }>, z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ branchId: z.ZodString;
2806
+ plateNo: z.ZodString;
2807
+ make: z.ZodNullable<z.ZodString>;
2808
+ model: z.ZodNullable<z.ZodString>;
2809
+ capacity: z.ZodNullable<z.ZodNumber>;
2810
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
2811
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
2812
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
2813
+ inspectionDate: z.ZodNullable<z.ZodString>;
2814
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
2815
+ driverUserId: z.ZodNullable<z.ZodString>;
2816
+ createdAt: z.ZodString;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ type: "bus" | "van" | "pickup" | "other";
2819
+ status: "active" | "in_maintenance" | "decommissioned";
2820
+ id: string;
2821
+ branchId: string;
2822
+ createdAt: string;
2823
+ plateNo: string;
2824
+ make: string | null;
2825
+ model: string | null;
2826
+ capacity: number | null;
2827
+ ownershipType: "owned" | "contracted";
2828
+ insuranceExpiry: string | null;
2829
+ inspectionDate: string | null;
2830
+ driverUserId: string | null;
2831
+ }, {
2832
+ type: "bus" | "van" | "pickup" | "other";
2833
+ status: "active" | "in_maintenance" | "decommissioned";
2834
+ id: string;
2835
+ branchId: string;
2836
+ createdAt: string;
2837
+ plateNo: string;
2838
+ make: string | null;
2839
+ model: string | null;
2840
+ capacity: number | null;
2841
+ ownershipType: "owned" | "contracted";
2842
+ insuranceExpiry: string | null;
2843
+ inspectionDate: string | null;
2844
+ driverUserId: string | null;
2845
+ }>, Record<never, never>, Record<never, never>>;
2846
+ };
2847
+ routes: {
2848
+ list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2849
+ branchId: z.ZodString;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ branchId: string;
2852
+ }, {
2853
+ branchId: string;
2854
+ }>, z.ZodArray<z.ZodObject<{
2855
+ id: z.ZodString;
2856
+ branchId: z.ZodString;
2857
+ name: z.ZodString;
2858
+ description: z.ZodNullable<z.ZodString>;
2859
+ isActive: z.ZodBoolean;
2860
+ stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
2861
+ id: z.ZodString;
2862
+ stopName: z.ZodString;
2863
+ stopOrder: z.ZodNumber;
2864
+ estimatedTime: z.ZodNullable<z.ZodString>;
2865
+ }, "strip", z.ZodTypeAny, {
2866
+ id: string;
2867
+ stopName: string;
2868
+ stopOrder: number;
2869
+ estimatedTime: string | null;
2870
+ }, {
2871
+ id: string;
2872
+ stopName: string;
2873
+ stopOrder: number;
2874
+ estimatedTime: string | null;
2875
+ }>, "many">>;
2876
+ }, "strip", z.ZodTypeAny, {
2877
+ id: string;
2878
+ name: string;
2879
+ branchId: string;
2880
+ isActive: boolean;
2881
+ description: string | null;
2882
+ stops?: {
2883
+ id: string;
2884
+ stopName: string;
2885
+ stopOrder: number;
2886
+ estimatedTime: string | null;
2887
+ }[] | undefined;
2888
+ }, {
2889
+ id: string;
2890
+ name: string;
2891
+ branchId: string;
2892
+ isActive: boolean;
2893
+ description: string | null;
2894
+ stops?: {
2895
+ id: string;
2896
+ stopName: string;
2897
+ stopOrder: number;
2898
+ estimatedTime: string | null;
2899
+ }[] | undefined;
2693
2900
  }>, "many">, Record<never, never>, Record<never, never>>;
2901
+ create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2902
+ branchId: z.ZodString;
2903
+ name: z.ZodString;
2904
+ description: z.ZodOptional<z.ZodString>;
2905
+ stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
2906
+ stopName: z.ZodString;
2907
+ stopOrder: z.ZodNumber;
2908
+ estimatedTime: z.ZodOptional<z.ZodString>;
2909
+ }, "strip", z.ZodTypeAny, {
2910
+ stopName: string;
2911
+ stopOrder: number;
2912
+ estimatedTime?: string | undefined;
2913
+ }, {
2914
+ stopName: string;
2915
+ stopOrder: number;
2916
+ estimatedTime?: string | undefined;
2917
+ }>, "many">>;
2918
+ }, "strip", z.ZodTypeAny, {
2919
+ name: string;
2920
+ branchId: string;
2921
+ description?: string | undefined;
2922
+ stops?: {
2923
+ stopName: string;
2924
+ stopOrder: number;
2925
+ estimatedTime?: string | undefined;
2926
+ }[] | undefined;
2927
+ }, {
2928
+ name: string;
2929
+ branchId: string;
2930
+ description?: string | undefined;
2931
+ stops?: {
2932
+ stopName: string;
2933
+ stopOrder: number;
2934
+ estimatedTime?: string | undefined;
2935
+ }[] | undefined;
2936
+ }>, z.ZodObject<{
2937
+ id: z.ZodString;
2938
+ branchId: z.ZodString;
2939
+ name: z.ZodString;
2940
+ description: z.ZodNullable<z.ZodString>;
2941
+ isActive: z.ZodBoolean;
2942
+ stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
2943
+ id: z.ZodString;
2944
+ stopName: z.ZodString;
2945
+ stopOrder: z.ZodNumber;
2946
+ estimatedTime: z.ZodNullable<z.ZodString>;
2947
+ }, "strip", z.ZodTypeAny, {
2948
+ id: string;
2949
+ stopName: string;
2950
+ stopOrder: number;
2951
+ estimatedTime: string | null;
2952
+ }, {
2953
+ id: string;
2954
+ stopName: string;
2955
+ stopOrder: number;
2956
+ estimatedTime: string | null;
2957
+ }>, "many">>;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ id: string;
2960
+ name: string;
2961
+ branchId: string;
2962
+ isActive: boolean;
2963
+ description: string | null;
2964
+ stops?: {
2965
+ id: string;
2966
+ stopName: string;
2967
+ stopOrder: number;
2968
+ estimatedTime: string | null;
2969
+ }[] | undefined;
2970
+ }, {
2971
+ id: string;
2972
+ name: string;
2973
+ branchId: string;
2974
+ isActive: boolean;
2975
+ description: string | null;
2976
+ stops?: {
2977
+ id: string;
2978
+ stopName: string;
2979
+ stopOrder: number;
2980
+ estimatedTime: string | null;
2981
+ }[] | undefined;
2982
+ }>, Record<never, never>, Record<never, never>>;
2983
+ toggle: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2984
+ id: z.ZodString;
2985
+ isActive: z.ZodBoolean;
2986
+ }, "strip", z.ZodTypeAny, {
2987
+ id: string;
2988
+ isActive: boolean;
2989
+ }, {
2990
+ id: string;
2991
+ isActive: boolean;
2992
+ }>, z.ZodObject<{
2993
+ success: z.ZodBoolean;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ success: boolean;
2996
+ }, {
2997
+ success: boolean;
2998
+ }>, Record<never, never>, Record<never, never>>;
2694
2999
  };
2695
3000
  trips: {
3001
+ list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3002
+ branchId: z.ZodString;
3003
+ date: z.ZodOptional<z.ZodString>;
3004
+ vehicleId: z.ZodOptional<z.ZodString>;
3005
+ }, "strip", z.ZodTypeAny, {
3006
+ branchId: string;
3007
+ date?: string | undefined;
3008
+ vehicleId?: string | undefined;
3009
+ }, {
3010
+ branchId: string;
3011
+ date?: string | undefined;
3012
+ vehicleId?: string | undefined;
3013
+ }>, z.ZodArray<z.ZodObject<{
3014
+ id: z.ZodString;
3015
+ branchId: z.ZodString;
3016
+ vehicleId: z.ZodString;
3017
+ routeId: z.ZodNullable<z.ZodString>;
3018
+ driverUserId: z.ZodString;
3019
+ departureTime: z.ZodString;
3020
+ arrivalTime: z.ZodNullable<z.ZodString>;
3021
+ tripType: z.ZodEnum<["morning", "evening", "errand"]>;
3022
+ notes: z.ZodNullable<z.ZodString>;
3023
+ createdAt: z.ZodString;
3024
+ vehicle: z.ZodOptional<z.ZodObject<{
3025
+ plateNo: z.ZodString;
3026
+ type: z.ZodString;
3027
+ }, "strip", z.ZodTypeAny, {
3028
+ type: string;
3029
+ plateNo: string;
3030
+ }, {
3031
+ type: string;
3032
+ plateNo: string;
3033
+ }>>;
3034
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3035
+ name: z.ZodString;
3036
+ }, "strip", z.ZodTypeAny, {
3037
+ name: string;
3038
+ }, {
3039
+ name: string;
3040
+ }>>>;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ id: string;
3043
+ branchId: string;
3044
+ createdAt: string;
3045
+ vehicleId: string;
3046
+ routeId: string | null;
3047
+ departureTime: string;
3048
+ tripType: "morning" | "evening" | "errand";
3049
+ driverUserId: string;
3050
+ arrivalTime: string | null;
3051
+ notes: string | null;
3052
+ vehicle?: {
3053
+ type: string;
3054
+ plateNo: string;
3055
+ } | undefined;
3056
+ route?: {
3057
+ name: string;
3058
+ } | null | undefined;
3059
+ }, {
3060
+ id: string;
3061
+ branchId: string;
3062
+ createdAt: string;
3063
+ vehicleId: string;
3064
+ routeId: string | null;
3065
+ departureTime: string;
3066
+ tripType: "morning" | "evening" | "errand";
3067
+ driverUserId: string;
3068
+ arrivalTime: string | null;
3069
+ notes: string | null;
3070
+ vehicle?: {
3071
+ type: string;
3072
+ plateNo: string;
3073
+ } | undefined;
3074
+ route?: {
3075
+ name: string;
3076
+ } | null | undefined;
3077
+ }>, "many">, Record<never, never>, Record<never, never>>;
3078
+ get: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3079
+ tripId: z.ZodString;
3080
+ }, "strip", z.ZodTypeAny, {
3081
+ tripId: string;
3082
+ }, {
3083
+ tripId: string;
3084
+ }>, z.ZodObject<{
3085
+ id: z.ZodString;
3086
+ branchId: z.ZodString;
3087
+ vehicleId: z.ZodString;
3088
+ routeId: z.ZodNullable<z.ZodString>;
3089
+ driverUserId: z.ZodString;
3090
+ departureTime: z.ZodString;
3091
+ arrivalTime: z.ZodNullable<z.ZodString>;
3092
+ tripType: z.ZodEnum<["morning", "evening", "errand"]>;
3093
+ notes: z.ZodNullable<z.ZodString>;
3094
+ createdAt: z.ZodString;
3095
+ vehicle: z.ZodOptional<z.ZodObject<{
3096
+ plateNo: z.ZodString;
3097
+ type: z.ZodString;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ type: string;
3100
+ plateNo: string;
3101
+ }, {
3102
+ type: string;
3103
+ plateNo: string;
3104
+ }>>;
3105
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3106
+ name: z.ZodString;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ name: string;
3109
+ }, {
3110
+ name: string;
3111
+ }>>>;
3112
+ } & {
3113
+ boardings: z.ZodArray<z.ZodObject<{
3114
+ studentId: z.ZodString;
3115
+ studentName: z.ZodString;
3116
+ status: z.ZodEnum<["boarded", "alighted", "absent"]>;
3117
+ recordedAt: z.ZodString;
3118
+ }, "strip", z.ZodTypeAny, {
3119
+ status: "boarded" | "alighted" | "absent";
3120
+ studentId: string;
3121
+ studentName: string;
3122
+ recordedAt: string;
3123
+ }, {
3124
+ status: "boarded" | "alighted" | "absent";
3125
+ studentId: string;
3126
+ studentName: string;
3127
+ recordedAt: string;
3128
+ }>, "many">;
3129
+ }, "strip", z.ZodTypeAny, {
3130
+ id: string;
3131
+ branchId: string;
3132
+ createdAt: string;
3133
+ vehicleId: string;
3134
+ routeId: string | null;
3135
+ departureTime: string;
3136
+ tripType: "morning" | "evening" | "errand";
3137
+ driverUserId: string;
3138
+ arrivalTime: string | null;
3139
+ notes: string | null;
3140
+ boardings: {
3141
+ status: "boarded" | "alighted" | "absent";
3142
+ studentId: string;
3143
+ studentName: string;
3144
+ recordedAt: string;
3145
+ }[];
3146
+ vehicle?: {
3147
+ type: string;
3148
+ plateNo: string;
3149
+ } | undefined;
3150
+ route?: {
3151
+ name: string;
3152
+ } | null | undefined;
3153
+ }, {
3154
+ id: string;
3155
+ branchId: string;
3156
+ createdAt: string;
3157
+ vehicleId: string;
3158
+ routeId: string | null;
3159
+ departureTime: string;
3160
+ tripType: "morning" | "evening" | "errand";
3161
+ driverUserId: string;
3162
+ arrivalTime: string | null;
3163
+ notes: string | null;
3164
+ boardings: {
3165
+ status: "boarded" | "alighted" | "absent";
3166
+ studentId: string;
3167
+ studentName: string;
3168
+ recordedAt: string;
3169
+ }[];
3170
+ vehicle?: {
3171
+ type: string;
3172
+ plateNo: string;
3173
+ } | undefined;
3174
+ route?: {
3175
+ name: string;
3176
+ } | null | undefined;
3177
+ }>, Record<never, never>, Record<never, never>>;
2696
3178
  start: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2697
3179
  vehicleId: z.ZodString;
2698
3180
  routeId: z.ZodString;
@@ -2750,11 +3232,11 @@ declare const transportContract: {
2750
3232
  tripId: z.ZodString;
2751
3233
  arrivalTime: z.ZodString;
2752
3234
  }, "strip", z.ZodTypeAny, {
2753
- tripId: string;
2754
3235
  arrivalTime: string;
2755
- }, {
2756
3236
  tripId: string;
3237
+ }, {
2757
3238
  arrivalTime: string;
3239
+ tripId: string;
2758
3240
  }>, z.ZodObject<{
2759
3241
  success: z.ZodBoolean;
2760
3242
  }, "strip", z.ZodTypeAny, {
@@ -2768,13 +3250,13 @@ declare const transportContract: {
2768
3250
  severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
2769
3251
  location: z.ZodOptional<z.ZodString>;
2770
3252
  }, "strip", z.ZodTypeAny, {
2771
- tripId: string;
2772
3253
  description: string;
3254
+ tripId: string;
2773
3255
  severity: "minor" | "moderate" | "serious" | "critical";
2774
3256
  location?: string | undefined;
2775
3257
  }, {
2776
- tripId: string;
2777
3258
  description: string;
3259
+ tripId: string;
2778
3260
  severity: "minor" | "moderate" | "serious" | "critical";
2779
3261
  location?: string | undefined;
2780
3262
  }>, z.ZodObject<{
@@ -2808,10 +3290,29 @@ declare const transportContract: {
2808
3290
  list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2809
3291
  vehicleId: z.ZodString;
2810
3292
  }, "strip", z.ZodTypeAny, {
2811
- vehicleId: string;
3293
+ vehicleId: string;
3294
+ }, {
3295
+ vehicleId: string;
3296
+ }>, z.ZodArray<z.ZodAny, "many">, Record<never, never>, Record<never, never>>;
3297
+ resolve: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3298
+ logId: z.ZodString;
3299
+ notes: z.ZodOptional<z.ZodString>;
3300
+ cost: z.ZodOptional<z.ZodNumber>;
3301
+ }, "strip", z.ZodTypeAny, {
3302
+ logId: string;
3303
+ notes?: string | undefined;
3304
+ cost?: number | undefined;
3305
+ }, {
3306
+ logId: string;
3307
+ notes?: string | undefined;
3308
+ cost?: number | undefined;
3309
+ }>, z.ZodObject<{
3310
+ success: z.ZodBoolean;
3311
+ }, "strip", z.ZodTypeAny, {
3312
+ success: boolean;
2812
3313
  }, {
2813
- vehicleId: string;
2814
- }>, z.ZodArray<z.ZodAny, "many">, Record<never, never>, Record<never, never>>;
3314
+ success: boolean;
3315
+ }>, Record<never, never>, Record<never, never>>;
2815
3316
  };
2816
3317
  };
2817
3318
  declare const assetsContract: {
@@ -2827,13 +3328,13 @@ declare const assetsContract: {
2827
3328
  limit: number;
2828
3329
  branchId: string;
2829
3330
  search?: string | undefined;
2830
- category?: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
3331
+ category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
2831
3332
  }, {
2832
3333
  branchId: string;
2833
3334
  page?: number | undefined;
2834
3335
  limit?: number | undefined;
2835
3336
  search?: string | undefined;
2836
- category?: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
3337
+ category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
2837
3338
  }>, z.ZodObject<{
2838
3339
  data: z.ZodArray<z.ZodAny, "many">;
2839
3340
  total: z.ZodNumber;
@@ -2856,7 +3357,7 @@ declare const assetsContract: {
2856
3357
  depreciationRate: z.ZodNumber;
2857
3358
  }, "strip", z.ZodTypeAny, {
2858
3359
  name: string;
2859
- category: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
3360
+ category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
2860
3361
  purchaseDate: string;
2861
3362
  purchaseCost: number;
2862
3363
  condition: "excellent" | "good" | "fair" | "poor" | "condemned";
@@ -2866,7 +3367,7 @@ declare const assetsContract: {
2866
3367
  warrantyExpiry?: string | undefined;
2867
3368
  }, {
2868
3369
  name: string;
2869
- category: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
3370
+ category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
2870
3371
  purchaseDate: string;
2871
3372
  purchaseCost: number;
2872
3373
  condition: "excellent" | "good" | "fair" | "poor" | "condemned";
@@ -6139,25 +6640,507 @@ declare const appContract: {
6139
6640
  branchId: string;
6140
6641
  }>, z.ZodArray<z.ZodObject<{
6141
6642
  id: z.ZodString;
6643
+ branchId: z.ZodString;
6142
6644
  plateNo: z.ZodString;
6143
- type: z.ZodString;
6144
- status: z.ZodString;
6145
- currentTrip: z.ZodNullable<z.ZodAny>;
6645
+ make: z.ZodNullable<z.ZodString>;
6646
+ model: z.ZodNullable<z.ZodString>;
6647
+ capacity: z.ZodNullable<z.ZodNumber>;
6648
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
6649
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
6650
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
6651
+ inspectionDate: z.ZodNullable<z.ZodString>;
6652
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
6653
+ driverUserId: z.ZodNullable<z.ZodString>;
6654
+ createdAt: z.ZodString;
6146
6655
  }, "strip", z.ZodTypeAny, {
6147
- type: string;
6148
- status: string;
6656
+ type: "bus" | "van" | "pickup" | "other";
6657
+ status: "active" | "in_maintenance" | "decommissioned";
6658
+ id: string;
6659
+ branchId: string;
6660
+ createdAt: string;
6661
+ plateNo: string;
6662
+ make: string | null;
6663
+ model: string | null;
6664
+ capacity: number | null;
6665
+ ownershipType: "owned" | "contracted";
6666
+ insuranceExpiry: string | null;
6667
+ inspectionDate: string | null;
6668
+ driverUserId: string | null;
6669
+ }, {
6670
+ type: "bus" | "van" | "pickup" | "other";
6671
+ status: "active" | "in_maintenance" | "decommissioned";
6672
+ id: string;
6673
+ branchId: string;
6674
+ createdAt: string;
6675
+ plateNo: string;
6676
+ make: string | null;
6677
+ model: string | null;
6678
+ capacity: number | null;
6679
+ ownershipType: "owned" | "contracted";
6680
+ insuranceExpiry: string | null;
6681
+ inspectionDate: string | null;
6682
+ driverUserId: string | null;
6683
+ }>, "many">, Record<never, never>, Record<never, never>>;
6684
+ create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6685
+ branchId: z.ZodString;
6686
+ plateNo: z.ZodString;
6687
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
6688
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
6689
+ make: z.ZodOptional<z.ZodString>;
6690
+ model: z.ZodOptional<z.ZodString>;
6691
+ capacity: z.ZodOptional<z.ZodNumber>;
6692
+ insuranceExpiry: z.ZodOptional<z.ZodString>;
6693
+ inspectionDate: z.ZodOptional<z.ZodString>;
6694
+ driverUserId: z.ZodOptional<z.ZodString>;
6695
+ }, "strip", z.ZodTypeAny, {
6696
+ type: "bus" | "van" | "pickup" | "other";
6697
+ branchId: string;
6698
+ plateNo: string;
6699
+ ownershipType: "owned" | "contracted";
6700
+ make?: string | undefined;
6701
+ model?: string | undefined;
6702
+ capacity?: number | undefined;
6703
+ insuranceExpiry?: string | undefined;
6704
+ inspectionDate?: string | undefined;
6705
+ driverUserId?: string | undefined;
6706
+ }, {
6707
+ type: "bus" | "van" | "pickup" | "other";
6708
+ branchId: string;
6709
+ plateNo: string;
6710
+ ownershipType: "owned" | "contracted";
6711
+ make?: string | undefined;
6712
+ model?: string | undefined;
6713
+ capacity?: number | undefined;
6714
+ insuranceExpiry?: string | undefined;
6715
+ inspectionDate?: string | undefined;
6716
+ driverUserId?: string | undefined;
6717
+ }>, z.ZodObject<{
6718
+ id: z.ZodString;
6719
+ branchId: z.ZodString;
6720
+ plateNo: z.ZodString;
6721
+ make: z.ZodNullable<z.ZodString>;
6722
+ model: z.ZodNullable<z.ZodString>;
6723
+ capacity: z.ZodNullable<z.ZodNumber>;
6724
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
6725
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
6726
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
6727
+ inspectionDate: z.ZodNullable<z.ZodString>;
6728
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
6729
+ driverUserId: z.ZodNullable<z.ZodString>;
6730
+ createdAt: z.ZodString;
6731
+ }, "strip", z.ZodTypeAny, {
6732
+ type: "bus" | "van" | "pickup" | "other";
6733
+ status: "active" | "in_maintenance" | "decommissioned";
6734
+ id: string;
6735
+ branchId: string;
6736
+ createdAt: string;
6737
+ plateNo: string;
6738
+ make: string | null;
6739
+ model: string | null;
6740
+ capacity: number | null;
6741
+ ownershipType: "owned" | "contracted";
6742
+ insuranceExpiry: string | null;
6743
+ inspectionDate: string | null;
6744
+ driverUserId: string | null;
6745
+ }, {
6746
+ type: "bus" | "van" | "pickup" | "other";
6747
+ status: "active" | "in_maintenance" | "decommissioned";
6149
6748
  id: string;
6749
+ branchId: string;
6750
+ createdAt: string;
6150
6751
  plateNo: string;
6151
- currentTrip?: any;
6752
+ make: string | null;
6753
+ model: string | null;
6754
+ capacity: number | null;
6755
+ ownershipType: "owned" | "contracted";
6756
+ insuranceExpiry: string | null;
6757
+ inspectionDate: string | null;
6758
+ driverUserId: string | null;
6759
+ }>, Record<never, never>, Record<never, never>>;
6760
+ updateStatus: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6761
+ id: z.ZodString;
6762
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
6763
+ }, "strip", z.ZodTypeAny, {
6764
+ status: "active" | "in_maintenance" | "decommissioned";
6765
+ id: string;
6152
6766
  }, {
6153
- type: string;
6154
- status: string;
6767
+ status: "active" | "in_maintenance" | "decommissioned";
6155
6768
  id: string;
6769
+ }>, z.ZodObject<{
6770
+ id: z.ZodString;
6771
+ branchId: z.ZodString;
6772
+ plateNo: z.ZodString;
6773
+ make: z.ZodNullable<z.ZodString>;
6774
+ model: z.ZodNullable<z.ZodString>;
6775
+ capacity: z.ZodNullable<z.ZodNumber>;
6776
+ type: z.ZodEnum<["bus", "van", "pickup", "other"]>;
6777
+ ownershipType: z.ZodEnum<["owned", "contracted"]>;
6778
+ insuranceExpiry: z.ZodNullable<z.ZodString>;
6779
+ inspectionDate: z.ZodNullable<z.ZodString>;
6780
+ status: z.ZodEnum<["active", "in_maintenance", "decommissioned"]>;
6781
+ driverUserId: z.ZodNullable<z.ZodString>;
6782
+ createdAt: z.ZodString;
6783
+ }, "strip", z.ZodTypeAny, {
6784
+ type: "bus" | "van" | "pickup" | "other";
6785
+ status: "active" | "in_maintenance" | "decommissioned";
6786
+ id: string;
6787
+ branchId: string;
6788
+ createdAt: string;
6789
+ plateNo: string;
6790
+ make: string | null;
6791
+ model: string | null;
6792
+ capacity: number | null;
6793
+ ownershipType: "owned" | "contracted";
6794
+ insuranceExpiry: string | null;
6795
+ inspectionDate: string | null;
6796
+ driverUserId: string | null;
6797
+ }, {
6798
+ type: "bus" | "van" | "pickup" | "other";
6799
+ status: "active" | "in_maintenance" | "decommissioned";
6800
+ id: string;
6801
+ branchId: string;
6802
+ createdAt: string;
6156
6803
  plateNo: string;
6157
- currentTrip?: any;
6804
+ make: string | null;
6805
+ model: string | null;
6806
+ capacity: number | null;
6807
+ ownershipType: "owned" | "contracted";
6808
+ insuranceExpiry: string | null;
6809
+ inspectionDate: string | null;
6810
+ driverUserId: string | null;
6811
+ }>, 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<{
6821
+ id: z.ZodString;
6822
+ branchId: z.ZodString;
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">>;
6842
+ }, "strip", z.ZodTypeAny, {
6843
+ 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
+ }, {
6855
+ id: string;
6856
+ name: string;
6857
+ branchId: string;
6858
+ isActive: boolean;
6859
+ description: string | null;
6860
+ stops?: {
6861
+ id: string;
6862
+ stopName: string;
6863
+ stopOrder: number;
6864
+ estimatedTime: string | null;
6865
+ }[] | undefined;
6158
6866
  }>, "many">, Record<never, never>, Record<never, never>>;
6867
+ create: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6868
+ branchId: z.ZodString;
6869
+ name: z.ZodString;
6870
+ description: z.ZodOptional<z.ZodString>;
6871
+ stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
6872
+ stopName: z.ZodString;
6873
+ stopOrder: z.ZodNumber;
6874
+ estimatedTime: z.ZodOptional<z.ZodString>;
6875
+ }, "strip", z.ZodTypeAny, {
6876
+ stopName: string;
6877
+ stopOrder: number;
6878
+ estimatedTime?: string | undefined;
6879
+ }, {
6880
+ stopName: string;
6881
+ stopOrder: number;
6882
+ estimatedTime?: string | undefined;
6883
+ }>, "many">>;
6884
+ }, "strip", z.ZodTypeAny, {
6885
+ name: string;
6886
+ branchId: string;
6887
+ description?: string | undefined;
6888
+ stops?: {
6889
+ stopName: string;
6890
+ stopOrder: number;
6891
+ estimatedTime?: string | undefined;
6892
+ }[] | undefined;
6893
+ }, {
6894
+ name: string;
6895
+ branchId: string;
6896
+ description?: string | undefined;
6897
+ stops?: {
6898
+ stopName: string;
6899
+ stopOrder: number;
6900
+ estimatedTime?: string | undefined;
6901
+ }[] | undefined;
6902
+ }>, z.ZodObject<{
6903
+ id: z.ZodString;
6904
+ branchId: z.ZodString;
6905
+ name: z.ZodString;
6906
+ description: z.ZodNullable<z.ZodString>;
6907
+ isActive: z.ZodBoolean;
6908
+ stops: z.ZodOptional<z.ZodArray<z.ZodObject<{
6909
+ id: z.ZodString;
6910
+ stopName: z.ZodString;
6911
+ stopOrder: z.ZodNumber;
6912
+ estimatedTime: z.ZodNullable<z.ZodString>;
6913
+ }, "strip", z.ZodTypeAny, {
6914
+ id: string;
6915
+ stopName: string;
6916
+ stopOrder: number;
6917
+ estimatedTime: string | null;
6918
+ }, {
6919
+ id: string;
6920
+ stopName: string;
6921
+ stopOrder: number;
6922
+ estimatedTime: string | null;
6923
+ }>, "many">>;
6924
+ }, "strip", z.ZodTypeAny, {
6925
+ id: string;
6926
+ name: string;
6927
+ branchId: string;
6928
+ isActive: boolean;
6929
+ description: string | null;
6930
+ stops?: {
6931
+ id: string;
6932
+ stopName: string;
6933
+ stopOrder: number;
6934
+ estimatedTime: string | null;
6935
+ }[] | undefined;
6936
+ }, {
6937
+ id: string;
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;
6948
+ }>, Record<never, never>, Record<never, never>>;
6949
+ toggle: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6950
+ id: z.ZodString;
6951
+ isActive: z.ZodBoolean;
6952
+ }, "strip", z.ZodTypeAny, {
6953
+ id: string;
6954
+ isActive: boolean;
6955
+ }, {
6956
+ id: string;
6957
+ isActive: boolean;
6958
+ }>, z.ZodObject<{
6959
+ success: z.ZodBoolean;
6960
+ }, "strip", z.ZodTypeAny, {
6961
+ success: boolean;
6962
+ }, {
6963
+ success: boolean;
6964
+ }>, Record<never, never>, Record<never, never>>;
6159
6965
  };
6160
6966
  trips: {
6967
+ list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6968
+ branchId: z.ZodString;
6969
+ date: z.ZodOptional<z.ZodString>;
6970
+ vehicleId: z.ZodOptional<z.ZodString>;
6971
+ }, "strip", z.ZodTypeAny, {
6972
+ branchId: string;
6973
+ date?: string | undefined;
6974
+ vehicleId?: string | undefined;
6975
+ }, {
6976
+ branchId: string;
6977
+ date?: string | undefined;
6978
+ vehicleId?: string | undefined;
6979
+ }>, z.ZodArray<z.ZodObject<{
6980
+ id: z.ZodString;
6981
+ branchId: z.ZodString;
6982
+ vehicleId: z.ZodString;
6983
+ routeId: z.ZodNullable<z.ZodString>;
6984
+ driverUserId: z.ZodString;
6985
+ departureTime: z.ZodString;
6986
+ arrivalTime: z.ZodNullable<z.ZodString>;
6987
+ tripType: z.ZodEnum<["morning", "evening", "errand"]>;
6988
+ notes: z.ZodNullable<z.ZodString>;
6989
+ createdAt: z.ZodString;
6990
+ vehicle: z.ZodOptional<z.ZodObject<{
6991
+ plateNo: z.ZodString;
6992
+ type: z.ZodString;
6993
+ }, "strip", z.ZodTypeAny, {
6994
+ type: string;
6995
+ plateNo: string;
6996
+ }, {
6997
+ type: string;
6998
+ plateNo: string;
6999
+ }>>;
7000
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7001
+ name: z.ZodString;
7002
+ }, "strip", z.ZodTypeAny, {
7003
+ name: string;
7004
+ }, {
7005
+ name: string;
7006
+ }>>>;
7007
+ }, "strip", z.ZodTypeAny, {
7008
+ id: string;
7009
+ branchId: string;
7010
+ createdAt: string;
7011
+ vehicleId: string;
7012
+ routeId: string | null;
7013
+ departureTime: string;
7014
+ tripType: "morning" | "evening" | "errand";
7015
+ driverUserId: string;
7016
+ arrivalTime: string | null;
7017
+ notes: string | null;
7018
+ vehicle?: {
7019
+ type: string;
7020
+ plateNo: string;
7021
+ } | undefined;
7022
+ route?: {
7023
+ name: string;
7024
+ } | null | undefined;
7025
+ }, {
7026
+ id: string;
7027
+ branchId: string;
7028
+ createdAt: string;
7029
+ vehicleId: string;
7030
+ routeId: string | null;
7031
+ departureTime: string;
7032
+ tripType: "morning" | "evening" | "errand";
7033
+ driverUserId: string;
7034
+ arrivalTime: string | null;
7035
+ notes: string | null;
7036
+ vehicle?: {
7037
+ type: string;
7038
+ plateNo: string;
7039
+ } | undefined;
7040
+ route?: {
7041
+ name: string;
7042
+ } | null | undefined;
7043
+ }>, "many">, Record<never, never>, Record<never, never>>;
7044
+ get: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7045
+ tripId: z.ZodString;
7046
+ }, "strip", z.ZodTypeAny, {
7047
+ tripId: string;
7048
+ }, {
7049
+ tripId: string;
7050
+ }>, z.ZodObject<{
7051
+ id: z.ZodString;
7052
+ branchId: z.ZodString;
7053
+ vehicleId: z.ZodString;
7054
+ routeId: z.ZodNullable<z.ZodString>;
7055
+ driverUserId: z.ZodString;
7056
+ departureTime: z.ZodString;
7057
+ arrivalTime: z.ZodNullable<z.ZodString>;
7058
+ tripType: z.ZodEnum<["morning", "evening", "errand"]>;
7059
+ notes: z.ZodNullable<z.ZodString>;
7060
+ createdAt: z.ZodString;
7061
+ vehicle: z.ZodOptional<z.ZodObject<{
7062
+ plateNo: z.ZodString;
7063
+ type: z.ZodString;
7064
+ }, "strip", z.ZodTypeAny, {
7065
+ type: string;
7066
+ plateNo: string;
7067
+ }, {
7068
+ type: string;
7069
+ plateNo: string;
7070
+ }>>;
7071
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7072
+ name: z.ZodString;
7073
+ }, "strip", z.ZodTypeAny, {
7074
+ name: string;
7075
+ }, {
7076
+ name: string;
7077
+ }>>>;
7078
+ } & {
7079
+ boardings: z.ZodArray<z.ZodObject<{
7080
+ studentId: z.ZodString;
7081
+ studentName: z.ZodString;
7082
+ status: z.ZodEnum<["boarded", "alighted", "absent"]>;
7083
+ recordedAt: z.ZodString;
7084
+ }, "strip", z.ZodTypeAny, {
7085
+ status: "boarded" | "alighted" | "absent";
7086
+ studentId: string;
7087
+ studentName: string;
7088
+ recordedAt: string;
7089
+ }, {
7090
+ status: "boarded" | "alighted" | "absent";
7091
+ studentId: string;
7092
+ studentName: string;
7093
+ recordedAt: string;
7094
+ }>, "many">;
7095
+ }, "strip", z.ZodTypeAny, {
7096
+ id: string;
7097
+ branchId: string;
7098
+ createdAt: string;
7099
+ vehicleId: string;
7100
+ routeId: string | null;
7101
+ departureTime: string;
7102
+ tripType: "morning" | "evening" | "errand";
7103
+ driverUserId: string;
7104
+ arrivalTime: string | null;
7105
+ notes: string | null;
7106
+ boardings: {
7107
+ status: "boarded" | "alighted" | "absent";
7108
+ studentId: string;
7109
+ studentName: string;
7110
+ recordedAt: string;
7111
+ }[];
7112
+ vehicle?: {
7113
+ type: string;
7114
+ plateNo: string;
7115
+ } | undefined;
7116
+ route?: {
7117
+ name: string;
7118
+ } | null | undefined;
7119
+ }, {
7120
+ id: string;
7121
+ branchId: string;
7122
+ createdAt: string;
7123
+ vehicleId: string;
7124
+ routeId: string | null;
7125
+ departureTime: string;
7126
+ tripType: "morning" | "evening" | "errand";
7127
+ driverUserId: string;
7128
+ arrivalTime: string | null;
7129
+ notes: string | null;
7130
+ boardings: {
7131
+ status: "boarded" | "alighted" | "absent";
7132
+ studentId: string;
7133
+ studentName: string;
7134
+ recordedAt: string;
7135
+ }[];
7136
+ vehicle?: {
7137
+ type: string;
7138
+ plateNo: string;
7139
+ } | undefined;
7140
+ route?: {
7141
+ name: string;
7142
+ } | null | undefined;
7143
+ }>, Record<never, never>, Record<never, never>>;
6161
7144
  start: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6162
7145
  vehicleId: z.ZodString;
6163
7146
  routeId: z.ZodString;
@@ -6215,11 +7198,11 @@ declare const appContract: {
6215
7198
  tripId: z.ZodString;
6216
7199
  arrivalTime: z.ZodString;
6217
7200
  }, "strip", z.ZodTypeAny, {
6218
- tripId: string;
6219
7201
  arrivalTime: string;
6220
- }, {
6221
7202
  tripId: string;
7203
+ }, {
6222
7204
  arrivalTime: string;
7205
+ tripId: string;
6223
7206
  }>, z.ZodObject<{
6224
7207
  success: z.ZodBoolean;
6225
7208
  }, "strip", z.ZodTypeAny, {
@@ -6233,13 +7216,13 @@ declare const appContract: {
6233
7216
  severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
6234
7217
  location: z.ZodOptional<z.ZodString>;
6235
7218
  }, "strip", z.ZodTypeAny, {
6236
- tripId: string;
6237
7219
  description: string;
7220
+ tripId: string;
6238
7221
  severity: "minor" | "moderate" | "serious" | "critical";
6239
7222
  location?: string | undefined;
6240
7223
  }, {
6241
- tripId: string;
6242
7224
  description: string;
7225
+ tripId: string;
6243
7226
  severity: "minor" | "moderate" | "serious" | "critical";
6244
7227
  location?: string | undefined;
6245
7228
  }>, z.ZodObject<{
@@ -6277,6 +7260,25 @@ declare const appContract: {
6277
7260
  }, {
6278
7261
  vehicleId: string;
6279
7262
  }>, z.ZodArray<z.ZodAny, "many">, Record<never, never>, Record<never, never>>;
7263
+ resolve: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7264
+ logId: z.ZodString;
7265
+ notes: z.ZodOptional<z.ZodString>;
7266
+ cost: z.ZodOptional<z.ZodNumber>;
7267
+ }, "strip", z.ZodTypeAny, {
7268
+ logId: string;
7269
+ notes?: string | undefined;
7270
+ cost?: number | undefined;
7271
+ }, {
7272
+ logId: string;
7273
+ notes?: string | undefined;
7274
+ cost?: number | undefined;
7275
+ }>, z.ZodObject<{
7276
+ success: z.ZodBoolean;
7277
+ }, "strip", z.ZodTypeAny, {
7278
+ success: boolean;
7279
+ }, {
7280
+ success: boolean;
7281
+ }>, Record<never, never>, Record<never, never>>;
6280
7282
  };
6281
7283
  };
6282
7284
  assets: {
@@ -6292,13 +7294,13 @@ declare const appContract: {
6292
7294
  limit: number;
6293
7295
  branchId: string;
6294
7296
  search?: string | undefined;
6295
- category?: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
7297
+ category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
6296
7298
  }, {
6297
7299
  branchId: string;
6298
7300
  page?: number | undefined;
6299
7301
  limit?: number | undefined;
6300
7302
  search?: string | undefined;
6301
- category?: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
7303
+ category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
6302
7304
  }>, z.ZodObject<{
6303
7305
  data: z.ZodArray<z.ZodAny, "many">;
6304
7306
  total: z.ZodNumber;
@@ -6321,7 +7323,7 @@ declare const appContract: {
6321
7323
  depreciationRate: z.ZodNumber;
6322
7324
  }, "strip", z.ZodTypeAny, {
6323
7325
  name: string;
6324
- category: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
7326
+ category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
6325
7327
  purchaseDate: string;
6326
7328
  purchaseCost: number;
6327
7329
  condition: "excellent" | "good" | "fair" | "poor" | "condemned";
@@ -6331,7 +7333,7 @@ declare const appContract: {
6331
7333
  warrantyExpiry?: string | undefined;
6332
7334
  }, {
6333
7335
  name: string;
6334
- category: "other" | "furniture" | "lab_equipment" | "ict_device" | "vehicle" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
7336
+ category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
6335
7337
  purchaseDate: string;
6336
7338
  purchaseCost: number;
6337
7339
  condition: "excellent" | "good" | "fair" | "poor" | "condemned";