@deepintel-ltd/farmpro-contracts 1.20.0 → 1.21.0

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.
@@ -91,6 +91,7 @@ export declare const fieldsRouter: {
91
91
  harvestDate: z.ZodNullable<z.ZodString>;
92
92
  yield: z.ZodNullable<z.ZodNumber>;
93
93
  yieldUnit: z.ZodNullable<z.ZodString>;
94
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
95
  }, "strip", z.ZodTypeAny, {
95
96
  id: string;
96
97
  crop: string;
@@ -99,6 +100,7 @@ export declare const fieldsRouter: {
99
100
  harvestDate: string | null;
100
101
  yield: number | null;
101
102
  yieldUnit: string | null;
103
+ notes?: string | null | undefined;
102
104
  }, {
103
105
  id: string;
104
106
  crop: string;
@@ -107,6 +109,7 @@ export declare const fieldsRouter: {
107
109
  harvestDate: string | null;
108
110
  yield: number | null;
109
111
  yieldUnit: string | null;
112
+ notes?: string | null | undefined;
110
113
  }>, "many">>;
111
114
  } & {
112
115
  createdAt: z.ZodString;
@@ -144,6 +147,7 @@ export declare const fieldsRouter: {
144
147
  harvestDate: string | null;
145
148
  yield: number | null;
146
149
  yieldUnit: string | null;
150
+ notes?: string | null | undefined;
147
151
  }[] | undefined;
148
152
  }, {
149
153
  status: "ok" | "alert" | "critical";
@@ -178,6 +182,7 @@ export declare const fieldsRouter: {
178
182
  harvestDate: string | null;
179
183
  yield: number | null;
180
184
  yieldUnit: string | null;
185
+ notes?: string | null | undefined;
181
186
  }[] | undefined;
182
187
  }>;
183
188
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -219,6 +224,7 @@ export declare const fieldsRouter: {
219
224
  harvestDate: string | null;
220
225
  yield: number | null;
221
226
  yieldUnit: string | null;
227
+ notes?: string | null | undefined;
222
228
  }[] | undefined;
223
229
  };
224
230
  relationships?: Record<string, unknown> | undefined;
@@ -260,6 +266,7 @@ export declare const fieldsRouter: {
260
266
  harvestDate: string | null;
261
267
  yield: number | null;
262
268
  yieldUnit: string | null;
269
+ notes?: string | null | undefined;
263
270
  }[] | undefined;
264
271
  };
265
272
  relationships?: Record<string, unknown> | undefined;
@@ -327,6 +334,7 @@ export declare const fieldsRouter: {
327
334
  harvestDate: string | null;
328
335
  yield: number | null;
329
336
  yieldUnit: string | null;
337
+ notes?: string | null | undefined;
330
338
  }[] | undefined;
331
339
  };
332
340
  relationships?: Record<string, unknown> | undefined;
@@ -380,6 +388,7 @@ export declare const fieldsRouter: {
380
388
  harvestDate: string | null;
381
389
  yield: number | null;
382
390
  yieldUnit: string | null;
391
+ notes?: string | null | undefined;
383
392
  }[] | undefined;
384
393
  };
385
394
  relationships?: Record<string, unknown> | undefined;
@@ -939,6 +948,7 @@ export declare const fieldsRouter: {
939
948
  harvestDate: z.ZodNullable<z.ZodString>;
940
949
  yield: z.ZodNullable<z.ZodNumber>;
941
950
  yieldUnit: z.ZodNullable<z.ZodString>;
951
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
952
  }, "strip", z.ZodTypeAny, {
943
953
  id: string;
944
954
  crop: string;
@@ -947,6 +957,7 @@ export declare const fieldsRouter: {
947
957
  harvestDate: string | null;
948
958
  yield: number | null;
949
959
  yieldUnit: string | null;
960
+ notes?: string | null | undefined;
950
961
  }, {
951
962
  id: string;
952
963
  crop: string;
@@ -955,6 +966,7 @@ export declare const fieldsRouter: {
955
966
  harvestDate: string | null;
956
967
  yield: number | null;
957
968
  yieldUnit: string | null;
969
+ notes?: string | null | undefined;
958
970
  }>, "many">>;
959
971
  } & {
960
972
  createdAt: z.ZodString;
@@ -992,6 +1004,7 @@ export declare const fieldsRouter: {
992
1004
  harvestDate: string | null;
993
1005
  yield: number | null;
994
1006
  yieldUnit: string | null;
1007
+ notes?: string | null | undefined;
995
1008
  }[] | undefined;
996
1009
  }, {
997
1010
  status: "ok" | "alert" | "critical";
@@ -1026,6 +1039,7 @@ export declare const fieldsRouter: {
1026
1039
  harvestDate: string | null;
1027
1040
  yield: number | null;
1028
1041
  yieldUnit: string | null;
1042
+ notes?: string | null | undefined;
1029
1043
  }[] | undefined;
1030
1044
  }>;
1031
1045
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1067,6 +1081,7 @@ export declare const fieldsRouter: {
1067
1081
  harvestDate: string | null;
1068
1082
  yield: number | null;
1069
1083
  yieldUnit: string | null;
1084
+ notes?: string | null | undefined;
1070
1085
  }[] | undefined;
1071
1086
  };
1072
1087
  relationships?: Record<string, unknown> | undefined;
@@ -1108,6 +1123,7 @@ export declare const fieldsRouter: {
1108
1123
  harvestDate: string | null;
1109
1124
  yield: number | null;
1110
1125
  yieldUnit: string | null;
1126
+ notes?: string | null | undefined;
1111
1127
  }[] | undefined;
1112
1128
  };
1113
1129
  relationships?: Record<string, unknown> | undefined;
@@ -1175,6 +1191,7 @@ export declare const fieldsRouter: {
1175
1191
  harvestDate: string | null;
1176
1192
  yield: number | null;
1177
1193
  yieldUnit: string | null;
1194
+ notes?: string | null | undefined;
1178
1195
  }[] | undefined;
1179
1196
  };
1180
1197
  relationships?: Record<string, unknown> | undefined;
@@ -1228,6 +1245,7 @@ export declare const fieldsRouter: {
1228
1245
  harvestDate: string | null;
1229
1246
  yield: number | null;
1230
1247
  yieldUnit: string | null;
1248
+ notes?: string | null | undefined;
1231
1249
  }[] | undefined;
1232
1250
  };
1233
1251
  relationships?: Record<string, unknown> | undefined;
