@deepintel-ltd/farmpro-contracts 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ export declare const cropHistoryEntrySchema: z.ZodObject<{
22
22
  harvestDate: z.ZodNullable<z.ZodString>;
23
23
  yield: z.ZodNullable<z.ZodNumber>;
24
24
  yieldUnit: z.ZodNullable<z.ZodString>;
25
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
26
  }, "strip", z.ZodTypeAny, {
26
27
  id: string;
27
28
  crop: string;
@@ -30,6 +31,7 @@ export declare const cropHistoryEntrySchema: z.ZodObject<{
30
31
  harvestDate: string | null;
31
32
  yield: number | null;
32
33
  yieldUnit: string | null;
34
+ notes?: string | null | undefined;
33
35
  }, {
34
36
  id: string;
35
37
  crop: string;
@@ -38,6 +40,7 @@ export declare const cropHistoryEntrySchema: z.ZodObject<{
38
40
  harvestDate: string | null;
39
41
  yield: number | null;
40
42
  yieldUnit: string | null;
43
+ notes?: string | null | undefined;
41
44
  }>;
42
45
  export declare const fieldAttributesSchema: z.ZodObject<{
43
46
  name: z.ZodString;
@@ -84,6 +87,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
84
87
  harvestDate: z.ZodNullable<z.ZodString>;
85
88
  yield: z.ZodNullable<z.ZodNumber>;
86
89
  yieldUnit: z.ZodNullable<z.ZodString>;
90
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
91
  }, "strip", z.ZodTypeAny, {
88
92
  id: string;
89
93
  crop: string;
@@ -92,6 +96,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
92
96
  harvestDate: string | null;
93
97
  yield: number | null;
94
98
  yieldUnit: string | null;
99
+ notes?: string | null | undefined;
95
100
  }, {
96
101
  id: string;
97
102
  crop: string;
@@ -100,6 +105,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
100
105
  harvestDate: string | null;
101
106
  yield: number | null;
102
107
  yieldUnit: string | null;
108
+ notes?: string | null | undefined;
103
109
  }>, "many">>;
104
110
  } & {
105
111
  createdAt: z.ZodString;
@@ -137,6 +143,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
137
143
  harvestDate: string | null;
138
144
  yield: number | null;
139
145
  yieldUnit: string | null;
146
+ notes?: string | null | undefined;
140
147
  }[] | undefined;
141
148
  }, {
142
149
  status: "ok" | "alert" | "critical";
@@ -171,6 +178,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
171
178
  harvestDate: string | null;
172
179
  yield: number | null;
173
180
  yieldUnit: string | null;
181
+ notes?: string | null | undefined;
174
182
  }[] | undefined;
175
183
  }>;
176
184
  export declare const createFieldAttributesSchema: z.ZodObject<{
@@ -260,6 +268,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
260
268
  harvestDate: z.ZodNullable<z.ZodString>;
261
269
  yield: z.ZodNullable<z.ZodNumber>;
262
270
  yieldUnit: z.ZodNullable<z.ZodString>;
271
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
272
  }, "strip", z.ZodTypeAny, {
264
273
  id: string;
265
274
  crop: string;
@@ -268,6 +277,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
268
277
  harvestDate: string | null;
269
278
  yield: number | null;
270
279
  yieldUnit: string | null;
280
+ notes?: string | null | undefined;
271
281
  }, {
272
282
  id: string;
273
283
  crop: string;
@@ -276,6 +286,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
276
286
  harvestDate: string | null;
277
287
  yield: number | null;
278
288
  yieldUnit: string | null;
289
+ notes?: string | null | undefined;
279
290
  }>, "many">>;
280
291
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
292
  }, "strip", z.ZodTypeAny, {
@@ -304,6 +315,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
304
315
  harvestDate: string | null;
305
316
  yield: number | null;
306
317
  yieldUnit: string | null;
318
+ notes?: string | null | undefined;
307
319
  }[] | undefined;
308
320
  }, {
309
321
  name?: string | undefined;
@@ -331,6 +343,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
331
343
  harvestDate: string | null;
332
344
  yield: number | null;
333
345
  yieldUnit: string | null;
346
+ notes?: string | null | undefined;
334
347
  }[] | undefined;
335
348
  }>;
