@deepintel-ltd/farmpro-contracts 1.15.5 → 1.16.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.
Files changed (51) hide show
  1. package/dist/routes/agent-workflows.routes.d.ts +56 -56
  2. package/dist/routes/farm-updates.routes.d.ts +456 -16
  3. package/dist/routes/farm-updates.routes.d.ts.map +1 -1
  4. package/dist/routes/farm-updates.routes.js +27 -11
  5. package/dist/routes/fertigation.routes.d.ts +160 -160
  6. package/dist/routes/field-activities.routes.d.ts +172 -172
  7. package/dist/routes/field-monitoring.routes.d.ts +50 -50
  8. package/dist/routes/field-observations.routes.d.ts +40 -40
  9. package/dist/routes/fields.routes.d.ts +461 -0
  10. package/dist/routes/fields.routes.d.ts.map +1 -1
  11. package/dist/routes/fields.routes.js +19 -1
  12. package/dist/routes/finance.routes.d.ts +78 -78
  13. package/dist/routes/harvest.routes.d.ts +72 -72
  14. package/dist/routes/inventory.routes.d.ts +42 -42
  15. package/dist/routes/live-monitor.routes.d.ts +6 -6
  16. package/dist/routes/measurements.routes.d.ts +6 -6
  17. package/dist/routes/monitoring-visualization.routes.d.ts +12 -12
  18. package/dist/routes/prescription-maps.routes.d.ts +28 -28
  19. package/dist/routes/soil-tests.routes.d.ts +80 -80
  20. package/dist/routes/suppliers.routes.d.ts +80 -80
  21. package/dist/routes/waybills.routes.d.ts +56 -56
  22. package/dist/routes/weather.routes.d.ts +24 -24
  23. package/dist/routes/yield-prediction.routes.d.ts +36 -36
  24. package/dist/schemas/agent-workflows.schemas.d.ts +64 -64
  25. package/dist/schemas/commodity-deals.schemas.d.ts +18 -5
  26. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  27. package/dist/schemas/commodity-deals.schemas.js +5 -1
  28. package/dist/schemas/farm-updates.schemas.d.ts +249 -0
  29. package/dist/schemas/farm-updates.schemas.d.ts.map +1 -1
  30. package/dist/schemas/farm-updates.schemas.js +18 -0
  31. package/dist/schemas/fertigation.schemas.d.ts +72 -72
  32. package/dist/schemas/field-activities.schemas.d.ts +148 -148
  33. package/dist/schemas/field-monitoring.schemas.d.ts +30 -30
  34. package/dist/schemas/field-observations.schemas.d.ts +34 -34
  35. package/dist/schemas/fields.schemas.d.ts +286 -0
  36. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  37. package/dist/schemas/fields.schemas.js +26 -0
  38. package/dist/schemas/finance.schemas.d.ts +94 -94
  39. package/dist/schemas/harvest.schemas.d.ts +80 -80
  40. package/dist/schemas/inventory.schemas.d.ts +46 -46
  41. package/dist/schemas/live-monitor.schemas.d.ts +10 -10
  42. package/dist/schemas/measurements.schemas.d.ts +6 -6
  43. package/dist/schemas/monitoring-visualization.schemas.d.ts +14 -14
  44. package/dist/schemas/prescription-maps.schemas.d.ts +22 -22
  45. package/dist/schemas/recommendations.schemas.d.ts +6 -6
  46. package/dist/schemas/soil-tests.schemas.d.ts +84 -84
  47. package/dist/schemas/suppliers.schemas.d.ts +84 -84
  48. package/dist/schemas/waybills.schemas.d.ts +48 -48
  49. package/dist/schemas/weather.schemas.d.ts +68 -68
  50. package/dist/schemas/yield-prediction.schemas.d.ts +24 -24
  51. package/package.json +1 -1