@@ -1797,6 +1815,7 @@ export declare const fieldsRouter: {
1797
1815
  harvestDate: z.ZodNullable<z.ZodString>;
1798
1816
  yield: z.ZodNullable<z.ZodNumber>;
1799
1817
  yieldUnit: z.ZodNullable<z.ZodString>;
1818
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
1819
  }, "strip", z.ZodTypeAny, {
1801
1820
  id: string;
1802
1821
  crop: string;
@@ -1805,6 +1824,7 @@ export declare const fieldsRouter: {
1805
1824
  harvestDate: string | null;
1806
1825
  yield: number | null;
1807
1826
  yieldUnit: string | null;
1827
+ notes?: string | null | undefined;
1808
1828
  }, {
1809
1829
  id: string;
1810
1830
  crop: string;
@@ -1813,6 +1833,7 @@ export declare const fieldsRouter: {
1813
1833
  harvestDate: string | null;
1814
1834
  yield: number | null;
1815
1835
  yieldUnit: string | null;
1836
+ notes?: string | null | undefined;
1816
1837
  }>, "many">>;
1817
1838
  } & {
1818
1839
  createdAt: z.ZodString;
@@ -1850,6 +1871,7 @@ export declare const fieldsRouter: {
1850
1871
  harvestDate: string | null;
1851
1872
  yield: number | null;
1852
1873
  yieldUnit: string | null;
1874
+ notes?: string | null | undefined;
1853
1875
  }[] | undefined;
1854
1876
  }, {
1855
1877
  status: "ok" | "alert" | "critical";
@@ -1884,6 +1906,7 @@ export declare const fieldsRouter: {
1884
1906
  harvestDate: string | null;
1885
1907
  yield: number | null;
1886
1908
  yieldUnit: string | null;
1909
+ notes?: string | null | undefined;
1887
1910
  }[] | undefined;
1888
1911
  }>;
1889
1912
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2120,6 +2143,7 @@ export declare const fieldsRouter: {
2120
2143
  harvestDate: string | null;
2121
2144
  yield: number | null;
2122
2145
  yieldUnit: string | null;
2146
+ notes?: string | null | undefined;
2123
2147
  }[] | undefined;
2124
2148
  };
2125
2149
  relationships?: {
@@ -2195,6 +2219,7 @@ export declare const fieldsRouter: {
2195
2219
  harvestDate: string | null;
2196
2220
  yield: number | null;
2197
2221
  yieldUnit: string | null;
2222
+ notes?: string | null | undefined;
2198
2223
  }[] | undefined;
2199
2224
  };
2200
2225
  relationships?: {
@@ -2296,6 +2321,7 @@ export declare const fieldsRouter: {
2296
2321
  harvestDate: string | null;
2297
2322
  yield: number | null;
2298
2323
  yieldUnit: string | null;
2324
+ notes?: string | null | undefined;
2299
2325
  }[] | undefined;
2300
2326
  };
2301
2327
  relationships?: {
@@ -2383,6 +2409,7 @@ export declare const fieldsRouter: {
2383
2409
  harvestDate: string | null;
2384
2410
  yield: number | null;
2385
2411
  yieldUnit: string | null;
2412
+ notes?: string | null | undefined;
2386
2413
  }[] | undefined;
2387
2414
  };
2388
2415
  relationships?: {
@@ -2666,6 +2693,7 @@ export declare const fieldsRouter: {
2666
2693
  harvestDate: z.ZodNullable<z.ZodString>;
2667
2694
  yield: z.ZodNullable<z.ZodNumber>;
2668
2695
  yieldUnit: z.ZodNullable<z.ZodString>;
2696
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2669
2697
  }, "strip", z.ZodTypeAny, {
2670
2698
  id: string;
2671
2699
  crop: string;
@@ -2674,6 +2702,7 @@ export declare const fieldsRouter: {
2674
2702
  harvestDate: string | null;
2675
2703
  yield: number | null;
2676
2704
  yieldUnit: string | null;
2705
+ notes?: string | null | undefined;
2677
2706
  }, {
2678
2707
  id: string;
2679
2708
  crop: string;
@@ -2682,6 +2711,7 @@ export declare const fieldsRouter: {
2682
2711
  harvestDate: string | null;
2683
2712
  yield: number | null;
2684
2713
  yieldUnit: string | null;
2714
+ notes?: string | null | undefined;
2685
2715
  }>, "many">>;
2686
2716
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2687
2717
  }, "strip", z.ZodTypeAny, {
@@ -2710,6 +2740,7 @@ export declare const fieldsRouter: {
2710
2740
  harvestDate: string | null;
2711
2741
  yield: number | null;
2712
2742
  yieldUnit: string | null;
2743
+ notes?: string | null | undefined;
2713
2744
  }[] | undefined;
2714
2745
  }, {
2715
2746
  name?: string | undefined;
@@ -2737,6 +2768,7 @@ export declare const fieldsRouter: {
2737
2768
  harvestDate: string | null;
2738
2769
  yield: number | null;
2739
2770
  yieldUnit: string | null;
2771
+ notes?: string | null | undefined;
2740
2772
  }[] | undefined;
2741
2773
  }>;
2742
2774
  }, "strip", z.ZodTypeAny, {
@@ -2768,6 +2800,7 @@ export declare const fieldsRouter: {
2768
2800
  harvestDate: string | null;
2769
2801
  yield: number | null;
2770
2802
  yieldUnit: string | null;
2803
+ notes?: string | null | undefined;
2771
2804
  }[] | undefined;
2772
2805
  };
2773
2806
  }, {
@@ -2799,6 +2832,7 @@ export declare const fieldsRouter: {
2799
2832
  harvestDate: string | null;
2800
2833
  yield: number | null;
2801
2834
  yieldUnit: string | null;
2835
+ notes?: string | null | undefined;
2802
2836
  }[] | undefined;
2803
2837
  };
2804
2838
  }>;
@@ -2832,6 +2866,7 @@ export declare const fieldsRouter: {
2832
2866
  harvestDate: string | null;
2833
2867
  yield: number | null;
2834
2868
  yieldUnit: string | null;
2869
+ notes?: string | null | undefined;
2835
2870
  }[] | undefined;
2836
2871
  };
2837
2872
  };
@@ -2865,6 +2900,7 @@ export declare const fieldsRouter: {
2865
2900
  harvestDate: string | null;
2866
2901
  yield: number | null;
2867
2902
  yieldUnit: string | null;
2903
+ notes?: string | null | undefined;
2868
2904
  }[] | undefined;
2869
2905
  };
2870
2906
  };
