@deepintel-ltd/farmpro-contracts 1.20.1 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -66,6 +69,8 @@ export declare const fieldAttributesSchema: z.ZodObject<{
66
69
  /** Optional target stand for gap display (plants per hectare). */
67
70
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
71
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ /** ISO datetime when the field was soft-archived; null = active */
73
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
74
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
75
  date: z.ZodString;
71
76
  value: z.ZodNumber;
@@ -84,6 +89,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
84
89
  harvestDate: z.ZodNullable<z.ZodString>;
85
90
  yield: z.ZodNullable<z.ZodNumber>;
86
91
  yieldUnit: z.ZodNullable<z.ZodString>;
92
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
93
  }, "strip", z.ZodTypeAny, {
88
94
  id: string;
89
95
  crop: string;
@@ -92,6 +98,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
92
98
  harvestDate: string | null;
93
99
  yield: number | null;
94
100
  yieldUnit: string | null;
101
+ notes?: string | null | undefined;
95
102
  }, {
96
103
  id: string;
97
104
  crop: string;
@@ -100,6 +107,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
100
107
  harvestDate: string | null;
101
108
  yield: number | null;
102
109
  yieldUnit: string | null;
110
+ notes?: string | null | undefined;
103
111
  }>, "many">>;
104
112
  } & {
105
113
  createdAt: z.ZodString;
@@ -125,6 +133,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
125
133
  standCountPerHa?: number | null | undefined;
126
134
  targetStandPerHa?: number | null | undefined;
127
135
  coverImage?: string | null | undefined;
136
+ archivedAt?: string | null | undefined;
128
137
  historicalNdvi?: {
129
138
  value: number;
130
139
  date: string;
@@ -137,6 +146,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
137
146
  harvestDate: string | null;
138
147
  yield: number | null;
139
148
  yieldUnit: string | null;
149
+ notes?: string | null | undefined;
140
150
  }[] | undefined;
141
151
  }, {
142
152
  status: "ok" | "alert" | "critical";
@@ -159,6 +169,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
159
169
  standCountPerHa?: number | null | undefined;
160
170
  targetStandPerHa?: number | null | undefined;
161
171
  coverImage?: string | null | undefined;
172
+ archivedAt?: string | null | undefined;
162
173
  historicalNdvi?: {
163
174
  value: number;
164
175
  date: string;
@@ -171,6 +182,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
171
182
  harvestDate: string | null;
172
183
  yield: number | null;
173
184
  yieldUnit: string | null;
185
+ notes?: string | null | undefined;
174
186
  }[] | undefined;
175
187
  }>;
176
188
  export declare const createFieldAttributesSchema: z.ZodObject<{
@@ -260,6 +272,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
260
272
  harvestDate: z.ZodNullable<z.ZodString>;
261
273
  yield: z.ZodNullable<z.ZodNumber>;
262
274
  yieldUnit: z.ZodNullable<z.ZodString>;
275
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
276
  }, "strip", z.ZodTypeAny, {
264
277
  id: string;
265
278
  crop: string;
@@ -268,6 +281,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
268
281
  harvestDate: string | null;
269
282
  yield: number | null;
270
283
  yieldUnit: string | null;
284
+ notes?: string | null | undefined;
271
285
  }, {
272
286
  id: string;
273
287
  crop: string;
@@ -276,6 +290,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
276
290
  harvestDate: string | null;
277
291
  yield: number | null;
278
292
  yieldUnit: string | null;
293
+ notes?: string | null | undefined;
279
294
  }>, "many">>;
280
295
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
296
  }, "strip", z.ZodTypeAny, {
@@ -304,6 +319,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
304
319
  harvestDate: string | null;
305
320
  yield: number | null;
306
321
  yieldUnit: string | null;
322
+ notes?: string | null | undefined;
307
323
  }[] | undefined;
308
324
  }, {
309
325
  name?: string | undefined;
@@ -331,6 +347,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
331
347
  harvestDate: string | null;
332
348
  yield: number | null;
333
349
  yieldUnit: string | null;
350
+ notes?: string | null | undefined;
334
351
  }[] | undefined;
335
352
  }>;
