@squonk/data-manager-client 3.1.0-beta.2 → 3.1.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.
- package/accounting/accounting.cjs +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
|
@@ -28,24 +28,24 @@ var getGetAllApplicationExchangeRatesQueryOptions = (params, options) => {
|
|
|
28
28
|
const queryFn = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);
|
|
29
29
|
return { queryKey, queryFn, ...queryOptions };
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
function useGetAllApplicationExchangeRates(params, options) {
|
|
32
32
|
const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params, options);
|
|
33
33
|
const query = _reactquery.useQuery.call(void 0, queryOptions);
|
|
34
34
|
query.queryKey = queryOptions.queryKey;
|
|
35
35
|
return query;
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
37
|
var getGetAllApplicationExchangeRatesSuspenseQueryOptions = (params, options) => {
|
|
38
38
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
39
39
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetAllApplicationExchangeRatesQueryKey(params)));
|
|
40
40
|
const queryFn = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);
|
|
41
41
|
return { queryKey, queryFn, ...queryOptions };
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
function useGetAllApplicationExchangeRatesSuspense(params, options) {
|
|
44
44
|
const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params, options);
|
|
45
45
|
const query = _reactquery.useSuspenseQuery.call(void 0, queryOptions);
|
|
46
46
|
query.queryKey = queryOptions.queryKey;
|
|
47
47
|
return query;
|
|
48
|
-
}
|
|
48
|
+
}
|
|
49
49
|
var setApplicationExchangeRate = (applicationId, exchangeRatePutBodyBody, options) => {
|
|
50
50
|
const formData = new FormData();
|
|
51
51
|
formData.append("rate", exchangeRatePutBodyBody.rate);
|
|
@@ -94,24 +94,24 @@ var getGetApplicationExchangeRatesQueryOptions = (applicationId, params, options
|
|
|
94
94
|
const queryFn = ({ signal }) => getApplicationExchangeRates(applicationId, params, requestOptions, signal);
|
|
95
95
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
function useGetApplicationExchangeRates(applicationId, params, options) {
|
|
98
98
|
const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId, params, options);
|
|
99
99
|
const query = _reactquery.useQuery.call(void 0, queryOptions);
|
|
100
100
|
query.queryKey = queryOptions.queryKey;
|
|
101
101
|
return query;
|
|
102
|
-
}
|
|
102
|
+
}
|
|
103
103
|
var getGetApplicationExchangeRatesSuspenseQueryOptions = (applicationId, params, options) => {
|
|
104
104
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
105
105
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetApplicationExchangeRatesQueryKey(applicationId, params)));
|
|
106
106
|
const queryFn = ({ signal }) => getApplicationExchangeRates(applicationId, params, requestOptions, signal);
|
|
107
107
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
function useGetApplicationExchangeRatesSuspense(applicationId, params, options) {
|
|
110
110
|
const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId, params, options);
|
|
111
111
|
const query = _reactquery.useSuspenseQuery.call(void 0, queryOptions);
|
|
112
112
|
query.queryKey = queryOptions.queryKey;
|
|
113
113
|
return query;
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
var getAllJobExchangeRates = (params, options, signal) => {
|
|
116
116
|
return _chunkTKLTUR4Rcjs.customInstance.call(void 0,
|
|
117
117
|
{
|
|
@@ -132,24 +132,24 @@ var getGetAllJobExchangeRatesQueryOptions = (params, options) => {
|
|
|
132
132
|
const queryFn = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);
|
|
133
133
|
return { queryKey, queryFn, ...queryOptions };
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
function useGetAllJobExchangeRates(params, options) {
|
|
136
136
|
const queryOptions = getGetAllJobExchangeRatesQueryOptions(params, options);
|
|
137
137
|
const query = _reactquery.useQuery.call(void 0, queryOptions);
|
|
138
138
|
query.queryKey = queryOptions.queryKey;
|
|
139
139
|
return query;
|
|
140
|
-
}
|
|
140
|
+
}
|
|
141
141
|
var getGetAllJobExchangeRatesSuspenseQueryOptions = (params, options) => {
|
|
142
142
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
143
143
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetAllJobExchangeRatesQueryKey(params)));
|
|
144
144
|
const queryFn = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);
|
|
145
145
|
return { queryKey, queryFn, ...queryOptions };
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
function useGetAllJobExchangeRatesSuspense(params, options) {
|
|
148
148
|
const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params, options);
|
|
149
149
|
const query = _reactquery.useSuspenseQuery.call(void 0, queryOptions);
|
|
150
150
|
query.queryKey = queryOptions.queryKey;
|
|
151
151
|
return query;
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
var setJobPricing = (jobId, exchangeRatePutBodyBody, options) => {
|
|
154
154
|
const formData = new FormData();
|
|
155
155
|
formData.append("rate", exchangeRatePutBodyBody.rate);
|
|
@@ -198,24 +198,24 @@ var getGetJobExchangeRatesQueryOptions = (jobId, params, options) => {
|
|
|
198
198
|
const queryFn = ({ signal }) => getJobExchangeRates(jobId, params, requestOptions, signal);
|
|
199
199
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
function useGetJobExchangeRates(jobId, params, options) {
|
|
202
202
|
const queryOptions = getGetJobExchangeRatesQueryOptions(jobId, params, options);
|
|
203
203
|
const query = _reactquery.useQuery.call(void 0, queryOptions);
|
|
204
204
|
query.queryKey = queryOptions.queryKey;
|
|
205
205
|
return query;
|
|
206
|
-
}
|
|
206
|
+
}
|
|
207
207
|
var getGetJobExchangeRatesSuspenseQueryOptions = (jobId, params, options) => {
|
|
208
208
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
209
209
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetJobExchangeRatesQueryKey(jobId, params)));
|
|
210
210
|
const queryFn = ({ signal }) => getJobExchangeRates(jobId, params, requestOptions, signal);
|
|
211
211
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
function useGetJobExchangeRatesSuspense(jobId, params, options) {
|
|
214
214
|
const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId, params, options);
|
|
215
215
|
const query = _reactquery.useSuspenseQuery.call(void 0, queryOptions);
|
|
216
216
|
query.queryKey = queryOptions.queryKey;
|
|
217
217
|
return query;
|
|
218
|
-
}
|
|
218
|
+
}
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/exchange-rate/exchange-rate.ts"],"names":[],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAmCA,IAAM,iCAAiC,CAC1C,QACH,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U,SAAS,SAAS,CAAC,CAAE,OAAQ,GAAG,aAAY;AACnE;AAQO,IAAM,iCAAiC,CAC7C,OACG,QAAoC,YAEgC;AAEtE,QAAM,eAAe,2CAA2C,OAAM,QAAO,OAAO;AAEpF,QAAM,QAAQ,iBAAiB,YAAY;AAE3C,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT","sourcesContent":["/**\n * Generated by orval v6.25.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 3.1\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DmError,\n ExchangeRatePutBodyBody,\n GetAllApplicationExchangeRatesParams,\n GetAllExchangeRatesResponse,\n GetAllJobExchangeRatesParams,\n GetApplicationExchangeRatesParams,\n GetExchangeRatesResponse,\n GetJobExchangeRatesParams\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * For every Application that has an exchange rate the current rate is returned. If you want a list of all Applications that have no exchange rate, set the `only_undefined` query option.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\n * @summary Gets Exchange Rates for all Applications\n */\nexport const getAllApplicationExchangeRates = (\n params?: GetAllApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/application/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllApplicationExchangeRatesQueryKey = (params?: GetAllApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Applications\n */\nexport const useGetAllApplicationExchangeRates = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Applications\n */\nexport const useGetAllApplicationExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific Application. The rate replaces any existing rate for the Application and applies to all future executions of the Application.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const setApplicationExchangeRate = (\n applicationId: string,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setApplicationExchangeRate>>, {applicationId: string;data: ExchangeRatePutBodyBody}> = (props) => {\n const {applicationId,data} = props ?? {};\n\n return setApplicationExchangeRate(applicationId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>\n export type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody\n export type SetApplicationExchangeRateMutationError = ErrorType<DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const useSetApplicationExchangeRate = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getSetApplicationExchangeRateMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets the exchange rate history for a specific Application. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets the Application's Exchange Rate history\n */\nexport const getApplicationExchangeRates = (\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetApplicationExchangeRatesQueryKey = (applicationId: string,\n params?: GetApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/${applicationId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Application's Exchange Rate history\n */\nexport const useGetApplicationExchangeRates = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Application's Exchange Rate history\n */\nexport const useGetApplicationExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * For every Job that has an exchange rate the current rate is returned. If you want a list of all Jobs that have no exchange rate, set the `only_undefined` query option.\n\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const getAllJobExchangeRates = (\n params?: GetAllJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/job/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllJobExchangeRatesQueryKey = (params?: GetAllJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const useGetAllJobExchangeRates = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllJobExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const useGetAllJobExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific job. The rate replaces any existing rate for the Job and applies immediately and future job executions for this Job will inherit this rate.\n\nExchange rates are divided by an internal **scale factor** prior to being applied. The scale factor has a value of 1,000. The scale factor is used to make the exchange rates a little easier to digest, because without this on some jobs we would need to support values ike '0.00001'. With a scale factor of `1,000` the exchange rate is a much more humanly-digestible, e.g. '0.00001' becomes '0.01'.\n\nIf a Job has no specific rate it adopts the current value of the default Job Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const setJobPricing = (\n jobId: number,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/job/${jobId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetJobPricingMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setJobPricing>>, {jobId: number;data: ExchangeRatePutBodyBody}> = (props) => {\n const {jobId,data} = props ?? {};\n\n return setJobPricing(jobId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>\n export type SetJobPricingMutationBody = ExchangeRatePutBodyBody\n export type SetJobPricingMutationError = ErrorType<DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const useSetJobPricing = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getSetJobPricingMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets all the exchange rate history for a specific Job. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets Job Exchange Rates\n */\nexport const getJobExchangeRates = (\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/job/${jobId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetJobExchangeRatesQueryKey = (jobId: number,\n params?: GetJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/${jobId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Job Exchange Rates\n */\nexport const useGetJobExchangeRates = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetJobExchangeRatesQueryOptions(jobId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Job Exchange Rates\n */\nexport const useGetJobExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/squonk2-data-manager-js-client/squonk2-data-manager-js-client/dist/exchange-rate/exchange-rate.cjs","../../src/exchange-rate/exchange-rate.ts"],"names":[],"mappings":"AAAA;AACE;AACF,yDAA8B;AAC9B;AACA;ACOA;AACE;AACA;AACA;AAAA,mDACK;AAuCA,IAAM,+BAAA,EAAiC,CAC1C,MAAA,EACH,OAAA,EAAiD,MAAA,EAAA,GAC7C;AAGC,EAAA,OAAO,8CAAA;AAAA,IACP;AAAA,MAAC,GAAA,EAAK,CAAA,0BAAA,CAAA;AAAA,MAA8B,MAAA,EAAQ,KAAA;AAAA,MAC1C,MAAA;AAAA,MAAQ;AAAA,IACZ,CAAA;AAAA,IACE;AAAA,EAAO,CA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M,SAAA,EAAW,YAAA,CAAa,QAAA;AAE9B,EAAA,OAAO,KAAA;AACT;AAIO,IAAM,2CAAA,EAA6C,CAA8F,KAAA,EACpJ,MAAA,EAAoC,OAAA,EAAA,GACnC;AAEL,EAAA,MAAM,EAAC,KAAA,EAAO,YAAA,EAAc,OAAA,EAAS,eAAc,EAAA,mBAAI,OAAA,UAAW,CAAC,GAAA;AAEjE,EAAA,MAAM,SAAA,mBAAA,CAAY,aAAA,GAAA,KAAA,EAAA,KAAA,EAAA,EAAA,YAAA,CAAc,QAAA,CAAA,UAAY,8BAAA,CAA+B,KAAA,EAAM,MAAM,GAAA;AAIrF,EAAA,MAAM,QAAA,EAA0E,CAAC,EAAE,OAAO,CAAA,EAAA,GAAM,mBAAA,CAAoB,KAAA,EAAM,MAAA,EAAQ,cAAA,EAAgB,MAAM,CAAA;AAMzJ,EAAA,OAAQ,EAAE,QAAA,EAAU,OAAA,EAAS,OAAA,EAAS,CAAC,CAAE,KAAA,EAAQ,GAAG,aAAY,CAAA;AACnE,CAAA;AAyBO,SAAS,8BAAA,CACf,KAAA,EACG,MAAA,EAAoC,OAAA,EAE6B;AAEnE,EAAA,MAAM,aAAA,EAAe,0CAAA,CAA2C,KAAA,EAAM,MAAA,EAAO,OAAO,CAAA;AAEpF,EAAA,MAAM,MAAA,EAAQ,0CAAA,YAA6B,CAAA;AAE3C,EAAA,KAAA,CAAM,SAAA,EAAW,YAAA,CAAa,QAAA;AAE9B,EAAA,OAAO,KAAA;AACT;ADvjBA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,m1EAAC","file":"/home/runner/work/squonk2-data-manager-js-client/squonk2-data-manager-js-client/dist/exchange-rate/exchange-rate.cjs","sourcesContent":[null,"// @ts-nocheck\n/**\n * Generated by orval v7.2.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 3.1\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DmError,\n ExchangeRatePutBodyBody,\n GetAllApplicationExchangeRatesParams,\n GetAllExchangeRatesResponse,\n GetAllJobExchangeRatesParams,\n GetApplicationExchangeRatesParams,\n GetExchangeRatesResponse,\n GetJobExchangeRatesParams\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * For every Application that has an exchange rate the current rate is returned. If you want a list of all Applications that have no exchange rate, set the `only_undefined` query option.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\n * @summary Gets Exchange Rates for all Applications\n */\nexport const getAllApplicationExchangeRates = (\n params?: GetAllApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/application/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllApplicationExchangeRatesQueryKey = (params?: GetAllApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n\nexport function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetAllApplicationExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Exchange Rates for all Applications\n */\n\nexport function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetAllApplicationExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Exchange Rates for all Applications\n */\n\nexport function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific Application. The rate replaces any existing rate for the Application and applies to all future executions of the Application.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const setApplicationExchangeRate = (\n applicationId: string,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext> => {\nconst {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setApplicationExchangeRate>>, {applicationId: string;data: ExchangeRatePutBodyBody}> = (props) => {\n const {applicationId,data} = props ?? {};\n\n return setApplicationExchangeRate(applicationId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>\n export type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody\n export type SetApplicationExchangeRateMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const useSetApplicationExchangeRate = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationResult<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n {applicationId: string;data: ExchangeRatePutBodyBody},\n TContext\n > => {\n\n const mutationOptions = getSetApplicationExchangeRateMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets the exchange rate history for a specific Application. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets the Application's Exchange Rate history\n */\nexport const getApplicationExchangeRates = (\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetApplicationExchangeRatesQueryKey = (applicationId: string,\n params?: GetApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/${applicationId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n\nexport function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params: undefined | GetApplicationExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets the Application's Exchange Rate history\n */\n\nexport function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params: undefined | GetApplicationExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets the Application's Exchange Rate history\n */\n\nexport function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * For every Job that has an exchange rate the current rate is returned. If you want a list of all Jobs that have no exchange rate, set the `only_undefined` query option.\n\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const getAllJobExchangeRates = (\n params?: GetAllJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/job/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllJobExchangeRatesQueryKey = (params?: GetAllJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n\nexport function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetAllJobExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\n\nexport function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetAllJobExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params: undefined | GetAllJobExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\n\nexport function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific job. The rate replaces any existing rate for the Job and applies immediately and future job executions for this Job will inherit this rate.\n\nExchange rates are divided by an internal **scale factor** prior to being applied. The scale factor has a value of 1,000. The scale factor is used to make the exchange rates a little easier to digest, because without this on some jobs we would need to support values ike '0.00001'. With a scale factor of `1,000` the exchange rate is a much more humanly-digestible, e.g. '0.00001' becomes '0.01'.\n\nIf a Job has no specific rate it adopts the current value of the default Job Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const setJobPricing = (\n jobId: number,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/job/${jobId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetJobPricingMutationOptions = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext> => {\nconst {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setJobPricing>>, {jobId: number;data: ExchangeRatePutBodyBody}> = (props) => {\n const {jobId,data} = props ?? {};\n\n return setJobPricing(jobId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>\n export type SetJobPricingMutationBody = ExchangeRatePutBodyBody\n export type SetJobPricingMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const useSetJobPricing = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationResult<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n {jobId: number;data: ExchangeRatePutBodyBody},\n TContext\n > => {\n\n const mutationOptions = getSetJobPricingMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets all the exchange rate history for a specific Job. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets Job Exchange Rates\n */\nexport const getJobExchangeRates = (\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/job/${jobId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetJobExchangeRatesQueryKey = (jobId: number,\n params?: GetJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/${jobId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n\nexport function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params: undefined | GetJobExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Job Exchange Rates\n */\n\nexport function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetJobExchangeRatesQueryOptions(jobId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n\nexport function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params: undefined | GetJobExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\nexport function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }\n/**\n * @summary Gets Job Exchange Rates\n */\n\nexport function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n\n const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"]}
|