@@ -2918,6 +2954,7 @@ export declare const fieldsRouter: {
2918
2954
  harvestDate: z.ZodNullable<z.ZodString>;
2919
2955
  yield: z.ZodNullable<z.ZodNumber>;
2920
2956
  yieldUnit: z.ZodNullable<z.ZodString>;
2957
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2921
2958
  }, "strip", z.ZodTypeAny, {
2922
2959
  id: string;
2923
2960
  crop: string;
@@ -2926,6 +2963,7 @@ export declare const fieldsRouter: {
2926
2963
  harvestDate: string | null;
2927
2964
  yield: number | null;
2928
2965
  yieldUnit: string | null;
2966
+ notes?: string | null | undefined;
2929
2967
  }, {
2930
2968
  id: string;
2931
2969
  crop: string;
@@ -2934,6 +2972,7 @@ export declare const fieldsRouter: {
2934
2972
  harvestDate: string | null;
2935
2973
  yield: number | null;
2936
2974
  yieldUnit: string | null;
2975
+ notes?: string | null | undefined;
2937
2976
  }>, "many">>;
2938
2977
  } & {
2939
2978
  createdAt: z.ZodString;
@@ -2971,6 +3010,7 @@ export declare const fieldsRouter: {
2971
3010
  harvestDate: string | null;
2972
3011
  yield: number | null;
2973
3012
  yieldUnit: string | null;
3013
+ notes?: string | null | undefined;
2974
3014
  }[] | undefined;
2975
3015
  }, {
2976
3016
  status: "ok" | "alert" | "critical";
@@ -3005,6 +3045,7 @@ export declare const fieldsRouter: {
3005
3045
  harvestDate: string | null;
3006
3046
  yield: number | null;
3007
3047
  yieldUnit: string | null;
3048
+ notes?: string | null | undefined;
3008
3049
  }[] | undefined;
3009
3050
  }>;
3010
3051
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3046,6 +3087,7 @@ export declare const fieldsRouter: {
3046
3087
  harvestDate: string | null;
3047
3088
  yield: number | null;
3048
3089
  yieldUnit: string | null;
3090
+ notes?: string | null | undefined;
3049
3091
  }[] | undefined;
3050
3092
  };
3051
3093
  relationships?: Record<string, unknown> | undefined;
@@ -3087,6 +3129,7 @@ export declare const fieldsRouter: {
3087
3129
  harvestDate: string | null;
3088
3130
  yield: number | null;
3089
3131
  yieldUnit: string | null;
3132
+ notes?: string | null | undefined;
3090
3133
  }[] | undefined;
3091
3134
  };
3092
3135
  relationships?: Record<string, unknown> | undefined;
@@ -3154,6 +3197,7 @@ export declare const fieldsRouter: {
3154
3197
  harvestDate: string | null;
3155
3198
  yield: number | null;
3156
3199
  yieldUnit: string | null;
3200
+ notes?: string | null | undefined;
3157
3201
  }[] | undefined;
3158
3202
  };
3159
3203
  relationships?: Record<string, unknown> | undefined;
@@ -3207,6 +3251,7 @@ export declare const fieldsRouter: {
3207
3251
  harvestDate: string | null;
3208
3252
  yield: number | null;
3209
3253
  yieldUnit: string | null;
3254
+ notes?: string | null | undefined;
3210
3255
  }[] | undefined;
3211
3256
  };
3212
3257
  relationships?: Record<string, unknown> | undefined;
@@ -3615,45 +3660,45 @@ export declare const fieldsRouter: {
3615
3660
  }, "strip", z.ZodTypeAny, {
3616
3661
  currentCrop: string;
3617
3662
  plantingDate: string;
3663
+ notes?: string | undefined;
3618
3664
  expectedHarvestDate?: string | undefined;
3619
3665
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3620
3666
  standCountPerHa?: number | undefined;
3621
3667
  targetStandPerHa?: number | undefined;
3622
3668
  variety?: string | undefined;
3623
- notes?: string | undefined;
3624
3669
  }, {
3625
3670
  currentCrop: string;
3626
3671
  plantingDate: string;
3672
+ notes?: string | undefined;
3627
3673
  expectedHarvestDate?: string | undefined;
3628
3674
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3629
3675
  standCountPerHa?: number | undefined;
3630
3676
  targetStandPerHa?: number | undefined;
3631
3677
  variety?: string | undefined;
3632
- notes?: string | undefined;
3633
3678
  }>;
3634
3679
  }, "strip", z.ZodTypeAny, {
3635
3680
  type: "field-plantings";
3636
3681
  attributes: {
3637
3682
  currentCrop: string;
3638
3683
  plantingDate: string;
3684
+ notes?: string | undefined;
3639
3685
  expectedHarvestDate?: string | undefined;
3640
3686
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3641
3687
  standCountPerHa?: number | undefined;
3642
3688
  targetStandPerHa?: number | undefined;
3643
3689
  variety?: string | undefined;
3644
- notes?: string | undefined;
3645
3690
  };
3646
3691
  }, {
3647
3692
  type: "field-plantings";
3648
3693
  attributes: {
3649
3694
  currentCrop: string;
3650
3695
  plantingDate: string;
3696
+ notes?: string | undefined;
3651
3697
  expectedHarvestDate?: string | undefined;
3652
3698
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3653
3699
  standCountPerHa?: number | undefined;
3654
3700
  targetStandPerHa?: number | undefined;
3655
3701
  variety?: string | undefined;
3656
- notes?: string | undefined;
3657
3702
  };
3658
3703
  }>;
3659
3704
  }, "strip", z.ZodTypeAny, {
@@ -3662,12 +3707,12 @@ export declare const fieldsRouter: {
3662
3707
  attributes: {
3663
3708
  currentCrop: string;
3664
3709
  plantingDate: string;
3710
+ notes?: string | undefined;
3665
3711
  expectedHarvestDate?: string | undefined;
3666
3712
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3667
3713
  standCountPerHa?: number | undefined;
3668
3714
  targetStandPerHa?: number | undefined;
3669
3715
  variety?: string | undefined;
3670
- notes?: string | undefined;
3671
3716
  };
3672
3717
  };
3673
3718
  }, {
@@ -3676,12 +3721,12 @@ export declare const fieldsRouter: {
3676
3721
  attributes: {
3677
3722
  currentCrop: string;
3678
3723
  plantingDate: string;
3724
+ notes?: string | undefined;
3679
3725
  expectedHarvestDate?: string | undefined;
3680
3726
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3681
3727
  standCountPerHa?: number | undefined;
3682
3728
  targetStandPerHa?: number | undefined;
3683
3729
  variety?: string | undefined;
3684
- notes?: string | undefined;
3685
3730
  };
3686
3731
  };
3687
3732
  }>;
