@squonk/data-manager-client 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/accounting/accounting.cjs +51 -8
  3. package/accounting/accounting.cjs.map +1 -1
  4. package/accounting/accounting.d.cts +61 -10
  5. package/accounting/accounting.d.ts +61 -10
  6. package/accounting/accounting.js +49 -6
  7. package/accounting/accounting.js.map +1 -1
  8. package/admin/admin.cjs +67 -24
  9. package/admin/admin.cjs.map +1 -1
  10. package/admin/admin.d.cts +75 -24
  11. package/admin/admin.d.ts +75 -24
  12. package/admin/admin.js +56 -13
  13. package/admin/admin.js.map +1 -1
  14. package/application/application.cjs +35 -6
  15. package/application/application.cjs.map +1 -1
  16. package/application/application.d.cts +42 -8
  17. package/application/application.d.ts +42 -8
  18. package/application/application.js +34 -5
  19. package/application/application.js.map +1 -1
  20. package/{chunk-UKA7G3OB.js → chunk-EBOQPVLG.js} +2 -2
  21. package/{chunk-UKA7G3OB.js.map → chunk-EBOQPVLG.js.map} +1 -1
  22. package/{chunk-J22A7LHX.cjs → chunk-TKLTUR4R.cjs} +2 -2
  23. package/chunk-TKLTUR4R.cjs.map +1 -0
  24. package/configuration/configuration.cjs +19 -4
  25. package/configuration/configuration.cjs.map +1 -1
  26. package/configuration/configuration.d.cts +23 -6
  27. package/configuration/configuration.d.ts +23 -6
  28. package/configuration/configuration.js +19 -4
  29. package/configuration/configuration.js.map +1 -1
  30. package/dataset/dataset.cjs +93 -22
  31. package/dataset/dataset.cjs.map +1 -1
  32. package/dataset/dataset.d.cts +105 -20
  33. package/dataset/dataset.d.ts +105 -20
  34. package/dataset/dataset.js +83 -12
  35. package/dataset/dataset.js.map +1 -1
  36. package/exchange-rate/exchange-rate.cjs +71 -14
  37. package/exchange-rate/exchange-rate.cjs.map +1 -1
  38. package/exchange-rate/exchange-rate.d.cts +83 -15
  39. package/exchange-rate/exchange-rate.d.ts +83 -15
  40. package/exchange-rate/exchange-rate.js +65 -8
  41. package/exchange-rate/exchange-rate.js.map +1 -1
  42. package/file-and-path/file-and-path.cjs +45 -16
  43. package/file-and-path/file-and-path.cjs.map +1 -1
  44. package/file-and-path/file-and-path.d.cts +48 -14
  45. package/file-and-path/file-and-path.d.ts +48 -14
  46. package/file-and-path/file-and-path.js +39 -10
  47. package/file-and-path/file-and-path.js.map +1 -1
  48. package/index.cjs +9 -2
  49. package/index.cjs.map +1 -1
  50. package/index.d.cts +2033 -2
  51. package/index.d.ts +2033 -2
  52. package/index.js +8 -1
  53. package/index.js.map +1 -1
  54. package/instance/instance.cjs +45 -16
  55. package/instance/instance.cjs.map +1 -1
  56. package/instance/instance.d.cts +48 -14
  57. package/instance/instance.d.ts +48 -14
  58. package/instance/instance.js +38 -9
  59. package/instance/instance.js.map +1 -1
  60. package/job/job.cjs +51 -8
  61. package/job/job.cjs.map +1 -1
  62. package/job/job.d.cts +61 -10
  63. package/job/job.d.ts +61 -10
  64. package/job/job.js +49 -6
  65. package/job/job.js.map +1 -1
  66. package/metadata/metadata.cjs +39 -10
  67. package/metadata/metadata.cjs.map +1 -1
  68. package/metadata/metadata.d.cts +45 -11
  69. package/metadata/metadata.d.ts +45 -11
  70. package/metadata/metadata.js +36 -7
  71. package/metadata/metadata.js.map +1 -1
  72. package/package.json +11 -11
  73. package/project/project.cjs +83 -26
  74. package/project/project.cjs.map +1 -1
  75. package/project/project.d.cts +89 -21
  76. package/project/project.d.ts +89 -21
  77. package/project/project.js +71 -14
  78. package/project/project.js.map +1 -1
  79. package/src/accounting/accounting.ts +136 -22
  80. package/src/admin/admin.ts +148 -50
  81. package/src/application/application.ts +93 -18
  82. package/src/configuration/configuration.ts +50 -14
  83. package/src/custom-instance.ts +3 -4
  84. package/src/data-manager-api.schemas.ts +59 -33
  85. package/src/dataset/dataset.ts +233 -45
  86. package/src/exchange-rate/exchange-rate.ts +185 -32
  87. package/src/file-and-path/file-and-path.ts +98 -33
  88. package/src/instance/instance.ts +98 -33
  89. package/src/job/job.ts +138 -22
  90. package/src/metadata/metadata.ts +97 -24
  91. package/src/project/project.ts +191 -50
  92. package/src/task/task.ts +96 -21
  93. package/src/type/type.ts +50 -14
  94. package/src/user/user.ts +137 -25
  95. package/task/task.cjs +37 -8
  96. package/task/task.cjs.map +1 -1
  97. package/task/task.d.cts +44 -10
  98. package/task/task.d.ts +44 -10
  99. package/task/task.js +35 -6
  100. package/task/task.js.map +1 -1
  101. package/type/type.cjs +19 -4
  102. package/type/type.cjs.map +1 -1
  103. package/type/type.d.cts +23 -6
  104. package/type/type.d.ts +23 -6
  105. package/type/type.js +19 -4
  106. package/type/type.js.map +1 -1
  107. package/user/user.cjs +53 -10
  108. package/user/user.cjs.map +1 -1
  109. package/user/user.d.cts +63 -12
  110. package/user/user.d.ts +63 -12
  111. package/user/user.js +49 -6
  112. package/user/user.js.map +1 -1
  113. package/chunk-J22A7LHX.cjs.map +0 -1
  114. package/custom-instance-37ed2460.d.ts +0 -2014
