@brite-future-schools-contracts/contracts 1.0.3 → 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.
- package/dist/{chunk-2PD52DHC.mjs → chunk-7A7N5DCT.mjs} +71 -15
- package/dist/chunk-7A7N5DCT.mjs.map +1 -0
- package/dist/{chunk-AECTWOHQ.mjs → chunk-OJCH3PZZ.mjs} +49 -1
- package/dist/chunk-OJCH3PZZ.mjs.map +1 -0
- package/dist/contracts/index.d.mts +1045 -37
- package/dist/contracts/index.d.ts +1045 -37
- package/dist/contracts/index.js +105 -12
- 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 +113 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/schemas/index.d.mts +160 -1
- package/dist/schemas/index.d.ts +160 -1
- package/dist/schemas/index.js +52 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +9 -1
- package/package.json +1 -1
- package/src/contracts/index.ts +83 -11
- package/src/schemas/index.ts +48 -0
- package/dist/chunk-2PD52DHC.mjs.map +0 -1
- package/dist/chunk-AECTWOHQ.mjs.map +0 -1
|
@@ -520,6 +520,7 @@ declare const studentsContract: {
|
|
|
520
520
|
} & {
|
|
521
521
|
branchId: z.ZodOptional<z.ZodString>;
|
|
522
522
|
classId: z.ZodOptional<z.ZodString>;
|
|
523
|
+
gradeId: z.ZodOptional<z.ZodString>;
|
|
523
524
|
search: z.ZodOptional<z.ZodString>;
|
|
524
525
|
status: z.ZodOptional<z.ZodEnum<["active", "transferred", "graduated", "suspended", "withdrawn"]>>;
|
|
525
526
|
termId: z.ZodOptional<z.ZodString>;
|
|
@@ -529,6 +530,7 @@ declare const studentsContract: {
|
|
|
529
530
|
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
530
531
|
branchId?: string | undefined;
|
|
531
532
|
classId?: string | undefined;
|
|
533
|
+
gradeId?: string | undefined;
|
|
532
534
|
search?: string | undefined;
|
|
533
535
|
termId?: string | undefined;
|
|
534
536
|
}, {
|
|
@@ -537,6 +539,7 @@ declare const studentsContract: {
|
|
|
537
539
|
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
538
540
|
branchId?: string | undefined;
|
|
539
541
|
classId?: string | undefined;
|
|
542
|
+
gradeId?: string | undefined;
|
|
540
543
|
search?: string | undefined;
|
|
541
544
|
termId?: string | undefined;
|
|
542
545
|
}>, z.ZodObject<{
|
|
@@ -2671,25 +2674,507 @@ declare const transportContract: {
|
|
|
2671
2674
|
branchId: string;
|
|
2672
2675
|
}>, z.ZodArray<z.ZodObject<{
|
|
2673
2676
|
id: z.ZodString;
|
|
2677
|
+
branchId: z.ZodString;
|
|
2674
2678
|
plateNo: z.ZodString;
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
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;
|
|
2678
2689
|
}, "strip", z.ZodTypeAny, {
|
|
2679
|
-
type:
|
|
2680
|
-
status:
|
|
2690
|
+
type: "bus" | "van" | "pickup" | "other";
|
|
2691
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
2681
2692
|
id: string;
|
|
2693
|
+
branchId: string;
|
|
2694
|
+
createdAt: string;
|
|
2682
2695
|
plateNo: string;
|
|
2683
|
-
|
|
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;
|
|
2684
2703
|
}, {
|
|
2685
|
-
type:
|
|
2686
|
-
status:
|
|
2704
|
+
type: "bus" | "van" | "pickup" | "other";
|
|
2705
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
2687
2706
|
id: string;
|
|
2707
|
+
branchId: string;
|
|
2708
|
+
createdAt: string;
|
|
2688
2709
|
plateNo: string;
|
|
2689
|
-
|
|
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;
|
|
2690
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>>;
|
|
2691
2999
|
};
|
|
2692
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>>;
|
|
2693
3178
|
start: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2694
3179
|
vehicleId: z.ZodString;
|
|
2695
3180
|
routeId: z.ZodString;
|
|
@@ -2747,11 +3232,11 @@ declare const transportContract: {
|
|
|
2747
3232
|
tripId: z.ZodString;
|
|
2748
3233
|
arrivalTime: z.ZodString;
|
|
2749
3234
|
}, "strip", z.ZodTypeAny, {
|
|
2750
|
-
tripId: string;
|
|
2751
3235
|
arrivalTime: string;
|
|
2752
|
-
}, {
|
|
2753
3236
|
tripId: string;
|
|
3237
|
+
}, {
|
|
2754
3238
|
arrivalTime: string;
|
|
3239
|
+
tripId: string;
|
|
2755
3240
|
}>, z.ZodObject<{
|
|
2756
3241
|
success: z.ZodBoolean;
|
|
2757
3242
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2765,13 +3250,13 @@ declare const transportContract: {
|
|
|
2765
3250
|
severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
|
|
2766
3251
|
location: z.ZodOptional<z.ZodString>;
|
|
2767
3252
|
}, "strip", z.ZodTypeAny, {
|
|
2768
|
-
tripId: string;
|
|
2769
3253
|
description: string;
|
|
3254
|
+
tripId: string;
|
|
2770
3255
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
2771
3256
|
location?: string | undefined;
|
|
2772
3257
|
}, {
|
|
2773
|
-
tripId: string;
|
|
2774
3258
|
description: string;
|
|
3259
|
+
tripId: string;
|
|
2775
3260
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
2776
3261
|
location?: string | undefined;
|
|
2777
3262
|
}>, z.ZodObject<{
|
|
@@ -2805,10 +3290,29 @@ declare const transportContract: {
|
|
|
2805
3290
|
list: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2806
3291
|
vehicleId: z.ZodString;
|
|
2807
3292
|
}, "strip", z.ZodTypeAny, {
|
|
2808
|
-
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;
|
|
2809
3313
|
}, {
|
|
2810
|
-
|
|
2811
|
-
}>,
|
|
3314
|
+
success: boolean;
|
|
3315
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
2812
3316
|
};
|
|
2813
3317
|
};
|
|
2814
3318
|
declare const assetsContract: {
|
|
@@ -2824,13 +3328,13 @@ declare const assetsContract: {
|
|
|
2824
3328
|
limit: number;
|
|
2825
3329
|
branchId: string;
|
|
2826
3330
|
search?: string | undefined;
|
|
2827
|
-
category?: "other" | "
|
|
3331
|
+
category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
|
|
2828
3332
|
}, {
|
|
2829
3333
|
branchId: string;
|
|
2830
3334
|
page?: number | undefined;
|
|
2831
3335
|
limit?: number | undefined;
|
|
2832
3336
|
search?: string | undefined;
|
|
2833
|
-
category?: "other" | "
|
|
3337
|
+
category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
|
|
2834
3338
|
}>, z.ZodObject<{
|
|
2835
3339
|
data: z.ZodArray<z.ZodAny, "many">;
|
|
2836
3340
|
total: z.ZodNumber;
|
|
@@ -2853,7 +3357,7 @@ declare const assetsContract: {
|
|
|
2853
3357
|
depreciationRate: z.ZodNumber;
|
|
2854
3358
|
}, "strip", z.ZodTypeAny, {
|
|
2855
3359
|
name: string;
|
|
2856
|
-
category: "other" | "
|
|
3360
|
+
category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
|
|
2857
3361
|
purchaseDate: string;
|
|
2858
3362
|
purchaseCost: number;
|
|
2859
3363
|
condition: "excellent" | "good" | "fair" | "poor" | "condemned";
|
|
@@ -2863,7 +3367,7 @@ declare const assetsContract: {
|
|
|
2863
3367
|
warrantyExpiry?: string | undefined;
|
|
2864
3368
|
}, {
|
|
2865
3369
|
name: string;
|
|
2866
|
-
category: "other" | "
|
|
3370
|
+
category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
|
|
2867
3371
|
purchaseDate: string;
|
|
2868
3372
|
purchaseCost: number;
|
|
2869
3373
|
condition: "excellent" | "good" | "fair" | "poor" | "condemned";
|
|
@@ -3982,6 +4486,7 @@ declare const appContract: {
|
|
|
3982
4486
|
} & {
|
|
3983
4487
|
branchId: z.ZodOptional<z.ZodString>;
|
|
3984
4488
|
classId: z.ZodOptional<z.ZodString>;
|
|
4489
|
+
gradeId: z.ZodOptional<z.ZodString>;
|
|
3985
4490
|
search: z.ZodOptional<z.ZodString>;
|
|
3986
4491
|
status: z.ZodOptional<z.ZodEnum<["active", "transferred", "graduated", "suspended", "withdrawn"]>>;
|
|
3987
4492
|
termId: z.ZodOptional<z.ZodString>;
|
|
@@ -3991,6 +4496,7 @@ declare const appContract: {
|
|
|
3991
4496
|
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
3992
4497
|
branchId?: string | undefined;
|
|
3993
4498
|
classId?: string | undefined;
|
|
4499
|
+
gradeId?: string | undefined;
|
|
3994
4500
|
search?: string | undefined;
|
|
3995
4501
|
termId?: string | undefined;
|
|
3996
4502
|
}, {
|
|
@@ -3999,6 +4505,7 @@ declare const appContract: {
|
|
|
3999
4505
|
status?: "active" | "suspended" | "transferred" | "graduated" | "withdrawn" | undefined;
|
|
4000
4506
|
branchId?: string | undefined;
|
|
4001
4507
|
classId?: string | undefined;
|
|
4508
|
+
gradeId?: string | undefined;
|
|
4002
4509
|
search?: string | undefined;
|
|
4003
4510
|
termId?: string | undefined;
|
|
4004
4511
|
}>, z.ZodObject<{
|
|
@@ -6133,25 +6640,507 @@ declare const appContract: {
|
|
|
6133
6640
|
branchId: string;
|
|
6134
6641
|
}>, z.ZodArray<z.ZodObject<{
|
|
6135
6642
|
id: z.ZodString;
|
|
6643
|
+
branchId: z.ZodString;
|
|
6136
6644
|
plateNo: z.ZodString;
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
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;
|
|
6140
6655
|
}, "strip", z.ZodTypeAny, {
|
|
6141
|
-
type:
|
|
6142
|
-
status:
|
|
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";
|
|
6143
6748
|
id: string;
|
|
6749
|
+
branchId: string;
|
|
6750
|
+
createdAt: string;
|
|
6144
6751
|
plateNo: string;
|
|
6145
|
-
|
|
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;
|
|
6146
6766
|
}, {
|
|
6147
|
-
|
|
6148
|
-
status: string;
|
|
6767
|
+
status: "active" | "in_maintenance" | "decommissioned";
|
|
6149
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;
|
|
6150
6803
|
plateNo: string;
|
|
6151
|
-
|
|
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;
|
|
6152
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>>;
|
|
6153
6965
|
};
|
|
6154
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>>;
|
|
6155
7144
|
start: _orpc_contract.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6156
7145
|
vehicleId: z.ZodString;
|
|
6157
7146
|
routeId: z.ZodString;
|
|
@@ -6209,11 +7198,11 @@ declare const appContract: {
|
|
|
6209
7198
|
tripId: z.ZodString;
|
|
6210
7199
|
arrivalTime: z.ZodString;
|
|
6211
7200
|
}, "strip", z.ZodTypeAny, {
|
|
6212
|
-
tripId: string;
|
|
6213
7201
|
arrivalTime: string;
|
|
6214
|
-
}, {
|
|
6215
7202
|
tripId: string;
|
|
7203
|
+
}, {
|
|
6216
7204
|
arrivalTime: string;
|
|
7205
|
+
tripId: string;
|
|
6217
7206
|
}>, z.ZodObject<{
|
|
6218
7207
|
success: z.ZodBoolean;
|
|
6219
7208
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6227,13 +7216,13 @@ declare const appContract: {
|
|
|
6227
7216
|
severity: z.ZodEnum<["minor", "moderate", "serious", "critical"]>;
|
|
6228
7217
|
location: z.ZodOptional<z.ZodString>;
|
|
6229
7218
|
}, "strip", z.ZodTypeAny, {
|
|
6230
|
-
tripId: string;
|
|
6231
7219
|
description: string;
|
|
7220
|
+
tripId: string;
|
|
6232
7221
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
6233
7222
|
location?: string | undefined;
|
|
6234
7223
|
}, {
|
|
6235
|
-
tripId: string;
|
|
6236
7224
|
description: string;
|
|
7225
|
+
tripId: string;
|
|
6237
7226
|
severity: "minor" | "moderate" | "serious" | "critical";
|
|
6238
7227
|
location?: string | undefined;
|
|
6239
7228
|
}>, z.ZodObject<{
|
|
@@ -6271,6 +7260,25 @@ declare const appContract: {
|
|
|
6271
7260
|
}, {
|
|
6272
7261
|
vehicleId: string;
|
|
6273
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>>;
|
|
6274
7282
|
};
|
|
6275
7283
|
};
|
|
6276
7284
|
assets: {
|
|
@@ -6286,13 +7294,13 @@ declare const appContract: {
|
|
|
6286
7294
|
limit: number;
|
|
6287
7295
|
branchId: string;
|
|
6288
7296
|
search?: string | undefined;
|
|
6289
|
-
category?: "other" | "
|
|
7297
|
+
category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
|
|
6290
7298
|
}, {
|
|
6291
7299
|
branchId: string;
|
|
6292
7300
|
page?: number | undefined;
|
|
6293
7301
|
limit?: number | undefined;
|
|
6294
7302
|
search?: string | undefined;
|
|
6295
|
-
category?: "other" | "
|
|
7303
|
+
category?: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book" | undefined;
|
|
6296
7304
|
}>, z.ZodObject<{
|
|
6297
7305
|
data: z.ZodArray<z.ZodAny, "many">;
|
|
6298
7306
|
total: z.ZodNumber;
|
|
@@ -6315,7 +7323,7 @@ declare const appContract: {
|
|
|
6315
7323
|
depreciationRate: z.ZodNumber;
|
|
6316
7324
|
}, "strip", z.ZodTypeAny, {
|
|
6317
7325
|
name: string;
|
|
6318
|
-
category: "other" | "
|
|
7326
|
+
category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
|
|
6319
7327
|
purchaseDate: string;
|
|
6320
7328
|
purchaseCost: number;
|
|
6321
7329
|
condition: "excellent" | "good" | "fair" | "poor" | "condemned";
|
|
@@ -6325,7 +7333,7 @@ declare const appContract: {
|
|
|
6325
7333
|
warrantyExpiry?: string | undefined;
|
|
6326
7334
|
}, {
|
|
6327
7335
|
name: string;
|
|
6328
|
-
category: "other" | "
|
|
7336
|
+
category: "other" | "vehicle" | "furniture" | "lab_equipment" | "ict_device" | "sports_equipment" | "kitchen_equipment" | "musical_instrument" | "classroom_supply" | "library_book";
|
|
6329
7337
|
purchaseDate: string;
|
|
6330
7338
|
purchaseCost: number;
|
|
6331
7339
|
condition: "excellent" | "good" | "fair" | "poor" | "condemned";
|