@deepintel-ltd/farmpro-contracts 1.21.0 → 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;
@@ -135,6 +141,7 @@ export declare const fieldsRouter: {
135
141
  standCountPerHa?: number | null | undefined;
136
142
  targetStandPerHa?: number | null | undefined;
137
143
  coverImage?: string | null | undefined;
144
+ archivedAt?: string | null | undefined;
138
145
  historicalNdvi?: {
139
146
  value: number;
140
147
  date: string;
@@ -170,6 +177,7 @@ export declare const fieldsRouter: {
170
177
  standCountPerHa?: number | null | undefined;
171
178
  targetStandPerHa?: number | null | undefined;
172
179
  coverImage?: string | null | undefined;
180
+ archivedAt?: string | null | undefined;
173
181
  historicalNdvi?: {
174
182
  value: number;
175
183
  date: string;
@@ -212,6 +220,7 @@ export declare const fieldsRouter: {
212
220
  standCountPerHa?: number | null | undefined;
213
221
  targetStandPerHa?: number | null | undefined;
214
222
  coverImage?: string | null | undefined;
223
+ archivedAt?: string | null | undefined;
215
224
  historicalNdvi?: {
216
225
  value: number;
217
226
  date: string;
@@ -254,6 +263,7 @@ export declare const fieldsRouter: {
254
263
  standCountPerHa?: number | null | undefined;
255
264
  targetStandPerHa?: number | null | undefined;
256
265
  coverImage?: string | null | undefined;
266
+ archivedAt?: string | null | undefined;
257
267
  historicalNdvi?: {
258
268
  value: number;
259
269
  date: string;
@@ -322,6 +332,7 @@ export declare const fieldsRouter: {
322
332
  standCountPerHa?: number | null | undefined;
323
333
  targetStandPerHa?: number | null | undefined;
324
334
  coverImage?: string | null | undefined;
335
+ archivedAt?: string | null | undefined;
325
336
  historicalNdvi?: {
326
337
  value: number;
327
338
  date: string;
@@ -376,6 +387,7 @@ export declare const fieldsRouter: {
376
387
  standCountPerHa?: number | null | undefined;
377
388
  targetStandPerHa?: number | null | undefined;
378
389
  coverImage?: string | null | undefined;
390
+ archivedAt?: string | null | undefined;
379
391
  historicalNdvi?: {
380
392
  value: number;
381
393
  date: string;
@@ -930,6 +942,7 @@ export declare const fieldsRouter: {
930
942
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
931
943
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
932
944
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
946
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
934
947
  date: z.ZodString;
935
948
  value: z.ZodNumber;
@@ -992,6 +1005,7 @@ export declare const fieldsRouter: {
992
1005
  standCountPerHa?: number | null | undefined;
993
1006
  targetStandPerHa?: number | null | undefined;
994
1007
  coverImage?: string | null | undefined;
1008
+ archivedAt?: string | null | undefined;
995
1009
  historicalNdvi?: {
996
1010
  value: number;
997
1011
  date: string;
@@ -1027,6 +1041,7 @@ export declare const fieldsRouter: {
1027
1041
  standCountPerHa?: number | null | undefined;
1028
1042
  targetStandPerHa?: number | null | undefined;
1029
1043
  coverImage?: string | null | undefined;
1044
+ archivedAt?: string | null | undefined;
1030
1045
  historicalNdvi?: {
1031
1046
  value: number;
1032
1047
  date: string;
@@ -1069,6 +1084,7 @@ export declare const fieldsRouter: {
1069
1084
  standCountPerHa?: number | null | undefined;
1070
1085
  targetStandPerHa?: number | null | undefined;
1071
1086
  coverImage?: string | null | undefined;
1087
+ archivedAt?: string | null | undefined;
1072
1088
  historicalNdvi?: {
1073
1089
  value: number;
1074
1090
  date: string;
@@ -1111,6 +1127,7 @@ export declare const fieldsRouter: {
1111
1127
  standCountPerHa?: number | null | undefined;
1112
1128
  targetStandPerHa?: number | null | undefined;
1113
1129
  coverImage?: string | null | undefined;
1130
+ archivedAt?: string | null | undefined;
1114
1131
  historicalNdvi?: {
1115
1132
  value: number;
1116
1133
  date: string;
@@ -1179,6 +1196,7 @@ export declare const fieldsRouter: {
1179
1196
  standCountPerHa?: number | null | undefined;
1180
1197
  targetStandPerHa?: number | null | undefined;
1181
1198
  coverImage?: string | null | undefined;
1199
+ archivedAt?: string | null | undefined;
1182
1200
  historicalNdvi?: {
1183
1201
  value: number;
1184
1202
  date: string;
@@ -1233,6 +1251,7 @@ export declare const fieldsRouter: {
1233
1251
  standCountPerHa?: number | null | undefined;
1234
1252
  targetStandPerHa?: number | null | undefined;
1235
1253
  coverImage?: string | null | undefined;
1254
+ archivedAt?: string | null | undefined;
1236
1255
  historicalNdvi?: {
1237
1256
  value: number;
1238
1257
  date: string;
@@ -1797,6 +1816,7 @@ export declare const fieldsRouter: {
1797
1816
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1798
1817
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1799
1818
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1819
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
1820
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
1801
1821
  date: z.ZodString;
1802
1822
  value: z.ZodNumber;
@@ -1859,6 +1879,7 @@ export declare const fieldsRouter: {
1859
1879
  standCountPerHa?: number | null | undefined;
1860
1880
  targetStandPerHa?: number | null | undefined;
1861
1881
  coverImage?: string | null | undefined;
1882
+ archivedAt?: string | null | undefined;
1862
1883
  historicalNdvi?: {
1863
1884
  value: number;
1864
1885
  date: string;
@@ -1894,6 +1915,7 @@ export declare const fieldsRouter: {
1894
1915
  standCountPerHa?: number | null | undefined;
1895
1916
  targetStandPerHa?: number | null | undefined;
1896
1917
  coverImage?: string | null | undefined;
1918
+ archivedAt?: string | null | undefined;
1897
1919
  historicalNdvi?: {
1898
1920
  value: number;
1899
1921
  date: string;
@@ -2131,6 +2153,7 @@ export declare const fieldsRouter: {
2131
2153
  standCountPerHa?: number | null | undefined;
2132
2154
  targetStandPerHa?: number | null | undefined;
2133
2155
  coverImage?: string | null | undefined;
2156
+ archivedAt?: string | null | undefined;
2134
2157
  historicalNdvi?: {
2135
2158
  value: number;
2136
2159
  date: string;
@@ -2207,6 +2230,7 @@ export declare const fieldsRouter: {
2207
2230
  standCountPerHa?: number | null | undefined;
2208
2231
  targetStandPerHa?: number | null | undefined;
2209
2232
  coverImage?: string | null | undefined;
2233
+ archivedAt?: string | null | undefined;
2210
2234
  historicalNdvi?: {
2211
2235
  value: number;
2212
2236
  date: string;
@@ -2309,6 +2333,7 @@ export declare const fieldsRouter: {
2309
2333
  standCountPerHa?: number | null | undefined;
2310
2334
  targetStandPerHa?: number | null | undefined;
2311
2335
  coverImage?: string | null | undefined;
2336
+ archivedAt?: string | null | undefined;
2312
2337
  historicalNdvi?: {
2313
2338
  value: number;
2314
2339
  date: string;
@@ -2397,6 +2422,7 @@ export declare const fieldsRouter: {
2397
2422
  standCountPerHa?: number | null | undefined;
2398
2423
  targetStandPerHa?: number | null | undefined;
2399
2424
  coverImage?: string | null | undefined;
2425
+ archivedAt?: string | null | undefined;
2400
2426
  historicalNdvi?: {
2401
2427
  value: number;
2402
2428
  date: string;
@@ -2936,6 +2962,7 @@ export declare const fieldsRouter: {
2936
2962
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2937
2963
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2938
2964
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2965
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2939
2966
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
2940
2967
  date: z.ZodString;
2941
2968
  value: z.ZodNumber;
@@ -2998,6 +3025,7 @@ export declare const fieldsRouter: {
2998
3025
  standCountPerHa?: number | null | undefined;
2999
3026
  targetStandPerHa?: number | null | undefined;
3000
3027
  coverImage?: string | null | undefined;
3028
+ archivedAt?: string | null | undefined;
3001
3029
  historicalNdvi?: {
3002
3030
  value: number;
3003
3031
  date: string;
@@ -3033,6 +3061,7 @@ export declare const fieldsRouter: {
3033
3061
  standCountPerHa?: number | null | undefined;
3034
3062
  targetStandPerHa?: number | null | undefined;
3035
3063
  coverImage?: string | null | undefined;
3064
+ archivedAt?: string | null | undefined;
3036
3065
  historicalNdvi?: {
3037
3066
  value: number;
3038
3067
  date: string;
@@ -3075,6 +3104,7 @@ export declare const fieldsRouter: {
3075
3104
  standCountPerHa?: number | null | undefined;
3076
3105
  targetStandPerHa?: number | null | undefined;
3077
3106
  coverImage?: string | null | undefined;
3107
+ archivedAt?: string | null | undefined;
3078
3108
  historicalNdvi?: {
3079
3109
  value: number;
3080
3110
  date: string;
@@ -3117,6 +3147,7 @@ export declare const fieldsRouter: {
3117
3147
  standCountPerHa?: number | null | undefined;
3118
3148
  targetStandPerHa?: number | null | undefined;
3119
3149
  coverImage?: string | null | undefined;
3150
+ archivedAt?: string | null | undefined;
3120
3151
  historicalNdvi?: {
3121
3152
  value: number;
3122
3153
  date: string;
@@ -3185,6 +3216,7 @@ export declare const fieldsRouter: {
3185
3216
  standCountPerHa?: number | null | undefined;
3186
3217
  targetStandPerHa?: number | null | undefined;
3187
3218
  coverImage?: string | null | undefined;
3219
+ archivedAt?: string | null | undefined;
3188
3220
  historicalNdvi?: {
3189
3221
  value: number;
3190
3222
  date: string;
@@ -3239,6 +3271,7 @@ export declare const fieldsRouter: {
3239
3271
  standCountPerHa?: number | null | undefined;
3240
3272
  targetStandPerHa?: number | null | undefined;
3241
3273
  coverImage?: string | null | undefined;
3274
+ archivedAt?: string | null | undefined;
3242
3275
  historicalNdvi?: {
3243
3276
  value: number;
3244
3277
  date: string;
@@ -3761,6 +3794,7 @@ export declare const fieldsRouter: {
3761
3794
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3762
3795
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3763
3796
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3797
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3764
3798
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
3765
3799
  date: z.ZodString;
3766
3800
  value: z.ZodNumber;
@@ -3823,6 +3857,7 @@ export declare const fieldsRouter: {
3823
3857
  standCountPerHa?: number | null | undefined;
3824
3858
  targetStandPerHa?: number | null | undefined;
3825
3859
  coverImage?: string | null | undefined;
3860
+ archivedAt?: string | null | undefined;
3826
3861
  historicalNdvi?: {
3827
3862
  value: number;
3828
3863
  date: string;
@@ -3858,6 +3893,7 @@ export declare const fieldsRouter: {
3858
3893
  standCountPerHa?: number | null | undefined;
3859
3894
  targetStandPerHa?: number | null | undefined;
3860
3895
  coverImage?: string | null | undefined;
3896
+ archivedAt?: string | null | undefined;
3861
3897
  historicalNdvi?: {
3862
3898
  value: number;
3863
3899
  date: string;
@@ -3900,6 +3936,7 @@ export declare const fieldsRouter: {
3900
3936
  standCountPerHa?: number | null | undefined;
3901
3937
  targetStandPerHa?: number | null | undefined;
3902
3938
  coverImage?: string | null | undefined;
3939
+ archivedAt?: string | null | undefined;
3903
3940
  historicalNdvi?: {
3904
3941
  value: number;
3905
3942
  date: string;
@@ -3942,6 +3979,7 @@ export declare const fieldsRouter: {
3942
3979
  standCountPerHa?: number | null | undefined;
3943
3980
  targetStandPerHa?: number | null | undefined;
3944
3981
  coverImage?: string | null | undefined;
3982
+ archivedAt?: string | null | undefined;
3945
3983
  historicalNdvi?: {
3946
3984
  value: number;
3947
3985
  date: string;
@@ -4010,6 +4048,7 @@ export declare const fieldsRouter: {
4010
4048
  standCountPerHa?: number | null | undefined;
4011
4049
  targetStandPerHa?: number | null | undefined;
4012
4050
  coverImage?: string | null | undefined;
4051
+ archivedAt?: string | null | undefined;
4013
4052
  historicalNdvi?: {
4014
4053
  value: number;
4015
4054
  date: string;
@@ -4064,6 +4103,7 @@ export declare const fieldsRouter: {
4064
4103
  standCountPerHa?: number | null | undefined;
4065
4104
  targetStandPerHa?: number | null | undefined;
4066
4105
  coverImage?: string | null | undefined;
4106
+ archivedAt?: string | null | undefined;
4067
4107
  historicalNdvi?: {
4068
4108
  value: number;
4069
4109
  date: string;
@@ -4544,6 +4584,7 @@ export declare const fieldsRouter: {
4544
4584
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4545
4585
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4546
4586
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4587
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4547
4588
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
4548
4589
  date: z.ZodString;
4549
4590
  value: z.ZodNumber;
@@ -4606,6 +4647,7 @@ export declare const fieldsRouter: {
4606
4647
  standCountPerHa?: number | null | undefined;
4607
4648
  targetStandPerHa?: number | null | undefined;
4608
4649
  coverImage?: string | null | undefined;
4650
+ archivedAt?: string | null | undefined;
4609
4651
  historicalNdvi?: {
4610
4652
  value: number;
4611
4653
  date: string;
@@ -4641,6 +4683,7 @@ export declare const fieldsRouter: {
4641
4683
  standCountPerHa?: number | null | undefined;
4642
4684
  targetStandPerHa?: number | null | undefined;
4643
4685
  coverImage?: string | null | undefined;
4686
+ archivedAt?: string | null | undefined;
4644
4687
  historicalNdvi?: {
4645
4688
  value: number;
4646
4689
  date: string;
@@ -4683,6 +4726,7 @@ export declare const fieldsRouter: {
4683
4726
  standCountPerHa?: number | null | undefined;
4684
4727
  targetStandPerHa?: number | null | undefined;
4685
4728
  coverImage?: string | null | undefined;
4729
+ archivedAt?: string | null | undefined;
4686
4730
  historicalNdvi?: {
4687
4731
  value: number;
4688
4732
  date: string;
@@ -4725,6 +4769,7 @@ export declare const fieldsRouter: {
4725
4769
  standCountPerHa?: number | null | undefined;
4726
4770
  targetStandPerHa?: number | null | undefined;
4727
4771
  coverImage?: string | null | undefined;
4772
+ archivedAt?: string | null | undefined;
4728
4773
  historicalNdvi?: {
4729
4774
  value: number;
4730
4775
  date: string;
@@ -4793,6 +4838,7 @@ export declare const fieldsRouter: {
4793
4838
  standCountPerHa?: number | null | undefined;
4794
4839
  targetStandPerHa?: number | null | undefined;
4795
4840
  coverImage?: string | null | undefined;
4841
+ archivedAt?: string | null | undefined;
4796
4842
  historicalNdvi?: {
4797
4843
  value: number;
4798
4844
  date: string;
@@ -4847,6 +4893,7 @@ export declare const fieldsRouter: {
4847
4893
  standCountPerHa?: number | null | undefined;
4848
4894
  targetStandPerHa?: number | null | undefined;
4849
4895
  coverImage?: string | null | undefined;
4896
+ archivedAt?: string | null | undefined;
4850
4897
  historicalNdvi?: {
4851
4898
  value: number;
4852
4899
  date: string;
@@ -5239,6 +5286,1364 @@ export declare const fieldsRouter: {
5239
5286
  }>;
5240
5287
  };
5241
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
+ };
5242
6647
  listSeasonTimeline: {
5243
6648
  pathParams: z.ZodObject<{
5244
6649
  farmId: z.ZodString;
@@ -5968,6 +7373,7 @@ export declare const fieldsRouter: {
5968
7373
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5969
7374
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5970
7375
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7376
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5971
7377
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
5972
7378
  date: z.ZodString;
5973
7379
  value: z.ZodNumber;
@@ -6030,6 +7436,7 @@ export declare const fieldsRouter: {
6030
7436
  standCountPerHa?: number | null | undefined;
6031
7437
  targetStandPerHa?: number | null | undefined;
6032
7438
  coverImage?: string | null | undefined;
7439
+ archivedAt?: string | null | undefined;
6033
7440
  historicalNdvi?: {
6034
7441
  value: number;
6035
7442
  date: string;
@@ -6065,6 +7472,7 @@ export declare const fieldsRouter: {
6065
7472
  standCountPerHa?: number | null | undefined;
6066
7473
  targetStandPerHa?: number | null | undefined;
6067
7474
  coverImage?: string | null | undefined;
7475
+ archivedAt?: string | null | undefined;
6068
7476
  historicalNdvi?: {
6069
7477
  value: number;
6070
7478
  date: string;
@@ -6107,6 +7515,7 @@ export declare const fieldsRouter: {
6107
7515
  standCountPerHa?: number | null | undefined;
6108
7516
  targetStandPerHa?: number | null | undefined;
6109
7517
  coverImage?: string | null | undefined;
7518
+ archivedAt?: string | null | undefined;
6110
7519
  historicalNdvi?: {
6111
7520
  value: number;
6112
7521
  date: string;
@@ -6149,6 +7558,7 @@ export declare const fieldsRouter: {
6149
7558
  standCountPerHa?: number | null | undefined;
6150
7559
  targetStandPerHa?: number | null | undefined;
6151
7560
  coverImage?: string | null | undefined;
7561
+ archivedAt?: string | null | undefined;
6152
7562
  historicalNdvi?: {
6153
7563
  value: number;
6154
7564
  date: string;
@@ -6217,6 +7627,7 @@ export declare const fieldsRouter: {
6217
7627
  standCountPerHa?: number | null | undefined;
6218
7628
  targetStandPerHa?: number | null | undefined;
6219
7629
  coverImage?: string | null | undefined;
7630
+ archivedAt?: string | null | undefined;
6220
7631
  historicalNdvi?: {
6221
7632
  value: number;
6222
7633
  date: string;
@@ -6271,6 +7682,7 @@ export declare const fieldsRouter: {
6271
7682
  standCountPerHa?: number | null | undefined;
6272
7683
  targetStandPerHa?: number | null | undefined;
6273
7684
  coverImage?: string | null | undefined;
7685
+ archivedAt?: string | null | undefined;
6274
7686
  historicalNdvi?: {
6275
7687
  value: number;
6276
7688
  date: string;