336
349
  export declare const recordPlantingAttributesSchema: z.ZodObject<{
@@ -345,21 +358,21 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
345
358
  }, "strip", z.ZodTypeAny, {
346
359
  currentCrop: string;
347
360
  plantingDate: string;
361
+ notes?: string | undefined;
348
362
  expectedHarvestDate?: string | undefined;
349
363
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
350
364
  standCountPerHa?: number | undefined;
351
365
  targetStandPerHa?: number | undefined;
352
366
  variety?: string | undefined;
353
- notes?: string | undefined;
354
367
  }, {
355
368
  currentCrop: string;
356
369
  plantingDate: string;
370
+ notes?: string | undefined;
357
371
  expectedHarvestDate?: string | undefined;
358
372
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
359
373
  standCountPerHa?: number | undefined;
360
374
  targetStandPerHa?: number | undefined;
361
375
  variety?: string | undefined;
362
- notes?: string | undefined;
363
376
  }>;
364
377
  export declare const recordPlantingSchema: z.ZodObject<{
365
378
  type: z.ZodLiteral<"field-plantings">;
@@ -375,46 +388,81 @@ export declare const recordPlantingSchema: z.ZodObject<{
375
388
  }, "strip", z.ZodTypeAny, {
376
389
  currentCrop: string;
377
390
  plantingDate: string;
391
+ notes?: string | undefined;
378
392
  expectedHarvestDate?: string | undefined;
379
393
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
380
394
  standCountPerHa?: number | undefined;
381
395
  targetStandPerHa?: number | undefined;
382
396
  variety?: string | undefined;
383
- notes?: string | undefined;
384
397
  }, {
385
398
  currentCrop: string;
386
399
  plantingDate: string;
400
+ notes?: string | undefined;
387
401
  expectedHarvestDate?: string | undefined;
388
402
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
389
403
  standCountPerHa?: number | undefined;
390
404
  targetStandPerHa?: number | undefined;
391
405
  variety?: string | undefined;
392
- notes?: string | undefined;
393
406
  }>;
394
407
  }, "strip", z.ZodTypeAny, {
395
408
  type: "field-plantings";
396
409
  attributes: {
397
410
  currentCrop: string;
398
411
  plantingDate: string;
412
+ notes?: string | undefined;
399
413
  expectedHarvestDate?: string | undefined;
400
414
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
401
415
  standCountPerHa?: number | undefined;
402
416
  targetStandPerHa?: number | undefined;
403
417
  variety?: string | undefined;
404
- notes?: string | undefined;
405
418
  };
406
419
  }, {
407
420
  type: "field-plantings";
408
421
  attributes: {
409
422
  currentCrop: string;
410
423
  plantingDate: string;
424
+ notes?: string | undefined;
411
425
  expectedHarvestDate?: string | undefined;
412
426
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
413
427
  standCountPerHa?: number | undefined;
414
428
  targetStandPerHa?: number | undefined;
415
429
  variety?: string | undefined;
430
+ };
431
+ }>;
432
+ export declare const endSeasonAttributesSchema: z.ZodObject<{
433
+ harvestDate: z.ZodOptional<z.ZodString>;
434
+ notes: z.ZodOptional<z.ZodString>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ harvestDate?: string | undefined;
437
+ notes?: string | undefined;
438
+ }, {
439
+ harvestDate?: string | undefined;
440
+ notes?: string | undefined;
441
+ }>;
442
+ export declare const endSeasonSchema: z.ZodObject<{
443
+ type: z.ZodLiteral<"field-end-seasons">;
444
+ attributes: z.ZodDefault<z.ZodObject<{
445
+ harvestDate: z.ZodOptional<z.ZodString>;
446
+ notes: z.ZodOptional<z.ZodString>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ harvestDate?: string | undefined;
449
+ notes?: string | undefined;
450
+ }, {
451
+ harvestDate?: string | undefined;
452
+ notes?: string | undefined;
453
+ }>>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: "field-end-seasons";
456
+ attributes: {
457
+ harvestDate?: string | undefined;
416
458
  notes?: string | undefined;
417
459
  };
460
+ }, {
461
+ type: "field-end-seasons";
462
+ attributes?: {
463
+ harvestDate?: string | undefined;
464
+ notes?: string | undefined;
465
+ } | undefined;
418
466
  }>;
