@deepintel-ltd/farmpro-contracts 1.3.1 → 1.3.4

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 (55) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +10 -1
  4. package/dist/routes/admin.routes.d.ts +747 -0
  5. package/dist/routes/admin.routes.d.ts.map +1 -0
  6. package/dist/routes/admin.routes.js +26 -0
  7. package/dist/routes/agent-workflows.routes.d.ts +2900 -0
  8. package/dist/routes/agent-workflows.routes.d.ts.map +1 -0
  9. package/dist/routes/agent-workflows.routes.js +160 -0
  10. package/dist/routes/documents.routes.d.ts +417 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -1
  12. package/dist/routes/documents.routes.js +16 -0
  13. package/dist/routes/field-monitoring.routes.d.ts +568 -23
  14. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  15. package/dist/routes/field-monitoring.routes.js +64 -0
  16. package/dist/routes/field-observations.routes.d.ts +130 -58
  17. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  18. package/dist/routes/health.routes.d.ts +317 -0
  19. package/dist/routes/health.routes.d.ts.map +1 -0
  20. package/dist/routes/health.routes.js +18 -0
  21. package/dist/routes/index.d.ts +9 -0
  22. package/dist/routes/index.d.ts.map +1 -1
  23. package/dist/routes/index.js +6 -0
  24. package/dist/routes/tasks.routes.d.ts +408 -0
  25. package/dist/routes/tasks.routes.d.ts.map +1 -1
  26. package/dist/routes/weather.routes.d.ts +264 -17
  27. package/dist/routes/weather.routes.d.ts.map +1 -1
  28. package/dist/schemas/admin.schemas.d.ts +1063 -0
  29. package/dist/schemas/admin.schemas.d.ts.map +1 -0
  30. package/dist/schemas/admin.schemas.js +63 -0
  31. package/dist/schemas/agent-workflows.schemas.d.ts +2399 -0
  32. package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -0
  33. package/dist/schemas/agent-workflows.schemas.js +70 -0
  34. package/dist/schemas/documents.schemas.d.ts +202 -0
  35. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  36. package/dist/schemas/documents.schemas.js +10 -1
  37. package/dist/schemas/field-monitoring.schemas.d.ts +215 -9
  38. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  39. package/dist/schemas/field-monitoring.schemas.js +26 -2
  40. package/dist/schemas/field-observations.schemas.d.ts +100 -40
  41. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  42. package/dist/schemas/field-observations.schemas.js +2 -24
  43. package/dist/schemas/health.schemas.d.ts +176 -0
  44. package/dist/schemas/health.schemas.d.ts.map +1 -0
  45. package/dist/schemas/health.schemas.js +26 -0
  46. package/dist/schemas/recommendations.schemas.d.ts +112 -0
  47. package/dist/schemas/recommendations.schemas.d.ts.map +1 -0
  48. package/dist/schemas/recommendations.schemas.js +32 -0
  49. package/dist/schemas/tasks.schemas.d.ts +344 -0
  50. package/dist/schemas/tasks.schemas.d.ts.map +1 -1
  51. package/dist/schemas/tasks.schemas.js +9 -0
  52. package/dist/schemas/weather.schemas.d.ts +780 -44
  53. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  54. package/dist/schemas/weather.schemas.js +2 -1
  55. package/package.json +1 -1
