@squonk/data-manager-client 1.2.2 → 1.2.3-rc.2

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.
@@ -11,6 +11,12 @@ A service that allows *registered* users to make **Datasets** and associated **M
11
11
 
12
12
  * OpenAPI spec version: 1.2
13
13
  */
14
+ type AdminDeleteJobManifestParams = {
15
+ /**
16
+ * Purge unreferenced Jobs
17
+ */
18
+ purge?: QPurgeParameter;
19
+ };
14
20
  type AdminGetUsersParams = {
15
21
  /**
16
22
  * Maximum days a user has been idle (has not used the API). If you specify `2` and it's Monday then users who have not used the API since Saturday will be returned.
@@ -273,6 +279,10 @@ type GetProjectsParams = {
273
279
 
274
280
  */
275
281
  type QEditorsParameter = string;
282
+ /**
283
+ * Purge unreferenced Jobs
284
+ */
285
+ type QPurgeParameter = boolean;
276
286
  /**
277
287
  * Filter the datasets by a comma separated list of owners
278
288
 
@@ -489,12 +499,6 @@ type JobManifestPutBodyBody = {
489
499
  /** Optional URL parameter values (a JSON string) */
490
500
  params?: string;
491
501
  };
492
- type JobManifestLoadPutBodyBody = {
493
- /** Set to remove all pre-existing Job Definitions that are not present in the existing manifests after the load is complete.
494
-
495
- Jobs in the collection `im-test` are not removed */
496
- purge?: boolean;
497
- };
498
502
  type InstancePostBodyBody = {
499
503
  /** A supported application. Applications instances are managed using pre-deployed Kubernetes **Operators**. The application ID is a combination of the operator _plural_ and _group_.
500
504
 
@@ -1442,7 +1446,7 @@ interface ApiLogDetail {
1442
1446
  impersonator?: string;
1443
1447
  }
1444
1448
  interface ModeGetResponse {
1445
- /** The Data Manager mode. The mode determines what features are available through the API. There are two modes, DEVELOPER, and PRODUCTION. In DEVELOPER mode some destructive operation are permitted (for example the removal of Job Definitions)
1449
+ /** The Data Manager mode. The mode determines what features are available through the API. There are two modes, DEVELOPMENT, and PRODUCTION. In DEVELOPMENT mode some destructive operation are permitted (for example the removal of Job Definitions)
1446
1450
  */
1447
1451
  mode: string;
1448
1452
  }
@@ -1945,9 +1949,6 @@ interface AdminJobManifestLoadPutResponse {
1945
1949
  /** The number of Jobs inspected
1946
1950
  */
1947
1951
  jobs_inspected: number;
1948
- /** The number of Jobs purged
1949
- */
1950
- jobs_purged?: number;
1951
1952
  }
