@deepintel-ltd/farmpro-contracts 1.16.1 → 1.16.3
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/agents.routes.d.ts +8 -8
- package/dist/routes/documents.routes.d.ts +78 -78
- package/dist/routes/fertigation.routes.d.ts +4 -4
- package/dist/routes/field-monitoring.routes.d.ts +40 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.d.ts +174 -28
- package/dist/routes/field-observations.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.js +7 -4
- package/dist/routes/fields.routes.d.ts +923 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +23 -1
- package/dist/routes/files.routes.d.ts +6 -6
- package/dist/routes/finance.routes.d.ts +30 -30
- package/dist/routes/inventory.routes.d.ts +6 -6
- package/dist/routes/irrigation.routes.d.ts +2 -2
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +44 -44
- package/dist/routes/prescription-maps.routes.d.ts +4 -4
- package/dist/routes/subscriptions.routes.d.ts +4 -4
- package/dist/routes/tasks.routes.d.ts +108 -108
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/weather.routes.d.ts +42 -42
- package/dist/schemas/agents.schemas.d.ts +8 -8
- package/dist/schemas/common.schemas.d.ts +32 -0
- package/dist/schemas/common.schemas.d.ts.map +1 -1
- package/dist/schemas/common.schemas.js +14 -0
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/fertigation.schemas.d.ts +2 -2
- package/dist/schemas/field-monitoring.schemas.d.ts +20 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +4 -0
- package/dist/schemas/fields.schemas.d.ts +170 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +14 -0
- package/dist/schemas/files.schemas.d.ts +12 -12
- package/dist/schemas/finance.schemas.d.ts +34 -34
- package/dist/schemas/inventory.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +2 -2
- package/dist/schemas/monitoring-visualization.schemas.d.ts +6 -6
- package/dist/schemas/pest-disease-risk.schemas.d.ts +36 -36
- package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
- package/dist/schemas/subscriptions.schemas.d.ts +2 -2
- package/dist/schemas/tasks.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/weather.schemas.d.ts +84 -84
- package/package.json +1 -1
|
@@ -61,6 +61,11 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
61
61
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
62
62
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
63
63
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
64
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
65
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
67
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
69
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
70
|
date: z.ZodString;
|
|
66
71
|
value: z.ZodNumber;
|
|
@@ -117,6 +122,9 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
117
122
|
soilType: string | null;
|
|
118
123
|
expectedHarvestDate: string | null;
|
|
119
124
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
125
|
+
standCountPerHa?: number | null | undefined;
|
|
126
|
+
targetStandPerHa?: number | null | undefined;
|
|
127
|
+
coverImage?: string | null | undefined;
|
|
120
128
|
historicalNdvi?: {
|
|
121
129
|
value: number;
|
|
122
130
|
date: string;
|
|
@@ -148,6 +156,9 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
148
156
|
soilType: string | null;
|
|
149
157
|
expectedHarvestDate: string | null;
|
|
150
158
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
159
|
+
standCountPerHa?: number | null | undefined;
|
|
160
|
+
targetStandPerHa?: number | null | undefined;
|
|
161
|
+
coverImage?: string | null | undefined;
|
|
151
162
|
historicalNdvi?: {
|
|
152
163
|
value: number;
|
|
153
164
|
date: string;
|
|
@@ -182,6 +193,8 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
182
193
|
plantingDate: z.ZodOptional<z.ZodString>;
|
|
183
194
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
184
195
|
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
196
|
+
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
185
198
|
}, "strip", z.ZodTypeAny, {
|
|
186
199
|
name: string;
|
|
187
200
|
crop?: string | undefined;
|
|
@@ -196,6 +209,8 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
196
209
|
soilType?: string | undefined;
|
|
197
210
|
expectedHarvestDate?: string | undefined;
|
|
198
211
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
212
|
+
standCountPerHa?: number | undefined;
|
|
213
|
+
targetStandPerHa?: number | undefined;
|
|
199
214
|
}, {
|
|
200
215
|
name: string;
|
|
201
216
|
crop?: string | undefined;
|
|
@@ -210,6 +225,8 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
|
|
|
210
225
|
soilType?: string | undefined;
|
|
211
226
|
expectedHarvestDate?: string | undefined;
|
|
212
227
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
228
|
+
standCountPerHa?: number | undefined;
|
|
229
|
+
targetStandPerHa?: number | undefined;
|
|
213
230
|
}>;
|
|
214
231
|
export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
215
232
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -233,6 +250,8 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
233
250
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
251
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
252
|
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
|
|
253
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
254
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
236
255
|
cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
256
|
id: z.ZodString;
|
|
238
257
|
season: z.ZodString;
|
|
@@ -258,6 +277,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
258
277
|
yield: number | null;
|
|
259
278
|
yieldUnit: string | null;
|
|
260
279
|
}>, "many">>;
|
|
280
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
281
|
}, "strip", z.ZodTypeAny, {
|
|
262
282
|
name?: string | undefined;
|
|
263
283
|
crop?: string | undefined;
|
|
@@ -273,6 +293,9 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
273
293
|
soilType?: string | undefined;
|
|
274
294
|
expectedHarvestDate?: string | null | undefined;
|
|
275
295
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
296
|
+
standCountPerHa?: number | null | undefined;
|
|
297
|
+
targetStandPerHa?: number | null | undefined;
|
|
298
|
+
coverImage?: string | null | undefined;
|
|
276
299
|
cropHistory?: {
|
|
277
300
|
id: string;
|
|
278
301
|
crop: string;
|
|
@@ -297,6 +320,9 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
297
320
|
soilType?: string | undefined;
|
|
298
321
|
expectedHarvestDate?: string | null | undefined;
|
|
299
322
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
323
|
+
standCountPerHa?: number | null | undefined;
|
|
324
|
+
targetStandPerHa?: number | null | undefined;
|
|
325
|
+
coverImage?: string | null | undefined;
|
|
300
326
|
cropHistory?: {
|
|
301
327
|
id: string;
|
|
302
328
|
crop: string;
|
|
@@ -314,11 +340,15 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
|
|
|
314
340
|
variety: z.ZodOptional<z.ZodString>;
|
|
315
341
|
notes: z.ZodOptional<z.ZodString>;
|
|
316
342
|
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
343
|
+
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
317
345
|
}, "strip", z.ZodTypeAny, {
|
|
318
346
|
currentCrop: string;
|
|
319
347
|
plantingDate: string;
|
|
320
348
|
expectedHarvestDate?: string | undefined;
|
|
321
349
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
350
|
+
standCountPerHa?: number | undefined;
|
|
351
|
+
targetStandPerHa?: number | undefined;
|
|
322
352
|
variety?: string | undefined;
|
|
323
353
|
notes?: string | undefined;
|
|
324
354
|
}, {
|
|
@@ -326,6 +356,8 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
|
|
|
326
356
|
plantingDate: string;
|
|
327
357
|
expectedHarvestDate?: string | undefined;
|
|
328
358
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
359
|
+
standCountPerHa?: number | undefined;
|
|
360
|
+
targetStandPerHa?: number | undefined;
|
|
329
361
|
variety?: string | undefined;
|
|
330
362
|
notes?: string | undefined;
|
|
331
363
|
}>;
|
|
@@ -338,11 +370,15 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
338
370
|
variety: z.ZodOptional<z.ZodString>;
|
|
339
371
|
notes: z.ZodOptional<z.ZodString>;
|
|
340
372
|
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
373
|
+
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
341
375
|
}, "strip", z.ZodTypeAny, {
|
|
342
376
|
currentCrop: string;
|
|
343
377
|
plantingDate: string;
|
|
344
378
|
expectedHarvestDate?: string | undefined;
|
|
345
379
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
380
|
+
standCountPerHa?: number | undefined;
|
|
381
|
+
targetStandPerHa?: number | undefined;
|
|
346
382
|
variety?: string | undefined;
|
|
347
383
|
notes?: string | undefined;
|
|
348
384
|
}, {
|
|
@@ -350,6 +386,8 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
350
386
|
plantingDate: string;
|
|
351
387
|
expectedHarvestDate?: string | undefined;
|
|
352
388
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
389
|
+
standCountPerHa?: number | undefined;
|
|
390
|
+
targetStandPerHa?: number | undefined;
|
|
353
391
|
variety?: string | undefined;
|
|
354
392
|
notes?: string | undefined;
|
|
355
393
|
}>;
|
|
@@ -360,6 +398,8 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
360
398
|
plantingDate: string;
|
|
361
399
|
expectedHarvestDate?: string | undefined;
|
|
362
400
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
401
|
+
standCountPerHa?: number | undefined;
|
|
402
|
+
targetStandPerHa?: number | undefined;
|
|
363
403
|
variety?: string | undefined;
|
|
364
404
|
notes?: string | undefined;
|
|
365
405
|
};
|
|
@@ -370,6 +410,8 @@ export declare const recordPlantingSchema: z.ZodObject<{
|
|
|
370
410
|
plantingDate: string;
|
|
371
411
|
expectedHarvestDate?: string | undefined;
|
|
372
412
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
413
|
+
standCountPerHa?: number | undefined;
|
|
414
|
+
targetStandPerHa?: number | undefined;
|
|
373
415
|
variety?: string | undefined;
|
|
374
416
|
notes?: string | undefined;
|
|
375
417
|
};
|
|
@@ -396,6 +438,8 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
396
438
|
plantingDate: z.ZodOptional<z.ZodString>;
|
|
397
439
|
expectedHarvestDate: z.ZodOptional<z.ZodString>;
|
|
398
440
|
cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
441
|
+
standCountPerHa: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
targetStandPerHa: z.ZodOptional<z.ZodNumber>;
|
|
399
443
|
}, "strip", z.ZodTypeAny, {
|
|
400
444
|
name: string;
|
|
401
445
|
crop?: string | undefined;
|
|
@@ -410,6 +454,8 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
410
454
|
soilType?: string | undefined;
|
|
411
455
|
expectedHarvestDate?: string | undefined;
|
|
412
456
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
457
|
+
standCountPerHa?: number | undefined;
|
|
458
|
+
targetStandPerHa?: number | undefined;
|
|
413
459
|
}, {
|
|
414
460
|
name: string;
|
|
415
461
|
crop?: string | undefined;
|
|
@@ -424,6 +470,8 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
424
470
|
soilType?: string | undefined;
|
|
425
471
|
expectedHarvestDate?: string | undefined;
|
|
426
472
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
473
|
+
standCountPerHa?: number | undefined;
|
|
474
|
+
targetStandPerHa?: number | undefined;
|
|
427
475
|
}>;
|
|
428
476
|
relationships: z.ZodObject<{
|
|
429
477
|
farm: z.ZodObject<{
|
|
@@ -479,6 +527,8 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
479
527
|
soilType?: string | undefined;
|
|
480
528
|
expectedHarvestDate?: string | undefined;
|
|
481
529
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
530
|
+
standCountPerHa?: number | undefined;
|
|
531
|
+
targetStandPerHa?: number | undefined;
|
|
482
532
|
};
|
|
483
533
|
relationships: {
|
|
484
534
|
farm: {
|
|
@@ -504,6 +554,8 @@ export declare const createFieldSchema: z.ZodObject<{
|
|
|
504
554
|
soilType?: string | undefined;
|
|
505
555
|
expectedHarvestDate?: string | undefined;
|
|
506
556
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | undefined;
|
|
557
|
+
standCountPerHa?: number | undefined;
|
|
558
|
+
targetStandPerHa?: number | undefined;
|
|
507
559
|
};
|
|
508
560
|
relationships: {
|
|
509
561
|
farm: {
|
|
@@ -539,6 +591,8 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
539
591
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
540
592
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
541
593
|
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>>;
|
|
594
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
595
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
542
596
|
cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
543
597
|
id: z.ZodString;
|
|
544
598
|
season: z.ZodString;
|
|
@@ -564,6 +618,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
564
618
|
yield: number | null;
|
|
565
619
|
yieldUnit: string | null;
|
|
566
620
|
}>, "many">>;
|
|
621
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
622
|
}, "strip", z.ZodTypeAny, {
|
|
568
623
|
name?: string | undefined;
|
|
569
624
|
crop?: string | undefined;
|
|
@@ -579,6 +634,9 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
579
634
|
soilType?: string | undefined;
|
|
580
635
|
expectedHarvestDate?: string | null | undefined;
|
|
581
636
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
637
|
+
standCountPerHa?: number | null | undefined;
|
|
638
|
+
targetStandPerHa?: number | null | undefined;
|
|
639
|
+
coverImage?: string | null | undefined;
|
|
582
640
|
cropHistory?: {
|
|
583
641
|
id: string;
|
|
584
642
|
crop: string;
|
|
@@ -603,6 +661,9 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
603
661
|
soilType?: string | undefined;
|
|
604
662
|
expectedHarvestDate?: string | null | undefined;
|
|
605
663
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
664
|
+
standCountPerHa?: number | null | undefined;
|
|
665
|
+
targetStandPerHa?: number | null | undefined;
|
|
666
|
+
coverImage?: string | null | undefined;
|
|
606
667
|
cropHistory?: {
|
|
607
668
|
id: string;
|
|
608
669
|
crop: string;
|
|
@@ -631,6 +692,9 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
631
692
|
soilType?: string | undefined;
|
|
632
693
|
expectedHarvestDate?: string | null | undefined;
|
|
633
694
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
695
|
+
standCountPerHa?: number | null | undefined;
|
|
696
|
+
targetStandPerHa?: number | null | undefined;
|
|
697
|
+
coverImage?: string | null | undefined;
|
|
634
698
|
cropHistory?: {
|
|
635
699
|
id: string;
|
|
636
700
|
crop: string;
|
|
@@ -659,6 +723,9 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
659
723
|
soilType?: string | undefined;
|
|
660
724
|
expectedHarvestDate?: string | null | undefined;
|
|
661
725
|
cropStage?: "planted" | "growing" | "flowering" | "mature" | "harvested" | null | undefined;
|
|
726
|
+
standCountPerHa?: number | null | undefined;
|
|
727
|
+
targetStandPerHa?: number | null | undefined;
|
|
728
|
+
coverImage?: string | null | undefined;
|
|
662
729
|
cropHistory?: {
|
|
663
730
|
id: string;
|
|
664
731
|
crop: string;
|
|
@@ -695,6 +762,11 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
695
762
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
696
763
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
697
764
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
765
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
766
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
768
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
769
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
770
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
771
|
date: z.ZodString;
|
|
700
772
|
value: z.ZodNumber;
|
|
@@ -751,6 +823,9 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
751
823
|
soilType: string | null;
|
|
752
824
|
expectedHarvestDate: string | null;
|
|
753
825
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
826
|
+
standCountPerHa?: number | null | undefined;
|
|
827
|
+
targetStandPerHa?: number | null | undefined;
|
|
828
|
+
coverImage?: string | null | undefined;
|
|
754
829
|
historicalNdvi?: {
|
|
755
830
|
value: number;
|
|
756
831
|
date: string;
|
|
@@ -782,6 +857,9 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
782
857
|
soilType: string | null;
|
|
783
858
|
expectedHarvestDate: string | null;
|
|
784
859
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
860
|
+
standCountPerHa?: number | null | undefined;
|
|
861
|
+
targetStandPerHa?: number | null | undefined;
|
|
862
|
+
coverImage?: string | null | undefined;
|
|
785
863
|
historicalNdvi?: {
|
|
786
864
|
value: number;
|
|
787
865
|
date: string;
|
|
@@ -820,6 +898,9 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
820
898
|
soilType: string | null;
|
|
821
899
|
expectedHarvestDate: string | null;
|
|
822
900
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
901
|
+
standCountPerHa?: number | null | undefined;
|
|
902
|
+
targetStandPerHa?: number | null | undefined;
|
|
903
|
+
coverImage?: string | null | undefined;
|
|
823
904
|
historicalNdvi?: {
|
|
824
905
|
value: number;
|
|
825
906
|
date: string;
|
|
@@ -858,6 +939,9 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
858
939
|
soilType: string | null;
|
|
859
940
|
expectedHarvestDate: string | null;
|
|
860
941
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
942
|
+
standCountPerHa?: number | null | undefined;
|
|
943
|
+
targetStandPerHa?: number | null | undefined;
|
|
944
|
+
coverImage?: string | null | undefined;
|
|
861
945
|
historicalNdvi?: {
|
|
862
946
|
value: number;
|
|
863
947
|
date: string;
|
|
@@ -901,6 +985,11 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
901
985
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
902
986
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
903
987
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
988
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
989
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
990
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
991
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
992
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
904
993
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
905
994
|
date: z.ZodString;
|
|
906
995
|
value: z.ZodNumber;
|
|
@@ -957,6 +1046,9 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
957
1046
|
soilType: string | null;
|
|
958
1047
|
expectedHarvestDate: string | null;
|
|
959
1048
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1049
|
+
standCountPerHa?: number | null | undefined;
|
|
1050
|
+
targetStandPerHa?: number | null | undefined;
|
|
1051
|
+
coverImage?: string | null | undefined;
|
|
960
1052
|
historicalNdvi?: {
|
|
961
1053
|
value: number;
|
|
962
1054
|
date: string;
|
|
@@ -988,6 +1080,9 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
988
1080
|
soilType: string | null;
|
|
989
1081
|
expectedHarvestDate: string | null;
|
|
990
1082
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1083
|
+
standCountPerHa?: number | null | undefined;
|
|
1084
|
+
targetStandPerHa?: number | null | undefined;
|
|
1085
|
+
coverImage?: string | null | undefined;
|
|
991
1086
|
historicalNdvi?: {
|
|
992
1087
|
value: number;
|
|
993
1088
|
date: string;
|
|
@@ -1221,6 +1316,9 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1221
1316
|
soilType: string | null;
|
|
1222
1317
|
expectedHarvestDate: string | null;
|
|
1223
1318
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1319
|
+
standCountPerHa?: number | null | undefined;
|
|
1320
|
+
targetStandPerHa?: number | null | undefined;
|
|
1321
|
+
coverImage?: string | null | undefined;
|
|
1224
1322
|
historicalNdvi?: {
|
|
1225
1323
|
value: number;
|
|
1226
1324
|
date: string;
|
|
@@ -1293,6 +1391,9 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1293
1391
|
soilType: string | null;
|
|
1294
1392
|
expectedHarvestDate: string | null;
|
|
1295
1393
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1394
|
+
standCountPerHa?: number | null | undefined;
|
|
1395
|
+
targetStandPerHa?: number | null | undefined;
|
|
1396
|
+
coverImage?: string | null | undefined;
|
|
1296
1397
|
historicalNdvi?: {
|
|
1297
1398
|
value: number;
|
|
1298
1399
|
date: string;
|
|
@@ -1371,6 +1472,11 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1371
1472
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1372
1473
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1373
1474
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1475
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
1476
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1477
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
1478
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1479
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1374
1480
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1375
1481
|
date: z.ZodString;
|
|
1376
1482
|
value: z.ZodNumber;
|
|
@@ -1427,6 +1533,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1427
1533
|
soilType: string | null;
|
|
1428
1534
|
expectedHarvestDate: string | null;
|
|
1429
1535
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1536
|
+
standCountPerHa?: number | null | undefined;
|
|
1537
|
+
targetStandPerHa?: number | null | undefined;
|
|
1538
|
+
coverImage?: string | null | undefined;
|
|
1430
1539
|
historicalNdvi?: {
|
|
1431
1540
|
value: number;
|
|
1432
1541
|
date: string;
|
|
@@ -1458,6 +1567,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1458
1567
|
soilType: string | null;
|
|
1459
1568
|
expectedHarvestDate: string | null;
|
|
1460
1569
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1570
|
+
standCountPerHa?: number | null | undefined;
|
|
1571
|
+
targetStandPerHa?: number | null | undefined;
|
|
1572
|
+
coverImage?: string | null | undefined;
|
|
1461
1573
|
historicalNdvi?: {
|
|
1462
1574
|
value: number;
|
|
1463
1575
|
date: string;
|
|
@@ -1496,6 +1608,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1496
1608
|
soilType: string | null;
|
|
1497
1609
|
expectedHarvestDate: string | null;
|
|
1498
1610
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1611
|
+
standCountPerHa?: number | null | undefined;
|
|
1612
|
+
targetStandPerHa?: number | null | undefined;
|
|
1613
|
+
coverImage?: string | null | undefined;
|
|
1499
1614
|
historicalNdvi?: {
|
|
1500
1615
|
value: number;
|
|
1501
1616
|
date: string;
|
|
@@ -1534,6 +1649,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1534
1649
|
soilType: string | null;
|
|
1535
1650
|
expectedHarvestDate: string | null;
|
|
1536
1651
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1652
|
+
standCountPerHa?: number | null | undefined;
|
|
1653
|
+
targetStandPerHa?: number | null | undefined;
|
|
1654
|
+
coverImage?: string | null | undefined;
|
|
1537
1655
|
historicalNdvi?: {
|
|
1538
1656
|
value: number;
|
|
1539
1657
|
date: string;
|
|
@@ -1598,6 +1716,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1598
1716
|
soilType: string | null;
|
|
1599
1717
|
expectedHarvestDate: string | null;
|
|
1600
1718
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1719
|
+
standCountPerHa?: number | null | undefined;
|
|
1720
|
+
targetStandPerHa?: number | null | undefined;
|
|
1721
|
+
coverImage?: string | null | undefined;
|
|
1601
1722
|
historicalNdvi?: {
|
|
1602
1723
|
value: number;
|
|
1603
1724
|
date: string;
|
|
@@ -1648,6 +1769,9 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1648
1769
|
soilType: string | null;
|
|
1649
1770
|
expectedHarvestDate: string | null;
|
|
1650
1771
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1772
|
+
standCountPerHa?: number | null | undefined;
|
|
1773
|
+
targetStandPerHa?: number | null | undefined;
|
|
1774
|
+
coverImage?: string | null | undefined;
|
|
1651
1775
|
historicalNdvi?: {
|
|
1652
1776
|
value: number;
|
|
1653
1777
|
date: string;
|
|
@@ -1703,6 +1827,11 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1703
1827
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1704
1828
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1705
1829
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
1830
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
1831
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1832
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
1833
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1834
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
1835
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1707
1836
|
date: z.ZodString;
|
|
1708
1837
|
value: z.ZodNumber;
|
|
@@ -1759,6 +1888,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1759
1888
|
soilType: string | null;
|
|
1760
1889
|
expectedHarvestDate: string | null;
|
|
1761
1890
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1891
|
+
standCountPerHa?: number | null | undefined;
|
|
1892
|
+
targetStandPerHa?: number | null | undefined;
|
|
1893
|
+
coverImage?: string | null | undefined;
|
|
1762
1894
|
historicalNdvi?: {
|
|
1763
1895
|
value: number;
|
|
1764
1896
|
date: string;
|
|
@@ -1790,6 +1922,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1790
1922
|
soilType: string | null;
|
|
1791
1923
|
expectedHarvestDate: string | null;
|
|
1792
1924
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
1925
|
+
standCountPerHa?: number | null | undefined;
|
|
1926
|
+
targetStandPerHa?: number | null | undefined;
|
|
1927
|
+
coverImage?: string | null | undefined;
|
|
1793
1928
|
historicalNdvi?: {
|
|
1794
1929
|
value: number;
|
|
1795
1930
|
date: string;
|
|
@@ -2023,6 +2158,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2023
2158
|
soilType: string | null;
|
|
2024
2159
|
expectedHarvestDate: string | null;
|
|
2025
2160
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2161
|
+
standCountPerHa?: number | null | undefined;
|
|
2162
|
+
targetStandPerHa?: number | null | undefined;
|
|
2163
|
+
coverImage?: string | null | undefined;
|
|
2026
2164
|
historicalNdvi?: {
|
|
2027
2165
|
value: number;
|
|
2028
2166
|
date: string;
|
|
@@ -2095,6 +2233,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2095
2233
|
soilType: string | null;
|
|
2096
2234
|
expectedHarvestDate: string | null;
|
|
2097
2235
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2236
|
+
standCountPerHa?: number | null | undefined;
|
|
2237
|
+
targetStandPerHa?: number | null | undefined;
|
|
2238
|
+
coverImage?: string | null | undefined;
|
|
2098
2239
|
historicalNdvi?: {
|
|
2099
2240
|
value: number;
|
|
2100
2241
|
date: string;
|
|
@@ -2193,6 +2334,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2193
2334
|
soilType: string | null;
|
|
2194
2335
|
expectedHarvestDate: string | null;
|
|
2195
2336
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2337
|
+
standCountPerHa?: number | null | undefined;
|
|
2338
|
+
targetStandPerHa?: number | null | undefined;
|
|
2339
|
+
coverImage?: string | null | undefined;
|
|
2196
2340
|
historicalNdvi?: {
|
|
2197
2341
|
value: number;
|
|
2198
2342
|
date: string;
|
|
@@ -2277,6 +2421,9 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2277
2421
|
soilType: string | null;
|
|
2278
2422
|
expectedHarvestDate: string | null;
|
|
2279
2423
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2424
|
+
standCountPerHa?: number | null | undefined;
|
|
2425
|
+
targetStandPerHa?: number | null | undefined;
|
|
2426
|
+
coverImage?: string | null | undefined;
|
|
2280
2427
|
historicalNdvi?: {
|
|
2281
2428
|
value: number;
|
|
2282
2429
|
date: string;
|
|
@@ -2366,6 +2513,11 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2366
2513
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
2367
2514
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
2368
2515
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "mature", "harvested"]>>;
|
|
2516
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
2517
|
+
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2518
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
2519
|
+
targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2520
|
+
coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2369
2521
|
historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2370
2522
|
date: z.ZodString;
|
|
2371
2523
|
value: z.ZodNumber;
|
|
@@ -2422,6 +2574,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2422
2574
|
soilType: string | null;
|
|
2423
2575
|
expectedHarvestDate: string | null;
|
|
2424
2576
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2577
|
+
standCountPerHa?: number | null | undefined;
|
|
2578
|
+
targetStandPerHa?: number | null | undefined;
|
|
2579
|
+
coverImage?: string | null | undefined;
|
|
2425
2580
|
historicalNdvi?: {
|
|
2426
2581
|
value: number;
|
|
2427
2582
|
date: string;
|
|
@@ -2453,6 +2608,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2453
2608
|
soilType: string | null;
|
|
2454
2609
|
expectedHarvestDate: string | null;
|
|
2455
2610
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2611
|
+
standCountPerHa?: number | null | undefined;
|
|
2612
|
+
targetStandPerHa?: number | null | undefined;
|
|
2613
|
+
coverImage?: string | null | undefined;
|
|
2456
2614
|
historicalNdvi?: {
|
|
2457
2615
|
value: number;
|
|
2458
2616
|
date: string;
|
|
@@ -2491,6 +2649,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2491
2649
|
soilType: string | null;
|
|
2492
2650
|
expectedHarvestDate: string | null;
|
|
2493
2651
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2652
|
+
standCountPerHa?: number | null | undefined;
|
|
2653
|
+
targetStandPerHa?: number | null | undefined;
|
|
2654
|
+
coverImage?: string | null | undefined;
|
|
2494
2655
|
historicalNdvi?: {
|
|
2495
2656
|
value: number;
|
|
2496
2657
|
date: string;
|
|
@@ -2529,6 +2690,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2529
2690
|
soilType: string | null;
|
|
2530
2691
|
expectedHarvestDate: string | null;
|
|
2531
2692
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2693
|
+
standCountPerHa?: number | null | undefined;
|
|
2694
|
+
targetStandPerHa?: number | null | undefined;
|
|
2695
|
+
coverImage?: string | null | undefined;
|
|
2532
2696
|
historicalNdvi?: {
|
|
2533
2697
|
value: number;
|
|
2534
2698
|
date: string;
|
|
@@ -2593,6 +2757,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2593
2757
|
soilType: string | null;
|
|
2594
2758
|
expectedHarvestDate: string | null;
|
|
2595
2759
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2760
|
+
standCountPerHa?: number | null | undefined;
|
|
2761
|
+
targetStandPerHa?: number | null | undefined;
|
|
2762
|
+
coverImage?: string | null | undefined;
|
|
2596
2763
|
historicalNdvi?: {
|
|
2597
2764
|
value: number;
|
|
2598
2765
|
date: string;
|
|
@@ -2643,6 +2810,9 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2643
2810
|
soilType: string | null;
|
|
2644
2811
|
expectedHarvestDate: string | null;
|
|
2645
2812
|
cropStage: "planted" | "growing" | "flowering" | "mature" | "harvested" | null;
|
|
2813
|
+
standCountPerHa?: number | null | undefined;
|
|
2814
|
+
targetStandPerHa?: number | null | undefined;
|
|
2815
|
+
coverImage?: string | null | undefined;
|
|
2646
2816
|
historicalNdvi?: {
|
|
2647
2817
|
value: number;
|
|
2648
2818
|
date: string;
|
|
@@ -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,uEAAqE,CAAC;AAGlG,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eA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;;;YASxD,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -37,6 +37,12 @@ export const fieldAttributesSchema = z.object({
|
|
|
37
37
|
plantingDate: z.string().datetime().nullable(),
|
|
38
38
|
expectedHarvestDate: z.string().datetime().nullable(),
|
|
39
39
|
cropStage: cropStageSchema.nullable(),
|
|
40
|
+
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
41
|
+
standCountPerHa: z.number().positive().max(10_000_000).nullable().optional(),
|
|
42
|
+
/** Optional target stand for gap display (plants per hectare). */
|
|
43
|
+
targetStandPerHa: z.number().positive().max(10_000_000).nullable().optional(),
|
|
44
|
+
// Card cover: preset:<id> or /files/view/fields/...
|
|
45
|
+
coverImage: z.string().max(500).nullable().optional(),
|
|
40
46
|
// Historical data
|
|
41
47
|
historicalNdvi: z.array(historicalDataPointSchema).optional(),
|
|
42
48
|
cropHistory: z.array(cropHistoryEntrySchema).optional(),
|
|
@@ -54,6 +60,8 @@ export const createFieldAttributesSchema = z.object({
|
|
|
54
60
|
plantingDate: z.string().datetime().optional(),
|
|
55
61
|
expectedHarvestDate: z.string().datetime().optional(),
|
|
56
62
|
cropStage: cropStageSchema.optional(),
|
|
63
|
+
standCountPerHa: z.number().positive().max(10_000_000).optional(),
|
|
64
|
+
targetStandPerHa: z.number().positive().max(10_000_000).optional(),
|
|
57
65
|
});
|
|
58
66
|
// Field attributes for update (input) — nullable crop lifecycle fields allow clearing values
|
|
59
67
|
export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
@@ -66,7 +74,11 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
|
66
74
|
plantingDate: z.string().datetime().nullable().optional(),
|
|
67
75
|
expectedHarvestDate: z.string().datetime().nullable().optional(),
|
|
68
76
|
cropStage: cropStageSchema.nullable().optional(),
|
|
77
|
+
standCountPerHa: z.number().positive().max(10_000_000).nullable().optional(),
|
|
78
|
+
targetStandPerHa: z.number().positive().max(10_000_000).nullable().optional(),
|
|
69
79
|
cropHistory: z.array(cropHistoryEntrySchema).optional(),
|
|
80
|
+
/** `preset:<id>`, upload URL, or null to clear to category default */
|
|
81
|
+
coverImage: z.string().max(500).nullable().optional(),
|
|
70
82
|
});
|
|
71
83
|
// Record planting (archives prior season into cropHistory)
|
|
72
84
|
export const recordPlantingAttributesSchema = z.object({
|
|
@@ -76,6 +88,8 @@ export const recordPlantingAttributesSchema = z.object({
|
|
|
76
88
|
variety: z.string().max(200).optional(),
|
|
77
89
|
notes: z.string().optional(),
|
|
78
90
|
cropStage: cropStageSchema.optional(),
|
|
91
|
+
standCountPerHa: z.number().positive().max(10_000_000).optional(),
|
|
92
|
+
targetStandPerHa: z.number().positive().max(10_000_000).optional(),
|
|
79
93
|
});
|
|
80
94
|
export const recordPlantingSchema = z.object({
|
|
81
95
|
type: z.literal('field-plantings'),
|