419
467
  export declare const createFieldSchema: z.ZodObject<{
420
468
  type: z.ZodLiteral<"fields">;
@@ -601,6 +649,7 @@ export declare const updateFieldSchema: z.ZodObject<{
601
649
  harvestDate: z.ZodNullable<z.ZodString>;
602
650
  yield: z.ZodNullable<z.ZodNumber>;
603
651
  yieldUnit: z.ZodNullable<z.ZodString>;
652
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
653
  }, "strip", z.ZodTypeAny, {
605
654
  id: string;
606
655
  crop: string;
@@ -609,6 +658,7 @@ export declare const updateFieldSchema: z.ZodObject<{
609
658
  harvestDate: string | null;
610
659
  yield: number | null;
611
660
  yieldUnit: string | null;
661
+ notes?: string | null | undefined;
612
662
  }, {
613
663
  id: string;
614
664
  crop: string;
@@ -617,6 +667,7 @@ export declare const updateFieldSchema: z.ZodObject<{
617
667
  harvestDate: string | null;
618
668
  yield: number | null;
619
669
  yieldUnit: string | null;
670
+ notes?: string | null | undefined;
620
671
  }>, "many">>;
621
672
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
673
  }, "strip", z.ZodTypeAny, {
@@ -645,6 +696,7 @@ export declare const updateFieldSchema: z.ZodObject<{
645
696
  harvestDate: string | null;
646
697
  yield: number | null;
647
698
  yieldUnit: string | null;
699
+ notes?: string | null | undefined;
648
700
  }[] | undefined;
649
701
  }, {
650
702
  name?: string | undefined;
@@ -672,6 +724,7 @@ export declare const updateFieldSchema: z.ZodObject<{
672
724
  harvestDate: string | null;
673
725
  yield: number | null;
674
726
  yieldUnit: string | null;
727
+ notes?: string | null | undefined;
675
728
  }[] | undefined;
676
729
  }>;
677
730
  }, "strip", z.ZodTypeAny, {
@@ -703,6 +756,7 @@ export declare const updateFieldSchema: z.ZodObject<{
703
756
  harvestDate: string | null;
704
757
  yield: number | null;
705
758
  yieldUnit: string | null;
759
+ notes?: string | null | undefined;
706
760
  }[] | undefined;
707
761
  };
708
762
  }, {
@@ -734,6 +788,7 @@ export declare const updateFieldSchema: z.ZodObject<{
734
788
  harvestDate: string | null;
735
789
  yield: number | null;
736
790
  yieldUnit: string | null;
791
+ notes?: string | null | undefined;
737
792
  }[] | undefined;
738
793
  };
739
794
  }>;
@@ -785,6 +840,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
785
840
  harvestDate: z.ZodNullable<z.ZodString>;
786
841
  yield: z.ZodNullable<z.ZodNumber>;
787
842
  yieldUnit: z.ZodNullable<z.ZodString>;
843
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
844
  }, "strip", z.ZodTypeAny, {
789
845
  id: string;
790
846
  crop: string;
@@ -793,6 +849,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
793
849
  harvestDate: string | null;
794
850
  yield: number | null;
795
851
  yieldUnit: string | null;
852
+ notes?: string | null | undefined;
796
853
  }, {
797
854
  id: string;
798
855
  crop: string;
@@ -801,6 +858,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
801
858
  harvestDate: string | null;
802
859
  yield: number | null;
803
860
  yieldUnit: string | null;
861
+ notes?: string | null | undefined;
804
862
  }>, "many">>;
805
863
  } & {
806
864
  createdAt: z.ZodString;
@@ -838,6 +896,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
838
896
  harvestDate: string | null;
839
897
  yield: number | null;
840
898
  yieldUnit: string | null;
899
+ notes?: string | null | undefined;
841
900
  }[] | undefined;
842
901
  }, {
843
902
  status: "ok" | "alert" | "critical";
@@ -872,6 +931,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
872
931
  harvestDate: string | null;
873
932
  yield: number | null;
874
933
  yieldUnit: string | null;
934
+ notes?: string | null | undefined;
875
935
  }[] | undefined;
876
936
  }>;
877
937
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -913,6 +973,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
913
973
  harvestDate: string | null;
914
974
  yield: number | null;
915
975
  yieldUnit: string | null;
976
+ notes?: string | null | undefined;
916
977
  }[] | undefined;
917
978
  };
918
979
  relationships?: Record<string, unknown> | undefined;
@@ -954,6 +1015,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
954
1015
  harvestDate: string | null;
955
1016
  yield: number | null;
956
1017
  yieldUnit: string | null;
1018
+ notes?: string | null | undefined;
957
1019
  }[] | undefined;
958
1020
  };
959
1021
  relationships?: Record<string, unknown> | undefined;
@@ -1008,6 +1070,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1008
1070
  harvestDate: z.ZodNullable<z.ZodString>;
1009
1071
  yield: z.ZodNullable<z.ZodNumber>;