1952
1953
  interface AdminJobManifestGetResponse {
1953
1954
  /** The list of known Job manifests
@@ -1985,4 +1986,4 @@ declare const setBaseUrl: (baseUrl: string) => void;
1985
1986
  declare const customInstance: <TReturn>(config: AxiosRequestConfig, options?: AxiosRequestConfig) => Promise<TReturn>;
1986
1987
  type ErrorType<TError> = AxiosError<TError>;
1987
1988
 
1988
- export { QDatasetMimeTypeParameter as $, AdminGetUsersParams as A, QLabelsParameter as B, QOnlyUndefinedParameter as C, DeleteUnmanagedFileParams as D, QKeepProjectFilesParameter as E, QJobVersionParameter as F, GetUserApiLogParams as G, QJobJobParameter as H, QJobIdParameter as I, QJobCollectionParameter as J, QInstanceArchiveParameter as K, QIncludeHiddenParameter as L, QIncludeDeletedParameter as M, QIncludeAcknowlegedParameter as N, QFromParameter as O, PatchInstanceParams as P, QEditorsParameter as Q, QFileProjectIdParameter as R, QFilePathParameter as S, QFileParameter as T, QActiveDaysParameter as U, QIdleDaysParameter as V, QExcludePurposeParameter as W, QExcludeRemovalParameter as X, QExcludeDoneParameter as Y, QEventPriorOrdinalParameter as Z, QEventLimitParameter as _, AdminGetServiceErrorsParams as a, DatasetDetail as a$, QDoNotImpersonateParameter as a0, QCurrentParameter as a1, QApplicationIdParameter as a2, UserPatchBodyBody as a3, UserAccountPatchBodyBody as a4, ProjectPostBodyBody as a5, ProjectPatchBodyBody as a6, ProjectFilePutBodyBody as a7, ExchangeRatePutBodyBody as a8, JobManifestPutBodyBody as a9, JobReplacements as aA, JobOrderDetail as aB, JobVariablesOptions as aC, JobVariablesOutputs as aD, JobVariablesInputs as aE, JobVariables as aF, JobSummaryImageType as aG, JobSummary as aH, JobManifestDetail as aI, JobApplication as aJ, InstanceSummaryJobImageType as aK, InstanceSummaryPhase as aL, InstanceSummaryApplicationType as aM, InstanceSummary as aN, FileStat as aO, FilePathFile as aP, JobExchangeRateSummary as aQ, ApplicationExchangeRateSummary as aR, ExchangeRateDetail as aS, DatasetVersionSummaryLabels as aT, DatasetVersionSummaryProcessingStage as aU, DatasetVersionSummary as aV, DatasetVersionProjectFile as aW, DatasetVersionDetailLabels as aX, DatasetVersionDetailProcessingStage as aY, DatasetVersionDetail as aZ, DatasetSummary as a_, JobManifestLoadPutBodyBody as aa, InstancePostBodyBody as ab, FilePostBodyBody as ac, DatasetPutBodyBody as ad, DatasetVersionMetaPostBodyBody as ae, DatasetMetaPostBodyBody as af, DatasetPostBodyBody as ag, AsAdditionalDataProcessingCharge as ah, UserSummary as ai, UserDetail as aj, UserAccountDetail as ak, TypeSummaryFormatterOptionsType as al, TypeSummaryFormatterOptions as am, TypeSummary as an, TaskSummaryProcessingStage as ao, TaskSummary as ap, TaskStateState as aq, TaskState as ar, TaskIdentity as as, TaskEventLevel as at, TaskEvent as au, ServiceErrorSummarySeverity as av, ServiceErrorSummary as aw, ProjectFileDetail as ax, ProjectDetail as ay, JobReplacement as az, GetUserAccountParams as b, ApplicationSummary as b0, ApplicationImageVariant as b1, ApplicationImageVariants as b2, ApiLogDetailMethod as b3, ApiLogDetail as b4, ModeGetResponse as b5, VersionGetResponse as b6, UsersGetResponse as b7, UserApiLogGetResponse as b8, UserAccountGetResponse as b9, InstanceDryRunPostResponse as bA, InstanceDeleteResponse as bB, DatasetsGetResponse as bC, DatasetVersionsGetResponse as bD, DatasetVersionDeleteResponse as bE, DatasetSchemaGetResponseType as bF, DatasetSchemaGetResponse as bG, DatasetMetaGetResponse as bH, DatasetDigestGetResponse as bI, DatasetPutPostResponse as bJ, ApplicationsGetResponse as bK, ApplicationGetResponse as bL, AdminUsersGetResponse as bM, AdminUserPutResponse as bN, AdminJobManifestLoadPutResponse as bO, AdminJobManifestGetResponse as bP, AccountServerGetNamespaceResponse as bQ, AccountServerGetRegistrationResponse as bR, DmError as bS, AXIOS_INSTANCE as bT, setAuthToken as bU, setBaseUrl as bV, customInstance as bW, ErrorType as bX, TypesGetResponse as ba, TasksGetResponse as bb, TaskGetResponsePurpose as bc, TaskGetResponse as bd, ServiceErrorsGetResponse as be, ProjectsGetResponse as bf, ProjectPostResponse as bg, ProjectGetResponse as bh, ProjectDeleteResponse as bi, JobsGetResponse as bj, JobGetResponseImageType as bk, JobGetResponse as bl, InstanceTaskPurpose as bm, InstanceTask as bn, InstancesGetResponse as bo, InstanceGetResponseJobImageType as bp, InstanceGetResponsePhase as bq, InstanceGetResponseApplicationType as br, InstanceGetResponse as bs, GetExchangeRatesResponseId as bt, GetExchangeRatesResponse as bu, GetAllExchangeRatesResponseExchangeRatesItem as bv, GetAllExchangeRatesResponse as bw, FilesGetResponse as bx, FilePostResponse as by, InstancePostResponse as bz, GetInstancesParams as c, GetJobExchangeRatesParams as d, GetAllJobExchangeRatesParams as e, GetJobParams as f, GetJobByVersionParams as g, GetJobsParams as h, GetApplicationExchangeRatesParams as i, GetAllApplicationExchangeRatesParams as j, GetTaskParams as k, GetTasksParams as l, GetFilesParams as m, DeleteDatasetParams as n, GetVersionsParams as o, GetDatasetsParams as p, GetProjectFileWithTokenParams as q, GetProjectFileParams as r, GetProjectsParams as s, QOwnersParameter as t, QUsernameParameter as u, QUntilParameter as v, QTokenParameter as w, QInstanceCallbackContextParameter as x, QProjectNameParameter as y, QProjectIdParameter as z };
1989
+ export { QEventPriorOrdinalParameter as $, AdminDeleteJobManifestParams as A, QProjectNameParameter as B, QProjectIdParameter as C, DeleteUnmanagedFileParams as D, QLabelsParameter as E, QOnlyUndefinedParameter as F, GetUserApiLogParams as G, QKeepProjectFilesParameter as H, QJobVersionParameter as I, QJobJobParameter as J, QJobIdParameter as K, QJobCollectionParameter as L, QInstanceArchiveParameter as M, QIncludeHiddenParameter as N, QIncludeDeletedParameter as O, PatchInstanceParams as P, QEditorsParameter as Q, QIncludeAcknowlegedParameter as R, QFromParameter as S, QFileProjectIdParameter as T, QFilePathParameter as U, QFileParameter as V, QActiveDaysParameter as W, QIdleDaysParameter as X, QExcludePurposeParameter as Y, QExcludeRemovalParameter as Z, QExcludeDoneParameter as _, AdminGetUsersParams as a, DatasetSummary as a$, QEventLimitParameter as a0, QDatasetMimeTypeParameter as a1, QDoNotImpersonateParameter as a2, QCurrentParameter as a3, QApplicationIdParameter as a4, UserPatchBodyBody as a5, UserAccountPatchBodyBody as a6, ProjectPostBodyBody as a7, ProjectPatchBodyBody as a8, ProjectFilePutBodyBody as a9, JobReplacement as aA, JobReplacements as aB, JobOrderDetail as aC, JobVariablesOptions as aD, JobVariablesOutputs as aE, JobVariablesInputs as aF, JobVariables as aG, JobSummaryImageType as aH, JobSummary as aI, JobManifestDetail as aJ, JobApplication as aK, InstanceSummaryJobImageType as aL, InstanceSummaryPhase as aM, InstanceSummaryApplicationType as aN, InstanceSummary as aO, FileStat as aP, FilePathFile as aQ, JobExchangeRateSummary as aR, ApplicationExchangeRateSummary as aS, ExchangeRateDetail as aT, DatasetVersionSummaryLabels as aU, DatasetVersionSummaryProcessingStage as aV, DatasetVersionSummary as aW, DatasetVersionProjectFile as aX, DatasetVersionDetailLabels as aY, DatasetVersionDetailProcessingStage as aZ, DatasetVersionDetail as a_, ExchangeRatePutBodyBody as aa, JobManifestPutBodyBody as ab, InstancePostBodyBody as ac, FilePostBodyBody as ad, DatasetPutBodyBody as ae, DatasetVersionMetaPostBodyBody as af, DatasetMetaPostBodyBody as ag, DatasetPostBodyBody as ah, AsAdditionalDataProcessingCharge as ai, UserSummary as aj, UserDetail as ak, UserAccountDetail as al, TypeSummaryFormatterOptionsType as am, TypeSummaryFormatterOptions as an, TypeSummary as ao, TaskSummaryProcessingStage as ap, TaskSummary as aq, TaskStateState as ar, TaskState as as, TaskIdentity as at, TaskEventLevel as au, TaskEvent as av, ServiceErrorSummarySeverity as aw, ServiceErrorSummary as ax, ProjectFileDetail as ay, ProjectDetail as az, AdminGetServiceErrorsParams as b, DatasetDetail as b0, ApplicationSummary as b1, ApplicationImageVariant as b2, ApplicationImageVariants as b3, ApiLogDetailMethod as b4, ApiLogDetail as b5, ModeGetResponse as b6, VersionGetResponse as b7, UsersGetResponse as b8, UserApiLogGetResponse as b9, InstancePostResponse as bA, InstanceDryRunPostResponse as bB, InstanceDeleteResponse as bC, DatasetsGetResponse as bD, DatasetVersionsGetResponse as bE, DatasetVersionDeleteResponse as bF, DatasetSchemaGetResponseType as bG, DatasetSchemaGetResponse as bH, DatasetMetaGetResponse as bI, DatasetDigestGetResponse as bJ, DatasetPutPostResponse as bK, ApplicationsGetResponse as bL, ApplicationGetResponse as bM, AdminUsersGetResponse as bN, AdminUserPutResponse as bO, AdminJobManifestLoadPutResponse as bP, AdminJobManifestGetResponse as bQ, AccountServerGetNamespaceResponse as bR, AccountServerGetRegistrationResponse as bS, DmError as bT, AXIOS_INSTANCE as bU, setAuthToken as bV, setBaseUrl as bW, customInstance as bX, ErrorType as bY, UserAccountGetResponse as ba, TypesGetResponse as bb, TasksGetResponse as bc, TaskGetResponsePurpose as bd, TaskGetResponse as be, ServiceErrorsGetResponse as bf, ProjectsGetResponse as bg, ProjectPostResponse as bh, ProjectGetResponse as bi, ProjectDeleteResponse as bj, JobsGetResponse as bk, JobGetResponseImageType as bl, JobGetResponse as bm, InstanceTaskPurpose as bn, InstanceTask as bo, InstancesGetResponse as bp, InstanceGetResponseJobImageType as bq, InstanceGetResponsePhase as br, InstanceGetResponseApplicationType as bs, InstanceGetResponse as bt, GetExchangeRatesResponseId as bu, GetExchangeRatesResponse as bv, GetAllExchangeRatesResponseExchangeRatesItem as bw, GetAllExchangeRatesResponse as bx, FilesGetResponse as by, FilePostResponse as bz, GetUserAccountParams as c, GetInstancesParams as d, GetJobExchangeRatesParams as e, GetAllJobExchangeRatesParams as f, GetJobParams as g, GetJobByVersionParams as h, GetJobsParams as i, GetApplicationExchangeRatesParams as j, GetAllApplicationExchangeRatesParams as k, GetTaskParams as l, GetTasksParams as m, GetFilesParams as n, DeleteDatasetParams as o, GetVersionsParams as p, GetDatasetsParams as q, GetProjectFileWithTokenParams as r, GetProjectFileParams as s, GetProjectsParams as t, QPurgeParameter as u, QOwnersParameter as v, QUsernameParameter as w, QUntilParameter as x, QTokenParameter as y, QInstanceCallbackContextParameter as z };
@@ -1,4 +1,4 @@
1
- import { ad as DatasetPutBodyBody, bW as customInstance, bJ as DatasetPutPostResponse, bX as ErrorType, bS as DmError, ag as DatasetPostBodyBody, p as GetDatasetsParams, bC as DatasetsGetResponse, o as GetVersionsParams, a$ as DatasetDetail, n as DeleteDatasetParams, as as TaskIdentity, bI as DatasetDigestGetResponse, bG as DatasetSchemaGetResponse } from '../custom-instance-56ecac1b.js';
1
+ import { ae as DatasetPutBodyBody, bX as customInstance, bK as DatasetPutPostResponse, bY as ErrorType, bT as DmError, ah as DatasetPostBodyBody, q as GetDatasetsParams, bD as DatasetsGetResponse, p as GetVersionsParams, b0 as DatasetDetail, o as DeleteDatasetParams, at as TaskIdentity, bJ as DatasetDigestGetResponse, bH as DatasetSchemaGetResponse } from '../custom-instance-50c9dd5d.js';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
4
4
  import 'axios';
@@ -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,IAA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AAE,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\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":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K,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,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 { j as GetAllApplicationExchangeRatesParams, bW as customInstance, bw as GetAllExchangeRatesResponse, bX as ErrorType, bS as DmError, a8 as ExchangeRatePutBodyBody, i as GetApplicationExchangeRatesParams, bu as GetExchangeRatesResponse, e as GetAllJobExchangeRatesParams, d as GetJobExchangeRatesParams } from '../custom-instance-56ecac1b.js';
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-50c9dd5d.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;
@@ -105,6 +105,8 @@ declare const useGetAllJobExchangeRates: <TData = GetAllExchangeRatesResponse, T
105
105
  /**
106
106
  * 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.
107
107
 
108
+ 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'.
109
+
108
110
  If a Job has no specific rate it adopts the current value of the default Job Exchange Rate.
109
111
 
110
112
  You need `admin` privilege to use this method.
@@ -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\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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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.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,6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as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
3
- import { m as GetFilesParams, bW as customInstance, bx as FilesGetResponse, bX as ErrorType, bS as DmError, ac as FilePostBodyBody, by as FilePostResponse, D as DeleteUnmanagedFileParams } from '../custom-instance-56ecac1b.js';
3
+ import { n as GetFilesParams, bX as customInstance, by as FilesGetResponse, bY as ErrorType, bT as DmError, ad as FilePostBodyBody, bz as FilePostResponse, D as DeleteUnmanagedFileParams } from '../custom-instance-50c9dd5d.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;