336
353
  export declare const recordPlantingAttributesSchema: z.ZodObject<{
@@ -345,21 +362,21 @@ export declare const recordPlantingAttributesSchema: z.ZodObject<{
345
362
  }, "strip", z.ZodTypeAny, {
346
363
  currentCrop: string;
347
364
  plantingDate: string;
365
+ notes?: string | undefined;
348
366
  expectedHarvestDate?: string | undefined;
349
367
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
350
368
  standCountPerHa?: number | undefined;
351
369
  targetStandPerHa?: number | undefined;
352
370
  variety?: string | undefined;
353
- notes?: string | undefined;
354
371
  }, {
355
372
  currentCrop: string;
356
373
  plantingDate: string;
374
+ notes?: string | undefined;
357
375
  expectedHarvestDate?: string | undefined;
358
376
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
359
377
  standCountPerHa?: number | undefined;
360
378
  targetStandPerHa?: number | undefined;
361
379
  variety?: string | undefined;
362
- notes?: string | undefined;
363
380
  }>;
364
381
  export declare const recordPlantingSchema: z.ZodObject<{
365
382
  type: z.ZodLiteral<"field-plantings">;
@@ -375,46 +392,102 @@ export declare const recordPlantingSchema: z.ZodObject<{
375
392
  }, "strip", z.ZodTypeAny, {
376
393
  currentCrop: string;
377
394
  plantingDate: string;
395
+ notes?: string | undefined;
378
396
  expectedHarvestDate?: string | undefined;
379
397
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
380
398
  standCountPerHa?: number | undefined;
381
399
  targetStandPerHa?: number | undefined;
382
400
  variety?: string | undefined;
383
- notes?: string | undefined;
384
401
  }, {
385
402
  currentCrop: string;
386
403
  plantingDate: string;
404
+ notes?: string | undefined;
387
405
  expectedHarvestDate?: string | undefined;
388
406
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
389
407
  standCountPerHa?: number | undefined;
390
408
  targetStandPerHa?: number | undefined;
391
409
  variety?: string | undefined;
392
- notes?: string | undefined;
393
410
  }>;
394
411
  }, "strip", z.ZodTypeAny, {
395
412
  type: "field-plantings";
396
413
  attributes: {
397
414
  currentCrop: string;
398
415
  plantingDate: string;
416
+ notes?: string | undefined;
399
417
  expectedHarvestDate?: string | undefined;
400
418
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
401
419
  standCountPerHa?: number | undefined;
402
420
  targetStandPerHa?: number | undefined;
403
421
  variety?: string | undefined;
404
- notes?: string | undefined;
405
422
  };
406
423
  }, {
407
424
  type: "field-plantings";
408
425
  attributes: {
409
426
  currentCrop: string;
410
427
  plantingDate: string;
428
+ notes?: string | undefined;
411
429
  expectedHarvestDate?: string | undefined;
412
430
  cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | undefined;
413
431
  standCountPerHa?: number | undefined;
414
432
  targetStandPerHa?: number | undefined;
415
433
  variety?: string | undefined;
434
+ };
435
+ }>;
436
+ export declare const endSeasonAttributesSchema: z.ZodObject<{
437
+ harvestDate: z.ZodOptional<z.ZodString>;
438
+ notes: z.ZodOptional<z.ZodString>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ harvestDate?: string | undefined;
441
+ notes?: string | undefined;
442
+ }, {
443
+ harvestDate?: string | undefined;
444
+ notes?: string | undefined;
445
+ }>;
446
+ export declare const endSeasonSchema: z.ZodObject<{
447
+ type: z.ZodLiteral<"field-end-seasons">;
448
+ attributes: z.ZodDefault<z.ZodObject<{
449
+ harvestDate: z.ZodOptional<z.ZodString>;
450
+ notes: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ harvestDate?: string | undefined;
453
+ notes?: string | undefined;
454
+ }, {
455
+ harvestDate?: string | undefined;
456
+ notes?: string | undefined;
457
+ }>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "field-end-seasons";
460
+ attributes: {
461
+ harvestDate?: string | undefined;
416
462
  notes?: string | undefined;
417
463
  };
464
+ }, {
465
+ type: "field-end-seasons";
466
+ attributes?: {
467
+ harvestDate?: string | undefined;
468
+ notes?: string | undefined;
469
+ } | undefined;
470
+ }>;
471
+ /** Soft-archive / restore field (no attributes required) */
472
+ export declare const fieldArchiveSchema: z.ZodObject<{
473
+ type: z.ZodLiteral<"field-archives">;
474
+ attributes: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ type: "field-archives";
477
+ attributes: {};
478
+ }, {
479
+ type: "field-archives";
480
+ attributes?: {} | undefined;
481
+ }>;
482
+ export declare const fieldRestoreSchema: z.ZodObject<{
483
+ type: z.ZodLiteral<"field-restores">;
484
+ attributes: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ type: "field-restores";
487
+ attributes: {};
488
+ }, {
489
+ type: "field-restores";
490
+ attributes?: {} | undefined;
418
491
  }>;
419
492
  export declare const createFieldSchema: z.ZodObject<{
420
493
  type: z.ZodLiteral<"fields">;
@@ -601,6 +674,7 @@ export declare const updateFieldSchema: z.ZodObject<{
601
674
  harvestDate: z.ZodNullable<z.ZodString>;
602
675
  yield: z.ZodNullable<z.ZodNumber>;
603
676
  yieldUnit: z.ZodNullable<z.ZodString>;
677
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
678
  }, "strip", z.ZodTypeAny, {
605
679
  id: string;
606
680
  crop: string;
@@ -609,6 +683,7 @@ export declare const updateFieldSchema: z.ZodObject<{
609
683
  harvestDate: string | null;
610
684
  yield: number | null;
611
685
  yieldUnit: string | null;
686
+ notes?: string | null | undefined;
612
687
  }, {
613
688
  id: string;
614
689
  crop: string;
@@ -617,6 +692,7 @@ export declare const updateFieldSchema: z.ZodObject<{
617
692
  harvestDate: string | null;
618
693
  yield: number | null;
619
694
  yieldUnit: string | null;
695
+ notes?: string | null | undefined;
620
696
  }>, "many">>;
621
697
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
698
  }, "strip", z.ZodTypeAny, {
@@ -645,6 +721,7 @@ export declare const updateFieldSchema: z.ZodObject<{
645
721
  harvestDate: string | null;
646
722
  yield: number | null;
647
723
  yieldUnit: string | null;
724
+ notes?: string | null | undefined;
648
725
  }[] | undefined;
649
726
  }, {
650
727
  name?: string | undefined;
@@ -672,6 +749,7 @@ export declare const updateFieldSchema: z.ZodObject<{
672
749
  harvestDate: string | null;
673
750
  yield: number | null;
674
751
  yieldUnit: string | null;
752
+ notes?: string | null | undefined;
675
753
  }[] | undefined;
676
754
  }>;
677
755
  }, "strip", z.ZodTypeAny, {
@@ -703,6 +781,7 @@ export declare const updateFieldSchema: z.ZodObject<{
703
781
  harvestDate: string | null;
704
782
  yield: number | null;
705
783
  yieldUnit: string | null;
784
+ notes?: string | null | undefined;
706
785
  }[] | undefined;
707
786
  };
708
787
  }, {
@@ -734,6 +813,7 @@ export declare const updateFieldSchema: z.ZodObject<{
734
813
  harvestDate: string | null;
735
814
  yield: number | null;
736
815
  yieldUnit: string | null;
816
+ notes?: string | null | undefined;
737
817
  }[] | undefined;
738
818
  };
739
819
  }>;
