@deepintel-ltd/farmpro-contracts 1.16.10 → 1.16.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/admin.routes.d.ts +1036 -0
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +29 -1
- package/dist/routes/agent-workflows.routes.d.ts +246 -246
- package/dist/routes/agents.routes.d.ts +16 -16
- package/dist/routes/fertigation.routes.d.ts +336 -336
- package/dist/routes/field-monitoring.routes.d.ts +8 -8
- package/dist/routes/field-observations.routes.d.ts +56 -56
- package/dist/routes/fields.routes.d.ts +63 -63
- package/dist/routes/health.routes.d.ts +66 -0
- package/dist/routes/health.routes.d.ts.map +1 -1
- package/dist/routes/livestock-groups.routes.d.ts +8 -8
- package/dist/routes/livestock.routes.d.ts +50 -50
- package/dist/routes/payments.routes.d.ts +20 -20
- package/dist/routes/pest-disease-risk.routes.d.ts +4 -4
- package/dist/routes/soil-tests.routes.d.ts +40 -40
- package/dist/schemas/admin.schemas.d.ts +267 -0
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +38 -0
- package/dist/schemas/agent-workflows.schemas.d.ts +206 -206
- package/dist/schemas/agents.schemas.d.ts +16 -16
- package/dist/schemas/fertigation.schemas.d.ts +128 -128
- package/dist/schemas/field-monitoring.schemas.d.ts +8 -8
- package/dist/schemas/field-observations.schemas.d.ts +46 -46
- package/dist/schemas/fields.schemas.d.ts +59 -59
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +8 -1
- package/dist/schemas/health.schemas.d.ts +33 -0
- package/dist/schemas/health.schemas.d.ts.map +1 -1
- package/dist/schemas/health.schemas.js +1 -0
- package/dist/schemas/livestock.schemas.d.ts +50 -50
- package/dist/schemas/payments.schemas.d.ts +20 -20
- package/dist/schemas/pest-disease-risk.schemas.d.ts +2 -2
- package/dist/schemas/soil-tests.schemas.d.ts +42 -42
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
* Field schemas - JSON:API compliant
|
|
4
4
|
*/
|
|
5
5
|
export declare const fieldStatusSchema: z.ZodEnum<["ok", "alert", "critical"]>;
|
|
6
|
-
export declare const cropStageSchema: z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>;
|
|
6
|
+
export declare const cropStageSchema: z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>;
|
|
7
7
|
export declare const historicalDataPointSchema: z.ZodObject<{
|
|
8
8
|
date: z.ZodString;
|
|
9
9
|
value: z.ZodNumber;
|
|
@@ -60,7 +60,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
60
60
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
61
61
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
62
62
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
63
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
63
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
64
64
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
65
65
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
66
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -121,7 +121,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
121
121
|
moisture: string | null;
|
|
122
122
|
soilType: string | null;
|
|
123
123
|
expectedHarvestDate: string | null;
|
|
124
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
124
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
125
125
|
standCountPerHa?: number | null | undefined;
|
|
126
126
|
targetStandPerHa?: number | null | undefined;
|
|
127
127
|
coverImage?: string | null | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
155
155
|
moisture: string | null;
|
|
156
156
|
soilType: string | null;
|
|
157
157
|
expectedHarvestDate: string | null;
|
|
158
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
158
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
159
159
|
standCountPerHa?: number | null | undefined;
|
|
160
160
|
targetStandPerHa?: number | null | undefined;
|
|
161
161
|
coverImage?: string | null | undefined;
|
|
@@ -192,7 +192,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
192
192
|
currentCrop: z.ZodOptional<z.ZodString>;
|
|
193
193
|
plantingDate: z.ZodOptional<z.ZodString>;
|
|
194
194
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
195
|
-
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
195
|
+
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
196
196
|
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
197
197
|
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -208,7 +208,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
208
208
|
moisture?: string | undefined;
|
|
209
209
|
soilType?: string | undefined;
|
|
210
210
|
expectedHarvestDate?: string | undefined;
|
|
211
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
211
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
212
212
|
standCountPerHa?: number | undefined;
|
|
213
213
|
targetStandPerHa?: number | undefined;
|
|
214
214
|
}, {
|
|
@@ -224,7 +224,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
224
224
|
moisture?: string | undefined;
|
|
225
225
|
soilType?: string | undefined;
|
|
226
226
|
expectedHarvestDate?: string | undefined;
|
|
227
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
227
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
228
228
|
standCountPerHa?: number | undefined;
|
|
229
229
|
targetStandPerHa?: number | undefined;
|
|
230
230
|
}>;
|
|
@@ -249,7 +249,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
249
249
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
250
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
251
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
-
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
|
|
252
|
+
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
|
|
253
253
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
254
254
|
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
255
255
|
cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -292,7 +292,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
292
292
|
moisture?: string | undefined;
|
|
293
293
|
soilType?: string | undefined;
|
|
294
294
|
expectedHarvestDate?: string | null | undefined;
|
|
295
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
295
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
296
296
|
standCountPerHa?: number | null | undefined;
|
|
297
297
|
targetStandPerHa?: number | null | undefined;
|
|
298
298
|
coverImage?: string | null | undefined;
|
|
@@ -319,7 +319,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
319
319
|
moisture?: string | undefined;
|
|
320
320
|
soilType?: string | undefined;
|
|
321
321
|
expectedHarvestDate?: string | null | undefined;
|
|
322
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
322
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
323
323
|
standCountPerHa?: number | null | undefined;
|
|
324
324
|
targetStandPerHa?: number | null | undefined;
|
|
325
325
|
coverImage?: string | null | undefined;
|
|
@@ -339,14 +339,14 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
|
|
|
339
339
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
340
340
|
variety: z.ZodOptional<z.ZodString>;
|
|
341
341
|
notes: z.ZodOptional<z.ZodString>;
|
|
342
|
-
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
342
|
+
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
343
343
|
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
344
344
|
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
346
|
currentCrop: string;
|
|
347
347
|
plantingDate: string;
|
|
348
348
|
expectedHarvestDate?: string | undefined;
|
|
349
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
349
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
350
350
|
standCountPerHa?: number | undefined;
|
|
351
351
|
targetStandPerHa?: number | undefined;
|
|
352
352
|
variety?: string | undefined;
|
|
@@ -355,7 +355,7 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
|
|
|
355
355
|
currentCrop: string;
|
|
356
356
|
plantingDate: string;
|
|
357
357
|
expectedHarvestDate?: string | undefined;
|
|
358
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
358
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
359
359
|
standCountPerHa?: number | undefined;
|
|
360
360
|
targetStandPerHa?: number | undefined;
|
|
361
361
|
variety?: string | undefined;
|
|
@@ -369,14 +369,14 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
369
369
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
370
370
|
variety: z.ZodOptional<z.ZodString>;
|
|
371
371
|
notes: z.ZodOptional<z.ZodString>;
|
|
372
|
-
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
372
|
+
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
373
373
|
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
374
374
|
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
375
375
|
}, "strip", z.ZodTypeAny, {
|
|
376
376
|
currentCrop: string;
|
|
377
377
|
plantingDate: string;
|
|
378
378
|
expectedHarvestDate?: string | undefined;
|
|
379
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
379
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
380
380
|
standCountPerHa?: number | undefined;
|
|
381
381
|
targetStandPerHa?: number | undefined;
|
|
382
382
|
variety?: string | undefined;
|
|
@@ -385,7 +385,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
385
385
|
currentCrop: string;
|
|
386
386
|
plantingDate: string;
|
|
387
387
|
expectedHarvestDate?: string | undefined;
|
|
388
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
388
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
389
389
|
standCountPerHa?: number | undefined;
|
|
390
390
|
targetStandPerHa?: number | undefined;
|
|
391
391
|
variety?: string | undefined;
|
|
@@ -397,7 +397,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
397
397
|
currentCrop: string;
|
|
398
398
|
plantingDate: string;
|
|
399
399
|
expectedHarvestDate?: string | undefined;
|
|
400
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
400
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
401
401
|
standCountPerHa?: number | undefined;
|
|
402
402
|
targetStandPerHa?: number | undefined;
|
|
403
403
|
variety?: string | undefined;
|
|
@@ -409,7 +409,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
409
409
|
currentCrop: string;
|
|
410
410
|
plantingDate: string;
|
|
411
411
|
expectedHarvestDate?: string | undefined;
|
|
412
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
412
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
413
413
|
standCountPerHa?: number | undefined;
|
|
414
414
|
targetStandPerHa?: number | undefined;
|
|
415
415
|
variety?: string | undefined;
|
|
@@ -437,7 +437,7 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
437
437
|
currentCrop: z.ZodOptional<z.ZodString>;
|
|
438
438
|
plantingDate: z.ZodOptional<z.ZodString>;
|
|
439
439
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
440
|
-
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
440
|
+
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
441
441
|
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
442
442
|
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
443
443
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -453,7 +453,7 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
453
453
|
moisture?: string | undefined;
|
|
454
454
|
soilType?: string | undefined;
|
|
455
455
|
expectedHarvestDate?: string | undefined;
|
|
456
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
456
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
457
457
|
standCountPerHa?: number | undefined;
|
|
458
458
|
targetStandPerHa?: number | undefined;
|
|
459
459
|
}, {
|
|
@@ -469,7 +469,7 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
469
469
|
moisture?: string | undefined;
|
|
470
470
|
soilType?: string | undefined;
|
|
471
471
|
expectedHarvestDate?: string | undefined;
|
|
472
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
472
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
473
473
|
standCountPerHa?: number | undefined;
|
|
474
474
|
targetStandPerHa?: number | undefined;
|
|
475
475
|
}>;
|
|
@@ -526,7 +526,7 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
526
526
|
moisture?: string | undefined;
|
|
527
527
|
soilType?: string | undefined;
|
|
528
528
|
expectedHarvestDate?: string | undefined;
|
|
529
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
529
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
530
530
|
standCountPerHa?: number | undefined;
|
|
531
531
|
targetStandPerHa?: number | undefined;
|
|
532
532
|
};
|
|
@@ -553,7 +553,7 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
553
553
|
moisture?: string | undefined;
|
|
554
554
|
soilType?: string | undefined;
|
|
555
555
|
expectedHarvestDate?: string | undefined;
|
|
556
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
556
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
|
|
557
557
|
standCountPerHa?: number | undefined;
|
|
558
558
|
targetStandPerHa?: number | undefined;
|
|
559
559
|
};
|
|
@@ -590,7 +590,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
590
590
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
591
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
592
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
-
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
|
|
593
|
+
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
|
|
594
594
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
595
595
|
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
596
596
|
cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -633,7 +633,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
633
633
|
moisture?: string | undefined;
|
|
634
634
|
soilType?: string | undefined;
|
|
635
635
|
expectedHarvestDate?: string | null | undefined;
|
|
636
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
636
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
637
637
|
standCountPerHa?: number | null | undefined;
|
|
638
638
|
targetStandPerHa?: number | null | undefined;
|
|
639
639
|
coverImage?: string | null | undefined;
|
|
@@ -660,7 +660,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
660
660
|
moisture?: string | undefined;
|
|
661
661
|
soilType?: string | undefined;
|
|
662
662
|
expectedHarvestDate?: string | null | undefined;
|
|
663
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
663
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
664
664
|
standCountPerHa?: number | null | undefined;
|
|
665
665
|
targetStandPerHa?: number | null | undefined;
|
|
666
666
|
coverImage?: string | null | undefined;
|
|
@@ -691,7 +691,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
691
691
|
moisture?: string | undefined;
|
|
692
692
|
soilType?: string | undefined;
|
|
693
693
|
expectedHarvestDate?: string | null | undefined;
|
|
694
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
694
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
695
695
|
standCountPerHa?: number | null | undefined;
|
|
696
696
|
targetStandPerHa?: number | null | undefined;
|
|
697
697
|
coverImage?: string | null | undefined;
|
|
@@ -722,7 +722,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
722
722
|
moisture?: string | undefined;
|
|
723
723
|
soilType?: string | undefined;
|
|
724
724
|
expectedHarvestDate?: string | null | undefined;
|
|
725
|
-
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
725
|
+
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
726
726
|
standCountPerHa?: number | null | undefined;
|
|
727
727
|
targetStandPerHa?: number | null | undefined;
|
|
728
728
|
coverImage?: string | null | undefined;
|
|
@@ -761,7 +761,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
761
761
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
762
762
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
763
763
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
764
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
764
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
765
765
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
766
766
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
767
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -822,7 +822,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
822
822
|
moisture: string | null;
|
|
823
823
|
soilType: string | null;
|
|
824
824
|
expectedHarvestDate: string | null;
|
|
825
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
825
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
826
826
|
standCountPerHa?: number | null | undefined;
|
|
827
827
|
targetStandPerHa?: number | null | undefined;
|
|
828
828
|
coverImage?: string | null | undefined;
|
|
@@ -856,7 +856,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
856
856
|
moisture: string | null;
|
|
857
857
|
soilType: string | null;
|
|
858
858
|
expectedHarvestDate: string | null;
|
|
859
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
859
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
860
860
|
standCountPerHa?: number | null | undefined;
|
|
861
861
|
targetStandPerHa?: number | null | undefined;
|
|
862
862
|
coverImage?: string | null | undefined;
|
|
@@ -897,7 +897,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
897
897
|
moisture: string | null;
|
|
898
898
|
soilType: string | null;
|
|
899
899
|
expectedHarvestDate: string | null;
|
|
900
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
900
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
901
901
|
standCountPerHa?: number | null | undefined;
|
|
902
902
|
targetStandPerHa?: number | null | undefined;
|
|
903
903
|
coverImage?: string | null | undefined;
|
|
@@ -938,7 +938,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
938
938
|
moisture: string | null;
|
|
939
939
|
soilType: string | null;
|
|
940
940
|
expectedHarvestDate: string | null;
|
|
941
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
941
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
942
942
|
standCountPerHa?: number | null | undefined;
|
|
943
943
|
targetStandPerHa?: number | null | undefined;
|
|
944
944
|
coverImage?: string | null | undefined;
|
|
@@ -984,7 +984,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
984
984
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
985
985
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
986
986
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
987
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
987
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
988
988
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
989
989
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
990
990
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -1045,7 +1045,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1045
1045
|
moisture: string | null;
|
|
1046
1046
|
soilType: string | null;
|
|
1047
1047
|
expectedHarvestDate: string | null;
|
|
1048
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1048
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1049
1049
|
standCountPerHa?: number | null | undefined;
|
|
1050
1050
|
targetStandPerHa?: number | null | undefined;
|
|
1051
1051
|
coverImage?: string | null | undefined;
|
|
@@ -1079,7 +1079,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1079
1079
|
moisture: string | null;
|
|
1080
1080
|
soilType: string | null;
|
|
1081
1081
|
expectedHarvestDate: string | null;
|
|
1082
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1082
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1083
1083
|
standCountPerHa?: number | null | undefined;
|
|
1084
1084
|
targetStandPerHa?: number | null | undefined;
|
|
1085
1085
|
coverImage?: string | null | undefined;
|
|
@@ -1315,7 +1315,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1315
1315
|
moisture: string | null;
|
|
1316
1316
|
soilType: string | null;
|
|
1317
1317
|
expectedHarvestDate: string | null;
|
|
1318
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1318
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1319
1319
|
standCountPerHa?: number | null | undefined;
|
|
1320
1320
|
targetStandPerHa?: number | null | undefined;
|
|
1321
1321
|
coverImage?: string | null | undefined;
|
|
@@ -1390,7 +1390,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1390
1390
|
moisture: string | null;
|
|
1391
1391
|
soilType: string | null;
|
|
1392
1392
|
expectedHarvestDate: string | null;
|
|
1393
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1393
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1394
1394
|
standCountPerHa?: number | null | undefined;
|
|
1395
1395
|
targetStandPerHa?: number | null | undefined;
|
|
1396
1396
|
coverImage?: string | null | undefined;
|
|
@@ -1471,7 +1471,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1471
1471
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
1472
1472
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1473
1473
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1474
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1474
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
1475
1475
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
1476
1476
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1477
1477
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -1532,7 +1532,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1532
1532
|
moisture: string | null;
|
|
1533
1533
|
soilType: string | null;
|
|
1534
1534
|
expectedHarvestDate: string | null;
|
|
1535
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1535
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1536
1536
|
standCountPerHa?: number | null | undefined;
|
|
1537
1537
|
targetStandPerHa?: number | null | undefined;
|
|
1538
1538
|
coverImage?: string | null | undefined;
|
|
@@ -1566,7 +1566,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1566
1566
|
moisture: string | null;
|
|
1567
1567
|
soilType: string | null;
|
|
1568
1568
|
expectedHarvestDate: string | null;
|
|
1569
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1569
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1570
1570
|
standCountPerHa?: number | null | undefined;
|
|
1571
1571
|
targetStandPerHa?: number | null | undefined;
|
|
1572
1572
|
coverImage?: string | null | undefined;
|
|
@@ -1607,7 +1607,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1607
1607
|
moisture: string | null;
|
|
1608
1608
|
soilType: string | null;
|
|
1609
1609
|
expectedHarvestDate: string | null;
|
|
1610
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1610
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1611
1611
|
standCountPerHa?: number | null | undefined;
|
|
1612
1612
|
targetStandPerHa?: number | null | undefined;
|
|
1613
1613
|
coverImage?: string | null | undefined;
|
|
@@ -1648,7 +1648,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1648
1648
|
moisture: string | null;
|
|
1649
1649
|
soilType: string | null;
|
|
1650
1650
|
expectedHarvestDate: string | null;
|
|
1651
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1651
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1652
1652
|
standCountPerHa?: number | null | undefined;
|
|
1653
1653
|
targetStandPerHa?: number | null | undefined;
|
|
1654
1654
|
coverImage?: string | null | undefined;
|
|
@@ -1715,7 +1715,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1715
1715
|
moisture: string | null;
|
|
1716
1716
|
soilType: string | null;
|
|
1717
1717
|
expectedHarvestDate: string | null;
|
|
1718
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1718
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1719
1719
|
standCountPerHa?: number | null | undefined;
|
|
1720
1720
|
targetStandPerHa?: number | null | undefined;
|
|
1721
1721
|
coverImage?: string | null | undefined;
|
|
@@ -1768,7 +1768,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1768
1768
|
moisture: string | null;
|
|
1769
1769
|
soilType: string | null;
|
|
1770
1770
|
expectedHarvestDate: string | null;
|
|
1771
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1771
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1772
1772
|
standCountPerHa?: number | null | undefined;
|
|
1773
1773
|
targetStandPerHa?: number | null | undefined;
|
|
1774
1774
|
coverImage?: string | null | undefined;
|
|
@@ -1826,7 +1826,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1826
1826
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
1827
1827
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1828
1828
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1829
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1829
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
1830
1830
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
1831
1831
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1832
1832
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -1887,7 +1887,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1887
1887
|
moisture: string | null;
|
|
1888
1888
|
soilType: string | null;
|
|
1889
1889
|
expectedHarvestDate: string | null;
|
|
1890
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1890
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1891
1891
|
standCountPerHa?: number | null | undefined;
|
|
1892
1892
|
targetStandPerHa?: number | null | undefined;
|
|
1893
1893
|
coverImage?: string | null | undefined;
|
|
@@ -1921,7 +1921,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1921
1921
|
moisture: string | null;
|
|
1922
1922
|
soilType: string | null;
|
|
1923
1923
|
expectedHarvestDate: string | null;
|
|
1924
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1924
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1925
1925
|
standCountPerHa?: number | null | undefined;
|
|
1926
1926
|
targetStandPerHa?: number | null | undefined;
|
|
1927
1927
|
coverImage?: string | null | undefined;
|
|
@@ -2157,7 +2157,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2157
2157
|
moisture: string | null;
|
|
2158
2158
|
soilType: string | null;
|
|
2159
2159
|
expectedHarvestDate: string | null;
|
|
2160
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2160
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2161
2161
|
standCountPerHa?: number | null | undefined;
|
|
2162
2162
|
targetStandPerHa?: number | null | undefined;
|
|
2163
2163
|
coverImage?: string | null | undefined;
|
|
@@ -2232,7 +2232,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2232
2232
|
moisture: string | null;
|
|
2233
2233
|
soilType: string | null;
|
|
2234
2234
|
expectedHarvestDate: string | null;
|
|
2235
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2235
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2236
2236
|
standCountPerHa?: number | null | undefined;
|
|
2237
2237
|
targetStandPerHa?: number | null | undefined;
|
|
2238
2238
|
coverImage?: string | null | undefined;
|
|
@@ -2333,7 +2333,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2333
2333
|
moisture: string | null;
|
|
2334
2334
|
soilType: string | null;
|
|
2335
2335
|
expectedHarvestDate: string | null;
|
|
2336
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2336
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2337
2337
|
standCountPerHa?: number | null | undefined;
|
|
2338
2338
|
targetStandPerHa?: number | null | undefined;
|
|
2339
2339
|
coverImage?: string | null | undefined;
|
|
@@ -2420,7 +2420,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2420
2420
|
moisture: string | null;
|
|
2421
2421
|
soilType: string | null;
|
|
2422
2422
|
expectedHarvestDate: string | null;
|
|
2423
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2423
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2424
2424
|
standCountPerHa?: number | null | undefined;
|
|
2425
2425
|
targetStandPerHa?: number | null | undefined;
|
|
2426
2426
|
coverImage?: string | null | undefined;
|
|
@@ -2512,7 +2512,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2512
2512
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
2513
2513
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
2514
2514
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
2515
|
-
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
2515
|
+
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
2516
2516
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
2517
2517
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2518
2518
|
/** Optional target stand for gap display (plants per hectare). */
|
|
@@ -2573,7 +2573,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2573
2573
|
moisture: string | null;
|
|
2574
2574
|
soilType: string | null;
|
|
2575
2575
|
expectedHarvestDate: string | null;
|
|
2576
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2576
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2577
2577
|
standCountPerHa?: number | null | undefined;
|
|
2578
2578
|
targetStandPerHa?: number | null | undefined;
|
|
2579
2579
|
coverImage?: string | null | undefined;
|
|
@@ -2607,7 +2607,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2607
2607
|
moisture: string | null;
|
|
2608
2608
|
soilType: string | null;
|
|
2609
2609
|
expectedHarvestDate: string | null;
|
|
2610
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2610
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2611
2611
|
standCountPerHa?: number | null | undefined;
|
|
2612
2612
|
targetStandPerHa?: number | null | undefined;
|
|
2613
2613
|
coverImage?: string | null | undefined;
|
|
@@ -2648,7 +2648,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2648
2648
|
moisture: string | null;
|
|
2649
2649
|
soilType: string | null;
|
|
2650
2650
|
expectedHarvestDate: string | null;
|
|
2651
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2651
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2652
2652
|
standCountPerHa?: number | null | undefined;
|
|
2653
2653
|
targetStandPerHa?: number | null | undefined;
|
|
2654
2654
|
coverImage?: string | null | undefined;
|
|
@@ -2689,7 +2689,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2689
2689
|
moisture: string | null;
|
|
2690
2690
|
soilType: string | null;
|
|
2691
2691
|
expectedHarvestDate: string | null;
|
|
2692
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2692
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2693
2693
|
standCountPerHa?: number | null | undefined;
|
|
2694
2694
|
targetStandPerHa?: number | null | undefined;
|
|
2695
2695
|
coverImage?: string | null | undefined;
|
|
@@ -2756,7 +2756,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2756
2756
|
moisture: string | null;
|
|
2757
2757
|
soilType: string | null;
|
|
2758
2758
|
expectedHarvestDate: string | null;
|
|
2759
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2759
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2760
2760
|
standCountPerHa?: number | null | undefined;
|
|
2761
2761
|
targetStandPerHa?: number | null | undefined;
|
|
2762
2762
|
coverImage?: string | null | undefined;
|
|
@@ -2809,7 +2809,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2809
2809
|
moisture: string | null;
|
|
2810
2810
|
soilType: string | null;
|
|
2811
2811
|
expectedHarvestDate: string | null;
|
|
2812
|
-
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2812
|
+
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2813
2813
|
standCountPerHa?: number | null | undefined;
|
|
2814
2814
|
targetStandPerHa?: number | null | undefined;
|
|
2815
2815
|
coverImage?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,mFAO1B,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;IAchC,+EAA+E;;IAE/E,kEAAkE;;;;;;;;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gC,CAAC,CAAC"}
|
|
@@ -6,7 +6,14 @@ import { geoJSONGeometrySchema, timestampsSchema, createJsonApiResourceSchema, j
|
|
|
6
6
|
// Field status enum
|
|
7
7
|
export const fieldStatusSchema = z.enum(['ok', 'alert', 'critical']);
|
|
8
8
|
// Crop stage enum
|
|
9
|
-
export const cropStageSchema = z.enum([
|
|
9
|
+
export const cropStageSchema = z.enum([
|
|
10
|
+
'planted',
|
|
11
|
+
'growing',
|
|
12
|
+
'flowering',
|
|
13
|
+
'fruiting',
|
|
14
|
+
'mature',
|
|
15
|
+
'harvested',
|
|
16
|
+
]);
|
|
10
17
|
// Historical data point (for NDVI, moisture trends)
|
|
11
18
|
export const historicalDataPointSchema = z.object({
|
|
12
19
|
date: z.string().datetime(),
|
|
@@ -49,6 +49,19 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
|
|
|
49
49
|
message?: string | undefined;
|
|
50
50
|
responseTime?: number | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
queue: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
status: z.ZodEnum<["healthy", "unhealthy", "degraded"]>;
|
|
54
|
+
message: z.ZodOptional<z.ZodString>;
|
|
55
|
+
responseTime: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
58
|
+
message?: string | undefined;
|
|
59
|
+
responseTime?: number | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
62
|
+
message?: string | undefined;
|
|
63
|
+
responseTime?: number | undefined;
|
|
64
|
+
}>>;
|
|
52
65
|
storage: z.ZodOptional<z.ZodObject<{
|
|
53
66
|
status: z.ZodEnum<["healthy", "unhealthy", "degraded"]>;
|
|
54
67
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -86,6 +99,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
|
|
|
86
99
|
message?: string | undefined;
|
|
87
100
|
responseTime?: number | undefined;
|
|
88
101
|
};
|
|
102
|
+
queue?: {
|
|
103
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
104
|
+
message?: string | undefined;
|
|
105
|
+
responseTime?: number | undefined;
|
|
106
|
+
} | undefined;
|
|
89
107
|
storage?: {
|
|
90
108
|
status: "healthy" | "unhealthy" | "degraded";
|
|
91
109
|
message?: string | undefined;
|
|
@@ -107,6 +125,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
|
|
|
107
125
|
message?: string | undefined;
|
|
108
126
|
responseTime?: number | undefined;
|
|
109
127
|
};
|
|
128
|
+
queue?: {
|
|
129
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
130
|
+
message?: string | undefined;
|
|
131
|
+
responseTime?: number | undefined;
|
|
132
|
+
} | undefined;
|
|
110
133
|
storage?: {
|
|
111
134
|
status: "healthy" | "unhealthy" | "degraded";
|
|
112
135
|
message?: string | undefined;
|
|
@@ -133,6 +156,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
|
|
|
133
156
|
message?: string | undefined;
|
|
134
157
|
responseTime?: number | undefined;
|
|
135
158
|
};
|
|
159
|
+
queue?: {
|
|
160
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
161
|
+
message?: string | undefined;
|
|
162
|
+
responseTime?: number | undefined;
|
|
163
|
+
} | undefined;
|
|
136
164
|
storage?: {
|
|
137
165
|
status: "healthy" | "unhealthy" | "degraded";
|
|
138
166
|
message?: string | undefined;
|
|
@@ -159,6 +187,11 @@ export declare const healthCheckResponseSchema: z.ZodObject<{
|
|
|
159
187
|
message?: string | undefined;
|
|
160
188
|
responseTime?: number | undefined;
|
|
161
189
|
};
|
|
190
|
+
queue?: {
|
|
191
|
+
status: "healthy" | "unhealthy" | "degraded";
|
|
192
|
+
message?: string | undefined;
|
|
193
|
+
responseTime?: number | undefined;
|
|
194
|
+
} | undefined;
|
|
162
195
|
storage?: {
|
|
163
196
|
status: "healthy" | "unhealthy" | "degraded";
|
|
164
197
|
message?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/health.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"health.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/health.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|