@@ -49,23 +49,144 @@ export declare const weatherAlertSchema: z.ZodObject<{
49
49
  message: z.ZodString;
50
50
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
51
  date: z.ZodString;
52
- recommendation: z.ZodOptional<z.ZodString>;
52
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ priority: z.ZodNumber;
54
+ action: z.ZodString;
55
+ details: z.ZodString;
56
+ timing: z.ZodString;
57
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
58
+ confidence: z.ZodOptional<z.ZodNumber>;
59
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ inventoryItemId: z.ZodOptional<z.ZodString>;
61
+ name: z.ZodString;
62
+ quantity: z.ZodNumber;
63
+ unit: z.ZodString;
64
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
65
+ totalCost: z.ZodOptional<z.ZodNumber>;
66
+ availability: z.ZodOptional<z.ZodString>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ name: string;
69
+ unit: string;
70
+ quantity: number;
71
+ inventoryItemId?: string | undefined;
72
+ totalCost?: number | undefined;
73
+ costPerUnit?: number | undefined;
74
+ availability?: string | undefined;
75
+ }, {
76
+ name: string;
77
+ unit: string;
78
+ quantity: number;
79
+ inventoryItemId?: string | undefined;
80
+ totalCost?: number | undefined;
81
+ costPerUnit?: number | undefined;
82
+ availability?: string | undefined;
83
+ }>, "many">>;
84
+ applicationMethod: z.ZodOptional<z.ZodString>;
85
+ expectedOutcome: z.ZodOptional<z.ZodString>;
86
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ estimatedTime: z.ZodOptional<z.ZodString>;
88
+ riskLevel: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ priority: number;
91
+ action: string;
92
+ details: string;
93
+ timing: string;
94
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
95
+ confidence?: number | undefined;
96
+ materials?: {
97
+ name: string;
98
+ unit: string;
99
+ quantity: number;
100
+ inventoryItemId?: string | undefined;
101
+ totalCost?: number | undefined;
102
+ costPerUnit?: number | undefined;
103
+ availability?: string | undefined;
104
+ }[] | undefined;
105
+ applicationMethod?: string | undefined;
106
+ expectedOutcome?: string | undefined;
107
+ preventiveMeasures?: string[] | undefined;
108
+ estimatedTime?: string | undefined;
109
+ riskLevel?: string | undefined;
110
+ }, {
111
+ priority: number;
112
+ action: string;
113
+ details: string;
114
+ timing: string;
115
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
116
+ confidence?: number | undefined;
117
+ materials?: {
118
+ name: string;
119
+ unit: string;
120
+ quantity: number;
121
+ inventoryItemId?: string | undefined;
122
+ totalCost?: number | undefined;
123
+ costPerUnit?: number | undefined;
124
+ availability?: string | undefined;
125
+ }[] | undefined;
126
+ applicationMethod?: string | undefined;
127
+ expectedOutcome?: string | undefined;
128
+ preventiveMeasures?: string[] | undefined;
129
+ estimatedTime?: string | undefined;
130
+ riskLevel?: string | undefined;
131
+ }>, "many">>;
53
132
  }, "strip", z.ZodTypeAny, {
54
133
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
55
134
  message: string;
56
135
  date: string;
57
136
  id: string;
58
- severity: "high" | "medium" | "low";
137
+ severity: "low" | "medium" | "high";
59
138
  fieldId?: string | null | undefined;
60
- recommendation?: string | undefined;
139
+ recommendations?: {
140
+ priority: number;
141
+ action: string;
142
+ details: string;
143
+ timing: string;
144
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
145
+ confidence?: number | undefined;
146
+ materials?: {
147
+ name: string;
148
+ unit: string;
149
+ quantity: number;
150
+ inventoryItemId?: string | undefined;
151
+ totalCost?: number | undefined;
152
+ costPerUnit?: number | undefined;
153
+ availability?: string | undefined;
154
+ }[] | undefined;
155
+ applicationMethod?: string | undefined;
156
+ expectedOutcome?: string | undefined;
157
+ preventiveMeasures?: string[] | undefined;
158
+ estimatedTime?: string | undefined;
159
+ riskLevel?: string | undefined;
160
+ }[] | undefined;
61
161
  }, {
62
162
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
63
163
  message: string;
64
164
  date: string;
65
165
  id: string;
66
- severity: "high" | "medium" | "low";
166
+ severity: "low" | "medium" | "high";
67
167
  fieldId?: string | null | undefined;
68
- recommendation?: string | undefined;
168
+ recommendations?: {
169
+ priority: number;
170
+ action: string;
171
+ details: string;
172
+ timing: string;
173
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
174
+ confidence?: number | undefined;
175
+ materials?: {
176
+ name: string;
177
+ unit: string;
178
+ quantity: number;
179
+ inventoryItemId?: string | undefined;
180
+ totalCost?: number | undefined;
181
+ costPerUnit?: number | undefined;
182
+ availability?: string | undefined;
183
+ }[] | undefined;
184
+ applicationMethod?: string | undefined;
185
+ expectedOutcome?: string | undefined;
186
+ preventiveMeasures?: string[] | undefined;
187
+ estimatedTime?: string | undefined;
188
+ riskLevel?: string | undefined;
189
+ }[] | undefined;
69
190
  }>;
