@deepintel-ltd/farmpro-contracts 1.11.3 → 1.11.5

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 (73) hide show
  1. package/dist/routes/admin.routes.d.ts +2591 -59
  2. package/dist/routes/admin.routes.d.ts.map +1 -1
  3. package/dist/routes/admin.routes.js +68 -6
  4. package/dist/routes/agent-workflows.routes.d.ts +140 -140
  5. package/dist/routes/agents.routes.d.ts +6 -6
  6. package/dist/routes/analytics.routes.d.ts +6 -6
  7. package/dist/routes/auth.routes.d.ts +503 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -1
  9. package/dist/routes/auth.routes.js +15 -0
  10. package/dist/routes/crop-profile.routes.d.ts +18 -18
  11. package/dist/routes/documents.routes.d.ts +58 -58
  12. package/dist/routes/equipment.routes.d.ts +62 -62
  13. package/dist/routes/extension.routes.d.ts +6 -6
  14. package/dist/routes/farm-status.routes.d.ts +6 -6
  15. package/dist/routes/farms.routes.d.ts +35 -0
  16. package/dist/routes/farms.routes.d.ts.map +1 -1
  17. package/dist/routes/fertigation.routes.d.ts +76 -76
  18. package/dist/routes/field-monitoring.routes.d.ts +34 -34
  19. package/dist/routes/field-observations.routes.d.ts +170 -170
  20. package/dist/routes/finance.routes.d.ts +6 -6
  21. package/dist/routes/geofences.routes.d.ts +8 -8
  22. package/dist/routes/irrigation.routes.d.ts +22 -22
  23. package/dist/routes/live-monitor.routes.d.ts +2 -2
  24. package/dist/routes/livestock-groups.routes.d.ts +30 -30
  25. package/dist/routes/livestock.routes.d.ts +24 -24
  26. package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
  27. package/dist/routes/pest-disease-risk.routes.d.ts +48 -48
  28. package/dist/routes/prescription-maps.routes.d.ts +2 -2
  29. package/dist/routes/seasonal-plans.routes.d.ts +6 -6
  30. package/dist/routes/soil-tests.routes.d.ts +30 -30
  31. package/dist/routes/subscriptions.routes.d.ts +2 -2
  32. package/dist/routes/team-payments.routes.d.ts +36 -36
  33. package/dist/routes/team.routes.d.ts +24 -24
  34. package/dist/routes/users.routes.d.ts +14 -0
  35. package/dist/routes/users.routes.d.ts.map +1 -1
  36. package/dist/routes/weather.routes.d.ts +14 -14
  37. package/dist/routes/yield-prediction.routes.d.ts +48 -48
  38. package/dist/schemas/admin.schemas.d.ts +470 -84
  39. package/dist/schemas/admin.schemas.d.ts.map +1 -1
  40. package/dist/schemas/admin.schemas.js +46 -0
  41. package/dist/schemas/agent-workflows.schemas.d.ts +111 -111
  42. package/dist/schemas/agents.schemas.d.ts +6 -6
  43. package/dist/schemas/analytics.schemas.d.ts +12 -12
  44. package/dist/schemas/crop-profile.schemas.d.ts +26 -26
  45. package/dist/schemas/documents.schemas.d.ts +48 -48
  46. package/dist/schemas/equipment.schemas.d.ts +48 -48
  47. package/dist/schemas/extension.schemas.d.ts +12 -12
  48. package/dist/schemas/farm-status.schemas.d.ts +8 -8
  49. package/dist/schemas/farms.schemas.d.ts +48 -0
  50. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  51. package/dist/schemas/farms.schemas.js +3 -0
  52. package/dist/schemas/fertigation.schemas.d.ts +20 -20
  53. package/dist/schemas/field-monitoring.schemas.d.ts +26 -26
  54. package/dist/schemas/field-observations.schemas.d.ts +126 -126
  55. package/dist/schemas/finance.schemas.d.ts +6 -6
  56. package/dist/schemas/geofences.schemas.d.ts +6 -6
  57. package/dist/schemas/irrigation.schemas.d.ts +12 -12
  58. package/dist/schemas/live-monitor.schemas.d.ts +2 -2
  59. package/dist/schemas/livestock-groups.schemas.d.ts +18 -18
  60. package/dist/schemas/livestock.schemas.d.ts +18 -18
  61. package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
  62. package/dist/schemas/pest-disease-risk.schemas.d.ts +32 -32
  63. package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
  64. package/dist/schemas/seasonal-plans.schemas.d.ts +12 -12
  65. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  66. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  67. package/dist/schemas/team.schemas.d.ts +18 -18
  68. package/dist/schemas/users.schemas.d.ts +15 -0
  69. package/dist/schemas/users.schemas.d.ts.map +1 -1
  70. package/dist/schemas/users.schemas.js +1 -0
  71. package/dist/schemas/weather.schemas.d.ts +28 -28
  72. package/dist/schemas/yield-prediction.schemas.d.ts +8 -8
  73. package/package.json +1 -1
