@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
@@ -130,8 +130,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
130
130
  action: string;
131
131
  details: string;
132
132
  timing: string;
133
- severity?: "critical" | "low" | "medium" | "high" | undefined;
134
133
  confidence?: number | undefined;
134
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
135
135
  materials?: {
136
136
  name: string;
137
137
  unit: string;
@@ -151,8 +151,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
151
151
  action: string;
152
152
  details: string;
153
153
  timing: string;
154
- severity?: "critical" | "low" | "medium" | "high" | undefined;
155
154
  confidence?: number | undefined;
155
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
156
156
  materials?: {
157
157
  name: string;
158
158
  unit: string;
@@ -188,8 +188,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
188
188
  action: string;
189
189
  details: string;
190
190
  timing: string;
191
- severity?: "critical" | "low" | "medium" | "high" | undefined;
192
191
  confidence?: number | undefined;
192
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
193
193
  materials?: {
194
194
  name: string;
195
195
  unit: string;
@@ -205,8 +205,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
205
205
  estimatedTime?: string | undefined;
206
206
  riskLevel?: string | undefined;
207
207
  }[] | null;
208
- severity: "critical" | "low" | "medium" | "high";
209
208
  confidence: number | null;
209
+ severity: "critical" | "low" | "medium" | "high";
210
210
  acknowledgedAt: string | null;
211
211
  acknowledgedBy: string | null;
212
212
  resolvedAt: string | null;
@@ -225,8 +225,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
225
225
  action: string;
226
226
  details: string;
227
227
  timing: string;
228
- severity?: "critical" | "low" | "medium" | "high" | undefined;
229
228
  confidence?: number | undefined;
229
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
230
230
  materials?: {
231
231
  name: string;
232
232
  unit: string;
@@ -242,8 +242,8 @@ export declare const fieldAlertSchema: z.ZodObject<{
242
242
  estimatedTime?: string | undefined;
243
243
  riskLevel?: string | undefined;
244
244
  }[] | null;
245
- severity: "critical" | "low" | "medium" | "high";
246
245
  confidence: number | null;
246
+ severity: "critical" | "low" | "medium" | "high";
247
247
  acknowledgedAt: string | null;
248
248
  acknowledgedBy: string | null;
249
249
  resolvedAt: string | null;
@@ -457,15 +457,15 @@ export declare const dataSourceInfoSchema: z.ZodObject<{
457
457
  }, "strip", z.ZodTypeAny, {
458
458
  date: string;
459
459
  source: "manual" | "regional_api" | "global_api" | "predicted";
460
- priority: number;
461
460
  confidence: number;
461
+ priority: number;
462
462
  notes?: string | undefined;
463
463
  sourceId?: string | undefined;
464
464
  }, {
465
465
  date: string;
466
466
  source: "manual" | "regional_api" | "global_api" | "predicted";
467
- priority: number;
468
467
  confidence: number;
468
+ priority: number;
469
469
  notes?: string | undefined;
470
470
  sourceId?: string | undefined;
471
471
  }>;
@@ -507,11 +507,11 @@ export declare const completenessAssessmentSchema: z.ZodObject<{
507
507
  }, "strip", z.ZodTypeAny, {
508
508
  score: number;
509
509
  missingFields: string[];
510
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
510
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
511
511
  }, {
512
512
  score: number;
513
513
  missingFields: string[];
514
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
514
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
515
515
  }>;
516
516
  export declare const soilRecommendationSchema: z.ZodObject<{
517
517
  priority: z.ZodNumber;
@@ -525,15 +525,15 @@ export declare const soilRecommendationSchema: z.ZodObject<{
525
525
  action: string;
526
526
  details: string;
527
527
  timing: string;
528
- severity?: "critical" | "low" | "medium" | "high" | undefined;
529
528
  confidence?: number | undefined;
529
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
530
530
  }, {
531
531
  priority: number;
532
532
  action: string;
533
533
  details: string;
534
534
  timing: string;
535
- severity?: "critical" | "low" | "medium" | "high" | undefined;
536
535
  confidence?: number | undefined;
536
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
537
537
  }>;
538
538
  export declare const seasonalRecommendationSchema: z.ZodObject<{
539
539
  priority: z.ZodNumber;
@@ -568,8 +568,8 @@ export declare const intelligentFertilizerRecommendationSchema: z.ZodObject<{
568
568
  quantity: number;
569
569
  reason: string;
570
570
  inventoryItemId?: string | undefined;
571
- estimatedCost?: number | undefined;
572
571
  confidence?: number | undefined;
572
+ estimatedCost?: number | undefined;
573
573
  productName?: string | undefined;
574
574
  applicationTiming?: string | undefined;
575
575
  }, {
@@ -577,8 +577,8 @@ export declare const intelligentFertilizerRecommendationSchema: z.ZodObject<{
577
577
  quantity: number;
578
578
  reason: string;
579
579
  inventoryItemId?: string | undefined;
580
- estimatedCost?: number | undefined;
581
580
  confidence?: number | undefined;
581
+ estimatedCost?: number | undefined;
582
582
  productName?: string | undefined;
583
583
  applicationTiming?: string | undefined;
584
584
  }>;
@@ -932,15 +932,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
932
932
  }, "strip", z.ZodTypeAny, {
933
933
  date: string;
934
934
  source: "manual" | "regional_api" | "global_api" | "predicted";
935
- priority: number;
936
935
  confidence: number;
936
+ priority: number;
937
937
  notes?: string | undefined;
938
938
  sourceId?: string | undefined;
939
939
  }, {
940
940
  date: string;
941
941
  source: "manual" | "regional_api" | "global_api" | "predicted";
942
- priority: number;
943
942
  confidence: number;
943
+ priority: number;
944
944
  notes?: string | undefined;
945
945
  sourceId?: string | undefined;
946
946
  }>>;
@@ -1017,11 +1017,11 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
1018
  score: number;
1019
1019
  missingFields: string[];
1020
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1020
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1021
1021
  }, {
1022
1022
  score: number;
1023
1023
  missingFields: string[];
1024
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1024
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1025
1025
  }>;
1026
1026
  }, "strip", z.ZodTypeAny, {
1027
1027
  pH: {
@@ -1045,7 +1045,7 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1045
1045
  completeness: {
1046
1046
  score: number;
1047
1047
  missingFields: string[];
1048
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1048
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1049
1049
  };
1050
1050
  }, {
1051
1051
  pH: {
@@ -1069,12 +1069,12 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1069
1069
  completeness: {
1070
1070
  score: number;
1071
1071
  missingFields: string[];
1072
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1072
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1073
1073
  };
1074
1074
  }>;
1075
1075
  }, "strip", z.ZodTypeAny, {
1076
- overall: "critical" | "poor" | "fair" | "good" | "excellent";
1077
1076
  score: number;
1077
+ overall: "critical" | "poor" | "fair" | "good" | "excellent";
1078
1078
  assessments: {
1079
1079
  pH: {
1080
1080
  recommendation: string;
@@ -1097,12 +1097,12 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1097
1097
  completeness: {
1098
1098
  score: number;
1099
1099
  missingFields: string[];
1100
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1100
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1101
1101
  };
1102
1102
  };
1103
1103
  }, {
1104
- overall: "critical" | "poor" | "fair" | "good" | "excellent";
1105
1104
  score: number;
1105
+ overall: "critical" | "poor" | "fair" | "good" | "excellent";
1106
1106
  assessments: {
1107
1107
  pH: {
1108
1108
  recommendation: string;
@@ -1125,7 +1125,7 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1125
1125
  completeness: {
1126
1126
  score: number;
1127
1127
  missingFields: string[];
1128
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1128
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1129
1129
  };
1130
1130
  };
1131
1131
  }>;
@@ -1325,15 +1325,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1325
1325
  action: string;
1326
1326
  details: string;
1327
1327
  timing: string;
1328
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1329
1328
  confidence?: number | undefined;
1329
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1330
1330
  }, {
1331
1331
  priority: number;
1332
1332
  action: string;
1333
1333
  details: string;
1334
1334
  timing: string;
1335
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1336
1335
  confidence?: number | undefined;
1336
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1337
1337
  }>, "many">;
1338
1338
  seasonal: z.ZodArray<z.ZodObject<{
1339
1339
  priority: z.ZodNumber;
@@ -1368,8 +1368,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1368
1368
  quantity: number;
1369
1369
  reason: string;
1370
1370
  inventoryItemId?: string | undefined;
1371
- estimatedCost?: number | undefined;
1372
1371
  confidence?: number | undefined;
1372
+ estimatedCost?: number | undefined;
1373
1373
  productName?: string | undefined;
1374
1374
  applicationTiming?: string | undefined;
1375
1375
  }, {
@@ -1377,8 +1377,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1377
1377
  quantity: number;
1378
1378
  reason: string;
1379
1379
  inventoryItemId?: string | undefined;
1380
- estimatedCost?: number | undefined;
1381
1380
  confidence?: number | undefined;
1381
+ estimatedCost?: number | undefined;
1382
1382
  productName?: string | undefined;
1383
1383
  applicationTiming?: string | undefined;
1384
1384
  }>, "many">;
@@ -1411,8 +1411,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1411
1411
  quantity: number;
1412
1412
  reason: string;
1413
1413
  inventoryItemId?: string | undefined;
1414
- estimatedCost?: number | undefined;
1415
1414
  confidence?: number | undefined;
1415
+ estimatedCost?: number | undefined;
1416
1416
  productName?: string | undefined;
1417
1417
  applicationTiming?: string | undefined;
1418
1418
  }[];
@@ -1421,8 +1421,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1421
1421
  action: string;
1422
1422
  details: string;
1423
1423
  timing: string;
1424
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1425
1424
  confidence?: number | undefined;
1425
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1426
1426
  }[];
1427
1427
  seasonal: {
1428
1428
  priority: number;
@@ -1446,8 +1446,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1446
1446
  quantity: number;
1447
1447
  reason: string;
1448
1448
  inventoryItemId?: string | undefined;
1449
- estimatedCost?: number | undefined;
1450
1449
  confidence?: number | undefined;
1450
+ estimatedCost?: number | undefined;
1451
1451
  productName?: string | undefined;
1452
1452
  applicationTiming?: string | undefined;
1453
1453
  }[];
@@ -1456,8 +1456,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1456
1456
  action: string;
1457
1457
  details: string;
1458
1458
  timing: string;
1459
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1460
1459
  confidence?: number | undefined;
1460
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1461
1461
  }[];
1462
1462
  seasonal: {
1463
1463
  priority: number;
@@ -1511,8 +1511,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1511
1511
  quantity: number;
1512
1512
  reason: string;
1513
1513
  inventoryItemId?: string | undefined;
1514
- estimatedCost?: number | undefined;
1515
1514
  confidence?: number | undefined;
1515
+ estimatedCost?: number | undefined;
1516
1516
  productName?: string | undefined;
1517
1517
  applicationTiming?: string | undefined;
1518
1518
  }[];
@@ -1521,8 +1521,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1521
1521
  action: string;
1522
1522
  details: string;
1523
1523
  timing: string;
1524
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1525
1524
  confidence?: number | undefined;
1525
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1526
1526
  }[];
1527
1527
  seasonal: {
1528
1528
  priority: number;
@@ -1551,8 +1551,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1551
1551
  bulkDensity: number;
1552
1552
  };
1553
1553
  quality: {
1554
- overall: "critical" | "poor" | "fair" | "good" | "excellent";
1555
1554
  score: number;
1555
+ overall: "critical" | "poor" | "fair" | "good" | "excellent";
1556
1556
  assessments: {
1557
1557
  pH: {
1558
1558
  recommendation: string;
@@ -1575,7 +1575,7 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1575
1575
  completeness: {
1576
1576
  score: number;
1577
1577
  missingFields: string[];
1578
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1578
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1579
1579
  };
1580
1580
  };
1581
1581
  };
@@ -1640,8 +1640,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1640
1640
  dataSources: Record<string, {
1641
1641
  date: string;
1642
1642
  source: "manual" | "regional_api" | "global_api" | "predicted";
1643
- priority: number;
1644
1643
  confidence: number;
1644
+ priority: number;
1645
1645
  notes?: string | undefined;
1646
1646
  sourceId?: string | undefined;
1647
1647
  }>;
@@ -1697,8 +1697,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1697
1697
  quantity: number;
1698
1698
  reason: string;
1699
1699
  inventoryItemId?: string | undefined;
1700
- estimatedCost?: number | undefined;
1701
1700
  confidence?: number | undefined;
1701
+ estimatedCost?: number | undefined;
1702
1702
  productName?: string | undefined;
1703
1703
  applicationTiming?: string | undefined;
1704
1704
  }[];
@@ -1707,8 +1707,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1707
1707
  action: string;
1708
1708
  details: string;
1709
1709
  timing: string;
1710
- severity?: "critical" | "low" | "medium" | "high" | undefined;
1711
1710
  confidence?: number | undefined;
1711
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1712
1712
  }[];
1713
1713
  seasonal: {
1714
1714
  priority: number;
@@ -1737,8 +1737,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1737
1737
  bulkDensity: number;
1738
1738
  };
1739
1739
  quality: {
1740
- overall: "critical" | "poor" | "fair" | "good" | "excellent";
1741
1740
  score: number;
1741
+ overall: "critical" | "poor" | "fair" | "good" | "excellent";
1742
1742
  assessments: {
1743
1743
  pH: {
1744
1744
  recommendation: string;
@@ -1761,7 +1761,7 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1761
1761
  completeness: {
1762
1762
  score: number;
1763
1763
  missingFields: string[];
1764
- completeness: "complete" | "mostly_complete" | "partial" | "incomplete";
1764
+ completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
1765
1765
  };
1766
1766
  };
1767
1767
  };
@@ -1826,8 +1826,8 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1826
1826
  dataSources: Record<string, {
1827
1827
  date: string;
1828
1828
  source: "manual" | "regional_api" | "global_api" | "predicted";
1829
- priority: number;
1830
1829
  confidence: number;
1830
+ priority: number;
1831
1831
  notes?: string | undefined;
1832
1832
  sourceId?: string | undefined;
1833
1833
  }>;