70
191
  export declare const weatherAttributesSchema: z.ZodObject<{
71
192
  farmId: z.ZodString;
@@ -114,23 +235,144 @@ export declare const weatherAttributesSchema: z.ZodObject<{
114
235
  message: z.ZodString;
115
236
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
237
  date: z.ZodString;
117
- recommendation: z.ZodOptional<z.ZodString>;
238
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
+ priority: z.ZodNumber;
240
+ action: z.ZodString;
241
+ details: z.ZodString;
242
+ timing: z.ZodString;
243
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
244
+ confidence: z.ZodOptional<z.ZodNumber>;
245
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ inventoryItemId: z.ZodOptional<z.ZodString>;
247
+ name: z.ZodString;
248
+ quantity: z.ZodNumber;
249
+ unit: z.ZodString;
250
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
251
+ totalCost: z.ZodOptional<z.ZodNumber>;
252
+ availability: z.ZodOptional<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ name: string;
255
+ unit: string;
256
+ quantity: number;
257
+ inventoryItemId?: string | undefined;
258
+ totalCost?: number | undefined;
259
+ costPerUnit?: number | undefined;
260
+ availability?: string | undefined;
261
+ }, {
262
+ name: string;
263
+ unit: string;
264
+ quantity: number;
265
+ inventoryItemId?: string | undefined;
266
+ totalCost?: number | undefined;
267
+ costPerUnit?: number | undefined;
268
+ availability?: string | undefined;
269
+ }>, "many">>;
270
+ applicationMethod: z.ZodOptional<z.ZodString>;
271
+ expectedOutcome: z.ZodOptional<z.ZodString>;
272
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
+ estimatedTime: z.ZodOptional<z.ZodString>;
274
+ riskLevel: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ priority: number;
277
+ action: string;
278
+ details: string;
279
+ timing: string;
280
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
281
+ confidence?: number | undefined;
282
+ materials?: {
283
+ name: string;
284
+ unit: string;
285
+ quantity: number;
286
+ inventoryItemId?: string | undefined;
287
+ totalCost?: number | undefined;
288
+ costPerUnit?: number | undefined;
289
+ availability?: string | undefined;
290
+ }[] | undefined;
291
+ applicationMethod?: string | undefined;
292
+ expectedOutcome?: string | undefined;
293
+ preventiveMeasures?: string[] | undefined;
294
+ estimatedTime?: string | undefined;
295
+ riskLevel?: string | undefined;
296
+ }, {
297
+ priority: number;
298
+ action: string;
299
+ details: string;
300
+ timing: string;
301
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
302
+ confidence?: number | undefined;
303
+ materials?: {
304
+ name: string;
305
+ unit: string;
306
+ quantity: number;
307
+ inventoryItemId?: string | undefined;
308
+ totalCost?: number | undefined;
309
+ costPerUnit?: number | undefined;
310
+ availability?: string | undefined;
311
+ }[] | undefined;
312
+ applicationMethod?: string | undefined;
313
+ expectedOutcome?: string | undefined;
314
+ preventiveMeasures?: string[] | undefined;
315
+ estimatedTime?: string | undefined;
316
+ riskLevel?: string | undefined;
317
+ }>, "many">>;
118
318
  }, "strip", z.ZodTypeAny, {
119
319
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
120
320
  message: string;
121
321
  date: string;
122
322
  id: string;
123
- severity: "high" | "medium" | "low";
323
+ severity: "low" | "medium" | "high";
124
324
  fieldId?: string | null | undefined;
125
- recommendation?: string | undefined;
325
+ recommendations?: {
326
+ priority: number;
327
+ action: string;
328
+ details: string;
329
+ timing: string;
330
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
331
+ confidence?: number | undefined;
332
+ materials?: {
333
+ name: string;
334
+ unit: string;
335
+ quantity: number;
336
+ inventoryItemId?: string | undefined;
337
+ totalCost?: number | undefined;
338
+ costPerUnit?: number | undefined;
339
+ availability?: string | undefined;
340
+ }[] | undefined;
341
+ applicationMethod?: string | undefined;
342
+ expectedOutcome?: string | undefined;
343
+ preventiveMeasures?: string[] | undefined;
344
+ estimatedTime?: string | undefined;
345
+ riskLevel?: string | undefined;
346
+ }[] | undefined;
126
347
  }, {
127
348
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
128
349
  message: string;
129
350
  date: string;
130
351
  id: string;
131
- severity: "high" | "medium" | "low";
352
+ severity: "low" | "medium" | "high";
132
353
  fieldId?: string | null | undefined;
133
- recommendation?: string | undefined;
354
+ recommendations?: {
355
+ priority: number;
356
+ action: string;
357
+ details: string;
358
+ timing: string;
359
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
360
+ confidence?: number | undefined;
361
+ materials?: {
362
+ name: string;
363
+ unit: string;
364
+ quantity: number;
365
+ inventoryItemId?: string | undefined;
366
+ totalCost?: number | undefined;
367
+ costPerUnit?: number | undefined;
368
+ availability?: string | undefined;
369
+ }[] | undefined;
370
+ applicationMethod?: string | undefined;
371
+ expectedOutcome?: string | undefined;
372
+ preventiveMeasures?: string[] | undefined;
373
+ estimatedTime?: string | undefined;
374
+ riskLevel?: string | undefined;
375
+ }[] | undefined;
134
376
  }>, "many">>;