@@ -767,6 +847,8 @@ export declare const fieldResourceSchema: z.ZodObject<{
767
847
  /** Optional target stand for gap display (plants per hectare). */
768
848
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
849
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
850
+ /** ISO datetime when the field was soft-archived; null = active */
851
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
852
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
771
853
  date: z.ZodString;
772
854
  value: z.ZodNumber;
@@ -785,6 +867,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
785
867
  harvestDate: z.ZodNullable<z.ZodString>;
786
868
  yield: z.ZodNullable<z.ZodNumber>;
787
869
  yieldUnit: z.ZodNullable<z.ZodString>;
870
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
871
  }, "strip", z.ZodTypeAny, {
789
872
  id: string;
790
873
  crop: string;
@@ -793,6 +876,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
793
876
  harvestDate: string | null;
794
877
  yield: number | null;
795
878
  yieldUnit: string | null;
879
+ notes?: string | null | undefined;
796
880
  }, {
797
881
  id: string;
798
882
  crop: string;
@@ -801,6 +885,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
801
885
  harvestDate: string | null;
802
886
  yield: number | null;
803
887
  yieldUnit: string | null;
888
+ notes?: string | null | undefined;
804
889
  }>, "many">>;
805
890
  } & {
806
891
  createdAt: z.ZodString;
@@ -826,6 +911,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
826
911
  standCountPerHa?: number | null | undefined;
827
912
  targetStandPerHa?: number | null | undefined;
828
913
  coverImage?: string | null | undefined;
914
+ archivedAt?: string | null | undefined;
829
915
  historicalNdvi?: {
830
916
  value: number;
831
917
  date: string;
@@ -838,6 +924,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
838
924
  harvestDate: string | null;
839
925
  yield: number | null;
840
926
  yieldUnit: string | null;
927
+ notes?: string | null | undefined;
841
928
  }[] | undefined;
842
929
  }, {
843
930
  status: "ok" | "alert" | "critical";
@@ -860,6 +947,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
860
947
  standCountPerHa?: number | null | undefined;
861
948
  targetStandPerHa?: number | null | undefined;
862
949
  coverImage?: string | null | undefined;
950
+ archivedAt?: string | null | undefined;
863
951
  historicalNdvi?: {
864
952
  value: number;
865
953
  date: string;
@@ -872,6 +960,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
872
960
  harvestDate: string | null;
873
961
  yield: number | null;
874
962
  yieldUnit: string | null;
963
+ notes?: string | null | undefined;
875
964
  }[] | undefined;
876
965
  }>;
