@squonk/data-manager-client 1.2.3-rc.2 → 1.2.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounting/accounting.cjs +31 -13
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +77 -0
- package/accounting/accounting.d.ts +10 -1
- package/accounting/accounting.js +29 -11
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +67 -27
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +324 -0
- package/admin/admin.d.ts +55 -22
- package/admin/admin.js +57 -17
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +23 -13
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +57 -0
- package/application/application.d.ts +7 -1
- package/application/application.js +22 -12
- package/application/application.js.map +1 -1
- package/{chunk-UZTHSGDT.cjs → chunk-J22A7LHX.cjs} +1 -1
- package/chunk-J22A7LHX.cjs.map +1 -0
- package/{chunk-3RNIDX7T.js → chunk-UKA7G3OB.js} +1 -1
- package/{chunk-3RNIDX7T.js.map → chunk-UKA7G3OB.js.map} +1 -1
- package/configuration/configuration.cjs +13 -7
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +29 -0
- package/configuration/configuration.d.ts +4 -1
- package/configuration/configuration.js +13 -7
- package/configuration/configuration.js.map +1 -1
- package/{custom-instance-50c9dd5d.d.ts → custom-instance-a2110e78.d.ts} +825 -825
- package/dataset/dataset.cjs +71 -72
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +315 -0
- package/dataset/dataset.d.ts +46 -16
- package/dataset/dataset.js +62 -63
- package/dataset/dataset.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +43 -32
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +180 -0
- package/exchange-rate/exchange-rate.d.ts +25 -7
- package/exchange-rate/exchange-rate.js +38 -27
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file/file.cjs +38 -22
- package/file/file.cjs.map +1 -1
- package/file/file.d.cts +154 -0
- package/file/file.d.ts +25 -10
- package/file/file.js +34 -18
- package/file/file.js.map +1 -1
- package/index.cjs +10 -10
- package/index.cjs.map +1 -1
- package/index.d.cts +2 -0
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/instance/instance.cjs +47 -37
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +215 -0
- package/instance/instance.d.ts +33 -12
- package/instance/instance.js +41 -31
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +36 -19
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +85 -0
- package/job/job.d.ts +10 -1
- package/job/job.js +34 -17
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +23 -26
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +132 -0
- package/metadata/metadata.d.ts +19 -7
- package/metadata/metadata.js +20 -23
- package/metadata/metadata.js.map +1 -1
- package/package.json +12 -12
- package/project/project.cjs +70 -48
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +377 -0
- package/project/project.d.ts +61 -25
- package/project/project.js +59 -37
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +179 -194
- package/src/admin/admin.ts +590 -735
- package/src/application/application.ts +125 -141
- package/src/configuration/configuration.ts +72 -60
- package/src/data-manager-api.schemas.ts +940 -941
- package/src/dataset/dataset.ts +591 -770
- package/src/exchange-rate/exchange-rate.ts +362 -478
- package/src/file/file.ts +292 -357
- package/src/instance/instance.ts +427 -533
- package/src/job/job.ts +187 -198
- package/src/metadata/metadata.ts +247 -339
- package/src/project/project.ts +669 -860
- package/src/task/task.ts +181 -202
- package/src/type/type.ts +72 -68
- package/src/user/user.ts +248 -286
- package/task/task.cjs +31 -15
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +103 -0
- package/task/task.d.ts +10 -1
- package/task/task.js +29 -13
- package/task/task.js.map +1 -1
- package/type/type.cjs +13 -7
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +31 -0
- package/type/type.d.ts +4 -1
- package/type/type.js +13 -7
- package/type/type.js.map +1 -1
- package/user/user.cjs +39 -28
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +104 -0
- package/user/user.d.ts +16 -4
- package/user/user.js +36 -25
- package/user/user.js.map +1 -1
- package/chunk-UZTHSGDT.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/exchange-rate/exchange-rate.ts"],"names":[],"mappings":";;;;;AAUA,SAAS,UAAU,mBAAmB;AAqC/B,IAAM,iCAAiC,CAC5C,QACA,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,8BAA8B,QAAQ,OAAO,QAAQ,OAAO;AAAA,IACnE;AAAA,EACF;AACF;AAEO,IAAM,4CAA4C,CACvD,WACG,CAAC,oBAAoB,8BAA8B,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAE5E,IAAM,gDAAgD,CAI3D,QACA,YAY4B;AAC5B,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,YACJ,6CAAc,aAAY,0CAA0C,MAAM;AAE5E,QAAM,UAEF,CAAC,EAAE,OAAO,MACZ,+BAA+B,QAAQ,gBAAgB,MAAM;AAE/D,SAAO,EAAE,UAAU,SAAS,GAAG,aAAa;AAC9C;AAQO,IAAM,oCAAoC,CAI/C,QACA,YAQ2D;AAC3D,QAAM,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,EACF;AAEA,QAAM,QAAQ,SAAS,YAAY;AAInC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AAWO,IAAM,6BAA6B,CACxC,eACA,yBACA,YACG;AACH,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,wBAAwB,IAAI;AACpD,MAAI,wBAAwB,YAAY,QAAW;AACjD,aAAS,OAAO,WAAW,w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3E,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,OAAO,KAAK,IAAI,SAAS,CAAC;AAElC,WAAO,cAAc,OAAO,MAAM,cAAc;AAAA,EAClD;AAEA,SAAO,EAAE,YAAY,GAAG,gBAAgB;AAC1C;AAQO,IAAM,mBAAmB,CAG9B,YAQI;AACJ,QAAM,kBAAkB,gCAAgC,OAAO;AAE/D,SAAO,YAAY,eAAe;AACpC;AAMO,IAAM,sBAAsB,CACjC,OACA,QACA,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,QAAQ,uBAAuB,QAAQ,OAAO,QAAQ,OAAO;AAAA,IACpE;AAAA,EACF;AACF;AAEO,IAAM,iCAAiC,CAC5C,OACA,WACG,CAAC,oBAAoB,QAAQ,uBAAuB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAE7E,IAAM,qCAAqC,CAIhD,OACA,QACA,YAY4B;AAC5B,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,YACJ,6CAAc,aAAY,+BAA+B,OAAO,MAAM;AAExE,QAAM,UAEF,CAAC,EAAE,OAAO,MACZ,oBAAoB,OAAO,QAAQ,gBAAgB,MAAM;AAE3D,SAAO,EAAE,UAAU,SAAS,SAAS,CAAC,CAAC,OAAO,GAAG,aAAa;AAChE;AAOO,IAAM,yBAAyB,CAIpC,OACA,QACA,YAQ2D;AAC3D,QAAM,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,QAAQ,SAAS,YAAY;AAInC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT","sourcesContent":["/**\n * Generated by orval v6.15.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: 1.2\n */\nimport { useQuery, useMutation } from \"@tanstack/react-query\";\nimport type {\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"@tanstack/react-query\";\nimport type {\n GetAllExchangeRatesResponse,\n DmError,\n GetAllApplicationExchangeRatesParams,\n ExchangeRatePutBodyBody,\n GetExchangeRatesResponse,\n GetApplicationExchangeRatesParams,\n GetAllJobExchangeRatesParams,\n GetJobExchangeRatesParams,\n} from \"../data-manager-api.schemas\";\nimport { customInstance } from \".././custom-instance\";\nimport type { ErrorType } from \".././custom-instance\";\n\n// eslint-disable-next-line\ntype SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P\n) => any\n ? P\n : never;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetAllExchangeRatesResponse>(\n { url: `/application/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetAllApplicationExchangeRatesQueryKey = (\n params?: GetAllApplicationExchangeRatesParams\n) => [\"data-manager-api\", `/application/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetAllApplicationExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>\n > = ({ signal }) =>\n getAllApplicationExchangeRates(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type GetAllApplicationExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>\n>;\nexport type GetAllApplicationExchangeRatesQueryError =\n ErrorType<void | DmError>;\n\nexport const useGetAllApplicationExchangeRates = <\n TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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();\n formData.append(\"rate\", exchangeRatePutBodyBody.rate);\n if (exchangeRatePutBodyBody.comment !== undefined) {\n formData.append(\"comment\", exchangeRatePutBodyBody.comment);\n }\n\n return customInstance<void>(\n {\n url: `/application/${applicationId}/exchange-rate`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getSetApplicationExchangeRateMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n { applicationId: string; data: ExchangeRatePutBodyBody }\n > = (props) => {\n const { applicationId, data } = props ?? {};\n\n return setApplicationExchangeRate(applicationId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type SetApplicationExchangeRateMutationResult = NonNullable<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>\n>;\nexport type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;\nexport type SetApplicationExchangeRateMutationError = ErrorType<DmError>;\n\nexport const useSetApplicationExchangeRate = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetExchangeRatesResponse>(\n {\n url: `/application/${applicationId}/exchange-rate`,\n method: \"get\",\n params,\n signal,\n },\n options\n );\n};\n\nexport const getGetApplicationExchangeRatesQueryKey = (\n applicationId: string,\n params?: GetApplicationExchangeRatesParams\n) =>\n [\n \"data-manager-api\",\n `/application/${applicationId}/exchange-rate`,\n ...(params ? [params] : []),\n ] as const;\n\nexport const getGetApplicationExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ??\n getGetApplicationExchangeRatesQueryKey(applicationId, params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>\n > = ({ signal }) =>\n getApplicationExchangeRates(applicationId, params, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };\n};\n\nexport type GetApplicationExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>\n>;\nexport type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetApplicationExchangeRates = <\n TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetApplicationExchangeRatesQueryOptions(\n applicationId,\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetAllExchangeRatesResponse>(\n { url: `/job/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetAllJobExchangeRatesQueryKey = (\n params?: GetAllJobExchangeRatesParams\n) => [\"data-manager-api\", `/job/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetAllJobExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>\n > = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type GetAllJobExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>\n>;\nexport type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetAllJobExchangeRates = <\n TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetAllJobExchangeRatesQueryOptions(params, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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();\n formData.append(\"rate\", exchangeRatePutBodyBody.rate);\n if (exchangeRatePutBodyBody.comment !== undefined) {\n formData.append(\"comment\", exchangeRatePutBodyBody.comment);\n }\n\n return customInstance<void>(\n {\n url: `/job/${jobId}/exchange-rate`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getSetJobPricingMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof setJobPricing>>,\n { jobId: number; data: ExchangeRatePutBodyBody }\n > = (props) => {\n const { jobId, data } = props ?? {};\n\n return setJobPricing(jobId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type SetJobPricingMutationResult = NonNullable<\n Awaited<ReturnType<typeof setJobPricing>>\n>;\nexport type SetJobPricingMutationBody = ExchangeRatePutBodyBody;\nexport type SetJobPricingMutationError = ErrorType<DmError>;\n\nexport const useSetJobPricing = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetExchangeRatesResponse>(\n { url: `/job/${jobId}/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetJobExchangeRatesQueryKey = (\n jobId: number,\n params?: GetJobExchangeRatesParams\n) => [\"data-manager-api\", `/job/${jobId}/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetJobExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId, params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getJobExchangeRates>>\n > = ({ signal }) =>\n getJobExchangeRates(jobId, params, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };\n};\n\nexport type GetJobExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getJobExchangeRates>>\n>;\nexport type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetJobExchangeRates = <\n TData = Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetJobExchangeRatesQueryOptions(\n jobId,\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/exchange-rate/exchange-rate.ts"],"names":[],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAuCA,IAAM,iCAAiC,CAC1C,QACH,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAA8B,QAAQ;AAAA,MAC1C;AAAA,MAAQ;AAAA,IACZ;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,4CAA4C,CAAC,WAAmD;AAEzG,SAAO,CAAC,oBAAoB,8BAA8B,GAAI,SAAS,CAAC,MAAM,IAAG,CAAC,CAAE;AACpF;A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wC;AAExC,SAAO,CAAC,oBAAoB,QAAQ,KAAK,kBAAkB,GAAI,SAAS,CAAC,MAAM,IAAG,CAAC,CAAE;AACrF;AAGG,IAAM,qCAAqC,CAA8F,OAC5I,QAAoC,YACnC;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,+BAA+B,OAAM,MAAM;AAIrF,QAAM,UAA0E,CAAC,EAAE,OAAO,MAAM,oBAAoB,OAAM,QAAQ,gBAAgB,MAAM;AAMzJ,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,OAAQ,GAAG,aAAY;AACnE;AAQO,IAAM,yBAAyB,CACrC,OACG,QAAoC,YAEwB;AAE9D,QAAM,eAAe,mCAAmC,OAAM,QAAO,OAAO;AAE5E,QAAM,QAAQ,SAAS,YAAY;AAEnC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT","sourcesContent":["/**\n * Generated by orval v6.20.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: 1.2\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult\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\n// eslint-disable-next-line\n type SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P,\n) => any\n ? P\n : never;\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 \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?: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?: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\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 \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 \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 \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?: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?: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\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 \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?: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?: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\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 \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 \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 \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?: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?: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\n"]}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { k as GetAllApplicationExchangeRatesParams, bX as customInstance, bx as GetAllExchangeRatesResponse, bY as ErrorType, bT as DmError, aa as ExchangeRatePutBodyBody, j as GetApplicationExchangeRatesParams, bv as GetExchangeRatesResponse, f as GetAllJobExchangeRatesParams, e as GetJobExchangeRatesParams } from '../custom-instance-a2110e78.js';
|
|
4
|
+
import 'axios';
|
|
5
|
+
|
|
6
|
+
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
|
|
10
|
+
If an Application has no specific rate it adopts the current value of the default Application Exchange Rate.
|
|
11
|
+
|
|
12
|
+
* @summary Gets Exchange Rates for all Applications
|
|
13
|
+
*/
|
|
14
|
+
declare const getAllApplicationExchangeRates: (params?: GetAllApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
|
|
15
|
+
declare const getGetAllApplicationExchangeRatesQueryKey: (params?: GetAllApplicationExchangeRatesParams) => readonly ["data-manager-api", "/application/exchange-rate", ...GetAllApplicationExchangeRatesParams[]];
|
|
16
|
+
declare const getGetAllApplicationExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
17
|
+
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
18
|
+
request?: SecondParameter<typeof customInstance>;
|
|
19
|
+
} | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
|
|
20
|
+
queryKey: QueryKey;
|
|
21
|
+
};
|
|
22
|
+
type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
|
|
23
|
+
type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Gets Exchange Rates for all Applications
|
|
26
|
+
*/
|
|
27
|
+
declare const useGetAllApplicationExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
28
|
+
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
29
|
+
request?: SecondParameter<typeof customInstance>;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
|
|
36
|
+
If an Application has no specific rate it adopts the current value of the default Application Exchange Rate.
|
|
37
|
+
|
|
38
|
+
You need `admin` privilege to use this method.
|
|
39
|
+
|
|
40
|
+
* @summary Sets the Exchange Rate for a specific Application
|
|
41
|
+
*/
|
|
42
|
+
declare const setApplicationExchangeRate: (applicationId: string, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
43
|
+
declare const getSetApplicationExchangeRateMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
44
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
45
|
+
applicationId: string;
|
|
46
|
+
data: ExchangeRatePutBodyBody;
|
|
47
|
+
}, TContext> | undefined;
|
|
48
|
+
request?: SecondParameter<typeof customInstance>;
|
|
49
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
50
|
+
applicationId: string;
|
|
51
|
+
data: ExchangeRatePutBodyBody;
|
|
52
|
+
}, TContext>;
|
|
53
|
+
type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>;
|
|
54
|
+
type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;
|
|
55
|
+
type SetApplicationExchangeRateMutationError = ErrorType<DmError>;
|
|
56
|
+
/**
|
|
57
|
+
* @summary Sets the Exchange Rate for a specific Application
|
|
58
|
+
*/
|
|
59
|
+
declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
60
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
61
|
+
applicationId: string;
|
|
62
|
+
data: ExchangeRatePutBodyBody;
|
|
63
|
+
}, TContext> | undefined;
|
|
64
|
+
request?: SecondParameter<typeof customInstance>;
|
|
65
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
66
|
+
applicationId: string;
|
|
67
|
+
data: ExchangeRatePutBodyBody;
|
|
68
|
+
}, TContext>;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
|
|
72
|
+
* @summary Gets the Application's Exchange Rate history
|
|
73
|
+
*/
|
|
74
|
+
declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
75
|
+
declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly ["data-manager-api", `/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
|
|
76
|
+
declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
77
|
+
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
78
|
+
request?: SecondParameter<typeof customInstance>;
|
|
79
|
+
} | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
|
|
80
|
+
queryKey: QueryKey;
|
|
81
|
+
};
|
|
82
|
+
type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
|
|
83
|
+
type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Gets the Application's Exchange Rate history
|
|
86
|
+
*/
|
|
87
|
+
declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
88
|
+
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
89
|
+
request?: SecondParameter<typeof customInstance>;
|
|
90
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
91
|
+
queryKey: QueryKey;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* 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.
|
|
95
|
+
|
|
96
|
+
* @summary Gets Exchange Rates for all Jobs
|
|
97
|
+
*/
|
|
98
|
+
declare const getAllJobExchangeRates: (params?: GetAllJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
|
|
99
|
+
declare const getGetAllJobExchangeRatesQueryKey: (params?: GetAllJobExchangeRatesParams) => readonly ["data-manager-api", "/job/exchange-rate", ...GetAllJobExchangeRatesParams[]];
|
|
100
|
+
declare const getGetAllJobExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
101
|
+
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
102
|
+
request?: SecondParameter<typeof customInstance>;
|
|
103
|
+
} | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
|
|
104
|
+
queryKey: QueryKey;
|
|
105
|
+
};
|
|
106
|
+
type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
|
|
107
|
+
type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
108
|
+
/**
|
|
109
|
+
* @summary Gets Exchange Rates for all Jobs
|
|
110
|
+
*/
|
|
111
|
+
declare const useGetAllJobExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
112
|
+
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
113
|
+
request?: SecondParameter<typeof customInstance>;
|
|
114
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
115
|
+
queryKey: QueryKey;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* 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.
|
|
119
|
+
|
|
120
|
+
Exchange 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'.
|
|
121
|
+
|
|
122
|
+
If a Job has no specific rate it adopts the current value of the default Job Exchange Rate.
|
|
123
|
+
|
|
124
|
+
You need `admin` privilege to use this method.
|
|
125
|
+
|
|
126
|
+
* @summary Sets the Exchange Rate for a specific Job
|
|
127
|
+
*/
|
|
128
|
+
declare const setJobPricing: (jobId: number, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
129
|
+
declare const getSetJobPricingMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
130
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
131
|
+
jobId: number;
|
|
132
|
+
data: ExchangeRatePutBodyBody;
|
|
133
|
+
}, TContext> | undefined;
|
|
134
|
+
request?: SecondParameter<typeof customInstance>;
|
|
135
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
136
|
+
jobId: number;
|
|
137
|
+
data: ExchangeRatePutBodyBody;
|
|
138
|
+
}, TContext>;
|
|
139
|
+
type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>;
|
|
140
|
+
type SetJobPricingMutationBody = ExchangeRatePutBodyBody;
|
|
141
|
+
type SetJobPricingMutationError = ErrorType<DmError>;
|
|
142
|
+
/**
|
|
143
|
+
* @summary Sets the Exchange Rate for a specific Job
|
|
144
|
+
*/
|
|
145
|
+
declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
146
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
147
|
+
jobId: number;
|
|
148
|
+
data: ExchangeRatePutBodyBody;
|
|
149
|
+
}, TContext> | undefined;
|
|
150
|
+
request?: SecondParameter<typeof customInstance>;
|
|
151
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
152
|
+
jobId: number;
|
|
153
|
+
data: ExchangeRatePutBodyBody;
|
|
154
|
+
}, TContext>;
|
|
155
|
+
/**
|
|
156
|
+
* 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.
|
|
157
|
+
|
|
158
|
+
* @summary Gets Job Exchange Rates
|
|
159
|
+
*/
|
|
160
|
+
declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
161
|
+
declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly ["data-manager-api", `/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
|
|
162
|
+
declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
163
|
+
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
164
|
+
request?: SecondParameter<typeof customInstance>;
|
|
165
|
+
} | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
|
|
166
|
+
queryKey: QueryKey;
|
|
167
|
+
};
|
|
168
|
+
type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
|
|
169
|
+
type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
170
|
+
/**
|
|
171
|
+
* @summary Gets Job Exchange Rates
|
|
172
|
+
*/
|
|
173
|
+
declare const useGetJobExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
174
|
+
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
175
|
+
request?: SecondParameter<typeof customInstance>;
|
|
176
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
177
|
+
queryKey: QueryKey;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export { GetAllApplicationExchangeRatesQueryError, GetAllApplicationExchangeRatesQueryResult, GetAllJobExchangeRatesQueryError, GetAllJobExchangeRatesQueryResult, GetApplicationExchangeRatesQueryError, GetApplicationExchangeRatesQueryResult, GetJobExchangeRatesQueryError, GetJobExchangeRatesQueryResult, SetApplicationExchangeRateMutationBody, SetApplicationExchangeRateMutationError, SetApplicationExchangeRateMutationResult, SetJobPricingMutationBody, SetJobPricingMutationError, SetJobPricingMutationResult, getAllApplicationExchangeRates, getAllJobExchangeRates, getApplicationExchangeRates, getGetAllApplicationExchangeRatesQueryKey, getGetAllApplicationExchangeRatesQueryOptions, getGetAllJobExchangeRatesQueryKey, getGetAllJobExchangeRatesQueryOptions, getGetApplicationExchangeRatesQueryKey, getGetApplicationExchangeRatesQueryOptions, getGetJobExchangeRatesQueryKey, getGetJobExchangeRatesQueryOptions, getJobExchangeRates, getSetApplicationExchangeRateMutationOptions, getSetJobPricingMutationOptions, setApplicationExchangeRate, setJobPricing, useGetAllApplicationExchangeRates, useGetAllJobExchangeRates, useGetApplicationExchangeRates, useGetJobExchangeRates, useSetApplicationExchangeRate, useSetJobPricing };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
-
import { k as GetAllApplicationExchangeRatesParams, bX as customInstance, bx as GetAllExchangeRatesResponse, bY as ErrorType, bT as DmError, aa as ExchangeRatePutBodyBody, j as GetApplicationExchangeRatesParams, bv as GetExchangeRatesResponse, f as GetAllJobExchangeRatesParams, e as GetJobExchangeRatesParams } from '../custom-instance-
|
|
3
|
+
import { k as GetAllApplicationExchangeRatesParams, bX as customInstance, bx as GetAllExchangeRatesResponse, bY as ErrorType, bT as DmError, aa as ExchangeRatePutBodyBody, j as GetApplicationExchangeRatesParams, bv as GetExchangeRatesResponse, f as GetAllJobExchangeRatesParams, e as GetJobExchangeRatesParams } from '../custom-instance-a2110e78.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
@@ -21,6 +21,9 @@ declare const getGetAllApplicationExchangeRatesQueryOptions: <TData = GetAllExch
|
|
|
21
21
|
};
|
|
22
22
|
type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
|
|
23
23
|
type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Gets Exchange Rates for all Applications
|
|
26
|
+
*/
|
|
24
27
|
declare const useGetAllApplicationExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
25
28
|
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
26
29
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -50,6 +53,9 @@ declare const getSetApplicationExchangeRateMutationOptions: <TError = ErrorType<
|
|
|
50
53
|
type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>;
|
|
51
54
|
type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;
|
|
52
55
|
type SetApplicationExchangeRateMutationError = ErrorType<DmError>;
|
|
56
|
+
/**
|
|
57
|
+
* @summary Sets the Exchange Rate for a specific Application
|
|
58
|
+
*/
|
|
53
59
|
declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
54
60
|
mutation?: UseMutationOptions<void, TError, {
|
|
55
61
|
applicationId: string;
|
|
@@ -61,10 +67,10 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
|
|
|
61
67
|
data: ExchangeRatePutBodyBody;
|
|
62
68
|
}, TContext>;
|
|
63
69
|
/**
|
|
64
|
-
|
|
70
|
+
* 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.
|
|
65
71
|
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
* @summary Gets the Application's Exchange Rate history
|
|
73
|
+
*/
|
|
68
74
|
declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
69
75
|
declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly ["data-manager-api", `/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
|
|
70
76
|
declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
@@ -75,6 +81,9 @@ declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRa
|
|
|
75
81
|
};
|
|
76
82
|
type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
|
|
77
83
|
type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Gets the Application's Exchange Rate history
|
|
86
|
+
*/
|
|
78
87
|
declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
79
88
|
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
80
89
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -96,6 +105,9 @@ declare const getGetAllJobExchangeRatesQueryOptions: <TData = GetAllExchangeRate
|
|
|
96
105
|
};
|
|
97
106
|
type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
|
|
98
107
|
type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
108
|
+
/**
|
|
109
|
+
* @summary Gets Exchange Rates for all Jobs
|
|
110
|
+
*/
|
|
99
111
|
declare const useGetAllJobExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
100
112
|
query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
101
113
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -127,6 +139,9 @@ declare const getSetJobPricingMutationOptions: <TError = ErrorType<DmError>, TCo
|
|
|
127
139
|
type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>;
|
|
128
140
|
type SetJobPricingMutationBody = ExchangeRatePutBodyBody;
|
|
129
141
|
type SetJobPricingMutationError = ErrorType<DmError>;
|
|
142
|
+
/**
|
|
143
|
+
* @summary Sets the Exchange Rate for a specific Job
|
|
144
|
+
*/
|
|
130
145
|
declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
131
146
|
mutation?: UseMutationOptions<void, TError, {
|
|
132
147
|
jobId: number;
|
|
@@ -138,10 +153,10 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
|
|
|
138
153
|
data: ExchangeRatePutBodyBody;
|
|
139
154
|
}, TContext>;
|
|
140
155
|
/**
|
|
141
|
-
|
|
156
|
+
* 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.
|
|
142
157
|
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
* @summary Gets Job Exchange Rates
|
|
159
|
+
*/
|
|
145
160
|
declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
146
161
|
declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly ["data-manager-api", `/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
|
|
147
162
|
declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
@@ -152,6 +167,9 @@ declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesRespo
|
|
|
152
167
|
};
|
|
153
168
|
type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
|
|
154
169
|
type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
170
|
+
/**
|
|
171
|
+
* @summary Gets Job Exchange Rates
|
|
172
|
+
*/
|
|
155
173
|
declare const useGetJobExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
156
174
|
query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
|
|
157
175
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
customInstance
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UKA7G3OB.js";
|
|
4
4
|
|
|
5
5
|
// src/exchange-rate/exchange-rate.ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
useMutation,
|
|
8
|
+
useQuery
|
|
9
|
+
} from "@tanstack/react-query";
|
|
7
10
|
var getAllApplicationExchangeRates = (params, options, signal) => {
|
|
8
11
|
return customInstance(
|
|
9
|
-
{
|
|
12
|
+
{
|
|
13
|
+
url: `/application/exchange-rate`,
|
|
14
|
+
method: "get",
|
|
15
|
+
params,
|
|
16
|
+
signal
|
|
17
|
+
},
|
|
10
18
|
options
|
|
11
19
|
);
|
|
12
20
|
};
|
|
13
|
-
var getGetAllApplicationExchangeRatesQueryKey = (params) =>
|
|
21
|
+
var getGetAllApplicationExchangeRatesQueryKey = (params) => {
|
|
22
|
+
return ["data-manager-api", `/application/exchange-rate`, ...params ? [params] : []];
|
|
23
|
+
};
|
|
14
24
|
var getGetAllApplicationExchangeRatesQueryOptions = (params, options) => {
|
|
15
25
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
16
26
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllApplicationExchangeRatesQueryKey(params);
|
|
@@ -18,10 +28,7 @@ var getGetAllApplicationExchangeRatesQueryOptions = (params, options) => {
|
|
|
18
28
|
return { queryKey, queryFn, ...queryOptions };
|
|
19
29
|
};
|
|
20
30
|
var useGetAllApplicationExchangeRates = (params, options) => {
|
|
21
|
-
const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(
|
|
22
|
-
params,
|
|
23
|
-
options
|
|
24
|
-
);
|
|
31
|
+
const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params, options);
|
|
25
32
|
const query = useQuery(queryOptions);
|
|
26
33
|
query.queryKey = queryOptions.queryKey;
|
|
27
34
|
return query;
|
|
@@ -65,11 +72,9 @@ var getApplicationExchangeRates = (applicationId, params, options, signal) => {
|
|
|
65
72
|
options
|
|
66
73
|
);
|
|
67
74
|
};
|
|
68
|
-
var getGetApplicationExchangeRatesQueryKey = (applicationId, params) =>
|
|
69
|
-
"data-manager-api",
|
|
70
|
-
|
|
71
|
-
...params ? [params] : []
|
|
72
|
-
];
|
|
75
|
+
var getGetApplicationExchangeRatesQueryKey = (applicationId, params) => {
|
|
76
|
+
return ["data-manager-api", `/application/${applicationId}/exchange-rate`, ...params ? [params] : []];
|
|
77
|
+
};
|
|
73
78
|
var getGetApplicationExchangeRatesQueryOptions = (applicationId, params, options) => {
|
|
74
79
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
75
80
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetApplicationExchangeRatesQueryKey(applicationId, params);
|
|
@@ -77,22 +82,25 @@ var getGetApplicationExchangeRatesQueryOptions = (applicationId, params, options
|
|
|
77
82
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
78
83
|
};
|
|
79
84
|
var useGetApplicationExchangeRates = (applicationId, params, options) => {
|
|
80
|
-
const queryOptions = getGetApplicationExchangeRatesQueryOptions(
|
|
81
|
-
applicationId,
|
|
82
|
-
params,
|
|
83
|
-
options
|
|
84
|
-
);
|
|
85
|
+
const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId, params, options);
|
|
85
86
|
const query = useQuery(queryOptions);
|
|
86
87
|
query.queryKey = queryOptions.queryKey;
|
|
87
88
|
return query;
|
|
88
89
|
};
|
|
89
90
|
var getAllJobExchangeRates = (params, options, signal) => {
|
|
90
91
|
return customInstance(
|
|
91
|
-
{
|
|
92
|
+
{
|
|
93
|
+
url: `/job/exchange-rate`,
|
|
94
|
+
method: "get",
|
|
95
|
+
params,
|
|
96
|
+
signal
|
|
97
|
+
},
|
|
92
98
|
options
|
|
93
99
|
);
|
|
94
100
|
};
|
|
95
|
-
var getGetAllJobExchangeRatesQueryKey = (params) =>
|
|
101
|
+
var getGetAllJobExchangeRatesQueryKey = (params) => {
|
|
102
|
+
return ["data-manager-api", `/job/exchange-rate`, ...params ? [params] : []];
|
|
103
|
+
};
|
|
96
104
|
var getGetAllJobExchangeRatesQueryOptions = (params, options) => {
|
|
97
105
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
98
106
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllJobExchangeRatesQueryKey(params);
|
|
@@ -135,11 +143,18 @@ var useSetJobPricing = (options) => {
|
|
|
135
143
|
};
|
|
136
144
|
var getJobExchangeRates = (jobId, params, options, signal) => {
|
|
137
145
|
return customInstance(
|
|
138
|
-
{
|
|
146
|
+
{
|
|
147
|
+
url: `/job/${jobId}/exchange-rate`,
|
|
148
|
+
method: "get",
|
|
149
|
+
params,
|
|
150
|
+
signal
|
|
151
|
+
},
|
|
139
152
|
options
|
|
140
153
|
);
|
|
141
154
|
};
|
|
142
|
-
var getGetJobExchangeRatesQueryKey = (jobId, params) =>
|
|
155
|
+
var getGetJobExchangeRatesQueryKey = (jobId, params) => {
|
|
156
|
+
return ["data-manager-api", `/job/${jobId}/exchange-rate`, ...params ? [params] : []];
|
|
157
|
+
};
|
|
143
158
|
var getGetJobExchangeRatesQueryOptions = (jobId, params, options) => {
|
|
144
159
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
145
160
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetJobExchangeRatesQueryKey(jobId, params);
|
|
@@ -147,11 +162,7 @@ var getGetJobExchangeRatesQueryOptions = (jobId, params, options) => {
|
|
|
147
162
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
148
163
|
};
|
|
149
164
|
var useGetJobExchangeRates = (jobId, params, options) => {
|
|
150
|
-
const queryOptions = getGetJobExchangeRatesQueryOptions(
|
|
151
|
-
jobId,
|
|
152
|
-
params,
|
|
153
|
-
options
|
|
154
|
-
);
|
|
165
|
+
const queryOptions = getGetJobExchangeRatesQueryOptions(jobId, params, options);
|
|
155
166
|
const query = useQuery(queryOptions);
|
|
156
167
|
query.queryKey = queryOptions.queryKey;
|
|
157
168
|
return query;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/exchange-rate/exchange-rate.ts"],"sourcesContent":["/**\n * Generated by orval v6.15.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: 1.2\n */\nimport { useQuery, useMutation } from \"@tanstack/react-query\";\nimport type {\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"@tanstack/react-query\";\nimport type {\n GetAllExchangeRatesResponse,\n DmError,\n GetAllApplicationExchangeRatesParams,\n ExchangeRatePutBodyBody,\n GetExchangeRatesResponse,\n GetApplicationExchangeRatesParams,\n GetAllJobExchangeRatesParams,\n GetJobExchangeRatesParams,\n} from \"../data-manager-api.schemas\";\nimport { customInstance } from \".././custom-instance\";\nimport type { ErrorType } from \".././custom-instance\";\n\n// eslint-disable-next-line\ntype SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P\n) => any\n ? P\n : never;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetAllExchangeRatesResponse>(\n { url: `/application/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetAllApplicationExchangeRatesQueryKey = (\n params?: GetAllApplicationExchangeRatesParams\n) => [\"data-manager-api\", `/application/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetAllApplicationExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>\n > = ({ signal }) =>\n getAllApplicationExchangeRates(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type GetAllApplicationExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>\n>;\nexport type GetAllApplicationExchangeRatesQueryError =\n ErrorType<void | DmError>;\n\nexport const useGetAllApplicationExchangeRates = <\n TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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();\n formData.append(\"rate\", exchangeRatePutBodyBody.rate);\n if (exchangeRatePutBodyBody.comment !== undefined) {\n formData.append(\"comment\", exchangeRatePutBodyBody.comment);\n }\n\n return customInstance<void>(\n {\n url: `/application/${applicationId}/exchange-rate`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getSetApplicationExchangeRateMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n { applicationId: string; data: ExchangeRatePutBodyBody }\n > = (props) => {\n const { applicationId, data } = props ?? {};\n\n return setApplicationExchangeRate(applicationId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type SetApplicationExchangeRateMutationResult = NonNullable<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>\n>;\nexport type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;\nexport type SetApplicationExchangeRateMutationError = ErrorType<DmError>;\n\nexport const useSetApplicationExchangeRate = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setApplicationExchangeRate>>,\n TError,\n { applicationId: string; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetExchangeRatesResponse>(\n {\n url: `/application/${applicationId}/exchange-rate`,\n method: \"get\",\n params,\n signal,\n },\n options\n );\n};\n\nexport const getGetApplicationExchangeRatesQueryKey = (\n applicationId: string,\n params?: GetApplicationExchangeRatesParams\n) =>\n [\n \"data-manager-api\",\n `/application/${applicationId}/exchange-rate`,\n ...(params ? [params] : []),\n ] as const;\n\nexport const getGetApplicationExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ??\n getGetApplicationExchangeRatesQueryKey(applicationId, params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>\n > = ({ signal }) =>\n getApplicationExchangeRates(applicationId, params, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };\n};\n\nexport type GetApplicationExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>\n>;\nexport type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetApplicationExchangeRates = <\n TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getApplicationExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetApplicationExchangeRatesQueryOptions(\n applicationId,\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetAllExchangeRatesResponse>(\n { url: `/job/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetAllJobExchangeRatesQueryKey = (\n params?: GetAllJobExchangeRatesParams\n) => [\"data-manager-api\", `/job/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetAllJobExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>\n > = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type GetAllJobExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>\n>;\nexport type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetAllJobExchangeRates = <\n TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n params?: GetAllJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getAllJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetAllJobExchangeRatesQueryOptions(params, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\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();\n formData.append(\"rate\", exchangeRatePutBodyBody.rate);\n if (exchangeRatePutBodyBody.comment !== undefined) {\n formData.append(\"comment\", exchangeRatePutBodyBody.comment);\n }\n\n return customInstance<void>(\n {\n url: `/job/${jobId}/exchange-rate`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getSetJobPricingMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof setJobPricing>>,\n { jobId: number; data: ExchangeRatePutBodyBody }\n > = (props) => {\n const { jobId, data } = props ?? {};\n\n return setJobPricing(jobId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type SetJobPricingMutationResult = NonNullable<\n Awaited<ReturnType<typeof setJobPricing>>\n>;\nexport type SetJobPricingMutationBody = ExchangeRatePutBodyBody;\nexport type SetJobPricingMutationError = ErrorType<DmError>;\n\nexport const useSetJobPricing = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof setJobPricing>>,\n TError,\n { jobId: number; data: ExchangeRatePutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\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>,\n signal?: AbortSignal\n) => {\n return customInstance<GetExchangeRatesResponse>(\n { url: `/job/${jobId}/exchange-rate`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getGetJobExchangeRatesQueryKey = (\n jobId: number,\n params?: GetJobExchangeRatesParams\n) => [\"data-manager-api\", `/job/${jobId}/exchange-rate`, ...(params ? [params] : [])] as const;\n\nexport const getGetJobExchangeRatesQueryOptions = <\n TData = Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId, params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof getJobExchangeRates>>\n > = ({ signal }) =>\n getJobExchangeRates(jobId, params, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };\n};\n\nexport type GetJobExchangeRatesQueryResult = NonNullable<\n Awaited<ReturnType<typeof getJobExchangeRates>>\n>;\nexport type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;\n\nexport const useGetJobExchangeRates = <\n TData = Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError = ErrorType<void | DmError>\n>(\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof getJobExchangeRates>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getGetJobExchangeRatesQueryOptions(\n jobId,\n params,\n options\n );\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n};\n"],"mappings":";;;;;AAUA,SAAS,UAAU,mBAAmB;AAqC/B,IAAM,iCAAiC,CAC5C,QACA,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,8BAA8B,QAAQ,OAAO,QAAQ,OAAO;AAAA,IACnE;AAAA,EACF;AACF;AAEO,IAAM,4CAA4C,CACvD,WACG,CAAC,oBAAoB,8BAA8B,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAE5E,IAAM,gDAAgD,CAI3D,QACA,YAY4B;AAC5B,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,YACJ,6CAAc,aAAY,0CAA0C,MAAM;AAE5E,QAAM,UAEF,CAAC,EAAE,OAAO,MACZ,+BAA+B,QAAQ,gBAAgB,MAAM;AAE/D,SAAO,EAAE,UAAU,SAAS,GAAG,aAAa;AAC9C;AAQO,IAAM,oCAAoC,CAI/C,QACA,YAQ2D;AAC3D,QAAM,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,EACF;AAEA,QAAM,QAAQ,SAAS,YAAY;AAInC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AAWO,IAAM,6BAA6B,CACxC,eACA,yBACA,YACG;AACH,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,wBAAwB,IAAI;AAC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,EAAE,UAAU,iBAAiB,SAAS,eAAe,IAAI,WAAW,CAAC;AAE3E,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,OAAO,KAAK,IAAI,SAAS,CAAC;AAElC,WAAO,cAAc,OAAO,MAAM,cAAc;AAAA,EAClD;AAEA,SAAO,EAAE,YAAY,GAAG,gBAAgB;AAC1C;AAQO,IAAM,mBAAmB,CAG9B,YAQI;AACJ,QAAM,kBAAkB,gCAAgC,OAAO;AAE/D,SAAO,YAAY,eAAe;AACpC;AAMO,IAAM,sBAAsB,CACjC,OACA,QACA,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,QAAQ,uBAAuB,QAAQ,OAAO,QAAQ,OAAO;AAAA,IACpE;AAAA,EACF;AACF;AAEO,IAAM,iCAAiC,CAC5C,OACA,WACG,CAAC,oBAAoB,QAAQ,uBAAuB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAE7E,IAAM,qCAAqC,CAIhD,OACA,QACA,YAY4B;AAC5B,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,YACJ,6CAAc,aAAY,+BAA+B,OAAO,MAAM;AAExE,QAAM,UAEF,CAAC,EAAE,OAAO,MACZ,oBAAoB,OAAO,QAAQ,gBAAgB,MAAM;AAE3D,SAAO,EAAE,UAAU,SAAS,SAAS,CAAC,CAAC,OAAO,GAAG,aAAa;AAChE;AAOO,IAAM,yBAAyB,CAIpC,OACA,QACA,YAQ2D;AAC3D,QAAM,eAAe;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,QAAQ,SAAS,YAAY;AAInC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/exchange-rate/exchange-rate.ts"],"sourcesContent":["/**\n * Generated by orval v6.20.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: 1.2\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult\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\n// eslint-disable-next-line\n type SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P,\n) => any\n ? P\n : never;\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 \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?: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?: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\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 \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 \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 \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?: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?: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\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 \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?: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?: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\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 \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 \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 \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?: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?: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\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAuCA,IAAM,iCAAiC,CAC1C,QACH,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAA8B,QAAQ;AAAA,MAC1C;AAAA,MAAQ;AAAA,IACZ;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,4CAA4C,CAAC,WAAmD;AAEzG,SAAO,CAAC,oBAAoB,8BAA8B,GAAI,SAAS,CAAC,MAAM,IAAG,CAAC,CAAE;AACpF;AAGG,IAAM,gDAAgD,CAAyG,QAA+C,YAChN;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAE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