@squonk/account-server-client 4.4.0-4-4.2174798239 → 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,
|
|
@@ -69,7 +64,7 @@ export const useGetChargesQueryOptions = <
|
|
|
69
64
|
>(
|
|
70
65
|
params?: GetChargesParams,
|
|
71
66
|
options?: {
|
|
72
|
-
query?:
|
|
67
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>;
|
|
73
68
|
request?: SecondParameter<typeof customInstance>;
|
|
74
69
|
},
|
|
75
70
|
) => {
|
|
@@ -83,62 +78,13 @@ export const useGetChargesQueryOptions = <
|
|
|
83
78
|
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
84
79
|
|
|
85
80
|
return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData> & {
|
|
86
|
-
queryKey:
|
|
81
|
+
queryKey: QueryKey;
|
|
87
82
|
};
|
|
88
83
|
};
|
|
89
84
|
|
|
90
85
|
export type GetChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getCharges>>>;
|
|
91
86
|
export type GetChargesQueryError = ErrorType<void | AsError>;
|
|
92
87
|
|
|
93
|
-
export function useGetCharges<
|
|
94
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
95
|
-
TError = ErrorType<void | AsError>,
|
|
96
|
-
>(
|
|
97
|
-
params: undefined | GetChargesParams,
|
|
98
|
-
options: {
|
|
99
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>> &
|
|
100
|
-
Pick<
|
|
101
|
-
DefinedInitialDataOptions<
|
|
102
|
-
Awaited<ReturnType<typeof getCharges>>,
|
|
103
|
-
TError,
|
|
104
|
-
Awaited<ReturnType<typeof getCharges>>
|
|
105
|
-
>,
|
|
106
|
-
"initialData"
|
|
107
|
-
>;
|
|
108
|
-
request?: SecondParameter<typeof customInstance>;
|
|
109
|
-
},
|
|
110
|
-
queryClient?: QueryClient,
|
|
111
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
112
|
-
export function useGetCharges<
|
|
113
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
114
|
-
TError = ErrorType<void | AsError>,
|
|
115
|
-
>(
|
|
116
|
-
params?: GetChargesParams,
|
|
117
|
-
options?: {
|
|
118
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>> &
|
|
119
|
-
Pick<
|
|
120
|
-
UndefinedInitialDataOptions<
|
|
121
|
-
Awaited<ReturnType<typeof getCharges>>,
|
|
122
|
-
TError,
|
|
123
|
-
Awaited<ReturnType<typeof getCharges>>
|
|
124
|
-
>,
|
|
125
|
-
"initialData"
|
|
126
|
-
>;
|
|
127
|
-
request?: SecondParameter<typeof customInstance>;
|
|
128
|
-
},
|
|
129
|
-
queryClient?: QueryClient,
|
|
130
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
131
|
-
export function useGetCharges<
|
|
132
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
133
|
-
TError = ErrorType<void | AsError>,
|
|
134
|
-
>(
|
|
135
|
-
params?: GetChargesParams,
|
|
136
|
-
options?: {
|
|
137
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>;
|
|
138
|
-
request?: SecondParameter<typeof customInstance>;
|
|
139
|
-
},
|
|
140
|
-
queryClient?: QueryClient,
|
|
141
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
142
88
|
/**
|
|
143
89
|
* @summary Gets charges for all Organisations
|
|
144
90
|
*/
|
|
@@ -149,16 +95,13 @@ export function useGetCharges<
|
|
|
149
95
|
>(
|
|
150
96
|
params?: GetChargesParams,
|
|
151
97
|
options?: {
|
|
152
|
-
query?:
|
|
98
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>;
|
|
153
99
|
request?: SecondParameter<typeof customInstance>;
|
|
154
100
|
},
|
|
155
|
-
|
|
156
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
101
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
157
102
|
const queryOptions = useGetChargesQueryOptions(params, options);
|
|
158
103
|
|
|
159
|
-
const query = useQuery(queryOptions
|
|
160
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
161
|
-
};
|
|
104
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
162
105
|
|
|
163
106
|
query.queryKey = queryOptions.queryKey;
|
|
164
107
|
|
|
@@ -171,7 +114,7 @@ export const useGetChargesSuspenseQueryOptions = <
|
|
|
171
114
|
>(
|
|
172
115
|
params?: GetChargesParams,
|
|
173
116
|
options?: {
|
|
174
|
-
query?:
|
|
117
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>;
|
|
175
118
|
request?: SecondParameter<typeof customInstance>;
|
|
176
119
|
},
|
|
177
120
|
) => {
|
|
@@ -188,45 +131,12 @@ export const useGetChargesSuspenseQueryOptions = <
|
|
|
188
131
|
Awaited<ReturnType<typeof getCharges>>,
|
|
189
132
|
TError,
|
|
190
133
|
TData
|
|
191
|
-
> & { queryKey:
|
|
134
|
+
> & { queryKey: QueryKey };
|
|
192
135
|
};
|
|
193
136
|
|
|
194
137
|
export type GetChargesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getCharges>>>;
|
|
195
138
|
export type GetChargesSuspenseQueryError = ErrorType<void | AsError>;
|
|
196
139
|
|
|
197
|
-
export function useGetChargesSuspense<
|
|
198
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
199
|
-
TError = ErrorType<void | AsError>,
|
|
200
|
-
>(
|
|
201
|
-
params: undefined | GetChargesParams,
|
|
202
|
-
options: {
|
|
203
|
-
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>;
|
|
204
|
-
request?: SecondParameter<typeof customInstance>;
|
|
205
|
-
},
|
|
206
|
-
queryClient?: QueryClient,
|
|
207
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
208
|
-
export function useGetChargesSuspense<
|
|
209
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
210
|
-
TError = ErrorType<void | AsError>,
|
|
211
|
-
>(
|
|
212
|
-
params?: GetChargesParams,
|
|
213
|
-
options?: {
|
|
214
|
-
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>;
|
|
215
|
-
request?: SecondParameter<typeof customInstance>;
|
|
216
|
-
},
|
|
217
|
-
queryClient?: QueryClient,
|
|
218
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
219
|
-
export function useGetChargesSuspense<
|
|
220
|
-
TData = Awaited<ReturnType<typeof getCharges>>,
|
|
221
|
-
TError = ErrorType<void | AsError>,
|
|
222
|
-
>(
|
|
223
|
-
params?: GetChargesParams,
|
|
224
|
-
options?: {
|
|
225
|
-
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>;
|
|
226
|
-
request?: SecondParameter<typeof customInstance>;
|
|
227
|
-
},
|
|
228
|
-
queryClient?: QueryClient,
|
|
229
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
230
140
|
/**
|
|
231
141
|
* @summary Gets charges for all Organisations
|
|
232
142
|
*/
|
|
@@ -237,17 +147,15 @@ export function useGetChargesSuspense<
|
|
|
237
147
|
>(
|
|
238
148
|
params?: GetChargesParams,
|
|
239
149
|
options?: {
|
|
240
|
-
query?:
|
|
150
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>;
|
|
241
151
|
request?: SecondParameter<typeof customInstance>;
|
|
242
152
|
},
|
|
243
|
-
|
|
244
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
153
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
245
154
|
const queryOptions = useGetChargesSuspenseQueryOptions(params, options);
|
|
246
155
|
|
|
247
|
-
const query = useSuspenseQuery(queryOptions
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
156
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
157
|
+
queryKey: QueryKey;
|
|
158
|
+
};
|
|
251
159
|
|
|
252
160
|
query.queryKey = queryOptions.queryKey;
|
|
253
161
|
|
|
@@ -287,9 +195,7 @@ export const useGetOrganisationChargesQueryOptions = <
|
|
|
287
195
|
orgId: string,
|
|
288
196
|
params?: GetOrganisationChargesParams,
|
|
289
197
|
options?: {
|
|
290
|
-
query?:
|
|
291
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
292
|
-
>;
|
|
198
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>;
|
|
293
199
|
request?: SecondParameter<typeof customInstance>;
|
|
294
200
|
},
|
|
295
201
|
) => {
|
|
@@ -306,7 +212,7 @@ export const useGetOrganisationChargesQueryOptions = <
|
|
|
306
212
|
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
307
213
|
TError,
|
|
308
214
|
TData
|
|
309
|
-
> & { queryKey:
|
|
215
|
+
> & { queryKey: QueryKey };
|
|
310
216
|
};
|
|
311
217
|
|
|
312
218
|
export type GetOrganisationChargesQueryResult = NonNullable<
|
|
@@ -314,64 +220,6 @@ export type GetOrganisationChargesQueryResult = NonNullable<
|
|
|
314
220
|
>;
|
|
315
221
|
export type GetOrganisationChargesQueryError = ErrorType<void | AsError>;
|
|
316
222
|
|
|
317
|
-
export function useGetOrganisationCharges<
|
|
318
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
319
|
-
TError = ErrorType<void | AsError>,
|
|
320
|
-
>(
|
|
321
|
-
orgId: string,
|
|
322
|
-
params: undefined | GetOrganisationChargesParams,
|
|
323
|
-
options: {
|
|
324
|
-
query: Partial<
|
|
325
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
326
|
-
> &
|
|
327
|
-
Pick<
|
|
328
|
-
DefinedInitialDataOptions<
|
|
329
|
-
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
330
|
-
TError,
|
|
331
|
-
Awaited<ReturnType<typeof getOrganisationCharges>>
|
|
332
|
-
>,
|
|
333
|
-
"initialData"
|
|
334
|
-
>;
|
|
335
|
-
request?: SecondParameter<typeof customInstance>;
|
|
336
|
-
},
|
|
337
|
-
queryClient?: QueryClient,
|
|
338
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
339
|
-
export function useGetOrganisationCharges<
|
|
340
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
341
|
-
TError = ErrorType<void | AsError>,
|
|
342
|
-
>(
|
|
343
|
-
orgId: string,
|
|
344
|
-
params?: GetOrganisationChargesParams,
|
|
345
|
-
options?: {
|
|
346
|
-
query?: Partial<
|
|
347
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
348
|
-
> &
|
|
349
|
-
Pick<
|
|
350
|
-
UndefinedInitialDataOptions<
|
|
351
|
-
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
352
|
-
TError,
|
|
353
|
-
Awaited<ReturnType<typeof getOrganisationCharges>>
|
|
354
|
-
>,
|
|
355
|
-
"initialData"
|
|
356
|
-
>;
|
|
357
|
-
request?: SecondParameter<typeof customInstance>;
|
|
358
|
-
},
|
|
359
|
-
queryClient?: QueryClient,
|
|
360
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
361
|
-
export function useGetOrganisationCharges<
|
|
362
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
363
|
-
TError = ErrorType<void | AsError>,
|
|
364
|
-
>(
|
|
365
|
-
orgId: string,
|
|
366
|
-
params?: GetOrganisationChargesParams,
|
|
367
|
-
options?: {
|
|
368
|
-
query?: Partial<
|
|
369
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
370
|
-
>;
|
|
371
|
-
request?: SecondParameter<typeof customInstance>;
|
|
372
|
-
},
|
|
373
|
-
queryClient?: QueryClient,
|
|
374
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
375
223
|
/**
|
|
376
224
|
* @summary Gets charges for all Units in an Organisation
|
|
377
225
|
*/
|
|
@@ -383,18 +231,13 @@ export function useGetOrganisationCharges<
|
|
|
383
231
|
orgId: string,
|
|
384
232
|
params?: GetOrganisationChargesParams,
|
|
385
233
|
options?: {
|
|
386
|
-
query?:
|
|
387
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
388
|
-
>;
|
|
234
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>;
|
|
389
235
|
request?: SecondParameter<typeof customInstance>;
|
|
390
236
|
},
|
|
391
|
-
|
|
392
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
237
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
393
238
|
const queryOptions = useGetOrganisationChargesQueryOptions(orgId, params, options);
|
|
394
239
|
|
|
395
|
-
const query = useQuery(queryOptions
|
|
396
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
397
|
-
};
|
|
240
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
398
241
|
|
|
399
242
|
query.queryKey = queryOptions.queryKey;
|
|
400
243
|
|
|
@@ -408,8 +251,10 @@ export const useGetOrganisationChargesSuspenseQueryOptions = <
|
|
|
408
251
|
orgId: string,
|
|
409
252
|
params?: GetOrganisationChargesParams,
|
|
410
253
|
options?: {
|
|
411
|
-
query?:
|
|
412
|
-
|
|
254
|
+
query?: UseSuspenseQueryOptions<
|
|
255
|
+
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
256
|
+
TError,
|
|
257
|
+
TData
|
|
413
258
|
>;
|
|
414
259
|
request?: SecondParameter<typeof customInstance>;
|
|
415
260
|
},
|
|
@@ -427,7 +272,7 @@ export const useGetOrganisationChargesSuspenseQueryOptions = <
|
|
|
427
272
|
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
428
273
|
TError,
|
|
429
274
|
TData
|
|
430
|
-
> & { queryKey:
|
|
275
|
+
> & { queryKey: QueryKey };
|
|
431
276
|
};
|
|
432
277
|
|
|
433
278
|
export type GetOrganisationChargesSuspenseQueryResult = NonNullable<
|
|
@@ -435,48 +280,6 @@ export type GetOrganisationChargesSuspenseQueryResult = NonNullable<
|
|
|
435
280
|
>;
|
|
436
281
|
export type GetOrganisationChargesSuspenseQueryError = ErrorType<void | AsError>;
|
|
437
282
|
|
|
438
|
-
export function useGetOrganisationChargesSuspense<
|
|
439
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
440
|
-
TError = ErrorType<void | AsError>,
|
|
441
|
-
>(
|
|
442
|
-
orgId: string,
|
|
443
|
-
params: undefined | GetOrganisationChargesParams,
|
|
444
|
-
options: {
|
|
445
|
-
query: Partial<
|
|
446
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
447
|
-
>;
|
|
448
|
-
request?: SecondParameter<typeof customInstance>;
|
|
449
|
-
},
|
|
450
|
-
queryClient?: QueryClient,
|
|
451
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
452
|
-
export function useGetOrganisationChargesSuspense<
|
|
453
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
454
|
-
TError = ErrorType<void | AsError>,
|
|
455
|
-
>(
|
|
456
|
-
orgId: string,
|
|
457
|
-
params?: GetOrganisationChargesParams,
|
|
458
|
-
options?: {
|
|
459
|
-
query?: Partial<
|
|
460
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
461
|
-
>;
|
|
462
|
-
request?: SecondParameter<typeof customInstance>;
|
|
463
|
-
},
|
|
464
|
-
queryClient?: QueryClient,
|
|
465
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
466
|
-
export function useGetOrganisationChargesSuspense<
|
|
467
|
-
TData = Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
468
|
-
TError = ErrorType<void | AsError>,
|
|
469
|
-
>(
|
|
470
|
-
orgId: string,
|
|
471
|
-
params?: GetOrganisationChargesParams,
|
|
472
|
-
options?: {
|
|
473
|
-
query?: Partial<
|
|
474
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>
|
|
475
|
-
>;
|
|
476
|
-
request?: SecondParameter<typeof customInstance>;
|
|
477
|
-
},
|
|
478
|
-
queryClient?: QueryClient,
|
|
479
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
480
283
|
/**
|
|
481
284
|
* @summary Gets charges for all Units in an Organisation
|
|
482
285
|
*/
|
|
@@ -488,19 +291,19 @@ export function useGetOrganisationChargesSuspense<
|
|
|
488
291
|
orgId: string,
|
|
489
292
|
params?: GetOrganisationChargesParams,
|
|
490
293
|
options?: {
|
|
491
|
-
query?:
|
|
492
|
-
|
|
294
|
+
query?: UseSuspenseQueryOptions<
|
|
295
|
+
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
296
|
+
TError,
|
|
297
|
+
TData
|
|
493
298
|
>;
|
|
494
299
|
request?: SecondParameter<typeof customInstance>;
|
|
495
300
|
},
|
|
496
|
-
|
|
497
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
301
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
498
302
|
const queryOptions = useGetOrganisationChargesSuspenseQueryOptions(orgId, params, options);
|
|
499
303
|
|
|
500
|
-
const query = useSuspenseQuery(queryOptions
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
304
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
305
|
+
queryKey: QueryKey;
|
|
306
|
+
};
|
|
504
307
|
|
|
505
308
|
query.queryKey = queryOptions.queryKey;
|
|
506
309
|
|
|
@@ -543,7 +346,7 @@ export const useGetProductChargesQueryOptions = <
|
|
|
543
346
|
productId: string,
|
|
544
347
|
params?: GetProductChargesParams,
|
|
545
348
|
options?: {
|
|
546
|
-
query?:
|
|
349
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>;
|
|
547
350
|
request?: SecondParameter<typeof customInstance>;
|
|
548
351
|
},
|
|
549
352
|
) => {
|
|
@@ -560,7 +363,7 @@ export const useGetProductChargesQueryOptions = <
|
|
|
560
363
|
Awaited<ReturnType<typeof getProductCharges>>,
|
|
561
364
|
TError,
|
|
562
365
|
TData
|
|
563
|
-
> & { queryKey:
|
|
366
|
+
> & { queryKey: QueryKey };
|
|
564
367
|
};
|
|
565
368
|
|
|
566
369
|
export type GetProductChargesQueryResult = NonNullable<
|
|
@@ -568,58 +371,6 @@ export type GetProductChargesQueryResult = NonNullable<
|
|
|
568
371
|
>;
|
|
569
372
|
export type GetProductChargesQueryError = ErrorType<AsError | void>;
|
|
570
373
|
|
|
571
|
-
export function useGetProductCharges<
|
|
572
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
573
|
-
TError = ErrorType<AsError | void>,
|
|
574
|
-
>(
|
|
575
|
-
productId: string,
|
|
576
|
-
params: undefined | GetProductChargesParams,
|
|
577
|
-
options: {
|
|
578
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>> &
|
|
579
|
-
Pick<
|
|
580
|
-
DefinedInitialDataOptions<
|
|
581
|
-
Awaited<ReturnType<typeof getProductCharges>>,
|
|
582
|
-
TError,
|
|
583
|
-
Awaited<ReturnType<typeof getProductCharges>>
|
|
584
|
-
>,
|
|
585
|
-
"initialData"
|
|
586
|
-
>;
|
|
587
|
-
request?: SecondParameter<typeof customInstance>;
|
|
588
|
-
},
|
|
589
|
-
queryClient?: QueryClient,
|
|
590
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
591
|
-
export function useGetProductCharges<
|
|
592
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
593
|
-
TError = ErrorType<AsError | void>,
|
|
594
|
-
>(
|
|
595
|
-
productId: string,
|
|
596
|
-
params?: GetProductChargesParams,
|
|
597
|
-
options?: {
|
|
598
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>> &
|
|
599
|
-
Pick<
|
|
600
|
-
UndefinedInitialDataOptions<
|
|
601
|
-
Awaited<ReturnType<typeof getProductCharges>>,
|
|
602
|
-
TError,
|
|
603
|
-
Awaited<ReturnType<typeof getProductCharges>>
|
|
604
|
-
>,
|
|
605
|
-
"initialData"
|
|
606
|
-
>;
|
|
607
|
-
request?: SecondParameter<typeof customInstance>;
|
|
608
|
-
},
|
|
609
|
-
queryClient?: QueryClient,
|
|
610
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
611
|
-
export function useGetProductCharges<
|
|
612
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
613
|
-
TError = ErrorType<AsError | void>,
|
|
614
|
-
>(
|
|
615
|
-
productId: string,
|
|
616
|
-
params?: GetProductChargesParams,
|
|
617
|
-
options?: {
|
|
618
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>;
|
|
619
|
-
request?: SecondParameter<typeof customInstance>;
|
|
620
|
-
},
|
|
621
|
-
queryClient?: QueryClient,
|
|
622
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
623
374
|
/**
|
|
624
375
|
* @summary Get charges made against a Product
|
|
625
376
|
*/
|
|
@@ -631,16 +382,13 @@ export function useGetProductCharges<
|
|
|
631
382
|
productId: string,
|
|
632
383
|
params?: GetProductChargesParams,
|
|
633
384
|
options?: {
|
|
634
|
-
query?:
|
|
385
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>;
|
|
635
386
|
request?: SecondParameter<typeof customInstance>;
|
|
636
387
|
},
|
|
637
|
-
|
|
638
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
388
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
639
389
|
const queryOptions = useGetProductChargesQueryOptions(productId, params, options);
|
|
640
390
|
|
|
641
|
-
const query = useQuery(queryOptions
|
|
642
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
643
|
-
};
|
|
391
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
644
392
|
|
|
645
393
|
query.queryKey = queryOptions.queryKey;
|
|
646
394
|
|
|
@@ -654,9 +402,7 @@ export const useGetProductChargesSuspenseQueryOptions = <
|
|
|
654
402
|
productId: string,
|
|
655
403
|
params?: GetProductChargesParams,
|
|
656
404
|
options?: {
|
|
657
|
-
query?:
|
|
658
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>
|
|
659
|
-
>;
|
|
405
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>;
|
|
660
406
|
request?: SecondParameter<typeof customInstance>;
|
|
661
407
|
},
|
|
662
408
|
) => {
|
|
@@ -673,7 +419,7 @@ export const useGetProductChargesSuspenseQueryOptions = <
|
|
|
673
419
|
Awaited<ReturnType<typeof getProductCharges>>,
|
|
674
420
|
TError,
|
|
675
421
|
TData
|
|
676
|
-
> & { queryKey:
|
|
422
|
+
> & { queryKey: QueryKey };
|
|
677
423
|
};
|
|
678
424
|
|
|
679
425
|
export type GetProductChargesSuspenseQueryResult = NonNullable<
|
|
@@ -681,48 +427,6 @@ export type GetProductChargesSuspenseQueryResult = NonNullable<
|
|
|
681
427
|
>;
|
|
682
428
|
export type GetProductChargesSuspenseQueryError = ErrorType<AsError | void>;
|
|
683
429
|
|
|
684
|
-
export function useGetProductChargesSuspense<
|
|
685
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
686
|
-
TError = ErrorType<AsError | void>,
|
|
687
|
-
>(
|
|
688
|
-
productId: string,
|
|
689
|
-
params: undefined | GetProductChargesParams,
|
|
690
|
-
options: {
|
|
691
|
-
query: Partial<
|
|
692
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>
|
|
693
|
-
>;
|
|
694
|
-
request?: SecondParameter<typeof customInstance>;
|
|
695
|
-
},
|
|
696
|
-
queryClient?: QueryClient,
|
|
697
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
698
|
-
export function useGetProductChargesSuspense<
|
|
699
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
700
|
-
TError = ErrorType<AsError | void>,
|
|
701
|
-
>(
|
|
702
|
-
productId: string,
|
|
703
|
-
params?: GetProductChargesParams,
|
|
704
|
-
options?: {
|
|
705
|
-
query?: Partial<
|
|
706
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>
|
|
707
|
-
>;
|
|
708
|
-
request?: SecondParameter<typeof customInstance>;
|
|
709
|
-
},
|
|
710
|
-
queryClient?: QueryClient,
|
|
711
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
712
|
-
export function useGetProductChargesSuspense<
|
|
713
|
-
TData = Awaited<ReturnType<typeof getProductCharges>>,
|
|
714
|
-
TError = ErrorType<AsError | void>,
|
|
715
|
-
>(
|
|
716
|
-
productId: string,
|
|
717
|
-
params?: GetProductChargesParams,
|
|
718
|
-
options?: {
|
|
719
|
-
query?: Partial<
|
|
720
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>
|
|
721
|
-
>;
|
|
722
|
-
request?: SecondParameter<typeof customInstance>;
|
|
723
|
-
},
|
|
724
|
-
queryClient?: QueryClient,
|
|
725
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
726
430
|
/**
|
|
727
431
|
* @summary Get charges made against a Product
|
|
728
432
|
*/
|
|
@@ -734,19 +438,15 @@ export function useGetProductChargesSuspense<
|
|
|
734
438
|
productId: string,
|
|
735
439
|
params?: GetProductChargesParams,
|
|
736
440
|
options?: {
|
|
737
|
-
query?:
|
|
738
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>
|
|
739
|
-
>;
|
|
441
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>;
|
|
740
442
|
request?: SecondParameter<typeof customInstance>;
|
|
741
443
|
},
|
|
742
|
-
|
|
743
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
444
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
744
445
|
const queryOptions = useGetProductChargesSuspenseQueryOptions(productId, params, options);
|
|
745
446
|
|
|
746
|
-
const query = useSuspenseQuery(queryOptions
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
447
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
448
|
+
queryKey: QueryKey;
|
|
449
|
+
};
|
|
750
450
|
|
|
751
451
|
query.queryKey = queryOptions.queryKey;
|
|
752
452
|
|
|
@@ -785,7 +485,7 @@ export const useGetUnitChargesQueryOptions = <
|
|
|
785
485
|
unitId: string,
|
|
786
486
|
params?: GetUnitChargesParams,
|
|
787
487
|
options?: {
|
|
788
|
-
query?:
|
|
488
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>;
|
|
789
489
|
request?: SecondParameter<typeof customInstance>;
|
|
790
490
|
},
|
|
791
491
|
) => {
|
|
@@ -802,64 +502,12 @@ export const useGetUnitChargesQueryOptions = <
|
|
|
802
502
|
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
803
503
|
TError,
|
|
804
504
|
TData
|
|
805
|
-
> & { queryKey:
|
|
505
|
+
> & { queryKey: QueryKey };
|
|
806
506
|
};
|
|
807
507
|
|
|
808
508
|
export type GetUnitChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getUnitCharges>>>;
|
|
809
509
|
export type GetUnitChargesQueryError = ErrorType<AsError | void>;
|
|
810
510
|
|
|
811
|
-
export function useGetUnitCharges<
|
|
812
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
813
|
-
TError = ErrorType<AsError | void>,
|
|
814
|
-
>(
|
|
815
|
-
unitId: string,
|
|
816
|
-
params: undefined | GetUnitChargesParams,
|
|
817
|
-
options: {
|
|
818
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>> &
|
|
819
|
-
Pick<
|
|
820
|
-
DefinedInitialDataOptions<
|
|
821
|
-
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
822
|
-
TError,
|
|
823
|
-
Awaited<ReturnType<typeof getUnitCharges>>
|
|
824
|
-
>,
|
|
825
|
-
"initialData"
|
|
826
|
-
>;
|
|
827
|
-
request?: SecondParameter<typeof customInstance>;
|
|
828
|
-
},
|
|
829
|
-
queryClient?: QueryClient,
|
|
830
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
831
|
-
export function useGetUnitCharges<
|
|
832
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
833
|
-
TError = ErrorType<AsError | void>,
|
|
834
|
-
>(
|
|
835
|
-
unitId: string,
|
|
836
|
-
params?: GetUnitChargesParams,
|
|
837
|
-
options?: {
|
|
838
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>> &
|
|
839
|
-
Pick<
|
|
840
|
-
UndefinedInitialDataOptions<
|
|
841
|
-
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
842
|
-
TError,
|
|
843
|
-
Awaited<ReturnType<typeof getUnitCharges>>
|
|
844
|
-
>,
|
|
845
|
-
"initialData"
|
|
846
|
-
>;
|
|
847
|
-
request?: SecondParameter<typeof customInstance>;
|
|
848
|
-
},
|
|
849
|
-
queryClient?: QueryClient,
|
|
850
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
851
|
-
export function useGetUnitCharges<
|
|
852
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
853
|
-
TError = ErrorType<AsError | void>,
|
|
854
|
-
>(
|
|
855
|
-
unitId: string,
|
|
856
|
-
params?: GetUnitChargesParams,
|
|
857
|
-
options?: {
|
|
858
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>;
|
|
859
|
-
request?: SecondParameter<typeof customInstance>;
|
|
860
|
-
},
|
|
861
|
-
queryClient?: QueryClient,
|
|
862
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
863
511
|
/**
|
|
864
512
|
* @summary Get charges made against a Unit
|
|
865
513
|
*/
|
|
@@ -871,16 +519,13 @@ export function useGetUnitCharges<
|
|
|
871
519
|
unitId: string,
|
|
872
520
|
params?: GetUnitChargesParams,
|
|
873
521
|
options?: {
|
|
874
|
-
query?:
|
|
522
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>;
|
|
875
523
|
request?: SecondParameter<typeof customInstance>;
|
|
876
524
|
},
|
|
877
|
-
|
|
878
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
525
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
879
526
|
const queryOptions = useGetUnitChargesQueryOptions(unitId, params, options);
|
|
880
527
|
|
|
881
|
-
const query = useQuery(queryOptions
|
|
882
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
883
|
-
};
|
|
528
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
884
529
|
|
|
885
530
|
query.queryKey = queryOptions.queryKey;
|
|
886
531
|
|
|
@@ -894,9 +539,7 @@ export const useGetUnitChargesSuspenseQueryOptions = <
|
|
|
894
539
|
unitId: string,
|
|
895
540
|
params?: GetUnitChargesParams,
|
|
896
541
|
options?: {
|
|
897
|
-
query?:
|
|
898
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>
|
|
899
|
-
>;
|
|
542
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>;
|
|
900
543
|
request?: SecondParameter<typeof customInstance>;
|
|
901
544
|
},
|
|
902
545
|
) => {
|
|
@@ -913,7 +556,7 @@ export const useGetUnitChargesSuspenseQueryOptions = <
|
|
|
913
556
|
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
914
557
|
TError,
|
|
915
558
|
TData
|
|
916
|
-
> & { queryKey:
|
|
559
|
+
> & { queryKey: QueryKey };
|
|
917
560
|
};
|
|
918
561
|
|
|
919
562
|
export type GetUnitChargesSuspenseQueryResult = NonNullable<
|
|
@@ -921,48 +564,6 @@ export type GetUnitChargesSuspenseQueryResult = NonNullable<
|
|
|
921
564
|
>;
|
|
922
565
|
export type GetUnitChargesSuspenseQueryError = ErrorType<AsError | void>;
|
|
923
566
|
|
|
924
|
-
export function useGetUnitChargesSuspense<
|
|
925
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
926
|
-
TError = ErrorType<AsError | void>,
|
|
927
|
-
>(
|
|
928
|
-
unitId: string,
|
|
929
|
-
params: undefined | GetUnitChargesParams,
|
|
930
|
-
options: {
|
|
931
|
-
query: Partial<
|
|
932
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>
|
|
933
|
-
>;
|
|
934
|
-
request?: SecondParameter<typeof customInstance>;
|
|
935
|
-
},
|
|
936
|
-
queryClient?: QueryClient,
|
|
937
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
938
|
-
export function useGetUnitChargesSuspense<
|
|
939
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
940
|
-
TError = ErrorType<AsError | void>,
|
|
941
|
-
>(
|
|
942
|
-
unitId: string,
|
|
943
|
-
params?: GetUnitChargesParams,
|
|
944
|
-
options?: {
|
|
945
|
-
query?: Partial<
|
|
946
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>
|
|
947
|
-
>;
|
|
948
|
-
request?: SecondParameter<typeof customInstance>;
|
|
949
|
-
},
|
|
950
|
-
queryClient?: QueryClient,
|
|
951
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
952
|
-
export function useGetUnitChargesSuspense<
|
|
953
|
-
TData = Awaited<ReturnType<typeof getUnitCharges>>,
|
|
954
|
-
TError = ErrorType<AsError | void>,
|
|
955
|
-
>(
|
|
956
|
-
unitId: string,
|
|
957
|
-
params?: GetUnitChargesParams,
|
|
958
|
-
options?: {
|
|
959
|
-
query?: Partial<
|
|
960
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>
|
|
961
|
-
>;
|
|
962
|
-
request?: SecondParameter<typeof customInstance>;
|
|
963
|
-
},
|
|
964
|
-
queryClient?: QueryClient,
|
|
965
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
966
567
|
/**
|
|
967
568
|
* @summary Get charges made against a Unit
|
|
968
569
|
*/
|
|
@@ -974,19 +575,15 @@ export function useGetUnitChargesSuspense<
|
|
|
974
575
|
unitId: string,
|
|
975
576
|
params?: GetUnitChargesParams,
|
|
976
577
|
options?: {
|
|
977
|
-
query?:
|
|
978
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>
|
|
979
|
-
>;
|
|
578
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>;
|
|
980
579
|
request?: SecondParameter<typeof customInstance>;
|
|
981
580
|
},
|
|
982
|
-
|
|
983
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
581
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
984
582
|
const queryOptions = useGetUnitChargesSuspenseQueryOptions(unitId, params, options);
|
|
985
583
|
|
|
986
|
-
const query = useSuspenseQuery(queryOptions
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
584
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
585
|
+
queryKey: QueryKey;
|
|
586
|
+
};
|
|
990
587
|
|
|
991
588
|
query.queryKey = queryOptions.queryKey;
|
|
992
589
|
|