1010
1072
  yieldUnit: z.ZodNullable<z.ZodString>;
1073
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
1074
  }, "strip", z.ZodTypeAny, {
1012
1075
  id: string;
1013
1076
  crop: string;
@@ -1016,6 +1079,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1016
1079
  harvestDate: string | null;
1017
1080
  yield: number | null;
1018
1081
  yieldUnit: string | null;
1082
+ notes?: string | null | undefined;
1019
1083
  }, {
1020
1084
  id: string;
1021
1085
  crop: string;
@@ -1024,6 +1088,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1024
1088
  harvestDate: string | null;
1025
1089
  yield: number | null;
1026
1090
  yieldUnit: string | null;
1091
+ notes?: string | null | undefined;
1027
1092
  }>, "many">>;
1028
1093
  } & {
1029
1094
  createdAt: z.ZodString;
@@ -1061,6 +1126,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1061
1126
  harvestDate: string | null;
1062
1127
  yield: number | null;
1063
1128
  yieldUnit: string | null;
1129
+ notes?: string | null | undefined;
1064
1130
  }[] | undefined;
1065
1131
  }, {
1066
1132
  status: "ok" | "alert" | "critical";
@@ -1095,6 +1161,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1095
1161
  harvestDate: string | null;
1096
1162
  yield: number | null;
1097
1163
  yieldUnit: string | null;
1164
+ notes?: string | null | undefined;
1098
1165
  }[] | undefined;
1099
1166
  }>;
1100
1167
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1331,6 +1398,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1331
1398
  harvestDate: string | null;
1332
1399
  yield: number | null;
1333
1400
  yieldUnit: string | null;
1401
+ notes?: string | null | undefined;
1334
1402
  }[] | undefined;
1335
1403
  };
1336
1404
  relationships?: {
@@ -1406,6 +1474,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1406
1474
  harvestDate: string | null;
1407
1475
  yield: number | null;
1408
1476
  yieldUnit: string | null;
1477
+ notes?: string | null | undefined;
1409
1478
  }[] | undefined;
1410
1479
  };
1411
1480
  relationships?: {
@@ -1495,6 +1564,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1495
1564
  harvestDate: z.ZodNullable<z.ZodString>;
1496
1565
  yield: z.ZodNullable<z.ZodNumber>;
1497
1566
  yieldUnit: z.ZodNullable<z.ZodString>;
1567
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
1568
  }, "strip", z.ZodTypeAny, {
1499
1569
  id: string;
1500
1570
  crop: string;
@@ -1503,6 +1573,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1503
1573
  harvestDate: string | null;
1504
1574
  yield: number | null;
1505
1575
  yieldUnit: string | null;
1576
+ notes?: string | null | undefined;
1506
1577
  }, {
1507
1578
  id: string;
1508
1579
  crop: string;
@@ -1511,6 +1582,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1511
1582
  harvestDate: string | null;
1512
1583
  yield: number | null;
1513
1584
  yieldUnit: string | null;
1585
+ notes?: string | null | undefined;
1514
1586
  }>, "many">>;
1515
1587
  } & {
1516
1588
  createdAt: z.ZodString;
@@ -1548,6 +1620,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1548
1620
  harvestDate: string | null;
1549
1621
  yield: number | null;
1550
1622
  yieldUnit: string | null;
1623
+ notes?: string | null | undefined;
1551
1624
  }[] | undefined;
1552
1625
  }, {
1553
1626
  status: "ok" | "alert" | "critical";
@@ -1582,6 +1655,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1582
1655
  harvestDate: string | null;
1583
1656
  yield: number | null;
1584
1657
  yieldUnit: string | null;
1658
+ notes?: string | null | undefined;
1585
1659
  }[] | undefined;
1586
1660
  }>;
1587
1661
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1623,6 +1697,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1623
1697
  harvestDate: string | null;
1624
1698
  yield: number | null;
1625
1699
  yieldUnit: string | null;
1700
+ notes?: string | null | undefined;
1626
1701
  }[] | undefined;
1627
1702
  };
1628
1703
  relationships?: Record<string, unknown> | undefined;
@@ -1664,6 +1739,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1664
1739
  harvestDate: string | null;
1665
1740
  yield: number | null;
1666
1741
  yieldUnit: string | null;
1742
+ notes?: string | null | undefined;
1667
1743
  }[] | undefined;
1668
1744
  };
1669
1745
  relationships?: Record<string, unknown> | undefined;