877
966
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -901,6 +990,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
901
990
  standCountPerHa?: number | null | undefined;
902
991
  targetStandPerHa?: number | null | undefined;
903
992
  coverImage?: string | null | undefined;
993
+ archivedAt?: string | null | undefined;
904
994
  historicalNdvi?: {
905
995
  value: number;
906
996
  date: string;
@@ -913,6 +1003,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
913
1003
  harvestDate: string | null;
914
1004
  yield: number | null;
915
1005
  yieldUnit: string | null;
1006
+ notes?: string | null | undefined;
916
1007
  }[] | undefined;
917
1008
  };
918
1009
  relationships?: Record<string, unknown> | undefined;
@@ -942,6 +1033,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
942
1033
  standCountPerHa?: number | null | undefined;
943
1034
  targetStandPerHa?: number | null | undefined;
944
1035
  coverImage?: string | null | undefined;
1036
+ archivedAt?: string | null | undefined;
945
1037
  historicalNdvi?: {
946
1038
  value: number;
947
1039
  date: string;
@@ -954,6 +1046,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
954
1046
  harvestDate: string | null;
955
1047
  yield: number | null;
956
1048
  yieldUnit: string | null;
1049
+ notes?: string | null | undefined;
957
1050
  }[] | undefined;
958
1051
  };
959
1052
  relationships?: Record<string, unknown> | undefined;
@@ -990,6 +1083,8 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
990
1083
  /** Optional target stand for gap display (plants per hectare). */
991
1084
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
992
1085
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1086
+ /** ISO datetime when the field was soft-archived; null = active */
1087
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
1088
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
994
1089
  date: z.ZodString;
995
1090
  value: z.ZodNumber;
@@ -1008,6 +1103,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1008
1103
  harvestDate: z.ZodNullable<z.ZodString>;
1009
1104
  yield: z.ZodNullable<z.ZodNumber>;
1010
1105
  yieldUnit: z.ZodNullable<z.ZodString>;
1106
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
1107
  }, "strip", z.ZodTypeAny, {
1012
1108
  id: string;
1013
1109
  crop: string;
@@ -1016,6 +1112,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1016
1112
  harvestDate: string | null;
1017
1113
  yield: number | null;
1018
1114
  yieldUnit: string | null;
1115
+ notes?: string | null | undefined;
1019
1116
  }, {
1020
1117
  id: string;
1021
1118
  crop: string;
@@ -1024,6 +1121,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1024
1121
  harvestDate: string | null;
1025
1122
  yield: number | null;
1026
1123
  yieldUnit: string | null;
1124
+ notes?: string | null | undefined;
1027
1125
  }>, "many">>;
1028
1126
  } & {
1029
1127
  createdAt: z.ZodString;
@@ -1049,6 +1147,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1049
1147
  standCountPerHa?: number | null | undefined;
1050
1148
  targetStandPerHa?: number | null | undefined;
1051
1149
  coverImage?: string | null | undefined;
1150
+ archivedAt?: string | null | undefined;
1052
1151
  historicalNdvi?: {
1053
1152
  value: number;
1054
1153
  date: string;
@@ -1061,6 +1160,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1061
1160
  harvestDate: string | null;
1062
1161
  yield: number | null;
1063
1162
  yieldUnit: string | null;
1163
+ notes?: string | null | undefined;
1064
1164
  }[] | undefined;
1065
1165
  }, {
1066
1166
  status: "ok" | "alert" | "critical";
@@ -1083,6 +1183,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1083
1183
  standCountPerHa?: number | null | undefined;
1084
1184
  targetStandPerHa?: number | null | undefined;
1085
1185
  coverImage?: string | null | undefined;
1186
+ archivedAt?: string | null | undefined;
1086
1187
  historicalNdvi?: {
1087
1188
  value: number;
1088
1189
  date: string;
@@ -1095,6 +1196,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1095
1196
  harvestDate: string | null;
1096
1197
  yield: number | null;
1097
1198
  yieldUnit: string | null;
1199
+ notes?: string | null | undefined;
1098
1200
  }[] | undefined;
1099
1201
  }>;
1100
1202
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1319,6 +1421,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1319
1421
  standCountPerHa?: number | null | undefined;
1320
1422
  targetStandPerHa?: number | null | undefined;
1321
1423
  coverImage?: string | null | undefined;
1424
+ archivedAt?: string | null | undefined;
1322
1425
  historicalNdvi?: {
1323
1426
  value: number;
1324
1427
  date: string;
@@ -1331,6 +1434,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1331
1434
  harvestDate: string | null;
1332
1435
  yield: number | null;
1333
1436
  yieldUnit: string | null;
1437
+ notes?: string | null | undefined;
1334
1438
  }[] | undefined;