135
377
  }, "strip", z.ZodTypeAny, {
136
378
  farmId: string;
@@ -153,9 +395,30 @@ export declare const weatherAttributesSchema: z.ZodObject<{
153
395
  message: string;
154
396
  date: string;
155
397
  id: string;
156
- severity: "high" | "medium" | "low";
398
+ severity: "low" | "medium" | "high";
157
399
  fieldId?: string | null | undefined;
158
- recommendation?: string | undefined;
400
+ recommendations?: {
401
+ priority: number;
402
+ action: string;
403
+ details: string;
404
+ timing: string;
405
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
406
+ confidence?: number | undefined;
407
+ materials?: {
408
+ name: string;
409
+ unit: string;
410
+ quantity: number;
411
+ inventoryItemId?: string | undefined;
412
+ totalCost?: number | undefined;
413
+ costPerUnit?: number | undefined;
414
+ availability?: string | undefined;
415
+ }[] | undefined;
416
+ applicationMethod?: string | undefined;
417
+ expectedOutcome?: string | undefined;
418
+ preventiveMeasures?: string[] | undefined;
419
+ estimatedTime?: string | undefined;
420
+ riskLevel?: string | undefined;
421
+ }[] | undefined;
159
422
  }[] | undefined;
160
423
  }, {
161
424
  farmId: string;
@@ -178,9 +441,30 @@ export declare const weatherAttributesSchema: z.ZodObject<{
178
441
  message: string;
179
442
  date: string;
180
443
  id: string;
181
- severity: "high" | "medium" | "low";
444
+ severity: "low" | "medium" | "high";
182
445
  fieldId?: string | null | undefined;
183
- recommendation?: string | undefined;
446
+ recommendations?: {
447
+ priority: number;
448
+ action: string;
449
+ details: string;
450
+ timing: string;
451
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
452
+ confidence?: number | undefined;
453
+ materials?: {
454
+ name: string;
455
+ unit: string;
456
+ quantity: number;
457
+ inventoryItemId?: string | undefined;
458
+ totalCost?: number | undefined;
459
+ costPerUnit?: number | undefined;
460
+ availability?: string | undefined;
461
+ }[] | undefined;
462
+ applicationMethod?: string | undefined;
463
+ expectedOutcome?: string | undefined;
464
+ preventiveMeasures?: string[] | undefined;
465
+ estimatedTime?: string | undefined;
466
+ riskLevel?: string | undefined;
467
+ }[] | undefined;
184
468
  }[] | undefined;
185
469
  }>;
186
470
  export declare const weatherResourceSchema: z.ZodObject<{
@@ -233,23 +517,144 @@ export declare const weatherResourceSchema: z.ZodObject<{
233
517
  message: z.ZodString;
234
518
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
519
  date: z.ZodString;
236
- recommendation: z.ZodOptional<z.ZodString>;
520
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
+ priority: z.ZodNumber;
522
+ action: z.ZodString;
523
+ details: z.ZodString;
524
+ timing: z.ZodString;
525
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
526
+ confidence: z.ZodOptional<z.ZodNumber>;
527
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
528
+ inventoryItemId: z.ZodOptional<z.ZodString>;
529
+ name: z.ZodString;
530
+ quantity: z.ZodNumber;
531
+ unit: z.ZodString;
532
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
533
+ totalCost: z.ZodOptional<z.ZodNumber>;
534
+ availability: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ name: string;
537
+ unit: string;
538
+ quantity: number;
539
+ inventoryItemId?: string | undefined;
540
+ totalCost?: number | undefined;
541
+ costPerUnit?: number | undefined;
542
+ availability?: string | undefined;
543
+ }, {
544
+ name: string;
545
+ unit: string;
546
+ quantity: number;
547
+ inventoryItemId?: string | undefined;
548
+ totalCost?: number | undefined;
549
+ costPerUnit?: number | undefined;
550
+ availability?: string | undefined;
551
+ }>, "many">>;
552
+ applicationMethod: z.ZodOptional<z.ZodString>;
553
+ expectedOutcome: z.ZodOptional<z.ZodString>;
554
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
555
+ estimatedTime: z.ZodOptional<z.ZodString>;
556
+ riskLevel: z.ZodOptional<z.ZodString>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ priority: number;
559
+ action: string;
560
+ details: string;
561
+ timing: string;
562
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
563
+ confidence?: number | undefined;
564
+ materials?: {
565
+ name: string;
566
+ unit: string;
567
+ quantity: number;
568
+ inventoryItemId?: string | undefined;
569
+ totalCost?: number | undefined;
570
+ costPerUnit?: number | undefined;
571
+ availability?: string | undefined;
572
+ }[] | undefined;
573
+ applicationMethod?: string | undefined;
574
+ expectedOutcome?: string | undefined;
575
+ preventiveMeasures?: string[] | undefined;
576
+ estimatedTime?: string | undefined;
577
+ riskLevel?: string | undefined;
578
+ }, {
579
+ priority: number;
580
+ action: string;
581
+ details: string;
582
+ timing: string;
583
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
584
+ confidence?: number | undefined;
585
+ materials?: {
586
+ name: string;
587
+ unit: string;
588
+ quantity: number;
589
+ inventoryItemId?: string | undefined;
590
+ totalCost?: number | undefined;
591
+ costPerUnit?: number | undefined;
592
+ availability?: string | undefined;
593
+ }[] | undefined;
594
+ applicationMethod?: string | undefined;
595
+ expectedOutcome?: string | undefined;
596
+ preventiveMeasures?: string[] | undefined;
597
+ estimatedTime?: string | undefined;
598
+ riskLevel?: string | undefined;
599
+ }>, "many">>;
237
600
  }, "strip", z.ZodTypeAny, {
238
601
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
239
602
  message: string;
240
603
  date: string;
241
604
  id: string;
242
- severity: "high" | "medium" | "low";
605
+ severity: "low" | "medium" | "high";
243
606
  fieldId?: string | null | undefined;
244
- recommendation?: string | undefined;
607
+ recommendations?: {
608
+ priority: number;
609
+ action: string;
610
+ details: string;
611
+ timing: string;
612
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
613
+ confidence?: number | undefined;
614
+ materials?: {
615
+ name: string;
616
+ unit: string;
617
+ quantity: number;
618
+ inventoryItemId?: string | undefined;
619
+ totalCost?: number | undefined;
620
+ costPerUnit?: number | undefined;
621
+ availability?: string | undefined;
622
+ }[] | undefined;
623
+ applicationMethod?: string | undefined;
624
+ expectedOutcome?: string | undefined;
625
+ preventiveMeasures?: string[] | undefined;
626
+ estimatedTime?: string | undefined;
627
+ riskLevel?: string | undefined;
628
+ }[] | undefined;
245
629
  }, {
246
630
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
247
631
  message: string;
248
632
  date: string;
249
633
  id: string;
250
- severity: "high" | "medium" | "low";
634
+ severity: "low" | "medium" | "high";
251
635
  fieldId?: string | null | undefined;
252
- recommendation?: string | undefined;
636
+ recommendations?: {
637
+ priority: number;
638
+ action: string;
639
+ details: string;
640
+ timing: string;
641
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
642
+ confidence?: number | undefined;
643
+ materials?: {
644
+ name: string;
645
+ unit: string;
646
+ quantity: number;
647
+ inventoryItemId?: string | undefined;
648
+ totalCost?: number | undefined;
649
+ costPerUnit?: number | undefined;
650
+ availability?: string | undefined;
651
+ }[] | undefined;
652
+ applicationMethod?: string | undefined;
653
+ expectedOutcome?: string | undefined;
654
+ preventiveMeasures?: string[] | undefined;
655
+ estimatedTime?: string | undefined;
656
+ riskLevel?: string | undefined;
657
+ }[] | undefined;
253
658
  }>, "many">>;