@@ -1 +1 @@
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;AAGG,IAAM,gDAAgD,CAAyG,QAA+C,YAChN;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,0CAA0C,MAAM;AAI1F,QAAM,UAAqF,CAAC,EAAE,OAAO,MAAM,+B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I,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 =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AS,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,iCAAiC,CAC7C,OACG,QAAoC,YAEgC;AAEtE,QAAM,eAAe,2CAA2C,OAAM,QAAO,OAAO;AAEpF,QAAM,QAAQ,iBAAiB,YAAY;AAE3C,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT","sourcesContent":["/**\n * Generated by orval v6.25.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n DmError,\n ExchangeRatePutBodyBody,\n GetAllApplicationExchangeRatesParams,\n GetAllExchangeRatesResponse,\n GetAllJobExchangeRatesParams,\n GetApplicationExchangeRatesParams,\n GetExchangeRatesResponse,\n GetJobExchangeRatesParams\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * For every Application that has an exchange rate the current rate is returned. If you want a list of all Applications that have no exchange rate, set the `only_undefined` query option.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\n * @summary Gets Exchange Rates for all Applications\n */\nexport const getAllApplicationExchangeRates = (\n params?: GetAllApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/application/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllApplicationExchangeRatesQueryKey = (params?: GetAllApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Applications\n */\nexport const useGetAllApplicationExchangeRates = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllApplicationExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>> = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>\nexport type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Applications\n */\nexport const useGetAllApplicationExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific Application. The rate replaces any existing rate for the Application and applies to all future executions of the Application.\n\nIf an Application has no specific rate it adopts the current value of the default Application Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const setApplicationExchangeRate = (\n applicationId: string,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setApplicationExchangeRate>>, {applicationId: string;data: ExchangeRatePutBodyBody}> = (props) => {\n const {applicationId,data} = props ?? {};\n\n return setApplicationExchangeRate(applicationId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>\n export type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody\n export type SetApplicationExchangeRateMutationError = ErrorType<DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Application\n */\nexport const useSetApplicationExchangeRate = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getSetApplicationExchangeRateMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets the exchange rate history for a specific Application. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets the Application's Exchange Rate history\n */\nexport const getApplicationExchangeRates = (\n applicationId: string,\n params?: GetApplicationExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/application/${applicationId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetApplicationExchangeRatesQueryKey = (applicationId: string,\n params?: GetApplicationExchangeRatesParams,) => {\n return [\"data-manager-api\", `/application/${applicationId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetApplicationExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Application's Exchange Rate history\n */\nexport const useGetApplicationExchangeRates = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetApplicationExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetApplicationExchangeRatesQueryKey(applicationId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getApplicationExchangeRates>>> = ({ signal }) => getApplicationExchangeRates(applicationId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(applicationId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>\nexport type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Application's Exchange Rate history\n */\nexport const useGetApplicationExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(\n applicationId: string,\n params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * For every Job that has an exchange rate the current rate is returned. If you want a list of all Jobs that have no exchange rate, set the `only_undefined` query option.\n\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const getAllJobExchangeRates = (\n params?: GetAllJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetAllExchangeRatesResponse>(\n {url: `/job/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetAllJobExchangeRatesQueryKey = (params?: GetAllJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetAllJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const useGetAllJobExchangeRates = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllJobExchangeRatesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetAllJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetAllJobExchangeRatesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAllJobExchangeRates>>> = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>\nexport type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Exchange Rates for all Jobs\n */\nexport const useGetAllJobExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Sets the Exchange Rate for a specific job. The rate replaces any existing rate for the Job and applies immediately and future job executions for this Job will inherit this rate.\n\nExchange rates are divided by an internal **scale factor** prior to being applied. The scale factor has a value of 1,000. The scale factor is used to make the exchange rates a little easier to digest, because without this on some jobs we would need to support values ike '0.00001'. With a scale factor of `1,000` the exchange rate is a much more humanly-digestible, e.g. '0.00001' becomes '0.01'.\n\nIf a Job has no specific rate it adopts the current value of the default Job Exchange Rate.\n\nYou need `admin` privilege to use this method.\n\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const setJobPricing = (\n jobId: number,\n exchangeRatePutBodyBody: ExchangeRatePutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('rate', exchangeRatePutBodyBody.rate)\nif(exchangeRatePutBodyBody.comment !== undefined) {\n formData.append('comment', exchangeRatePutBodyBody.comment)\n }\n\n return customInstance<void>(\n {url: `/job/${jobId}/exchange-rate`, method: 'PUT',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getSetJobPricingMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof setJobPricing>>, {jobId: number;data: ExchangeRatePutBodyBody}> = (props) => {\n const {jobId,data} = props ?? {};\n\n return setJobPricing(jobId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>\n export type SetJobPricingMutationBody = ExchangeRatePutBodyBody\n export type SetJobPricingMutationError = ErrorType<DmError>\n\n /**\n * @summary Sets the Exchange Rate for a specific Job\n */\nexport const useSetJobPricing = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getSetJobPricingMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Gets all the exchange rate history for a specific Job. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.\n\n * @summary Gets Job Exchange Rates\n */\nexport const getJobExchangeRates = (\n jobId: number,\n params?: GetJobExchangeRatesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<GetExchangeRatesResponse>(\n {url: `/job/${jobId}/exchange-rate`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetJobExchangeRatesQueryKey = (jobId: number,\n params?: GetJobExchangeRatesParams,) => {\n return [\"data-manager-api\", `/job/${jobId}/exchange-rate`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetJobExchangeRatesQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Job Exchange Rates\n */\nexport const useGetJobExchangeRates = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetJobExchangeRatesQueryOptions(jobId,params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetJobExchangeRatesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetJobExchangeRatesQueryKey(jobId,params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobExchangeRates>>> = ({ signal }) => getJobExchangeRates(jobId,params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>\nexport type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Job Exchange Rates\n */\nexport const useGetJobExchangeRatesSuspense = <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(\n jobId: number,\n params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId,params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"]}
@@ -1,9 +1,9 @@
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, bZ as customInstance, bz as GetAllExchangeRatesResponse, b_ as ErrorType, bV as DmError, ac as ExchangeRatePutBodyBody, j as GetApplicationExchangeRatesParams, bx as GetExchangeRatesResponse, f as GetAllJobExchangeRatesParams, e as GetJobExchangeRatesParams } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions } from '@tanstack/react-query';
3
+ import { GetAllApplicationExchangeRatesParams, customInstance, GetAllExchangeRatesResponse, ErrorType, DmError, ExchangeRatePutBodyBody, GetApplicationExchangeRatesParams, GetExchangeRatesResponse, GetAllJobExchangeRatesParams, GetJobExchangeRatesParams } from '../index.cjs';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
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
9
 
@@ -14,7 +14,7 @@ If an Application has no specific rate it adopts the current value of the defaul
14
14
  declare const getAllApplicationExchangeRates: (params?: GetAllApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
15
15
  declare const getGetAllApplicationExchangeRatesQueryKey: (params?: GetAllApplicationExchangeRatesParams) => readonly ["data-manager-api", "/application/exchange-rate", ...GetAllApplicationExchangeRatesParams[]];
16
16
  declare const getGetAllApplicationExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
17
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
17
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
18
18
  request?: SecondParameter<typeof customInstance>;
19
19
  } | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
20
20
  queryKey: QueryKey;
@@ -25,11 +25,28 @@ type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
25
25
  * @summary Gets Exchange Rates for all Applications
26
26
  */
27
27
  declare const useGetAllApplicationExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
28
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
28
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
29
29
  request?: SecondParameter<typeof customInstance>;
30
30
  } | undefined) => UseQueryResult<TData, TError> & {
31
31
  queryKey: QueryKey;
32
32
  };
33
+ declare const getGetAllApplicationExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
34
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
35
+ request?: SecondParameter<typeof customInstance>;
36
+ } | undefined) => UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
37
+ queryKey: QueryKey;
38
+ };
39
+ type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
40
+ type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
41
+ /**
42
+ * @summary Gets Exchange Rates for all Applications
43
+ */
44
+ declare const useGetAllApplicationExchangeRatesSuspense: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
45
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
46
+ request?: SecondParameter<typeof customInstance>;
47
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
48
+ queryKey: QueryKey;
49
+ };
33
50
  /**
34
51
  * 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
52
 
@@ -62,7 +79,7 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
62
79
  data: ExchangeRatePutBodyBody;
63
80
  }, TContext> | undefined;
64
81
  request?: SecondParameter<typeof customInstance>;
65
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
82
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
66
83
  applicationId: string;
67
84
  data: ExchangeRatePutBodyBody;
68
85
  }, TContext>;
@@ -74,7 +91,7 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
74
91
  declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
75
92
  declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly ["data-manager-api", `/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
76
93
  declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
77
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
94
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
78
95
  request?: SecondParameter<typeof customInstance>;
79
96
  } | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
80
97
  queryKey: QueryKey;
@@ -85,11 +102,28 @@ type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
85
102
  * @summary Gets the Application's Exchange Rate history
86
103
  */
