@squonk/data-manager-client 3.1.0-beta.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounting/accounting.cjs +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
1
|
+
import { UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
2
|
import { GetAllApplicationExchangeRatesParams, customInstance, GetAllExchangeRatesResponse, ErrorType, DmError, ExchangeRatePutBodyBody, GetApplicationExchangeRatesParams, GetExchangeRatesResponse, GetAllJobExchangeRatesParams, GetJobExchangeRatesParams } from '../index.js';
|
|
4
3
|
import 'axios';
|
|
5
4
|
|
|
@@ -14,37 +13,55 @@ If an Application has no specific rate it adopts the current value of the defaul
|
|
|
14
13
|
declare const getAllApplicationExchangeRates: (params?: GetAllApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
|
|
15
14
|
declare const getGetAllApplicationExchangeRatesQueryKey: (params?: GetAllApplicationExchangeRatesParams) => readonly ["data-manager-api", "/application/exchange-rate", ...GetAllApplicationExchangeRatesParams[]];
|
|
16
15
|
declare const getGetAllApplicationExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
17
|
-
query?: Partial<UseQueryOptions<
|
|
16
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
18
17
|
request?: SecondParameter<typeof customInstance>;
|
|
19
|
-
}
|
|
18
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & {
|
|
20
19
|
queryKey: QueryKey;
|
|
21
20
|
};
|
|
22
21
|
type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
|
|
23
22
|
type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllApplicationExchangeRatesParams, options: {
|
|
24
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>, 'initialData'>;
|
|
25
|
+
request?: SecondParameter<typeof customInstance>;
|
|
26
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
27
|
+
queryKey: QueryKey;
|
|
28
|
+
};
|
|
29
|
+
declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
30
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>, 'initialData'>;
|
|
31
|
+
request?: SecondParameter<typeof customInstance>;
|
|
32
|
+
}): UseQueryResult<TData, TError> & {
|
|
33
|
+
queryKey: QueryKey;
|
|
34
|
+
};
|
|
35
|
+
declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
36
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
29
37
|
request?: SecondParameter<typeof customInstance>;
|
|
30
|
-
}
|
|
38
|
+
}): UseQueryResult<TData, TError> & {
|
|
31
39
|
queryKey: QueryKey;
|
|
32
40
|
};
|
|
33
41
|
declare const getGetAllApplicationExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
34
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
42
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
35
43
|
request?: SecondParameter<typeof customInstance>;
|
|
36
|
-
}
|
|
44
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & {
|
|
37
45
|
queryKey: QueryKey;
|
|
38
46
|
};
|
|
39
47
|
type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
|
|
40
48
|
type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllApplicationExchangeRatesParams, options: {
|
|
50
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
51
|
+
request?: SecondParameter<typeof customInstance>;
|
|
52
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
53
|
+
queryKey: QueryKey;
|
|
54
|
+
};
|
|
55
|
+
declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
56
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
57
|
+
request?: SecondParameter<typeof customInstance>;
|
|
58
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
59
|
+
queryKey: QueryKey;
|
|
60
|
+
};
|
|
61
|
+
declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
|
|
62
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
|
|
46
63
|
request?: SecondParameter<typeof customInstance>;
|
|
47
|
-
}
|
|
64
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
48
65
|
queryKey: QueryKey;
|
|
49
66
|
};
|
|
50
67
|
/**
|
|
@@ -57,29 +74,29 @@ You need `admin` privilege to use this method.
|
|
|
57
74
|
* @summary Sets the Exchange Rate for a specific Application
|
|
58
75
|
*/
|
|
59
76
|
declare const setApplicationExchangeRate: (applicationId: string, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
60
|
-
declare const getSetApplicationExchangeRateMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
61
|
-
mutation?: UseMutationOptions<
|
|
77
|
+
declare const getSetApplicationExchangeRateMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
78
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
|
|
62
79
|
applicationId: string;
|
|
63
80
|
data: ExchangeRatePutBodyBody;
|
|
64
|
-
}, TContext
|
|
81
|
+
}, TContext>;
|
|
65
82
|
request?: SecondParameter<typeof customInstance>;
|
|
66
|
-
}
|
|
83
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
|
|
67
84
|
applicationId: string;
|
|
68
85
|
data: ExchangeRatePutBodyBody;
|
|
69
86
|
}, TContext>;
|
|
70
87
|
type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>;
|
|
71
88
|
type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;
|
|
72
|
-
type SetApplicationExchangeRateMutationError = ErrorType<DmError>;
|
|
89
|
+
type SetApplicationExchangeRateMutationError = ErrorType<void | DmError>;
|
|
73
90
|
/**
|
|
74
91
|
* @summary Sets the Exchange Rate for a specific Application
|
|
75
92
|
*/
|
|
76
|
-
declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
77
|
-
mutation?: UseMutationOptions<
|
|
93
|
+
declare const useSetApplicationExchangeRate: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
94
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
|
|
78
95
|
applicationId: string;
|
|
79
96
|
data: ExchangeRatePutBodyBody;
|
|
80
|
-
}, TContext
|
|
97
|
+
}, TContext>;
|
|
81
98
|
request?: SecondParameter<typeof customInstance>;
|
|
82
|
-
}
|
|
99
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
|
|
83
100
|
applicationId: string;
|
|
84
101
|
data: ExchangeRatePutBodyBody;
|
|
85
102
|
}, TContext>;
|
|
@@ -91,37 +108,55 @@ declare const useSetApplicationExchangeRate: <TError = ErrorType<DmError>, TCont
|
|
|
91
108
|
declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
92
109
|
declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly ["data-manager-api", `/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
|
|
93
110
|
declare const getGetApplicationExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
94
|
-
query?: Partial<UseQueryOptions<
|
|
111
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
95
112
|
request?: SecondParameter<typeof customInstance>;
|
|
96
|
-
}
|
|
113
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & {
|
|
97
114
|
queryKey: QueryKey;
|
|
98
115
|
};
|
|
99
116
|
type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
|
|
100
117
|
type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
118
|
+
declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params: undefined | GetApplicationExchangeRatesParams, options: {
|
|
119
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>, 'initialData'>;
|
|
120
|
+
request?: SecondParameter<typeof customInstance>;
|
|
121
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
122
|
+
queryKey: QueryKey;
|
|
123
|
+
};
|
|
124
|
+
declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
125
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>, 'initialData'>;
|
|
126
|
+
request?: SecondParameter<typeof customInstance>;
|
|
127
|
+
}): UseQueryResult<TData, TError> & {
|
|
128
|
+
queryKey: QueryKey;
|
|
129
|
+
};
|
|
130
|
+
declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
131
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
106
132
|
request?: SecondParameter<typeof customInstance>;
|
|
107
|
-
}
|
|
133
|
+
}): UseQueryResult<TData, TError> & {
|
|
108
134
|
queryKey: QueryKey;
|
|
109
135
|
};
|
|
110
136
|
declare const getGetApplicationExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
111
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
137
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
112
138
|
request?: SecondParameter<typeof customInstance>;
|
|
113
|
-
}
|
|
139
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & {
|
|
114
140
|
queryKey: QueryKey;
|
|
115
141
|
};
|
|
116
142
|
type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
|
|
117
143
|
type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
144
|
+
declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params: undefined | GetApplicationExchangeRatesParams, options: {
|
|
145
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
146
|
+
request?: SecondParameter<typeof customInstance>;
|
|
147
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
148
|
+
queryKey: QueryKey;
|
|
149
|
+
};
|
|
150
|
+
declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
151
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
152
|
+
request?: SecondParameter<typeof customInstance>;
|
|
153
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
154
|
+
queryKey: QueryKey;
|
|
155
|
+
};
|
|
156
|
+
declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
|
|
157
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
|
|
123
158
|
request?: SecondParameter<typeof customInstance>;
|
|
124
|
-
}
|
|
159
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
125
160
|
queryKey: QueryKey;
|
|
126
161
|
};
|
|
127
162
|
/**
|
|
@@ -132,37 +167,55 @@ declare const useGetApplicationExchangeRatesSuspense: <TData = GetExchangeRatesR
|
|
|
132
167
|
declare const getAllJobExchangeRates: (params?: GetAllJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
|
|
133
168
|
declare const getGetAllJobExchangeRatesQueryKey: (params?: GetAllJobExchangeRatesParams) => readonly ["data-manager-api", "/job/exchange-rate", ...GetAllJobExchangeRatesParams[]];
|
|
134
169
|
declare const getGetAllJobExchangeRatesQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
135
|
-
query?: Partial<UseQueryOptions<
|
|
170
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
136
171
|
request?: SecondParameter<typeof customInstance>;
|
|
137
|
-
}
|
|
172
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & {
|
|
138
173
|
queryKey: QueryKey;
|
|
139
174
|
};
|
|
140
175
|
type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
|
|
141
176
|
type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
177
|
+
declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllJobExchangeRatesParams, options: {
|
|
178
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>, 'initialData'>;
|
|
179
|
+
request?: SecondParameter<typeof customInstance>;
|
|
180
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
181
|
+
queryKey: QueryKey;
|
|
182
|
+
};
|
|
183
|
+
declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
184
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>, 'initialData'>;
|
|
185
|
+
request?: SecondParameter<typeof customInstance>;
|
|
186
|
+
}): UseQueryResult<TData, TError> & {
|
|
187
|
+
queryKey: QueryKey;
|
|
188
|
+
};
|
|
189
|
+
declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
190
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
147
191
|
request?: SecondParameter<typeof customInstance>;
|
|
148
|
-
}
|
|
192
|
+
}): UseQueryResult<TData, TError> & {
|
|
149
193
|
queryKey: QueryKey;
|
|
150
194
|
};
|
|
151
195
|
declare const getGetAllJobExchangeRatesSuspenseQueryOptions: <TData = GetAllExchangeRatesResponse, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
152
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
196
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
153
197
|
request?: SecondParameter<typeof customInstance>;
|
|
154
|
-
}
|
|
198
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & {
|
|
155
199
|
queryKey: QueryKey;
|
|
156
200
|
};
|
|
157
201
|
type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
|
|
158
202
|
type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
203
|
+
declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllJobExchangeRatesParams, options: {
|
|
204
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
205
|
+
request?: SecondParameter<typeof customInstance>;
|
|
206
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
207
|
+
queryKey: QueryKey;
|
|
208
|
+
};
|
|
209
|
+
declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
210
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
211
|
+
request?: SecondParameter<typeof customInstance>;
|
|
212
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
213
|
+
queryKey: QueryKey;
|
|
214
|
+
};
|
|
215
|
+
declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
|
|
216
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
|
|
164
217
|
request?: SecondParameter<typeof customInstance>;
|
|
165
|
-
}
|
|
218
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
166
219
|
queryKey: QueryKey;
|
|
167
220
|
};
|
|
168
221
|
/**
|
|
@@ -177,29 +230,29 @@ You need `admin` privilege to use this method.
|
|
|
177
230
|
* @summary Sets the Exchange Rate for a specific Job
|
|
178
231
|
*/
|
|
179
232
|
declare const setJobPricing: (jobId: number, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
180
|
-
declare const getSetJobPricingMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
181
|
-
mutation?: UseMutationOptions<
|
|
233
|
+
declare const getSetJobPricingMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
234
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
|
|
182
235
|
jobId: number;
|
|
183
236
|
data: ExchangeRatePutBodyBody;
|
|
184
|
-
}, TContext
|
|
237
|
+
}, TContext>;
|
|
185
238
|
request?: SecondParameter<typeof customInstance>;
|
|
186
|
-
}
|
|
239
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
|
|
187
240
|
jobId: number;
|
|
188
241
|
data: ExchangeRatePutBodyBody;
|
|
189
242
|
}, TContext>;
|
|
190
243
|
type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>;
|
|
191
244
|
type SetJobPricingMutationBody = ExchangeRatePutBodyBody;
|
|
192
|
-
type SetJobPricingMutationError = ErrorType<DmError>;
|
|
245
|
+
type SetJobPricingMutationError = ErrorType<void | DmError>;
|
|
193
246
|
/**
|
|
194
247
|
* @summary Sets the Exchange Rate for a specific Job
|
|
195
248
|
*/
|
|
196
|
-
declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
197
|
-
mutation?: UseMutationOptions<
|
|
249
|
+
declare const useSetJobPricing: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
250
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
|
|
198
251
|
jobId: number;
|
|
199
252
|
data: ExchangeRatePutBodyBody;
|
|
200
|
-
}, TContext
|
|
253
|
+
}, TContext>;
|
|
201
254
|
request?: SecondParameter<typeof customInstance>;
|
|
202
|
-
}
|
|
255
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof setJobPricing>>, TError, {
|
|
203
256
|
jobId: number;
|
|
204
257
|
data: ExchangeRatePutBodyBody;
|
|
205
258
|
}, TContext>;
|
|
@@ -211,37 +264,55 @@ declare const useSetJobPricing: <TError = ErrorType<DmError>, TContext = unknown
|
|
|
211
264
|
declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
|
|
212
265
|
declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly ["data-manager-api", `/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
|
|
213
266
|
declare const getGetJobExchangeRatesQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
214
|
-
query?: Partial<UseQueryOptions<
|
|
267
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
215
268
|
request?: SecondParameter<typeof customInstance>;
|
|
216
|
-
}
|
|
269
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & {
|
|
217
270
|
queryKey: QueryKey;
|
|
218
271
|
};
|
|
219
272
|
type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
|
|
220
273
|
type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
274
|
+
declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobExchangeRatesParams, options: {
|
|
275
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>, 'initialData'>;
|
|
276
|
+
request?: SecondParameter<typeof customInstance>;
|
|
277
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
278
|
+
queryKey: QueryKey;
|
|
279
|
+
};
|
|
280
|
+
declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
281
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>, 'initialData'>;
|
|
282
|
+
request?: SecondParameter<typeof customInstance>;
|
|
283
|
+
}): UseQueryResult<TData, TError> & {
|
|
284
|
+
queryKey: QueryKey;
|
|
285
|
+
};
|
|
286
|
+
declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
287
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
226
288
|
request?: SecondParameter<typeof customInstance>;
|
|
227
|
-
}
|
|
289
|
+
}): UseQueryResult<TData, TError> & {
|
|
228
290
|
queryKey: QueryKey;
|
|
229
291
|
};
|
|
230
292
|
declare const getGetJobExchangeRatesSuspenseQueryOptions: <TData = GetExchangeRatesResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
231
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
293
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
232
294
|
request?: SecondParameter<typeof customInstance>;
|
|
233
|
-
}
|
|
295
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & {
|
|
234
296
|
queryKey: QueryKey;
|
|
235
297
|
};
|
|
236
298
|
type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
|
|
237
299
|
type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
300
|
+
declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobExchangeRatesParams, options: {
|
|
301
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
302
|
+
request?: SecondParameter<typeof customInstance>;
|
|
303
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
304
|
+
queryKey: QueryKey;
|
|
305
|
+
};
|
|
306
|
+
declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
307
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
308
|
+
request?: SecondParameter<typeof customInstance>;
|
|
309
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
310
|
+
queryKey: QueryKey;
|
|
311
|
+
};
|
|
312
|
+
declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
|
|
313
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
|
|
243
314
|
request?: SecondParameter<typeof customInstance>;
|
|
244
|
-
}
|
|
315
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
245
316
|
queryKey: QueryKey;
|
|
246
317
|
};
|
|
247
318
|
|
|
@@ -28,24 +28,24 @@ var getGetAllApplicationExchangeRatesQueryOptions = (params, options) => {
|
|
|
28
28
|
const queryFn = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);
|
|
29
29
|
return { queryKey, queryFn, ...queryOptions };
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
function useGetAllApplicationExchangeRates(params, options) {
|
|
32
32
|
const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params, options);
|
|
33
33
|
const query = useQuery(queryOptions);
|
|
34
34
|
query.queryKey = queryOptions.queryKey;
|
|
35
35
|
return query;
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
37
|
var getGetAllApplicationExchangeRatesSuspenseQueryOptions = (params, options) => {
|
|
38
38
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
39
39
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllApplicationExchangeRatesQueryKey(params);
|
|
40
40
|
const queryFn = ({ signal }) => getAllApplicationExchangeRates(params, requestOptions, signal);
|
|
41
41
|
return { queryKey, queryFn, ...queryOptions };
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
function useGetAllApplicationExchangeRatesSuspense(params, options) {
|
|
44
44
|
const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params, options);
|
|
45
45
|
const query = useSuspenseQuery(queryOptions);
|
|
46
46
|
query.queryKey = queryOptions.queryKey;
|
|
47
47
|
return query;
|
|
48
|
-
}
|
|
48
|
+
}
|
|
49
49
|
var setApplicationExchangeRate = (applicationId, exchangeRatePutBodyBody, options) => {
|
|
50
50
|
const formData = new FormData();
|
|
51
51
|
formData.append("rate", exchangeRatePutBodyBody.rate);
|
|
@@ -94,24 +94,24 @@ var getGetApplicationExchangeRatesQueryOptions = (applicationId, params, options
|
|
|
94
94
|
const queryFn = ({ signal }) => getApplicationExchangeRates(applicationId, params, requestOptions, signal);
|
|
95
95
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
function useGetApplicationExchangeRates(applicationId, params, options) {
|
|
98
98
|
const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId, params, options);
|
|
99
99
|
const query = useQuery(queryOptions);
|
|
100
100
|
query.queryKey = queryOptions.queryKey;
|
|
101
101
|
return query;
|
|
102
|
-
}
|
|
102
|
+
}
|
|
103
103
|
var getGetApplicationExchangeRatesSuspenseQueryOptions = (applicationId, params, options) => {
|
|
104
104
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
105
105
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetApplicationExchangeRatesQueryKey(applicationId, params);
|
|
106
106
|
const queryFn = ({ signal }) => getApplicationExchangeRates(applicationId, params, requestOptions, signal);
|
|
107
107
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
function useGetApplicationExchangeRatesSuspense(applicationId, params, options) {
|
|
110
110
|
const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId, params, options);
|
|
111
111
|
const query = useSuspenseQuery(queryOptions);
|
|
112
112
|
query.queryKey = queryOptions.queryKey;
|
|
113
113
|
return query;
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
var getAllJobExchangeRates = (params, options, signal) => {
|
|
116
116
|
return customInstance(
|
|
117
117
|
{
|
|
@@ -132,24 +132,24 @@ var getGetAllJobExchangeRatesQueryOptions = (params, options) => {
|
|
|
132
132
|
const queryFn = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);
|
|
133
133
|
return { queryKey, queryFn, ...queryOptions };
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
function useGetAllJobExchangeRates(params, options) {
|
|
136
136
|
const queryOptions = getGetAllJobExchangeRatesQueryOptions(params, options);
|
|
137
137
|
const query = useQuery(queryOptions);
|
|
138
138
|
query.queryKey = queryOptions.queryKey;
|
|
139
139
|
return query;
|
|
140
|
-
}
|
|
140
|
+
}
|
|
141
141
|
var getGetAllJobExchangeRatesSuspenseQueryOptions = (params, options) => {
|
|
142
142
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
143
143
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAllJobExchangeRatesQueryKey(params);
|
|
144
144
|
const queryFn = ({ signal }) => getAllJobExchangeRates(params, requestOptions, signal);
|
|
145
145
|
return { queryKey, queryFn, ...queryOptions };
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
function useGetAllJobExchangeRatesSuspense(params, options) {
|
|
148
148
|
const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params, options);
|
|
149
149
|
const query = useSuspenseQuery(queryOptions);
|
|
150
150
|
query.queryKey = queryOptions.queryKey;
|
|
151
151
|
return query;
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
var setJobPricing = (jobId, exchangeRatePutBodyBody, options) => {
|
|
154
154
|
const formData = new FormData();
|
|
155
155
|
formData.append("rate", exchangeRatePutBodyBody.rate);
|
|
@@ -198,24 +198,24 @@ var getGetJobExchangeRatesQueryOptions = (jobId, params, options) => {
|
|
|
198
198
|
const queryFn = ({ signal }) => getJobExchangeRates(jobId, params, requestOptions, signal);
|
|
199
199
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
function useGetJobExchangeRates(jobId, params, options) {
|
|
202
202
|
const queryOptions = getGetJobExchangeRatesQueryOptions(jobId, params, options);
|
|
203
203
|
const query = useQuery(queryOptions);
|
|
204
204
|
query.queryKey = queryOptions.queryKey;
|
|
205
205
|
return query;
|
|
206
|
-
}
|
|
206
|
+
}
|
|
207
207
|
var getGetJobExchangeRatesSuspenseQueryOptions = (jobId, params, options) => {
|
|
208
208
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
209
209
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetJobExchangeRatesQueryKey(jobId, params);
|
|
210
210
|
const queryFn = ({ signal }) => getJobExchangeRates(jobId, params, requestOptions, signal);
|
|
211
211
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
212
212
|
};
|
|
213
|
-
|
|
213
|
+
function useGetJobExchangeRatesSuspense(jobId, params, options) {
|
|
214
214
|
const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId, params, options);
|
|
215
215
|
const query = useSuspenseQuery(queryOptions);
|
|
216
216
|
query.queryKey = queryOptions.queryKey;
|
|
217
217
|
return query;
|
|
218
|
-
}
|
|
218
|
+
}
|
|
219
219
|
export {
|
|
220
220
|
getAllApplicationExchangeRates,
|
|
221
221
|
getAllJobExchangeRates,
|