@deepintel-ltd/farmpro-contracts 1.36.0 → 1.36.1

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.
@@ -66,6 +66,8 @@ export declare const fieldAttributesSchema: z.ZodObject<{
66
66
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
67
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
68
68
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
69
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
70
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
71
  /** Established plant population (plants per hectare). Null if not recorded. */
70
72
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
73
  /** Optional target stand for gap display (plants per hectare). */
@@ -133,6 +135,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
133
135
  expectedHarvestDate: string | null;
134
136
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
135
137
  transplantedAt?: string | null | undefined;
138
+ plantCount?: number | null | undefined;
136
139
  standCountPerHa?: number | null | undefined;
137
140
  targetStandPerHa?: number | null | undefined;
138
141
  coverImage?: string | null | undefined;
@@ -170,6 +173,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
170
173
  expectedHarvestDate: string | null;
171
174
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
172
175
  transplantedAt?: string | null | undefined;
176
+ plantCount?: number | null | undefined;
173
177
  standCountPerHa?: number | null | undefined;
174
178
  targetStandPerHa?: number | null | undefined;
175
179
  coverImage?: string | null | undefined;
@@ -209,6 +213,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
209
213
  plantingDate: z.ZodOptional<z.ZodString>;
210
214
  expectedHarvestDate: z.ZodOptional<z.ZodString>;
211
215
  cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
216
+ plantCount: z.ZodOptional<z.ZodNumber>;
212
217
  standCountPerHa: z.ZodOptional<z.ZodNumber>;
213
218
  targetStandPerHa: z.ZodOptional<z.ZodNumber>;
214
219
  }, "strip", z.ZodTypeAny, {
@@ -225,6 +230,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
225
230
  soilType?: string | undefined;
226
231
  expectedHarvestDate?: string | undefined;
227
232
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
233
+ plantCount?: number | undefined;
228
234
  standCountPerHa?: number | undefined;
229
235
  targetStandPerHa?: number | undefined;
230
236
  }, {
@@ -241,6 +247,7 @@ export declare const createFieldAttributesSchema: z.ZodObject<{
241
247
  soilType?: string | undefined;
242
248
  expectedHarvestDate?: string | undefined;
243
249
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
250
+ plantCount?: number | undefined;
244
251
  standCountPerHa?: number | undefined;
245
252
  targetStandPerHa?: number | undefined;
246
253
  }>;
@@ -267,6 +274,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
267
274
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
275
  expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
276
  cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
277
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
270
278
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
271
279
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
272
280
  cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -314,6 +322,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
314
322
  transplantedAt?: string | null | undefined;
315
323
  expectedHarvestDate?: string | null | undefined;
316
324
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
325
+ plantCount?: number | null | undefined;
317
326
  standCountPerHa?: number | null | undefined;
318
327
  targetStandPerHa?: number | null | undefined;
319
328
  coverImage?: string | null | undefined;
@@ -343,6 +352,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
343
352
  transplantedAt?: string | null | undefined;
344
353
  expectedHarvestDate?: string | null | undefined;
345
354
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
355
+ plantCount?: number | null | undefined;
346
356
  standCountPerHa?: number | null | undefined;
347
357
  targetStandPerHa?: number | null | undefined;
348
358
  coverImage?: string | null | undefined;
@@ -364,6 +374,7 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
364
374
  variety: z.ZodOptional<z.ZodString>;
365
375
  notes: z.ZodOptional<z.ZodString>;
366
376
  cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
377
+ plantCount: z.ZodOptional<z.ZodNumber>;
367
378
  standCountPerHa: z.ZodOptional<z.ZodNumber>;
368
379
  targetStandPerHa: z.ZodOptional<z.ZodNumber>;
369
380
  }, "strip", z.ZodTypeAny, {
@@ -372,6 +383,7 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
372
383
  notes?: string | undefined;
373
384
  expectedHarvestDate?: string | undefined;
374
385
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
386
+ plantCount?: number | undefined;
375
387
  standCountPerHa?: number | undefined;
376
388
  targetStandPerHa?: number | undefined;
377
389
  variety?: string | undefined;
@@ -381,6 +393,7 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
381
393
  notes?: string | undefined;
382
394
  expectedHarvestDate?: string | undefined;
383
395
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
396
+ plantCount?: number | undefined;
384
397
  standCountPerHa?: number | undefined;
385
398
  targetStandPerHa?: number | undefined;
386
399
  variety?: string | undefined;
@@ -394,6 +407,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
394
407
  variety: z.ZodOptional<z.ZodString>;
395
408
  notes: z.ZodOptional<z.ZodString>;
396
409
  cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
410
+ plantCount: z.ZodOptional<z.ZodNumber>;
397
411
  standCountPerHa: z.ZodOptional<z.ZodNumber>;
398
412
  targetStandPerHa: z.ZodOptional<z.ZodNumber>;
399
413
  }, "strip", z.ZodTypeAny, {
@@ -402,6 +416,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
402
416
  notes?: string | undefined;
403
417
  expectedHarvestDate?: string | undefined;
404
418
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
419
+ plantCount?: number | undefined;
405
420
  standCountPerHa?: number | undefined;
406
421
  targetStandPerHa?: number | undefined;
407
422
  variety?: string | undefined;
@@ -411,6 +426,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
411
426
  notes?: string | undefined;
412
427
  expectedHarvestDate?: string | undefined;
413
428
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
429
+ plantCount?: number | undefined;
414
430
  standCountPerHa?: number | undefined;
415
431
  targetStandPerHa?: number | undefined;
416
432
  variety?: string | undefined;
@@ -423,6 +439,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
423
439
  notes?: string | undefined;
424
440
  expectedHarvestDate?: string | undefined;
425
441
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
442
+ plantCount?: number | undefined;
426
443
  standCountPerHa?: number | undefined;
427
444
  targetStandPerHa?: number | undefined;
428
445
  variety?: string | undefined;
@@ -435,6 +452,7 @@ export declare const recordPlantingSchema: z.ZodObject<{
435
452
  notes?: string | undefined;
436
453
  expectedHarvestDate?: string | undefined;
437
454
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
455
+ plantCount?: number | undefined;
438
456
  standCountPerHa?: number | undefined;
439
457
  targetStandPerHa?: number | undefined;
440
458
  variety?: string | undefined;
@@ -518,6 +536,7 @@ export declare const createFieldSchema: z.ZodObject<{
518
536
  plantingDate: z.ZodOptional<z.ZodString>;
519
537
  expectedHarvestDate: z.ZodOptional<z.ZodString>;
520
538
  cropStage: z.ZodOptional<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
539
+ plantCount: z.ZodOptional<z.ZodNumber>;
521
540
  standCountPerHa: z.ZodOptional<z.ZodNumber>;
522
541
  targetStandPerHa: z.ZodOptional<z.ZodNumber>;
523
542
  }, "strip", z.ZodTypeAny, {
@@ -534,6 +553,7 @@ export declare const createFieldSchema: z.ZodObject<{
534
553
  soilType?: string | undefined;
535
554
  expectedHarvestDate?: string | undefined;
536
555
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
556
+ plantCount?: number | undefined;
537
557
  standCountPerHa?: number | undefined;
538
558
  targetStandPerHa?: number | undefined;
539
559
  }, {
@@ -550,6 +570,7 @@ export declare const createFieldSchema: z.ZodObject<{
550
570
  soilType?: string | undefined;
551
571
  expectedHarvestDate?: string | undefined;
552
572
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
573
+ plantCount?: number | undefined;
553
574
  standCountPerHa?: number | undefined;
554
575
  targetStandPerHa?: number | undefined;
555
576
  }>;
@@ -607,6 +628,7 @@ export declare const createFieldSchema: z.ZodObject<{
607
628
  soilType?: string | undefined;
608
629
  expectedHarvestDate?: string | undefined;
609
630
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
631
+ plantCount?: number | undefined;
610
632
  standCountPerHa?: number | undefined;
611
633
  targetStandPerHa?: number | undefined;
612
634
  };
@@ -634,6 +656,7 @@ export declare const createFieldSchema: z.ZodObject<{
634
656
  soilType?: string | undefined;
635
657
  expectedHarvestDate?: string | undefined;
636
658
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
659
+ plantCount?: number | undefined;
637
660
  standCountPerHa?: number | undefined;
638
661
  targetStandPerHa?: number | undefined;
639
662
  };
@@ -672,6 +695,7 @@ export declare const updateFieldSchema: z.ZodObject<{
672
695
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
696
  expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
697
  cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
698
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
675
699
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
676
700
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
677
701
  cropHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -719,6 +743,7 @@ export declare const updateFieldSchema: z.ZodObject<{
719
743
  transplantedAt?: string | null | undefined;
720
744
  expectedHarvestDate?: string | null | undefined;
721
745
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
746
+ plantCount?: number | null | undefined;
722
747
  standCountPerHa?: number | null | undefined;
723
748
  targetStandPerHa?: number | null | undefined;
724
749
  coverImage?: string | null | undefined;
@@ -748,6 +773,7 @@ export declare const updateFieldSchema: z.ZodObject<{
748
773
  transplantedAt?: string | null | undefined;
749
774
  expectedHarvestDate?: string | null | undefined;
750
775
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
776
+ plantCount?: number | null | undefined;
751
777
  standCountPerHa?: number | null | undefined;
752
778
  targetStandPerHa?: number | null | undefined;
753
779
  coverImage?: string | null | undefined;
@@ -781,6 +807,7 @@ export declare const updateFieldSchema: z.ZodObject<{
781
807
  transplantedAt?: string | null | undefined;
782
808
  expectedHarvestDate?: string | null | undefined;
783
809
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
810
+ plantCount?: number | null | undefined;
784
811
  standCountPerHa?: number | null | undefined;
785
812
  targetStandPerHa?: number | null | undefined;
786
813
  coverImage?: string | null | undefined;
@@ -814,6 +841,7 @@ export declare const updateFieldSchema: z.ZodObject<{
814
841
  transplantedAt?: string | null | undefined;
815
842
  expectedHarvestDate?: string | null | undefined;
816
843
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
844
+ plantCount?: number | null | undefined;
817
845
  standCountPerHa?: number | null | undefined;
818
846
  targetStandPerHa?: number | null | undefined;
819
847
  coverImage?: string | null | undefined;
@@ -856,6 +884,8 @@ export declare const fieldResourceSchema: z.ZodObject<{
856
884
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
885
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
858
886
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
887
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
888
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
859
889
  /** Established plant population (plants per hectare). Null if not recorded. */
860
890
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
861
891
  /** Optional target stand for gap display (plants per hectare). */
@@ -923,6 +953,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
923
953
  expectedHarvestDate: string | null;
924
954
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
925
955
  transplantedAt?: string | null | undefined;
956
+ plantCount?: number | null | undefined;
926
957
  standCountPerHa?: number | null | undefined;
927
958
  targetStandPerHa?: number | null | undefined;
928
959
  coverImage?: string | null | undefined;
@@ -960,6 +991,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
960
991
  expectedHarvestDate: string | null;
961
992
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
962
993
  transplantedAt?: string | null | undefined;
994
+ plantCount?: number | null | undefined;
963
995
  standCountPerHa?: number | null | undefined;
964
996
  targetStandPerHa?: number | null | undefined;
965
997
  coverImage?: string | null | undefined;
@@ -1004,6 +1036,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
1004
1036
  expectedHarvestDate: string | null;
1005
1037
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1006
1038
  transplantedAt?: string | null | undefined;
1039
+ plantCount?: number | null | undefined;
1007
1040
  standCountPerHa?: number | null | undefined;
1008
1041
  targetStandPerHa?: number | null | undefined;
1009
1042
  coverImage?: string | null | undefined;
@@ -1048,6 +1081,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
1048
1081
  expectedHarvestDate: string | null;
1049
1082
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1050
1083
  transplantedAt?: string | null | undefined;
1084
+ plantCount?: number | null | undefined;
1051
1085
  standCountPerHa?: number | null | undefined;
1052
1086
  targetStandPerHa?: number | null | undefined;
1053
1087
  coverImage?: string | null | undefined;
@@ -1098,6 +1132,8 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1098
1132
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
1133
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
1100
1134
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
1135
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
1136
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1101
1137
  /** Established plant population (plants per hectare). Null if not recorded. */
1102
1138
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1103
1139
  /** Optional target stand for gap display (plants per hectare). */
@@ -1165,6 +1201,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1165
1201
  expectedHarvestDate: string | null;
1166
1202
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1167
1203
  transplantedAt?: string | null | undefined;
1204
+ plantCount?: number | null | undefined;
1168
1205
  standCountPerHa?: number | null | undefined;
1169
1206
  targetStandPerHa?: number | null | undefined;
1170
1207
  coverImage?: string | null | undefined;
@@ -1202,6 +1239,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1202
1239
  expectedHarvestDate: string | null;
1203
1240
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1204
1241
  transplantedAt?: string | null | undefined;
1242
+ plantCount?: number | null | undefined;
1205
1243
  standCountPerHa?: number | null | undefined;
1206
1244
  targetStandPerHa?: number | null | undefined;
1207
1245
  coverImage?: string | null | undefined;
@@ -1441,6 +1479,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1441
1479
  expectedHarvestDate: string | null;
1442
1480
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1443
1481
  transplantedAt?: string | null | undefined;
1482
+ plantCount?: number | null | undefined;
1444
1483
  standCountPerHa?: number | null | undefined;
1445
1484
  targetStandPerHa?: number | null | undefined;
1446
1485
  coverImage?: string | null | undefined;
@@ -1519,6 +1558,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1519
1558
  expectedHarvestDate: string | null;
1520
1559
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1521
1560
  transplantedAt?: string | null | undefined;
1561
+ plantCount?: number | null | undefined;
1522
1562
  standCountPerHa?: number | null | undefined;
1523
1563
  targetStandPerHa?: number | null | undefined;
1524
1564
  coverImage?: string | null | undefined;
@@ -1604,6 +1644,8 @@ export declare const fieldResponseSchema: z.ZodObject<{
1604
1644
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1605
1645
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
1606
1646
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
1647
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
1648
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1607
1649
  /** Established plant population (plants per hectare). Null if not recorded. */
1608
1650
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1609
1651
  /** Optional target stand for gap display (plants per hectare). */
@@ -1671,6 +1713,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1671
1713
  expectedHarvestDate: string | null;
1672
1714
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1673
1715
  transplantedAt?: string | null | undefined;
1716
+ plantCount?: number | null | undefined;
1674
1717
  standCountPerHa?: number | null | undefined;
1675
1718
  targetStandPerHa?: number | null | undefined;
1676
1719
  coverImage?: string | null | undefined;
@@ -1708,6 +1751,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1708
1751
  expectedHarvestDate: string | null;
1709
1752
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1710
1753
  transplantedAt?: string | null | undefined;
1754
+ plantCount?: number | null | undefined;
1711
1755
  standCountPerHa?: number | null | undefined;
1712
1756
  targetStandPerHa?: number | null | undefined;
1713
1757
  coverImage?: string | null | undefined;
@@ -1752,6 +1796,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1752
1796
  expectedHarvestDate: string | null;
1753
1797
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1754
1798
  transplantedAt?: string | null | undefined;
1799
+ plantCount?: number | null | undefined;
1755
1800
  standCountPerHa?: number | null | undefined;
1756
1801
  targetStandPerHa?: number | null | undefined;
1757
1802
  coverImage?: string | null | undefined;
@@ -1796,6 +1841,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1796
1841
  expectedHarvestDate: string | null;
1797
1842
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1798
1843
  transplantedAt?: string | null | undefined;
1844
+ plantCount?: number | null | undefined;
1799
1845
  standCountPerHa?: number | null | undefined;
1800
1846
  targetStandPerHa?: number | null | undefined;
1801
1847
  coverImage?: string | null | undefined;
@@ -1866,6 +1912,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1866
1912
  expectedHarvestDate: string | null;
1867
1913
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1868
1914
  transplantedAt?: string | null | undefined;
1915
+ plantCount?: number | null | undefined;
1869
1916
  standCountPerHa?: number | null | undefined;
1870
1917
  targetStandPerHa?: number | null | undefined;
1871
1918
  coverImage?: string | null | undefined;
@@ -1922,6 +1969,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1922
1969
  expectedHarvestDate: string | null;
1923
1970
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
1924
1971
  transplantedAt?: string | null | undefined;
1972
+ plantCount?: number | null | undefined;
1925
1973
  standCountPerHa?: number | null | undefined;
1926
1974
  targetStandPerHa?: number | null | undefined;
1927
1975
  coverImage?: string | null | undefined;
@@ -1984,6 +2032,8 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1984
2032
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1985
2033
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
1986
2034
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
2035
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
2036
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1987
2037
  /** Established plant population (plants per hectare). Null if not recorded. */
1988
2038
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1989
2039
  /** Optional target stand for gap display (plants per hectare). */
@@ -2051,6 +2101,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2051
2101
  expectedHarvestDate: string | null;
2052
2102
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2053
2103
  transplantedAt?: string | null | undefined;
2104
+ plantCount?: number | null | undefined;
2054
2105
  standCountPerHa?: number | null | undefined;
2055
2106
  targetStandPerHa?: number | null | undefined;
2056
2107
  coverImage?: string | null | undefined;
@@ -2088,6 +2139,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2088
2139
  expectedHarvestDate: string | null;
2089
2140
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2090
2141
  transplantedAt?: string | null | undefined;
2142
+ plantCount?: number | null | undefined;
2091
2143
  standCountPerHa?: number | null | undefined;
2092
2144
  targetStandPerHa?: number | null | undefined;
2093
2145
  coverImage?: string | null | undefined;
@@ -2327,6 +2379,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2327
2379
  expectedHarvestDate: string | null;
2328
2380
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2329
2381
  transplantedAt?: string | null | undefined;
2382
+ plantCount?: number | null | undefined;
2330
2383
  standCountPerHa?: number | null | undefined;
2331
2384
  targetStandPerHa?: number | null | undefined;
2332
2385
  coverImage?: string | null | undefined;
@@ -2405,6 +2458,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2405
2458
  expectedHarvestDate: string | null;
2406
2459
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2407
2460
  transplantedAt?: string | null | undefined;
2461
+ plantCount?: number | null | undefined;
2408
2462
  standCountPerHa?: number | null | undefined;
2409
2463
  targetStandPerHa?: number | null | undefined;
2410
2464
  coverImage?: string | null | undefined;
@@ -2509,6 +2563,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2509
2563
  expectedHarvestDate: string | null;
2510
2564
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2511
2565
  transplantedAt?: string | null | undefined;
2566
+ plantCount?: number | null | undefined;
2512
2567
  standCountPerHa?: number | null | undefined;
2513
2568
  targetStandPerHa?: number | null | undefined;
2514
2569
  coverImage?: string | null | undefined;
@@ -2599,6 +2654,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2599
2654
  expectedHarvestDate: string | null;
2600
2655
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2601
2656
  transplantedAt?: string | null | undefined;
2657
+ plantCount?: number | null | undefined;
2602
2658
  standCountPerHa?: number | null | undefined;
2603
2659
  targetStandPerHa?: number | null | undefined;
2604
2660
  coverImage?: string | null | undefined;
@@ -2695,6 +2751,8 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2695
2751
  transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2696
2752
  expectedHarvestDate: z.ZodNullable<z.ZodString>;
2697
2753
  cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
2754
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
2755
+ plantCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2698
2756
  /** Established plant population (plants per hectare). Null if not recorded. */
2699
2757
  standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2700
2758
  /** Optional target stand for gap display (plants per hectare). */
@@ -2762,6 +2820,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2762
2820
  expectedHarvestDate: string | null;
2763
2821
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2764
2822
  transplantedAt?: string | null | undefined;
2823
+ plantCount?: number | null | undefined;
2765
2824
  standCountPerHa?: number | null | undefined;
2766
2825
  targetStandPerHa?: number | null | undefined;
2767
2826
  coverImage?: string | null | undefined;
@@ -2799,6 +2858,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2799
2858
  expectedHarvestDate: string | null;
2800
2859
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2801
2860
  transplantedAt?: string | null | undefined;
2861
+ plantCount?: number | null | undefined;
2802
2862
  standCountPerHa?: number | null | undefined;
2803
2863
  targetStandPerHa?: number | null | undefined;
2804
2864
  coverImage?: string | null | undefined;
@@ -2843,6 +2903,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2843
2903
  expectedHarvestDate: string | null;
2844
2904
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2845
2905
  transplantedAt?: string | null | undefined;
2906
+ plantCount?: number | null | undefined;
2846
2907
  standCountPerHa?: number | null | undefined;
2847
2908
  targetStandPerHa?: number | null | undefined;
2848
2909
  coverImage?: string | null | undefined;
@@ -2887,6 +2948,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2887
2948
  expectedHarvestDate: string | null;
2888
2949
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2889
2950
  transplantedAt?: string | null | undefined;
2951
+ plantCount?: number | null | undefined;
2890
2952
  standCountPerHa?: number | null | undefined;
2891
2953
  targetStandPerHa?: number | null | undefined;
2892
2954
  coverImage?: string | null | undefined;
@@ -2957,6 +3019,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2957
3019
  expectedHarvestDate: string | null;
2958
3020
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
2959
3021
  transplantedAt?: string | null | undefined;
3022
+ plantCount?: number | null | undefined;
2960
3023
  standCountPerHa?: number | null | undefined;
2961
3024
  targetStandPerHa?: number | null | undefined;
2962
3025
  coverImage?: string | null | undefined;
@@ -3013,6 +3076,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
3013
3076
  expectedHarvestDate: string | null;
3014
3077
  cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
3015
3078
  transplantedAt?: string | null | undefined;
3079
+ plantCount?: number | null | undefined;
3016
3080
  standCountPerHa?: number | null | undefined;
3017
3081
  targetStandPerHa?: number | null | undefined;
3018
3082
  coverImage?: string | null | undefined;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -47,6 +47,8 @@ export const fieldAttributesSchema = z.object({
47
47
  transplantedAt: z.string().datetime().nullable().optional(),
48
48
  expectedHarvestDate: z.string().datetime().nullable(),
49
49
  cropStage: cropStageSchema.nullable(),
50
+ /** Total plants the farmer counted. Used for field totals in preference to stand x area. Null if not recorded. */
51
+ plantCount: z.number().int().positive().max(100_000_000).nullable().optional(),
50
52
  /** Established plant population (plants per hectare). Null if not recorded. */
51
53
  standCountPerHa: z.number().positive().max(10_000_000).nullable().optional(),
52
54
  /** Optional target stand for gap display (plants per hectare). */
@@ -72,6 +74,7 @@ export const createFieldAttributesSchema = z.object({
72
74
  plantingDate: z.string().datetime().optional(),
73
75
  expectedHarvestDate: z.string().datetime().optional(),
74
76
  cropStage: cropStageSchema.optional(),
77
+ plantCount: z.number().int().positive().max(100_000_000).optional(),
75
78
  standCountPerHa: z.number().positive().max(10_000_000).optional(),
76
79
  targetStandPerHa: z.number().positive().max(10_000_000).optional(),
77
80
  });
@@ -87,6 +90,7 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
87
90
  transplantedAt: z.string().datetime().nullable().optional(),
88
91
  expectedHarvestDate: z.string().datetime().nullable().optional(),
89
92
  cropStage: cropStageSchema.nullable().optional(),
93
+ plantCount: z.number().int().positive().max(100_000_000).nullable().optional(),
90
94
  standCountPerHa: z.number().positive().max(10_000_000).nullable().optional(),
91
95
  targetStandPerHa: z.number().positive().max(10_000_000).nullable().optional(),
92
96
  cropHistory: z.array(cropHistoryEntrySchema).optional(),
@@ -101,6 +105,7 @@ export const recordPlantingAttributesSchema = z.object({
101
105
  variety: z.string().max(200).optional(),
102
106
  notes: z.string().optional(),
103
107
  cropStage: cropStageSchema.optional(),
108
+ plantCount: z.number().int().positive().max(100_000_000).optional(),
104
109
  standCountPerHa: z.number().positive().max(10_000_000).optional(),
105
110
  targetStandPerHa: z.number().positive().max(10_000_000).optional(),
106
111
  });
@@ -716,6 +716,7 @@ export declare const nutrientPlanSchema: z.ZodObject<{
716
716
  notes: z.ZodArray<z.ZodString, "many">;
717
717
  }, "strip", z.ZodTypeAny, {
718
718
  notes: string[];
719
+ plantCount: number | null;
719
720
  stage: {
720
721
  id: string;
721
722
  label: string;
@@ -764,7 +765,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
764
765
  yieldBasis: string;
765
766
  };
766
767
  fieldDay: number;
767
- plantCount: number | null;
768
768
  weeklyPerPlantG: {
769
769
  N: number;
770
770
  P2O5: number;
@@ -837,6 +837,7 @@ export declare const nutrientPlanSchema: z.ZodObject<{
837
837
  cautions: string[];
838
838
  }, {
839
839
  notes: string[];
840
+ plantCount: number | null;
840
841
  stage: {
841
842
  id: string;
842
843
  label: string;
@@ -885,7 +886,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
885
886
  yieldBasis: string;
886
887
  };
887
888
  fieldDay: number;
888
- plantCount: number | null;
889
889
  weeklyPerPlantG: {
890
890
  N: number;
891
891
  P2O5: number;
@@ -1291,6 +1291,7 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1291
1291
  notes: z.ZodArray<z.ZodString, "many">;
1292
1292
  }, "strip", z.ZodTypeAny, {
1293
1293
  notes: string[];
1294
+ plantCount: number | null;
1294
1295
  stage: {
1295
1296
  id: string;
1296
1297
  label: string;
@@ -1339,7 +1340,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1339
1340
  yieldBasis: string;
1340
1341
  };
1341
1342
  fieldDay: number;
1342
- plantCount: number | null;
1343
1343
  weeklyPerPlantG: {
1344
1344
  N: number;
1345
1345
  P2O5: number;
@@ -1412,6 +1412,7 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1412
1412
  cautions: string[];
1413
1413
  }, {
1414
1414
  notes: string[];
1415
+ plantCount: number | null;
1415
1416
  stage: {
1416
1417
  id: string;
1417
1418
  label: string;
@@ -1460,7 +1461,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1460
1461
  yieldBasis: string;
1461
1462
  };
1462
1463
  fieldDay: number;
1463
- plantCount: number | null;
1464
1464
  weeklyPerPlantG: {
1465
1465
  N: number;
1466
1466
  P2O5: number;
@@ -1829,6 +1829,7 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1829
1829
  } | null;
1830
1830
  plan: {
1831
1831
  notes: string[];
1832
+ plantCount: number | null;
1832
1833
  stage: {
1833
1834
  id: string;
1834
1835
  label: string;
@@ -1877,7 +1878,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
1877
1878
  yieldBasis: string;
1878
1879
  };
1879
1880
  fieldDay: number;
1880
- plantCount: number | null;
1881
1881
  weeklyPerPlantG: {
1882
1882
  N: number;
1883
1883
  P2O5: number;
@@ -2019,6 +2019,7 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
2019
2019
  } | null;
2020
2020
  plan: {
2021
2021
  notes: string[];
2022
+ plantCount: number | null;
2022
2023
  stage: {
2023
2024
  id: string;
2024
2025
  label: string;
@@ -2067,7 +2068,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
2067
2068
  yieldBasis: string;
2068
2069
  };
2069
2070
  fieldDay: number;
2070
- plantCount: number | null;
2071
2071
  weeklyPerPlantG: {
2072
2072
  N: number;
2073
2073
  P2O5: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.36.0",
3
+ "version": "1.36.1",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",