87
104
  declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
88
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
105
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
89
106
  request?: SecondParameter<typeof customInstance>;
90
107
  } | undefined) => UseQueryResult<TData, TError> & {
91
108
  queryKey: QueryKey;
92
109
  };
110
+ declare const getGetApplicationExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
111
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
112
+ request?: SecondParameter<typeof customInstance>;
113
+ } | undefined) => UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
114
+ queryKey: QueryKey;
115
+ };
116
+ type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
117
+ type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
118
+ /**
119
+ * @summary Gets the Application's Exchange Rate history
120
+ */
121
+ declare const useGetApplicationExchangeRatesSuspense: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
122
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
123
+ request?: SecondParameter<typeof customInstance>;
124
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
125
+ queryKey: QueryKey;
126
+ };
93
127
  /**
94
128
  * 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
129
 
@@ -98,7 +132,7 @@ declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse,
98
132
  declare const getAllJobExchangeRates: (params?: GetAllJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
99
133
  declare const getGetAllJobExchangeRatesQueryKey: (params?: GetAllJobExchangeRatesParams) => readonly ["data-manager-api", "/job/exchange-rate", ...GetAllJobExchangeRatesParams[]];
100
134
  declare const getGetAllJobExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
101
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
135
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
102
136
  request?: SecondParameter<typeof customInstance>;
103
137
  } | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
104
138
  queryKey: QueryKey;
@@ -109,11 +143,28 @@ type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
109
143
  * @summary Gets Exchange Rates for all Jobs
110
144
  */
