@deepintel-ltd/farmpro-contracts 1.19.1 → 1.20.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 (30) hide show
  1. package/dist/routes/agent-workflows.routes.d.ts +228 -48
  2. package/dist/routes/agent-workflows.routes.d.ts.map +1 -1
  3. package/dist/routes/commodity-deals.routes.d.ts +307 -0
  4. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  5. package/dist/routes/commodity-deals.routes.js +16 -1
  6. package/dist/routes/fertigation.routes.d.ts +80 -80
  7. package/dist/routes/field-monitoring.routes.d.ts +174 -30
  8. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  9. package/dist/routes/field-observations.routes.d.ts +1690 -156
  10. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  11. package/dist/routes/field-observations.routes.js +13 -1
  12. package/dist/routes/weather.routes.d.ts +49 -10
  13. package/dist/routes/weather.routes.d.ts.map +1 -1
  14. package/dist/schemas/agent-workflows.schemas.d.ts +262 -52
  15. package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -1
  16. package/dist/schemas/commodity-deals.schemas.d.ts +34 -0
  17. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  18. package/dist/schemas/commodity-deals.schemas.js +8 -0
  19. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  20. package/dist/schemas/field-monitoring.schemas.d.ts +91 -16
  21. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  22. package/dist/schemas/field-observations.schemas.d.ts +623 -132
  23. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  24. package/dist/schemas/field-observations.schemas.js +32 -4
  25. package/dist/schemas/recommendations.schemas.d.ts +26 -2
  26. package/dist/schemas/recommendations.schemas.d.ts.map +1 -1
  27. package/dist/schemas/recommendations.schemas.js +3 -0
  28. package/dist/schemas/weather.schemas.d.ts +148 -28
  29. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  30. package/package.json +1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2J/B,CAAC"}
@@ -1877,6 +1877,313 @@ export declare const commodityDealsRouter: {
1877
1877
  }>;
1878
1878
  };
1879
1879
  };