@@ -10191,48 +10191,48 @@ export declare const financeRouter: {
10191
10191
  }>, "many">;
10192
10192
  estimatedTotalCost: z.ZodNumber;
10193
10193
  }, "strip", z.ZodTypeAny, {
10194
- crop: string;
10195
10194
  recommendations: {
10196
10195
  inputName: string;
10197
10196
  estimatedUnitCost: number;
10198
10197
  suggestedQuantity: number;
10199
10198
  estimatedTotalCost: number;
10200
10199
  }[];
10200
+ crop: string;
10201
10201
  estimatedTotalCost: number;
10202
10202
  }, {
10203
- crop: string;
10204
10203
  recommendations: {
10205
10204
  inputName: string;
10206
10205
  estimatedUnitCost: number;
10207
10206
  suggestedQuantity: number;
10208
10207
  estimatedTotalCost: number;
10209
10208
  }[];
10209
+ crop: string;
10210
10210
  estimatedTotalCost: number;
10211
10211
  }>;
10212
10212
  }, "strip", z.ZodTypeAny, {
10213
10213
  type: "finance-input-cost-optimizer";
10214
10214
  id: string;
10215
10215
  attributes: {
10216
- crop: string;
10217
10216
  recommendations: {
10218
10217
  inputName: string;
10219
10218
  estimatedUnitCost: number;
10220
10219
  suggestedQuantity: number;
10221
10220
  estimatedTotalCost: number;
10222
10221
  }[];
10222
+ crop: string;
10223
10223
  estimatedTotalCost: number;
10224
10224
  };
10225
10225
  }, {
10226
10226
  type: "finance-input-cost-optimizer";
10227
10227
  id: string;
10228
10228
  attributes: {
10229
- crop: string;
10230
10229
  recommendations: {
10231
10230
  inputName: string;
10232
10231
  estimatedUnitCost: number;
10233
10232
  suggestedQuantity: number;
10234
10233
  estimatedTotalCost: number;
10235
10234
  }[];
10235
+ crop: string;
10236
10236
  estimatedTotalCost: number;
10237
10237
  };
10238
10238
  }>;
@@ -10241,13 +10241,13 @@ export declare const financeRouter: {
10241
10241
  type: "finance-input-cost-optimizer";
10242
10242
  id: string;
10243
10243
  attributes: {
10244
- crop: string;
10245
10244
  recommendations: {
10246
10245
  inputName: string;
10247
10246
  estimatedUnitCost: number;
10248
10247
  suggestedQuantity: number;
10249
10248
  estimatedTotalCost: number;
10250
10249
  }[];
10250
+ crop: string;
10251
10251
  estimatedTotalCost: number;
10252
10252
  };
10253
10253
  };
@@ -10256,13 +10256,13 @@ export declare const financeRouter: {
10256
10256
  type: "finance-input-cost-optimizer";
10257
10257
  id: string;
10258
10258
  attributes: {
10259
- crop: string;
10260
10259
  recommendations: {
10261
10260
  inputName: string;
10262
10261
  estimatedUnitCost: number;
10263
10262
  suggestedQuantity: number;
10264
10263
  estimatedTotalCost: number;
10265
10264
  }[];
10265
+ crop: string;
10266
10266
  estimatedTotalCost: number;
10267
10267
  };
10268
10268
  };