@@ -1731,6 +1807,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1731
1807
  harvestDate: string | null;
1732
1808
  yield: number | null;
1733
1809
  yieldUnit: string | null;
1810
+ notes?: string | null | undefined;
1734
1811
  }[] | undefined;
1735
1812
  };
1736
1813
  relationships?: Record<string, unknown> | undefined;
@@ -1784,6 +1861,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1784
1861
  harvestDate: string | null;
1785
1862
  yield: number | null;
1786
1863
  yieldUnit: string | null;
1864
+ notes?: string | null | undefined;
1787
1865
  }[] | undefined;
1788
1866
  };
1789
1867
  relationships?: Record<string, unknown> | undefined;
@@ -1850,6 +1928,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1850
1928
  harvestDate: z.ZodNullable<z.ZodString>;
1851
1929
  yield: z.ZodNullable<z.ZodNumber>;
1852
1930
  yieldUnit: z.ZodNullable<z.ZodString>;
1931
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1853
1932
  }, "strip", z.ZodTypeAny, {
1854
1933
  id: string;
1855
1934
  crop: string;
@@ -1858,6 +1937,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1858
1937
  harvestDate: string | null;
1859
1938
  yield: number | null;
1860
1939
  yieldUnit: string | null;
1940
+ notes?: string | null | undefined;
1861
1941
  }, {
1862
1942
  id: string;
1863
1943
  crop: string;
@@ -1866,6 +1946,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1866
1946
  harvestDate: string | null;
1867
1947
  yield: number | null;
1868
1948
  yieldUnit: string | null;
1949
+ notes?: string | null | undefined;
1869
1950
  }>, "many">>;
1870
1951
  } & {
1871
1952
  createdAt: z.ZodString;
@@ -1903,6 +1984,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1903
1984
  harvestDate: string | null;
1904
1985
  yield: number | null;
1905
1986
  yieldUnit: string | null;
1987
+ notes?: string | null | undefined;
1906
1988
  }[] | undefined;
1907
1989
  }, {
1908
1990
  status: "ok" | "alert" | "critical";
@@ -1937,6 +2019,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1937
2019
  harvestDate: string | null;
1938
2020
  yield: number | null;
1939
2021
  yieldUnit: string | null;
2022
+ notes?: string | null | undefined;
1940
2023
  }[] | undefined;
1941
2024
  }>;
1942
2025
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2173,6 +2256,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2173
2256
  harvestDate: string | null;
2174
2257
  yield: number | null;
2175
2258
  yieldUnit: string | null;
2259
+ notes?: string | null | undefined;
2176
2260
  }[] | undefined;
2177
2261
  };
2178
2262
  relationships?: {
@@ -2248,6 +2332,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2248
2332
  harvestDate: string | null;
2249
2333
  yield: number | null;
2250
2334
  yieldUnit: string | null;
2335
+ notes?: string | null | undefined;
2251
2336
  }[] | undefined;
2252
2337
  };
2253
2338
  relationships?: {
@@ -2349,6 +2434,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2349
2434
  harvestDate: string | null;
2350
2435
  yield: number | null;
2351
2436
  yieldUnit: string | null;
2437
+ notes?: string | null | undefined;
2352
2438
  }[] | undefined;
2353
2439
  };
2354
2440
  relationships?: {
@@ -2436,6 +2522,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2436
2522
  harvestDate: string | null;
2437
2523
  yield: number | null;
2438
2524
  yieldUnit: string | null;
2525
+ notes?: string | null | undefined;
2439
2526
  }[] | undefined;
2440
2527
  };
2441
2528
  relationships?: {
@@ -2536,6 +2623,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2536
2623
  harvestDate: z.ZodNullable<z.ZodString>;
2537
2624
  yield: z.ZodNullable<z.ZodNumber>;
2538
2625
  yieldUnit: z.ZodNullable<z.ZodString>;
2626
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2539
2627
  }, "strip", z.ZodTypeAny, {
2540
2628
  id: string;
2541
2629
  crop: string;
@@ -2544,6 +2632,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2544
2632
  harvestDate: string | null;
2545
2633
  yield: number | null;
2546
2634
  yieldUnit: string | null;
2635
+ notes?: string | null | undefined;
2547
2636
  }, {
2548
2637
  id: string;
2549
2638
  crop: string;
@@ -2552,6 +2641,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2552
2641
  harvestDate: string | null;
2553
2642
  yield: number | null;
2554
2643
  yieldUnit: string | null;
2644
+ notes?: string | null | undefined;
2555
2645
  }>, "many">>;