254
659
  }, "strip", z.ZodTypeAny, {
255
660
  farmId: string;
@@ -272,9 +677,30 @@ export declare const weatherResourceSchema: z.ZodObject<{
272
677
  message: string;
273
678
  date: string;
274
679
  id: string;
275
- severity: "high" | "medium" | "low";
680
+ severity: "low" | "medium" | "high";
276
681
  fieldId?: string | null | undefined;
277
- recommendation?: string | undefined;
682
+ recommendations?: {
683
+ priority: number;
684
+ action: string;
685
+ details: string;
686
+ timing: string;
687
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
688
+ confidence?: number | undefined;
689
+ materials?: {
690
+ name: string;
691
+ unit: string;
692
+ quantity: number;
693
+ inventoryItemId?: string | undefined;
694
+ totalCost?: number | undefined;
695
+ costPerUnit?: number | undefined;
696
+ availability?: string | undefined;
697
+ }[] | undefined;
698
+ applicationMethod?: string | undefined;
699
+ expectedOutcome?: string | undefined;
700
+ preventiveMeasures?: string[] | undefined;
701
+ estimatedTime?: string | undefined;
702
+ riskLevel?: string | undefined;
703
+ }[] | undefined;
278
704
  }[] | undefined;
279
705
  }, {
280
706
  farmId: string;
@@ -297,9 +723,30 @@ export declare const weatherResourceSchema: z.ZodObject<{
297
723
  message: string;
298
724
  date: string;
299
725
  id: string;
300
- severity: "high" | "medium" | "low";
726
+ severity: "low" | "medium" | "high";
301
727
  fieldId?: string | null | undefined;
302
- recommendation?: string | undefined;
728
+ recommendations?: {
729
+ priority: number;
730
+ action: string;
731
+ details: string;
732
+ timing: string;
733
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
734
+ confidence?: number | undefined;
735
+ materials?: {
736
+ name: string;
737
+ unit: string;
738
+ quantity: number;
739
+ inventoryItemId?: string | undefined;
740
+ totalCost?: number | undefined;
741
+ costPerUnit?: number | undefined;
742
+ availability?: string | undefined;
743
+ }[] | undefined;
744
+ applicationMethod?: string | undefined;
745
+ expectedOutcome?: string | undefined;
746
+ preventiveMeasures?: string[] | undefined;
747
+ estimatedTime?: string | undefined;
748
+ riskLevel?: string | undefined;
749
+ }[] | undefined;
303
750
  }[] | undefined;
304
751
  }>;
305
752
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -329,9 +776,30 @@ export declare const weatherResourceSchema: z.ZodObject<{
329
776
  message: string;
330
777
  date: string;
331
778
  id: string;
332
- severity: "high" | "medium" | "low";
779
+ severity: "low" | "medium" | "high";
333
780
  fieldId?: string | null | undefined;
334
- recommendation?: string | undefined;
781
+ recommendations?: {
782
+ priority: number;
783
+ action: string;
784
+ details: string;
785
+ timing: string;
786
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
787
+ confidence?: number | undefined;
788
+ materials?: {
789
+ name: string;
790
+ unit: string;
791
+ quantity: number;
792
+ inventoryItemId?: string | undefined;
793
+ totalCost?: number | undefined;
794
+ costPerUnit?: number | undefined;
795
+ availability?: string | undefined;
796
+ }[] | undefined;
797
+ applicationMethod?: string | undefined;
798
+ expectedOutcome?: string | undefined;
799
+ preventiveMeasures?: string[] | undefined;
800
+ estimatedTime?: string | undefined;
801
+ riskLevel?: string | undefined;
802
+ }[] | undefined;
335
803
  }[] | undefined;
