@squonk/account-server-client 4.4.0-4-4.2175031121 → 4.4.0-4-4.2194834412
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/dist/api/actions/actions.cjs +5 -5
- package/dist/api/actions/actions.cjs.map +1 -1
- package/dist/api/actions/actions.d.cts +17 -35
- package/dist/api/actions/actions.d.cts.map +1 -1
- package/dist/api/actions/actions.d.ts +17 -35
- package/dist/api/actions/actions.d.ts.map +1 -1
- package/dist/api/actions/actions.js +5 -5
- package/dist/api/actions/actions.js.map +1 -1
- package/dist/api/api.schemas.cjs.map +1 -1
- package/dist/api/api.schemas.d.cts +1 -1
- package/dist/api/api.schemas.d.ts +1 -1
- package/dist/api/api.schemas.js.map +1 -1
- package/dist/api/asset/asset.cjs +23 -23
- package/dist/api/asset/asset.cjs.map +1 -1
- package/dist/api/asset/asset.d.cts +40 -76
- package/dist/api/asset/asset.d.cts.map +1 -1
- package/dist/api/asset/asset.d.ts +40 -76
- package/dist/api/asset/asset.d.ts.map +1 -1
- package/dist/api/asset/asset.js +23 -23
- package/dist/api/asset/asset.js.map +1 -1
- package/dist/api/charges/charges.cjs +17 -17
- package/dist/api/charges/charges.cjs.map +1 -1
- package/dist/api/charges/charges.d.cts +65 -137
- package/dist/api/charges/charges.d.cts.map +1 -1
- package/dist/api/charges/charges.d.ts +65 -137
- package/dist/api/charges/charges.d.ts.map +1 -1
- package/dist/api/charges/charges.js +17 -17
- package/dist/api/charges/charges.js.map +1 -1
- package/dist/api/event-stream/event-stream.cjs +13 -13
- package/dist/api/event-stream/event-stream.cjs.map +1 -1
- package/dist/api/event-stream/event-stream.d.cts +35 -71
- package/dist/api/event-stream/event-stream.d.cts.map +1 -1
- package/dist/api/event-stream/event-stream.d.ts +35 -71
- package/dist/api/event-stream/event-stream.d.ts.map +1 -1
- package/dist/api/event-stream/event-stream.js +13 -13
- package/dist/api/event-stream/event-stream.js.map +1 -1
- package/dist/api/merchant/merchant.cjs +9 -9
- package/dist/api/merchant/merchant.cjs.map +1 -1
- package/dist/api/merchant/merchant.d.cts +33 -69
- package/dist/api/merchant/merchant.d.cts.map +1 -1
- package/dist/api/merchant/merchant.d.ts +33 -69
- package/dist/api/merchant/merchant.d.ts.map +1 -1
- package/dist/api/merchant/merchant.js +9 -9
- package/dist/api/merchant/merchant.js.map +1 -1
- package/dist/api/organisation/organisation.cjs +19 -19
- package/dist/api/organisation/organisation.cjs.map +1 -1
- package/dist/api/organisation/organisation.d.cts +52 -106
- package/dist/api/organisation/organisation.d.cts.map +1 -1
- package/dist/api/organisation/organisation.d.ts +52 -106
- package/dist/api/organisation/organisation.d.ts.map +1 -1
- package/dist/api/organisation/organisation.js +19 -19
- package/dist/api/organisation/organisation.js.map +1 -1
- package/dist/api/product/product.cjs +31 -31
- package/dist/api/product/product.cjs.map +1 -1
- package/dist/api/product/product.d.cts +100 -208
- package/dist/api/product/product.d.cts.map +1 -1
- package/dist/api/product/product.d.ts +100 -208
- package/dist/api/product/product.d.ts.map +1 -1
- package/dist/api/product/product.js +31 -31
- package/dist/api/product/product.js.map +1 -1
- package/dist/api/state/state.cjs +5 -5
- package/dist/api/state/state.cjs.map +1 -1
- package/dist/api/state/state.d.cts +17 -35
- package/dist/api/state/state.d.cts.map +1 -1
- package/dist/api/state/state.d.ts +17 -35
- package/dist/api/state/state.d.ts.map +1 -1
- package/dist/api/state/state.js +5 -5
- package/dist/api/state/state.js.map +1 -1
- package/dist/api/unit/unit.cjs +31 -31
- package/dist/api/unit/unit.cjs.map +1 -1
- package/dist/api/unit/unit.d.cts +72 -144
- package/dist/api/unit/unit.d.cts.map +1 -1
- package/dist/api/unit/unit.d.ts +72 -144
- package/dist/api/unit/unit.d.ts.map +1 -1
- package/dist/api/unit/unit.js +31 -31
- package/dist/api/unit/unit.js.map +1 -1
- package/dist/api/user/user.cjs +21 -21
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +53 -107
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +53 -107
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.js +21 -21
- package/dist/api/user/user.js.map +1 -1
- package/package.json +4 -7
- package/pnpm-workspace.yaml +1 -3
- package/src/api/actions/actions.ts +13 -105
- package/src/api/api.schemas.ts +1 -1
- package/src/api/asset/asset.ts +95 -305
- package/src/api/charges/charges.ts +55 -458
- package/src/api/event-stream/event-stream.ts +59 -264
- package/src/api/merchant/merchant.ts +29 -214
- package/src/api/organisation/organisation.ts +87 -383
- package/src/api/product/product.ts +131 -726
- package/src/api/state/state.ts +17 -107
- package/src/api/unit/unit.ts +147 -523
- package/src/api/user/user.ts +102 -403
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.17.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Account Server API
|
|
5
5
|
* The Informatics Matters Account Server API.
|
|
@@ -10,13 +10,8 @@ A service that provides access to the Account Server, which gives *registered* u
|
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
13
|
-
DataTag,
|
|
14
|
-
DefinedInitialDataOptions,
|
|
15
|
-
DefinedUseQueryResult,
|
|
16
|
-
QueryClient,
|
|
17
13
|
QueryFunction,
|
|
18
14
|
QueryKey,
|
|
19
|
-
UndefinedInitialDataOptions,
|
|
20
15
|
UseQueryOptions,
|
|
21
16
|
UseQueryResult,
|
|
22
17
|
UseSuspenseQueryOptions,
|
|
@@ -53,7 +48,7 @@ export const useGetMerchantsQueryOptions = <
|
|
|
53
48
|
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
54
49
|
TError = ErrorType<AsError | void>,
|
|
55
50
|
>(options?: {
|
|
56
|
-
query?:
|
|
51
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
57
52
|
request?: SecondParameter<typeof customInstance>;
|
|
58
53
|
}) => {
|
|
59
54
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
@@ -69,58 +64,12 @@ export const useGetMerchantsQueryOptions = <
|
|
|
69
64
|
Awaited<ReturnType<typeof getMerchants>>,
|
|
70
65
|
TError,
|
|
71
66
|
TData
|
|
72
|
-
> & { queryKey:
|
|
67
|
+
> & { queryKey: QueryKey };
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
export type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
|
|
76
71
|
export type GetMerchantsQueryError = ErrorType<AsError | void>;
|
|
77
72
|
|
|
78
|
-
export function useGetMerchants<
|
|
79
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
80
|
-
TError = ErrorType<AsError | void>,
|
|
81
|
-
>(
|
|
82
|
-
options: {
|
|
83
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &
|
|
84
|
-
Pick<
|
|
85
|
-
DefinedInitialDataOptions<
|
|
86
|
-
Awaited<ReturnType<typeof getMerchants>>,
|
|
87
|
-
TError,
|
|
88
|
-
Awaited<ReturnType<typeof getMerchants>>
|
|
89
|
-
>,
|
|
90
|
-
"initialData"
|
|
91
|
-
>;
|
|
92
|
-
request?: SecondParameter<typeof customInstance>;
|
|
93
|
-
},
|
|
94
|
-
queryClient?: QueryClient,
|
|
95
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
96
|
-
export function useGetMerchants<
|
|
97
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
98
|
-
TError = ErrorType<AsError | void>,
|
|
99
|
-
>(
|
|
100
|
-
options?: {
|
|
101
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &
|
|
102
|
-
Pick<
|
|
103
|
-
UndefinedInitialDataOptions<
|
|
104
|
-
Awaited<ReturnType<typeof getMerchants>>,
|
|
105
|
-
TError,
|
|
106
|
-
Awaited<ReturnType<typeof getMerchants>>
|
|
107
|
-
>,
|
|
108
|
-
"initialData"
|
|
109
|
-
>;
|
|
110
|
-
request?: SecondParameter<typeof customInstance>;
|
|
111
|
-
},
|
|
112
|
-
queryClient?: QueryClient,
|
|
113
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
114
|
-
export function useGetMerchants<
|
|
115
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
116
|
-
TError = ErrorType<AsError | void>,
|
|
117
|
-
>(
|
|
118
|
-
options?: {
|
|
119
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
|
|
120
|
-
request?: SecondParameter<typeof customInstance>;
|
|
121
|
-
},
|
|
122
|
-
queryClient?: QueryClient,
|
|
123
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
124
73
|
/**
|
|
125
74
|
* @summary Gets all Merchants
|
|
126
75
|
*/
|
|
@@ -128,18 +77,13 @@ export function useGetMerchants<
|
|
|
128
77
|
export function useGetMerchants<
|
|
129
78
|
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
130
79
|
TError = ErrorType<AsError | void>,
|
|
131
|
-
>(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
queryClient?: QueryClient,
|
|
137
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
80
|
+
>(options?: {
|
|
81
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
82
|
+
request?: SecondParameter<typeof customInstance>;
|
|
83
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
138
84
|
const queryOptions = useGetMerchantsQueryOptions(options);
|
|
139
85
|
|
|
140
|
-
const query = useQuery(queryOptions
|
|
141
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
142
|
-
};
|
|
86
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
143
87
|
|
|
144
88
|
query.queryKey = queryOptions.queryKey;
|
|
145
89
|
|
|
@@ -150,7 +94,7 @@ export const useGetMerchantsSuspenseQueryOptions = <
|
|
|
150
94
|
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
151
95
|
TError = ErrorType<AsError | void>,
|
|
152
96
|
>(options?: {
|
|
153
|
-
query?:
|
|
97
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
154
98
|
request?: SecondParameter<typeof customInstance>;
|
|
155
99
|
}) => {
|
|
156
100
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
@@ -166,48 +110,12 @@ export const useGetMerchantsSuspenseQueryOptions = <
|
|
|
166
110
|
Awaited<ReturnType<typeof getMerchants>>,
|
|
167
111
|
TError,
|
|
168
112
|
TData
|
|
169
|
-
> & { queryKey:
|
|
113
|
+
> & { queryKey: QueryKey };
|
|
170
114
|
};
|
|
171
115
|
|
|
172
116
|
export type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
|
|
173
117
|
export type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;
|
|
174
118
|
|
|
175
|
-
export function useGetMerchantsSuspense<
|
|
176
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
177
|
-
TError = ErrorType<AsError | void>,
|
|
178
|
-
>(
|
|
179
|
-
options: {
|
|
180
|
-
query: Partial<
|
|
181
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>
|
|
182
|
-
>;
|
|
183
|
-
request?: SecondParameter<typeof customInstance>;
|
|
184
|
-
},
|
|
185
|
-
queryClient?: QueryClient,
|
|
186
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
187
|
-
export function useGetMerchantsSuspense<
|
|
188
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
189
|
-
TError = ErrorType<AsError | void>,
|
|
190
|
-
>(
|
|
191
|
-
options?: {
|
|
192
|
-
query?: Partial<
|
|
193
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>
|
|
194
|
-
>;
|
|
195
|
-
request?: SecondParameter<typeof customInstance>;
|
|
196
|
-
},
|
|
197
|
-
queryClient?: QueryClient,
|
|
198
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
199
|
-
export function useGetMerchantsSuspense<
|
|
200
|
-
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
201
|
-
TError = ErrorType<AsError | void>,
|
|
202
|
-
>(
|
|
203
|
-
options?: {
|
|
204
|
-
query?: Partial<
|
|
205
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>
|
|
206
|
-
>;
|
|
207
|
-
request?: SecondParameter<typeof customInstance>;
|
|
208
|
-
},
|
|
209
|
-
queryClient?: QueryClient,
|
|
210
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
211
119
|
/**
|
|
212
120
|
* @summary Gets all Merchants
|
|
213
121
|
*/
|
|
@@ -215,21 +123,15 @@ export function useGetMerchantsSuspense<
|
|
|
215
123
|
export function useGetMerchantsSuspense<
|
|
216
124
|
TData = Awaited<ReturnType<typeof getMerchants>>,
|
|
217
125
|
TError = ErrorType<AsError | void>,
|
|
218
|
-
>(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
>;
|
|
223
|
-
request?: SecondParameter<typeof customInstance>;
|
|
224
|
-
},
|
|
225
|
-
queryClient?: QueryClient,
|
|
226
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
126
|
+
>(options?: {
|
|
127
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
|
|
128
|
+
request?: SecondParameter<typeof customInstance>;
|
|
129
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
227
130
|
const queryOptions = useGetMerchantsSuspenseQueryOptions(options);
|
|
228
131
|
|
|
229
|
-
const query = useSuspenseQuery(queryOptions
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
132
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
133
|
+
queryKey: QueryKey;
|
|
134
|
+
};
|
|
233
135
|
|
|
234
136
|
query.queryKey = queryOptions.queryKey;
|
|
235
137
|
|
|
@@ -262,7 +164,7 @@ export const useGetServiceQueryOptions = <
|
|
|
262
164
|
>(
|
|
263
165
|
mId: number,
|
|
264
166
|
options?: {
|
|
265
|
-
query?:
|
|
167
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
266
168
|
request?: SecondParameter<typeof customInstance>;
|
|
267
169
|
},
|
|
268
170
|
) => {
|
|
@@ -276,62 +178,13 @@ export const useGetServiceQueryOptions = <
|
|
|
276
178
|
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
277
179
|
|
|
278
180
|
return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {
|
|
279
|
-
queryKey:
|
|
181
|
+
queryKey: QueryKey;
|
|
280
182
|
};
|
|
281
183
|
};
|
|
282
184
|
|
|
283
185
|
export type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
|
|
284
186
|
export type GetServiceQueryError = ErrorType<AsError | void>;
|
|
285
187
|
|
|
286
|
-
export function useGetService<
|
|
287
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
288
|
-
TError = ErrorType<AsError | void>,
|
|
289
|
-
>(
|
|
290
|
-
mId: number,
|
|
291
|
-
options: {
|
|
292
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &
|
|
293
|
-
Pick<
|
|
294
|
-
DefinedInitialDataOptions<
|
|
295
|
-
Awaited<ReturnType<typeof getService>>,
|
|
296
|
-
TError,
|
|
297
|
-
Awaited<ReturnType<typeof getService>>
|
|
298
|
-
>,
|
|
299
|
-
"initialData"
|
|
300
|
-
>;
|
|
301
|
-
request?: SecondParameter<typeof customInstance>;
|
|
302
|
-
},
|
|
303
|
-
queryClient?: QueryClient,
|
|
304
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
305
|
-
export function useGetService<
|
|
306
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
307
|
-
TError = ErrorType<AsError | void>,
|
|
308
|
-
>(
|
|
309
|
-
mId: number,
|
|
310
|
-
options?: {
|
|
311
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &
|
|
312
|
-
Pick<
|
|
313
|
-
UndefinedInitialDataOptions<
|
|
314
|
-
Awaited<ReturnType<typeof getService>>,
|
|
315
|
-
TError,
|
|
316
|
-
Awaited<ReturnType<typeof getService>>
|
|
317
|
-
>,
|
|
318
|
-
"initialData"
|
|
319
|
-
>;
|
|
320
|
-
request?: SecondParameter<typeof customInstance>;
|
|
321
|
-
},
|
|
322
|
-
queryClient?: QueryClient,
|
|
323
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
324
|
-
export function useGetService<
|
|
325
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
326
|
-
TError = ErrorType<AsError | void>,
|
|
327
|
-
>(
|
|
328
|
-
mId: number,
|
|
329
|
-
options?: {
|
|
330
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
|
|
331
|
-
request?: SecondParameter<typeof customInstance>;
|
|
332
|
-
},
|
|
333
|
-
queryClient?: QueryClient,
|
|
334
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
335
188
|
/**
|
|
336
189
|
* @summary Gets a specific Merchant
|
|
337
190
|
*/
|
|
@@ -342,16 +195,13 @@ export function useGetService<
|
|
|
342
195
|
>(
|
|
343
196
|
mId: number,
|
|
344
197
|
options?: {
|
|
345
|
-
query?:
|
|
198
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
346
199
|
request?: SecondParameter<typeof customInstance>;
|
|
347
200
|
},
|
|
348
|
-
|
|
349
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
201
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
350
202
|
const queryOptions = useGetServiceQueryOptions(mId, options);
|
|
351
203
|
|
|
352
|
-
const query = useQuery(queryOptions
|
|
353
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
354
|
-
};
|
|
204
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
355
205
|
|
|
356
206
|
query.queryKey = queryOptions.queryKey;
|
|
357
207
|
|
|
@@ -364,7 +214,7 @@ export const useGetServiceSuspenseQueryOptions = <
|
|
|
364
214
|
>(
|
|
365
215
|
mId: number,
|
|
366
216
|
options?: {
|
|
367
|
-
query?:
|
|
217
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
368
218
|
request?: SecondParameter<typeof customInstance>;
|
|
369
219
|
},
|
|
370
220
|
) => {
|
|
@@ -381,45 +231,12 @@ export const useGetServiceSuspenseQueryOptions = <
|
|
|
381
231
|
Awaited<ReturnType<typeof getService>>,
|
|
382
232
|
TError,
|
|
383
233
|
TData
|
|
384
|
-
> & { queryKey:
|
|
234
|
+
> & { queryKey: QueryKey };
|
|
385
235
|
};
|
|
386
236
|
|
|
387
237
|
export type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
|
|
388
238
|
export type GetServiceSuspenseQueryError = ErrorType<AsError | void>;
|
|
389
239
|
|
|
390
|
-
export function useGetServiceSuspense<
|
|
391
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
392
|
-
TError = ErrorType<AsError | void>,
|
|
393
|
-
>(
|
|
394
|
-
mId: number,
|
|
395
|
-
options: {
|
|
396
|
-
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
|
|
397
|
-
request?: SecondParameter<typeof customInstance>;
|
|
398
|
-
},
|
|
399
|
-
queryClient?: QueryClient,
|
|
400
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
401
|
-
export function useGetServiceSuspense<
|
|
402
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
403
|
-
TError = ErrorType<AsError | void>,
|
|
404
|
-
>(
|
|
405
|
-
mId: number,
|
|
406
|
-
options?: {
|
|
407
|
-
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
|
|
408
|
-
request?: SecondParameter<typeof customInstance>;
|
|
409
|
-
},
|
|
410
|
-
queryClient?: QueryClient,
|
|
411
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
412
|
-
export function useGetServiceSuspense<
|
|
413
|
-
TData = Awaited<ReturnType<typeof getService>>,
|
|
414
|
-
TError = ErrorType<AsError | void>,
|
|
415
|
-
>(
|
|
416
|
-
mId: number,
|
|
417
|
-
options?: {
|
|
418
|
-
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
|
|
419
|
-
request?: SecondParameter<typeof customInstance>;
|
|
420
|
-
},
|
|
421
|
-
queryClient?: QueryClient,
|
|
422
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
423
240
|
/**
|
|
424
241
|
* @summary Gets a specific Merchant
|
|
425
242
|
*/
|
|
@@ -430,17 +247,15 @@ export function useGetServiceSuspense<
|
|
|
430
247
|
>(
|
|
431
248
|
mId: number,
|
|
432
249
|
options?: {
|
|
433
|
-
query?:
|
|
250
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
|
|
434
251
|
request?: SecondParameter<typeof customInstance>;
|
|
435
252
|
},
|
|
436
|
-
|
|
437
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
253
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
438
254
|
const queryOptions = useGetServiceSuspenseQueryOptions(mId, options);
|
|
439
255
|
|
|
440
|
-
const query = useSuspenseQuery(queryOptions
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
256
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
257
|
+
queryKey: QueryKey;
|
|
258
|
+
};
|
|
444
259
|
|
|
445
260
|
query.queryKey = queryOptions.queryKey;
|
|
446
261
|
|