1335
1439
  };
1336
1440
  relationships?: {
@@ -1394,6 +1498,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1394
1498
  standCountPerHa?: number | null | undefined;
1395
1499
  targetStandPerHa?: number | null | undefined;
1396
1500
  coverImage?: string | null | undefined;
1501
+ archivedAt?: string | null | undefined;
1397
1502
  historicalNdvi?: {
1398
1503
  value: number;
1399
1504
  date: string;
@@ -1406,6 +1511,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
1406
1511
  harvestDate: string | null;
1407
1512
  yield: number | null;
1408
1513
  yieldUnit: string | null;
1514
+ notes?: string | null | undefined;
1409
1515
  }[] | undefined;
1410
1516
  };
1411
1517
  relationships?: {
@@ -1477,6 +1583,8 @@ export declare const fieldResponseSchema: z.ZodObject<{
1477
1583
  /** Optional target stand for gap display (plants per hectare). */
1478
1584
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1479
1585
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1586
+ /** ISO datetime when the field was soft-archived; null = active */
1587
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1480
1588
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
1481
1589
  date: z.ZodString;
1482
1590
  value: z.ZodNumber;
@@ -1495,6 +1603,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1495
1603
  harvestDate: z.ZodNullable<z.ZodString>;
1496
1604
  yield: z.ZodNullable<z.ZodNumber>;
1497
1605
  yieldUnit: z.ZodNullable<z.ZodString>;
1606
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
1607
  }, "strip", z.ZodTypeAny, {
1499
1608
  id: string;
1500
1609
  crop: string;
@@ -1503,6 +1612,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1503
1612
  harvestDate: string | null;
1504
1613
  yield: number | null;
1505
1614
  yieldUnit: string | null;
1615
+ notes?: string | null | undefined;
1506
1616
  }, {
1507
1617
  id: string;
1508
1618
  crop: string;
@@ -1511,6 +1621,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1511
1621
  harvestDate: string | null;
1512
1622
  yield: number | null;
1513
1623
  yieldUnit: string | null;
1624
+ notes?: string | null | undefined;
1514
1625
  }>, "many">>;
1515
1626
  } & {
1516
1627
  createdAt: z.ZodString;
@@ -1536,6 +1647,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1536
1647
  standCountPerHa?: number | null | undefined;
1537
1648
  targetStandPerHa?: number | null | undefined;
1538
1649
  coverImage?: string | null | undefined;
1650
+ archivedAt?: string | null | undefined;
1539
1651
  historicalNdvi?: {
1540
1652
  value: number;
1541
1653
  date: string;
@@ -1548,6 +1660,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1548
1660
  harvestDate: string | null;
1549
1661
  yield: number | null;
1550
1662
  yieldUnit: string | null;
1663
+ notes?: string | null | undefined;
1551
1664
  }[] | undefined;
1552
1665
  }, {
1553
1666
  status: "ok" | "alert" | "critical";
@@ -1570,6 +1683,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1570
1683
  standCountPerHa?: number | null | undefined;
1571
1684
  targetStandPerHa?: number | null | undefined;
1572
1685
  coverImage?: string | null | undefined;
1686
+ archivedAt?: string | null | undefined;
1573
1687
  historicalNdvi?: {
1574
1688
  value: number;
1575
1689
  date: string;
@@ -1582,6 +1696,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1582
1696
  harvestDate: string | null;
1583
1697
  yield: number | null;
1584
1698
  yieldUnit: string | null;
1699
+ notes?: string | null | undefined;
1585
1700
  }[] | undefined;
1586
1701
  }>;
1587
1702
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1611,6 +1726,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1611
1726
  standCountPerHa?: number | null | undefined;
1612
1727
  targetStandPerHa?: number | null | undefined;
1613
1728
  coverImage?: string | null | undefined;
1729
+ archivedAt?: string | null | undefined;
1614
1730
  historicalNdvi?: {
1615
1731
  value: number;
1616
1732
  date: string;
@@ -1623,6 +1739,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1623
1739
  harvestDate: string | null;
1624
1740
  yield: number | null;
1625
1741
  yieldUnit: string | null;
1742
+ notes?: string | null | undefined;
1626
1743
  }[] | undefined;
1627
1744
  };
1628
1745
  relationships?: Record<string, unknown> | undefined;
@@ -1652,6 +1769,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1652
1769
  standCountPerHa?: number | null | undefined;
1653
1770
  targetStandPerHa?: number | null | undefined;
1654
1771
  coverImage?: string | null | undefined;