2556
2646
  } & {
2557
2647
  createdAt: z.ZodString;
@@ -2589,6 +2679,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2589
2679
  harvestDate: string | null;
2590
2680
  yield: number | null;
2591
2681
  yieldUnit: string | null;
2682
+ notes?: string | null | undefined;
2592
2683
  }[] | undefined;
2593
2684
  }, {
2594
2685
  status: "ok" | "alert" | "critical";
@@ -2623,6 +2714,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2623
2714
  harvestDate: string | null;
2624
2715
  yield: number | null;
2625
2716
  yieldUnit: string | null;
2717
+ notes?: string | null | undefined;
2626
2718
  }[] | undefined;
2627
2719
  }>;
2628
2720
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2664,6 +2756,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2664
2756
  harvestDate: string | null;
2665
2757
  yield: number | null;
2666
2758
  yieldUnit: string | null;
2759
+ notes?: string | null | undefined;
2667
2760
  }[] | undefined;
2668
2761
  };
2669
2762
  relationships?: Record<string, unknown> | undefined;
@@ -2705,6 +2798,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2705
2798
  harvestDate: string | null;
2706
2799
  yield: number | null;
2707
2800
  yieldUnit: string | null;
2801
+ notes?: string | null | undefined;
2708
2802
  }[] | undefined;
2709
2803
  };
2710
2804
  relationships?: Record<string, unknown> | undefined;
@@ -2772,6 +2866,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2772
2866
  harvestDate: string | null;
2773
2867
  yield: number | null;
2774
2868
  yieldUnit: string | null;
2869
+ notes?: string | null | undefined;
2775
2870
  }[] | undefined;
2776
2871
  };
2777
2872
  relationships?: Record<string, unknown> | undefined;
@@ -2825,6 +2920,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2825
2920
  harvestDate: string | null;
2826
2921
  yield: number | null;
2827
2922
  yieldUnit: string | null;
2923
+ notes?: string | null | undefined;
2828
2924
  }[] | undefined;
2829
2925
  };
2830
2926
  relationships?: Record<string, unknown> | undefined;
@@ -2858,6 +2954,8 @@ export type FieldDetailResponse = z.infer<typeof fieldDetailResponseSchema>;
2858
2954
  export type FieldListResponse = z.infer<typeof fieldListResponseSchema>;
2859
2955
  export type RecordPlantingAttributes = z.infer<typeof recordPlantingAttributesSchema>;
2860
2956
  export type RecordPlantingInput = z.infer<typeof recordPlantingSchema>;
2957
+ export type EndSeasonAttributes = z.infer<typeof endSeasonAttributesSchema>;
2958
+ export type EndSeasonInput = z.infer<typeof endSeasonSchema>;
2861
2959
  export declare const seasonTimelineEventKindSchema: z.ZodEnum<["harvest", "soil-test", "field-activity", "planting"]>;
2862
2960
  export declare const seasonTimelineActivityTypeSchema: z.ZodEnum<["weeding", "fertilizer"]>;
2863
2961
  export declare const seasonTimelineEventAttributesSchema: z.ZodObject<{
@@ -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,mFAO1B,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;IAchC,+EAA+E;;IAE/E,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC;AAG3B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;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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"}
@@ -28,6 +28,7 @@ export const cropHistoryEntrySchema = z.object({
28
28
  harvestDate: z.string().datetime().nullable(),
29
29
  yield: z.number().nullable(),
30
30
  yieldUnit: z.string().nullable(),
31
+ notes: z.string().max(2000).nullable().optional(),
31
32
  });
32
33
  // Field attributes schema (for JSON:API attributes object)
33
34
  export const fieldAttributesSchema = z.object({
@@ -102,6 +103,15 @@ export const recordPlantingSchema = z.object({
102
103
  type: z.literal('field-plantings'),
103
104
  attributes: recordPlantingAttributesSchema,
104
105
  });
106
+ // End season (archives current crop into cropHistory and clears active lifecycle)
107
+ export const endSeasonAttributesSchema = z.object({
108
+ harvestDate: z.string().datetime().optional(),
109
+ notes: z.string().max(2000).optional(),
110
+ });
111
+ export const endSeasonSchema = z.object({
112
+ type: z.literal('field-end-seasons'),
113
+ attributes: endSeasonAttributesSchema.default({}),
114
+ });
105
115
  // Create field input (JSON:API format)
106
116
  export const createFieldSchema = z.object({
107
117
  type: z.literal('fields'),