111
145
  declare const useGetAllJobExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
112
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
146
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
113
147
  request?: SecondParameter<typeof customInstance>;
114
148
  } | undefined) => UseQueryResult<TData, TError> & {
115
149
  queryKey: QueryKey;
116
150
  };
151
+ declare const getGetAllJobExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
152
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
153
+ request?: SecondParameter<typeof customInstance>;
154
+ } | undefined) => UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
155
+ queryKey: QueryKey;
156
+ };
157
+ type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
158
+ type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
159
+ /**
160
+ * @summary Gets Exchange Rates for all Jobs
161
+ */
162
+ declare const useGetAllJobExchangeRatesSuspense: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
163
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
164
+ request?: SecondParameter<typeof customInstance>;
165
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
166
+ queryKey: QueryKey;
167
+ };
117
168
  /**
118
169
  * 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
170
 
@@ -148,7 +199,7 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
148
199
  data: ExchangeRatePutBodyBody;
149
200
  }, TContext> | undefined;
150
201
  request?: SecondParameter<typeof customInstance>;
151
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
202
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
152
203
  jobId: number;
153
204
  data: ExchangeRatePutBodyBody;
154
205
  }, TContext>;
@@ -160,7 +211,7 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
160
211
  declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
161
212
  declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly ["data-manager-api", `/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
162
213
  declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
163
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
214
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
164
215
  request?: SecondParameter<typeof customInstance>;
165
216
  } | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
166
217
  queryKey: QueryKey;
@@ -171,10 +222,27 @@ type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
171
222
  * @summary Gets Job Exchange Rates
172
223
  */