1880
+ payAllStaffCommissions: {
1881
+ pathParams: z.ZodObject<{
1882
+ organizationId: z.ZodString;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ organizationId: string;
1885
+ }, {
1886
+ organizationId: string;
1887
+ }>;
1888
+ summary: "Mark all unpaid staff commissions on paid deals as paid out";
1889
+ method: "POST";
1890
+ body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
1891
+ path: "/organizations/:organizationId/commodity-deals/pay-all-staff-commissions";
1892
+ responses: {
1893
+ 200: z.ZodObject<{
1894
+ data: z.ZodObject<{
1895
+ paidDealCount: z.ZodNumber;
1896
+ totalPaidOut: z.ZodNumber;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ paidDealCount: number;
1899
+ totalPaidOut: number;
1900
+ }, {
1901
+ paidDealCount: number;
1902
+ totalPaidOut: number;
1903
+ }>;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ data: {
1906
+ paidDealCount: number;
1907
+ totalPaidOut: number;
1908
+ };
1909
+ }, {
1910
+ data: {
1911
+ paidDealCount: number;
1912
+ totalPaidOut: number;
1913
+ };
1914
+ }>;
1915
+ 401: z.ZodObject<{
1916
+ errors: z.ZodArray<z.ZodObject<{
1917
+ id: z.ZodOptional<z.ZodString>;
1918
+ links: z.ZodOptional<z.ZodObject<{
1919
+ about: z.ZodOptional<z.ZodString>;
1920
+ }, "strip", z.ZodTypeAny, {
1921
+ about?: string | undefined;
1922
+ }, {
1923
+ about?: string | undefined;
1924
+ }>>;
1925
+ status: z.ZodOptional<z.ZodString>;
1926
+ code: z.ZodOptional<z.ZodString>;
1927
+ title: z.ZodOptional<z.ZodString>;
1928
+ detail: z.ZodOptional<z.ZodString>;
1929
+ source: z.ZodOptional<z.ZodObject<{
1930
+ pointer: z.ZodOptional<z.ZodString>;
1931
+ parameter: z.ZodOptional<z.ZodString>;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ pointer?: string | undefined;
1934
+ parameter?: string | undefined;
1935
+ }, {
1936
+ pointer?: string | undefined;
1937
+ parameter?: string | undefined;
1938
+ }>>;
1939
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1940
+ }, "strip", z.ZodTypeAny, {
1941
+ status?: string | undefined;
1942
+ code?: string | undefined;
1943
+ id?: string | undefined;
1944
+ links?: {
1945
+ about?: string | undefined;
1946
+ } | undefined;
1947
+ meta?: Record<string, unknown> | undefined;
1948
+ title?: string | undefined;
1949
+ detail?: string | undefined;
1950
+ source?: {
1951
+ pointer?: string | undefined;
1952
+ parameter?: string | undefined;
1953
+ } | undefined;
1954
+ }, {
1955
+ status?: string | undefined;
1956
+ code?: string | undefined;
1957
+ id?: string | undefined;
1958
+ links?: {
1959
+ about?: string | undefined;
1960
+ } | undefined;
1961
+ meta?: Record<string, unknown> | undefined;
1962
+ title?: string | undefined;
1963
+ detail?: string | undefined;
1964
+ source?: {
1965
+ pointer?: string | undefined;
1966
+ parameter?: string | undefined;
1967
+ } | undefined;
1968
+ }>, "many">;
1969
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ errors: {
1972
+ status?: string | undefined;
1973
+ code?: string | undefined;
1974
+ id?: string | undefined;
1975
+ links?: {
1976
+ about?: string | undefined;
1977
+ } | undefined;
1978
+ meta?: Record<string, unknown> | undefined;
1979
+ title?: string | undefined;
1980
+ detail?: string | undefined;
1981
+ source?: {
1982
+ pointer?: string | undefined;
1983
+ parameter?: string | undefined;
1984
+ } | undefined;
1985
+ }[];
1986
+ meta?: Record<string, unknown> | undefined;
1987
+ }, {
1988
+ errors: {
1989
+ status?: string | undefined;
1990
+ code?: string | undefined;
1991
+ id?: string | undefined;
1992
+ links?: {
1993
+ about?: string | undefined;
1994
+ } | undefined;
1995
+ meta?: Record<string, unknown> | undefined;
1996
+ title?: string | undefined;
1997
+ detail?: string | undefined;
1998
+ source?: {
1999
+ pointer?: string | undefined;
2000
+ parameter?: string | undefined;
2001
+ } | undefined;
2002
+ }[];
2003
+ meta?: Record<string, unknown> | undefined;
2004
+ }>;
2005
+ 403: z.ZodObject<{
2006
+ errors: z.ZodArray<z.ZodObject<{
2007
+ id: z.ZodOptional<z.ZodString>;
2008
+ links: z.ZodOptional<z.ZodObject<{
2009
+ about: z.ZodOptional<z.ZodString>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ about?: string | undefined;
2012
+ }, {
2013
+ about?: string | undefined;
2014
+ }>>;
2015
+ status: z.ZodOptional<z.ZodString>;
2016
+ code: z.ZodOptional<z.ZodString>;
2017
+ title: z.ZodOptional<z.ZodString>;
2018
+ detail: z.ZodOptional<z.ZodString>;
2019
+ source: z.ZodOptional<z.ZodObject<{
2020
+ pointer: z.ZodOptional<z.ZodString>;
2021
+ parameter: z.ZodOptional<z.ZodString>;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ pointer?: string | undefined;
2024
+ parameter?: string | undefined;
2025
+ }, {
2026
+ pointer?: string | undefined;
2027
+ parameter?: string | undefined;
2028
+ }>>;
2029
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2030
+ }, "strip", z.ZodTypeAny, {
2031
+ status?: string | undefined;
2032
+ code?: string | undefined;
2033
+ id?: string | undefined;
2034
+ links?: {
2035
+ about?: string | undefined;
2036
+ } | undefined;
2037
+ meta?: Record<string, unknown> | undefined;
2038
+ title?: string | undefined;
2039
+ detail?: string | undefined;
2040
+ source?: {
2041
+ pointer?: string | undefined;
2042
+ parameter?: string | undefined;
2043
+ } | undefined;
2044
+ }, {
2045
+ status?: string | undefined;
2046
+ code?: string | undefined;
2047
+ id?: string | undefined;
2048
+ links?: {
2049
+ about?: string | undefined;
2050
+ } | undefined;
2051
+ meta?: Record<string, unknown> | undefined;
2052
+ title?: string | undefined;
2053
+ detail?: string | undefined;
2054
+ source?: {
2055
+ pointer?: string | undefined;
2056
+ parameter?: string | undefined;
2057
+ } | undefined;
2058
+ }>, "many">;
2059
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2060
+ }, "strip", z.ZodTypeAny, {
2061
+ errors: {
2062
+ status?: string | undefined;
2063
+ code?: string | undefined;
2064
+ id?: string | undefined;
2065
+ links?: {
2066
+ about?: string | undefined;
2067
+ } | undefined;
2068
+ meta?: Record<string, unknown> | undefined;
2069
+ title?: string | undefined;
2070
+ detail?: string | undefined;
2071
+ source?: {
2072
+ pointer?: string | undefined;
2073
+ parameter?: string | undefined;
2074
+ } | undefined;
2075
+ }[];
2076
+ meta?: Record<string, unknown> | undefined;
2077
+ }, {
2078
+ errors: {
2079
+ status?: string | undefined;
2080
+ code?: string | undefined;
2081
+ id?: string | undefined;
2082
+ links?: {
2083
+ about?: string | undefined;
2084
+ } | undefined;
2085
+ meta?: Record<string, unknown> | undefined;
2086
+ title?: string | undefined;
2087
+ detail?: string | undefined;
2088
+ source?: {
2089
+ pointer?: string | undefined;
2090
+ parameter?: string | undefined;
2091
+ } | undefined;
2092
+ }[];
2093
+ meta?: Record<string, unknown> | undefined;
2094
+ }>;
2095
+ 404: z.ZodObject<{
2096
+ errors: z.ZodArray<z.ZodObject<{
2097
+ id: z.ZodOptional<z.ZodString>;
2098
+ links: z.ZodOptional<z.ZodObject<{
2099
+ about: z.ZodOptional<z.ZodString>;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ about?: string | undefined;
2102
+ }, {
2103
+ about?: string | undefined;
2104
+ }>>;
2105
+ status: z.ZodOptional<z.ZodString>;
2106
+ code: z.ZodOptional<z.ZodString>;
2107
+ title: z.ZodOptional<z.ZodString>;
2108
+ detail: z.ZodOptional<z.ZodString>;
2109
+ source: z.ZodOptional<z.ZodObject<{
2110
+ pointer: z.ZodOptional<z.ZodString>;
2111
+ parameter: z.ZodOptional<z.ZodString>;
2112
+ }, "strip", z.ZodTypeAny, {
2113
+ pointer?: string | undefined;
2114
+ parameter?: string | undefined;
2115
+ }, {
2116
+ pointer?: string | undefined;
2117
+ parameter?: string | undefined;
2118
+ }>>;
2119
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ status?: string | undefined;
2122
+ code?: string | undefined;
2123
+ id?: string | undefined;
2124
+ links?: {
2125
+ about?: string | undefined;
2126
+ } | undefined;
2127
+ meta?: Record<string, unknown> | undefined;
2128
+ title?: string | undefined;
2129
+ detail?: string | undefined;
2130
+ source?: {
2131
+ pointer?: string | undefined;
2132
+ parameter?: string | undefined;
2133
+ } | undefined;
2134
+ }, {
2135
+ status?: string | undefined;
2136
+ code?: string | undefined;
2137
+ id?: string | undefined;
2138
+ links?: {
2139
+ about?: string | undefined;
2140
+ } | undefined;
2141
+ meta?: Record<string, unknown> | undefined;
2142
+ title?: string | undefined;
2143
+ detail?: string | undefined;
2144
+ source?: {
2145
+ pointer?: string | undefined;
2146
+ parameter?: string | undefined;
2147
+ } | undefined;
2148
+ }>, "many">;
2149
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2150
+ }, "strip", z.ZodTypeAny, {
2151
+ errors: {
2152
+ status?: string | undefined;
2153
+ code?: string | undefined;
2154
+ id?: string | undefined;
2155
+ links?: {
2156
+ about?: string | undefined;
2157
+ } | undefined;
2158
+ meta?: Record<string, unknown> | undefined;
2159
+ title?: string | undefined;
2160
+ detail?: string | undefined;
2161
+ source?: {
2162
+ pointer?: string | undefined;
2163
+ parameter?: string | undefined;
2164
+ } | undefined;
2165
+ }[];
2166
+ meta?: Record<string, unknown> | undefined;
2167
+ }, {
2168
+ errors: {
2169
+ status?: string | undefined;
2170
+ code?: string | undefined;
2171
+ id?: string | undefined;
2172
+ links?: {
2173
+ about?: string | undefined;
2174
+ } | undefined;
2175
+ meta?: Record<string, unknown> | undefined;
2176
+ title?: string | undefined;
2177
+ detail?: string | undefined;
2178
+ source?: {
2179
+ pointer?: string | undefined;
2180
+ parameter?: string | undefined;
2181
+ } | undefined;
2182
+ }[];
2183
+ meta?: Record<string, unknown> | undefined;
2184
+ }>;
2185
+ };
2186
+ };
1880
2187
  getCommodityDeal: {
1881
2188
  pathParams: z.ZodObject<{
1882
2189
  organizationId: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2L/B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { createCommodityDealSchema, updateCommodityDealSchema, commodityDealResponseSchema, commodityDealListResponseSchema, commodityDealSummaryResponseSchema, commodityDealInsightsResponseSchema, commodityDealInsightsPeriodSchema, commodityDealStatusSchema, createDealParticipantSchema, updateDealParticipantSchema, myEarningsResponseSchema, } from '../schemas/commodity-deals.schemas';
3
+ import { createCommodityDealSchema, updateCommodityDealSchema, commodityDealResponseSchema, commodityDealListResponseSchema, commodityDealSummaryResponseSchema, commodityDealInsightsResponseSchema, commodityDealInsightsPeriodSchema, commodityDealStatusSchema, createDealParticipantSchema, updateDealParticipantSchema, myEarningsResponseSchema, payAllStaffCommissionsResponseSchema, } from '../schemas/commodity-deals.schemas';
4
4
  import { jsonApiErrorResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, } from '../schemas/common.schemas';
5
5
  const c = initContract();
6
6
  export const commodityDealsRouter = c.router({
@@ -62,6 +62,21 @@ export const commodityDealsRouter = c.router({
62
62
  },
63
63
  summary: 'Get investor earnings for the current user in an organization',
64
64
  },
65
+ payAllStaffCommissions: {
66
+ method: 'POST',
67
+ path: '/organizations/:organizationId/commodity-deals/pay-all-staff-commissions',
68
+ pathParams: z.object({
69
+ organizationId: z.string().uuid(),
70
+ }),
71
+ body: z.object({}).optional(),
72
+ responses: {
73
+ 200: payAllStaffCommissionsResponseSchema,
74
+ 401: jsonApiErrorResponseSchema,
75
+ 403: jsonApiErrorResponseSchema,
76
+ 404: jsonApiErrorResponseSchema,
77
+ },
78
+ summary: 'Mark all unpaid staff commissions on paid deals as paid out',
79
+ },
65
80
  getCommodityDeal: {
66
81
  method: 'GET',
67
82
  path: '/organizations/:organizationId/commodity-deals/:id',