@@ -3734,6 +3779,790 @@ export declare const fieldsRouter: {
3734
3779
  harvestDate: z.ZodNullable<z.ZodString>;
3735
3780
  yield: z.ZodNullable<z.ZodNumber>;
3736
3781
  yieldUnit: z.ZodNullable<z.ZodString>;
3782
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3783
+ }, "strip", z.ZodTypeAny, {
3784
+ id: string;
3785
+ crop: string;
3786
+ season: string;
3787
+ plantingDate: string;
3788
+ harvestDate: string | null;
3789
+ yield: number | null;
3790
+ yieldUnit: string | null;
3791
+ notes?: string | null | undefined;
3792
+ }, {
3793
+ id: string;
3794
+ crop: string;
3795
+ season: string;
3796
+ plantingDate: string;
3797
+ harvestDate: string | null;
3798
+ yield: number | null;
3799
+ yieldUnit: string | null;
3800
+ notes?: string | null | undefined;
3801
+ }>, "many">>;
3802
+ } & {
3803
+ createdAt: z.ZodString;
3804
+ updatedAt: z.ZodString;
3805
+ }, "strip", z.ZodTypeAny, {
3806
+ status: "ok" | "alert" | "critical";
3807
+ createdAt: string;
3808
+ updatedAt: string;
3809
+ name: string;
3810
+ crop: string | null;
3811
+ geometry: {
3812
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3813
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3814
+ } | null;
3815
+ area: string | null;
3816
+ currentCrop: string | null;
3817
+ plantingDate: string | null;
3818
+ ndvi: number | null;
3819
+ moisture: string | null;
3820
+ soilType: string | null;
3821
+ expectedHarvestDate: string | null;
3822
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
3823
+ standCountPerHa?: number | null | undefined;
3824
+ targetStandPerHa?: number | null | undefined;
3825
+ coverImage?: string | null | undefined;
3826
+ historicalNdvi?: {
3827
+ value: number;
3828
+ date: string;
3829
+ }[] | undefined;
3830
+ cropHistory?: {
3831
+ id: string;
3832
+ crop: string;
3833
+ season: string;
3834
+ plantingDate: string;
3835
+ harvestDate: string | null;
3836
+ yield: number | null;
3837
+ yieldUnit: string | null;
3838
+ notes?: string | null | undefined;
3839
+ }[] | undefined;
3840
+ }, {
3841
+ status: "ok" | "alert" | "critical";
3842
+ createdAt: string;
3843
+ updatedAt: string;
3844
+ name: string;
3845
+ crop: string | null;
3846
+ geometry: {
3847
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3848
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3849
+ } | null;
3850
+ area: string | null;
3851
+ currentCrop: string | null;
3852
+ plantingDate: string | null;
3853
+ ndvi: number | null;
3854
+ moisture: string | null;
3855
+ soilType: string | null;
3856
+ expectedHarvestDate: string | null;
3857
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
3858
+ standCountPerHa?: number | null | undefined;
3859
+ targetStandPerHa?: number | null | undefined;
3860
+ coverImage?: string | null | undefined;
3861
+ historicalNdvi?: {
3862
+ value: number;
3863
+ date: string;
3864
+ }[] | undefined;
3865
+ cropHistory?: {
3866
+ id: string;
3867
+ crop: string;
3868
+ season: string;
3869
+ plantingDate: string;
3870
+ harvestDate: string | null;
3871
+ yield: number | null;
3872
+ yieldUnit: string | null;
3873
+ notes?: string | null | undefined;
3874
+ }[] | undefined;
3875
+ }>;
3876
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3877
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3878
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3879
+ }, "strip", z.ZodTypeAny, {
3880
+ type: string;
3881
+ id: string;
3882
+ attributes: {
3883
+ status: "ok" | "alert" | "critical";
3884
+ createdAt: string;
3885
+ updatedAt: string;
3886
+ name: string;
3887
+ crop: string | null;
3888
+ geometry: {
3889
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3890
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3891
+ } | null;
3892
+ area: string | null;
3893
+ currentCrop: string | null;
3894
+ plantingDate: string | null;
3895
+ ndvi: number | null;
3896
+ moisture: string | null;
3897
+ soilType: string | null;
3898
+ expectedHarvestDate: string | null;
3899
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
3900
+ standCountPerHa?: number | null | undefined;
3901
+ targetStandPerHa?: number | null | undefined;
3902
+ coverImage?: string | null | undefined;
3903
+ historicalNdvi?: {
3904
+ value: number;
3905
+ date: string;
3906
+ }[] | undefined;
3907
+ cropHistory?: {
3908
+ id: string;
3909
+ crop: string;
3910
+ season: string;
3911
+ plantingDate: string;
3912
+ harvestDate: string | null;
3913
+ yield: number | null;
3914
+ yieldUnit: string | null;
3915
+ notes?: string | null | undefined;
3916
+ }[] | undefined;
3917
+ };
3918
+ relationships?: Record<string, unknown> | undefined;
3919
+ links?: Record<string, string> | undefined;
3920
+ meta?: Record<string, unknown> | undefined;
3921
+ }, {
3922
+ type: string;
3923
+ id: string;
3924
+ attributes: {
3925
+ status: "ok" | "alert" | "critical";
3926
+ createdAt: string;
3927
+ updatedAt: string;
3928
+ name: string;
3929
+ crop: string | null;
3930
+ geometry: {
3931
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
3932
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
3933
+ } | null;
3934
+ area: string | null;
3935
+ currentCrop: string | null;
3936
+ plantingDate: string | null;
3937
+ ndvi: number | null;
3938
+ moisture: string | null;
3939
+ soilType: string | null;
3940
+ expectedHarvestDate: string | null;
3941
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
3942
+ standCountPerHa?: number | null | undefined;
3943
+ targetStandPerHa?: number | null | undefined;
3944
+ coverImage?: string | null | undefined;
3945
+ historicalNdvi?: {
3946
+ value: number;
3947
+ date: string;
3948
+ }[] | undefined;
3949
+ cropHistory?: {
3950
+ id: string;
3951
+ crop: string;
3952
+ season: string;
3953
+ plantingDate: string;
3954
+ harvestDate: string | null;
3955
+ yield: number | null;
3956
+ yieldUnit: string | null;
3957
+ notes?: string | null | undefined;
3958
+ }[] | undefined;
3959
+ };
3960
+ relationships?: Record<string, unknown> | undefined;
3961
+ links?: Record<string, string> | undefined;
3962
+ meta?: Record<string, unknown> | undefined;
3963
+ }>;
3964
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3965
+ type: z.ZodString;
3966
+ id: z.ZodString;
3967
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3968
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3969
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3970
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3971
+ }, "strip", z.ZodTypeAny, {
3972
+ type: string;
3973
+ id: string;
3974
+ attributes?: Record<string, unknown> | undefined;
3975
+ relationships?: Record<string, unknown> | undefined;
3976
+ links?: Record<string, string> | undefined;
3977
+ meta?: Record<string, unknown> | undefined;
3978
+ }, {
3979
+ type: string;
3980
+ id: string;
3981
+ attributes?: Record<string, unknown> | undefined;
3982
+ relationships?: Record<string, unknown> | undefined;
3983
+ links?: Record<string, string> | undefined;
3984
+ meta?: Record<string, unknown> | undefined;
3985
+ }>, "many">>;
3986
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3987
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3988
+ }, "strip", z.ZodTypeAny, {
3989
+ data: {
3990
+ type: string;
3991
+ id: string;
3992
+ attributes: {
3993
+ status: "ok" | "alert" | "critical";
3994
+ createdAt: string;
3995
+ updatedAt: string;
3996
+ name: string;
3997
+ crop: string | null;
3998
+ geometry: {
3999
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4000
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4001
+ } | null;
4002
+ area: string | null;
4003
+ currentCrop: string | null;
4004
+ plantingDate: string | null;
4005
+ ndvi: number | null;
4006
+ moisture: string | null;
4007
+ soilType: string | null;
4008
+ expectedHarvestDate: string | null;
4009
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4010
+ standCountPerHa?: number | null | undefined;
4011
+ targetStandPerHa?: number | null | undefined;
4012
+ coverImage?: string | null | undefined;
4013
+ historicalNdvi?: {
4014
+ value: number;
4015
+ date: string;
4016
+ }[] | undefined;
4017
+ cropHistory?: {
4018
+ id: string;
4019
+ crop: string;
4020
+ season: string;
4021
+ plantingDate: string;
4022
+ harvestDate: string | null;
4023
+ yield: number | null;
4024
+ yieldUnit: string | null;
4025
+ notes?: string | null | undefined;
4026
+ }[] | undefined;
4027
+ };
4028
+ relationships?: Record<string, unknown> | undefined;
4029
+ links?: Record<string, string> | undefined;
4030
+ meta?: Record<string, unknown> | undefined;
4031
+ };
4032
+ links?: Record<string, string> | undefined;
4033
+ meta?: Record<string, unknown> | undefined;
4034
+ included?: {
4035
+ type: string;
4036
+ id: string;
4037
+ attributes?: Record<string, unknown> | undefined;
4038
+ relationships?: Record<string, unknown> | undefined;
4039
+ links?: Record<string, string> | undefined;
4040
+ meta?: Record<string, unknown> | undefined;
4041
+ }[] | undefined;
4042
+ }, {
4043
+ data: {
4044
+ type: string;
4045
+ id: string;
4046
+ attributes: {
4047
+ status: "ok" | "alert" | "critical";
4048
+ createdAt: string;
4049
+ updatedAt: string;
4050
+ name: string;
4051
+ crop: string | null;
4052
+ geometry: {
4053
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4054
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4055
+ } | null;
4056
+ area: string | null;
4057
+ currentCrop: string | null;
4058
+ plantingDate: string | null;
4059
+ ndvi: number | null;
4060
+ moisture: string | null;
4061
+ soilType: string | null;
4062
+ expectedHarvestDate: string | null;
4063
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4064
+ standCountPerHa?: number | null | undefined;
4065
+ targetStandPerHa?: number | null | undefined;
4066
+ coverImage?: string | null | undefined;
4067
+ historicalNdvi?: {
4068
+ value: number;
4069
+ date: string;
4070
+ }[] | undefined;
4071
+ cropHistory?: {
4072
+ id: string;
4073
+ crop: string;
4074
+ season: string;
4075
+ plantingDate: string;
4076
+ harvestDate: string | null;
4077
+ yield: number | null;
4078
+ yieldUnit: string | null;
4079
+ notes?: string | null | undefined;
4080
+ }[] | undefined;
4081
+ };
4082
+ relationships?: Record<string, unknown> | undefined;
4083
+ links?: Record<string, string> | undefined;
4084
+ meta?: Record<string, unknown> | undefined;
4085
+ };
4086
+ links?: Record<string, string> | undefined;
4087
+ meta?: Record<string, unknown> | undefined;
4088
+ included?: {
4089
+ type: string;
4090
+ id: string;
4091
+ attributes?: Record<string, unknown> | undefined;
4092
+ relationships?: Record<string, unknown> | undefined;
4093
+ links?: Record<string, string> | undefined;
4094
+ meta?: Record<string, unknown> | undefined;
4095
+ }[] | undefined;
4096
+ }>;
4097
+ 400: z.ZodObject<{
4098
+ errors: z.ZodArray<z.ZodObject<{
4099
+ id: z.ZodOptional<z.ZodString>;
4100
+ links: z.ZodOptional<z.ZodObject<{
4101
+ about: z.ZodOptional<z.ZodString>;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ about?: string | undefined;
4104
+ }, {
4105
+ about?: string | undefined;
4106
+ }>>;
4107
+ status: z.ZodOptional<z.ZodString>;
4108
+ code: z.ZodOptional<z.ZodString>;
4109
+ title: z.ZodOptional<z.ZodString>;
4110
+ detail: z.ZodOptional<z.ZodString>;
4111
+ source: z.ZodOptional<z.ZodObject<{
4112
+ pointer: z.ZodOptional<z.ZodString>;
4113
+ parameter: z.ZodOptional<z.ZodString>;
4114
+ }, "strip", z.ZodTypeAny, {
4115
+ pointer?: string | undefined;
4116
+ parameter?: string | undefined;
4117
+ }, {
4118
+ pointer?: string | undefined;
4119
+ parameter?: string | undefined;
4120
+ }>>;
4121
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4122
+ }, "strip", z.ZodTypeAny, {
4123
+ status?: string | undefined;
4124
+ code?: string | undefined;
4125
+ id?: string | undefined;
4126
+ links?: {
4127
+ about?: string | undefined;
4128
+ } | undefined;
4129
+ meta?: Record<string, unknown> | undefined;
4130
+ title?: string | undefined;
4131
+ detail?: string | undefined;
4132
+ source?: {
4133
+ pointer?: string | undefined;
4134
+ parameter?: string | undefined;
4135
+ } | undefined;
4136
+ }, {
4137
+ status?: string | undefined;
4138
+ code?: string | undefined;
4139
+ id?: string | undefined;
4140
+ links?: {
4141
+ about?: string | undefined;
4142
+ } | undefined;
4143
+ meta?: Record<string, unknown> | undefined;
4144
+ title?: string | undefined;
4145
+ detail?: string | undefined;
4146
+ source?: {
4147
+ pointer?: string | undefined;
4148
+ parameter?: string | undefined;
4149
+ } | undefined;
4150
+ }>, "many">;
4151
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4152
+ }, "strip", z.ZodTypeAny, {
4153
+ errors: {
4154
+ status?: string | undefined;
4155
+ code?: string | undefined;
4156
+ id?: string | undefined;
4157
+ links?: {
4158
+ about?: string | undefined;
4159
+ } | undefined;
4160
+ meta?: Record<string, unknown> | undefined;
4161
+ title?: string | undefined;
4162
+ detail?: string | undefined;
4163
+ source?: {
4164
+ pointer?: string | undefined;
4165
+ parameter?: string | undefined;
4166
+ } | undefined;
4167
+ }[];
4168
+ meta?: Record<string, unknown> | undefined;
4169
+ }, {
4170
+ errors: {
4171
+ status?: string | undefined;
4172
+ code?: string | undefined;
4173
+ id?: string | undefined;
4174
+ links?: {
4175
+ about?: string | undefined;
4176
+ } | undefined;
4177
+ meta?: Record<string, unknown> | undefined;
4178
+ title?: string | undefined;
4179
+ detail?: string | undefined;
4180
+ source?: {
4181
+ pointer?: string | undefined;
4182
+ parameter?: string | undefined;
4183
+ } | undefined;
4184
+ }[];
4185
+ meta?: Record<string, unknown> | undefined;
4186
+ }>;
4187
+ 404: z.ZodObject<{
4188
+ errors: z.ZodArray<z.ZodObject<{
4189
+ id: z.ZodOptional<z.ZodString>;
4190
+ links: z.ZodOptional<z.ZodObject<{
4191
+ about: z.ZodOptional<z.ZodString>;
4192
+ }, "strip", z.ZodTypeAny, {
4193
+ about?: string | undefined;
4194
+ }, {
4195
+ about?: string | undefined;
4196
+ }>>;
4197
+ status: z.ZodOptional<z.ZodString>;
4198
+ code: z.ZodOptional<z.ZodString>;
4199
+ title: z.ZodOptional<z.ZodString>;
4200
+ detail: z.ZodOptional<z.ZodString>;
4201
+ source: z.ZodOptional<z.ZodObject<{
4202
+ pointer: z.ZodOptional<z.ZodString>;
4203
+ parameter: z.ZodOptional<z.ZodString>;
4204
+ }, "strip", z.ZodTypeAny, {
4205
+ pointer?: string | undefined;
4206
+ parameter?: string | undefined;
4207
+ }, {
4208
+ pointer?: string | undefined;
4209
+ parameter?: string | undefined;
4210
+ }>>;
4211
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4212
+ }, "strip", z.ZodTypeAny, {
4213
+ status?: string | undefined;
4214
+ code?: string | undefined;
4215
+ id?: string | undefined;
4216
+ links?: {
4217
+ about?: string | undefined;
4218
+ } | undefined;
4219
+ meta?: Record<string, unknown> | undefined;
4220
+ title?: string | undefined;
4221
+ detail?: string | undefined;
4222
+ source?: {
4223
+ pointer?: string | undefined;
4224
+ parameter?: string | undefined;
4225
+ } | undefined;
4226
+ }, {
4227
+ status?: string | undefined;
4228
+ code?: string | undefined;
4229
+ id?: string | undefined;
4230
+ links?: {
4231
+ about?: string | undefined;
4232
+ } | undefined;
4233
+ meta?: Record<string, unknown> | undefined;
4234
+ title?: string | undefined;
4235
+ detail?: string | undefined;
4236
+ source?: {
4237
+ pointer?: string | undefined;
4238
+ parameter?: string | undefined;
4239
+ } | undefined;
4240
+ }>, "many">;
4241
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4242
+ }, "strip", z.ZodTypeAny, {
4243
+ errors: {
4244
+ status?: string | undefined;
4245
+ code?: string | undefined;
4246
+ id?: string | undefined;
4247
+ links?: {
4248
+ about?: string | undefined;
4249
+ } | undefined;
4250
+ meta?: Record<string, unknown> | undefined;
4251
+ title?: string | undefined;
4252
+ detail?: string | undefined;
4253
+ source?: {
4254
+ pointer?: string | undefined;
4255
+ parameter?: string | undefined;
4256
+ } | undefined;
4257
+ }[];
4258
+ meta?: Record<string, unknown> | undefined;
4259
+ }, {
4260
+ errors: {
4261
+ status?: string | undefined;
4262
+ code?: string | undefined;
4263
+ id?: string | undefined;
4264
+ links?: {
4265
+ about?: string | undefined;
4266
+ } | undefined;
4267
+ meta?: Record<string, unknown> | undefined;
4268
+ title?: string | undefined;
4269
+ detail?: string | undefined;
4270
+ source?: {
4271
+ pointer?: string | undefined;
4272
+ parameter?: string | undefined;
4273
+ } | undefined;
4274
+ }[];
4275
+ meta?: Record<string, unknown> | undefined;
4276
+ }>;
4277
+ 401: z.ZodObject<{
4278
+ errors: z.ZodArray<z.ZodObject<{
4279
+ id: z.ZodOptional<z.ZodString>;
4280
+ links: z.ZodOptional<z.ZodObject<{
4281
+ about: z.ZodOptional<z.ZodString>;
4282
+ }, "strip", z.ZodTypeAny, {
4283
+ about?: string | undefined;
4284
+ }, {
4285
+ about?: string | undefined;
4286
+ }>>;
4287
+ status: z.ZodOptional<z.ZodString>;
4288
+ code: z.ZodOptional<z.ZodString>;
4289
+ title: z.ZodOptional<z.ZodString>;
4290
+ detail: z.ZodOptional<z.ZodString>;
4291
+ source: z.ZodOptional<z.ZodObject<{
4292
+ pointer: z.ZodOptional<z.ZodString>;
4293
+ parameter: z.ZodOptional<z.ZodString>;
4294
+ }, "strip", z.ZodTypeAny, {
4295
+ pointer?: string | undefined;
4296
+ parameter?: string | undefined;
4297
+ }, {
4298
+ pointer?: string | undefined;
4299
+ parameter?: string | undefined;
4300
+ }>>;
4301
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4302
+ }, "strip", z.ZodTypeAny, {
4303
+ status?: string | undefined;
4304
+ code?: string | undefined;
4305
+ id?: string | undefined;
4306
+ links?: {
4307
+ about?: string | undefined;
4308
+ } | undefined;
4309
+ meta?: Record<string, unknown> | undefined;
4310
+ title?: string | undefined;
4311
+ detail?: string | undefined;
4312
+ source?: {
4313
+ pointer?: string | undefined;
4314
+ parameter?: string | undefined;
4315
+ } | undefined;
4316
+ }, {
4317
+ status?: string | undefined;
4318
+ code?: string | undefined;
4319
+ id?: string | undefined;
4320
+ links?: {
4321
+ about?: string | undefined;
4322
+ } | undefined;
4323
+ meta?: Record<string, unknown> | undefined;
4324
+ title?: string | undefined;
4325
+ detail?: string | undefined;
4326
+ source?: {
4327
+ pointer?: string | undefined;
4328
+ parameter?: string | undefined;
4329
+ } | undefined;
4330
+ }>, "many">;
4331
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4332
+ }, "strip", z.ZodTypeAny, {
4333
+ errors: {
4334
+ status?: string | undefined;
4335
+ code?: string | undefined;
4336
+ id?: string | undefined;
4337
+ links?: {
4338
+ about?: string | undefined;
4339
+ } | undefined;
4340
+ meta?: Record<string, unknown> | undefined;
4341
+ title?: string | undefined;
4342
+ detail?: string | undefined;
4343
+ source?: {
4344
+ pointer?: string | undefined;
4345
+ parameter?: string | undefined;
4346
+ } | undefined;
4347
+ }[];
4348
+ meta?: Record<string, unknown> | undefined;
4349
+ }, {
4350
+ errors: {
4351
+ status?: string | undefined;
4352
+ code?: string | undefined;
4353
+ id?: string | undefined;
4354
+ links?: {
4355
+ about?: string | undefined;
4356
+ } | undefined;
4357
+ meta?: Record<string, unknown> | undefined;
4358
+ title?: string | undefined;
4359
+ detail?: string | undefined;
4360
+ source?: {
4361
+ pointer?: string | undefined;
4362
+ parameter?: string | undefined;
4363
+ } | undefined;
4364
+ }[];
4365
+ meta?: Record<string, unknown> | undefined;
4366
+ }>;
4367
+ 422: z.ZodObject<{
4368
+ errors: z.ZodArray<z.ZodObject<{
4369
+ id: z.ZodOptional<z.ZodString>;
4370
+ links: z.ZodOptional<z.ZodObject<{
4371
+ about: z.ZodOptional<z.ZodString>;
4372
+ }, "strip", z.ZodTypeAny, {
4373
+ about?: string | undefined;
4374
+ }, {
4375
+ about?: string | undefined;
4376
+ }>>;
4377
+ status: z.ZodOptional<z.ZodString>;
4378
+ code: z.ZodOptional<z.ZodString>;
4379
+ title: z.ZodOptional<z.ZodString>;
4380
+ detail: z.ZodOptional<z.ZodString>;
4381
+ source: z.ZodOptional<z.ZodObject<{
4382
+ pointer: z.ZodOptional<z.ZodString>;
4383
+ parameter: z.ZodOptional<z.ZodString>;
4384
+ }, "strip", z.ZodTypeAny, {
4385
+ pointer?: string | undefined;
4386
+ parameter?: string | undefined;
4387
+ }, {
4388
+ pointer?: string | undefined;
4389
+ parameter?: string | undefined;
4390
+ }>>;
4391
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4392
+ }, "strip", z.ZodTypeAny, {
4393
+ status?: string | undefined;
4394
+ code?: string | undefined;
4395
+ id?: string | undefined;
4396
+ links?: {
4397
+ about?: string | undefined;
4398
+ } | undefined;
4399
+ meta?: Record<string, unknown> | undefined;
4400
+ title?: string | undefined;
4401
+ detail?: string | undefined;
4402
+ source?: {
4403
+ pointer?: string | undefined;
4404
+ parameter?: string | undefined;
4405
+ } | undefined;
4406
+ }, {
4407
+ status?: string | undefined;
4408
+ code?: string | undefined;
4409
+ id?: string | undefined;
4410
+ links?: {
4411
+ about?: string | undefined;
4412
+ } | undefined;
4413
+ meta?: Record<string, unknown> | undefined;
4414
+ title?: string | undefined;
4415
+ detail?: string | undefined;
4416
+ source?: {
4417
+ pointer?: string | undefined;
4418
+ parameter?: string | undefined;
4419
+ } | undefined;
4420
+ }>, "many">;
4421
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4422
+ }, "strip", z.ZodTypeAny, {
4423
+ errors: {
4424
+ status?: string | undefined;
4425
+ code?: string | undefined;
4426
+ id?: string | undefined;
4427
+ links?: {
4428
+ about?: string | undefined;
4429
+ } | undefined;
4430
+ meta?: Record<string, unknown> | undefined;
4431
+ title?: string | undefined;
4432
+ detail?: string | undefined;
4433
+ source?: {
4434
+ pointer?: string | undefined;
4435
+ parameter?: string | undefined;
4436
+ } | undefined;
4437
+ }[];
4438
+ meta?: Record<string, unknown> | undefined;
4439
+ }, {
4440
+ errors: {
4441
+ status?: string | undefined;
4442
+ code?: string | undefined;
4443
+ id?: string | undefined;
4444
+ links?: {
4445
+ about?: string | undefined;
4446
+ } | undefined;
4447
+ meta?: Record<string, unknown> | undefined;
4448
+ title?: string | undefined;
4449
+ detail?: string | undefined;
4450
+ source?: {
4451
+ pointer?: string | undefined;
4452
+ parameter?: string | undefined;
4453
+ } | undefined;
4454
+ }[];
4455
+ meta?: Record<string, unknown> | undefined;
4456
+ }>;
4457
+ };
4458
+ };
4459
+ endSeason: {
4460
+ pathParams: z.ZodObject<{
4461
+ farmId: z.ZodString;
4462
+ id: z.ZodString;
4463
+ }, "strip", z.ZodTypeAny, {
4464
+ id: string;
4465
+ farmId: string;
4466
+ }, {
4467
+ id: string;
4468
+ farmId: string;
4469
+ }>;
4470
+ summary: "End season";
4471
+ description: "Archive the active crop into cropHistory, clear crop lifecycle fields, cancel in-season tasks, and pause fertigation schedules";
4472
+ method: "POST";
4473
+ body: z.ZodObject<{
4474
+ data: z.ZodObject<{
4475
+ type: z.ZodLiteral<"field-end-seasons">;
4476
+ attributes: z.ZodDefault<z.ZodObject<{
4477
+ harvestDate: z.ZodOptional<z.ZodString>;
4478
+ notes: z.ZodOptional<z.ZodString>;
4479
+ }, "strip", z.ZodTypeAny, {
4480
+ harvestDate?: string | undefined;
4481
+ notes?: string | undefined;
4482
+ }, {
4483
+ harvestDate?: string | undefined;
4484
+ notes?: string | undefined;
4485
+ }>>;
4486
+ }, "strip", z.ZodTypeAny, {
4487
+ type: "field-end-seasons";
4488
+ attributes: {
4489
+ harvestDate?: string | undefined;
4490
+ notes?: string | undefined;
4491
+ };
4492
+ }, {
4493
+ type: "field-end-seasons";
4494
+ attributes?: {
4495
+ harvestDate?: string | undefined;
4496
+ notes?: string | undefined;
4497
+ } | undefined;
4498
+ }>;
4499
+ }, "strip", z.ZodTypeAny, {
4500
+ data: {
4501
+ type: "field-end-seasons";
4502
+ attributes: {
4503
+ harvestDate?: string | undefined;
4504
+ notes?: string | undefined;
4505
+ };
4506
+ };
4507
+ }, {
4508
+ data: {
4509
+ type: "field-end-seasons";
4510
+ attributes?: {
4511
+ harvestDate?: string | undefined;
4512
+ notes?: string | undefined;
4513
+ } | undefined;
4514
+ };
4515
+ }>;
4516
+ path: "/farms/:farmId/fields/:id/end-season";
4517
+ responses: {
4518
+ 200: z.ZodObject<{
4519
+ data: z.ZodObject<{
4520
+ type: z.ZodLiteral<string>;
4521
+ id: z.ZodString;
4522
+ attributes: z.ZodObject<{
4523
+ name: z.ZodString;
4524
+ geometry: z.ZodNullable<z.ZodObject<{
4525
+ type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
4526
+ coordinates: z.ZodUnion<[z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
4527
+ }, "strip", z.ZodTypeAny, {
4528
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4529
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4530
+ }, {
4531
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4532
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4533
+ }>>;
4534
+ ndvi: z.ZodNullable<z.ZodNumber>;
4535
+ moisture: z.ZodNullable<z.ZodString>;
4536
+ status: z.ZodEnum<["ok", "alert", "critical"]>;
4537
+ area: z.ZodNullable<z.ZodString>;
4538
+ crop: z.ZodNullable<z.ZodString>;
4539
+ soilType: z.ZodNullable<z.ZodString>;
4540
+ currentCrop: z.ZodNullable<z.ZodString>;
4541
+ plantingDate: z.ZodNullable<z.ZodString>;
4542
+ expectedHarvestDate: z.ZodNullable<z.ZodString>;
4543
+ cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
4544
+ standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4545
+ targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4546
+ coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4547
+ historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
4548
+ date: z.ZodString;
4549
+ value: z.ZodNumber;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ value: number;
4552
+ date: string;
4553
+ }, {
4554
+ value: number;
4555
+ date: string;
4556
+ }>, "many">>;
4557
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
4558
+ id: z.ZodString;
4559
+ season: z.ZodString;
4560
+ crop: z.ZodString;
4561
+ plantingDate: z.ZodString;
4562
+ harvestDate: z.ZodNullable<z.ZodString>;
4563
+ yield: z.ZodNullable<z.ZodNumber>;
4564
+ yieldUnit: z.ZodNullable<z.ZodString>;
4565
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3737
4566
  }, "strip", z.ZodTypeAny, {
3738
4567
  id: string;
3739
4568
  crop: string;
@@ -3742,6 +4571,7 @@ export declare const fieldsRouter: {
3742
4571
  harvestDate: string | null;
3743
4572
  yield: number | null;
3744
4573
  yieldUnit: string | null;
4574
+ notes?: string | null | undefined;
3745
4575
  }, {
3746
4576
  id: string;
3747
4577
  crop: string;
@@ -3750,6 +4580,7 @@ export declare const fieldsRouter: {
3750
4580
  harvestDate: string | null;
3751
4581
  yield: number | null;
3752
4582
  yieldUnit: string | null;
4583
+ notes?: string | null | undefined;
3753
4584
  }>, "many">>;
3754
4585
  } & {
3755
4586
  createdAt: z.ZodString;
@@ -3787,6 +4618,7 @@ export declare const fieldsRouter: {
3787
4618
  harvestDate: string | null;
3788
4619
  yield: number | null;
3789
4620
  yieldUnit: string | null;
4621
+ notes?: string | null | undefined;
3790
4622
  }[] | undefined;
3791
4623
  }, {
3792
4624
  status: "ok" | "alert" | "critical";
@@ -3821,6 +4653,7 @@ export declare const fieldsRouter: {
3821
4653
  harvestDate: string | null;
3822
4654
  yield: number | null;
3823
4655
  yieldUnit: string | null;
4656
+ notes?: string | null | undefined;
3824
4657
  }[] | undefined;
3825
4658
  }>;
3826
4659
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3862,6 +4695,7 @@ export declare const fieldsRouter: {
3862
4695
  harvestDate: string | null;
3863
4696
  yield: number | null;
3864
4697
  yieldUnit: string | null;
4698
+ notes?: string | null | undefined;
3865
4699
  }[] | undefined;
3866
4700
  };
3867
4701
  relationships?: Record<string, unknown> | undefined;
@@ -3903,6 +4737,7 @@ export declare const fieldsRouter: {
3903
4737
  harvestDate: string | null;
3904
4738
  yield: number | null;
3905
4739
  yieldUnit: string | null;
4740
+ notes?: string | null | undefined;
3906
4741
  }[] | undefined;
3907
4742
  };
3908
4743
  relationships?: Record<string, unknown> | undefined;
@@ -3970,6 +4805,7 @@ export declare const fieldsRouter: {
3970
4805
  harvestDate: string | null;
3971
4806
  yield: number | null;
3972
4807
  yieldUnit: string | null;
4808
+ notes?: string | null | undefined;
3973
4809
  }[] | undefined;
3974
4810
  };
3975
4811
  relationships?: Record<string, unknown> | undefined;
@@ -4023,6 +4859,7 @@ export declare const fieldsRouter: {
4023
4859
  harvestDate: string | null;
4024
4860
  yield: number | null;
4025
4861
  yieldUnit: string | null;
4862
+ notes?: string | null | undefined;
4026
4863
  }[] | undefined;
4027
4864
  };
4028
4865
  relationships?: Record<string, unknown> | undefined;
@@ -5149,6 +5986,7 @@ export declare const fieldsRouter: {
5149
5986
  harvestDate: z.ZodNullable<z.ZodString>;
5150
5987
  yield: z.ZodNullable<z.ZodNumber>;
5151
5988
  yieldUnit: z.ZodNullable<z.ZodString>;
5989
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5152
5990
  }, "strip", z.ZodTypeAny, {
5153
5991
  id: string;
5154
5992
  crop: string;
@@ -5157,6 +5995,7 @@ export declare const fieldsRouter: {
5157
5995
  harvestDate: string | null;
5158
5996
  yield: number | null;
5159
5997
  yieldUnit: string | null;
5998
+ notes?: string | null | undefined;
5160
5999
  }, {
5161
6000
  id: string;
5162
6001
  crop: string;
@@ -5165,6 +6004,7 @@ export declare const fieldsRouter: {
5165
6004
  harvestDate: string | null;
5166
6005
  yield: number | null;
5167
6006
  yieldUnit: string | null;
6007
+ notes?: string | null | undefined;
5168
6008
  }>, "many">>;
5169
6009
  } & {
5170
6010
  createdAt: z.ZodString;
@@ -5202,6 +6042,7 @@ export declare const fieldsRouter: {
5202
6042
  harvestDate: string | null;
5203
6043
  yield: number | null;
5204
6044
  yieldUnit: string | null;
6045
+ notes?: string | null | undefined;
5205
6046
  }[] | undefined;
5206
6047
  }, {
5207
6048
  status: "ok" | "alert" | "critical";
@@ -5236,6 +6077,7 @@ export declare const fieldsRouter: {
5236
6077
  harvestDate: string | null;
5237
6078
  yield: number | null;
5238
6079
  yieldUnit: string | null;
6080
+ notes?: string | null | undefined;
5239
6081
  }[] | undefined;
5240
6082
  }>;
5241
6083
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -5277,6 +6119,7 @@ export declare const fieldsRouter: {
5277
6119
  harvestDate: string | null;
5278
6120
  yield: number | null;
5279
6121
  yieldUnit: string | null;
6122
+ notes?: string | null | undefined;
5280
6123
  }[] | undefined;
5281
6124
  };
5282
6125
  relationships?: Record<string, unknown> | undefined;
@@ -5318,6 +6161,7 @@ export declare const fieldsRouter: {
5318
6161
  harvestDate: string | null;
5319
6162
  yield: number | null;
5320
6163
  yieldUnit: string | null;
6164
+ notes?: string | null | undefined;
5321
6165
  }[] | undefined;
5322
6166
  };
5323
6167
  relationships?: Record<string, unknown> | undefined;
@@ -5385,6 +6229,7 @@ export declare const fieldsRouter: {
5385
6229
  harvestDate: string | null;
5386
6230
  yield: number | null;
5387
6231
  yieldUnit: string | null;
6232
+ notes?: string | null | undefined;
5388
6233
  }[] | undefined;
5389
6234
  };
5390
6235
  relationships?: Record<string, unknown> | undefined;
@@ -5438,6 +6283,7 @@ export declare const fieldsRouter: {
5438
6283
  harvestDate: string | null;
5439
6284
  yield: number | null;
5440
6285
  yieldUnit: string | null;
6286
+ notes?: string | null | undefined;
5441
6287
  }[] | undefined;
5442
6288
  };
5443
6289
  relationships?: Record<string, unknown> | undefined;