@deepintel-ltd/farmpro-contracts 1.16.0 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/routes/agents.routes.d.ts +8 -8
  2. package/dist/routes/documents.routes.d.ts +78 -78
  3. package/dist/routes/fertigation.routes.d.ts +4 -4
  4. package/dist/routes/field-observations.routes.d.ts +174 -28
  5. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  6. package/dist/routes/field-observations.routes.js +7 -4
  7. package/dist/routes/fields.routes.d.ts +797 -0
  8. package/dist/routes/fields.routes.d.ts.map +1 -1
  9. package/dist/routes/fields.routes.js +23 -1
  10. package/dist/routes/files.routes.d.ts +6 -6
  11. package/dist/routes/finance.routes.d.ts +30 -30
  12. package/dist/routes/inventory.routes.d.ts +6 -6
  13. package/dist/routes/irrigation.routes.d.ts +2 -2
  14. package/dist/routes/live-monitor.routes.d.ts +29 -9
  15. package/dist/routes/live-monitor.routes.d.ts.map +1 -1
  16. package/dist/routes/monitoring-visualization.routes.d.ts +173 -45
  17. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  18. package/dist/routes/monitoring-visualization.routes.js +4 -4
  19. package/dist/routes/pest-disease-risk.routes.d.ts +66 -66
  20. package/dist/routes/prescription-maps.routes.d.ts +4 -4
  21. package/dist/routes/subscriptions.routes.d.ts +4 -4
  22. package/dist/routes/tasks.routes.d.ts +108 -108
  23. package/dist/routes/team-payments.routes.d.ts +72 -72
  24. package/dist/routes/weather.routes.d.ts +42 -42
  25. package/dist/schemas/agents.schemas.d.ts +152 -8
  26. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  27. package/dist/schemas/agents.schemas.js +35 -0
  28. package/dist/schemas/common.schemas.d.ts +32 -0
  29. package/dist/schemas/common.schemas.d.ts.map +1 -1
  30. package/dist/schemas/common.schemas.js +14 -0
  31. package/dist/schemas/documents.schemas.d.ts +48 -48
  32. package/dist/schemas/fertigation.schemas.d.ts +2 -2
  33. package/dist/schemas/fields.schemas.d.ts +42 -0
  34. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  35. package/dist/schemas/fields.schemas.js +4 -0
  36. package/dist/schemas/files.schemas.d.ts +12 -12
  37. package/dist/schemas/finance.schemas.d.ts +34 -34
  38. package/dist/schemas/inventory.schemas.d.ts +6 -6
  39. package/dist/schemas/irrigation.schemas.d.ts +2 -2
  40. package/dist/schemas/live-monitor.schemas.d.ts +44 -12
  41. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
  42. package/dist/schemas/monitoring-visualization.schemas.d.ts +329 -46
  43. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  44. package/dist/schemas/monitoring-visualization.schemas.js +30 -0
  45. package/dist/schemas/pest-disease-risk.schemas.d.ts +56 -56
  46. package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
  47. package/dist/schemas/subscriptions.schemas.d.ts +2 -2
  48. package/dist/schemas/tasks.schemas.d.ts +96 -96
  49. package/dist/schemas/team-payments.schemas.d.ts +54 -54
  50. package/dist/schemas/weather.schemas.d.ts +84 -84
  51. package/package.json +1 -1
@@ -383,6 +383,13 @@ export declare const weatherAttributesSchema: z.ZodObject<{
383
383
  recommendation?: string | undefined;
384
384
  }>, "many">>;