336
804
  };
337
805
  relationships?: Record<string, unknown> | undefined;
@@ -361,9 +829,30 @@ export declare const weatherResourceSchema: z.ZodObject<{
361
829
  message: string;
362
830
  date: string;
363
831
  id: string;
364
- severity: "high" | "medium" | "low";
832
+ severity: "low" | "medium" | "high";
365
833
  fieldId?: string | null | undefined;
366
- recommendation?: string | undefined;
834
+ recommendations?: {
835
+ priority: number;
836
+ action: string;
837
+ details: string;
838
+ timing: string;
839
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
840
+ confidence?: number | undefined;
841
+ materials?: {
842
+ name: string;
843
+ unit: string;
844
+ quantity: number;
845
+ inventoryItemId?: string | undefined;
846
+ totalCost?: number | undefined;
847
+ costPerUnit?: number | undefined;
848
+ availability?: string | undefined;
849
+ }[] | undefined;
850
+ applicationMethod?: string | undefined;
851
+ expectedOutcome?: string | undefined;
852
+ preventiveMeasures?: string[] | undefined;
853
+ estimatedTime?: string | undefined;
854
+ riskLevel?: string | undefined;
855
+ }[] | undefined;
367
856
  }[] | undefined;
368
857
  };
369
858
  relationships?: Record<string, unknown> | undefined;
@@ -421,23 +910,144 @@ export declare const weatherResponseSchema: z.ZodObject<{
421
910
  message: z.ZodString;
422
911
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
912
  date: z.ZodString;
424
- recommendation: z.ZodOptional<z.ZodString>;
913
+ recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
914
+ priority: z.ZodNumber;
915
+ action: z.ZodString;
916
+ details: z.ZodString;
917
+ timing: z.ZodString;
918
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
919
+ confidence: z.ZodOptional<z.ZodNumber>;
920
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
921
+ inventoryItemId: z.ZodOptional<z.ZodString>;
922
+ name: z.ZodString;
923
+ quantity: z.ZodNumber;
924
+ unit: z.ZodString;
925
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
926
+ totalCost: z.ZodOptional<z.ZodNumber>;
927
+ availability: z.ZodOptional<z.ZodString>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ name: string;
930
+ unit: string;
931
+ quantity: number;
932
+ inventoryItemId?: string | undefined;
933
+ totalCost?: number | undefined;
934
+ costPerUnit?: number | undefined;
935
+ availability?: string | undefined;
936
+ }, {
937
+ name: string;
938
+ unit: string;
939
+ quantity: number;
940
+ inventoryItemId?: string | undefined;
941
+ totalCost?: number | undefined;
942
+ costPerUnit?: number | undefined;
943
+ availability?: string | undefined;
944
+ }>, "many">>;
945
+ applicationMethod: z.ZodOptional<z.ZodString>;
946
+ expectedOutcome: z.ZodOptional<z.ZodString>;
947
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
948
+ estimatedTime: z.ZodOptional<z.ZodString>;
949
+ riskLevel: z.ZodOptional<z.ZodString>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ priority: number;
952
+ action: string;
953
+ details: string;
954
+ timing: string;
955
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
956
+ confidence?: number | undefined;
957
+ materials?: {
958
+ name: string;
959
+ unit: string;
960
+ quantity: number;
961
+ inventoryItemId?: string | undefined;
962
+ totalCost?: number | undefined;
963
+ costPerUnit?: number | undefined;
964
+ availability?: string | undefined;
965
+ }[] | undefined;
966
+ applicationMethod?: string | undefined;
967
+ expectedOutcome?: string | undefined;
968
+ preventiveMeasures?: string[] | undefined;
969
+ estimatedTime?: string | undefined;
970
+ riskLevel?: string | undefined;
971
+ }, {
972
+ priority: number;
973
+ action: string;
974
+ details: string;
975
+ timing: string;
976
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
977
+ confidence?: number | undefined;
978
+ materials?: {
979
+ name: string;
980
+ unit: string;
981
+ quantity: number;
982
+ inventoryItemId?: string | undefined;
983
+ totalCost?: number | undefined;
984
+ costPerUnit?: number | undefined;
985
+ availability?: string | undefined;
986
+ }[] | undefined;
987
+ applicationMethod?: string | undefined;
988
+ expectedOutcome?: string | undefined;
989
+ preventiveMeasures?: string[] | undefined;
990
+ estimatedTime?: string | undefined;
991
+ riskLevel?: string | undefined;
992
+ }>, "many">>;
425
993
  }, "strip", z.ZodTypeAny, {
426
994
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
427
995
  message: string;
428
996
  date: string;
429
997
  id: string;
430
- severity: "high" | "medium" | "low";
998
+ severity: "low" | "medium" | "high";
431
999
  fieldId?: string | null | undefined;
432
- recommendation?: string | undefined;
1000
+ recommendations?: {
1001
+ priority: number;
1002
+ action: string;
1003
+ details: string;
1004
+ timing: string;
1005
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1006
+ confidence?: number | undefined;
1007
+ materials?: {
1008
+ name: string;
1009
+ unit: string;
1010
+ quantity: number;
1011
+ inventoryItemId?: string | undefined;
1012
+ totalCost?: number | undefined;
1013
+ costPerUnit?: number | undefined;
1014
+ availability?: string | undefined;
1015
+ }[] | undefined;
1016
+ applicationMethod?: string | undefined;
1017
+ expectedOutcome?: string | undefined;
1018
+ preventiveMeasures?: string[] | undefined;
1019
+ estimatedTime?: string | undefined;
1020
+ riskLevel?: string | undefined;
1021
+ }[] | undefined;
433
1022
  }, {
434
1023
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
435
1024
  message: string;
436
1025
  date: string;
437
1026
  id: string;
438
- severity: "high" | "medium" | "low";
1027
+ severity: "low" | "medium" | "high";
439
1028
  fieldId?: string | null | undefined;
440
- recommendation?: string | undefined;
1029
+ recommendations?: {
1030
+ priority: number;
1031
+ action: string;
1032
+ details: string;
1033
+ timing: string;
1034
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1035
+ confidence?: number | undefined;
1036
+ materials?: {
1037
+ name: string;
1038
+ unit: string;
1039
+ quantity: number;
1040
+ inventoryItemId?: string | undefined;
1041
+ totalCost?: number | undefined;
1042
+ costPerUnit?: number | undefined;
1043
+ availability?: string | undefined;
1044
+ }[] | undefined;
1045
+ applicationMethod?: string | undefined;
1046
+ expectedOutcome?: string | undefined;
1047
+ preventiveMeasures?: string[] | undefined;
1048
+ estimatedTime?: string | undefined;
1049
+ riskLevel?: string | undefined;
1050
+ }[] | undefined;
441
1051
  }>, "many">>;