173
224
  declare const useGetJobExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
174
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
225
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
175
226
  request?: SecondParameter<typeof customInstance>;
176
227
  } | undefined) => UseQueryResult<TData, TError> & {
177
228
  queryKey: QueryKey;
178
229
  };
230
+ declare const getGetJobExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
231
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
232
+ request?: SecondParameter<typeof customInstance>;
233
+ } | undefined) => UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
234
+ queryKey: QueryKey;
235
+ };
236
+ type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
237
+ type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
238
+ /**
239
+ * @summary Gets Job Exchange Rates
240
+ */
241
+ declare const useGetJobExchangeRatesSuspense: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
242
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
243
+ request?: SecondParameter<typeof customInstance>;
244
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
245
+ queryKey: QueryKey;
246
+ };
179
247
 
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 };
248
+ export { type GetAllApplicationExchangeRatesQueryError, type GetAllApplicationExchangeRatesQueryResult, type GetAllApplicationExchangeRatesSuspenseQueryError, type GetAllApplicationExchangeRatesSuspenseQueryResult, type GetAllJobExchangeRatesQueryError, type GetAllJobExchangeRatesQueryResult, type GetAllJobExchangeRatesSuspenseQueryError, type GetAllJobExchangeRatesSuspenseQueryResult, type GetApplicationExchangeRatesQueryError, type GetApplicationExchangeRatesQueryResult, type GetApplicationExchangeRatesSuspenseQueryError, type GetApplicationExchangeRatesSuspenseQueryResult, type GetJobExchangeRatesQueryError, type GetJobExchangeRatesQueryResult, type GetJobExchangeRatesSuspenseQueryError, type GetJobExchangeRatesSuspenseQueryResult, type SetApplicationExchangeRateMutationBody, type SetApplicationExchangeRateMutationError, type SetApplicationExchangeRateMutationResult, type SetJobPricingMutationBody, type SetJobPricingMutationError, type SetJobPricingMutationResult, getAllApplicationExchangeRates, getAllJobExchangeRates, getApplicationExchangeRates, getGetAllApplicationExchangeRatesQueryKey, getGetAllApplicationExchangeRatesQueryOptions, getGetAllApplicationExchangeRatesSuspenseQueryOptions, getGetAllJobExchangeRatesQueryKey, getGetAllJobExchangeRatesQueryOptions, getGetAllJobExchangeRatesSuspenseQueryOptions, getGetApplicationExchangeRatesQueryKey, getGetApplicationExchangeRatesQueryOptions, getGetApplicationExchangeRatesSuspenseQueryOptions, getGetJobExchangeRatesQueryKey, getGetJobExchangeRatesQueryOptions, getGetJobExchangeRatesSuspenseQueryOptions, getJobExchangeRates, getSetApplicationExchangeRateMutationOptions, getSetJobPricingMutationOptions, setApplicationExchangeRate, setJobPricing, useGetAllApplicationExchangeRates, useGetAllApplicationExchangeRatesSuspense, useGetAllJobExchangeRates, useGetAllJobExchangeRatesSuspense, useGetApplicationExchangeRates, useGetApplicationExchangeRatesSuspense, useGetJobExchangeRates, useGetJobExchangeRatesSuspense, useSetApplicationExchangeRate, useSetJobPricing };
@@ -1,9 +1,9 @@
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, bZ as customInstance, bz as GetAllExchangeRatesResponse, b_ as ErrorType, bV as DmError, ac as ExchangeRatePutBodyBody, j as GetApplicationExchangeRatesParams, bx as GetExchangeRatesResponse, f as GetAllJobExchangeRatesParams, e as GetJobExchangeRatesParams } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions } from '@tanstack/react-query';
3
+ import { GetAllApplicationExchangeRatesParams, customInstance, GetAllExchangeRatesResponse, ErrorType, DmError, ExchangeRatePutBodyBody, GetApplicationExchangeRatesParams, GetExchangeRatesResponse, GetAllJobExchangeRatesParams, GetJobExchangeRatesParams } from '../index.js';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
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
9
 