385
385
  }, "strip", z.ZodTypeAny, {
386
+ current: {
387
+ temp: number;
388
+ condition: string;
389
+ icon?: string | undefined;
390
+ rainfall?: number | undefined;
391
+ humidity?: number | undefined;
392
+ };
386
393
  farmId: string;
387
394
  forecast: {
388
395
  temp: number;
@@ -391,13 +398,6 @@ export declare const weatherAttributesSchema: z.ZodObject<{
391
398
  rainfall?: number | undefined;
392
399
  rain?: number | undefined;
393
400
  }[];
394
- current: {
395
- temp: number;
396
- condition: string;
397
- icon?: string | undefined;
398
- rainfall?: number | undefined;
399
- humidity?: number | undefined;
400
- };
401
401
  alerts?: {
402
402
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
403
403
  message: string;
@@ -430,6 +430,13 @@ export declare const weatherAttributesSchema: z.ZodObject<{
430
430
  recommendation?: string | undefined;
431
431
  }[] | undefined;
432
432
  }, {
433
+ current: {
434
+ temp: number;
435
+ condition: string;
436
+ icon?: string | undefined;
437
+ rainfall?: number | undefined;
438
+ humidity?: number | undefined;
439
+ };
433
440
  farmId: string;
434
441
  forecast: {
435
442
  temp: number;
@@ -438,13 +445,6 @@ export declare const weatherAttributesSchema: z.ZodObject<{
438
445
  rainfall?: number | undefined;
439
446
  rain?: number | undefined;
440
447
  }[];
441
- current: {
442
- temp: number;
443
- condition: string;
444
- icon?: string | undefined;
445
- rainfall?: number | undefined;
446
- humidity?: number | undefined;
447
- };
448
448
  alerts?: {
449
449
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
450
450
  message: string;
@@ -1347,6 +1347,13 @@ export declare const weatherResourceSchema: z.ZodObject<{
1347
1347
  recommendation?: string | undefined;
1348
1348
  }>, "many">>;
1349
1349
  }, "strip", z.ZodTypeAny, {
1350
+ current: {
1351
+ temp: number;
1352
+ condition: string;
1353
+ icon?: string | undefined;
1354
+ rainfall?: number | undefined;
1355
+ humidity?: number | undefined;
1356
+ };
1350
1357
  farmId: string;
1351
1358
  forecast: {
1352
1359
  temp: number;
@@ -1355,13 +1362,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
1355
1362
  rainfall?: number | undefined;
1356
1363
  rain?: number | undefined;
1357
1364
  }[];
1358
- current: {
1359
- temp: number;
1360
- condition: string;
1361
- icon?: string | undefined;
1362
- rainfall?: number | undefined;
1363
- humidity?: number | undefined;
1364
- };
1365
1365
  alerts?: {
1366
1366
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1367
1367
  message: string;
@@ -1394,6 +1394,13 @@ export declare const weatherResourceSchema: z.ZodObject<{
1394
1394
  recommendation?: string | undefined;
1395
1395
  }[] | undefined;
1396
1396
  }, {
1397
+ current: {
1398
+ temp: number;
1399
+ condition: string;
1400
+ icon?: string | undefined;
1401
+ rainfall?: number | undefined;
1402
+ humidity?: number | undefined;
1403
+ };
1397
1404
  farmId: string;
1398
1405
  forecast: {
1399
1406
  temp: number;
@@ -1402,13 +1409,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
1402
1409
  rainfall?: number | undefined;
1403
1410
  rain?: number | undefined;
1404
1411
  }[];
1405
- current: {
1406
- temp: number;
1407
- condition: string;
1408
- icon?: string | undefined;
1409
- rainfall?: number | undefined;
1410
- humidity?: number | undefined;
1411
- };
1412
1412
  alerts?: {
1413
1413
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1414
1414
  message: string;
@@ -1448,6 +1448,13 @@ export declare const weatherResourceSchema: z.ZodObject<{
1448
1448
  type: string;
1449
1449
  id: string;
1450
1450
  attributes: {
1451
+ current: {
1452
+ temp: number;
1453
+ condition: string;
1454
+ icon?: string | undefined;
1455
+ rainfall?: number | undefined;
1456
+ humidity?: number | undefined;
1457
+ };
1451
1458
  farmId: string;
1452
1459
  forecast: {
1453
1460
  temp: number;
@@ -1456,13 +1463,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
1456
1463
  rainfall?: number | undefined;
1457
1464
  rain?: number | undefined;
1458
1465
  }[];
1459
- current: {
1460
- temp: number;
1461
- condition: string;
1462
- icon?: string | undefined;
1463
- rainfall?: number | undefined;
1464
- humidity?: number | undefined;
1465
- };
1466
1466
  alerts?: {
1467
1467
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1468
1468
  message: string;
@@ -1502,6 +1502,13 @@ export declare const weatherResourceSchema: z.ZodObject<{
1502
1502
  type: string;
1503
1503
  id: string;
1504
1504
  attributes: {
1505
+ current: {
1506
+ temp: number;
1507
+ condition: string;
1508
+ icon?: string | undefined;
1509
+ rainfall?: number | undefined;
1510
+ humidity?: number | undefined;
1511
+ };
1505
1512
  farmId: string;
1506
1513
  forecast: {
1507
1514
  temp: number;
@@ -1510,13 +1517,6 @@ export declare const weatherResourceSchema: z.ZodObject<{
1510
1517
  rainfall?: number | undefined;
1511
1518
  rain?: number | undefined;
1512
1519
  }[];
1513
- current: {
1514
- temp: number;
1515
- condition: string;
1516
- icon?: string | undefined;
1517
- rainfall?: number | undefined;
1518
- humidity?: number | undefined;
1519
- };
1520
1520
  alerts?: {
1521
1521
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1522
1522
  message: string;
@@ -1748,6 +1748,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
1748
1748
  recommendation?: string | undefined;
1749
1749
  }>, "many">>;
1750
1750
  }, "strip", z.ZodTypeAny, {
1751
+ current: {
1752
+ temp: number;
1753
+ condition: string;
1754
+ icon?: string | undefined;
1755
+ rainfall?: number | undefined;
1756
+ humidity?: number | undefined;
1757
+ };
1751
1758
  farmId: string;
1752
1759
  forecast: {
1753
1760
  temp: number;
@@ -1756,13 +1763,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
1756
1763
  rainfall?: number | undefined;
1757
1764
  rain?: number | undefined;
1758
1765
  }[];
1759
- current: {
1760
- temp: number;
1761
- condition: string;
1762
- icon?: string | undefined;
1763
- rainfall?: number | undefined;
1764
- humidity?: number | undefined;
1765
- };
1766
1766
  alerts?: {
1767
1767
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1768
1768
  message: string;
@@ -1795,6 +1795,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
1795
1795
  recommendation?: string | undefined;
1796
1796
  }[] | undefined;
1797
1797
  }, {
1798
+ current: {
1799
+ temp: number;
1800
+ condition: string;
1801
+ icon?: string | undefined;
1802
+ rainfall?: number | undefined;
1803
+ humidity?: number | undefined;
1804
+ };
1798
1805
  farmId: string;
1799
1806
  forecast: {
1800
1807
  temp: number;
@@ -1803,13 +1810,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
1803
1810
  rainfall?: number | undefined;
1804
1811
  rain?: number | undefined;
1805
1812
  }[];
1806
- current: {
1807
- temp: number;
1808
- condition: string;
1809
- icon?: string | undefined;
1810
- rainfall?: number | undefined;
1811
- humidity?: number | undefined;
1812
- };
1813
1813
  alerts?: {
1814
1814
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1815
1815
  message: string;
@@ -1849,6 +1849,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
1849
1849
  type: string;
1850
1850
  id: string;
1851
1851
  attributes: {
1852
+ current: {
1853
+ temp: number;
1854
+ condition: string;
1855
+ icon?: string | undefined;
1856
+ rainfall?: number | undefined;
1857
+ humidity?: number | undefined;
1858
+ };
1852
1859
  farmId: string;
1853
1860
  forecast: {
1854
1861
  temp: number;
@@ -1857,13 +1864,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
1857
1864
  rainfall?: number | undefined;
1858
1865
  rain?: number | undefined;
1859
1866
  }[];
1860
- current: {
1861
- temp: number;
1862
- condition: string;
1863
- icon?: string | undefined;
1864
- rainfall?: number | undefined;
1865
- humidity?: number | undefined;
1866
- };
1867
1867
  alerts?: {
1868
1868
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1869
1869
  message: string;
@@ -1903,6 +1903,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
1903
1903
  type: string;
1904
1904
  id: string;
1905
1905
  attributes: {
1906
+ current: {
1907
+ temp: number;
1908
+ condition: string;
1909
+ icon?: string | undefined;
1910
+ rainfall?: number | undefined;
1911
+ humidity?: number | undefined;
1912
+ };
1906
1913
  farmId: string;
1907
1914
  forecast: {
1908
1915
  temp: number;
@@ -1911,13 +1918,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
1911
1918
  rainfall?: number | undefined;
1912
1919
  rain?: number | undefined;
1913
1920
  }[];
1914
- current: {
1915
- temp: number;
1916
- condition: string;
1917
- icon?: string | undefined;
1918
- rainfall?: number | undefined;
1919
- humidity?: number | undefined;
1920
- };
1921
1921
  alerts?: {
1922
1922
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
1923
1923
  message: string;
@@ -1983,6 +1983,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
1983
1983
  type: string;
1984
1984
  id: string;
1985
1985
  attributes: {
1986
+ current: {
1987
+ temp: number;
1988
+ condition: string;
1989
+ icon?: string | undefined;
1990
+ rainfall?: number | undefined;
1991
+ humidity?: number | undefined;
1992
+ };
1986
1993
  farmId: string;
1987
1994
  forecast: {
1988
1995
  temp: number;
@@ -1991,13 +1998,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
1991
1998
  rainfall?: number | undefined;
1992
1999
  rain?: number | undefined;
1993
2000
  }[];
1994
- current: {
1995
- temp: number;
1996
- condition: string;
1997
- icon?: string | undefined;
1998
- rainfall?: number | undefined;
1999
- humidity?: number | undefined;
2000
- };
2001
2001
  alerts?: {
2002
2002
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
2003
2003
  message: string;
@@ -2049,6 +2049,13 @@ export declare const weatherResponseSchema: z.ZodObject<{
2049
2049
  type: string;
2050
2050
  id: string;
2051
2051
  attributes: {
2052
+ current: {
2053
+ temp: number;
2054
+ condition: string;
2055
+ icon?: string | undefined;
2056
+ rainfall?: number | undefined;
2057
+ humidity?: number | undefined;
2058
+ };
2052
2059
  farmId: string;
2053
2060
  forecast: {
2054
2061
  temp: number;
@@ -2057,13 +2064,6 @@ export declare const weatherResponseSchema: z.ZodObject<{
2057
2064
  rainfall?: number | undefined;
2058
2065
  rain?: number | undefined;
2059
2066
  }[];
2060
- current: {
2061
- temp: number;
2062
- condition: string;
2063
- icon?: string | undefined;
2064
- rainfall?: number | undefined;
2065
- humidity?: number | undefined;
2066
- };
2067
2067
  alerts?: {
2068
2068
  type: "drought" | "heavy-rain" | "frost" | "optimal" | "wind";
2069
2069
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",