442
1052
  }, "strip", z.ZodTypeAny, {
443
1053
  farmId: string;
@@ -460,9 +1070,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
460
1070
  message: string;
461
1071
  date: string;
462
1072
  id: string;
463
- severity: "high" | "medium" | "low";
1073
+ severity: "low" | "medium" | "high";
464
1074
  fieldId?: string | null | undefined;
465
- recommendation?: string | undefined;
1075
+ recommendations?: {
1076
+ priority: number;
1077
+ action: string;
1078
+ details: string;
1079
+ timing: string;
1080
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1081
+ confidence?: number | undefined;
1082
+ materials?: {
1083
+ name: string;
1084
+ unit: string;
1085
+ quantity: number;
1086
+ inventoryItemId?: string | undefined;
1087
+ totalCost?: number | undefined;
1088
+ costPerUnit?: number | undefined;
1089
+ availability?: string | undefined;
1090
+ }[] | undefined;
1091
+ applicationMethod?: string | undefined;
1092
+ expectedOutcome?: string | undefined;
1093
+ preventiveMeasures?: string[] | undefined;
1094
+ estimatedTime?: string | undefined;
1095
+ riskLevel?: string | undefined;
1096
+ }[] | undefined;
466
1097
  }[] | undefined;
467
1098
  }, {
468
1099
  farmId: string;
@@ -485,9 +1116,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
485
1116
  message: string;
486
1117
  date: string;
487
1118
  id: string;
488
- severity: "high" | "medium" | "low";
1119
+ severity: "low" | "medium" | "high";
489
1120
  fieldId?: string | null | undefined;
490
- recommendation?: string | undefined;
1121
+ recommendations?: {
1122
+ priority: number;
1123
+ action: string;
1124
+ details: string;
1125
+ timing: string;
1126
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1127
+ confidence?: number | undefined;
1128
+ materials?: {
1129
+ name: string;
1130
+ unit: string;
1131
+ quantity: number;
1132
+ inventoryItemId?: string | undefined;
1133
+ totalCost?: number | undefined;
1134
+ costPerUnit?: number | undefined;
1135
+ availability?: string | undefined;
1136
+ }[] | undefined;
1137
+ applicationMethod?: string | undefined;
1138
+ expectedOutcome?: string | undefined;
1139
+ preventiveMeasures?: string[] | undefined;
1140
+ estimatedTime?: string | undefined;
1141
+ riskLevel?: string | undefined;
1142
+ }[] | undefined;
491
1143
  }[] | undefined;
492
1144
  }>;
493
1145
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -517,9 +1169,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
517
1169
  message: string;
518
1170
  date: string;