@@ -14,7 +14,7 @@ If an Application has no specific rate it adopts the current value of the defaul
14
14
  declare const getAllApplicationExchangeRates: (params?: GetAllApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
15
15
  declare const getGetAllApplicationExchangeRatesQueryKey: (params?: GetAllApplicationExchangeRatesParams) => readonly ["data-manager-api", "/application/exchange-rate", ...GetAllApplicationExchangeRatesParams[]];
16
16
  declare const getGetAllApplicationExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
17
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
17
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
18
18
  request?: SecondParameter<typeof customInstance>;
19
19
  } | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
20
20
  queryKey: QueryKey;
@@ -25,11 +25,28 @@ type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
25
25
  * @summary Gets Exchange Rates for all Applications
26
26
  */
27
27
  declare const useGetAllApplicationExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
28
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
28
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
29
29
  request?: SecondParameter<typeof customInstance>;
30
30
  } | undefined) => UseQueryResult<TData, TError> & {
31
31
  queryKey: QueryKey;
32
32
  };
33
+ declare const getGetAllApplicationExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
34
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
35
+ request?: SecondParameter<typeof customInstance>;
36
+ } | undefined) => UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
37
+ queryKey: QueryKey;
38
+ };
39
+ type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
40
+ type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
41
+ /**
42
+ * @summary Gets Exchange Rates for all Applications
43
+ */
44
+ declare const useGetAllApplicationExchangeRatesSuspense: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
45
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
46
+ request?: SecondParameter<typeof customInstance>;
47
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
48
+ queryKey: QueryKey;
49
+ };
33
50
  /**
34
51
  * 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
52
 
@@ -62,7 +79,7 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
62
79
  data: ExchangeRatePutBodyBody;
63
80
  }, TContext> | undefined;
64
81
  request?: SecondParameter<typeof customInstance>;
65
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
82
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
66
83
  applicationId: string;
67
84
  data: ExchangeRatePutBodyBody;
68
85
  }, TContext>;
@@ -74,7 +91,7 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
74
91
  declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
75
92
  declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly ["data-manager-api", `/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
76
93
  declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
77
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
94
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
78
95
  request?: SecondParameter<typeof customInstance>;
79
96
  } | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
80
97
  queryKey: QueryKey;
@@ -85,11 +102,28 @@ type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
85
102
  * @summary Gets the Application's Exchange Rate history
86
103
  */
