@deepintel-ltd/farmpro-contracts 1.7.13 → 1.7.19

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 (78) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/agent-workflows.routes.d.ts +88 -88
  5. package/dist/routes/agents.routes.d.ts +3260 -0
  6. package/dist/routes/agents.routes.d.ts.map +1 -1
  7. package/dist/routes/agents.routes.js +130 -1
  8. package/dist/routes/analytics.routes.d.ts +20 -20
  9. package/dist/routes/documents.routes.d.ts +855 -58
  10. package/dist/routes/documents.routes.d.ts.map +1 -1
  11. package/dist/routes/documents.routes.js +43 -1
  12. package/dist/routes/equipment.routes.d.ts +38 -38
  13. package/dist/routes/farm-status.routes.d.ts +315 -0
  14. package/dist/routes/farm-status.routes.d.ts.map +1 -0
  15. package/dist/routes/farm-status.routes.js +26 -0
  16. package/dist/routes/fertigation.routes.d.ts +148 -148
  17. package/dist/routes/field-monitoring.routes.d.ts +52 -52
  18. package/dist/routes/field-observations.routes.d.ts +56 -56
  19. package/dist/routes/finance.routes.d.ts +3493 -0
  20. package/dist/routes/finance.routes.d.ts.map +1 -1
  21. package/dist/routes/finance.routes.js +158 -1
  22. package/dist/routes/geofences.routes.d.ts.map +1 -1
  23. package/dist/routes/index.d.ts +3 -0
  24. package/dist/routes/index.d.ts.map +1 -1
  25. package/dist/routes/index.js +2 -0
  26. package/dist/routes/irrigation.routes.d.ts +6 -6
  27. package/dist/routes/measurements.routes.d.ts +13 -4
  28. package/dist/routes/measurements.routes.d.ts.map +1 -1
  29. package/dist/routes/monitoring-visualization.routes.d.ts +43 -36
  30. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  31. package/dist/routes/monitoring-visualization.routes.js +7 -4
  32. package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
  33. package/dist/routes/prescription-maps.routes.d.ts +570 -23
  34. package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
  35. package/dist/routes/prescription-maps.routes.js +18 -1
  36. package/dist/routes/soil-tests.routes.d.ts +30 -30
  37. package/dist/routes/subscriptions.routes.d.ts +14 -14
  38. package/dist/routes/weather.routes.d.ts +545 -52
  39. package/dist/routes/weather.routes.d.ts.map +1 -1
  40. package/dist/routes/weather.routes.js +13 -1
  41. package/dist/routes/yield-prediction.routes.d.ts +30 -30
  42. package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
  43. package/dist/schemas/agents.schemas.d.ts +1120 -0
  44. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  45. package/dist/schemas/agents.schemas.js +181 -0
  46. package/dist/schemas/analytics.schemas.d.ts +56 -56
  47. package/dist/schemas/documents.schemas.d.ts +248 -48
  48. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  49. package/dist/schemas/documents.schemas.js +38 -0
  50. package/dist/schemas/equipment.schemas.d.ts +30 -30
  51. package/dist/schemas/farm-status.schemas.d.ts +451 -0
  52. package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
  53. package/dist/schemas/farm-status.schemas.js +44 -0
  54. package/dist/schemas/fertigation.schemas.d.ts +50 -50
  55. package/dist/schemas/field-monitoring.schemas.d.ts +42 -42
  56. package/dist/schemas/field-observations.schemas.d.ts +44 -44
  57. package/dist/schemas/finance.schemas.d.ts +1057 -0
  58. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  59. package/dist/schemas/finance.schemas.js +170 -0
  60. package/dist/schemas/irrigation.schemas.d.ts +8 -8
  61. package/dist/schemas/measurements.schemas.d.ts +21 -8
  62. package/dist/schemas/measurements.schemas.d.ts.map +1 -1
  63. package/dist/schemas/measurements.schemas.js +13 -6
  64. package/dist/schemas/monitoring-visualization.schemas.d.ts +50 -43
  65. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  66. package/dist/schemas/monitoring-visualization.schemas.js +27 -17
  67. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  68. package/dist/schemas/prescription-maps.schemas.d.ts +45 -22
  69. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  70. package/dist/schemas/prescription-maps.schemas.js +9 -1
  71. package/dist/schemas/recommendations.schemas.d.ts +2 -2
  72. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  73. package/dist/schemas/subscriptions.schemas.d.ts +22 -22
  74. package/dist/schemas/weather.schemas.d.ts +789 -112
  75. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  76. package/dist/schemas/weather.schemas.js +37 -0
  77. package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
  78. package/package.json +1 -1
