@deepintel-ltd/farmpro-contracts 1.20.0 → 1.21.0

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.
@@ -5023,18 +5023,18 @@ export declare const agentsRouter: {
5023
5023
  modelUsed: z.ZodOptional<z.ZodString>;
5024
5024
  proposedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5025
5025
  id: z.ZodString;
5026
- type: z.ZodEnum<["create_task", "log_expense", "log_revenue", "dismiss_alert", "open_entity", "record_planting", "record_harvest", "record_field_activity"]>;
5026
+ type: z.ZodEnum<["create_task", "log_expense", "log_revenue", "dismiss_alert", "open_entity", "record_planting", "record_harvest", "record_field_activity", "end_season"]>;
5027
5027
  title: z.ZodString;
5028
5028
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5029
5029
  requiresConfirmation: z.ZodDefault<z.ZodBoolean>;
5030
5030
  }, "strip", z.ZodTypeAny, {
5031
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5031
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5032
5032
  id: string;
5033
5033
  title: string;
5034
5034
  payload: Record<string, unknown>;
5035
5035
  requiresConfirmation: boolean;
5036
5036
  }, {
5037
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5037
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5038
5038
  id: string;
5039
5039
  title: string;
5040
5040
  payload: Record<string, unknown>;
@@ -5046,7 +5046,7 @@ export declare const agentsRouter: {
5046
5046
  conversationId?: string | undefined;
5047
5047
  modelUsed?: string | undefined;
5048
5048
  proposedActions?: {
5049
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5049
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5050
5050
  id: string;
5051
5051
  title: string;
5052
5052
  payload: Record<string, unknown>;
@@ -5058,7 +5058,7 @@ export declare const agentsRouter: {
5058
5058
  conversationId?: string | undefined;
5059
5059
  modelUsed?: string | undefined;
5060
5060
  proposedActions?: {
5061
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5061
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5062
5062
  id: string;
5063
5063
  title: string;
5064
5064
  payload: Record<string, unknown>;
@@ -5074,7 +5074,7 @@ export declare const agentsRouter: {
5074
5074
  conversationId?: string | undefined;
5075
5075
  modelUsed?: string | undefined;
5076
5076
  proposedActions?: {
5077
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5077
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5078
5078
  id: string;
5079
5079
  title: string;
5080
5080
  payload: Record<string, unknown>;
@@ -5090,7 +5090,7 @@ export declare const agentsRouter: {
5090
5090
  conversationId?: string | undefined;
5091
5091
  modelUsed?: string | undefined;
5092
5092
  proposedActions?: {
5093
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5093
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5094
5094
  id: string;
5095
5095
  title: string;
5096
5096
  payload: Record<string, unknown>;
@@ -5108,7 +5108,7 @@ export declare const agentsRouter: {
5108
5108
  conversationId?: string | undefined;
5109
5109
  modelUsed?: string | undefined;
5110
5110
  proposedActions?: {
5111
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5111
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5112
5112
  id: string;
5113
5113
  title: string;
5114
5114
  payload: Record<string, unknown>;
@@ -5126,7 +5126,7 @@ export declare const agentsRouter: {
5126
5126
  conversationId?: string | undefined;
5127
5127
  modelUsed?: string | undefined;
5128
5128
  proposedActions?: {
5129
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5129
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5130
5130
  id: string;
5131
5131
  title: string;
5132
5132
  payload: Record<string, unknown>;
@@ -5703,18 +5703,18 @@ export declare const agentsRouter: {
5703
5703
  modelUsed: z.ZodOptional<z.ZodString>;
5704
5704
  proposedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5705
5705
  id: z.ZodString;
5706
- type: z.ZodEnum<["create_task", "log_expense", "log_revenue", "dismiss_alert", "open_entity", "record_planting", "record_harvest", "record_field_activity"]>;
5706
+ type: z.ZodEnum<["create_task", "log_expense", "log_revenue", "dismiss_alert", "open_entity", "record_planting", "record_harvest", "record_field_activity", "end_season"]>;
5707
5707
  title: z.ZodString;
5708
5708
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5709
5709
  requiresConfirmation: z.ZodDefault<z.ZodBoolean>;
5710
5710
  }, "strip", z.ZodTypeAny, {
5711
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5711
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5712
5712
  id: string;
5713
5713
  title: string;
5714
5714
  payload: Record<string, unknown>;
5715
5715
  requiresConfirmation: boolean;
5716
5716
  }, {
5717
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5717
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5718
5718
  id: string;
5719
5719
  title: string;
5720
5720
  payload: Record<string, unknown>;
@@ -5727,7 +5727,7 @@ export declare const agentsRouter: {
5727
5727
  conversationId?: string | undefined;
5728
5728
  modelUsed?: string | undefined;
5729
5729
  proposedActions?: {
5730
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5730
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5731
5731
  id: string;
5732
5732
  title: string;
5733
5733
  payload: Record<string, unknown>;
@@ -5740,7 +5740,7 @@ export declare const agentsRouter: {
5740
5740
  conversationId?: string | undefined;
5741
5741
  modelUsed?: string | undefined;
5742
5742
  proposedActions?: {
5743
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5743
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5744
5744
  id: string;
5745
5745
  title: string;
5746
5746
  payload: Record<string, unknown>;
@@ -5757,7 +5757,7 @@ export declare const agentsRouter: {
5757
5757
  conversationId?: string | undefined;
5758
5758
  modelUsed?: string | undefined;
5759
5759
  proposedActions?: {
5760
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5760
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5761
5761
  id: string;
5762
5762
  title: string;
5763
5763
  payload: Record<string, unknown>;
@@ -5774,7 +5774,7 @@ export declare const agentsRouter: {
5774
5774
  conversationId?: string | undefined;
5775
5775
  modelUsed?: string | undefined;
5776
5776
  proposedActions?: {
5777
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5777
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5778
5778
  id: string;
5779
5779
  title: string;
5780
5780
  payload: Record<string, unknown>;
@@ -5793,7 +5793,7 @@ export declare const agentsRouter: {
5793
5793
  conversationId?: string | undefined;
5794
5794
  modelUsed?: string | undefined;
5795
5795
  proposedActions?: {
5796
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5796
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5797
5797
  id: string;
5798
5798
  title: string;
5799
5799
  payload: Record<string, unknown>;
@@ -5812,7 +5812,7 @@ export declare const agentsRouter: {
5812
5812
  conversationId?: string | undefined;
5813
5813
  modelUsed?: string | undefined;
5814
5814
  proposedActions?: {
5815
- type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity";
5815
+ type: "create_task" | "log_expense" | "log_revenue" | "dismiss_alert" | "open_entity" | "record_planting" | "record_harvest" | "record_field_activity" | "end_season";
5816
5816
  id: string;
5817
5817
  title: string;
5818
5818
  payload: Record<string, unknown>;
@@ -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',