87
104
  declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
88
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
105
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
89
106
  request?: SecondParameter<typeof customInstance>;
90
107
  } | undefined) => UseQueryResult<TData, TError> & {
91
108
  queryKey: QueryKey;
92
109
  };
110
+ declare const getGetApplicationExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
111
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
112
+ request?: SecondParameter<typeof customInstance>;
113
+ } | undefined) => UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
114
+ queryKey: QueryKey;
115
+ };
116
+ type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
117
+ type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
118
+ /**
119
+ * @summary Gets the Application's Exchange Rate history
120
+ */
121
+ declare const useGetApplicationExchangeRatesSuspense: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
122
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
123
+ request?: SecondParameter<typeof customInstance>;
124
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
125
+ queryKey: QueryKey;
126
+ };
93
127
  /**
94
128
  * 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
129
 
@@ -98,7 +132,7 @@ declare const useGetApplicationExchangeRates: <TData = GetExchangeRatesResponse,
98
132
  declare const getAllJobExchangeRates: (params?: GetAllJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
99
133
  declare const getGetAllJobExchangeRatesQueryKey: (params?: GetAllJobExchangeRatesParams) => readonly ["data-manager-api", "/job/exchange-rate", ...GetAllJobExchangeRatesParams[]];
100
134
  declare const getGetAllJobExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
101
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
135
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
102
136
  request?: SecondParameter<typeof customInstance>;
103
137
  } | undefined) => UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
104
138
  queryKey: QueryKey;
@@ -109,11 +143,28 @@ type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
109
143
  * @summary Gets Exchange Rates for all Jobs
110
144
  */
111
145
  declare const useGetAllJobExchangeRates: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
112
- query?: UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> | undefined;
146
+ query?: Partial<UseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
113
147
  request?: SecondParameter<typeof customInstance>;
114
148
  } | undefined) => UseQueryResult<TData, TError> & {
115
149
  queryKey: QueryKey;
116
150
  };
151
+ declare const getGetAllJobExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
152
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
153
+ request?: SecondParameter<typeof customInstance>;
154
+ } | undefined) => UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey> & {
155
+ queryKey: QueryKey;
156
+ };
157
+ type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
158
+ type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
159
+ /**
160
+ * @summary Gets Exchange Rates for all Jobs
161
+ */
162
+ declare const useGetAllJobExchangeRatesSuspense: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
163
+ query?: Partial<UseSuspenseQueryOptions<GetAllExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
164
+ request?: SecondParameter<typeof customInstance>;
165
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
166
+ queryKey: QueryKey;
167
+ };
117
168
  /**
118
169
  * 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
170
 
@@ -148,7 +199,7 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
148
199
  data: ExchangeRatePutBodyBody;
149
200
  }, TContext> | undefined;
150
201
  request?: SecondParameter<typeof customInstance>;
151
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
202
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
152
203
  jobId: number;
153
204
  data: ExchangeRatePutBodyBody;
154
205
  }, TContext>;
@@ -160,7 +211,7 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
160
211
  declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
161
212
  declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly ["data-manager-api", `/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
162
213
  declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
163
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
214
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
164
215
  request?: SecondParameter<typeof customInstance>;
165
216
  } | undefined) => UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
166
217
  queryKey: QueryKey;
@@ -171,10 +222,27 @@ type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
171
222
  * @summary Gets Job Exchange Rates
172
223
  */