1772
+ archivedAt?: string | null | undefined;
1655
1773
  historicalNdvi?: {
1656
1774
  value: number;
1657
1775
  date: string;
@@ -1664,6 +1782,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1664
1782
  harvestDate: string | null;
1665
1783
  yield: number | null;
1666
1784
  yieldUnit: string | null;
1785
+ notes?: string | null | undefined;
1667
1786
  }[] | undefined;
1668
1787
  };
1669
1788
  relationships?: Record<string, unknown> | undefined;
@@ -1719,6 +1838,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1719
1838
  standCountPerHa?: number | null | undefined;
1720
1839
  targetStandPerHa?: number | null | undefined;
1721
1840
  coverImage?: string | null | undefined;
1841
+ archivedAt?: string | null | undefined;
1722
1842
  historicalNdvi?: {
1723
1843
  value: number;
1724
1844
  date: string;
@@ -1731,6 +1851,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1731
1851
  harvestDate: string | null;
1732
1852
  yield: number | null;
1733
1853
  yieldUnit: string | null;
1854
+ notes?: string | null | undefined;
1734
1855
  }[] | undefined;
1735
1856
  };
1736
1857
  relationships?: Record<string, unknown> | undefined;
@@ -1772,6 +1893,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1772
1893
  standCountPerHa?: number | null | undefined;
1773
1894
  targetStandPerHa?: number | null | undefined;
1774
1895
  coverImage?: string | null | undefined;
1896
+ archivedAt?: string | null | undefined;
1775
1897
  historicalNdvi?: {
1776
1898
  value: number;
1777
1899
  date: string;
@@ -1784,6 +1906,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
1784
1906
  harvestDate: string | null;
1785
1907
  yield: number | null;
1786
1908
  yieldUnit: string | null;
1909
+ notes?: string | null | undefined;
1787
1910
  }[] | undefined;
1788
1911
  };
1789
1912
  relationships?: Record<string, unknown> | undefined;
@@ -1832,6 +1955,8 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1832
1955
  /** Optional target stand for gap display (plants per hectare). */
1833
1956
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1834
1957
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1958
+ /** ISO datetime when the field was soft-archived; null = active */
1959
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1835
1960
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
1836
1961
  date: z.ZodString;
1837
1962
  value: z.ZodNumber;
@@ -1850,6 +1975,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1850
1975
  harvestDate: z.ZodNullable<z.ZodString>;
1851
1976
  yield: z.ZodNullable<z.ZodNumber>;
1852
1977
  yieldUnit: z.ZodNullable<z.ZodString>;
1978
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1853
1979
  }, "strip", z.ZodTypeAny, {
1854
1980
  id: string;
1855
1981
  crop: string;
@@ -1858,6 +1984,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1858
1984
  harvestDate: string | null;
1859
1985
  yield: number | null;
1860
1986
  yieldUnit: string | null;
1987
+ notes?: string | null | undefined;
1861
1988
  }, {
1862
1989
  id: string;
1863
1990
  crop: string;
@@ -1866,6 +1993,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1866
1993
  harvestDate: string | null;
1867
1994
  yield: number | null;
1868
1995
  yieldUnit: string | null;
1996
+ notes?: string | null | undefined;
1869
1997
  }>, "many">>;
1870
1998
  } & {
1871
1999
  createdAt: z.ZodString;
@@ -1891,6 +2019,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1891
2019
  standCountPerHa?: number | null | undefined;
1892
2020
  targetStandPerHa?: number | null | undefined;
1893
2021
  coverImage?: string | null | undefined;
2022
+ archivedAt?: string | null | undefined;
1894
2023
  historicalNdvi?: {
1895
2024
  value: number;
1896
2025
  date: string;
@@ -1903,6 +2032,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1903
2032
  harvestDate: string | null;
1904
2033
  yield: number | null;
1905
2034
  yieldUnit: string | null;
2035
+ notes?: string | null | undefined;
1906
2036
  }[] | undefined;
1907
2037
  }, {
1908
2038
  status: "ok" | "alert" | "critical";
@@ -1925,6 +2055,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1925
2055
  standCountPerHa?: number | null | undefined;
1926
2056
  targetStandPerHa?: number | null | undefined;
1927
2057
  coverImage?: string | null | undefined;
2058
+ archivedAt?: string | null | undefined;
1928
2059
  historicalNdvi?: {
1929
2060
  value: number;
1930
2061
  date: string;
@@ -1937,6 +2068,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
1937
2068
  harvestDate: string | null;
1938
2069
  yield: number | null;
1939
2070
  yieldUnit: string | null;
2071
+ notes?: string | null | undefined;
1940
2072
  }[] | undefined;
1941
2073
  }>;
1942
2074
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2161,6 +2293,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2161
2293
  standCountPerHa?: number | null | undefined;
2162
2294
  targetStandPerHa?: number | null | undefined;
2163
2295
  coverImage?: string | null | undefined;