@@ -37,11 +37,11 @@ export declare const geofencesRouter: {
37
37
  id: string;
38
38
  createdAt: string;
39
39
  name: string;
40
+ farmId: string;
40
41
  geometry: {
41
42
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
42
43
  coordinates: number[] | number[][] | number[][][] | number[][][][];
43
44
  };
44
- farmId: string;
45
45
  alertType: "both" | "entry" | "exit";
46
46
  isActive: boolean;
47
47
  updatedAt?: string | undefined;
@@ -52,11 +52,11 @@ export declare const geofencesRouter: {
52
52
  id: string;
53
53
  createdAt: string;
54
54
  name: string;
55
+ farmId: string;
55
56
  geometry: {
56
57
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
57
58
  coordinates: number[] | number[][] | number[][][] | number[][][][];
58
59
  };
59
- farmId: string;
60
60
  alertType: "both" | "entry" | "exit";
61
61
  isActive: boolean;
62
62
  updatedAt?: string | undefined;
@@ -323,11 +323,11 @@ export declare const geofencesRouter: {
323
323
  id: string;
324
324
  createdAt: string;
325
325
  name: string;
326
+ farmId: string;
326
327
  geometry: {
327
328
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
328
329
  coordinates: number[] | number[][] | number[][][] | number[][][][];
329
330
  };
330
- farmId: string;
331
331
  alertType: "both" | "entry" | "exit";
332
332
  isActive: boolean;
333
333
  updatedAt?: string | undefined;
@@ -338,11 +338,11 @@ export declare const geofencesRouter: {
338
338
  id: string;
339
339
  createdAt: string;
340
340
  name: string;
341
+ farmId: string;
341
342
  geometry: {
342
343
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
343
344
  coordinates: number[] | number[][] | number[][][] | number[][][][];
344
345
  };
345
- farmId: string;
346
346
  alertType: "both" | "entry" | "exit";
347
347
  isActive: boolean;
348
348
  updatedAt?: string | undefined;
@@ -662,11 +662,11 @@ export declare const geofencesRouter: {
662
662
  id: string;
663
663
  createdAt: string;
664
664
  name: string;
665
+ farmId: string;
665
666
  geometry: {
666
667
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
667
668
  coordinates: number[] | number[][] | number[][][] | number[][][][];
668
669
  };
669
- farmId: string;
670
670
  alertType: "both" | "entry" | "exit";
671
671
  isActive: boolean;
672
672
  updatedAt?: string | undefined;
@@ -677,11 +677,11 @@ export declare const geofencesRouter: {
677
677
  id: string;
678
678
  createdAt: string;
679
679
  name: string;
680
+ farmId: string;
680
681
  geometry: {
681
682
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
682
683
  coordinates: number[] | number[][] | number[][][] | number[][][][];
683
684
  };
684
- farmId: string;
685
685
  alertType: "both" | "entry" | "exit";
686
686
  isActive: boolean;
687
687
  updatedAt?: string | undefined;
@@ -951,11 +951,11 @@ export declare const geofencesRouter: {
951
951
  id: string;
952
952
  createdAt: string;
953
953
  name: string;
954
+ farmId: string;
954
955
  geometry: {
955
956
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
956
957
  coordinates: number[] | number[][] | number[][][] | number[][][][];
957
958
  };
958
- farmId: string;
959
959
  alertType: "both" | "entry" | "exit";
960
960
  isActive: boolean;
961
961
  updatedAt?: string | undefined;
@@ -966,11 +966,11 @@ export declare const geofencesRouter: {
966
966
  id: string;
967
967
  createdAt: string;
968
968
  name: string;
969
+ farmId: string;
969
970
  geometry: {
970
971
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
971
972
  coordinates: number[] | number[][] | number[][][] | number[][][][];
972
973
  };
973
- farmId: string;
974
974
  alertType: "both" | "entry" | "exit";
975
975
  isActive: boolean;
976
976
  updatedAt?: string | undefined;
@@ -1145,7 +1145,7 @@ export declare const irrigationRouter: {
1145
1145
  createdAt: z.ZodString;
1146
1146
  updatedAt: z.ZodString;
1147
1147
  }, "strip", z.ZodTypeAny, {
1148
- status: "pending" | "completed" | "cancelled" | "skipped";
1148
+ status: "skipped" | "pending" | "completed" | "cancelled";
1149
1149
  id: string;
1150
1150
  createdAt: string;
1151
1151
  updatedAt: string;
@@ -1169,7 +1169,7 @@ export declare const irrigationRouter: {
1169
1169
  soilMoistureAfter: number | null;
1170
1170
  skipReason: string | null;
1171
1171
  }, {
1172
- status: "pending" | "completed" | "cancelled" | "skipped";
1172
+ status: "skipped" | "pending" | "completed" | "cancelled";
1173
1173
  id: string;
1174
1174
  createdAt: string;
1175
1175
  updatedAt: string;
@@ -1197,7 +1197,7 @@ export declare const irrigationRouter: {
1197
1197
  type: "irrigation-events";
1198
1198
  id: string;
1199
1199
  attributes: {
1200
- status: "pending" | "completed" | "cancelled" | "skipped";
1200
+ status: "skipped" | "pending" | "completed" | "cancelled";
1201
1201
  id: string;
1202
1202
  createdAt: string;
1203
1203
  updatedAt: string;
@@ -1225,7 +1225,7 @@ export declare const irrigationRouter: {
1225
1225
  type: "irrigation-events";
1226
1226
  id: string;
1227
1227
  attributes: {
1228
- status: "pending" | "completed" | "cancelled" | "skipped";
1228
+ status: "skipped" | "pending" | "completed" | "cancelled";
1229
1229
  id: string;
1230
1230
  createdAt: string;
1231
1231
  updatedAt: string;
@@ -1262,7 +1262,7 @@ export declare const irrigationRouter: {
1262
1262
  type: "irrigation-events";
1263
1263
  id: string;
1264
1264
  attributes: {
1265
- status: "pending" | "completed" | "cancelled" | "skipped";
1265
+ status: "skipped" | "pending" | "completed" | "cancelled";
1266
1266
  id: string;
1267
1267
  createdAt: string;
1268
1268
  updatedAt: string;
@@ -1295,7 +1295,7 @@ export declare const irrigationRouter: {
1295
1295
  type: "irrigation-events";
1296
1296
  id: string;
1297
1297
  attributes: {
1298
- status: "pending" | "completed" | "cancelled" | "skipped";
1298
+ status: "skipped" | "pending" | "completed" | "cancelled";
1299
1299
  id: string;
1300
1300
  createdAt: string;
1301
1301
  updatedAt: string;
@@ -1352,9 +1352,9 @@ export declare const irrigationRouter: {
1352
1352
  limit: z.ZodDefault<z.ZodNumber>;
1353
1353
  }, "strip", z.ZodTypeAny, {
1354
1354
  limit: number;
1355
- status?: "pending" | "completed" | "cancelled" | "skipped" | undefined;
1355
+ status?: "skipped" | "pending" | "completed" | "cancelled" | undefined;
1356
1356
  }, {
1357
- status?: "pending" | "completed" | "cancelled" | "skipped" | undefined;
1357
+ status?: "skipped" | "pending" | "completed" | "cancelled" | undefined;
1358
1358
  limit?: number | undefined;
1359
1359
  }>;
1360
1360
  summary: "Get events for a specific irrigation schedule";
@@ -1402,7 +1402,7 @@ export declare const irrigationRouter: {
1402
1402
  createdAt: z.ZodString;
1403
1403
  updatedAt: z.ZodString;
1404
1404
  }, "strip", z.ZodTypeAny, {
1405
- status: "pending" | "completed" | "cancelled" | "skipped";
1405
+ status: "skipped" | "pending" | "completed" | "cancelled";
1406
1406
  id: string;
1407
1407
  createdAt: string;
1408
1408
  updatedAt: string;
@@ -1426,7 +1426,7 @@ export declare const irrigationRouter: {
1426
1426
  soilMoistureAfter: number | null;
1427
1427
  skipReason: string | null;
1428
1428
  }, {
1429
- status: "pending" | "completed" | "cancelled" | "skipped";
1429
+ status: "skipped" | "pending" | "completed" | "cancelled";
1430
1430
  id: string;
1431
1431
  createdAt: string;
1432
1432
  updatedAt: string;
@@ -1454,7 +1454,7 @@ export declare const irrigationRouter: {
1454
1454
  type: "irrigation-events";
1455
1455
  id: string;
1456
1456
  attributes: {
1457
- status: "pending" | "completed" | "cancelled" | "skipped";
1457
+ status: "skipped" | "pending" | "completed" | "cancelled";
1458
1458
  id: string;
1459
1459
  createdAt: string;
1460
1460
  updatedAt: string;
@@ -1482,7 +1482,7 @@ export declare const irrigationRouter: {
1482
1482
  type: "irrigation-events";
1483
1483
  id: string;
1484
1484
  attributes: {
1485
- status: "pending" | "completed" | "cancelled" | "skipped";
1485
+ status: "skipped" | "pending" | "completed" | "cancelled";
1486
1486
  id: string;
1487
1487
  createdAt: string;
1488
1488
  updatedAt: string;
@@ -1519,7 +1519,7 @@ export declare const irrigationRouter: {
1519
1519
  type: "irrigation-events";
1520
1520
  id: string;
1521
1521
  attributes: {
1522
- status: "pending" | "completed" | "cancelled" | "skipped";
1522
+ status: "skipped" | "pending" | "completed" | "cancelled";
1523
1523
  id: string;
1524
1524
  createdAt: string;
1525
1525
  updatedAt: string;
@@ -1552,7 +1552,7 @@ export declare const irrigationRouter: {
1552
1552
  type: "irrigation-events";
1553
1553
  id: string;
1554
1554
  attributes: {
1555
- status: "pending" | "completed" | "cancelled" | "skipped";
1555
+ status: "skipped" | "pending" | "completed" | "cancelled";
1556
1556
  id: string;
1557
1557
  createdAt: string;
1558
1558
  updatedAt: string;
@@ -1664,7 +1664,7 @@ export declare const irrigationRouter: {
1664
1664
  createdAt: z.ZodString;
1665
1665
  updatedAt: z.ZodString;
1666
1666
  }, "strip", z.ZodTypeAny, {
1667
- status: "pending" | "completed" | "cancelled" | "skipped";
1667
+ status: "skipped" | "pending" | "completed" | "cancelled";
1668
1668
  id: string;
1669
1669
  createdAt: string;
1670
1670
  updatedAt: string;
@@ -1688,7 +1688,7 @@ export declare const irrigationRouter: {
1688
1688
  soilMoistureAfter: number | null;
1689
1689
  skipReason: string | null;
1690
1690
  }, {
1691
- status: "pending" | "completed" | "cancelled" | "skipped";
1691
+ status: "skipped" | "pending" | "completed" | "cancelled";
1692
1692
  id: string;
1693
1693
  createdAt: string;
1694
1694
  updatedAt: string;
@@ -1716,7 +1716,7 @@ export declare const irrigationRouter: {
1716
1716
  type: "irrigation-events";
1717
1717
  id: string;
1718
1718
  attributes: {
1719
- status: "pending" | "completed" | "cancelled" | "skipped";
1719
+ status: "skipped" | "pending" | "completed" | "cancelled";
1720
1720
  id: string;
1721
1721
  createdAt: string;
1722
1722
  updatedAt: string;
@@ -1744,7 +1744,7 @@ export declare const irrigationRouter: {
1744
1744
  type: "irrigation-events";
1745
1745
  id: string;
1746
1746
  attributes: {
1747
- status: "pending" | "completed" | "cancelled" | "skipped";
1747
+ status: "skipped" | "pending" | "completed" | "cancelled";
1748
1748
  id: string;
1749
1749
  createdAt: string;
1750
1750
  updatedAt: string;
@@ -1853,7 +1853,7 @@ export declare const irrigationRouter: {
1853
1853
  createdAt: z.ZodString;
1854
1854
  updatedAt: z.ZodString;
1855
1855
  }, "strip", z.ZodTypeAny, {
1856
- status: "pending" | "completed" | "cancelled" | "skipped";
1856
+ status: "skipped" | "pending" | "completed" | "cancelled";
1857
1857
  id: string;
1858
1858
  createdAt: string;
1859
1859
  updatedAt: string;
@@ -1877,7 +1877,7 @@ export declare const irrigationRouter: {
1877
1877
  soilMoistureAfter: number | null;
1878
1878
  skipReason: string | null;
1879
1879
  }, {
1880
- status: "pending" | "completed" | "cancelled" | "skipped";
1880
+ status: "skipped" | "pending" | "completed" | "cancelled";
1881
1881
  id: string;
1882
1882
  createdAt: string;
1883
1883
  updatedAt: string;
@@ -1905,7 +1905,7 @@ export declare const irrigationRouter: {
1905
1905
  type: "irrigation-events";
1906
1906
  id: string;
1907
1907
  attributes: {
1908
- status: "pending" | "completed" | "cancelled" | "skipped";
1908
+ status: "skipped" | "pending" | "completed" | "cancelled";
1909
1909
  id: string;
1910
1910
  createdAt: string;
1911
1911
  updatedAt: string;
@@ -1933,7 +1933,7 @@ export declare const irrigationRouter: {
1933
1933
  type: "irrigation-events";
1934
1934
  id: string;
1935
1935
  attributes: {
1936
- status: "pending" | "completed" | "cancelled" | "skipped";
1936
+ status: "skipped" | "pending" | "completed" | "cancelled";
1937
1937
  id: string;
1938
1938
  createdAt: string;
1939
1939
  updatedAt: string;
@@ -430,15 +430,15 @@ export declare const liveMonitorRouter: {
430
430
  quality: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
431
431
  }, "strip", z.ZodTypeAny, {
432
432
  token: string;
433
+ expiresAt: string;
433
434
  farmId: string;
434
435
  quality: "low" | "medium" | "high";
435
- expiresAt: string;
436
436
  streamUrl: string | null;
437
437
  cameraId: string;
438
438
  }, {
439
439
  token: string;
440
- farmId: string;
441
440
  expiresAt: string;
441
+ farmId: string;
442
442
  streamUrl: string | null;
443
443
  cameraId: string;
444
444
  quality?: "low" | "medium" | "high" | undefined;