@deepintel-ltd/farmpro-contracts 1.20.1 → 1.22.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.
@@ -20,6 +20,9 @@ export declare const fieldsRouter: {
20
20
  'filter[endDate]': z.ZodOptional<z.ZodString>;
21
21
  'filter[status]': z.ZodOptional<z.ZodString>;
22
22
  'filter[crop]': z.ZodOptional<z.ZodString>;
23
+ } & {
24
+ /** Default omits archived. Pass `true` for archived-only list. */
25
+ 'filter[archived]': z.ZodOptional<z.ZodEnum<["true", "false"]>>;
23
26
  }, "strip", z.ZodTypeAny, {
24
27
  sort?: string | undefined;
25
28
  'page[number]'?: number | undefined;
@@ -29,6 +32,7 @@ export declare const fieldsRouter: {
29
32
  'filter[status]'?: string | undefined;
30
33
  'filter[crop]'?: string | undefined;
31
34
  include?: string | undefined;
35
+ 'filter[archived]'?: "true" | "false" | undefined;
32
36
  }, {
33
37
  sort?: string | undefined;
34
38
  'page[number]'?: number | undefined;
@@ -38,9 +42,10 @@ export declare const fieldsRouter: {
38
42
  'filter[status]'?: string | undefined;
39
43
  'filter[crop]'?: string | undefined;
40
44
  include?: string | undefined;
45
+ 'filter[archived]'?: "true" | "false" | undefined;
41
46
  }>;
42
47
  summary: "List fields for a farm";
43
- description: "Get all fields for a specific farm with optional filtering";
48
+ description: "Get fields for a farm. Active fields only by default; use filter[archived]=true for archived fields";
44
49
  method: "GET";
45
50
  path: "/farms/:farmId/fields";
46
51
  responses: {
@@ -73,6 +78,7 @@ export declare const fieldsRouter: {
73
78
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
79
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
80
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
82
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
83
  date: z.ZodString;
78
84
  value: z.ZodNumber;
@@ -91,6 +97,7 @@ export declare const fieldsRouter: {
91
97
  harvestDate: z.ZodNullable<z.ZodString>;
92
98
  yield: z.ZodNullable<z.ZodNumber>;
93
99
  yieldUnit: z.ZodNullable<z.ZodString>;
100
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
101
  }, "strip", z.ZodTypeAny, {
95
102
  id: string;
96
103
  crop: string;
@@ -99,6 +106,7 @@ export declare const fieldsRouter: {
99
106
  harvestDate: string | null;
100
107
  yield: number | null;
101
108
  yieldUnit: string | null;
109
+ notes?: string | null | undefined;
102
110
  }, {
103
111
  id: string;
104
112
  crop: string;
@@ -107,6 +115,7 @@ export declare const fieldsRouter: {
107
115
  harvestDate: string | null;
108
116
  yield: number | null;
109
117
  yieldUnit: string | null;
118
+ notes?: string | null | undefined;
110
119
  }>, "many">>;
111
120
  } & {
112
121
  createdAt: z.ZodString;
@@ -132,6 +141,7 @@ export declare const fieldsRouter: {
132
141
  standCountPerHa?: number | null | undefined;
133
142
  targetStandPerHa?: number | null | undefined;
134
143
  coverImage?: string | null | undefined;
144
+ archivedAt?: string | null | undefined;
135
145
  historicalNdvi?: {
136
146
  value: number;
137
147
  date: string;
@@ -144,6 +154,7 @@ export declare const fieldsRouter: {
144
154
  harvestDate: string | null;
145
155
  yield: number | null;
146
156
  yieldUnit: string | null;
157
+ notes?: string | null | undefined;
147
158
  }[] | undefined;
148
159
  }, {
149
160
  status: "ok" | "alert" | "critical";
@@ -166,6 +177,7 @@ export declare const fieldsRouter: {
166
177
  standCountPerHa?: number | null | undefined;
167
178
  targetStandPerHa?: number | null | undefined;
168
179
  coverImage?: string | null | undefined;
180
+ archivedAt?: string | null | undefined;
169
181
  historicalNdvi?: {
170
182
  value: number;
171
183
  date: string;
@@ -178,6 +190,7 @@ export declare const fieldsRouter: {
178
190
  harvestDate: string | null;
179
191
  yield: number | null;
180
192
  yieldUnit: string | null;
193
+ notes?: string | null | undefined;
181
194
  }[] | undefined;
182
195
  }>;
183
196
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -207,6 +220,7 @@ export declare const fieldsRouter: {
207
220
  standCountPerHa?: number | null | undefined;
208
221
  targetStandPerHa?: number | null | undefined;
209
222
  coverImage?: string | null | undefined;
223
+ archivedAt?: string | null | undefined;
210
224
  historicalNdvi?: {
211
225
  value: number;
212
226
  date: string;
@@ -219,6 +233,7 @@ export declare const fieldsRouter: {
219
233
  harvestDate: string | null;
220
234
  yield: number | null;
221
235
  yieldUnit: string | null;
236
+ notes?: string | null | undefined;
222
237
  }[] | undefined;
223
238
  };
224
239
  relationships?: Record<string, unknown> | undefined;
@@ -248,6 +263,7 @@ export declare const fieldsRouter: {
248
263
  standCountPerHa?: number | null | undefined;
249
264
  targetStandPerHa?: number | null | undefined;
250
265
  coverImage?: string | null | undefined;
266
+ archivedAt?: string | null | undefined;
251
267
  historicalNdvi?: {
252
268
  value: number;
253
269
  date: string;
@@ -260,6 +276,7 @@ export declare const fieldsRouter: {
260
276
  harvestDate: string | null;
261
277
  yield: number | null;
262
278
  yieldUnit: string | null;
279
+ notes?: string | null | undefined;
263
280
  }[] | undefined;
264
281
  };
265
282
  relationships?: Record<string, unknown> | undefined;
@@ -315,6 +332,7 @@ export declare const fieldsRouter: {
315
332
  standCountPerHa?: number | null | undefined;
316
333
  targetStandPerHa?: number | null | undefined;
317
334
  coverImage?: string | null | undefined;
335
+ archivedAt?: string | null | undefined;
318
336
  historicalNdvi?: {
319
337
  value: number;
320
338
  date: string;
@@ -327,6 +345,7 @@ export declare const fieldsRouter: {
327
345
  harvestDate: string | null;
328
346
  yield: number | null;
329
347
  yieldUnit: string | null;
348
+ notes?: string | null | undefined;
330
349
  }[] | undefined;
331
350
  };
332
351
  relationships?: Record<string, unknown> | undefined;
@@ -368,6 +387,7 @@ export declare const fieldsRouter: {
368
387
  standCountPerHa?: number | null | undefined;
369
388
  targetStandPerHa?: number | null | undefined;
370
389
  coverImage?: string | null | undefined;
390
+ archivedAt?: string | null | undefined;
371
391
  historicalNdvi?: {
372
392
  value: number;
373
393
  date: string;
@@ -380,6 +400,7 @@ export declare const fieldsRouter: {
380
400
  harvestDate: string | null;
381
401
  yield: number | null;
382
402
  yieldUnit: string | null;
403
+ notes?: string | null | undefined;
383
404
  }[] | undefined;
384
405
  };
385
406
  relationships?: Record<string, unknown> | undefined;
@@ -921,6 +942,7 @@ export declare const fieldsRouter: {
921
942
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
922
943
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
923
944
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
946
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
925
947
  date: z.ZodString;
926
948
  value: z.ZodNumber;
@@ -939,6 +961,7 @@ export declare const fieldsRouter: {
939
961
  harvestDate: z.ZodNullable<z.ZodString>;
940
962
  yield: z.ZodNullable<z.ZodNumber>;
941
963
  yieldUnit: z.ZodNullable<z.ZodString>;
964
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
965
  }, "strip", z.ZodTypeAny, {
943
966
  id: string;
944
967
  crop: string;
@@ -947,6 +970,7 @@ export declare const fieldsRouter: {
947
970
  harvestDate: string | null;
948
971
  yield: number | null;
949
972
  yieldUnit: string | null;
973
+ notes?: string | null | undefined;
950
974
  }, {
951
975
  id: string;
952
976
  crop: string;
@@ -955,6 +979,7 @@ export declare const fieldsRouter: {
955
979
  harvestDate: string | null;
956
980
  yield: number | null;
957
981
  yieldUnit: string | null;
982
+ notes?: string | null | undefined;
958
983
  }>, "many">>;
959
984
  } & {
960
985
  createdAt: z.ZodString;
@@ -980,6 +1005,7 @@ export declare const fieldsRouter: {
980
1005
  standCountPerHa?: number | null | undefined;
981
1006
  targetStandPerHa?: number | null | undefined;
982
1007
  coverImage?: string | null | undefined;
1008
+ archivedAt?: string | null | undefined;
983
1009
  historicalNdvi?: {
984
1010
  value: number;
985
1011
  date: string;
@@ -992,6 +1018,7 @@ export declare const fieldsRouter: {
992
1018
  harvestDate: string | null;
993
1019
  yield: number | null;
994
1020
  yieldUnit: string | null;
1021
+ notes?: string | null | undefined;
995
1022
  }[] | undefined;
996
1023
  }, {
997
1024
  status: "ok" | "alert" | "critical";
@@ -1014,6 +1041,7 @@ export declare const fieldsRouter: {
1014
1041
  standCountPerHa?: number | null | undefined;
1015
1042
  targetStandPerHa?: number | null | undefined;
1016
1043
  coverImage?: string | null | undefined;
1044
+ archivedAt?: string | null | undefined;
1017
1045
  historicalNdvi?: {
1018
1046
  value: number;
1019
1047
  date: string;
@@ -1026,6 +1054,7 @@ export declare const fieldsRouter: {
1026
1054
  harvestDate: string | null;
1027
1055
  yield: number | null;
1028
1056
  yieldUnit: string | null;
1057
+ notes?: string | null | undefined;
1029
1058
  }[] | undefined;
1030
1059
  }>;
1031
1060
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1055,6 +1084,7 @@ export declare const fieldsRouter: {
1055
1084
  standCountPerHa?: number | null | undefined;
1056
1085
  targetStandPerHa?: number | null | undefined;
1057
1086
  coverImage?: string | null | undefined;
1087
+ archivedAt?: string | null | undefined;
1058
1088
  historicalNdvi?: {
1059
1089
  value: number;
1060
1090
  date: string;
@@ -1067,6 +1097,7 @@ export declare const fieldsRouter: {
1067
1097
  harvestDate: string | null;
1068
1098
  yield: number | null;
1069
1099
  yieldUnit: string | null;
1100
+ notes?: string | null | undefined;
1070
1101
  }[] | undefined;
1071
1102
  };
1072
1103
  relationships?: Record<string, unknown> | undefined;
@@ -1096,6 +1127,7 @@ export declare const fieldsRouter: {
1096
1127
  standCountPerHa?: number | null | undefined;
1097
1128
  targetStandPerHa?: number | null | undefined;
1098
1129
  coverImage?: string | null | undefined;
1130
+ archivedAt?: string | null | undefined;
1099
1131
  historicalNdvi?: {
1100
1132
  value: number;
1101
1133
  date: string;
@@ -1108,6 +1140,7 @@ export declare const fieldsRouter: {
1108
1140
  harvestDate: string | null;
1109
1141
  yield: number | null;
1110
1142
  yieldUnit: string | null;
1143
+ notes?: string | null | undefined;
1111
1144
  }[] | undefined;
1112
1145
  };
1113
1146
  relationships?: Record<string, unknown> | undefined;
@@ -1163,6 +1196,7 @@ export declare const fieldsRouter: {
1163
1196
  standCountPerHa?: number | null | undefined;
1164
1197
  targetStandPerHa?: number | null | undefined;
1165
1198
  coverImage?: string | null | undefined;
1199
+ archivedAt?: string | null | undefined;
1166
1200
  historicalNdvi?: {
1167
1201
  value: number;
1168
1202
  date: string;
@@ -1175,6 +1209,7 @@ export declare const fieldsRouter: {
1175
1209
  harvestDate: string | null;
1176
1210
  yield: number | null;
1177
1211
  yieldUnit: string | null;
1212
+ notes?: string | null | undefined;
1178
1213
  }[] | undefined;
1179
1214
  };
1180
1215
  relationships?: Record<string, unknown> | undefined;
@@ -1216,6 +1251,7 @@ export declare const fieldsRouter: {
1216
1251
  standCountPerHa?: number | null | undefined;
1217
1252
  targetStandPerHa?: number | null | undefined;
1218
1253
  coverImage?: string | null | undefined;
1254
+ archivedAt?: string | null | undefined;
1219
1255
  historicalNdvi?: {
1220
1256
  value: number;
1221
1257
  date: string;
@@ -1228,6 +1264,7 @@ export declare const fieldsRouter: {
1228
1264
  harvestDate: string | null;
1229
1265
  yield: number | null;
1230
1266
  yieldUnit: string | null;
1267
+ notes?: string | null | undefined;
1231
1268
  }[] | undefined;
1232
1269
  };
1233
1270
  relationships?: Record<string, unknown> | undefined;
@@ -1779,6 +1816,7 @@ export declare const fieldsRouter: {
1779
1816
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1780
1817
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1781
1818
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1819
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1782
1820
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
1783
1821
  date: z.ZodString;
1784
1822
  value: z.ZodNumber;
@@ -1797,6 +1835,7 @@ export declare const fieldsRouter: {
1797
1835
  harvestDate: z.ZodNullable<z.ZodString>;
1798
1836
  yield: z.ZodNullable<z.ZodNumber>;
1799
1837
  yieldUnit: z.ZodNullable<z.ZodString>;
1838
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
1839
  }, "strip", z.ZodTypeAny, {
1801
1840
  id: string;
1802
1841
  crop: string;
@@ -1805,6 +1844,7 @@ export declare const fieldsRouter: {
1805
1844
  harvestDate: string | null;
1806
1845
  yield: number | null;
1807
1846
  yieldUnit: string | null;
1847
+ notes?: string | null | undefined;
1808
1848
  }, {
1809
1849
  id: string;
1810
1850
  crop: string;
@@ -1813,6 +1853,7 @@ export declare const fieldsRouter: {
1813
1853
  harvestDate: string | null;
1814
1854
  yield: number | null;
1815
1855
  yieldUnit: string | null;
1856
+ notes?: string | null | undefined;
1816
1857
  }>, "many">>;
1817
1858
  } & {
1818
1859
  createdAt: z.ZodString;
@@ -1838,6 +1879,7 @@ export declare const fieldsRouter: {
1838
1879
  standCountPerHa?: number | null | undefined;
1839
1880
  targetStandPerHa?: number | null | undefined;
1840
1881
  coverImage?: string | null | undefined;
1882
+ archivedAt?: string | null | undefined;
1841
1883
  historicalNdvi?: {
1842
1884
  value: number;
1843
1885
  date: string;
@@ -1850,6 +1892,7 @@ export declare const fieldsRouter: {
1850
1892
  harvestDate: string | null;
1851
1893
  yield: number | null;
1852
1894
  yieldUnit: string | null;
1895
+ notes?: string | null | undefined;
1853
1896
  }[] | undefined;
1854
1897
  }, {
1855
1898
  status: "ok" | "alert" | "critical";
@@ -1872,6 +1915,7 @@ export declare const fieldsRouter: {
1872
1915
  standCountPerHa?: number | null | undefined;
1873
1916
  targetStandPerHa?: number | null | undefined;
1874
1917
  coverImage?: string | null | undefined;
1918
+ archivedAt?: string | null | undefined;
1875
1919
  historicalNdvi?: {
1876
1920
  value: number;
1877
1921
  date: string;
@@ -1884,6 +1928,7 @@ export declare const fieldsRouter: {
1884
1928
  harvestDate: string | null;
1885
1929
  yield: number | null;
1886
1930
  yieldUnit: string | null;
1931
+ notes?: string | null | undefined;
1887
1932
  }[] | undefined;
1888
1933
  }>;
1889
1934
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2108,6 +2153,7 @@ export declare const fieldsRouter: {
2108
2153
  standCountPerHa?: number | null | undefined;
2109
2154
  targetStandPerHa?: number | null | undefined;
2110
2155
  coverImage?: string | null | undefined;
2156
+ archivedAt?: string | null | undefined;
2111
2157
  historicalNdvi?: {
2112
2158
  value: number;
2113
2159
  date: string;
@@ -2120,6 +2166,7 @@ export declare const fieldsRouter: {
2120
2166
  harvestDate: string | null;
2121
2167
  yield: number | null;
2122
2168
  yieldUnit: string | null;
2169
+ notes?: string | null | undefined;
2123
2170
  }[] | undefined;
2124
2171
  };
2125
2172
  relationships?: {
@@ -2183,6 +2230,7 @@ export declare const fieldsRouter: {
2183
2230
  standCountPerHa?: number | null | undefined;
2184
2231
  targetStandPerHa?: number | null | undefined;
2185
2232
  coverImage?: string | null | undefined;
2233
+ archivedAt?: string | null | undefined;
2186
2234
  historicalNdvi?: {
2187
2235
  value: number;
2188
2236
  date: string;
@@ -2195,6 +2243,7 @@ export declare const fieldsRouter: {
2195
2243
  harvestDate: string | null;
2196
2244
  yield: number | null;
2197
2245
  yieldUnit: string | null;
2246
+ notes?: string | null | undefined;
2198
2247
  }[] | undefined;
2199
2248
  };
2200
2249
  relationships?: {
@@ -2284,6 +2333,7 @@ export declare const fieldsRouter: {
2284
2333
  standCountPerHa?: number | null | undefined;
2285
2334
  targetStandPerHa?: number | null | undefined;
2286
2335
  coverImage?: string | null | undefined;
2336
+ archivedAt?: string | null | undefined;
2287
2337
  historicalNdvi?: {
2288
2338
  value: number;
2289
2339
  date: string;
@@ -2296,6 +2346,7 @@ export declare const fieldsRouter: {
2296
2346
  harvestDate: string | null;
2297
2347
  yield: number | null;
2298
2348
  yieldUnit: string | null;
2349
+ notes?: string | null | undefined;
2299
2350
  }[] | undefined;
2300
2351
  };
2301
2352
  relationships?: {
@@ -2371,6 +2422,7 @@ export declare const fieldsRouter: {
2371
2422
  standCountPerHa?: number | null | undefined;
2372
2423
  targetStandPerHa?: number | null | undefined;
2373
2424
  coverImage?: string | null | undefined;
2425
+ archivedAt?: string | null | undefined;
2374
2426
  historicalNdvi?: {
2375
2427
  value: number;
2376
2428
  date: string;
@@ -2383,6 +2435,7 @@ export declare const fieldsRouter: {
2383
2435
  harvestDate: string | null;
2384
2436
  yield: number | null;
2385
2437
  yieldUnit: string | null;
2438
+ notes?: string | null | undefined;
2386
2439
  }[] | undefined;
2387
2440
  };
2388
2441
  relationships?: {
@@ -2666,6 +2719,7 @@ export declare const fieldsRouter: {
2666
2719
  harvestDate: z.ZodNullable<z.ZodString>;
2667
2720
  yield: z.ZodNullable<z.ZodNumber>;
2668
2721
  yieldUnit: z.ZodNullable<z.ZodString>;
2722
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2669
2723
  }, "strip", z.ZodTypeAny, {
2670
2724
  id: string;
2671
2725
  crop: string;
@@ -2674,6 +2728,7 @@ export declare const fieldsRouter: {
2674
2728
  harvestDate: string | null;
2675
2729
  yield: number | null;
2676
2730
  yieldUnit: string | null;
2731
+ notes?: string | null | undefined;
2677
2732
  }, {
2678
2733
  id: string;
2679
2734
  crop: string;
@@ -2682,6 +2737,7 @@ export declare const fieldsRouter: {
2682
2737
  harvestDate: string | null;
2683
2738
  yield: number | null;
2684
2739
  yieldUnit: string | null;
2740
+ notes?: string | null | undefined;
2685
2741
  }>, "many">>;
2686
2742
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2687
2743
  }, "strip", z.ZodTypeAny, {
@@ -2710,6 +2766,7 @@ export declare const fieldsRouter: {
2710
2766
  harvestDate: string | null;
2711
2767
  yield: number | null;
2712
2768
  yieldUnit: string | null;
2769
+ notes?: string | null | undefined;
2713
2770
  }[] | undefined;
2714
2771
  }, {
2715
2772
  name?: string | undefined;
@@ -2737,6 +2794,7 @@ export declare const fieldsRouter: {
2737
2794
  harvestDate: string | null;
2738
2795
  yield: number | null;
2739
2796
  yieldUnit: string | null;
2797
+ notes?: string | null | undefined;
2740
2798
  }[] | undefined;
2741
2799
  }>;
2742
2800
  }, "strip", z.ZodTypeAny, {
@@ -2768,6 +2826,7 @@ export declare const fieldsRouter: {
2768
2826
  harvestDate: string | null;
2769
2827
  yield: number | null;
2770
2828
  yieldUnit: string | null;
2829
+ notes?: string | null | undefined;
2771
2830
  }[] | undefined;
2772
2831
  };
2773
2832
  }, {
@@ -2799,6 +2858,7 @@ export declare const fieldsRouter: {
2799
2858
  harvestDate: string | null;
2800
2859
  yield: number | null;
2801
2860
  yieldUnit: string | null;
2861
+ notes?: string | null | undefined;
2802
2862
  }[] | undefined;
2803
2863
  };
2804
2864
  }>;
@@ -2832,6 +2892,7 @@ export declare const fieldsRouter: {
2832
2892
  harvestDate: string | null;
2833
2893
  yield: number | null;
2834
2894
  yieldUnit: string | null;
2895
+ notes?: string | null | undefined;
2835
2896
  }[] | undefined;
2836
2897
  };
2837
2898
  };
@@ -2865,6 +2926,7 @@ export declare const fieldsRouter: {
2865
2926
  harvestDate: string | null;
2866
2927
  yield: number | null;
2867
2928
  yieldUnit: string | null;
2929
+ notes?: string | null | undefined;
2868
2930
  }[] | undefined;
2869
2931
  };
2870
2932
  };
@@ -2900,6 +2962,7 @@ export declare const fieldsRouter: {
2900
2962
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2901
2963
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2902
2964
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2965
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2903
2966
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
2904
2967
  date: z.ZodString;
2905
2968
  value: z.ZodNumber;
@@ -2918,6 +2981,7 @@ export declare const fieldsRouter: {
2918
2981
  harvestDate: z.ZodNullable<z.ZodString>;
2919
2982
  yield: z.ZodNullable<z.ZodNumber>;
2920
2983
  yieldUnit: z.ZodNullable<z.ZodString>;
2984
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2921
2985
  }, "strip", z.ZodTypeAny, {
2922
2986
  id: string;
2923
2987
  crop: string;
@@ -2926,6 +2990,7 @@ export declare const fieldsRouter: {
2926
2990
  harvestDate: string | null;
2927
2991
  yield: number | null;
2928
2992
  yieldUnit: string | null;
2993
+ notes?: string | null | undefined;
2929
2994
  }, {
2930
2995
  id: string;
2931
2996
  crop: string;
@@ -2934,6 +2999,7 @@ export declare const fieldsRouter: {
2934
2999
  harvestDate: string | null;
2935
3000
  yield: number | null;
2936
3001
  yieldUnit: string | null;
3002
+ notes?: string | null | undefined;
2937
3003
  }>, "many">>;
2938
3004
  } & {
2939
3005
  createdAt: z.ZodString;
@@ -2959,6 +3025,7 @@ export declare const fieldsRouter: {
2959
3025
  standCountPerHa?: number | null | undefined;
2960
3026
  targetStandPerHa?: number | null | undefined;
2961
3027
  coverImage?: string | null | undefined;
3028
+ archivedAt?: string | null | undefined;
2962
3029
  historicalNdvi?: {
2963
3030
  value: number;
2964
3031
  date: string;
@@ -2971,6 +3038,7 @@ export declare const fieldsRouter: {
2971
3038
  harvestDate: string | null;
2972
3039
  yield: number | null;
2973
3040
  yieldUnit: string | null;
3041
+ notes?: string | null | undefined;
2974
3042
  }[] | undefined;
2975
3043
  }, {
2976
3044
  status: "ok" | "alert" | "critical";
@@ -2993,6 +3061,7 @@ export declare const fieldsRouter: {
2993
3061
  standCountPerHa?: number | null | undefined;
2994
3062
  targetStandPerHa?: number | null | undefined;
2995
3063
  coverImage?: string | null | undefined;
3064
+ archivedAt?: string | null | undefined;
2996
3065
  historicalNdvi?: {
2997
3066
  value: number;
2998
3067
  date: string;
@@ -3005,6 +3074,7 @@ export declare const fieldsRouter: {
3005
3074
  harvestDate: string | null;
3006
3075
  yield: number | null;
3007
3076
  yieldUnit: string | null;
3077
+ notes?: string | null | undefined;
3008
3078
  }[] | undefined;
3009
3079
  }>;
3010
3080
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3034,6 +3104,7 @@ export declare const fieldsRouter: {
3034
3104
  standCountPerHa?: number | null | undefined;
3035
3105
  targetStandPerHa?: number | null | undefined;
3036
3106
  coverImage?: string | null | undefined;
3107
+ archivedAt?: string | null | undefined;
3037
3108
  historicalNdvi?: {
3038
3109
  value: number;
3039
3110
  date: string;
@@ -3046,6 +3117,7 @@ export declare const fieldsRouter: {
3046
3117
  harvestDate: string | null;
3047
3118
  yield: number | null;
3048
3119
  yieldUnit: string | null;
3120
+ notes?: string | null | undefined;
3049
3121
  }[] | undefined;
3050
3122
  };
3051
3123
  relationships?: Record<string, unknown> | undefined;
@@ -3075,6 +3147,7 @@ export declare const fieldsRouter: {
3075
3147
  standCountPerHa?: number | null | undefined;
3076
3148
  targetStandPerHa?: number | null | undefined;
3077
3149
  coverImage?: string | null | undefined;
3150
+ archivedAt?: string | null | undefined;
3078
3151
  historicalNdvi?: {
3079
3152
  value: number;
3080
3153
  date: string;
@@ -3087,6 +3160,7 @@ export declare const fieldsRouter: {
3087
3160
  harvestDate: string | null;
3088
3161
  yield: number | null;
3089
3162
  yieldUnit: string | null;
3163
+ notes?: string | null | undefined;
3090
3164
  }[] | undefined;
3091
3165
  };
3092
3166
  relationships?: Record<string, unknown> | undefined;
@@ -3142,6 +3216,7 @@ export declare const fieldsRouter: {
3142
3216
  standCountPerHa?: number | null | undefined;
3143
3217
  targetStandPerHa?: number | null | undefined;
3144
3218
  coverImage?: string | null | undefined;
3219
+ archivedAt?: string | null | undefined;
3145
3220
  historicalNdvi?: {
3146
3221
  value: number;
3147
3222
  date: string;
@@ -3154,6 +3229,7 @@ export declare const fieldsRouter: {
3154
3229
  harvestDate: string | null;
3155
3230
  yield: number | null;
3156
3231
  yieldUnit: string | null;
3232
+ notes?: string | null | undefined;
3157
3233
  }[] | undefined;
3158
3234
  };
3159
3235
  relationships?: Record<string, unknown> | undefined;
@@ -3195,6 +3271,7 @@ export declare const fieldsRouter: {
3195
3271
  standCountPerHa?: number | null | undefined;
3196
3272
  targetStandPerHa?: number | null | undefined;
3197
3273
  coverImage?: string | null | undefined;
3274
+ archivedAt?: string | null | undefined;
3198
3275
  historicalNdvi?: {
3199
3276
  value: number;
3200
3277
  date: string;
@@ -3207,6 +3284,7 @@ export declare const fieldsRouter: {
3207
3284
  harvestDate: string | null;
3208
3285
  yield: number | null;
3209
3286
  yieldUnit: string | null;
3287
+ notes?: string | null | undefined;
3210
3288
  }[] | undefined;
3211
3289
  };
3212
3290
  relationships?: Record<string, unknown> | undefined;
@@ -3615,45 +3693,45 @@ export declare const fieldsRouter: {
3615
3693
  }, "strip", z.ZodTypeAny, {
3616
3694
  currentCrop: string;
3617
3695
  plantingDate: string;
3696
+ notes?: string | undefined;
3618
3697
  expectedHarvestDate?: string | undefined;
3619
3698
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3620
3699
  standCountPerHa?: number | undefined;
3621
3700
  targetStandPerHa?: number | undefined;
3622
3701
  variety?: string | undefined;
3623
- notes?: string | undefined;
3624
3702
  }, {
3625
3703
  currentCrop: string;
3626
3704
  plantingDate: string;
3705
+ notes?: string | undefined;
3627
3706
  expectedHarvestDate?: string | undefined;
3628
3707
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3629
3708
  standCountPerHa?: number | undefined;
3630
3709
  targetStandPerHa?: number | undefined;
3631
3710
  variety?: string | undefined;
3632
- notes?: string | undefined;
3633
3711
  }>;
3634
3712
  }, "strip", z.ZodTypeAny, {
3635
3713
  type: "field-plantings";
3636
3714
  attributes: {
3637
3715
  currentCrop: string;
3638
3716
  plantingDate: string;
3717
+ notes?: string | undefined;
3639
3718
  expectedHarvestDate?: string | undefined;
3640
3719
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3641
3720
  standCountPerHa?: number | undefined;
3642
3721
  targetStandPerHa?: number | undefined;
3643
3722
  variety?: string | undefined;
3644
- notes?: string | undefined;
3645
3723
  };
3646
3724
  }, {
3647
3725
  type: "field-plantings";
3648
3726
  attributes: {
3649
3727
  currentCrop: string;
3650
3728
  plantingDate: string;
3729
+ notes?: string | undefined;
3651
3730
  expectedHarvestDate?: string | undefined;
3652
3731
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3653
3732
  standCountPerHa?: number | undefined;
3654
3733
  targetStandPerHa?: number | undefined;
3655
3734
  variety?: string | undefined;
3656
- notes?: string | undefined;
3657
3735
  };
3658
3736
  }>;
3659
3737
  }, "strip", z.ZodTypeAny, {
@@ -3662,12 +3740,12 @@ export declare const fieldsRouter: {
3662
3740
  attributes: {
3663
3741
  currentCrop: string;
3664
3742
  plantingDate: string;
3743
+ notes?: string | undefined;
3665
3744
  expectedHarvestDate?: string | undefined;
3666
3745
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3667
3746
  standCountPerHa?: number | undefined;
3668
3747
  targetStandPerHa?: number | undefined;
3669
3748
  variety?: string | undefined;
3670
- notes?: string | undefined;
3671
3749
  };
3672
3750
  };
3673
3751
  }, {
@@ -3676,12 +3754,12 @@ export declare const fieldsRouter: {
3676
3754
  attributes: {
3677
3755
  currentCrop: string;
3678
3756
  plantingDate: string;
3757
+ notes?: string | undefined;
3679
3758
  expectedHarvestDate?: string | undefined;
3680
3759
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
3681
3760
  standCountPerHa?: number | undefined;
3682
3761
  targetStandPerHa?: number | undefined;
3683
3762
  variety?: string | undefined;
3684
- notes?: string | undefined;
3685
3763
  };
3686
3764
  };
3687
3765
  }>;
@@ -3716,6 +3794,7 @@ export declare const fieldsRouter: {
3716
3794
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3717
3795
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3718
3796
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3797
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3719
3798
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
3720
3799
  date: z.ZodString;
3721
3800
  value: z.ZodNumber;
@@ -3734,6 +3813,7 @@ export declare const fieldsRouter: {
3734
3813
  harvestDate: z.ZodNullable<z.ZodString>;
3735
3814
  yield: z.ZodNullable<z.ZodNumber>;
3736
3815
  yieldUnit: z.ZodNullable<z.ZodString>;
3816
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3737
3817
  }, "strip", z.ZodTypeAny, {
3738
3818
  id: string;
3739
3819
  crop: string;
@@ -3742,6 +3822,7 @@ export declare const fieldsRouter: {
3742
3822
  harvestDate: string | null;
3743
3823
  yield: number | null;
3744
3824
  yieldUnit: string | null;
3825
+ notes?: string | null | undefined;
3745
3826
  }, {
3746
3827
  id: string;
3747
3828
  crop: string;
@@ -3750,6 +3831,7 @@ export declare const fieldsRouter: {
3750
3831
  harvestDate: string | null;
3751
3832
  yield: number | null;
3752
3833
  yieldUnit: string | null;
3834
+ notes?: string | null | undefined;
3753
3835
  }>, "many">>;
3754
3836
  } & {
3755
3837
  createdAt: z.ZodString;
@@ -3775,6 +3857,7 @@ export declare const fieldsRouter: {
3775
3857
  standCountPerHa?: number | null | undefined;
3776
3858
  targetStandPerHa?: number | null | undefined;
3777
3859
  coverImage?: string | null | undefined;
3860
+ archivedAt?: string | null | undefined;
3778
3861
  historicalNdvi?: {
3779
3862
  value: number;
3780
3863
  date: string;
@@ -3787,6 +3870,7 @@ export declare const fieldsRouter: {
3787
3870
  harvestDate: string | null;
3788
3871
  yield: number | null;
3789
3872
  yieldUnit: string | null;
3873
+ notes?: string | null | undefined;
3790
3874
  }[] | undefined;
3791
3875
  }, {
3792
3876
  status: "ok" | "alert" | "critical";
@@ -3809,6 +3893,7 @@ export declare const fieldsRouter: {
3809
3893
  standCountPerHa?: number | null | undefined;
3810
3894
  targetStandPerHa?: number | null | undefined;
3811
3895
  coverImage?: string | null | undefined;
3896
+ archivedAt?: string | null | undefined;
3812
3897
  historicalNdvi?: {
3813
3898
  value: number;
3814
3899
  date: string;
@@ -3821,6 +3906,7 @@ export declare const fieldsRouter: {
3821
3906
  harvestDate: string | null;
3822
3907
  yield: number | null;
3823
3908
  yieldUnit: string | null;
3909
+ notes?: string | null | undefined;
3824
3910
  }[] | undefined;
3825
3911
  }>;
3826
3912
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -3850,6 +3936,7 @@ export declare const fieldsRouter: {
3850
3936
  standCountPerHa?: number | null | undefined;
3851
3937
  targetStandPerHa?: number | null | undefined;
3852
3938
  coverImage?: string | null | undefined;
3939
+ archivedAt?: string | null | undefined;
3853
3940
  historicalNdvi?: {
3854
3941
  value: number;
3855
3942
  date: string;
@@ -3862,6 +3949,7 @@ export declare const fieldsRouter: {
3862
3949
  harvestDate: string | null;
3863
3950
  yield: number | null;
3864
3951
  yieldUnit: string | null;
3952
+ notes?: string | null | undefined;
3865
3953
  }[] | undefined;
3866
3954
  };
3867
3955
  relationships?: Record<string, unknown> | undefined;
@@ -3891,6 +3979,7 @@ export declare const fieldsRouter: {
3891
3979
  standCountPerHa?: number | null | undefined;
3892
3980
  targetStandPerHa?: number | null | undefined;
3893
3981
  coverImage?: string | null | undefined;
3982
+ archivedAt?: string | null | undefined;
3894
3983
  historicalNdvi?: {
3895
3984
  value: number;
3896
3985
  date: string;
@@ -3903,6 +3992,7 @@ export declare const fieldsRouter: {
3903
3992
  harvestDate: string | null;
3904
3993
  yield: number | null;
3905
3994
  yieldUnit: string | null;
3995
+ notes?: string | null | undefined;
3906
3996
  }[] | undefined;
3907
3997
  };
3908
3998
  relationships?: Record<string, unknown> | undefined;
@@ -3958,6 +4048,7 @@ export declare const fieldsRouter: {
3958
4048
  standCountPerHa?: number | null | undefined;
3959
4049
  targetStandPerHa?: number | null | undefined;
3960
4050
  coverImage?: string | null | undefined;
4051
+ archivedAt?: string | null | undefined;
3961
4052
  historicalNdvi?: {
3962
4053
  value: number;
3963
4054
  date: string;
@@ -3970,6 +4061,7 @@ export declare const fieldsRouter: {
3970
4061
  harvestDate: string | null;
3971
4062
  yield: number | null;
3972
4063
  yieldUnit: string | null;
4064
+ notes?: string | null | undefined;
3973
4065
  }[] | undefined;
3974
4066
  };
3975
4067
  relationships?: Record<string, unknown> | undefined;
@@ -4011,6 +4103,7 @@ export declare const fieldsRouter: {
4011
4103
  standCountPerHa?: number | null | undefined;
4012
4104
  targetStandPerHa?: number | null | undefined;
4013
4105
  coverImage?: string | null | undefined;
4106
+ archivedAt?: string | null | undefined;
4014
4107
  historicalNdvi?: {
4015
4108
  value: number;
4016
4109
  date: string;
@@ -4023,6 +4116,7 @@ export declare const fieldsRouter: {
4023
4116
  harvestDate: string | null;
4024
4117
  yield: number | null;
4025
4118
  yieldUnit: string | null;
4119
+ notes?: string | null | undefined;
4026
4120
  }[] | undefined;
4027
4121
  };
4028
4122
  relationships?: Record<string, unknown> | undefined;
@@ -4402,6 +4496,2154 @@ export declare const fieldsRouter: {
4402
4496
  }>;
4403
4497
  };
4404
4498
  };
4499
+ endSeason: {
4500
+ pathParams: z.ZodObject<{
4501
+ farmId: z.ZodString;
4502
+ id: z.ZodString;
4503
+ }, "strip", z.ZodTypeAny, {
4504
+ id: string;
4505
+ farmId: string;
4506
+ }, {
4507
+ id: string;
4508
+ farmId: string;
4509
+ }>;
4510
+ summary: "End season";
4511
+ description: "Archive the active crop into cropHistory, clear crop lifecycle fields, cancel in-season tasks, and pause fertigation schedules";
4512
+ method: "POST";
4513
+ body: z.ZodObject<{
4514
+ data: z.ZodObject<{
4515
+ type: z.ZodLiteral<"field-end-seasons">;
4516
+ attributes: z.ZodDefault<z.ZodObject<{
4517
+ harvestDate: z.ZodOptional<z.ZodString>;
4518
+ notes: z.ZodOptional<z.ZodString>;
4519
+ }, "strip", z.ZodTypeAny, {
4520
+ harvestDate?: string | undefined;
4521
+ notes?: string | undefined;
4522
+ }, {
4523
+ harvestDate?: string | undefined;
4524
+ notes?: string | undefined;
4525
+ }>>;
4526
+ }, "strip", z.ZodTypeAny, {
4527
+ type: "field-end-seasons";
4528
+ attributes: {
4529
+ harvestDate?: string | undefined;
4530
+ notes?: string | undefined;
4531
+ };
4532
+ }, {
4533
+ type: "field-end-seasons";
4534
+ attributes?: {
4535
+ harvestDate?: string | undefined;
4536
+ notes?: string | undefined;
4537
+ } | undefined;
4538
+ }>;
4539
+ }, "strip", z.ZodTypeAny, {
4540
+ data: {
4541
+ type: "field-end-seasons";
4542
+ attributes: {
4543
+ harvestDate?: string | undefined;
4544
+ notes?: string | undefined;
4545
+ };
4546
+ };
4547
+ }, {
4548
+ data: {
4549
+ type: "field-end-seasons";
4550
+ attributes?: {
4551
+ harvestDate?: string | undefined;
4552
+ notes?: string | undefined;
4553
+ } | undefined;
4554
+ };
4555
+ }>;
4556
+ path: "/farms/:farmId/fields/:id/end-season";
4557
+ responses: {
4558
+ 200: z.ZodObject<{
4559
+ data: z.ZodObject<{
4560
+ type: z.ZodLiteral<string>;
4561
+ id: z.ZodString;
4562
+ attributes: z.ZodObject<{
4563
+ name: z.ZodString;
4564
+ geometry: z.ZodNullable<z.ZodObject<{
4565
+ type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
4566
+ 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">]>;
4567
+ }, "strip", z.ZodTypeAny, {
4568
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4569
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4570
+ }, {
4571
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4572
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4573
+ }>>;
4574
+ ndvi: z.ZodNullable<z.ZodNumber>;
4575
+ moisture: z.ZodNullable<z.ZodString>;
4576
+ status: z.ZodEnum<["ok", "alert", "critical"]>;
4577
+ area: z.ZodNullable<z.ZodString>;
4578
+ crop: z.ZodNullable<z.ZodString>;
4579
+ soilType: z.ZodNullable<z.ZodString>;
4580
+ currentCrop: z.ZodNullable<z.ZodString>;
4581
+ plantingDate: z.ZodNullable<z.ZodString>;
4582
+ expectedHarvestDate: z.ZodNullable<z.ZodString>;
4583
+ cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
4584
+ standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4585
+ targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4586
+ coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4587
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4588
+ historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
4589
+ date: z.ZodString;
4590
+ value: z.ZodNumber;
4591
+ }, "strip", z.ZodTypeAny, {
4592
+ value: number;
4593
+ date: string;
4594
+ }, {
4595
+ value: number;
4596
+ date: string;
4597
+ }>, "many">>;
4598
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
4599
+ id: z.ZodString;
4600
+ season: z.ZodString;
4601
+ crop: z.ZodString;
4602
+ plantingDate: z.ZodString;
4603
+ harvestDate: z.ZodNullable<z.ZodString>;
4604
+ yield: z.ZodNullable<z.ZodNumber>;
4605
+ yieldUnit: z.ZodNullable<z.ZodString>;
4606
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4607
+ }, "strip", z.ZodTypeAny, {
4608
+ id: string;
4609
+ crop: string;
4610
+ season: string;
4611
+ plantingDate: string;
4612
+ harvestDate: string | null;
4613
+ yield: number | null;
4614
+ yieldUnit: string | null;
4615
+ notes?: string | null | undefined;
4616
+ }, {
4617
+ id: string;
4618
+ crop: string;
4619
+ season: string;
4620
+ plantingDate: string;
4621
+ harvestDate: string | null;
4622
+ yield: number | null;
4623
+ yieldUnit: string | null;
4624
+ notes?: string | null | undefined;
4625
+ }>, "many">>;
4626
+ } & {
4627
+ createdAt: z.ZodString;
4628
+ updatedAt: z.ZodString;
4629
+ }, "strip", z.ZodTypeAny, {
4630
+ status: "ok" | "alert" | "critical";
4631
+ createdAt: string;
4632
+ updatedAt: string;
4633
+ name: string;
4634
+ crop: string | null;
4635
+ geometry: {
4636
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4637
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4638
+ } | null;
4639
+ area: string | null;
4640
+ currentCrop: string | null;
4641
+ plantingDate: string | null;
4642
+ ndvi: number | null;
4643
+ moisture: string | null;
4644
+ soilType: string | null;
4645
+ expectedHarvestDate: string | null;
4646
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4647
+ standCountPerHa?: number | null | undefined;
4648
+ targetStandPerHa?: number | null | undefined;
4649
+ coverImage?: string | null | undefined;
4650
+ archivedAt?: string | null | undefined;
4651
+ historicalNdvi?: {
4652
+ value: number;
4653
+ date: string;
4654
+ }[] | undefined;
4655
+ cropHistory?: {
4656
+ id: string;
4657
+ crop: string;
4658
+ season: string;
4659
+ plantingDate: string;
4660
+ harvestDate: string | null;
4661
+ yield: number | null;
4662
+ yieldUnit: string | null;
4663
+ notes?: string | null | undefined;
4664
+ }[] | undefined;
4665
+ }, {
4666
+ status: "ok" | "alert" | "critical";
4667
+ createdAt: string;
4668
+ updatedAt: string;
4669
+ name: string;
4670
+ crop: string | null;
4671
+ geometry: {
4672
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4673
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4674
+ } | null;
4675
+ area: string | null;
4676
+ currentCrop: string | null;
4677
+ plantingDate: string | null;
4678
+ ndvi: number | null;
4679
+ moisture: string | null;
4680
+ soilType: string | null;
4681
+ expectedHarvestDate: string | null;
4682
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4683
+ standCountPerHa?: number | null | undefined;
4684
+ targetStandPerHa?: number | null | undefined;
4685
+ coverImage?: string | null | undefined;
4686
+ archivedAt?: string | null | undefined;
4687
+ historicalNdvi?: {
4688
+ value: number;
4689
+ date: string;
4690
+ }[] | undefined;
4691
+ cropHistory?: {
4692
+ id: string;
4693
+ crop: string;
4694
+ season: string;
4695
+ plantingDate: string;
4696
+ harvestDate: string | null;
4697
+ yield: number | null;
4698
+ yieldUnit: string | null;
4699
+ notes?: string | null | undefined;
4700
+ }[] | undefined;
4701
+ }>;
4702
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4703
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4704
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4705
+ }, "strip", z.ZodTypeAny, {
4706
+ type: string;
4707
+ id: string;
4708
+ attributes: {
4709
+ status: "ok" | "alert" | "critical";
4710
+ createdAt: string;
4711
+ updatedAt: string;
4712
+ name: string;
4713
+ crop: string | null;
4714
+ geometry: {
4715
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4716
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4717
+ } | null;
4718
+ area: string | null;
4719
+ currentCrop: string | null;
4720
+ plantingDate: string | null;
4721
+ ndvi: number | null;
4722
+ moisture: string | null;
4723
+ soilType: string | null;
4724
+ expectedHarvestDate: string | null;
4725
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4726
+ standCountPerHa?: number | null | undefined;
4727
+ targetStandPerHa?: number | null | undefined;
4728
+ coverImage?: string | null | undefined;
4729
+ archivedAt?: string | null | undefined;
4730
+ historicalNdvi?: {
4731
+ value: number;
4732
+ date: string;
4733
+ }[] | undefined;
4734
+ cropHistory?: {
4735
+ id: string;
4736
+ crop: string;
4737
+ season: string;
4738
+ plantingDate: string;
4739
+ harvestDate: string | null;
4740
+ yield: number | null;
4741
+ yieldUnit: string | null;
4742
+ notes?: string | null | undefined;
4743
+ }[] | undefined;
4744
+ };
4745
+ relationships?: Record<string, unknown> | undefined;
4746
+ links?: Record<string, string> | undefined;
4747
+ meta?: Record<string, unknown> | undefined;
4748
+ }, {
4749
+ type: string;
4750
+ id: string;
4751
+ attributes: {
4752
+ status: "ok" | "alert" | "critical";
4753
+ createdAt: string;
4754
+ updatedAt: string;
4755
+ name: string;
4756
+ crop: string | null;
4757
+ geometry: {
4758
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4759
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4760
+ } | null;
4761
+ area: string | null;
4762
+ currentCrop: string | null;
4763
+ plantingDate: string | null;
4764
+ ndvi: number | null;
4765
+ moisture: string | null;
4766
+ soilType: string | null;
4767
+ expectedHarvestDate: string | null;
4768
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4769
+ standCountPerHa?: number | null | undefined;
4770
+ targetStandPerHa?: number | null | undefined;
4771
+ coverImage?: string | null | undefined;
4772
+ archivedAt?: string | null | undefined;
4773
+ historicalNdvi?: {
4774
+ value: number;
4775
+ date: string;
4776
+ }[] | undefined;
4777
+ cropHistory?: {
4778
+ id: string;
4779
+ crop: string;
4780
+ season: string;
4781
+ plantingDate: string;
4782
+ harvestDate: string | null;
4783
+ yield: number | null;
4784
+ yieldUnit: string | null;
4785
+ notes?: string | null | undefined;
4786
+ }[] | undefined;
4787
+ };
4788
+ relationships?: Record<string, unknown> | undefined;
4789
+ links?: Record<string, string> | undefined;
4790
+ meta?: Record<string, unknown> | undefined;
4791
+ }>;
4792
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
4793
+ type: z.ZodString;
4794
+ id: z.ZodString;
4795
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4796
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4797
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4798
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4799
+ }, "strip", z.ZodTypeAny, {
4800
+ type: string;
4801
+ id: string;
4802
+ attributes?: Record<string, unknown> | undefined;
4803
+ relationships?: Record<string, unknown> | undefined;
4804
+ links?: Record<string, string> | undefined;
4805
+ meta?: Record<string, unknown> | undefined;
4806
+ }, {
4807
+ type: string;
4808
+ id: string;
4809
+ attributes?: Record<string, unknown> | undefined;
4810
+ relationships?: Record<string, unknown> | undefined;
4811
+ links?: Record<string, string> | undefined;
4812
+ meta?: Record<string, unknown> | undefined;
4813
+ }>, "many">>;
4814
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4815
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4816
+ }, "strip", z.ZodTypeAny, {
4817
+ data: {
4818
+ type: string;
4819
+ id: string;
4820
+ attributes: {
4821
+ status: "ok" | "alert" | "critical";
4822
+ createdAt: string;
4823
+ updatedAt: string;
4824
+ name: string;
4825
+ crop: string | null;
4826
+ geometry: {
4827
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4828
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4829
+ } | null;
4830
+ area: string | null;
4831
+ currentCrop: string | null;
4832
+ plantingDate: string | null;
4833
+ ndvi: number | null;
4834
+ moisture: string | null;
4835
+ soilType: string | null;
4836
+ expectedHarvestDate: string | null;
4837
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4838
+ standCountPerHa?: number | null | undefined;
4839
+ targetStandPerHa?: number | null | undefined;
4840
+ coverImage?: string | null | undefined;
4841
+ archivedAt?: string | null | undefined;
4842
+ historicalNdvi?: {
4843
+ value: number;
4844
+ date: string;
4845
+ }[] | undefined;
4846
+ cropHistory?: {
4847
+ id: string;
4848
+ crop: string;
4849
+ season: string;
4850
+ plantingDate: string;
4851
+ harvestDate: string | null;
4852
+ yield: number | null;
4853
+ yieldUnit: string | null;
4854
+ notes?: string | null | undefined;
4855
+ }[] | undefined;
4856
+ };
4857
+ relationships?: Record<string, unknown> | undefined;
4858
+ links?: Record<string, string> | undefined;
4859
+ meta?: Record<string, unknown> | undefined;
4860
+ };
4861
+ links?: Record<string, string> | undefined;
4862
+ meta?: Record<string, unknown> | undefined;
4863
+ included?: {
4864
+ type: string;
4865
+ id: string;
4866
+ attributes?: Record<string, unknown> | undefined;
4867
+ relationships?: Record<string, unknown> | undefined;
4868
+ links?: Record<string, string> | undefined;
4869
+ meta?: Record<string, unknown> | undefined;
4870
+ }[] | undefined;
4871
+ }, {
4872
+ data: {
4873
+ type: string;
4874
+ id: string;
4875
+ attributes: {
4876
+ status: "ok" | "alert" | "critical";
4877
+ createdAt: string;
4878
+ updatedAt: string;
4879
+ name: string;
4880
+ crop: string | null;
4881
+ geometry: {
4882
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
4883
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
4884
+ } | null;
4885
+ area: string | null;
4886
+ currentCrop: string | null;
4887
+ plantingDate: string | null;
4888
+ ndvi: number | null;
4889
+ moisture: string | null;
4890
+ soilType: string | null;
4891
+ expectedHarvestDate: string | null;
4892
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
4893
+ standCountPerHa?: number | null | undefined;
4894
+ targetStandPerHa?: number | null | undefined;
4895
+ coverImage?: string | null | undefined;
4896
+ archivedAt?: string | null | undefined;
4897
+ historicalNdvi?: {
4898
+ value: number;
4899
+ date: string;
4900
+ }[] | undefined;
4901
+ cropHistory?: {
4902
+ id: string;
4903
+ crop: string;
4904
+ season: string;
4905
+ plantingDate: string;
4906
+ harvestDate: string | null;
4907
+ yield: number | null;
4908
+ yieldUnit: string | null;
4909
+ notes?: string | null | undefined;
4910
+ }[] | undefined;
4911
+ };
4912
+ relationships?: Record<string, unknown> | undefined;
4913
+ links?: Record<string, string> | undefined;
4914
+ meta?: Record<string, unknown> | undefined;
4915
+ };
4916
+ links?: Record<string, string> | undefined;
4917
+ meta?: Record<string, unknown> | undefined;
4918
+ included?: {
4919
+ type: string;
4920
+ id: string;
4921
+ attributes?: Record<string, unknown> | undefined;
4922
+ relationships?: Record<string, unknown> | undefined;
4923
+ links?: Record<string, string> | undefined;
4924
+ meta?: Record<string, unknown> | undefined;
4925
+ }[] | undefined;
4926
+ }>;
4927
+ 400: z.ZodObject<{
4928
+ errors: z.ZodArray<z.ZodObject<{
4929
+ id: z.ZodOptional<z.ZodString>;
4930
+ links: z.ZodOptional<z.ZodObject<{
4931
+ about: z.ZodOptional<z.ZodString>;
4932
+ }, "strip", z.ZodTypeAny, {
4933
+ about?: string | undefined;
4934
+ }, {
4935
+ about?: string | undefined;
4936
+ }>>;
4937
+ status: z.ZodOptional<z.ZodString>;
4938
+ code: z.ZodOptional<z.ZodString>;
4939
+ title: z.ZodOptional<z.ZodString>;
4940
+ detail: z.ZodOptional<z.ZodString>;
4941
+ source: z.ZodOptional<z.ZodObject<{
4942
+ pointer: z.ZodOptional<z.ZodString>;
4943
+ parameter: z.ZodOptional<z.ZodString>;
4944
+ }, "strip", z.ZodTypeAny, {
4945
+ pointer?: string | undefined;
4946
+ parameter?: string | undefined;
4947
+ }, {
4948
+ pointer?: string | undefined;
4949
+ parameter?: string | undefined;
4950
+ }>>;
4951
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4952
+ }, "strip", z.ZodTypeAny, {
4953
+ status?: string | undefined;
4954
+ code?: string | undefined;
4955
+ id?: string | undefined;
4956
+ links?: {
4957
+ about?: string | undefined;
4958
+ } | undefined;
4959
+ meta?: Record<string, unknown> | undefined;
4960
+ title?: string | undefined;
4961
+ detail?: string | undefined;
4962
+ source?: {
4963
+ pointer?: string | undefined;
4964
+ parameter?: string | undefined;
4965
+ } | undefined;
4966
+ }, {
4967
+ status?: string | undefined;
4968
+ code?: string | undefined;
4969
+ id?: string | undefined;
4970
+ links?: {
4971
+ about?: string | undefined;
4972
+ } | undefined;
4973
+ meta?: Record<string, unknown> | undefined;
4974
+ title?: string | undefined;
4975
+ detail?: string | undefined;
4976
+ source?: {
4977
+ pointer?: string | undefined;
4978
+ parameter?: string | undefined;
4979
+ } | undefined;
4980
+ }>, "many">;
4981
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4982
+ }, "strip", z.ZodTypeAny, {
4983
+ errors: {
4984
+ status?: string | undefined;
4985
+ code?: string | undefined;
4986
+ id?: string | undefined;
4987
+ links?: {
4988
+ about?: string | undefined;
4989
+ } | undefined;
4990
+ meta?: Record<string, unknown> | undefined;
4991
+ title?: string | undefined;
4992
+ detail?: string | undefined;
4993
+ source?: {
4994
+ pointer?: string | undefined;
4995
+ parameter?: string | undefined;
4996
+ } | undefined;
4997
+ }[];
4998
+ meta?: Record<string, unknown> | undefined;
4999
+ }, {
5000
+ errors: {
5001
+ status?: string | undefined;
5002
+ code?: string | undefined;
5003
+ id?: string | undefined;
5004
+ links?: {
5005
+ about?: string | undefined;
5006
+ } | undefined;
5007
+ meta?: Record<string, unknown> | undefined;
5008
+ title?: string | undefined;
5009
+ detail?: string | undefined;
5010
+ source?: {
5011
+ pointer?: string | undefined;
5012
+ parameter?: string | undefined;
5013
+ } | undefined;
5014
+ }[];
5015
+ meta?: Record<string, unknown> | undefined;
5016
+ }>;
5017
+ 404: z.ZodObject<{
5018
+ errors: z.ZodArray<z.ZodObject<{
5019
+ id: z.ZodOptional<z.ZodString>;
5020
+ links: z.ZodOptional<z.ZodObject<{
5021
+ about: z.ZodOptional<z.ZodString>;
5022
+ }, "strip", z.ZodTypeAny, {
5023
+ about?: string | undefined;
5024
+ }, {
5025
+ about?: string | undefined;
5026
+ }>>;
5027
+ status: z.ZodOptional<z.ZodString>;
5028
+ code: z.ZodOptional<z.ZodString>;
5029
+ title: z.ZodOptional<z.ZodString>;
5030
+ detail: z.ZodOptional<z.ZodString>;
5031
+ source: z.ZodOptional<z.ZodObject<{
5032
+ pointer: z.ZodOptional<z.ZodString>;
5033
+ parameter: z.ZodOptional<z.ZodString>;
5034
+ }, "strip", z.ZodTypeAny, {
5035
+ pointer?: string | undefined;
5036
+ parameter?: string | undefined;
5037
+ }, {
5038
+ pointer?: string | undefined;
5039
+ parameter?: string | undefined;
5040
+ }>>;
5041
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5042
+ }, "strip", z.ZodTypeAny, {
5043
+ status?: string | undefined;
5044
+ code?: string | undefined;
5045
+ id?: string | undefined;
5046
+ links?: {
5047
+ about?: string | undefined;
5048
+ } | undefined;
5049
+ meta?: Record<string, unknown> | undefined;
5050
+ title?: string | undefined;
5051
+ detail?: string | undefined;
5052
+ source?: {
5053
+ pointer?: string | undefined;
5054
+ parameter?: string | undefined;
5055
+ } | undefined;
5056
+ }, {
5057
+ status?: string | undefined;
5058
+ code?: string | undefined;
5059
+ id?: string | undefined;
5060
+ links?: {
5061
+ about?: string | undefined;
5062
+ } | undefined;
5063
+ meta?: Record<string, unknown> | undefined;
5064
+ title?: string | undefined;
5065
+ detail?: string | undefined;
5066
+ source?: {
5067
+ pointer?: string | undefined;
5068
+ parameter?: string | undefined;
5069
+ } | undefined;
5070
+ }>, "many">;
5071
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5072
+ }, "strip", z.ZodTypeAny, {
5073
+ errors: {
5074
+ status?: string | undefined;
5075
+ code?: string | undefined;
5076
+ id?: string | undefined;
5077
+ links?: {
5078
+ about?: string | undefined;
5079
+ } | undefined;
5080
+ meta?: Record<string, unknown> | undefined;
5081
+ title?: string | undefined;
5082
+ detail?: string | undefined;
5083
+ source?: {
5084
+ pointer?: string | undefined;
5085
+ parameter?: string | undefined;
5086
+ } | undefined;
5087
+ }[];
5088
+ meta?: Record<string, unknown> | undefined;
5089
+ }, {
5090
+ errors: {
5091
+ status?: string | undefined;
5092
+ code?: string | undefined;
5093
+ id?: string | undefined;
5094
+ links?: {
5095
+ about?: string | undefined;
5096
+ } | undefined;
5097
+ meta?: Record<string, unknown> | undefined;
5098
+ title?: string | undefined;
5099
+ detail?: string | undefined;
5100
+ source?: {
5101
+ pointer?: string | undefined;
5102
+ parameter?: string | undefined;
5103
+ } | undefined;
5104
+ }[];
5105
+ meta?: Record<string, unknown> | undefined;
5106
+ }>;
5107
+ 401: z.ZodObject<{
5108
+ errors: z.ZodArray<z.ZodObject<{
5109
+ id: z.ZodOptional<z.ZodString>;
5110
+ links: z.ZodOptional<z.ZodObject<{
5111
+ about: z.ZodOptional<z.ZodString>;
5112
+ }, "strip", z.ZodTypeAny, {
5113
+ about?: string | undefined;
5114
+ }, {
5115
+ about?: string | undefined;
5116
+ }>>;
5117
+ status: z.ZodOptional<z.ZodString>;
5118
+ code: z.ZodOptional<z.ZodString>;
5119
+ title: z.ZodOptional<z.ZodString>;
5120
+ detail: z.ZodOptional<z.ZodString>;
5121
+ source: z.ZodOptional<z.ZodObject<{
5122
+ pointer: z.ZodOptional<z.ZodString>;
5123
+ parameter: z.ZodOptional<z.ZodString>;
5124
+ }, "strip", z.ZodTypeAny, {
5125
+ pointer?: string | undefined;
5126
+ parameter?: string | undefined;
5127
+ }, {
5128
+ pointer?: string | undefined;
5129
+ parameter?: string | undefined;
5130
+ }>>;
5131
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5132
+ }, "strip", z.ZodTypeAny, {
5133
+ status?: string | undefined;
5134
+ code?: string | undefined;
5135
+ id?: string | undefined;
5136
+ links?: {
5137
+ about?: string | undefined;
5138
+ } | undefined;
5139
+ meta?: Record<string, unknown> | undefined;
5140
+ title?: string | undefined;
5141
+ detail?: string | undefined;
5142
+ source?: {
5143
+ pointer?: string | undefined;
5144
+ parameter?: string | undefined;
5145
+ } | undefined;
5146
+ }, {
5147
+ status?: string | undefined;
5148
+ code?: string | undefined;
5149
+ id?: string | undefined;
5150
+ links?: {
5151
+ about?: string | undefined;
5152
+ } | undefined;
5153
+ meta?: Record<string, unknown> | undefined;
5154
+ title?: string | undefined;
5155
+ detail?: string | undefined;
5156
+ source?: {
5157
+ pointer?: string | undefined;
5158
+ parameter?: string | undefined;
5159
+ } | undefined;
5160
+ }>, "many">;
5161
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5162
+ }, "strip", z.ZodTypeAny, {
5163
+ errors: {
5164
+ status?: string | undefined;
5165
+ code?: string | undefined;
5166
+ id?: string | undefined;
5167
+ links?: {
5168
+ about?: string | undefined;
5169
+ } | undefined;
5170
+ meta?: Record<string, unknown> | undefined;
5171
+ title?: string | undefined;
5172
+ detail?: string | undefined;
5173
+ source?: {
5174
+ pointer?: string | undefined;
5175
+ parameter?: string | undefined;
5176
+ } | undefined;
5177
+ }[];
5178
+ meta?: Record<string, unknown> | undefined;
5179
+ }, {
5180
+ errors: {
5181
+ status?: string | undefined;
5182
+ code?: string | undefined;
5183
+ id?: string | undefined;
5184
+ links?: {
5185
+ about?: string | undefined;
5186
+ } | undefined;
5187
+ meta?: Record<string, unknown> | undefined;
5188
+ title?: string | undefined;
5189
+ detail?: string | undefined;
5190
+ source?: {
5191
+ pointer?: string | undefined;
5192
+ parameter?: string | undefined;
5193
+ } | undefined;
5194
+ }[];
5195
+ meta?: Record<string, unknown> | undefined;
5196
+ }>;
5197
+ 422: z.ZodObject<{
5198
+ errors: z.ZodArray<z.ZodObject<{
5199
+ id: z.ZodOptional<z.ZodString>;
5200
+ links: z.ZodOptional<z.ZodObject<{
5201
+ about: z.ZodOptional<z.ZodString>;
5202
+ }, "strip", z.ZodTypeAny, {
5203
+ about?: string | undefined;
5204
+ }, {
5205
+ about?: string | undefined;
5206
+ }>>;
5207
+ status: z.ZodOptional<z.ZodString>;
5208
+ code: z.ZodOptional<z.ZodString>;
5209
+ title: z.ZodOptional<z.ZodString>;
5210
+ detail: z.ZodOptional<z.ZodString>;
5211
+ source: z.ZodOptional<z.ZodObject<{
5212
+ pointer: z.ZodOptional<z.ZodString>;
5213
+ parameter: z.ZodOptional<z.ZodString>;
5214
+ }, "strip", z.ZodTypeAny, {
5215
+ pointer?: string | undefined;
5216
+ parameter?: string | undefined;
5217
+ }, {
5218
+ pointer?: string | undefined;
5219
+ parameter?: string | undefined;
5220
+ }>>;
5221
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5222
+ }, "strip", z.ZodTypeAny, {
5223
+ status?: string | undefined;
5224
+ code?: string | undefined;
5225
+ id?: string | undefined;
5226
+ links?: {
5227
+ about?: string | undefined;
5228
+ } | undefined;
5229
+ meta?: Record<string, unknown> | undefined;
5230
+ title?: string | undefined;
5231
+ detail?: string | undefined;
5232
+ source?: {
5233
+ pointer?: string | undefined;
5234
+ parameter?: string | undefined;
5235
+ } | undefined;
5236
+ }, {
5237
+ status?: string | undefined;
5238
+ code?: string | undefined;
5239
+ id?: string | undefined;
5240
+ links?: {
5241
+ about?: string | undefined;
5242
+ } | undefined;
5243
+ meta?: Record<string, unknown> | undefined;
5244
+ title?: string | undefined;
5245
+ detail?: string | undefined;
5246
+ source?: {
5247
+ pointer?: string | undefined;
5248
+ parameter?: string | undefined;
5249
+ } | undefined;
5250
+ }>, "many">;
5251
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5252
+ }, "strip", z.ZodTypeAny, {
5253
+ errors: {
5254
+ status?: string | undefined;
5255
+ code?: string | undefined;
5256
+ id?: string | undefined;
5257
+ links?: {
5258
+ about?: string | undefined;
5259
+ } | undefined;
5260
+ meta?: Record<string, unknown> | undefined;
5261
+ title?: string | undefined;
5262
+ detail?: string | undefined;
5263
+ source?: {
5264
+ pointer?: string | undefined;
5265
+ parameter?: string | undefined;
5266
+ } | undefined;
5267
+ }[];
5268
+ meta?: Record<string, unknown> | undefined;
5269
+ }, {
5270
+ errors: {
5271
+ status?: string | undefined;
5272
+ code?: string | undefined;
5273
+ id?: string | undefined;
5274
+ links?: {
5275
+ about?: string | undefined;
5276
+ } | undefined;
5277
+ meta?: Record<string, unknown> | undefined;
5278
+ title?: string | undefined;
5279
+ detail?: string | undefined;
5280
+ source?: {
5281
+ pointer?: string | undefined;
5282
+ parameter?: string | undefined;
5283
+ } | undefined;
5284
+ }[];
5285
+ meta?: Record<string, unknown> | undefined;
5286
+ }>;
5287
+ };
5288
+ };
5289
+ archiveField: {
5290
+ pathParams: z.ZodObject<{
5291
+ farmId: z.ZodString;
5292
+ id: z.ZodString;
5293
+ }, "strip", z.ZodTypeAny, {
5294
+ id: string;
5295
+ farmId: string;
5296
+ }, {
5297
+ id: string;
5298
+ farmId: string;
5299
+ }>;
5300
+ summary: "Archive field";
5301
+ description: "Soft-archive a field so it is hidden from the default fields list";
5302
+ method: "POST";
5303
+ body: z.ZodObject<{
5304
+ data: z.ZodObject<{
5305
+ type: z.ZodLiteral<"field-archives">;
5306
+ attributes: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
5307
+ }, "strip", z.ZodTypeAny, {
5308
+ type: "field-archives";
5309
+ attributes: {};
5310
+ }, {
5311
+ type: "field-archives";
5312
+ attributes?: {} | undefined;
5313
+ }>;
5314
+ }, "strip", z.ZodTypeAny, {
5315
+ data: {
5316
+ type: "field-archives";
5317
+ attributes: {};
5318
+ };
5319
+ }, {
5320
+ data: {
5321
+ type: "field-archives";
5322
+ attributes?: {} | undefined;
5323
+ };
5324
+ }>;
5325
+ path: "/farms/:farmId/fields/:id/archive";
5326
+ responses: {
5327
+ 200: z.ZodObject<{
5328
+ data: z.ZodObject<{
5329
+ type: z.ZodLiteral<string>;
5330
+ id: z.ZodString;
5331
+ attributes: z.ZodObject<{
5332
+ name: z.ZodString;
5333
+ geometry: z.ZodNullable<z.ZodObject<{
5334
+ type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
5335
+ 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">]>;
5336
+ }, "strip", z.ZodTypeAny, {
5337
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5338
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5339
+ }, {
5340
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5341
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5342
+ }>>;
5343
+ ndvi: z.ZodNullable<z.ZodNumber>;
5344
+ moisture: z.ZodNullable<z.ZodString>;
5345
+ status: z.ZodEnum<["ok", "alert", "critical"]>;
5346
+ area: z.ZodNullable<z.ZodString>;
5347
+ crop: z.ZodNullable<z.ZodString>;
5348
+ soilType: z.ZodNullable<z.ZodString>;
5349
+ currentCrop: z.ZodNullable<z.ZodString>;
5350
+ plantingDate: z.ZodNullable<z.ZodString>;
5351
+ expectedHarvestDate: z.ZodNullable<z.ZodString>;
5352
+ cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
5353
+ standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5354
+ targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5355
+ coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5356
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5357
+ historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
5358
+ date: z.ZodString;
5359
+ value: z.ZodNumber;
5360
+ }, "strip", z.ZodTypeAny, {
5361
+ value: number;
5362
+ date: string;
5363
+ }, {
5364
+ value: number;
5365
+ date: string;
5366
+ }>, "many">>;
5367
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
5368
+ id: z.ZodString;
5369
+ season: z.ZodString;
5370
+ crop: z.ZodString;
5371
+ plantingDate: z.ZodString;
5372
+ harvestDate: z.ZodNullable<z.ZodString>;
5373
+ yield: z.ZodNullable<z.ZodNumber>;
5374
+ yieldUnit: z.ZodNullable<z.ZodString>;
5375
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5376
+ }, "strip", z.ZodTypeAny, {
5377
+ id: string;
5378
+ crop: string;
5379
+ season: string;
5380
+ plantingDate: string;
5381
+ harvestDate: string | null;
5382
+ yield: number | null;
5383
+ yieldUnit: string | null;
5384
+ notes?: string | null | undefined;
5385
+ }, {
5386
+ id: string;
5387
+ crop: string;
5388
+ season: string;
5389
+ plantingDate: string;
5390
+ harvestDate: string | null;
5391
+ yield: number | null;
5392
+ yieldUnit: string | null;
5393
+ notes?: string | null | undefined;
5394
+ }>, "many">>;
5395
+ } & {
5396
+ createdAt: z.ZodString;
5397
+ updatedAt: z.ZodString;
5398
+ }, "strip", z.ZodTypeAny, {
5399
+ status: "ok" | "alert" | "critical";
5400
+ createdAt: string;
5401
+ updatedAt: string;
5402
+ name: string;
5403
+ crop: string | null;
5404
+ geometry: {
5405
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5406
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5407
+ } | null;
5408
+ area: string | null;
5409
+ currentCrop: string | null;
5410
+ plantingDate: string | null;
5411
+ ndvi: number | null;
5412
+ moisture: string | null;
5413
+ soilType: string | null;
5414
+ expectedHarvestDate: string | null;
5415
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5416
+ standCountPerHa?: number | null | undefined;
5417
+ targetStandPerHa?: number | null | undefined;
5418
+ coverImage?: string | null | undefined;
5419
+ archivedAt?: string | null | undefined;
5420
+ historicalNdvi?: {
5421
+ value: number;
5422
+ date: string;
5423
+ }[] | undefined;
5424
+ cropHistory?: {
5425
+ id: string;
5426
+ crop: string;
5427
+ season: string;
5428
+ plantingDate: string;
5429
+ harvestDate: string | null;
5430
+ yield: number | null;
5431
+ yieldUnit: string | null;
5432
+ notes?: string | null | undefined;
5433
+ }[] | undefined;
5434
+ }, {
5435
+ status: "ok" | "alert" | "critical";
5436
+ createdAt: string;
5437
+ updatedAt: string;
5438
+ name: string;
5439
+ crop: string | null;
5440
+ geometry: {
5441
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5442
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5443
+ } | null;
5444
+ area: string | null;
5445
+ currentCrop: string | null;
5446
+ plantingDate: string | null;
5447
+ ndvi: number | null;
5448
+ moisture: string | null;
5449
+ soilType: string | null;
5450
+ expectedHarvestDate: string | null;
5451
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5452
+ standCountPerHa?: number | null | undefined;
5453
+ targetStandPerHa?: number | null | undefined;
5454
+ coverImage?: string | null | undefined;
5455
+ archivedAt?: string | null | undefined;
5456
+ historicalNdvi?: {
5457
+ value: number;
5458
+ date: string;
5459
+ }[] | undefined;
5460
+ cropHistory?: {
5461
+ id: string;
5462
+ crop: string;
5463
+ season: string;
5464
+ plantingDate: string;
5465
+ harvestDate: string | null;
5466
+ yield: number | null;
5467
+ yieldUnit: string | null;
5468
+ notes?: string | null | undefined;
5469
+ }[] | undefined;
5470
+ }>;
5471
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5472
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5473
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5474
+ }, "strip", z.ZodTypeAny, {
5475
+ type: string;
5476
+ id: string;
5477
+ attributes: {
5478
+ status: "ok" | "alert" | "critical";
5479
+ createdAt: string;
5480
+ updatedAt: string;
5481
+ name: string;
5482
+ crop: string | null;
5483
+ geometry: {
5484
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5485
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5486
+ } | null;
5487
+ area: string | null;
5488
+ currentCrop: string | null;
5489
+ plantingDate: string | null;
5490
+ ndvi: number | null;
5491
+ moisture: string | null;
5492
+ soilType: string | null;
5493
+ expectedHarvestDate: string | null;
5494
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5495
+ standCountPerHa?: number | null | undefined;
5496
+ targetStandPerHa?: number | null | undefined;
5497
+ coverImage?: string | null | undefined;
5498
+ archivedAt?: string | null | undefined;
5499
+ historicalNdvi?: {
5500
+ value: number;
5501
+ date: string;
5502
+ }[] | undefined;
5503
+ cropHistory?: {
5504
+ id: string;
5505
+ crop: string;
5506
+ season: string;
5507
+ plantingDate: string;
5508
+ harvestDate: string | null;
5509
+ yield: number | null;
5510
+ yieldUnit: string | null;
5511
+ notes?: string | null | undefined;
5512
+ }[] | undefined;
5513
+ };
5514
+ relationships?: Record<string, unknown> | undefined;
5515
+ links?: Record<string, string> | undefined;
5516
+ meta?: Record<string, unknown> | undefined;
5517
+ }, {
5518
+ type: string;
5519
+ id: string;
5520
+ attributes: {
5521
+ status: "ok" | "alert" | "critical";
5522
+ createdAt: string;
5523
+ updatedAt: string;
5524
+ name: string;
5525
+ crop: string | null;
5526
+ geometry: {
5527
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5528
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5529
+ } | null;
5530
+ area: string | null;
5531
+ currentCrop: string | null;
5532
+ plantingDate: string | null;
5533
+ ndvi: number | null;
5534
+ moisture: string | null;
5535
+ soilType: string | null;
5536
+ expectedHarvestDate: string | null;
5537
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5538
+ standCountPerHa?: number | null | undefined;
5539
+ targetStandPerHa?: number | null | undefined;
5540
+ coverImage?: string | null | undefined;
5541
+ archivedAt?: string | null | undefined;
5542
+ historicalNdvi?: {
5543
+ value: number;
5544
+ date: string;
5545
+ }[] | undefined;
5546
+ cropHistory?: {
5547
+ id: string;
5548
+ crop: string;
5549
+ season: string;
5550
+ plantingDate: string;
5551
+ harvestDate: string | null;
5552
+ yield: number | null;
5553
+ yieldUnit: string | null;
5554
+ notes?: string | null | undefined;
5555
+ }[] | undefined;
5556
+ };
5557
+ relationships?: Record<string, unknown> | undefined;
5558
+ links?: Record<string, string> | undefined;
5559
+ meta?: Record<string, unknown> | undefined;
5560
+ }>;
5561
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
5562
+ type: z.ZodString;
5563
+ id: z.ZodString;
5564
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5565
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5566
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5567
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5568
+ }, "strip", z.ZodTypeAny, {
5569
+ type: string;
5570
+ id: string;
5571
+ attributes?: Record<string, unknown> | undefined;
5572
+ relationships?: Record<string, unknown> | undefined;
5573
+ links?: Record<string, string> | undefined;
5574
+ meta?: Record<string, unknown> | undefined;
5575
+ }, {
5576
+ type: string;
5577
+ id: string;
5578
+ attributes?: Record<string, unknown> | undefined;
5579
+ relationships?: Record<string, unknown> | undefined;
5580
+ links?: Record<string, string> | undefined;
5581
+ meta?: Record<string, unknown> | undefined;
5582
+ }>, "many">>;
5583
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5584
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5585
+ }, "strip", z.ZodTypeAny, {
5586
+ data: {
5587
+ type: string;
5588
+ id: string;
5589
+ attributes: {
5590
+ status: "ok" | "alert" | "critical";
5591
+ createdAt: string;
5592
+ updatedAt: string;
5593
+ name: string;
5594
+ crop: string | null;
5595
+ geometry: {
5596
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5597
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5598
+ } | null;
5599
+ area: string | null;
5600
+ currentCrop: string | null;
5601
+ plantingDate: string | null;
5602
+ ndvi: number | null;
5603
+ moisture: string | null;
5604
+ soilType: string | null;
5605
+ expectedHarvestDate: string | null;
5606
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5607
+ standCountPerHa?: number | null | undefined;
5608
+ targetStandPerHa?: number | null | undefined;
5609
+ coverImage?: string | null | undefined;
5610
+ archivedAt?: string | null | undefined;
5611
+ historicalNdvi?: {
5612
+ value: number;
5613
+ date: string;
5614
+ }[] | undefined;
5615
+ cropHistory?: {
5616
+ id: string;
5617
+ crop: string;
5618
+ season: string;
5619
+ plantingDate: string;
5620
+ harvestDate: string | null;
5621
+ yield: number | null;
5622
+ yieldUnit: string | null;
5623
+ notes?: string | null | undefined;
5624
+ }[] | undefined;
5625
+ };
5626
+ relationships?: Record<string, unknown> | undefined;
5627
+ links?: Record<string, string> | undefined;
5628
+ meta?: Record<string, unknown> | undefined;
5629
+ };
5630
+ links?: Record<string, string> | undefined;
5631
+ meta?: Record<string, unknown> | undefined;
5632
+ included?: {
5633
+ type: string;
5634
+ id: string;
5635
+ attributes?: Record<string, unknown> | undefined;
5636
+ relationships?: Record<string, unknown> | undefined;
5637
+ links?: Record<string, string> | undefined;
5638
+ meta?: Record<string, unknown> | undefined;
5639
+ }[] | undefined;
5640
+ }, {
5641
+ data: {
5642
+ type: string;
5643
+ id: string;
5644
+ attributes: {
5645
+ status: "ok" | "alert" | "critical";
5646
+ createdAt: string;
5647
+ updatedAt: string;
5648
+ name: string;
5649
+ crop: string | null;
5650
+ geometry: {
5651
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
5652
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
5653
+ } | null;
5654
+ area: string | null;
5655
+ currentCrop: string | null;
5656
+ plantingDate: string | null;
5657
+ ndvi: number | null;
5658
+ moisture: string | null;
5659
+ soilType: string | null;
5660
+ expectedHarvestDate: string | null;
5661
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
5662
+ standCountPerHa?: number | null | undefined;
5663
+ targetStandPerHa?: number | null | undefined;
5664
+ coverImage?: string | null | undefined;
5665
+ archivedAt?: string | null | undefined;
5666
+ historicalNdvi?: {
5667
+ value: number;
5668
+ date: string;
5669
+ }[] | undefined;
5670
+ cropHistory?: {
5671
+ id: string;
5672
+ crop: string;
5673
+ season: string;
5674
+ plantingDate: string;
5675
+ harvestDate: string | null;
5676
+ yield: number | null;
5677
+ yieldUnit: string | null;
5678
+ notes?: string | null | undefined;
5679
+ }[] | undefined;
5680
+ };
5681
+ relationships?: Record<string, unknown> | undefined;
5682
+ links?: Record<string, string> | undefined;
5683
+ meta?: Record<string, unknown> | undefined;
5684
+ };
5685
+ links?: Record<string, string> | undefined;
5686
+ meta?: Record<string, unknown> | undefined;
5687
+ included?: {
5688
+ type: string;
5689
+ id: string;
5690
+ attributes?: Record<string, unknown> | undefined;
5691
+ relationships?: Record<string, unknown> | undefined;
5692
+ links?: Record<string, string> | undefined;
5693
+ meta?: Record<string, unknown> | undefined;
5694
+ }[] | undefined;
5695
+ }>;
5696
+ 400: z.ZodObject<{
5697
+ errors: z.ZodArray<z.ZodObject<{
5698
+ id: z.ZodOptional<z.ZodString>;
5699
+ links: z.ZodOptional<z.ZodObject<{
5700
+ about: z.ZodOptional<z.ZodString>;
5701
+ }, "strip", z.ZodTypeAny, {
5702
+ about?: string | undefined;
5703
+ }, {
5704
+ about?: string | undefined;
5705
+ }>>;
5706
+ status: z.ZodOptional<z.ZodString>;
5707
+ code: z.ZodOptional<z.ZodString>;
5708
+ title: z.ZodOptional<z.ZodString>;
5709
+ detail: z.ZodOptional<z.ZodString>;
5710
+ source: z.ZodOptional<z.ZodObject<{
5711
+ pointer: z.ZodOptional<z.ZodString>;
5712
+ parameter: z.ZodOptional<z.ZodString>;
5713
+ }, "strip", z.ZodTypeAny, {
5714
+ pointer?: string | undefined;
5715
+ parameter?: string | undefined;
5716
+ }, {
5717
+ pointer?: string | undefined;
5718
+ parameter?: string | undefined;
5719
+ }>>;
5720
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5721
+ }, "strip", z.ZodTypeAny, {
5722
+ status?: string | undefined;
5723
+ code?: string | undefined;
5724
+ id?: string | undefined;
5725
+ links?: {
5726
+ about?: string | undefined;
5727
+ } | undefined;
5728
+ meta?: Record<string, unknown> | undefined;
5729
+ title?: string | undefined;
5730
+ detail?: string | undefined;
5731
+ source?: {
5732
+ pointer?: string | undefined;
5733
+ parameter?: string | undefined;
5734
+ } | undefined;
5735
+ }, {
5736
+ status?: string | undefined;
5737
+ code?: string | undefined;
5738
+ id?: string | undefined;
5739
+ links?: {
5740
+ about?: string | undefined;
5741
+ } | undefined;
5742
+ meta?: Record<string, unknown> | undefined;
5743
+ title?: string | undefined;
5744
+ detail?: string | undefined;
5745
+ source?: {
5746
+ pointer?: string | undefined;
5747
+ parameter?: string | undefined;
5748
+ } | undefined;
5749
+ }>, "many">;
5750
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5751
+ }, "strip", z.ZodTypeAny, {
5752
+ errors: {
5753
+ status?: string | undefined;
5754
+ code?: string | undefined;
5755
+ id?: string | undefined;
5756
+ links?: {
5757
+ about?: string | undefined;
5758
+ } | undefined;
5759
+ meta?: Record<string, unknown> | undefined;
5760
+ title?: string | undefined;
5761
+ detail?: string | undefined;
5762
+ source?: {
5763
+ pointer?: string | undefined;
5764
+ parameter?: string | undefined;
5765
+ } | undefined;
5766
+ }[];
5767
+ meta?: Record<string, unknown> | undefined;
5768
+ }, {
5769
+ errors: {
5770
+ status?: string | undefined;
5771
+ code?: string | undefined;
5772
+ id?: string | undefined;
5773
+ links?: {
5774
+ about?: string | undefined;
5775
+ } | undefined;
5776
+ meta?: Record<string, unknown> | undefined;
5777
+ title?: string | undefined;
5778
+ detail?: string | undefined;
5779
+ source?: {
5780
+ pointer?: string | undefined;
5781
+ parameter?: string | undefined;
5782
+ } | undefined;
5783
+ }[];
5784
+ meta?: Record<string, unknown> | undefined;
5785
+ }>;
5786
+ 404: z.ZodObject<{
5787
+ errors: z.ZodArray<z.ZodObject<{
5788
+ id: z.ZodOptional<z.ZodString>;
5789
+ links: z.ZodOptional<z.ZodObject<{
5790
+ about: z.ZodOptional<z.ZodString>;
5791
+ }, "strip", z.ZodTypeAny, {
5792
+ about?: string | undefined;
5793
+ }, {
5794
+ about?: string | undefined;
5795
+ }>>;
5796
+ status: z.ZodOptional<z.ZodString>;
5797
+ code: z.ZodOptional<z.ZodString>;
5798
+ title: z.ZodOptional<z.ZodString>;
5799
+ detail: z.ZodOptional<z.ZodString>;
5800
+ source: z.ZodOptional<z.ZodObject<{
5801
+ pointer: z.ZodOptional<z.ZodString>;
5802
+ parameter: z.ZodOptional<z.ZodString>;
5803
+ }, "strip", z.ZodTypeAny, {
5804
+ pointer?: string | undefined;
5805
+ parameter?: string | undefined;
5806
+ }, {
5807
+ pointer?: string | undefined;
5808
+ parameter?: string | undefined;
5809
+ }>>;
5810
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5811
+ }, "strip", z.ZodTypeAny, {
5812
+ status?: string | undefined;
5813
+ code?: string | undefined;
5814
+ id?: string | undefined;
5815
+ links?: {
5816
+ about?: string | undefined;
5817
+ } | undefined;
5818
+ meta?: Record<string, unknown> | undefined;
5819
+ title?: string | undefined;
5820
+ detail?: string | undefined;
5821
+ source?: {
5822
+ pointer?: string | undefined;
5823
+ parameter?: string | undefined;
5824
+ } | undefined;
5825
+ }, {
5826
+ status?: string | undefined;
5827
+ code?: string | undefined;
5828
+ id?: string | undefined;
5829
+ links?: {
5830
+ about?: string | undefined;
5831
+ } | undefined;
5832
+ meta?: Record<string, unknown> | undefined;
5833
+ title?: string | undefined;
5834
+ detail?: string | undefined;
5835
+ source?: {
5836
+ pointer?: string | undefined;
5837
+ parameter?: string | undefined;
5838
+ } | undefined;
5839
+ }>, "many">;
5840
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5841
+ }, "strip", z.ZodTypeAny, {
5842
+ errors: {
5843
+ status?: string | undefined;
5844
+ code?: string | undefined;
5845
+ id?: string | undefined;
5846
+ links?: {
5847
+ about?: string | undefined;
5848
+ } | undefined;
5849
+ meta?: Record<string, unknown> | undefined;
5850
+ title?: string | undefined;
5851
+ detail?: string | undefined;
5852
+ source?: {
5853
+ pointer?: string | undefined;
5854
+ parameter?: string | undefined;
5855
+ } | undefined;
5856
+ }[];
5857
+ meta?: Record<string, unknown> | undefined;
5858
+ }, {
5859
+ errors: {
5860
+ status?: string | undefined;
5861
+ code?: string | undefined;
5862
+ id?: string | undefined;
5863
+ links?: {
5864
+ about?: string | undefined;
5865
+ } | undefined;
5866
+ meta?: Record<string, unknown> | undefined;
5867
+ title?: string | undefined;
5868
+ detail?: string | undefined;
5869
+ source?: {
5870
+ pointer?: string | undefined;
5871
+ parameter?: string | undefined;
5872
+ } | undefined;
5873
+ }[];
5874
+ meta?: Record<string, unknown> | undefined;
5875
+ }>;
5876
+ 401: z.ZodObject<{
5877
+ errors: z.ZodArray<z.ZodObject<{
5878
+ id: z.ZodOptional<z.ZodString>;
5879
+ links: z.ZodOptional<z.ZodObject<{
5880
+ about: z.ZodOptional<z.ZodString>;
5881
+ }, "strip", z.ZodTypeAny, {
5882
+ about?: string | undefined;
5883
+ }, {
5884
+ about?: string | undefined;
5885
+ }>>;
5886
+ status: z.ZodOptional<z.ZodString>;
5887
+ code: z.ZodOptional<z.ZodString>;
5888
+ title: z.ZodOptional<z.ZodString>;
5889
+ detail: z.ZodOptional<z.ZodString>;
5890
+ source: z.ZodOptional<z.ZodObject<{
5891
+ pointer: z.ZodOptional<z.ZodString>;
5892
+ parameter: z.ZodOptional<z.ZodString>;
5893
+ }, "strip", z.ZodTypeAny, {
5894
+ pointer?: string | undefined;
5895
+ parameter?: string | undefined;
5896
+ }, {
5897
+ pointer?: string | undefined;
5898
+ parameter?: string | undefined;
5899
+ }>>;
5900
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5901
+ }, "strip", z.ZodTypeAny, {
5902
+ status?: string | undefined;
5903
+ code?: string | undefined;
5904
+ id?: string | undefined;
5905
+ links?: {
5906
+ about?: string | undefined;
5907
+ } | undefined;
5908
+ meta?: Record<string, unknown> | undefined;
5909
+ title?: string | undefined;
5910
+ detail?: string | undefined;
5911
+ source?: {
5912
+ pointer?: string | undefined;
5913
+ parameter?: string | undefined;
5914
+ } | undefined;
5915
+ }, {
5916
+ status?: string | undefined;
5917
+ code?: string | undefined;
5918
+ id?: string | undefined;
5919
+ links?: {
5920
+ about?: string | undefined;
5921
+ } | undefined;
5922
+ meta?: Record<string, unknown> | undefined;
5923
+ title?: string | undefined;
5924
+ detail?: string | undefined;
5925
+ source?: {
5926
+ pointer?: string | undefined;
5927
+ parameter?: string | undefined;
5928
+ } | undefined;
5929
+ }>, "many">;
5930
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5931
+ }, "strip", z.ZodTypeAny, {
5932
+ errors: {
5933
+ status?: string | undefined;
5934
+ code?: string | undefined;
5935
+ id?: string | undefined;
5936
+ links?: {
5937
+ about?: string | undefined;
5938
+ } | undefined;
5939
+ meta?: Record<string, unknown> | undefined;
5940
+ title?: string | undefined;
5941
+ detail?: string | undefined;
5942
+ source?: {
5943
+ pointer?: string | undefined;
5944
+ parameter?: string | undefined;
5945
+ } | undefined;
5946
+ }[];
5947
+ meta?: Record<string, unknown> | undefined;
5948
+ }, {
5949
+ errors: {
5950
+ status?: string | undefined;
5951
+ code?: string | undefined;
5952
+ id?: string | undefined;
5953
+ links?: {
5954
+ about?: string | undefined;
5955
+ } | undefined;
5956
+ meta?: Record<string, unknown> | undefined;
5957
+ title?: string | undefined;
5958
+ detail?: string | undefined;
5959
+ source?: {
5960
+ pointer?: string | undefined;
5961
+ parameter?: string | undefined;
5962
+ } | undefined;
5963
+ }[];
5964
+ meta?: Record<string, unknown> | undefined;
5965
+ }>;
5966
+ };
5967
+ };
5968
+ restoreField: {
5969
+ pathParams: z.ZodObject<{
5970
+ farmId: z.ZodString;
5971
+ id: z.ZodString;
5972
+ }, "strip", z.ZodTypeAny, {
5973
+ id: string;
5974
+ farmId: string;
5975
+ }, {
5976
+ id: string;
5977
+ farmId: string;
5978
+ }>;
5979
+ summary: "Restore field";
5980
+ description: "Restore a soft-archived field to the active fields list";
5981
+ method: "POST";
5982
+ body: z.ZodObject<{
5983
+ data: z.ZodObject<{
5984
+ type: z.ZodLiteral<"field-restores">;
5985
+ attributes: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
5986
+ }, "strip", z.ZodTypeAny, {
5987
+ type: "field-restores";
5988
+ attributes: {};
5989
+ }, {
5990
+ type: "field-restores";
5991
+ attributes?: {} | undefined;
5992
+ }>;
5993
+ }, "strip", z.ZodTypeAny, {
5994
+ data: {
5995
+ type: "field-restores";
5996
+ attributes: {};
5997
+ };
5998
+ }, {
5999
+ data: {
6000
+ type: "field-restores";
6001
+ attributes?: {} | undefined;
6002
+ };
6003
+ }>;
6004
+ path: "/farms/:farmId/fields/:id/restore";
6005
+ responses: {
6006
+ 200: z.ZodObject<{
6007
+ data: z.ZodObject<{
6008
+ type: z.ZodLiteral<string>;
6009
+ id: z.ZodString;
6010
+ attributes: z.ZodObject<{
6011
+ name: z.ZodString;
6012
+ geometry: z.ZodNullable<z.ZodObject<{
6013
+ type: z.ZodEnum<["Polygon", "MultiPolygon", "Point", "LineString"]>;
6014
+ 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">]>;
6015
+ }, "strip", z.ZodTypeAny, {
6016
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6017
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6018
+ }, {
6019
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6020
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6021
+ }>>;
6022
+ ndvi: z.ZodNullable<z.ZodNumber>;
6023
+ moisture: z.ZodNullable<z.ZodString>;
6024
+ status: z.ZodEnum<["ok", "alert", "critical"]>;
6025
+ area: z.ZodNullable<z.ZodString>;
6026
+ crop: z.ZodNullable<z.ZodString>;
6027
+ soilType: z.ZodNullable<z.ZodString>;
6028
+ currentCrop: z.ZodNullable<z.ZodString>;
6029
+ plantingDate: z.ZodNullable<z.ZodString>;
6030
+ expectedHarvestDate: z.ZodNullable<z.ZodString>;
6031
+ cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
6032
+ standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6033
+ targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6034
+ coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6035
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6036
+ historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
6037
+ date: z.ZodString;
6038
+ value: z.ZodNumber;
6039
+ }, "strip", z.ZodTypeAny, {
6040
+ value: number;
6041
+ date: string;
6042
+ }, {
6043
+ value: number;
6044
+ date: string;
6045
+ }>, "many">>;
6046
+ cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
6047
+ id: z.ZodString;
6048
+ season: z.ZodString;
6049
+ crop: z.ZodString;
6050
+ plantingDate: z.ZodString;
6051
+ harvestDate: z.ZodNullable<z.ZodString>;
6052
+ yield: z.ZodNullable<z.ZodNumber>;
6053
+ yieldUnit: z.ZodNullable<z.ZodString>;
6054
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6055
+ }, "strip", z.ZodTypeAny, {
6056
+ id: string;
6057
+ crop: string;
6058
+ season: string;
6059
+ plantingDate: string;
6060
+ harvestDate: string | null;
6061
+ yield: number | null;
6062
+ yieldUnit: string | null;
6063
+ notes?: string | null | undefined;
6064
+ }, {
6065
+ id: string;
6066
+ crop: string;
6067
+ season: string;
6068
+ plantingDate: string;
6069
+ harvestDate: string | null;
6070
+ yield: number | null;
6071
+ yieldUnit: string | null;
6072
+ notes?: string | null | undefined;
6073
+ }>, "many">>;
6074
+ } & {
6075
+ createdAt: z.ZodString;
6076
+ updatedAt: z.ZodString;
6077
+ }, "strip", z.ZodTypeAny, {
6078
+ status: "ok" | "alert" | "critical";
6079
+ createdAt: string;
6080
+ updatedAt: string;
6081
+ name: string;
6082
+ crop: string | null;
6083
+ geometry: {
6084
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6085
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6086
+ } | null;
6087
+ area: string | null;
6088
+ currentCrop: string | null;
6089
+ plantingDate: string | null;
6090
+ ndvi: number | null;
6091
+ moisture: string | null;
6092
+ soilType: string | null;
6093
+ expectedHarvestDate: string | null;
6094
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6095
+ standCountPerHa?: number | null | undefined;
6096
+ targetStandPerHa?: number | null | undefined;
6097
+ coverImage?: string | null | undefined;
6098
+ archivedAt?: string | null | undefined;
6099
+ historicalNdvi?: {
6100
+ value: number;
6101
+ date: string;
6102
+ }[] | undefined;
6103
+ cropHistory?: {
6104
+ id: string;
6105
+ crop: string;
6106
+ season: string;
6107
+ plantingDate: string;
6108
+ harvestDate: string | null;
6109
+ yield: number | null;
6110
+ yieldUnit: string | null;
6111
+ notes?: string | null | undefined;
6112
+ }[] | undefined;
6113
+ }, {
6114
+ status: "ok" | "alert" | "critical";
6115
+ createdAt: string;
6116
+ updatedAt: string;
6117
+ name: string;
6118
+ crop: string | null;
6119
+ geometry: {
6120
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6121
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6122
+ } | null;
6123
+ area: string | null;
6124
+ currentCrop: string | null;
6125
+ plantingDate: string | null;
6126
+ ndvi: number | null;
6127
+ moisture: string | null;
6128
+ soilType: string | null;
6129
+ expectedHarvestDate: string | null;
6130
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6131
+ standCountPerHa?: number | null | undefined;
6132
+ targetStandPerHa?: number | null | undefined;
6133
+ coverImage?: string | null | undefined;
6134
+ archivedAt?: string | null | undefined;
6135
+ historicalNdvi?: {
6136
+ value: number;
6137
+ date: string;
6138
+ }[] | undefined;
6139
+ cropHistory?: {
6140
+ id: string;
6141
+ crop: string;
6142
+ season: string;
6143
+ plantingDate: string;
6144
+ harvestDate: string | null;
6145
+ yield: number | null;
6146
+ yieldUnit: string | null;
6147
+ notes?: string | null | undefined;
6148
+ }[] | undefined;
6149
+ }>;
6150
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6151
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6152
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6153
+ }, "strip", z.ZodTypeAny, {
6154
+ type: string;
6155
+ id: string;
6156
+ attributes: {
6157
+ status: "ok" | "alert" | "critical";
6158
+ createdAt: string;
6159
+ updatedAt: string;
6160
+ name: string;
6161
+ crop: string | null;
6162
+ geometry: {
6163
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6164
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6165
+ } | null;
6166
+ area: string | null;
6167
+ currentCrop: string | null;
6168
+ plantingDate: string | null;
6169
+ ndvi: number | null;
6170
+ moisture: string | null;
6171
+ soilType: string | null;
6172
+ expectedHarvestDate: string | null;
6173
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6174
+ standCountPerHa?: number | null | undefined;
6175
+ targetStandPerHa?: number | null | undefined;
6176
+ coverImage?: string | null | undefined;
6177
+ archivedAt?: string | null | undefined;
6178
+ historicalNdvi?: {
6179
+ value: number;
6180
+ date: string;
6181
+ }[] | undefined;
6182
+ cropHistory?: {
6183
+ id: string;
6184
+ crop: string;
6185
+ season: string;
6186
+ plantingDate: string;
6187
+ harvestDate: string | null;
6188
+ yield: number | null;
6189
+ yieldUnit: string | null;
6190
+ notes?: string | null | undefined;
6191
+ }[] | undefined;
6192
+ };
6193
+ relationships?: Record<string, unknown> | undefined;
6194
+ links?: Record<string, string> | undefined;
6195
+ meta?: Record<string, unknown> | undefined;
6196
+ }, {
6197
+ type: string;
6198
+ id: string;
6199
+ attributes: {
6200
+ status: "ok" | "alert" | "critical";
6201
+ createdAt: string;
6202
+ updatedAt: string;
6203
+ name: string;
6204
+ crop: string | null;
6205
+ geometry: {
6206
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6207
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6208
+ } | null;
6209
+ area: string | null;
6210
+ currentCrop: string | null;
6211
+ plantingDate: string | null;
6212
+ ndvi: number | null;
6213
+ moisture: string | null;
6214
+ soilType: string | null;
6215
+ expectedHarvestDate: string | null;
6216
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6217
+ standCountPerHa?: number | null | undefined;
6218
+ targetStandPerHa?: number | null | undefined;
6219
+ coverImage?: string | null | undefined;
6220
+ archivedAt?: string | null | undefined;
6221
+ historicalNdvi?: {
6222
+ value: number;
6223
+ date: string;
6224
+ }[] | undefined;
6225
+ cropHistory?: {
6226
+ id: string;
6227
+ crop: string;
6228
+ season: string;
6229
+ plantingDate: string;
6230
+ harvestDate: string | null;
6231
+ yield: number | null;
6232
+ yieldUnit: string | null;
6233
+ notes?: string | null | undefined;
6234
+ }[] | undefined;
6235
+ };
6236
+ relationships?: Record<string, unknown> | undefined;
6237
+ links?: Record<string, string> | undefined;
6238
+ meta?: Record<string, unknown> | undefined;
6239
+ }>;
6240
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
6241
+ type: z.ZodString;
6242
+ id: z.ZodString;
6243
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6244
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6245
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6246
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6247
+ }, "strip", z.ZodTypeAny, {
6248
+ type: string;
6249
+ id: string;
6250
+ attributes?: Record<string, unknown> | undefined;
6251
+ relationships?: Record<string, unknown> | undefined;
6252
+ links?: Record<string, string> | undefined;
6253
+ meta?: Record<string, unknown> | undefined;
6254
+ }, {
6255
+ type: string;
6256
+ id: string;
6257
+ attributes?: Record<string, unknown> | undefined;
6258
+ relationships?: Record<string, unknown> | undefined;
6259
+ links?: Record<string, string> | undefined;
6260
+ meta?: Record<string, unknown> | undefined;
6261
+ }>, "many">>;
6262
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6263
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6264
+ }, "strip", z.ZodTypeAny, {
6265
+ data: {
6266
+ type: string;
6267
+ id: string;
6268
+ attributes: {
6269
+ status: "ok" | "alert" | "critical";
6270
+ createdAt: string;
6271
+ updatedAt: string;
6272
+ name: string;
6273
+ crop: string | null;
6274
+ geometry: {
6275
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6276
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6277
+ } | null;
6278
+ area: string | null;
6279
+ currentCrop: string | null;
6280
+ plantingDate: string | null;
6281
+ ndvi: number | null;
6282
+ moisture: string | null;
6283
+ soilType: string | null;
6284
+ expectedHarvestDate: string | null;
6285
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6286
+ standCountPerHa?: number | null | undefined;
6287
+ targetStandPerHa?: number | null | undefined;
6288
+ coverImage?: string | null | undefined;
6289
+ archivedAt?: string | null | undefined;
6290
+ historicalNdvi?: {
6291
+ value: number;
6292
+ date: string;
6293
+ }[] | undefined;
6294
+ cropHistory?: {
6295
+ id: string;
6296
+ crop: string;
6297
+ season: string;
6298
+ plantingDate: string;
6299
+ harvestDate: string | null;
6300
+ yield: number | null;
6301
+ yieldUnit: string | null;
6302
+ notes?: string | null | undefined;
6303
+ }[] | undefined;
6304
+ };
6305
+ relationships?: Record<string, unknown> | undefined;
6306
+ links?: Record<string, string> | undefined;
6307
+ meta?: Record<string, unknown> | undefined;
6308
+ };
6309
+ links?: Record<string, string> | undefined;
6310
+ meta?: Record<string, unknown> | undefined;
6311
+ included?: {
6312
+ type: string;
6313
+ id: string;
6314
+ attributes?: Record<string, unknown> | undefined;
6315
+ relationships?: Record<string, unknown> | undefined;
6316
+ links?: Record<string, string> | undefined;
6317
+ meta?: Record<string, unknown> | undefined;
6318
+ }[] | undefined;
6319
+ }, {
6320
+ data: {
6321
+ type: string;
6322
+ id: string;
6323
+ attributes: {
6324
+ status: "ok" | "alert" | "critical";
6325
+ createdAt: string;
6326
+ updatedAt: string;
6327
+ name: string;
6328
+ crop: string | null;
6329
+ geometry: {
6330
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
6331
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
6332
+ } | null;
6333
+ area: string | null;
6334
+ currentCrop: string | null;
6335
+ plantingDate: string | null;
6336
+ ndvi: number | null;
6337
+ moisture: string | null;
6338
+ soilType: string | null;
6339
+ expectedHarvestDate: string | null;
6340
+ cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
6341
+ standCountPerHa?: number | null | undefined;
6342
+ targetStandPerHa?: number | null | undefined;
6343
+ coverImage?: string | null | undefined;
6344
+ archivedAt?: string | null | undefined;
6345
+ historicalNdvi?: {
6346
+ value: number;
6347
+ date: string;
6348
+ }[] | undefined;
6349
+ cropHistory?: {
6350
+ id: string;
6351
+ crop: string;
6352
+ season: string;
6353
+ plantingDate: string;
6354
+ harvestDate: string | null;
6355
+ yield: number | null;
6356
+ yieldUnit: string | null;
6357
+ notes?: string | null | undefined;
6358
+ }[] | undefined;
6359
+ };
6360
+ relationships?: Record<string, unknown> | undefined;
6361
+ links?: Record<string, string> | undefined;
6362
+ meta?: Record<string, unknown> | undefined;
6363
+ };
6364
+ links?: Record<string, string> | undefined;
6365
+ meta?: Record<string, unknown> | undefined;
6366
+ included?: {
6367
+ type: string;
6368
+ id: string;
6369
+ attributes?: Record<string, unknown> | undefined;
6370
+ relationships?: Record<string, unknown> | undefined;
6371
+ links?: Record<string, string> | undefined;
6372
+ meta?: Record<string, unknown> | undefined;
6373
+ }[] | undefined;
6374
+ }>;
6375
+ 400: z.ZodObject<{
6376
+ errors: z.ZodArray<z.ZodObject<{
6377
+ id: z.ZodOptional<z.ZodString>;
6378
+ links: z.ZodOptional<z.ZodObject<{
6379
+ about: z.ZodOptional<z.ZodString>;
6380
+ }, "strip", z.ZodTypeAny, {
6381
+ about?: string | undefined;
6382
+ }, {
6383
+ about?: string | undefined;
6384
+ }>>;
6385
+ status: z.ZodOptional<z.ZodString>;
6386
+ code: z.ZodOptional<z.ZodString>;
6387
+ title: z.ZodOptional<z.ZodString>;
6388
+ detail: z.ZodOptional<z.ZodString>;
6389
+ source: z.ZodOptional<z.ZodObject<{
6390
+ pointer: z.ZodOptional<z.ZodString>;
6391
+ parameter: z.ZodOptional<z.ZodString>;
6392
+ }, "strip", z.ZodTypeAny, {
6393
+ pointer?: string | undefined;
6394
+ parameter?: string | undefined;
6395
+ }, {
6396
+ pointer?: string | undefined;
6397
+ parameter?: string | undefined;
6398
+ }>>;
6399
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6400
+ }, "strip", z.ZodTypeAny, {
6401
+ status?: string | undefined;
6402
+ code?: string | undefined;
6403
+ id?: string | undefined;
6404
+ links?: {
6405
+ about?: string | undefined;
6406
+ } | undefined;
6407
+ meta?: Record<string, unknown> | undefined;
6408
+ title?: string | undefined;
6409
+ detail?: string | undefined;
6410
+ source?: {
6411
+ pointer?: string | undefined;
6412
+ parameter?: string | undefined;
6413
+ } | undefined;
6414
+ }, {
6415
+ status?: string | undefined;
6416
+ code?: string | undefined;
6417
+ id?: string | undefined;
6418
+ links?: {
6419
+ about?: string | undefined;
6420
+ } | undefined;
6421
+ meta?: Record<string, unknown> | undefined;
6422
+ title?: string | undefined;
6423
+ detail?: string | undefined;
6424
+ source?: {
6425
+ pointer?: string | undefined;
6426
+ parameter?: string | undefined;
6427
+ } | undefined;
6428
+ }>, "many">;
6429
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6430
+ }, "strip", z.ZodTypeAny, {
6431
+ errors: {
6432
+ status?: string | undefined;
6433
+ code?: string | undefined;
6434
+ id?: string | undefined;
6435
+ links?: {
6436
+ about?: string | undefined;
6437
+ } | undefined;
6438
+ meta?: Record<string, unknown> | undefined;
6439
+ title?: string | undefined;
6440
+ detail?: string | undefined;
6441
+ source?: {
6442
+ pointer?: string | undefined;
6443
+ parameter?: string | undefined;
6444
+ } | undefined;
6445
+ }[];
6446
+ meta?: Record<string, unknown> | undefined;
6447
+ }, {
6448
+ errors: {
6449
+ status?: string | undefined;
6450
+ code?: string | undefined;
6451
+ id?: string | undefined;
6452
+ links?: {
6453
+ about?: string | undefined;
6454
+ } | undefined;
6455
+ meta?: Record<string, unknown> | undefined;
6456
+ title?: string | undefined;
6457
+ detail?: string | undefined;
6458
+ source?: {
6459
+ pointer?: string | undefined;
6460
+ parameter?: string | undefined;
6461
+ } | undefined;
6462
+ }[];
6463
+ meta?: Record<string, unknown> | undefined;
6464
+ }>;
6465
+ 404: z.ZodObject<{
6466
+ errors: z.ZodArray<z.ZodObject<{
6467
+ id: z.ZodOptional<z.ZodString>;
6468
+ links: z.ZodOptional<z.ZodObject<{
6469
+ about: z.ZodOptional<z.ZodString>;
6470
+ }, "strip", z.ZodTypeAny, {
6471
+ about?: string | undefined;
6472
+ }, {
6473
+ about?: string | undefined;
6474
+ }>>;
6475
+ status: z.ZodOptional<z.ZodString>;
6476
+ code: z.ZodOptional<z.ZodString>;
6477
+ title: z.ZodOptional<z.ZodString>;
6478
+ detail: z.ZodOptional<z.ZodString>;
6479
+ source: z.ZodOptional<z.ZodObject<{
6480
+ pointer: z.ZodOptional<z.ZodString>;
6481
+ parameter: z.ZodOptional<z.ZodString>;
6482
+ }, "strip", z.ZodTypeAny, {
6483
+ pointer?: string | undefined;
6484
+ parameter?: string | undefined;
6485
+ }, {
6486
+ pointer?: string | undefined;
6487
+ parameter?: string | undefined;
6488
+ }>>;
6489
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6490
+ }, "strip", z.ZodTypeAny, {
6491
+ status?: string | undefined;
6492
+ code?: string | undefined;
6493
+ id?: string | undefined;
6494
+ links?: {
6495
+ about?: string | undefined;
6496
+ } | undefined;
6497
+ meta?: Record<string, unknown> | undefined;
6498
+ title?: string | undefined;
6499
+ detail?: string | undefined;
6500
+ source?: {
6501
+ pointer?: string | undefined;
6502
+ parameter?: string | undefined;
6503
+ } | undefined;
6504
+ }, {
6505
+ status?: string | undefined;
6506
+ code?: string | undefined;
6507
+ id?: string | undefined;
6508
+ links?: {
6509
+ about?: string | undefined;
6510
+ } | undefined;
6511
+ meta?: Record<string, unknown> | undefined;
6512
+ title?: string | undefined;
6513
+ detail?: string | undefined;
6514
+ source?: {
6515
+ pointer?: string | undefined;
6516
+ parameter?: string | undefined;
6517
+ } | undefined;
6518
+ }>, "many">;
6519
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6520
+ }, "strip", z.ZodTypeAny, {
6521
+ errors: {
6522
+ status?: string | undefined;
6523
+ code?: string | undefined;
6524
+ id?: string | undefined;
6525
+ links?: {
6526
+ about?: string | undefined;
6527
+ } | undefined;
6528
+ meta?: Record<string, unknown> | undefined;
6529
+ title?: string | undefined;
6530
+ detail?: string | undefined;
6531
+ source?: {
6532
+ pointer?: string | undefined;
6533
+ parameter?: string | undefined;
6534
+ } | undefined;
6535
+ }[];
6536
+ meta?: Record<string, unknown> | undefined;
6537
+ }, {
6538
+ errors: {
6539
+ status?: string | undefined;
6540
+ code?: string | undefined;
6541
+ id?: string | undefined;
6542
+ links?: {
6543
+ about?: string | undefined;
6544
+ } | undefined;
6545
+ meta?: Record<string, unknown> | undefined;
6546
+ title?: string | undefined;
6547
+ detail?: string | undefined;
6548
+ source?: {
6549
+ pointer?: string | undefined;
6550
+ parameter?: string | undefined;
6551
+ } | undefined;
6552
+ }[];
6553
+ meta?: Record<string, unknown> | undefined;
6554
+ }>;
6555
+ 401: z.ZodObject<{
6556
+ errors: z.ZodArray<z.ZodObject<{
6557
+ id: z.ZodOptional<z.ZodString>;
6558
+ links: z.ZodOptional<z.ZodObject<{
6559
+ about: z.ZodOptional<z.ZodString>;
6560
+ }, "strip", z.ZodTypeAny, {
6561
+ about?: string | undefined;
6562
+ }, {
6563
+ about?: string | undefined;
6564
+ }>>;
6565
+ status: z.ZodOptional<z.ZodString>;
6566
+ code: z.ZodOptional<z.ZodString>;
6567
+ title: z.ZodOptional<z.ZodString>;
6568
+ detail: z.ZodOptional<z.ZodString>;
6569
+ source: z.ZodOptional<z.ZodObject<{
6570
+ pointer: z.ZodOptional<z.ZodString>;
6571
+ parameter: z.ZodOptional<z.ZodString>;
6572
+ }, "strip", z.ZodTypeAny, {
6573
+ pointer?: string | undefined;
6574
+ parameter?: string | undefined;
6575
+ }, {
6576
+ pointer?: string | undefined;
6577
+ parameter?: string | undefined;
6578
+ }>>;
6579
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6580
+ }, "strip", z.ZodTypeAny, {
6581
+ status?: string | undefined;
6582
+ code?: string | undefined;
6583
+ id?: string | undefined;
6584
+ links?: {
6585
+ about?: string | undefined;
6586
+ } | undefined;
6587
+ meta?: Record<string, unknown> | undefined;
6588
+ title?: string | undefined;
6589
+ detail?: string | undefined;
6590
+ source?: {
6591
+ pointer?: string | undefined;
6592
+ parameter?: string | undefined;
6593
+ } | undefined;
6594
+ }, {
6595
+ status?: string | undefined;
6596
+ code?: string | undefined;
6597
+ id?: string | undefined;
6598
+ links?: {
6599
+ about?: string | undefined;
6600
+ } | undefined;
6601
+ meta?: Record<string, unknown> | undefined;
6602
+ title?: string | undefined;
6603
+ detail?: string | undefined;
6604
+ source?: {
6605
+ pointer?: string | undefined;
6606
+ parameter?: string | undefined;
6607
+ } | undefined;
6608
+ }>, "many">;
6609
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6610
+ }, "strip", z.ZodTypeAny, {
6611
+ errors: {
6612
+ status?: string | undefined;
6613
+ code?: string | undefined;
6614
+ id?: string | undefined;
6615
+ links?: {
6616
+ about?: string | undefined;
6617
+ } | undefined;
6618
+ meta?: Record<string, unknown> | undefined;
6619
+ title?: string | undefined;
6620
+ detail?: string | undefined;
6621
+ source?: {
6622
+ pointer?: string | undefined;
6623
+ parameter?: string | undefined;
6624
+ } | undefined;
6625
+ }[];
6626
+ meta?: Record<string, unknown> | undefined;
6627
+ }, {
6628
+ errors: {
6629
+ status?: string | undefined;
6630
+ code?: string | undefined;
6631
+ id?: string | undefined;
6632
+ links?: {
6633
+ about?: string | undefined;
6634
+ } | undefined;
6635
+ meta?: Record<string, unknown> | undefined;
6636
+ title?: string | undefined;
6637
+ detail?: string | undefined;
6638
+ source?: {
6639
+ pointer?: string | undefined;
6640
+ parameter?: string | undefined;
6641
+ } | undefined;
6642
+ }[];
6643
+ meta?: Record<string, unknown> | undefined;
6644
+ }>;
6645
+ };
6646
+ };
4405
6647
  listSeasonTimeline: {
4406
6648
  pathParams: z.ZodObject<{
4407
6649
  farmId: z.ZodString;
@@ -5131,6 +7373,7 @@ export declare const fieldsRouter: {
5131
7373
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5132
7374
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5133
7375
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7376
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5134
7377
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
5135
7378
  date: z.ZodString;
5136
7379
  value: z.ZodNumber;
@@ -5149,6 +7392,7 @@ export declare const fieldsRouter: {
5149
7392
  harvestDate: z.ZodNullable<z.ZodString>;
5150
7393
  yield: z.ZodNullable<z.ZodNumber>;
5151
7394
  yieldUnit: z.ZodNullable<z.ZodString>;
7395
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5152
7396
  }, "strip", z.ZodTypeAny, {
5153
7397
  id: string;
5154
7398
  crop: string;
@@ -5157,6 +7401,7 @@ export declare const fieldsRouter: {
5157
7401
  harvestDate: string | null;
5158
7402
  yield: number | null;
5159
7403
  yieldUnit: string | null;
7404
+ notes?: string | null | undefined;
5160
7405
  }, {
5161
7406
  id: string;
5162
7407
  crop: string;
@@ -5165,6 +7410,7 @@ export declare const fieldsRouter: {
5165
7410
  harvestDate: string | null;
5166
7411
  yield: number | null;
5167
7412
  yieldUnit: string | null;
7413
+ notes?: string | null | undefined;
5168
7414
  }>, "many">>;
5169
7415
  } & {
5170
7416
  createdAt: z.ZodString;
@@ -5190,6 +7436,7 @@ export declare const fieldsRouter: {
5190
7436
  standCountPerHa?: number | null | undefined;
5191
7437
  targetStandPerHa?: number | null | undefined;
5192
7438
  coverImage?: string | null | undefined;
7439
+ archivedAt?: string | null | undefined;
5193
7440
  historicalNdvi?: {
5194
7441
  value: number;
5195
7442
  date: string;
@@ -5202,6 +7449,7 @@ export declare const fieldsRouter: {
5202
7449
  harvestDate: string | null;
5203
7450
  yield: number | null;
5204
7451
  yieldUnit: string | null;
7452
+ notes?: string | null | undefined;
5205
7453
  }[] | undefined;
5206
7454
  }, {
5207
7455
  status: "ok" | "alert" | "critical";
@@ -5224,6 +7472,7 @@ export declare const fieldsRouter: {
5224
7472
  standCountPerHa?: number | null | undefined;
5225
7473
  targetStandPerHa?: number | null | undefined;
5226
7474
  coverImage?: string | null | undefined;
7475
+ archivedAt?: string | null | undefined;
5227
7476
  historicalNdvi?: {
5228
7477
  value: number;
5229
7478
  date: string;
@@ -5236,6 +7485,7 @@ export declare const fieldsRouter: {
5236
7485
  harvestDate: string | null;
5237
7486
  yield: number | null;
5238
7487
  yieldUnit: string | null;
7488
+ notes?: string | null | undefined;
5239
7489
  }[] | undefined;
5240
7490
  }>;
5241
7491
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -5265,6 +7515,7 @@ export declare const fieldsRouter: {
5265
7515
  standCountPerHa?: number | null | undefined;
5266
7516
  targetStandPerHa?: number | null | undefined;
5267
7517
  coverImage?: string | null | undefined;
7518
+ archivedAt?: string | null | undefined;
5268
7519
  historicalNdvi?: {
5269
7520
  value: number;
5270
7521
  date: string;
@@ -5277,6 +7528,7 @@ export declare const fieldsRouter: {
5277
7528
  harvestDate: string | null;
5278
7529
  yield: number | null;
5279
7530
  yieldUnit: string | null;
7531
+ notes?: string | null | undefined;
5280
7532
  }[] | undefined;
5281
7533
  };
5282
7534
  relationships?: Record<string, unknown> | undefined;
@@ -5306,6 +7558,7 @@ export declare const fieldsRouter: {
5306
7558
  standCountPerHa?: number | null | undefined;
5307
7559
  targetStandPerHa?: number | null | undefined;
5308
7560
  coverImage?: string | null | undefined;
7561
+ archivedAt?: string | null | undefined;
5309
7562
  historicalNdvi?: {
5310
7563
  value: number;
5311
7564
  date: string;
@@ -5318,6 +7571,7 @@ export declare const fieldsRouter: {
5318
7571
  harvestDate: string | null;
5319
7572
  yield: number | null;
5320
7573
  yieldUnit: string | null;
7574
+ notes?: string | null | undefined;
5321
7575
  }[] | undefined;
5322
7576
  };
5323
7577
  relationships?: Record<string, unknown> | undefined;
@@ -5373,6 +7627,7 @@ export declare const fieldsRouter: {
5373
7627
  standCountPerHa?: number | null | undefined;
5374
7628
  targetStandPerHa?: number | null | undefined;
5375
7629
  coverImage?: string | null | undefined;
7630
+ archivedAt?: string | null | undefined;
5376
7631
  historicalNdvi?: {
5377
7632
  value: number;
5378
7633
  date: string;
@@ -5385,6 +7640,7 @@ export declare const fieldsRouter: {
5385
7640
  harvestDate: string | null;
5386
7641
  yield: number | null;
5387
7642
  yieldUnit: string | null;
7643
+ notes?: string | null | undefined;
5388
7644
  }[] | undefined;
5389
7645
  };
5390
7646
  relationships?: Record<string, unknown> | undefined;
@@ -5426,6 +7682,7 @@ export declare const fieldsRouter: {
5426
7682
  standCountPerHa?: number | null | undefined;
5427
7683
  targetStandPerHa?: number | null | undefined;
5428
7684
  coverImage?: string | null | undefined;
7685
+ archivedAt?: string | null | undefined;
5429
7686
  historicalNdvi?: {
5430
7687
  value: number;
5431
7688
  date: string;
@@ -5438,6 +7695,7 @@ export declare const fieldsRouter: {
5438
7695
  harvestDate: string | null;
5439
7696
  yield: number | null;
5440
7697
  yieldUnit: string | null;
7698
+ notes?: string | null | undefined;
5441
7699
  }[] | undefined;
5442
7700
  };
5443
7701
  relationships?: Record<string, unknown> | undefined;