2296
+ archivedAt?: string | null | undefined;
2164
2297
  historicalNdvi?: {
2165
2298
  value: number;
2166
2299
  date: string;
@@ -2173,6 +2306,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2173
2306
  harvestDate: string | null;
2174
2307
  yield: number | null;
2175
2308
  yieldUnit: string | null;
2309
+ notes?: string | null | undefined;
2176
2310
  }[] | undefined;
2177
2311
  };
2178
2312
  relationships?: {
@@ -2236,6 +2370,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2236
2370
  standCountPerHa?: number | null | undefined;
2237
2371
  targetStandPerHa?: number | null | undefined;
2238
2372
  coverImage?: string | null | undefined;
2373
+ archivedAt?: string | null | undefined;
2239
2374
  historicalNdvi?: {
2240
2375
  value: number;
2241
2376
  date: string;
@@ -2248,6 +2383,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2248
2383
  harvestDate: string | null;
2249
2384
  yield: number | null;
2250
2385
  yieldUnit: string | null;
2386
+ notes?: string | null | undefined;
2251
2387
  }[] | undefined;
2252
2388
  };
2253
2389
  relationships?: {
@@ -2337,6 +2473,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2337
2473
  standCountPerHa?: number | null | undefined;
2338
2474
  targetStandPerHa?: number | null | undefined;
2339
2475
  coverImage?: string | null | undefined;
2476
+ archivedAt?: string | null | undefined;
2340
2477
  historicalNdvi?: {
2341
2478
  value: number;
2342
2479
  date: string;
@@ -2349,6 +2486,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2349
2486
  harvestDate: string | null;
2350
2487
  yield: number | null;
2351
2488
  yieldUnit: string | null;
2489
+ notes?: string | null | undefined;
2352
2490
  }[] | undefined;
2353
2491
  };
2354
2492
  relationships?: {
@@ -2424,6 +2562,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2424
2562
  standCountPerHa?: number | null | undefined;
2425
2563
  targetStandPerHa?: number | null | undefined;
2426
2564
  coverImage?: string | null | undefined;
2565
+ archivedAt?: string | null | undefined;
2427
2566
  historicalNdvi?: {
2428
2567
  value: number;
2429
2568
  date: string;
@@ -2436,6 +2575,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
2436
2575
  harvestDate: string | null;
2437
2576
  yield: number | null;
2438
2577
  yieldUnit: string | null;
2578
+ notes?: string | null | undefined;
2439
2579
  }[] | undefined;
2440
2580
  };
2441
2581
  relationships?: {
@@ -2518,6 +2658,8 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2518
2658
  /** Optional target stand for gap display (plants per hectare). */
2519
2659
  targetStandPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2520
2660
  coverImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2661
+ /** ISO datetime when the field was soft-archived; null = active */
2662
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2521
2663
  historicalNdvi: z.ZodOptional<z.ZodArray<z.ZodObject<{
2522
2664
  date: z.ZodString;
2523
2665
  value: z.ZodNumber;
@@ -2536,6 +2678,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2536
2678
  harvestDate: z.ZodNullable<z.ZodString>;
2537
2679
  yield: z.ZodNullable<z.ZodNumber>;
2538
2680
  yieldUnit: z.ZodNullable<z.ZodString>;
2681
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2539
2682
  }, "strip", z.ZodTypeAny, {
2540
2683
  id: string;
2541
2684
  crop: string;
@@ -2544,6 +2687,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2544
2687
  harvestDate: string | null;
2545
2688
  yield: number | null;
2546
2689
  yieldUnit: string | null;
2690
+ notes?: string | null | undefined;
2547
2691
  }, {
2548
2692
  id: string;
2549
2693
  crop: string;
@@ -2552,6 +2696,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2552
2696
  harvestDate: string | null;
2553
2697
  yield: number | null;
2554
2698
  yieldUnit: string | null;
2699
+ notes?: string | null | undefined;
2555
2700
  }>, "many">>;
2556
2701
  } & {
2557
2702
  createdAt: z.ZodString;
@@ -2577,6 +2722,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2577
2722
  standCountPerHa?: number | null | undefined;
2578
2723
  targetStandPerHa?: number | null | undefined;
2579
2724
  coverImage?: string | null | undefined;
2725
+ archivedAt?: string | null | undefined;
2580
2726
  historicalNdvi?: {
2581
2727
  value: number;
2582
2728
  date: string;
@@ -2589,6 +2735,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2589
2735
  harvestDate: string | null;
2590
2736
  yield: number | null;
2591
2737
  yieldUnit: string | null;
2738
+ notes?: string | null | undefined;
2592
2739
  }[] | undefined;
2593
2740
  }, {
2594
2741
  status: "ok" | "alert" | "critical";
@@ -2611,6 +2758,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2611
2758
  standCountPerHa?: number | null | undefined;
2612
2759
  targetStandPerHa?: number | null | undefined;
2613
2760
  coverImage?: string | null | undefined;
2761
+ archivedAt?: string | null | undefined;
2614
2762
  historicalNdvi?: {
2615
2763
  value: number;
2616
2764
  date: string;
@@ -2623,6 +2771,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2623
2771
  harvestDate: string | null;
2624
2772
  yield: number | null;
2625
2773
  yieldUnit: string | null;
2774
+ notes?: string | null | undefined;
2626
2775
  }[] | undefined;
2627
2776
  }>;
