@deepintel-ltd/farmpro-contracts 1.16.1 → 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 (41) 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/monitoring-visualization.routes.d.ts +4 -4
  15. package/dist/routes/pest-disease-risk.routes.d.ts +44 -44
  16. package/dist/routes/prescription-maps.routes.d.ts +4 -4
  17. package/dist/routes/subscriptions.routes.d.ts +4 -4
  18. package/dist/routes/tasks.routes.d.ts +108 -108
  19. package/dist/routes/team-payments.routes.d.ts +36 -36
  20. package/dist/routes/weather.routes.d.ts +42 -42
  21. package/dist/schemas/agents.schemas.d.ts +8 -8
  22. package/dist/schemas/common.schemas.d.ts +32 -0
  23. package/dist/schemas/common.schemas.d.ts.map +1 -1
  24. package/dist/schemas/common.schemas.js +14 -0
  25. package/dist/schemas/documents.schemas.d.ts +48 -48
  26. package/dist/schemas/fertigation.schemas.d.ts +2 -2
  27. package/dist/schemas/fields.schemas.d.ts +42 -0
  28. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  29. package/dist/schemas/fields.schemas.js +4 -0
  30. package/dist/schemas/files.schemas.d.ts +12 -12
  31. package/dist/schemas/finance.schemas.d.ts +34 -34
  32. package/dist/schemas/inventory.schemas.d.ts +6 -6
  33. package/dist/schemas/irrigation.schemas.d.ts +2 -2
  34. package/dist/schemas/monitoring-visualization.schemas.d.ts +6 -6
  35. package/dist/schemas/pest-disease-risk.schemas.d.ts +36 -36
  36. package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
  37. package/dist/schemas/subscriptions.schemas.d.ts +2 -2
  38. package/dist/schemas/tasks.schemas.d.ts +96 -96
  39. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  40. package/dist/schemas/weather.schemas.d.ts +84 -84
  41. 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>;
@@ -4466,13 +4466,13 @@ export declare const growthStageTimelineSchema: z.ZodObject<{
4466
4466
  status: z.ZodEnum<["completed", "current", "upcoming"]>;
4467
4467
  healthDuringStage: z.ZodNullable<z.ZodNumber>;
4468
4468
  }, "strip", z.ZodTypeAny, {
4469
- status: "completed" | "current" | "upcoming";
4469
+ status: "current" | "completed" | "upcoming";
4470
4470
  stage: string;
4471
4471
  startDay: number;
4472
4472
  endDay: number;
4473
4473
  healthDuringStage: number | null;
4474
4474
  }, {
4475
- status: "completed" | "current" | "upcoming";
4475
+ status: "current" | "completed" | "upcoming";
4476
4476
  stage: string;
4477
4477
  startDay: number;
4478
4478
  endDay: number;
@@ -4519,13 +4519,13 @@ export declare const growthStagesResponseSchema: z.ZodObject<{
4519
4519
  status: z.ZodEnum<["completed", "current", "upcoming"]>;
4520
4520
  healthDuringStage: z.ZodNullable<z.ZodNumber>;
4521
4521
  }, "strip", z.ZodTypeAny, {
4522
- status: "completed" | "current" | "upcoming";
4522
+ status: "current" | "completed" | "upcoming";
4523
4523
  stage: string;
4524
4524
  startDay: number;
4525
4525
  endDay: number;
4526
4526
  healthDuringStage: number | null;
4527
4527
  }, {
4528
- status: "completed" | "current" | "upcoming";
4528
+ status: "current" | "completed" | "upcoming";
4529
4529
  stage: string;
4530
4530
  startDay: number;
4531
4531
  endDay: number;
@@ -4569,7 +4569,7 @@ export declare const growthStagesResponseSchema: z.ZodObject<{
4569
4569
  progress: number;
4570
4570
  };
4571
4571
  timeline: {
4572
- status: "completed" | "current" | "upcoming";
4572
+ status: "current" | "completed" | "upcoming";
4573
4573
  stage: string;
4574
4574
  startDay: number;
4575
4575
  endDay: number;
@@ -4599,7 +4599,7 @@ export declare const growthStagesResponseSchema: z.ZodObject<{
4599
4599
  progress: number;
4600
4600
  };
4601
4601
  timeline: {
4602
- status: "completed" | "current" | "upcoming";
4602
+ status: "current" | "completed" | "upcoming";
4603
4603
  stage: string;
4604
4604
  startDay: number;
4605
4605
  endDay: number;