@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.1

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 (80) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/categories.routes.d.ts +26 -26
  5. package/dist/routes/commodity-deals.routes.d.ts +217 -42
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  7. package/dist/routes/crop-profile.routes.d.ts +8 -8
  8. package/dist/routes/farm-enterprises.routes.d.ts +395 -0
  9. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  10. package/dist/routes/farm-enterprises.routes.js +14 -1
  11. package/dist/routes/farms.routes.d.ts +73 -20
  12. package/dist/routes/farms.routes.d.ts.map +1 -1
  13. package/dist/routes/fertigation.routes.d.ts +96 -96
  14. package/dist/routes/field-monitoring.routes.d.ts +2 -2
  15. package/dist/routes/finance.routes.d.ts +8 -8
  16. package/dist/routes/index.d.ts +9 -0
  17. package/dist/routes/index.d.ts.map +1 -1
  18. package/dist/routes/index.js +6 -0
  19. package/dist/routes/invoices.routes.d.ts +210 -60
  20. package/dist/routes/invoices.routes.d.ts.map +1 -1
  21. package/dist/routes/invoices.routes.js +4 -1
  22. package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
  23. package/dist/routes/notifications.routes.d.ts +12 -12
  24. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  25. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  26. package/dist/routes/organization-capabilities.routes.js +74 -0
  27. package/dist/routes/organizations.routes.d.ts +90 -47
  28. package/dist/routes/organizations.routes.d.ts.map +1 -1
  29. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  30. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  31. package/dist/routes/purchase-orders.routes.js +55 -0
  32. package/dist/routes/suppliers.routes.d.ts +96 -96
  33. package/dist/routes/team-payments.routes.d.ts +105 -105
  34. package/dist/routes/team.routes.d.ts +125 -25
  35. package/dist/routes/team.routes.d.ts.map +1 -1
  36. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  37. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  38. package/dist/routes/trade-cash-events.routes.js +126 -0
  39. package/dist/routes/waybills.routes.d.ts +229 -15
  40. package/dist/routes/waybills.routes.d.ts.map +1 -1
  41. package/dist/routes/waybills.routes.js +4 -1
  42. package/dist/schemas/categories.schemas.d.ts +21 -21
  43. package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
  44. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  45. package/dist/schemas/commodity-deals.schemas.js +7 -0
  46. package/dist/schemas/crop-profile.schemas.d.ts +12 -12
  47. package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
  48. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  49. package/dist/schemas/farm-enterprises.schemas.js +21 -0
  50. package/dist/schemas/farms.schemas.d.ts +121 -19
  51. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  52. package/dist/schemas/farms.schemas.js +15 -1
  53. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  54. package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
  55. package/dist/schemas/finance.schemas.d.ts +8 -8
  56. package/dist/schemas/invoices.schemas.d.ts +153 -39
  57. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  58. package/dist/schemas/invoices.schemas.js +8 -2
  59. package/dist/schemas/notifications.schemas.d.ts +18 -18
  60. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  61. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  62. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  63. package/dist/schemas/organizations.schemas.d.ts +105 -46
  64. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  65. package/dist/schemas/organizations.schemas.js +8 -1
  66. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  67. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  68. package/dist/schemas/purchase-orders.schemas.js +49 -0
  69. package/dist/schemas/suppliers.schemas.d.ts +96 -96
  70. package/dist/schemas/team-payments.schemas.d.ts +87 -87
  71. package/dist/schemas/team.schemas.d.ts +137 -20
  72. package/dist/schemas/team.schemas.d.ts.map +1 -1
  73. package/dist/schemas/team.schemas.js +29 -1
  74. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  75. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  76. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  77. package/dist/schemas/waybills.schemas.d.ts +177 -9
  78. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  79. package/dist/schemas/waybills.schemas.js +9 -0
  80. package/package.json +1 -1
@@ -1753,7 +1753,7 @@ export declare const onboardingFirstFieldSchema: z.ZodObject<{
1753
1753
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1754
1754
  };
1755
1755
  }>;
