@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.
- package/dist/routes/agents.routes.d.ts +8 -8
- package/dist/routes/documents.routes.d.ts +78 -78
- package/dist/routes/fertigation.routes.d.ts +4 -4
- package/dist/routes/field-observations.routes.d.ts +174 -28
- package/dist/routes/field-observations.routes.d.ts.map +1 -1
- package/dist/routes/field-observations.routes.js +7 -4
- package/dist/routes/fields.routes.d.ts +797 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +23 -1
- package/dist/routes/files.routes.d.ts +6 -6
- package/dist/routes/finance.routes.d.ts +30 -30
- package/dist/routes/inventory.routes.d.ts +6 -6
- package/dist/routes/irrigation.routes.d.ts +2 -2
- package/dist/routes/live-monitor.routes.d.ts +29 -9
- package/dist/routes/live-monitor.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +173 -45
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.js +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +66 -66
- package/dist/routes/prescription-maps.routes.d.ts +4 -4
- package/dist/routes/subscriptions.routes.d.ts +4 -4
- package/dist/routes/tasks.routes.d.ts +108 -108
- package/dist/routes/team-payments.routes.d.ts +72 -72
- package/dist/routes/weather.routes.d.ts +42 -42
- package/dist/schemas/agents.schemas.d.ts +152 -8
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +35 -0
- package/dist/schemas/common.schemas.d.ts +32 -0
- package/dist/schemas/common.schemas.d.ts.map +1 -1
- package/dist/schemas/common.schemas.js +14 -0
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/fertigation.schemas.d.ts +2 -2
- package/dist/schemas/fields.schemas.d.ts +42 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +4 -0
- package/dist/schemas/files.schemas.d.ts +12 -12
- package/dist/schemas/finance.schemas.d.ts +34 -34
- package/dist/schemas/inventory.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +2 -2
- package/dist/schemas/live-monitor.schemas.d.ts +44 -12
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.d.ts +329 -46
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +30 -0
- package/dist/schemas/pest-disease-risk.schemas.d.ts +56 -56
- package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
- package/dist/schemas/subscriptions.schemas.d.ts +2 -2
- package/dist/schemas/tasks.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +54 -54
- package/dist/schemas/weather.schemas.d.ts +84 -84
- package/package.json +1 -1
|
@@ -94,8 +94,8 @@ export declare const expenseAttributesSchema: z.ZodObject<{
|
|
|
94
94
|
createdAt: string;
|
|
95
95
|
updatedAt: string;
|
|
96
96
|
description: string;
|
|
97
|
-
fieldId: string | null;
|
|
98
97
|
category: string;
|
|
98
|
+
fieldId: string | null;
|
|
99
99
|
cropId: string | null;
|
|
100
100
|
amount: number;
|
|
101
101
|
allocationType: "crop" | "field" | "general";
|
|
@@ -108,8 +108,8 @@ export declare const expenseAttributesSchema: z.ZodObject<{
|
|
|
108
108
|
createdAt: string;
|
|
109
109
|
updatedAt: string;
|
|
110
110
|
description: string;
|
|
111
|
-
fieldId: string | null;
|
|
112
111
|
category: string;
|
|
112
|
+
fieldId: string | null;
|
|
113
113
|
cropId: string | null;
|
|
114
114
|
amount: number;
|
|
115
115
|
allocationType: "crop" | "field" | "general";
|
|
@@ -170,16 +170,16 @@ export declare const updateExpenseAttributesSchema: z.ZodObject<{
|
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
date?: string | undefined;
|
|
172
172
|
description?: string | undefined;
|
|
173
|
-
fieldId?: string | null | undefined;
|
|
174
173
|
category?: string | undefined;
|
|
174
|
+
fieldId?: string | null | undefined;
|
|
175
175
|
cropId?: string | null | undefined;
|
|
176
176
|
amount?: number | undefined;
|
|
177
177
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
date?: string | undefined;
|
|
180
180
|
description?: string | undefined;
|
|
181
|
-
fieldId?: string | null | undefined;
|
|
182
181
|
category?: string | undefined;
|
|
182
|
+
fieldId?: string | null | undefined;
|
|
183
183
|
cropId?: string | null | undefined;
|
|
184
184
|
amount?: number | undefined;
|
|
185
185
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
@@ -456,16 +456,16 @@ export declare const updateExpenseSchema: z.ZodObject<{
|
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
457
|
date?: string | undefined;
|
|
458
458
|
description?: string | undefined;
|
|
459
|
-
fieldId?: string | null | undefined;
|
|
460
459
|
category?: string | undefined;
|
|
460
|
+
fieldId?: string | null | undefined;
|
|
461
461
|
cropId?: string | null | undefined;
|
|
462
462
|
amount?: number | undefined;
|
|
463
463
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
464
464
|
}, {
|
|
465
465
|
date?: string | undefined;
|
|
466
466
|
description?: string | undefined;
|
|
467
|
-
fieldId?: string | null | undefined;
|
|
468
467
|
category?: string | undefined;
|
|
468
|
+
fieldId?: string | null | undefined;
|
|
469
469
|
cropId?: string | null | undefined;
|
|
470
470
|
amount?: number | undefined;
|
|
471
471
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
@@ -476,8 +476,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
|
|
|
476
476
|
attributes: {
|
|
477
477
|
date?: string | undefined;
|
|
478
478
|
description?: string | undefined;
|
|
479
|
-
fieldId?: string | null | undefined;
|
|
480
479
|
category?: string | undefined;
|
|
480
|
+
fieldId?: string | null | undefined;
|
|
481
481
|
cropId?: string | null | undefined;
|
|
482
482
|
amount?: number | undefined;
|
|
483
483
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
@@ -488,8 +488,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
|
|
|
488
488
|
attributes: {
|
|
489
489
|
date?: string | undefined;
|
|
490
490
|
description?: string | undefined;
|
|
491
|
-
fieldId?: string | null | undefined;
|
|
492
491
|
category?: string | undefined;
|
|
492
|
+
fieldId?: string | null | undefined;
|
|
493
493
|
cropId?: string | null | undefined;
|
|
494
494
|
amount?: number | undefined;
|
|
495
495
|
allocationType?: "crop" | "field" | "general" | undefined;
|
|
@@ -714,8 +714,8 @@ export declare const expenseResourceSchema: z.ZodObject<{
|
|
|
714
714
|
createdAt: string;
|
|
715
715
|
updatedAt: string;
|
|
716
716
|
description: string;
|
|
717
|
-
fieldId: string | null;
|
|
718
717
|
category: string;
|
|
718
|
+
fieldId: string | null;
|
|
719
719
|
cropId: string | null;
|
|
720
720
|
amount: number;
|
|
721
721
|
allocationType: "crop" | "field" | "general";
|
|
@@ -728,8 +728,8 @@ export declare const expenseResourceSchema: z.ZodObject<{
|
|
|
728
728
|
createdAt: string;
|
|
729
729
|
updatedAt: string;
|
|
730
730
|
description: string;
|
|
731
|
-
fieldId: string | null;
|
|
732
731
|
category: string;
|
|
732
|
+
fieldId: string | null;
|
|
733
733
|
cropId: string | null;
|
|
734
734
|
amount: number;
|
|
735
735
|
allocationType: "crop" | "field" | "general";
|
|
@@ -749,8 +749,8 @@ export declare const expenseResourceSchema: z.ZodObject<{
|
|
|
749
749
|
createdAt: string;
|
|
750
750
|
updatedAt: string;
|
|
751
751
|
description: string;
|
|
752
|
-
fieldId: string | null;
|
|
753
752
|
category: string;
|
|
753
|
+
fieldId: string | null;
|
|
754
754
|
cropId: string | null;
|
|
755
755
|
amount: number;
|
|
756
756
|
allocationType: "crop" | "field" | "general";
|
|
@@ -770,8 +770,8 @@ export declare const expenseResourceSchema: z.ZodObject<{
|
|
|
770
770
|
createdAt: string;
|
|
771
771
|
updatedAt: string;
|
|
772
772
|
description: string;
|
|
773
|
-
fieldId: string | null;
|
|
774
773
|
category: string;
|
|
774
|
+
fieldId: string | null;
|
|
775
775
|
cropId: string | null;
|
|
776
776
|
amount: number;
|
|
777
777
|
allocationType: "crop" | "field" | "general";
|
|
@@ -905,8 +905,8 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
|
|
|
905
905
|
createdAt: string;
|
|
906
906
|
updatedAt: string;
|
|
907
907
|
description: string;
|
|
908
|
-
fieldId: string | null;
|
|
909
908
|
category: string;
|
|
909
|
+
fieldId: string | null;
|
|
910
910
|
cropId: string | null;
|
|
911
911
|
amount: number;
|
|
912
912
|
allocationType: "crop" | "field" | "general";
|
|
@@ -919,8 +919,8 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
|
|
|
919
919
|
createdAt: string;
|
|
920
920
|
updatedAt: string;
|
|
921
921
|
description: string;
|
|
922
|
-
fieldId: string | null;
|
|
923
922
|
category: string;
|
|
923
|
+
fieldId: string | null;
|
|
924
924
|
cropId: string | null;
|
|
925
925
|
amount: number;
|
|
926
926
|
allocationType: "crop" | "field" | "general";
|
|
@@ -971,8 +971,8 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
|
|
|
971
971
|
createdAt: string;
|
|
972
972
|
updatedAt: string;
|
|
973
973
|
description: string;
|
|
974
|
-
fieldId: string | null;
|
|
975
974
|
category: string;
|
|
975
|
+
fieldId: string | null;
|
|
976
976
|
cropId: string | null;
|
|
977
977
|
amount: number;
|
|
978
978
|
allocationType: "crop" | "field" | "general";
|
|
@@ -998,8 +998,8 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
|
|
|
998
998
|
createdAt: string;
|
|
999
999
|
updatedAt: string;
|
|
1000
1000
|
description: string;
|
|
1001
|
-
fieldId: string | null;
|
|
1002
1001
|
category: string;
|
|
1002
|
+
fieldId: string | null;
|
|
1003
1003
|
cropId: string | null;
|
|
1004
1004
|
amount: number;
|
|
1005
1005
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1534,8 +1534,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1534
1534
|
createdAt: string;
|
|
1535
1535
|
updatedAt: string;
|
|
1536
1536
|
description: string;
|
|
1537
|
-
fieldId: string | null;
|
|
1538
1537
|
category: string;
|
|
1538
|
+
fieldId: string | null;
|
|
1539
1539
|
cropId: string | null;
|
|
1540
1540
|
amount: number;
|
|
1541
1541
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1548,8 +1548,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1548
1548
|
createdAt: string;
|
|
1549
1549
|
updatedAt: string;
|
|
1550
1550
|
description: string;
|
|
1551
|
-
fieldId: string | null;
|
|
1552
1551
|
category: string;
|
|
1552
|
+
fieldId: string | null;
|
|
1553
1553
|
cropId: string | null;
|
|
1554
1554
|
amount: number;
|
|
1555
1555
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1569,8 +1569,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1569
1569
|
createdAt: string;
|
|
1570
1570
|
updatedAt: string;
|
|
1571
1571
|
description: string;
|
|
1572
|
-
fieldId: string | null;
|
|
1573
1572
|
category: string;
|
|
1573
|
+
fieldId: string | null;
|
|
1574
1574
|
cropId: string | null;
|
|
1575
1575
|
amount: number;
|
|
1576
1576
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1590,8 +1590,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1590
1590
|
createdAt: string;
|
|
1591
1591
|
updatedAt: string;
|
|
1592
1592
|
description: string;
|
|
1593
|
-
fieldId: string | null;
|
|
1594
1593
|
category: string;
|
|
1594
|
+
fieldId: string | null;
|
|
1595
1595
|
cropId: string | null;
|
|
1596
1596
|
amount: number;
|
|
1597
1597
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1637,8 +1637,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1637
1637
|
createdAt: string;
|
|
1638
1638
|
updatedAt: string;
|
|
1639
1639
|
description: string;
|
|
1640
|
-
fieldId: string | null;
|
|
1641
1640
|
category: string;
|
|
1641
|
+
fieldId: string | null;
|
|
1642
1642
|
cropId: string | null;
|
|
1643
1643
|
amount: number;
|
|
1644
1644
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1670,8 +1670,8 @@ export declare const expenseResponseSchema: z.ZodObject<{
|
|
|
1670
1670
|
createdAt: string;
|
|
1671
1671
|
updatedAt: string;
|
|
1672
1672
|
description: string;
|
|
1673
|
-
fieldId: string | null;
|
|
1674
1673
|
category: string;
|
|
1674
|
+
fieldId: string | null;
|
|
1675
1675
|
cropId: string | null;
|
|
1676
1676
|
amount: number;
|
|
1677
1677
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1719,8 +1719,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1719
1719
|
createdAt: string;
|
|
1720
1720
|
updatedAt: string;
|
|
1721
1721
|
description: string;
|
|
1722
|
-
fieldId: string | null;
|
|
1723
1722
|
category: string;
|
|
1723
|
+
fieldId: string | null;
|
|
1724
1724
|
cropId: string | null;
|
|
1725
1725
|
amount: number;
|
|
1726
1726
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1733,8 +1733,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1733
1733
|
createdAt: string;
|
|
1734
1734
|
updatedAt: string;
|
|
1735
1735
|
description: string;
|
|
1736
|
-
fieldId: string | null;
|
|
1737
1736
|
category: string;
|
|
1737
|
+
fieldId: string | null;
|
|
1738
1738
|
cropId: string | null;
|
|
1739
1739
|
amount: number;
|
|
1740
1740
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1785,8 +1785,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1785
1785
|
createdAt: string;
|
|
1786
1786
|
updatedAt: string;
|
|
1787
1787
|
description: string;
|
|
1788
|
-
fieldId: string | null;
|
|
1789
1788
|
category: string;
|
|
1789
|
+
fieldId: string | null;
|
|
1790
1790
|
cropId: string | null;
|
|
1791
1791
|
amount: number;
|
|
1792
1792
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1812,8 +1812,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1812
1812
|
createdAt: string;
|
|
1813
1813
|
updatedAt: string;
|
|
1814
1814
|
description: string;
|
|
1815
|
-
fieldId: string | null;
|
|
1816
1815
|
category: string;
|
|
1816
|
+
fieldId: string | null;
|
|
1817
1817
|
cropId: string | null;
|
|
1818
1818
|
amount: number;
|
|
1819
1819
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1865,8 +1865,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1865
1865
|
createdAt: string;
|
|
1866
1866
|
updatedAt: string;
|
|
1867
1867
|
description: string;
|
|
1868
|
-
fieldId: string | null;
|
|
1869
1868
|
category: string;
|
|
1869
|
+
fieldId: string | null;
|
|
1870
1870
|
cropId: string | null;
|
|
1871
1871
|
amount: number;
|
|
1872
1872
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1904,8 +1904,8 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
|
|
|
1904
1904
|
createdAt: string;
|
|
1905
1905
|
updatedAt: string;
|
|
1906
1906
|
description: string;
|
|
1907
|
-
fieldId: string | null;
|
|
1908
1907
|
category: string;
|
|
1908
|
+
fieldId: string | null;
|
|
1909
1909
|
cropId: string | null;
|
|
1910
1910
|
amount: number;
|
|
1911
1911
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1959,8 +1959,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
1959
1959
|
createdAt: string;
|
|
1960
1960
|
updatedAt: string;
|
|
1961
1961
|
description: string;
|
|
1962
|
-
fieldId: string | null;
|
|
1963
1962
|
category: string;
|
|
1963
|
+
fieldId: string | null;
|
|
1964
1964
|
cropId: string | null;
|
|
1965
1965
|
amount: number;
|
|
1966
1966
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1973,8 +1973,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
1973
1973
|
createdAt: string;
|
|
1974
1974
|
updatedAt: string;
|
|
1975
1975
|
description: string;
|
|
1976
|
-
fieldId: string | null;
|
|
1977
1976
|
category: string;
|
|
1977
|
+
fieldId: string | null;
|
|
1978
1978
|
cropId: string | null;
|
|
1979
1979
|
amount: number;
|
|
1980
1980
|
allocationType: "crop" | "field" | "general";
|
|
@@ -1994,8 +1994,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
1994
1994
|
createdAt: string;
|
|
1995
1995
|
updatedAt: string;
|
|
1996
1996
|
description: string;
|
|
1997
|
-
fieldId: string | null;
|
|
1998
1997
|
category: string;
|
|
1998
|
+
fieldId: string | null;
|
|
1999
1999
|
cropId: string | null;
|
|
2000
2000
|
amount: number;
|
|
2001
2001
|
allocationType: "crop" | "field" | "general";
|
|
@@ -2015,8 +2015,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
2015
2015
|
createdAt: string;
|
|
2016
2016
|
updatedAt: string;
|
|
2017
2017
|
description: string;
|
|
2018
|
-
fieldId: string | null;
|
|
2019
2018
|
category: string;
|
|
2019
|
+
fieldId: string | null;
|
|
2020
2020
|
cropId: string | null;
|
|
2021
2021
|
amount: number;
|
|
2022
2022
|
allocationType: "crop" | "field" | "general";
|
|
@@ -2062,8 +2062,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
2062
2062
|
createdAt: string;
|
|
2063
2063
|
updatedAt: string;
|
|
2064
2064
|
description: string;
|
|
2065
|
-
fieldId: string | null;
|
|
2066
2065
|
category: string;
|
|
2066
|
+
fieldId: string | null;
|
|
2067
2067
|
cropId: string | null;
|
|
2068
2068
|
amount: number;
|
|
2069
2069
|
allocationType: "crop" | "field" | "general";
|
|
@@ -2095,8 +2095,8 @@ export declare const expenseListResponseSchema: z.ZodObject<{
|
|
|
2095
2095
|
createdAt: string;
|
|
2096
2096
|
updatedAt: string;
|
|
2097
2097
|
description: string;
|
|
2098
|
-
fieldId: string | null;
|
|
2099
2098
|
category: string;
|
|
2099
|
+
fieldId: string | null;
|
|
2100
2100
|
cropId: string | null;
|
|
2101
2101
|
amount: number;
|
|
2102
2102
|
allocationType: "crop" | "field" | "general";
|
|
@@ -82,8 +82,8 @@ export declare const logPurchaseAttributesSchema: z.ZodObject<{
|
|
|
82
82
|
unitCost: number;
|
|
83
83
|
totalCost: number;
|
|
84
84
|
name?: string | undefined;
|
|
85
|
-
fieldId?: string | undefined;
|
|
86
85
|
category?: string | undefined;
|
|
86
|
+
fieldId?: string | undefined;
|
|
87
87
|
itemId?: string | undefined;
|
|
88
88
|
supplier?: string | undefined;
|
|
89
89
|
cropId?: string | undefined;
|
|
@@ -94,8 +94,8 @@ export declare const logPurchaseAttributesSchema: z.ZodObject<{
|
|
|
94
94
|
unitCost: number;
|
|
95
95
|
totalCost: number;
|
|
96
96
|
name?: string | undefined;
|
|
97
|
-
fieldId?: string | undefined;
|
|
98
97
|
category?: string | undefined;
|
|
98
|
+
fieldId?: string | undefined;
|
|
99
99
|
itemId?: string | undefined;
|
|
100
100
|
supplier?: string | undefined;
|
|
101
101
|
cropId?: string | undefined;
|
|
@@ -194,8 +194,8 @@ export declare const logPurchaseSchema: z.ZodObject<{
|
|
|
194
194
|
unitCost: number;
|
|
195
195
|
totalCost: number;
|
|
196
196
|
name?: string | undefined;
|
|
197
|
-
fieldId?: string | undefined;
|
|
198
197
|
category?: string | undefined;
|
|
198
|
+
fieldId?: string | undefined;
|
|
199
199
|
itemId?: string | undefined;
|
|
200
200
|
supplier?: string | undefined;
|
|
201
201
|
cropId?: string | undefined;
|
|
@@ -206,8 +206,8 @@ export declare const logPurchaseSchema: z.ZodObject<{
|
|
|
206
206
|
unitCost: number;
|
|
207
207
|
totalCost: number;
|
|
208
208
|
name?: string | undefined;
|
|
209
|
-
fieldId?: string | undefined;
|
|
210
209
|
category?: string | undefined;
|
|
210
|
+
fieldId?: string | undefined;
|
|
211
211
|
itemId?: string | undefined;
|
|
212
212
|
supplier?: string | undefined;
|
|
213
213
|
cropId?: string | undefined;
|
|
@@ -221,8 +221,8 @@ export declare const logPurchaseSchema: z.ZodObject<{
|
|
|
221
221
|
unitCost: number;
|
|
222
222
|
totalCost: number;
|
|
223
223
|
name?: string | undefined;
|
|
224
|
-
fieldId?: string | undefined;
|
|
225
224
|
category?: string | undefined;
|
|
225
|
+
fieldId?: string | undefined;
|
|
226
226
|
itemId?: string | undefined;
|
|
227
227
|
supplier?: string | undefined;
|
|
228
228
|
cropId?: string | undefined;
|
|
@@ -236,8 +236,8 @@ export declare const logPurchaseSchema: z.ZodObject<{
|
|
|
236
236
|
unitCost: number;
|
|
237
237
|
totalCost: number;
|
|
238
238
|
name?: string | undefined;
|
|
239
|
-
fieldId?: string | undefined;
|
|
240
239
|
category?: string | undefined;
|
|
240
|
+
fieldId?: string | undefined;
|
|
241
241
|
itemId?: string | undefined;
|
|
242
242
|
supplier?: string | undefined;
|
|
243
243
|
cropId?: string | undefined;
|
|
@@ -1300,11 +1300,11 @@ export declare const upcomingEventsQuerySchema: z.ZodObject<{
|
|
|
1300
1300
|
days: z.ZodDefault<z.ZodNumber>;
|
|
1301
1301
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1302
1302
|
}, "strip", z.ZodTypeAny, {
|
|
1303
|
-
days: number;
|
|
1304
1303
|
limit: number;
|
|
1304
|
+
days: number;
|
|
1305
1305
|
}, {
|
|
1306
|
-
days?: number | undefined;
|
|
1307
1306
|
limit?: number | undefined;
|
|
1307
|
+
days?: number | undefined;
|
|
1308
1308
|
}>;
|
|
1309
1309
|
export type IrrigationMethod = z.infer<typeof irrigationMethodSchema>;
|
|
1310
1310
|
export type ScheduleStatus = z.infer<typeof scheduleStatusSchema>;
|
|
@@ -52,7 +52,7 @@ export declare const liveMonitorSummarySchema: z.ZodObject<{
|
|
|
52
52
|
export declare const liveMonitorCameraSchema: z.ZodObject<{
|
|
53
53
|
id: z.ZodString;
|
|
54
54
|
name: z.ZodString;
|
|
55
|
-
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
55
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
56
56
|
location: z.ZodObject<{
|
|
57
57
|
lat: z.ZodNumber;
|
|
58
58
|
lng: z.ZodNumber;
|
|
@@ -69,11 +69,15 @@ export declare const liveMonitorCameraSchema: z.ZodObject<{
|
|
|
69
69
|
direction: z.ZodNullable<z.ZodNumber>;
|
|
70
70
|
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
71
71
|
streamEnabled: z.ZodBoolean;
|
|
72
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
73
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
76
|
} & {
|
|
73
77
|
fieldId: z.ZodString;
|
|
74
78
|
fieldName: z.ZodString;
|
|
75
79
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
80
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
77
81
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
78
82
|
id: string;
|
|
79
83
|
name: string;
|
|
@@ -88,8 +92,12 @@ export declare const liveMonitorCameraSchema: z.ZodObject<{
|
|
|
88
92
|
lastFrameAt: string | null;
|
|
89
93
|
fieldOfView: number | null;
|
|
90
94
|
streamEnabled: boolean;
|
|
95
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
96
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
97
|
+
lastIngestAt?: string | null | undefined;
|
|
98
|
+
ftpUsername?: string | null | undefined;
|
|
91
99
|
}, {
|
|
92
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
100
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
93
101
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
94
102
|
id: string;
|
|
95
103
|
name: string;
|
|
@@ -104,13 +112,17 @@ export declare const liveMonitorCameraSchema: z.ZodObject<{
|
|
|
104
112
|
lastFrameAt: string | null;
|
|
105
113
|
fieldOfView: number | null;
|
|
106
114
|
streamEnabled: boolean;
|
|
115
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
116
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
117
|
+
lastIngestAt?: string | null | undefined;
|
|
118
|
+
ftpUsername?: string | null | undefined;
|
|
107
119
|
}>;
|
|
108
120
|
export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
109
121
|
farmId: z.ZodString;
|
|
110
122
|
cameras: z.ZodArray<z.ZodObject<{
|
|
111
123
|
id: z.ZodString;
|
|
112
124
|
name: z.ZodString;
|
|
113
|
-
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
|
|
125
|
+
type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
|
|
114
126
|
location: z.ZodObject<{
|
|
115
127
|
lat: z.ZodNumber;
|
|
116
128
|
lng: z.ZodNumber;
|
|
@@ -127,11 +139,15 @@ export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
|
127
139
|
direction: z.ZodNullable<z.ZodNumber>;
|
|
128
140
|
fieldOfView: z.ZodNullable<z.ZodNumber>;
|
|
129
141
|
streamEnabled: z.ZodBoolean;
|
|
142
|
+
ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
|
|
143
|
+
expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
144
|
+
lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
146
|
} & {
|
|
131
147
|
fieldId: z.ZodString;
|
|
132
148
|
fieldName: z.ZodString;
|
|
133
149
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
150
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
135
151
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
136
152
|
id: string;
|
|
137
153
|
name: string;
|
|
@@ -146,8 +162,12 @@ export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
|
146
162
|
lastFrameAt: string | null;
|
|
147
163
|
fieldOfView: number | null;
|
|
148
164
|
streamEnabled: boolean;
|
|
165
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
166
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
167
|
+
lastIngestAt?: string | null | undefined;
|
|
168
|
+
ftpUsername?: string | null | undefined;
|
|
149
169
|
}, {
|
|
150
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
170
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
151
171
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
152
172
|
id: string;
|
|
153
173
|
name: string;
|
|
@@ -162,12 +182,16 @@ export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
|
162
182
|
lastFrameAt: string | null;
|
|
163
183
|
fieldOfView: number | null;
|
|
164
184
|
streamEnabled: boolean;
|
|
185
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
186
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
187
|
+
lastIngestAt?: string | null | undefined;
|
|
188
|
+
ftpUsername?: string | null | undefined;
|
|
165
189
|
}>, "many">;
|
|
166
190
|
totalCameras: z.ZodNumber;
|
|
167
191
|
}, "strip", z.ZodTypeAny, {
|
|
168
192
|
farmId: string;
|
|
169
193
|
cameras: {
|
|
170
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
194
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
171
195
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
172
196
|
id: string;
|
|
173
197
|
name: string;
|
|
@@ -182,12 +206,16 @@ export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
|
182
206
|
lastFrameAt: string | null;
|
|
183
207
|
fieldOfView: number | null;
|
|
184
208
|
streamEnabled: boolean;
|
|
209
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
210
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
211
|
+
lastIngestAt?: string | null | undefined;
|
|
212
|
+
ftpUsername?: string | null | undefined;
|
|
185
213
|
}[];
|
|
186
214
|
totalCameras: number;
|
|
187
215
|
}, {
|
|
188
216
|
farmId: string;
|
|
189
217
|
cameras: {
|
|
190
|
-
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
|
|
218
|
+
type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
|
|
191
219
|
status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
|
|
192
220
|
id: string;
|
|
193
221
|
name: string;
|
|
@@ -202,6 +230,10 @@ export declare const liveMonitorCamerasResponseSchema: z.ZodObject<{
|
|
|
202
230
|
lastFrameAt: string | null;
|
|
203
231
|
fieldOfView: number | null;
|
|
204
232
|
streamEnabled: boolean;
|
|
233
|
+
ingestMode?: "ftp_push" | "device_agent" | undefined;
|
|
234
|
+
expectedIntervalSeconds?: number | null | undefined;
|
|
235
|
+
lastIngestAt?: string | null | undefined;
|
|
236
|
+
ftpUsername?: string | null | undefined;
|
|
205
237
|
}[];
|
|
206
238
|
totalCameras: number;
|
|
207
239
|
}>;
|
|
@@ -567,22 +599,22 @@ export declare const captureSnapshotResponseSchema: z.ZodObject<{
|
|
|
567
599
|
resolution: z.ZodNullable<z.ZodString>;
|
|
568
600
|
}, "strip", z.ZodTypeAny, {
|
|
569
601
|
farmId: string;
|
|
602
|
+
imageUrl: string;
|
|
570
603
|
capturedAt: string;
|
|
571
604
|
resolution: string | null;
|
|
572
|
-
|
|
605
|
+
triggerType: "manual" | "scheduled" | "motion";
|
|
573
606
|
cameraId: string;
|
|
574
607
|
dataSaver: boolean;
|
|
575
608
|
snapshotId: string;
|
|
576
|
-
triggerType: "manual" | "scheduled" | "motion";
|
|
577
609
|
}, {
|
|
578
610
|
farmId: string;
|
|
611
|
+
imageUrl: string;
|
|
579
612
|
capturedAt: string;
|
|
580
613
|
resolution: string | null;
|
|
581
|
-
|
|
614
|
+
triggerType: "manual" | "scheduled" | "motion";
|
|
582
615
|
cameraId: string;
|
|
583
616
|
dataSaver: boolean;
|
|
584
617
|
snapshotId: string;
|
|
585
|
-
triggerType: "manual" | "scheduled" | "motion";
|
|
586
618
|
}>;
|
|
587
619
|
export type LiveMonitorSummary = z.infer<typeof liveMonitorSummarySchema>;
|
|
588
620
|
export type LiveMonitorCamera = z.infer<typeof liveMonitorCameraSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-monitor.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/live-monitor.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC;AAEH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"live-monitor.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/live-monitor.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3C,CAAC;AAEH,eAAO,MAAM,0BAA0B,yHAQrC,CAAC;AAEH,eAAO,MAAM,8BAA8B,0DAMzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;EAOvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;EAKrC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxC,CAAC;AAMH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|