519
1171
  id: string;
520
- severity: "high" | "medium" | "low";
1172
+ severity: "low" | "medium" | "high";
521
1173
  fieldId?: string | null | undefined;
522
- recommendation?: string | undefined;
1174
+ recommendations?: {
1175
+ priority: number;
1176
+ action: string;
1177
+ details: string;
1178
+ timing: string;
1179
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1180
+ confidence?: number | undefined;
1181
+ materials?: {
1182
+ name: string;
1183
+ unit: string;
1184
+ quantity: number;
1185
+ inventoryItemId?: string | undefined;
1186
+ totalCost?: number | undefined;
1187
+ costPerUnit?: number | undefined;
1188
+ availability?: string | undefined;
1189
+ }[] | undefined;
1190
+ applicationMethod?: string | undefined;
1191
+ expectedOutcome?: string | undefined;
1192
+ preventiveMeasures?: string[] | undefined;
1193
+ estimatedTime?: string | undefined;
1194
+ riskLevel?: string | undefined;
1195
+ }[] | undefined;
523
1196
  }[] | undefined;
524
1197
  };
525
1198
  relationships?: Record<string, unknown> | undefined;
@@ -549,9 +1222,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
549
1222
  message: string;
550
1223
  date: string;
551
1224
  id: string;
552
- severity: "high" | "medium" | "low";
1225
+ severity: "low" | "medium" | "high";
553
1226
  fieldId?: string | null | undefined;
554
- recommendation?: string | undefined;
1227
+ recommendations?: {
1228
+ priority: number;
1229
+ action: string;
1230
+ details: string;
1231
+ timing: string;
1232
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1233
+ confidence?: number | undefined;
1234
+ materials?: {
1235
+ name: string;
1236
+ unit: string;
1237
+ quantity: number;
1238
+ inventoryItemId?: string | undefined;
1239
+ totalCost?: number | undefined;
1240
+ costPerUnit?: number | undefined;
1241
+ availability?: string | undefined;
1242
+ }[] | undefined;
1243
+ applicationMethod?: string | undefined;
1244
+ expectedOutcome?: string | undefined;
1245
+ preventiveMeasures?: string[] | undefined;
1246
+ estimatedTime?: string | undefined;
1247
+ riskLevel?: string | undefined;
1248
+ }[] | undefined;
555
1249
  }[] | undefined;
556
1250
  };
557
1251
  relationships?: Record<string, unknown> | undefined;
@@ -607,9 +1301,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
607
1301
  message: string;
608
1302
  date: string;
609
1303
  id: string;
610
- severity: "high" | "medium" | "low";
1304
+ severity: "low" | "medium" | "high";
611
1305
  fieldId?: string | null | undefined;
612
- recommendation?: string | undefined;
1306
+ recommendations?: {
1307
+ priority: number;
1308
+ action: string;
1309
+ details: string;
1310
+ timing: string;
1311
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1312
+ confidence?: number | undefined;
1313
+ materials?: {
1314
+ name: string;
1315
+ unit: string;
1316
+ quantity: number;
1317
+ inventoryItemId?: string | undefined;
1318
+ totalCost?: number | undefined;
1319
+ costPerUnit?: number | undefined;
1320
+ availability?: string | undefined;
1321
+ }[] | undefined;
1322
+ applicationMethod?: string | undefined;
1323
+ expectedOutcome?: string | undefined;
1324
+ preventiveMeasures?: string[] | undefined;
1325
+ estimatedTime?: string | undefined;
1326
+ riskLevel?: string | undefined;
1327
+ }[] | undefined;
613
1328
  }[] | undefined;
614
1329
  };
615
1330
  relationships?: Record<string, unknown> | undefined;
@@ -651,9 +1366,30 @@ export declare const weatherResponseSchema: z.ZodObject<{
651
1366
  message: string;
652
1367
  date: string;
653
1368
  id: string;
654
- severity: "high" | "medium" | "low";
1369
+ severity: "low" | "medium" | "high";
655
1370
  fieldId?: string | null | undefined;
656
- recommendation?: string | undefined;
1371
+ recommendations?: {
1372
+ priority: number;
1373
+ action: string;
1374
+ details: string;
1375
+ timing: string;
1376
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1377
+ confidence?: number | undefined;
1378
+ materials?: {
1379
+ name: string;
1380
+ unit: string;
1381
+ quantity: number;
1382
+ inventoryItemId?: string | undefined;
1383
+ totalCost?: number | undefined;
1384
+ costPerUnit?: number | undefined;
1385
+ availability?: string | undefined;
1386
+ }[] | undefined;
1387
+ applicationMethod?: string | undefined;
1388
+ expectedOutcome?: string | undefined;
1389
+ preventiveMeasures?: string[] | undefined;
1390
+ estimatedTime?: string | undefined;
1391
+ riskLevel?: string | undefined;
1392
+ }[] | undefined;
657
1393
  }[] | undefined;
658
1394
  };
659
1395
  relationships?: Record<string, unknown> | undefined;