2628
2777
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2652,6 +2801,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2652
2801
  standCountPerHa?: number | null | undefined;
2653
2802
  targetStandPerHa?: number | null | undefined;
2654
2803
  coverImage?: string | null | undefined;
2804
+ archivedAt?: string | null | undefined;
2655
2805
  historicalNdvi?: {
2656
2806
  value: number;
2657
2807
  date: string;
@@ -2664,6 +2814,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2664
2814
  harvestDate: string | null;
2665
2815
  yield: number | null;
2666
2816
  yieldUnit: string | null;
2817
+ notes?: string | null | undefined;
2667
2818
  }[] | undefined;
2668
2819
  };
2669
2820
  relationships?: Record<string, unknown> | undefined;
@@ -2693,6 +2844,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2693
2844
  standCountPerHa?: number | null | undefined;
2694
2845
  targetStandPerHa?: number | null | undefined;
2695
2846
  coverImage?: string | null | undefined;
2847
+ archivedAt?: string | null | undefined;
2696
2848
  historicalNdvi?: {
2697
2849
  value: number;
2698
2850
  date: string;
@@ -2705,6 +2857,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2705
2857
  harvestDate: string | null;
2706
2858
  yield: number | null;
2707
2859
  yieldUnit: string | null;
2860
+ notes?: string | null | undefined;
2708
2861
  }[] | undefined;
2709
2862
  };
2710
2863
  relationships?: Record<string, unknown> | undefined;
@@ -2760,6 +2913,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2760
2913
  standCountPerHa?: number | null | undefined;
2761
2914
  targetStandPerHa?: number | null | undefined;
2762
2915
  coverImage?: string | null | undefined;
2916
+ archivedAt?: string | null | undefined;
2763
2917
  historicalNdvi?: {
2764
2918
  value: number;
2765
2919
  date: string;
@@ -2772,6 +2926,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2772
2926
  harvestDate: string | null;
2773
2927
  yield: number | null;
2774
2928
  yieldUnit: string | null;
2929
+ notes?: string | null | undefined;
2775
2930
  }[] | undefined;
2776
2931
  };
2777
2932
  relationships?: Record<string, unknown> | undefined;
@@ -2813,6 +2968,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2813
2968
  standCountPerHa?: number | null | undefined;
2814
2969
  targetStandPerHa?: number | null | undefined;
2815
2970
  coverImage?: string | null | undefined;
2971
+ archivedAt?: string | null | undefined;
2816
2972
  historicalNdvi?: {
2817
2973
  value: number;
2818
2974
  date: string;
@@ -2825,6 +2981,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
2825
2981
  harvestDate: string | null;
2826
2982
  yield: number | null;
2827
2983
  yieldUnit: string | null;
2984
+ notes?: string | null | undefined;
2828
2985
  }[] | undefined;
2829
2986
  };
2830
2987
  relationships?: Record<string, unknown> | undefined;
@@ -2858,6 +3015,10 @@ export type FieldDetailResponse = z.infer<typeof fieldDetailResponseSchema>;
2858
3015
  export type FieldListResponse = z.infer<typeof fieldListResponseSchema>;
2859
3016
  export type RecordPlantingAttributes = z.infer<typeof recordPlantingAttributesSchema>;
2860
3017
  export type RecordPlantingInput = z.infer<typeof recordPlantingSchema>;
3018
+ export type EndSeasonAttributes = z.infer<typeof endSeasonAttributesSchema>;
3019
+ export type EndSeasonInput = z.infer<typeof endSeasonSchema>;
3020
+ export type FieldArchiveInput = z.infer<typeof fieldArchiveSchema>;
3021
+ export type FieldRestoreInput = z.infer<typeof fieldRestoreSchema>;
2861
3022
  export declare const seasonTimelineEventKindSchema: z.ZodEnum<["harvest", "soil-test", "field-activity", "planting"]>;
2862
3023
  export declare const seasonTimelineActivityTypeSchema: z.ZodEnum<["weeding", "fertilizer"]>;
2863
3024
  export declare const seasonTimelineEventAttributesSchema: z.ZodObject<{