@@ -20,10 +20,10 @@ export declare const harvestAttributesSchema: z.ZodObject<{
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
22
  crop: string;
23
- fieldId: string;
24
- unit: string;
25
23
  quantity: number;
24
+ unit: string;
26
25
  qualityGrade: string | null;
26
+ fieldId: string;
27
27
  fieldName?: string | undefined;
28
28
  yieldPerHectare?: number | null | undefined;
29
29
  linkedRevenueId?: string | null | undefined;
@@ -32,10 +32,10 @@ export declare const harvestAttributesSchema: z.ZodObject<{
32
32
  createdAt: string;
33
33
  updatedAt: string;
34
34
  crop: string;
35
- fieldId: string;
36
- unit: string;
37
35
  quantity: number;
36
+ unit: string;
38
37
  qualityGrade: string | null;
38
+ fieldId: string;
39
39
  fieldName?: string | undefined;
40
40
  yieldPerHectare?: number | null | undefined;
41
41
  linkedRevenueId?: string | null | undefined;
@@ -50,16 +50,16 @@ export declare const createHarvestAttributesSchema: z.ZodObject<{
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  date: string;
52
52
  crop: string;
53
- fieldId: string;
54
- unit: string;
55
53
  quantity: number;
54
+ unit: string;
55
+ fieldId: string;
56
56
  qualityGrade?: string | undefined;
57
57
  }, {
58
58
  date: string;
59
59
  crop: string;
60
- fieldId: string;
61
- unit: string;
62
60
  quantity: number;
61
+ unit: string;
62
+ fieldId: string;
63
63
  qualityGrade?: string | undefined;
64
64
  }>;
65
65
  export declare const updateHarvestAttributesSchema: z.ZodObject<{
@@ -72,17 +72,17 @@ export declare const updateHarvestAttributesSchema: z.ZodObject<{
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  date?: string | undefined;
74
74
  crop?: string | undefined;
75
- fieldId?: string | undefined;
76
- unit?: string | undefined;
77
75
  quantity?: number | undefined;
76
+ unit?: string | undefined;
78
77
  qualityGrade?: string | null | undefined;
78
+ fieldId?: string | undefined;
79
79
  }, {
80
80
  date?: string | undefined;
81
81
  crop?: string | undefined;
82
- fieldId?: string | undefined;
83
- unit?: string | undefined;
84
82
  quantity?: number | undefined;
83
+ unit?: string | undefined;
85
84
  qualityGrade?: string | null | undefined;
85
+ fieldId?: string | undefined;
86
86
  }>;
87
87
  export declare const createHarvestSchema: z.ZodObject<{
88
88
  type: z.ZodLiteral<"harvests">;
@@ -96,16 +96,16 @@ export declare const createHarvestSchema: z.ZodObject<{
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  date: string;
98
98
  crop: string;
99
- fieldId: string;
100
- unit: string;
101
99
  quantity: number;
100
+ unit: string;
101
+ fieldId: string;
102
102
  qualityGrade?: string | undefined;
103
103
  }, {
104
104
  date: string;
105
105
  crop: string;
106
- fieldId: string;
107
- unit: string;
108
106
  quantity: number;
107
+ unit: string;
108
+ fieldId: string;
109
109
  qualityGrade?: string | undefined;
110
110
  }>;
111
111
  }, "strip", z.ZodTypeAny, {
@@ -113,9 +113,9 @@ export declare const createHarvestSchema: z.ZodObject<{
113
113
  attributes: {
114
114
  date: string;
115
115
  crop: string;
116
- fieldId: string;
117
- unit: string;
118
116
  quantity: number;
117
+ unit: string;
118
+ fieldId: string;
119
119
  qualityGrade?: string | undefined;
120
120
  };
121
121
  }, {
@@ -123,9 +123,9 @@ export declare const createHarvestSchema: z.ZodObject<{
123
123
  attributes: {
124
124
  date: string;
125
125
  crop: string;
126
- fieldId: string;
127
- unit: string;
128
126
  quantity: number;
127
+ unit: string;
128
+ fieldId: string;
129
129
  qualityGrade?: string | undefined;
130
130
  };
131
131
  }>;
@@ -142,17 +142,17 @@ export declare const updateHarvestSchema: z.ZodObject<{
142
142
  }, "strip", z.ZodTypeAny, {
143
143
  date?: string | undefined;
144
144
  crop?: string | undefined;
145
- fieldId?: string | undefined;
146
- unit?: string | undefined;
147
145
  quantity?: number | undefined;
146
+ unit?: string | undefined;
148
147
  qualityGrade?: string | null | undefined;
148
+ fieldId?: string | undefined;
149
149
  }, {
150
150
  date?: string | undefined;
151
151
  crop?: string | undefined;
152
- fieldId?: string | undefined;
153
- unit?: string | undefined;
154
152
  quantity?: number | undefined;
153
+ unit?: string | undefined;
155
154
  qualityGrade?: string | null | undefined;
155
+ fieldId?: string | undefined;
156
156
  }>;
157
157
  }, "strip", z.ZodTypeAny, {
158
158
  type: "harvests";
@@ -160,10 +160,10 @@ export declare const updateHarvestSchema: z.ZodObject<{
160
160
  attributes: {
161
161
  date?: string | undefined;
162
162
  crop?: string | undefined;
163
- fieldId?: string | undefined;
164
- unit?: string | undefined;
165
163
  quantity?: number | undefined;
164
+ unit?: string | undefined;
166
165
  qualityGrade?: string | null | undefined;
166
+ fieldId?: string | undefined;
167
167
  };
168
168
  }, {
169
169
  type: "harvests";
@@ -171,10 +171,10 @@ export declare const updateHarvestSchema: z.ZodObject<{
171
171
  attributes: {
172
172
  date?: string | undefined;
173
173
  crop?: string | undefined;
174
- fieldId?: string | undefined;
175
- unit?: string | undefined;
176
174
  quantity?: number | undefined;
175
+ unit?: string | undefined;
177
176
  qualityGrade?: string | null | undefined;
177
+ fieldId?: string | undefined;
178
178
  };
179
179
  }>;
180
180
  export declare const harvestResourceSchema: z.ZodObject<{
@@ -198,10 +198,10 @@ export declare const harvestResourceSchema: z.ZodObject<{
198
198
  createdAt: string;
199
199
  updatedAt: string;
200
200
  crop: string;
201
- fieldId: string;
202
- unit: string;
203
201
  quantity: number;
202
+ unit: string;
204
203
  qualityGrade: string | null;
204
+ fieldId: string;
205
205
  fieldName?: string | undefined;
206
206
  yieldPerHectare?: number | null | undefined;
207
207
  linkedRevenueId?: string | null | undefined;
@@ -210,10 +210,10 @@ export declare const harvestResourceSchema: z.ZodObject<{
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
212
  crop: string;
213
- fieldId: string;
214
- unit: string;
215
213
  quantity: number;
214
+ unit: string;
216
215
  qualityGrade: string | null;
216
+ fieldId: string;
217
217
  fieldName?: string | undefined;
218
218
  yieldPerHectare?: number | null | undefined;
219
219
  linkedRevenueId?: string | null | undefined;
@@ -229,10 +229,10 @@ export declare const harvestResourceSchema: z.ZodObject<{
229
229
  createdAt: string;
230
230
  updatedAt: string;
231
231
  crop: string;
232
- fieldId: string;
233
- unit: string;
234
232
  quantity: number;
233
+ unit: string;
235
234
  qualityGrade: string | null;
235
+ fieldId: string;
236
236
  fieldName?: string | undefined;
237
237
  yieldPerHectare?: number | null | undefined;
238
238
  linkedRevenueId?: string | null | undefined;
@@ -248,10 +248,10 @@ export declare const harvestResourceSchema: z.ZodObject<{
248
248
  createdAt: string;
249
249
  updatedAt: string;
250
250
  crop: string;
251
- fieldId: string;
252
- unit: string;
253
251
  quantity: number;
252
+ unit: string;
254
253
  qualityGrade: string | null;
254
+ fieldId: string;
255
255
  fieldName?: string | undefined;
256
256
  yieldPerHectare?: number | null | undefined;
257
257
  linkedRevenueId?: string | null | undefined;
@@ -281,10 +281,10 @@ export declare const harvestDetailResourceSchema: z.ZodObject<{
281
281
  createdAt: string;
282
282
  updatedAt: string;
283
283
  crop: string;
284
- fieldId: string;
285
- unit: string;
286
284
  quantity: number;
285
+ unit: string;
287
286
  qualityGrade: string | null;
287
+ fieldId: string;
288
288
  fieldName?: string | undefined;
289
289
  yieldPerHectare?: number | null | undefined;
290
290
  linkedRevenueId?: string | null | undefined;
@@ -293,10 +293,10 @@ export declare const harvestDetailResourceSchema: z.ZodObject<{
293
293
  createdAt: string;
294
294
  updatedAt: string;
295
295
  crop: string;
296
- fieldId: string;
297
- unit: string;
298
296
  quantity: number;
297
+ unit: string;
299
298
  qualityGrade: string | null;
299
+ fieldId: string;
300
300
  fieldName?: string | undefined;
301
301
  yieldPerHectare?: number | null | undefined;
302
302
  linkedRevenueId?: string | null | undefined;
@@ -370,10 +370,10 @@ export declare const harvestDetailResourceSchema: z.ZodObject<{
370
370
  createdAt: string;
371
371
  updatedAt: string;
372
372
  crop: string;
373
- fieldId: string;
374
- unit: string;
375
373
  quantity: number;
374
+ unit: string;
376
375
  qualityGrade: string | null;
376
+ fieldId: string;
377
377
  fieldName?: string | undefined;
378
378
  yieldPerHectare?: number | null | undefined;
379
379
  linkedRevenueId?: string | null | undefined;
@@ -400,10 +400,10 @@ export declare const harvestDetailResourceSchema: z.ZodObject<{
400
400
  createdAt: string;
401
401
  updatedAt: string;
402
402
  crop: string;
403
- fieldId: string;
404
- unit: string;
405
403
  quantity: number;
404
+ unit: string;
406
405
  qualityGrade: string | null;
406
+ fieldId: string;
407
407
  fieldName?: string | undefined;
408
408
  yieldPerHectare?: number | null | undefined;
409
409
  linkedRevenueId?: string | null | undefined;
@@ -445,10 +445,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
445
445
  createdAt: string;
446
446
  updatedAt: string;
447
447
  crop: string;
448
- fieldId: string;
449
- unit: string;
450
448
  quantity: number;
449
+ unit: string;
451
450
  qualityGrade: string | null;
451
+ fieldId: string;
452
452
  fieldName?: string | undefined;
453
453
  yieldPerHectare?: number | null | undefined;
454
454
  linkedRevenueId?: string | null | undefined;
@@ -457,10 +457,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
457
457
  createdAt: string;
458
458
  updatedAt: string;
459
459
  crop: string;
460
- fieldId: string;
461
- unit: string;
462
460
  quantity: number;
461
+ unit: string;
463
462
  qualityGrade: string | null;
463
+ fieldId: string;
464
464
  fieldName?: string | undefined;
465
465
  yieldPerHectare?: number | null | undefined;
466
466
  linkedRevenueId?: string | null | undefined;
@@ -476,10 +476,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
476
476
  createdAt: string;
477
477
  updatedAt: string;
478
478
  crop: string;
479
- fieldId: string;
480
- unit: string;
481
479
  quantity: number;
480
+ unit: string;
482
481
  qualityGrade: string | null;
482
+ fieldId: string;
483
483
  fieldName?: string | undefined;
484
484
  yieldPerHectare?: number | null | undefined;
485
485
  linkedRevenueId?: string | null | undefined;
@@ -495,10 +495,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
495
495
  createdAt: string;
496
496
  updatedAt: string;
497
497
  crop: string;
498
- fieldId: string;
499
- unit: string;
500
498
  quantity: number;
499
+ unit: string;
501
500
  qualityGrade: string | null;
501
+ fieldId: string;
502
502
  fieldName?: string | undefined;
503
503
  yieldPerHectare?: number | null | undefined;
504
504
  linkedRevenueId?: string | null | undefined;
@@ -540,10 +540,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
540
540
  createdAt: string;
541
541
  updatedAt: string;
542
542
  crop: string;
543
- fieldId: string;
544
- unit: string;
545
543
  quantity: number;
544
+ unit: string;
546
545
  qualityGrade: string | null;
546
+ fieldId: string;
547
547
  fieldName?: string | undefined;
548
548
  yieldPerHectare?: number | null | undefined;
549
549
  linkedRevenueId?: string | null | undefined;
@@ -571,10 +571,10 @@ export declare const harvestResponseSchema: z.ZodObject<{
571
571
  createdAt: string;
572
572
  updatedAt: string;
573
573
  crop: string;
574
- fieldId: string;
575
- unit: string;
576
574
  quantity: number;
575
+ unit: string;
577
576
  qualityGrade: string | null;
577
+ fieldId: string;
578
578
  fieldName?: string | undefined;
579
579
  yieldPerHectare?: number | null | undefined;
580
580
  linkedRevenueId?: string | null | undefined;
@@ -616,10 +616,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
616
616
  createdAt: string;
617
617
  updatedAt: string;
618
618
  crop: string;
619
- fieldId: string;
620
- unit: string;
621
619
  quantity: number;
620
+ unit: string;
622
621
  qualityGrade: string | null;
622
+ fieldId: string;
623
623
  fieldName?: string | undefined;
624
624
  yieldPerHectare?: number | null | undefined;
625
625
  linkedRevenueId?: string | null | undefined;
@@ -628,10 +628,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
628
628
  createdAt: string;
629
629
  updatedAt: string;
630
630
  crop: string;
631
- fieldId: string;
632
- unit: string;
633
631
  quantity: number;
632
+ unit: string;
634
633
  qualityGrade: string | null;
634
+ fieldId: string;
635
635
  fieldName?: string | undefined;
636
636
  yieldPerHectare?: number | null | undefined;
637
637
  linkedRevenueId?: string | null | undefined;
@@ -705,10 +705,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
705
705
  createdAt: string;
706
706
  updatedAt: string;
707
707
  crop: string;
708
- fieldId: string;
709
- unit: string;
710
708
  quantity: number;
709
+ unit: string;
711
710
  qualityGrade: string | null;
711
+ fieldId: string;
712
712
  fieldName?: string | undefined;
713
713
  yieldPerHectare?: number | null | undefined;
714
714
  linkedRevenueId?: string | null | undefined;
@@ -735,10 +735,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
735
735
  createdAt: string;
736
736
  updatedAt: string;
737
737
  crop: string;
738
- fieldId: string;
739
- unit: string;
740
738
  quantity: number;
739
+ unit: string;
741
740
  qualityGrade: string | null;
741
+ fieldId: string;
742
742
  fieldName?: string | undefined;
743
743
  yieldPerHectare?: number | null | undefined;
744
744
  linkedRevenueId?: string | null | undefined;
@@ -791,10 +791,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
791
791
  createdAt: string;
792
792
  updatedAt: string;
793
793
  crop: string;
794
- fieldId: string;
795
- unit: string;
796
794
  quantity: number;
795
+ unit: string;
797
796
  qualityGrade: string | null;
797
+ fieldId: string;
798
798
  fieldName?: string | undefined;
799
799
  yieldPerHectare?: number | null | undefined;
800
800
  linkedRevenueId?: string | null | undefined;
@@ -833,10 +833,10 @@ export declare const harvestDetailResponseSchema: z.ZodObject<{
833
833
  createdAt: string;
834
834
  updatedAt: string;
835
835
  crop: string;
836
- fieldId: string;
837
- unit: string;
838
836
  quantity: number;
837
+ unit: string;
839
838
  qualityGrade: string | null;
839
+ fieldId: string;
840
840
  fieldName?: string | undefined;
841
841
  yieldPerHectare?: number | null | undefined;
842
842
  linkedRevenueId?: string | null | undefined;
@@ -889,10 +889,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
889
889
  createdAt: string;
890
890
  updatedAt: string;
891
891
  crop: string;
892
- fieldId: string;
893
- unit: string;
894
892
  quantity: number;
893
+ unit: string;
895
894
  qualityGrade: string | null;
895
+ fieldId: string;
896
896
  fieldName?: string | undefined;
897
897
  yieldPerHectare?: number | null | undefined;
898
898
  linkedRevenueId?: string | null | undefined;
@@ -901,10 +901,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
901
901
  createdAt: string;
902
902
  updatedAt: string;
903
903
  crop: string;
904
- fieldId: string;
905
- unit: string;
906
904
  quantity: number;
905
+ unit: string;
907
906
  qualityGrade: string | null;
907
+ fieldId: string;
908
908
  fieldName?: string | undefined;
909
909
  yieldPerHectare?: number | null | undefined;
910
910
  linkedRevenueId?: string | null | undefined;
@@ -920,10 +920,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
920
920
  createdAt: string;
921
921
  updatedAt: string;
922
922
  crop: string;
923
- fieldId: string;
924
- unit: string;
925
923
  quantity: number;
924
+ unit: string;
926
925
  qualityGrade: string | null;
926
+ fieldId: string;
927
927
  fieldName?: string | undefined;
928
928
  yieldPerHectare?: number | null | undefined;
929
929
  linkedRevenueId?: string | null | undefined;
@@ -939,10 +939,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
939
939
  createdAt: string;
940
940
  updatedAt: string;
941
941
  crop: string;
942
- fieldId: string;
943
- unit: string;
944
942
  quantity: number;
943
+ unit: string;
945
944
  qualityGrade: string | null;
945
+ fieldId: string;
946
946
  fieldName?: string | undefined;
947
947
  yieldPerHectare?: number | null | undefined;
948
948
  linkedRevenueId?: string | null | undefined;
@@ -984,10 +984,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
984
984
  createdAt: string;
985
985
  updatedAt: string;
986
986
  crop: string;
987
- fieldId: string;
988
- unit: string;
989
987
  quantity: number;
988
+ unit: string;
990
989
  qualityGrade: string | null;
990
+ fieldId: string;
991
991
  fieldName?: string | undefined;
992
992
  yieldPerHectare?: number | null | undefined;
993
993
  linkedRevenueId?: string | null | undefined;
@@ -1015,10 +1015,10 @@ export declare const harvestListResponseSchema: z.ZodObject<{
1015
1015
  createdAt: string;
1016
1016
  updatedAt: string;
1017
1017
  crop: string;
1018
- fieldId: string;
1019
- unit: string;
1020
1018
  quantity: number;
1019
+ unit: string;
1021
1020
  qualityGrade: string | null;
1021
+ fieldId: string;
1022
1022
  fieldName?: string | undefined;
1023
1023
  yieldPerHectare?: number | null | undefined;
1024
1024
  linkedRevenueId?: string | null | undefined;