1756
- export declare const farmOnboardingAttributesSchema: z.ZodObject<{
1756
+ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
1757
1757
  name: z.ZodString;
1758
1758
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1759
1759
  location: z.ZodObject<{
@@ -1782,7 +1782,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
1782
1782
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1783
1783
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1784
1784
  }>;
1785
- firstField: z.ZodObject<{
1785
+ firstField: z.ZodOptional<z.ZodObject<{
1786
1786
  name: z.ZodString;
1787
1787
  crop: z.ZodString;
1788
1788
  geometry: z.ZodObject<{
@@ -1809,7 +1809,9 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
1809
1809
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1810
1810
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1811
1811
  };
1812
- }>;
1812
+ }>>;
1813
+ /** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
1814
+ enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">>;
1813
1815
  currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
1814
1816
  }, "strip", z.ZodTypeAny, {
1815
1817
  name: string;
@@ -1824,17 +1826,42 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
1824
1826
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1825
1827
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1826
1828
  };
1827
- firstField: {
1829
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1830
+ firstField?: {
1828
1831
  name: string;
1829
1832
  crop: string;
1830
1833
  geometry: {
1831
1834
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1832
1835
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1833
1836
  };
1837
+ } | undefined;
1838
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1839
+ }, {
1840
+ name: string;
1841
+ location: {
1842
+ state: string;
1843
+ lat: number;
1844
+ lng: number;
1845
+ lga: string;
1846
+ };
1847
+ boundary: {
1848
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1849
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
1834
1850
  };
1851
+ countryCode?: string | undefined;
1835
1852
  currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1836
- }, {
1853
+ firstField?: {
1854
+ name: string;
1855
+ crop: string;
1856
+ geometry: {
1857
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1858
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
1859
+ };
1860
+ } | undefined;
1861
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1862
+ }>, {
1837
1863
  name: string;
1864
+ countryCode: string;
1838
1865
  location: {
1839
1866
  state: string;
1840
1867
  lat: number;
@@ -1845,20 +1872,43 @@ export declare const farmOnboardingAttributesSchema: z.ZodObject<{
1845
1872
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1846
1873
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1847
1874
  };
1848
- firstField: {
1875
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1876
+ firstField?: {
1849
1877
  name: string;
1850
1878
  crop: string;
1851
1879
  geometry: {
1852
1880
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1853
1881
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1854
1882
  };
1883
+ } | undefined;
1884
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1885
+ }, {
1886
+ name: string;
1887
+ location: {
1888
+ state: string;
1889
+ lat: number;
1890
+ lng: number;
1891
+ lga: string;
1892
+ };
1893
+ boundary: {
1894
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1895
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
1855
1896
  };
1856
1897
  countryCode?: string | undefined;
1857
1898
  currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1899
+ firstField?: {
1900
+ name: string;
1901
+ crop: string;
1902
+ geometry: {
1903
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1904
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
1905
+ };
1906
+ } | undefined;
1907
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1858
1908
  }>;
1859
1909
  export declare const farmOnboardingInputSchema: z.ZodObject<{
1860
1910
  type: z.ZodLiteral<"farm-onboarding">;
1861
- attributes: z.ZodObject<{
1911
+ attributes: z.ZodEffects<z.ZodObject<{
1862
1912
  name: z.ZodString;
1863
1913
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1864
1914
  location: z.ZodObject<{
@@ -1887,7 +1937,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
1887
1937
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1888
1938
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1889
1939
  }>;
1890
- firstField: z.ZodObject<{
1940
+ firstField: z.ZodOptional<z.ZodObject<{
1891
1941
  name: z.ZodString;
1892
1942
  crop: z.ZodString;
1893
1943
  geometry: z.ZodObject<{
@@ -1914,7 +1964,9 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
1914
1964
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1915
1965
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1916
1966
  };
1917
- }>;
1967
+ }>>;
1968
+ /** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
1969
+ enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">>;
1918
1970
  currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
1919
1971
  }, "strip", z.ZodTypeAny, {
1920
1972
  name: string;
@@ -1929,17 +1981,42 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
1929
1981
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1930
1982
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1931
1983
  };
1932
- firstField: {
1984
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1985
+ firstField?: {
1933
1986
  name: string;
1934
1987
  crop: string;
1935
1988
  geometry: {
1936
1989
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1937
1990
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1938
1991
  };
1992
+ } | undefined;
1993
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1994
+ }, {
1995
+ name: string;
1996
+ location: {
1997
+ state: string;
1998
+ lat: number;
1999
+ lng: number;
2000
+ lga: string;
1939
2001
  };
2002
+ boundary: {
2003
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2004
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
2005
+ };
2006
+ countryCode?: string | undefined;
1940
2007
  currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
1941
- }, {
2008
+ firstField?: {
2009
+ name: string;
2010
+ crop: string;
2011
+ geometry: {
2012
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2013
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
2014
+ };
2015
+ } | undefined;
2016
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
2017
+ }>, {
1942
2018
  name: string;
2019
+ countryCode: string;
1943
2020
  location: {
1944
2021
  state: string;
1945
2022
  lat: number;
@@ -1950,16 +2027,39 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
1950
2027
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1951
2028
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1952
2029
  };
1953
- firstField: {
2030
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2031
+ firstField?: {
1954
2032
  name: string;
1955
2033
  crop: string;
1956
2034
  geometry: {
1957
2035
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1958
2036
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1959
2037
  };
2038
+ } | undefined;
2039
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
2040
+ }, {
2041
+ name: string;
2042
+ location: {
2043
+ state: string;
2044
+ lat: number;
2045
+ lng: number;
2046
+ lga: string;
2047
+ };
2048
+ boundary: {
2049
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2050
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
1960
2051
  };
1961
2052
  countryCode?: string | undefined;
1962
2053
  currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2054
+ firstField?: {
2055
+ name: string;
2056
+ crop: string;
2057
+ geometry: {
2058
+ type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2059
+ coordinates: number[] | number[][] | number[][][] | number[][][][];
2060
+ };
2061
+ } | undefined;
2062
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1963
2063
  }>;
1964
2064
  }, "strip", z.ZodTypeAny, {
1965
2065
  type: "farm-onboarding";
@@ -1976,15 +2076,16 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
1976
2076
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1977
2077
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1978
2078
  };
1979
- firstField: {
2079
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2080
+ firstField?: {
1980
2081
  name: string;
1981
2082
  crop: string;
1982
2083
  geometry: {
1983
2084
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
1984
2085
  coordinates: number[] | number[][] | number[][][] | number[][][][];
1985
2086
  };
1986
- };
1987
- currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2087
+ } | undefined;
2088
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
1988
2089
  };
1989
2090
  }, {
1990
2091
  type: "farm-onboarding";
@@ -2000,16 +2101,17 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
2000
2101
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2001
2102
  coordinates: number[] | number[][] | number[][][] | number[][][][];
2002
2103
  };
2003
- firstField: {
2104
+ countryCode?: string | undefined;
2105
+ currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2106
+ firstField?: {
2004
2107
  name: string;
2005
2108
  crop: string;
2006
2109
  geometry: {
2007
2110
  type: "Polygon" | "MultiPolygon" | "Point" | "LineString";
2008
2111
  coordinates: number[] | number[][] | number[][][] | number[][][][];
2009
2112
  };
2010
- };
2011
- countryCode?: string | undefined;
2012
- currency?: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR" | undefined;
2113
+ } | undefined;
2114
+ enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
2013
2115
  };
2014
2116
  }>;
2015
2117
  export declare const farmOnboardingResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"farms.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/farms.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB;;GAEG;AAGH,eAAO,MAAM,cAAc,qEAAwB,CAAC;AAGpD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;IAe/B,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAG3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC;AAG/E,eAAO,MAAM,gBAAgB;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+IzD,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -100,8 +100,22 @@ export const farmOnboardingAttributesSchema = z.object({
100
100
  countryCode: countryCodeSchema.optional().default('NG'),
101
101
  location: farmLocationSchema,
102
102
  boundary: geoJSONGeometrySchema,
103
- firstField: onboardingFirstFieldSchema,
103
+ firstField: onboardingFirstFieldSchema.optional(),
104
+ /** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
105
+ enterprises: z
106
+ .array(z.enum(['CROPS', 'POULTRY', 'AQUACULTURE', 'CATTLE', 'GOAT']))
107
+ .min(1)
108
+ .optional(),
104
109
  currency: currencySchema.optional(),
110
+ }).superRefine((data, ctx) => {
111
+ const packs = data.enterprises?.length ? data.enterprises : ['CROPS'];
112
+ if (packs.includes('CROPS') && !data.firstField) {
113
+ ctx.addIssue({
114
+ code: z.ZodIssueCode.custom,
115
+ message: 'First field is required when Crops is enabled',
116
+ path: ['firstField'],
117
+ });
118
+ }
105
119
  });
106
120
  export const farmOnboardingInputSchema = z.object({
107
121
  type: z.literal('farm-onboarding'),
@@ -228,9 +228,9 @@ export declare const cropNutrientProfileAttributesSchema: z.ZodObject<{
228
228
  source: string | null;
229
229
  createdAt: string;
230
230
  updatedAt: string;
231
+ isDefault: boolean;
231
232
  notes: string | null;
232
233
  cropName: string;
233
- isDefault: boolean;
234
234
  cropVariety: string | null;
235
235
  cropCategory: string;
236
236
  growthStages: {
@@ -260,9 +260,9 @@ export declare const cropNutrientProfileAttributesSchema: z.ZodObject<{
260
260
  source: string | null;
261
261
  createdAt: string;
262
262
  updatedAt: string;
263
+ isDefault: boolean;
263
264
  notes: string | null;
264
265
  cropName: string;
265
- isDefault: boolean;
266
266
  cropVariety: string | null;
267
267
  cropCategory: string;
268
268
  growthStages: {
@@ -1038,9 +1038,9 @@ export declare const cropNutrientProfileResourceSchema: z.ZodObject<{
1038
1038
  source: string | null;
1039
1039
  createdAt: string;
1040
1040
  updatedAt: string;
1041
+ isDefault: boolean;
1041
1042
  notes: string | null;
1042
1043
  cropName: string;
1043
- isDefault: boolean;
1044
1044
  cropVariety: string | null;
1045
1045
  cropCategory: string;
1046
1046
  growthStages: {
@@ -1070,9 +1070,9 @@ export declare const cropNutrientProfileResourceSchema: z.ZodObject<{
1070
1070
  source: string | null;
1071
1071
  createdAt: string;
1072
1072
  updatedAt: string;
1073
+ isDefault: boolean;
1073
1074
  notes: string | null;
1074
1075
  cropName: string;
1075
- isDefault: boolean;
1076
1076
  cropVariety: string | null;
1077
1077
  cropCategory: string;
1078
1078
  growthStages: {
@@ -1109,9 +1109,9 @@ export declare const cropNutrientProfileResourceSchema: z.ZodObject<{
1109
1109
  source: string | null;
1110
1110
  createdAt: string;
1111
1111
  updatedAt: string;
1112
+ isDefault: boolean;
1112
1113
  notes: string | null;
1113
1114
  cropName: string;
1114
- isDefault: boolean;
1115
1115
  cropVariety: string | null;
1116
1116
  cropCategory: string;
1117
1117
  growthStages: {
@@ -1148,9 +1148,9 @@ export declare const cropNutrientProfileResourceSchema: z.ZodObject<{
1148
1148
  source: string | null;
1149
1149
  createdAt: string;
1150
1150
  updatedAt: string;
1151
+ isDefault: boolean;
1151
1152
  notes: string | null;
1152
1153
  cropName: string;
1153
- isDefault: boolean;
1154
1154
  cropVariety: string | null;
1155
1155
  cropCategory: string;
1156
1156
  growthStages: {
@@ -1266,9 +1266,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1266
1266
  source: string | null;
1267
1267
  createdAt: string;
1268
1268
  updatedAt: string;
1269
+ isDefault: boolean;
1269
1270
  notes: string | null;
1270
1271
  cropName: string;
1271
- isDefault: boolean;
1272
1272
  cropVariety: string | null;
1273
1273
  cropCategory: string;
1274
1274
  growthStages: {
@@ -1298,9 +1298,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1298
1298
  source: string | null;
1299
1299
  createdAt: string;
1300
1300
  updatedAt: string;
1301
+ isDefault: boolean;
1301
1302
  notes: string | null;
1302
1303
  cropName: string;
1303
- isDefault: boolean;
1304
1304
  cropVariety: string | null;
1305
1305
  cropCategory: string;
1306
1306
  growthStages: {
@@ -1337,9 +1337,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1337
1337
  source: string | null;
1338
1338
  createdAt: string;
1339
1339
  updatedAt: string;
1340
+ isDefault: boolean;
1340
1341
  notes: string | null;
1341
1342
  cropName: string;
1342
- isDefault: boolean;
1343
1343
  cropVariety: string | null;
1344
1344
  cropCategory: string;
1345
1345
  growthStages: {
@@ -1376,9 +1376,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1376
1376
  source: string | null;
1377
1377
  createdAt: string;
1378
1378
  updatedAt: string;
1379
+ isDefault: boolean;
1379
1380
  notes: string | null;
1380
1381
  cropName: string;
1381
- isDefault: boolean;
1382
1382
  cropVariety: string | null;
1383
1383
  cropCategory: string;
1384
1384
  growthStages: {
@@ -1441,9 +1441,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1441
1441
  source: string | null;
1442
1442
  createdAt: string;
1443
1443
  updatedAt: string;
1444
+ isDefault: boolean;
1444
1445
  notes: string | null;
1445
1446
  cropName: string;
1446
- isDefault: boolean;
1447
1447
  cropVariety: string | null;
1448
1448
  cropCategory: string;
1449
1449
  growthStages: {
@@ -1492,9 +1492,9 @@ export declare const cropNutrientProfileResponseSchema: z.ZodObject<{
1492
1492
  source: string | null;
1493
1493
  createdAt: string;
1494
1494
  updatedAt: string;
1495
+ isDefault: boolean;
1495
1496
  notes: string | null;
1496
1497
  cropName: string;
1497
- isDefault: boolean;
1498
1498
  cropVariety: string | null;
1499
1499
  cropCategory: string;
1500
1500
  growthStages: {
@@ -1621,9 +1621,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1621
1621
  source: string | null;
1622
1622
  createdAt: string;
1623
1623
  updatedAt: string;
1624
+ isDefault: boolean;
1624
1625
  notes: string | null;
1625
1626
  cropName: string;
1626
- isDefault: boolean;
1627
1627
  cropVariety: string | null;
1628
1628
  cropCategory: string;
1629
1629
  growthStages: {
@@ -1653,9 +1653,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1653
1653
  source: string | null;
1654
1654
  createdAt: string;
1655
1655
  updatedAt: string;
1656
+ isDefault: boolean;
1656
1657
  notes: string | null;
1657
1658
  cropName: string;
1658
- isDefault: boolean;
1659
1659
  cropVariety: string | null;
1660
1660
  cropCategory: string;
1661
1661
  growthStages: {
@@ -1692,9 +1692,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1692
1692
  source: string | null;
1693
1693
  createdAt: string;
1694
1694
  updatedAt: string;
1695
+ isDefault: boolean;
1695
1696
  notes: string | null;
1696
1697
  cropName: string;
1697
- isDefault: boolean;
1698
1698
  cropVariety: string | null;
1699
1699
  cropCategory: string;
1700
1700
  growthStages: {
@@ -1731,9 +1731,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1731
1731
  source: string | null;
1732
1732
  createdAt: string;
1733
1733
  updatedAt: string;
1734
+ isDefault: boolean;
1734
1735
  notes: string | null;
1735
1736
  cropName: string;
1736
- isDefault: boolean;
1737
1737
  cropVariety: string | null;
1738
1738
  cropCategory: string;
1739
1739
  growthStages: {
@@ -1796,9 +1796,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1796
1796
  source: string | null;
1797
1797
  createdAt: string;
1798
1798
  updatedAt: string;
1799
+ isDefault: boolean;
1799
1800
  notes: string | null;
1800
1801
  cropName: string;
1801
- isDefault: boolean;
1802
1802
  cropVariety: string | null;
1803
1803
  cropCategory: string;
1804
1804
  growthStages: {
@@ -1847,9 +1847,9 @@ export declare const cropNutrientProfileListResponseSchema: z.ZodObject<{
1847
1847
  source: string | null;
1848
1848
  createdAt: string;
1849
1849
  updatedAt: string;
1850
+ isDefault: boolean;
1850
1851
  notes: string | null;
1851
1852
  cropName: string;
1852
- isDefault: boolean;
1853
1853
  cropVariety: string | null;
1854
1854
  cropCategory: string;
1855
1855
  growthStages: {
@@ -1931,8 +1931,8 @@ export declare const fertilizerProductAttributesSchema: z.ZodObject<{
1931
1931
  updatedAt: string;
1932
1932
  name: string;
1933
1933
  brand: string | null;
1934
- notes: string | null;
1935
1934
  isDefault: boolean;
1935
+ notes: string | null;
1936
1936
  micronutrients: Record<string, number> | null;
1937
1937
  productCode: string | null;
1938
1938
  nitrogenContent: number;
@@ -1957,8 +1957,8 @@ export declare const fertilizerProductAttributesSchema: z.ZodObject<{
1957
1957
  updatedAt: string;
1958
1958
  name: string;
1959
1959
  brand: string | null;
1960
- notes: string | null;
1961
1960
  isDefault: boolean;
1961
+ notes: string | null;
1962
1962
  micronutrients: Record<string, number> | null;
1963
1963
  productCode: string | null;
1964
1964
  nitrogenContent: number;
@@ -2447,8 +2447,8 @@ export declare const fertilizerProductResourceSchema: z.ZodObject<{
2447
2447
  updatedAt: string;
2448
2448
  name: string;
2449
2449
  brand: string | null;
2450
- notes: string | null;
2451
2450
  isDefault: boolean;
2451
+ notes: string | null;
2452
2452
  micronutrients: Record<string, number> | null;
2453
2453
  productCode: string | null;
2454
2454
  nitrogenContent: number;
@@ -2473,8 +2473,8 @@ export declare const fertilizerProductResourceSchema: z.ZodObject<{
2473
2473
  updatedAt: string;
2474
2474
  name: string;
2475
2475
  brand: string | null;
2476
- notes: string | null;
2477
2476
  isDefault: boolean;
2477
+ notes: string | null;
2478
2478
  micronutrients: Record<string, number> | null;
2479
2479
  productCode: string | null;
2480
2480
  nitrogenContent: number;
@@ -2506,8 +2506,8 @@ export declare const fertilizerProductResourceSchema: z.ZodObject<{
2506
2506
  updatedAt: string;
2507
2507
  name: string;
2508
2508
  brand: string | null;
2509
- notes: string | null;
2510
2509
  isDefault: boolean;
2510
+ notes: string | null;
2511
2511
  micronutrients: Record<string, number> | null;
2512
2512
  productCode: string | null;
2513
2513
  nitrogenContent: number;
@@ -2539,8 +2539,8 @@ export declare const fertilizerProductResourceSchema: z.ZodObject<{
2539
2539
  updatedAt: string;
2540
2540
  name: string;
2541
2541
  brand: string | null;
2542
- notes: string | null;
2543
2542
  isDefault: boolean;
2543
+ notes: string | null;
2544
2544
  micronutrients: Record<string, number> | null;
2545
2545
  productCode: string | null;
2546
2546
  nitrogenContent: number;
@@ -2609,8 +2609,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2609
2609
  updatedAt: string;
2610
2610
  name: string;
2611
2611
  brand: string | null;
2612
- notes: string | null;
2613
2612
  isDefault: boolean;
2613
+ notes: string | null;
2614
2614
  micronutrients: Record<string, number> | null;
2615
2615
  productCode: string | null;
2616
2616
  nitrogenContent: number;
@@ -2635,8 +2635,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2635
2635
  updatedAt: string;
2636
2636
  name: string;
2637
2637
  brand: string | null;
2638
- notes: string | null;
2639
2638
  isDefault: boolean;
2639
+ notes: string | null;
2640
2640
  micronutrients: Record<string, number> | null;
2641
2641
  productCode: string | null;
2642
2642
  nitrogenContent: number;
@@ -2668,8 +2668,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2668
2668
  updatedAt: string;
2669
2669
  name: string;
2670
2670
  brand: string | null;
2671
- notes: string | null;
2672
2671
  isDefault: boolean;
2672
+ notes: string | null;
2673
2673
  micronutrients: Record<string, number> | null;
2674
2674
  productCode: string | null;
2675
2675
  nitrogenContent: number;
@@ -2701,8 +2701,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2701
2701
  updatedAt: string;
2702
2702
  name: string;
2703
2703
  brand: string | null;
2704
- notes: string | null;
2705
2704
  isDefault: boolean;
2705
+ notes: string | null;
2706
2706
  micronutrients: Record<string, number> | null;
2707
2707
  productCode: string | null;
2708
2708
  nitrogenContent: number;
@@ -2760,8 +2760,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2760
2760
  updatedAt: string;
2761
2761
  name: string;
2762
2762
  brand: string | null;
2763
- notes: string | null;
2764
2763
  isDefault: boolean;
2764
+ notes: string | null;
2765
2765
  micronutrients: Record<string, number> | null;
2766
2766
  productCode: string | null;
2767
2767
  nitrogenContent: number;
@@ -2805,8 +2805,8 @@ export declare const fertilizerProductResponseSchema: z.ZodObject<{
2805
2805
  updatedAt: string;
2806
2806
  name: string;
2807
2807
  brand: string | null;
2808
- notes: string | null;
2809
2808
  isDefault: boolean;
2809
+ notes: string | null;
2810
2810
  micronutrients: Record<string, number> | null;
2811
2811
  productCode: string | null;
2812
2812
  nitrogenContent: number;
@@ -2886,8 +2886,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
2886
2886
  updatedAt: string;
2887
2887
  name: string;
2888
2888
  brand: string | null;
2889
- notes: string | null;
2890
2889
  isDefault: boolean;
2890
+ notes: string | null;
2891
2891
  micronutrients: Record<string, number> | null;
2892
2892
  productCode: string | null;
2893
2893
  nitrogenContent: number;
@@ -2912,8 +2912,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
2912
2912
  updatedAt: string;
2913
2913
  name: string;
2914
2914
  brand: string | null;
2915
- notes: string | null;
2916
2915
  isDefault: boolean;
2916
+ notes: string | null;
2917
2917
  micronutrients: Record<string, number> | null;
2918
2918
  productCode: string | null;
2919
2919
  nitrogenContent: number;
@@ -2945,8 +2945,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
2945
2945
  updatedAt: string;
2946
2946
  name: string;
2947
2947
  brand: string | null;
2948
- notes: string | null;
2949
2948
  isDefault: boolean;
2949
+ notes: string | null;
2950
2950
  micronutrients: Record<string, number> | null;
2951
2951
  productCode: string | null;
2952
2952
  nitrogenContent: number;
@@ -2978,8 +2978,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
2978
2978
  updatedAt: string;
2979
2979
  name: string;
2980
2980
  brand: string | null;
2981
- notes: string | null;
2982
2981
  isDefault: boolean;
2982
+ notes: string | null;
2983
2983
  micronutrients: Record<string, number> | null;
2984
2984
  productCode: string | null;
2985
2985
  nitrogenContent: number;
@@ -3037,8 +3037,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
3037
3037
  updatedAt: string;
3038
3038
  name: string;
3039
3039
  brand: string | null;
3040
- notes: string | null;
3041
3040
  isDefault: boolean;
3041
+ notes: string | null;
3042
3042
  micronutrients: Record<string, number> | null;
3043
3043
  productCode: string | null;
3044
3044
  nitrogenContent: number;
@@ -3082,8 +3082,8 @@ export declare const fertilizerProductListResponseSchema: z.ZodObject<{
3082
3082
  updatedAt: string;
3083
3083
  name: string;
3084
3084
  brand: string | null;
3085
- notes: string | null;
3086
3085
  isDefault: boolean;
3086
+ notes: string | null;
3087
3087
  micronutrients: Record<string, number> | null;
3088
3088
  productCode: string | null;
3089
3089
  nitrogenContent: number;