173
224
  declare const useGetJobExchangeRates: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
174
- query?: UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> | undefined;
225
+ query?: Partial<UseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
175
226
  request?: SecondParameter<typeof customInstance>;
176
227
  } | undefined) => UseQueryResult<TData, TError> & {
177
228
  queryKey: QueryKey;
178
229
  };
230
+ declare const getGetJobExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
231
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
232
+ request?: SecondParameter<typeof customInstance>;
233
+ } | undefined) => UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey> & {
234
+ queryKey: QueryKey;
235
+ };
236
+ type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
237
+ type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
238
+ /**
239
+ * @summary Gets Job Exchange Rates
240
+ */
241
+ declare const useGetJobExchangeRatesSuspense: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
242
+ query?: Partial<UseSuspenseQueryOptions<GetExchangeRatesResponse, TError, TData, QueryKey>> | undefined;
243
+ request?: SecondParameter<typeof customInstance>;
244
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
245
+ queryKey: QueryKey;
246
+ };
179
247
 
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 };
248
+ export { type GetAllApplicationExchangeRatesQueryError, type GetAllApplicationExchangeRatesQueryResult, type GetAllApplicationExchangeRatesSuspenseQueryError, type GetAllApplicationExchangeRatesSuspenseQueryResult, type GetAllJobExchangeRatesQueryError, type GetAllJobExchangeRatesQueryResult, type GetAllJobExchangeRatesSuspenseQueryError, type GetAllJobExchangeRatesSuspenseQueryResult, type GetApplicationExchangeRatesQueryError, type GetApplicationExchangeRatesQueryResult, type GetApplicationExchangeRatesSuspenseQueryError, type GetApplicationExchangeRatesSuspenseQueryResult, type GetJobExchangeRatesQueryError, type GetJobExchangeRatesQueryResult, type GetJobExchangeRatesSuspenseQueryError, type GetJobExchangeRatesSuspenseQueryResult, type SetApplicationExchangeRateMutationBody, type SetApplicationExchangeRateMutationError, type SetApplicationExchangeRateMutationResult, type SetJobPricingMutationBody, type SetJobPricingMutationError, type SetJobPricingMutationResult, getAllApplicationExchangeRates, getAllJobExchangeRates, getApplicationExchangeRates, getGetAllApplicationExchangeRatesQueryKey, getGetAllApplicationExchangeRatesQueryOptions, getGetAllApplicationExchangeRatesSuspenseQueryOptions, getGetAllJobExchangeRatesQueryKey, getGetAllJobExchangeRatesQueryOptions, getGetAllJobExchangeRatesSuspenseQueryOptions, getGetApplicationExchangeRatesQueryKey, getGetApplicationExchangeRatesQueryOptions, getGetApplicationExchangeRatesSuspenseQueryOptions, getGetJobExchangeRatesQueryKey, getGetJobExchangeRatesQueryOptions, getGetJobExchangeRatesSuspenseQueryOptions, getJobExchangeRates, getSetApplicationExchangeRateMutationOptions, getSetJobPricingMutationOptions, setApplicationExchangeRate, setJobPricing, useGetAllApplicationExchangeRates, useGetAllApplicationExchangeRatesSuspense, useGetAllJobExchangeRates, useGetAllJobExchangeRatesSuspense, useGetApplicationExchangeRates, useGetApplicationExchangeRatesSuspense, useGetJobExchangeRates, useGetJobExchangeRatesSuspense, useSetApplicationExchangeRate, useSetJobPricing };