@@ -243,13 +243,13 @@ export declare const riskZoneSchema: z.ZodObject<{
243
243
  };
244
244
  area: number;
245
245
  recommendations: string[];
246
+ riskScore: number;
246
247
  zoneId: string;
247
248
  centroid: {
248
249
  lat: number;
249
250
  lng: number;
250
251
  };
251
252
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
252
- riskScore: number;
253
253
  threatProbabilities: {
254
254
  confidence: number;
255
255
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -270,13 +270,13 @@ export declare const riskZoneSchema: z.ZodObject<{
270
270
  };
271
271
  area: number;
272
272
  recommendations: string[];
273
+ riskScore: number;
273
274
  zoneId: string;
274
275
  centroid: {
275
276
  lat: number;
276
277
  lng: number;
277
278
  };
278
279
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
279
- riskScore: number;
280
280
  threatProbabilities: {
281
281
  confidence: number;
282
282
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -538,13 +538,13 @@ export declare const riskHeatmapResponseSchema: z.ZodObject<{
538
538
  };
539
539
  area: number;
540
540
  recommendations: string[];
541
+ riskScore: number;
541
542
  zoneId: string;
542
543
  centroid: {
543
544
  lat: number;
544
545
  lng: number;
545
546
  };
546
547
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
547
- riskScore: number;
548
548
  threatProbabilities: {
549
549
  confidence: number;
550
550
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -565,13 +565,13 @@ export declare const riskHeatmapResponseSchema: z.ZodObject<{
565
565
  };
566
566
  area: number;
567
567
  recommendations: string[];
568
+ riskScore: number;
568
569
  zoneId: string;
569
570
  centroid: {
570
571
  lat: number;
571
572
  lng: number;
572
573
  };
573
574
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
574
- riskScore: number;
575
575
  threatProbabilities: {
576
576
  confidence: number;
577
577
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -727,13 +727,13 @@ export declare const riskHeatmapResponseSchema: z.ZodObject<{
727
727
  };
728
728
  area: number;
729
729
  recommendations: string[];
730
+ riskScore: number;
730
731
  zoneId: string;
731
732
  centroid: {
732
733
  lat: number;
733
734
  lng: number;
734
735
  };
735
736
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
736
- riskScore: number;
737
737
  threatProbabilities: {
738
738
  confidence: number;
739
739
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -824,13 +824,13 @@ export declare const riskHeatmapResponseSchema: z.ZodObject<{
824
824
  };
825
825
  area: number;
826
826
  recommendations: string[];
827
+ riskScore: number;
827
828
  zoneId: string;
828
829
  centroid: {
829
830
  lat: number;
830
831
  lng: number;
831
832
  };
832
833
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
833
- riskScore: number;
834
834
  threatProbabilities: {
835
835
  confidence: number;
836
836
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -884,9 +884,9 @@ export declare const fieldRiskSummarySchema: z.ZodObject<{
884
884
  currentCrop: string | null;
885
885
  fieldId: string;
886
886
  fieldName: string;
887
+ riskScore: number;
887
888
  growthStage: string | null;
888
889
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
889
- riskScore: number;
890
890
  areaHa: number;
891
891
  primaryThreats: {
892
892
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -898,9 +898,9 @@ export declare const fieldRiskSummarySchema: z.ZodObject<{
898
898
  currentCrop: string | null;
899
899
  fieldId: string;
900
900
  fieldName: string;
901
+ riskScore: number;
901
902
  growthStage: string | null;
902
903
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
903
- riskScore: number;
904
904
  areaHa: number;
905
905
  primaryThreats: {
906
906
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -942,9 +942,9 @@ export declare const farmRiskAssessmentSchema: z.ZodObject<{
942
942
  currentCrop: string | null;
943
943
  fieldId: string;
944
944
  fieldName: string;
945
+ riskScore: number;
945
946
  growthStage: string | null;
946
947
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
947
- riskScore: number;
948
948
  areaHa: number;
949
949
  primaryThreats: {
950
950
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -956,9 +956,9 @@ export declare const farmRiskAssessmentSchema: z.ZodObject<{
956
956
  currentCrop: string | null;
957
957
  fieldId: string;
958
958
  fieldName: string;
959
+ riskScore: number;
959
960
  growthStage: string | null;
960
961
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
961
- riskScore: number;
962
962
  areaHa: number;
963
963
  primaryThreats: {
964
964
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -1041,9 +1041,9 @@ export declare const farmRiskAssessmentSchema: z.ZodObject<{
1041
1041
  currentCrop: string | null;
1042
1042
  fieldId: string;
1043
1043
  fieldName: string;
1044
+ riskScore: number;
1044
1045
  growthStage: string | null;
1045
1046
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1046
- riskScore: number;
1047
1047
  areaHa: number;
1048
1048
  primaryThreats: {
1049
1049
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -1084,9 +1084,9 @@ export declare const farmRiskAssessmentSchema: z.ZodObject<{
1084
1084
  currentCrop: string | null;
1085
1085
  fieldId: string;
1086
1086
  fieldName: string;
1087
+ riskScore: number;
1087
1088
  growthStage: string | null;
1088
1089
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1089
- riskScore: number;
1090
1090
  areaHa: number;
1091
1091
  primaryThreats: {
1092
1092
  riskLevel: "critical" | "low" | "high" | "none" | "moderate";
@@ -1355,13 +1355,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1355
1355
  };
1356
1356
  area: number;
1357
1357
  recommendations: string[];
1358
+ riskScore: number;
1358
1359
  zoneId: string;
1359
1360
  centroid: {
1360
1361
  lat: number;
1361
1362
  lng: number;
1362
1363
  };
1363
1364
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1364
- riskScore: number;
1365
1365
  threatProbabilities: {
1366
1366
  confidence: number;
1367
1367
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -1382,13 +1382,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1382
1382
  };
1383
1383
  area: number;
1384
1384
  recommendations: string[];
1385
+ riskScore: number;
1385
1386
  zoneId: string;
1386
1387
  centroid: {
1387
1388
  lat: number;
1388
1389
  lng: number;
1389
1390
  };
1390
1391
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1391
- riskScore: number;
1392
1392
  threatProbabilities: {
1393
1393
  confidence: number;
1394
1394
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -1544,13 +1544,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1544
1544
  };
1545
1545
  area: number;
1546
1546
  recommendations: string[];
1547
+ riskScore: number;
1547
1548
  zoneId: string;
1548
1549
  centroid: {
1549
1550
  lat: number;
1550
1551
  lng: number;
1551
1552
  };
1552
1553
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1553
- riskScore: number;
1554
1554
  threatProbabilities: {
1555
1555
  confidence: number;
1556
1556
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -1641,13 +1641,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1641
1641
  };
1642
1642
  area: number;
1643
1643
  recommendations: string[];
1644
+ riskScore: number;
1644
1645
  zoneId: string;
1645
1646
  centroid: {
1646
1647
  lat: number;
1647
1648
  lng: number;
1648
1649
  };
1649
1650
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1650
- riskScore: number;
1651
1651
  threatProbabilities: {
1652
1652
  confidence: number;
1653
1653
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -1745,13 +1745,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1745
1745
  };
1746
1746
  area: number;
1747
1747
  recommendations: string[];
1748
+ riskScore: number;
1748
1749
  zoneId: string;
1749
1750
  centroid: {
1750
1751
  lat: number;
1751
1752
  lng: number;
1752
1753
  };
1753
1754
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1754
- riskScore: number;
1755
1755
  threatProbabilities: {
1756
1756
  confidence: number;
1757
1757
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -1849,13 +1849,13 @@ export declare const triggerAnalysisResponseSchema: z.ZodObject<{
1849
1849
  };
1850
1850
  area: number;
1851
1851
  recommendations: string[];
1852
+ riskScore: number;
1852
1853
  zoneId: string;
1853
1854
  centroid: {
1854
1855
  lat: number;
1855
1856
  lng: number;
1856
1857
  };
1857
1858
  overallRiskLevel: "critical" | "low" | "high" | "none" | "moderate";
1858
- riskScore: number;
1859
1859
  threatProbabilities: {
1860
1860
  confidence: number;
1861
1861
  threatType: "pest_insect" | "pest_mite" | "disease_fungal" | "disease_bacterial" | "disease_viral" | "nutrient_deficiency" | "environmental_stress";
@@ -45,8 +45,8 @@ export declare const prescriptionZoneSchema: z.ZodObject<{
45
45
  rateUnit: string;
46
46
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
47
47
  totalCost?: number | undefined;
48
- inputProduct?: string | undefined;
49
48
  costPerHectare?: number | undefined;
49
+ inputProduct?: string | undefined;
50
50
  }, {
51
51
  id: string;
52
52
  geometry: {
@@ -63,8 +63,8 @@ export declare const prescriptionZoneSchema: z.ZodObject<{
63
63
  rateUnit: string;
64
64
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
65
65
  totalCost?: number | undefined;
66
- inputProduct?: string | undefined;
67
66
  costPerHectare?: number | undefined;
67
+ inputProduct?: string | undefined;
68
68
  }>;
69
69
  export declare const prescriptionMapSchema: z.ZodObject<{
70
70
  id: z.ZodString;
@@ -119,8 +119,8 @@ export declare const prescriptionMapSchema: z.ZodObject<{
119
119
  rateUnit: string;
120
120
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
121
121
  totalCost?: number | undefined;
122
- inputProduct?: string | undefined;
123
122
  costPerHectare?: number | undefined;
123
+ inputProduct?: string | undefined;
124
124
  }, {
125
125
  id: string;
126
126
  geometry: {
@@ -137,8 +137,8 @@ export declare const prescriptionMapSchema: z.ZodObject<{
137
137
  rateUnit: string;
138
138
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
139
139
  totalCost?: number | undefined;
140
- inputProduct?: string | undefined;
141
140
  costPerHectare?: number | undefined;
141
+ inputProduct?: string | undefined;
142
142
  }>, "many">;
143
143
  totalArea: z.ZodNumber;
144
144
  totalCost: z.ZodNumber;
@@ -170,8 +170,8 @@ export declare const prescriptionMapSchema: z.ZodObject<{
170
170
  rateUnit: string;
171
171
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
172
172
  totalCost?: number | undefined;
173
- inputProduct?: string | undefined;
174
173
  costPerHectare?: number | undefined;
174
+ inputProduct?: string | undefined;
175
175
  }[];
176
176
  totalArea: number;
177
177
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -203,8 +203,8 @@ export declare const prescriptionMapSchema: z.ZodObject<{
203
203
  rateUnit: string;
204
204
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
205
205
  totalCost?: number | undefined;
206
- inputProduct?: string | undefined;
207
206
  costPerHectare?: number | undefined;
207
+ inputProduct?: string | undefined;
208
208
  }[];
209
209
  totalArea: number;
210
210
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -264,8 +264,8 @@ export declare const createPrescriptionMapBodySchema: z.ZodObject<{
264
264
  rateUnit: string;
265
265
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
266
266
  totalCost?: number | undefined;
267
- inputProduct?: string | undefined;
268
267
  costPerHectare?: number | undefined;
268
+ inputProduct?: string | undefined;
269
269
  }, {
270
270
  id: string;
271
271
  geometry: {
@@ -282,8 +282,8 @@ export declare const createPrescriptionMapBodySchema: z.ZodObject<{
282
282
  rateUnit: string;
283
283
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
284
284
  totalCost?: number | undefined;
285
- inputProduct?: string | undefined;
286
285
  costPerHectare?: number | undefined;
286
+ inputProduct?: string | undefined;
287
287
  }>, "many">;
288
288
  }, "strip", z.ZodTypeAny, {
289
289
  name: string;
@@ -303,8 +303,8 @@ export declare const createPrescriptionMapBodySchema: z.ZodObject<{
303
303
  rateUnit: string;
304
304
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
305
305
  totalCost?: number | undefined;
306
- inputProduct?: string | undefined;
307
306
  costPerHectare?: number | undefined;
307
+ inputProduct?: string | undefined;
308
308
  }[];
309
309
  sourceDataType: "ndvi" | "manual" | "soil_moisture";
310
310
  sourceDate: string;
@@ -326,8 +326,8 @@ export declare const createPrescriptionMapBodySchema: z.ZodObject<{
326
326
  rateUnit: string;
327
327
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
328
328
  totalCost?: number | undefined;
329
- inputProduct?: string | undefined;
330
329
  costPerHectare?: number | undefined;
330
+ inputProduct?: string | undefined;
331
331
  }[];
332
332
  sourceDataType: "ndvi" | "manual" | "soil_moisture";
333
333
  sourceDate: string;
@@ -392,8 +392,8 @@ export declare const prescriptionMapListResponseSchema: z.ZodArray<z.ZodObject<{
392
392
  rateUnit: string;
393
393
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
394
394
  totalCost?: number | undefined;
395
- inputProduct?: string | undefined;
396
395
  costPerHectare?: number | undefined;
396
+ inputProduct?: string | undefined;
397
397
  }, {
398
398
  id: string;
399
399
  geometry: {
@@ -410,8 +410,8 @@ export declare const prescriptionMapListResponseSchema: z.ZodArray<z.ZodObject<{
410
410
  rateUnit: string;
411
411
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
412
412
  totalCost?: number | undefined;
413
- inputProduct?: string | undefined;
414
413
  costPerHectare?: number | undefined;
414
+ inputProduct?: string | undefined;
415
415
  }>, "many">;
416
416
  totalArea: z.ZodNumber;
417
417
  totalCost: z.ZodNumber;
@@ -443,8 +443,8 @@ export declare const prescriptionMapListResponseSchema: z.ZodArray<z.ZodObject<{
443
443
  rateUnit: string;
444
444
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
445
445
  totalCost?: number | undefined;
446
- inputProduct?: string | undefined;
447
446
  costPerHectare?: number | undefined;
447
+ inputProduct?: string | undefined;
448
448
  }[];
449
449
  totalArea: number;
450
450
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -476,8 +476,8 @@ export declare const prescriptionMapListResponseSchema: z.ZodArray<z.ZodObject<{
476
476
  rateUnit: string;
477
477
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
478
478
  totalCost?: number | undefined;
479
- inputProduct?: string | undefined;
480
479
  costPerHectare?: number | undefined;
480
+ inputProduct?: string | undefined;
481
481
  }[];
482
482
  totalArea: number;
483
483
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -540,8 +540,8 @@ export declare const prescriptionMapSingleResponseSchema: z.ZodObject<{
540
540
  rateUnit: string;
541
541
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
542
542
  totalCost?: number | undefined;
543
- inputProduct?: string | undefined;
544
543
  costPerHectare?: number | undefined;
544
+ inputProduct?: string | undefined;
545
545
  }, {
546
546
  id: string;
547
547
  geometry: {
@@ -558,8 +558,8 @@ export declare const prescriptionMapSingleResponseSchema: z.ZodObject<{
558
558
  rateUnit: string;
559
559
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
560
560
  totalCost?: number | undefined;
561
- inputProduct?: string | undefined;
562
561
  costPerHectare?: number | undefined;
562
+ inputProduct?: string | undefined;
563
563
  }>, "many">;
564
564
  totalArea: z.ZodNumber;
565
565
  totalCost: z.ZodNumber;
@@ -591,8 +591,8 @@ export declare const prescriptionMapSingleResponseSchema: z.ZodObject<{
591
591
  rateUnit: string;
592
592
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
593
593
  totalCost?: number | undefined;
594
- inputProduct?: string | undefined;
595
594
  costPerHectare?: number | undefined;
595
+ inputProduct?: string | undefined;
596
596
  }[];
597
597
  totalArea: number;
598
598
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -624,8 +624,8 @@ export declare const prescriptionMapSingleResponseSchema: z.ZodObject<{
624
624
  rateUnit: string;
625
625
  inputType: "seed" | "fertilizer" | "pesticide" | "water";
626
626
  totalCost?: number | undefined;
627
- inputProduct?: string | undefined;
628
627
  costPerHectare?: number | undefined;
628
+ inputProduct?: string | undefined;
629
629
  }[];
630
630
  totalArea: number;
631
631
  sourceDataType: "ndvi" | "manual" | "soil_moisture" | "multi_layer";
@@ -704,6 +704,28 @@ export declare const generateZonesRequestSchema: z.ZodObject<{
704
704
  inputProduct?: string | undefined;
705
705
  rateVariation?: number | undefined;
706
706
  }>;
707
+ export declare const aiGeneratePrescriptionRequestSchema: z.ZodObject<{
708
+ prompt: z.ZodString;
709
+ inputType: z.ZodEnum<["fertilizer", "pesticide", "seed", "water"]>;
710
+ inputProduct: z.ZodOptional<z.ZodString>;
711
+ baseRate: z.ZodNumber;
712
+ rateUnit: z.ZodString;
713
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ rateUnit: string;
716
+ inputType: "seed" | "fertilizer" | "pesticide" | "water";
717
+ baseRate: number;
718
+ prompt: string;
719
+ costPerUnit?: number | undefined;
720
+ inputProduct?: string | undefined;
721
+ }, {
722
+ rateUnit: string;
723
+ inputType: "seed" | "fertilizer" | "pesticide" | "water";
724
+ baseRate: number;
725
+ prompt: string;
726
+ costPerUnit?: number | undefined;
727
+ inputProduct?: string | undefined;
728
+ }>;
707
729
  /** Individual zone statistics */
708
730
  export declare const zoneStatisticsSchema: z.ZodObject<{
709
731
  zoneId: z.ZodString;
@@ -895,18 +917,18 @@ export declare const zoneStatsResponseSchema: z.ZodObject<{
895
917
  totalQuantity: number;
896
918
  }>;
897
919
  /** Export format enum matching Prisma */
898
- export declare const exportFormatSchema: z.ZodEnum<["shapefile", "geojson", "isoxml", "kml", "csv"]>;
920
+ export declare const exportFormatSchema: z.ZodEnum<["shapefile", "geojson", "isoxml", "kml", "kmz", "csv"]>;
899
921
  /** Export request body */
900
922
  export declare const exportRequestSchema: z.ZodObject<{
901
- format: z.ZodEnum<["shapefile", "geojson", "isoxml", "kml", "csv"]>;
923
+ format: z.ZodEnum<["shapefile", "geojson", "isoxml", "kml", "kmz", "csv"]>;
902
924
  machinery: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
925
  includeMetadata: z.ZodDefault<z.ZodBoolean>;
904
926
  }, "strip", z.ZodTypeAny, {
905
- format: "geojson" | "shapefile" | "isoxml" | "kml" | "csv";
927
+ format: "geojson" | "shapefile" | "isoxml" | "kml" | "csv" | "kmz";
906
928
  includeMetadata: boolean;
907
929
  machinery?: string[] | undefined;
908
930
  }, {
909
- format: "geojson" | "shapefile" | "isoxml" | "kml" | "csv";
931
+ format: "geojson" | "shapefile" | "isoxml" | "kml" | "csv" | "kmz";
910
932
  machinery?: string[] | undefined;
911
933
  includeMetadata?: boolean | undefined;
912
934
  }>;
@@ -965,6 +987,7 @@ export type CreatePrescriptionMapBody = z.infer<typeof createPrescriptionMapBody
965
987
  export type UpdatePrescriptionStatusBody = z.infer<typeof updatePrescriptionStatusBodySchema>;
966
988
  export type ZoneLayer = z.infer<typeof zoneLayerSchema>;
967
989
  export type GenerateZonesRequest = z.infer<typeof generateZonesRequestSchema>;
990
+ export type AIGeneratePrescriptionRequest = z.infer<typeof aiGeneratePrescriptionRequestSchema>;
968
991
  export type ZoneStatistics = z.infer<typeof zoneStatisticsSchema>;
969
992
  export type ZoneSummary = z.infer<typeof zoneSummarySchema>;
970
993
  export type ZoneStatsResponse = z.infer<typeof zoneStatsResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"prescription-maps.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/prescription-maps.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;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AAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -66,6 +66,14 @@ export const generateZonesRequestSchema = z.object({
66
66
  rateVariation: z.number().min(0).max(1).default(0.3), // 30% variation between zones
67
67
  costPerUnit: z.number().optional(), // Cost per unit of input for estimation
68
68
  });
69
+ export const aiGeneratePrescriptionRequestSchema = z.object({
70
+ prompt: z.string().min(10).max(2000),
71
+ inputType: z.enum(['fertilizer', 'pesticide', 'seed', 'water']),
72
+ inputProduct: z.string().optional(),
73
+ baseRate: z.number(),
74
+ rateUnit: z.string(),
75
+ costPerUnit: z.number().optional(),
76
+ });
69
77
  /** Individual zone statistics */
70
78
  export const zoneStatisticsSchema = z.object({
71
79
  zoneId: z.string().uuid(),
@@ -104,7 +112,7 @@ export const zoneStatsResponseSchema = z.object({
104
112
  // Export Schemas
105
113
  // =============================================================================
106
114
  /** Export format enum matching Prisma */
107
- export const exportFormatSchema = z.enum(['shapefile', 'geojson', 'isoxml', 'kml', 'csv']);
115
+ export const exportFormatSchema = z.enum(['shapefile', 'geojson', 'isoxml', 'kml', 'kmz', 'csv']);
108
116
  /** Export request body */
109
117
  export const exportRequestSchema = z.object({
110
118
  format: exportFormatSchema,
@@ -69,8 +69,8 @@ export declare const recommendationSchema: z.ZodObject<{
69
69
  action: string;
70
70
  details: string;
71
71
  timing: string;
72
- severity?: "critical" | "low" | "medium" | "high" | undefined;
73
72
  confidence?: number | undefined;
73
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
74
74
  materials?: {
75
75
  name: string;
76
76
  unit: string;
@@ -90,8 +90,8 @@ export declare const recommendationSchema: z.ZodObject<{
90
90
  action: string;
91
91
  details: string;
92
92
  timing: string;
93
- severity?: "critical" | "low" | "medium" | "high" | undefined;
94
93
  confidence?: number | undefined;
94
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
95
95
  materials?: {
96
96
  name: string;
97
97
  unit: string;