@squonk/account-server-client 3.1.0-alpha.3 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/asset/asset.cjs +24 -24
- package/asset/asset.cjs.map +1 -1
- package/asset/asset.d.cts +137 -102
- package/asset/asset.d.ts +137 -102
- package/asset/asset.js +24 -24
- package/asset/asset.js.map +1 -1
- package/charges/charges.cjs +16 -16
- package/charges/charges.cjs.map +1 -1
- package/charges/charges.d.cts +137 -65
- package/charges/charges.d.ts +137 -65
- package/charges/charges.js +16 -16
- package/charges/charges.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/event-stream/event-stream.cjs +8 -8
- package/event-stream/event-stream.cjs.map +1 -1
- package/event-stream/event-stream.d.cts +82 -47
- package/event-stream/event-stream.d.ts +82 -47
- package/event-stream/event-stream.js +8 -8
- package/event-stream/event-stream.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +62 -14
- package/index.d.ts +62 -14
- package/index.js.map +1 -1
- package/merchant/merchant.cjs +8 -8
- package/merchant/merchant.cjs.map +1 -1
- package/merchant/merchant.d.cts +69 -33
- package/merchant/merchant.d.ts +69 -33
- package/merchant/merchant.js +8 -8
- package/merchant/merchant.js.map +1 -1
- package/organisation/organisation.cjs +14 -14
- package/organisation/organisation.cjs.map +1 -1
- package/organisation/organisation.d.cts +128 -75
- package/organisation/organisation.d.ts +128 -75
- package/organisation/organisation.js +14 -14
- package/organisation/organisation.js.map +1 -1
- package/package.json +7 -7
- package/product/product.cjs +24 -24
- package/product/product.cjs.map +1 -1
- package/product/product.d.cts +229 -122
- package/product/product.d.ts +229 -122
- package/product/product.js +24 -24
- package/product/product.js.map +1 -1
- package/src/account-server-api.schemas.ts +63 -14
- package/src/asset/asset.ts +185 -65
- package/src/charges/charges.ts +200 -18
- package/src/event-stream/event-stream.ts +114 -19
- package/src/merchant/merchant.ts +94 -10
- package/src/organisation/organisation.ts +171 -31
- package/src/product/product.ts +301 -41
- package/src/state/state.ts +50 -6
- package/src/unit/unit.ts +188 -38
- package/src/user/user.ts +183 -38
- package/state/state.cjs +4 -4
- package/state/state.cjs.map +1 -1
- package/state/state.d.cts +35 -17
- package/state/state.d.ts +35 -17
- package/state/state.js +4 -4
- package/state/state.js.map +1 -1
- package/unit/unit.cjs +12 -12
- package/unit/unit.cjs.map +1 -1
- package/unit/unit.d.cts +140 -87
- package/unit/unit.d.ts +140 -87
- package/unit/unit.js +12 -12
- package/unit/unit.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +139 -86
- package/user/user.d.ts +139 -86
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
package/src/charges/charges.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
/**
|
|
2
|
-
* Generated by orval
|
|
3
|
+
* Generated by orval v7.2.0 🍺
|
|
3
4
|
* Do not edit manually.
|
|
4
5
|
* Account Server API
|
|
5
6
|
* The Informatics Matters Account Server API.
|
|
6
7
|
|
|
7
8
|
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
9
|
|
|
9
|
-
* OpenAPI spec version:
|
|
10
|
+
* OpenAPI spec version: 4.0
|
|
10
11
|
*/
|
|
11
12
|
import {
|
|
12
13
|
useQuery,
|
|
13
14
|
useSuspenseQuery
|
|
14
15
|
} from '@tanstack/react-query'
|
|
15
16
|
import type {
|
|
17
|
+
DefinedInitialDataOptions,
|
|
18
|
+
DefinedUseQueryResult,
|
|
16
19
|
QueryFunction,
|
|
17
20
|
QueryKey,
|
|
21
|
+
UndefinedInitialDataOptions,
|
|
18
22
|
UseQueryOptions,
|
|
19
23
|
UseQueryResult,
|
|
20
24
|
UseSuspenseQueryOptions,
|
|
@@ -85,13 +89,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
85
89
|
export type GetChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getCharges>>>
|
|
86
90
|
export type GetChargesQueryError = ErrorType<void | AsError>
|
|
87
91
|
|
|
92
|
+
|
|
93
|
+
export function useGetCharges<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
94
|
+
params: undefined | GetChargesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>> & Pick<
|
|
95
|
+
DefinedInitialDataOptions<
|
|
96
|
+
Awaited<ReturnType<typeof getCharges>>,
|
|
97
|
+
TError,
|
|
98
|
+
TData
|
|
99
|
+
> , 'initialData'
|
|
100
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
101
|
+
|
|
102
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
103
|
+
export function useGetCharges<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
104
|
+
params?: GetChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>> & Pick<
|
|
105
|
+
UndefinedInitialDataOptions<
|
|
106
|
+
Awaited<ReturnType<typeof getCharges>>,
|
|
107
|
+
TError,
|
|
108
|
+
TData
|
|
109
|
+
> , 'initialData'
|
|
110
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
111
|
+
|
|
112
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
113
|
+
export function useGetCharges<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
114
|
+
params?: GetChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
115
|
+
|
|
116
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
88
117
|
/**
|
|
89
118
|
* @summary Gets charges for all Organisations
|
|
90
119
|
*/
|
|
91
|
-
|
|
120
|
+
|
|
121
|
+
export function useGetCharges<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
92
122
|
params?: GetChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
93
123
|
|
|
94
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
124
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
95
125
|
|
|
96
126
|
const queryOptions = getGetChargesQueryOptions(params,options)
|
|
97
127
|
|
|
@@ -125,13 +155,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
125
155
|
export type GetChargesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getCharges>>>
|
|
126
156
|
export type GetChargesSuspenseQueryError = ErrorType<void | AsError>
|
|
127
157
|
|
|
158
|
+
|
|
159
|
+
export function useGetChargesSuspense<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
160
|
+
params: undefined | GetChargesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
161
|
+
|
|
162
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
163
|
+
export function useGetChargesSuspense<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
164
|
+
params?: GetChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
165
|
+
|
|
166
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
167
|
+
export function useGetChargesSuspense<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
168
|
+
params?: GetChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
169
|
+
|
|
170
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
128
171
|
/**
|
|
129
172
|
* @summary Gets charges for all Organisations
|
|
130
173
|
*/
|
|
131
|
-
|
|
174
|
+
|
|
175
|
+
export function useGetChargesSuspense<TData = Awaited<ReturnType<typeof getCharges>>, TError = ErrorType<void | AsError>>(
|
|
132
176
|
params?: GetChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
133
177
|
|
|
134
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
178
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
135
179
|
|
|
136
180
|
const queryOptions = getGetChargesSuspenseQueryOptions(params,options)
|
|
137
181
|
|
|
@@ -194,14 +238,43 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
194
238
|
export type GetOrganisationChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationCharges>>>
|
|
195
239
|
export type GetOrganisationChargesQueryError = ErrorType<void | AsError>
|
|
196
240
|
|
|
241
|
+
|
|
242
|
+
export function useGetOrganisationCharges<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
243
|
+
orgId: string,
|
|
244
|
+
params: undefined | GetOrganisationChargesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>> & Pick<
|
|
245
|
+
DefinedInitialDataOptions<
|
|
246
|
+
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
247
|
+
TError,
|
|
248
|
+
TData
|
|
249
|
+
> , 'initialData'
|
|
250
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
251
|
+
|
|
252
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
253
|
+
export function useGetOrganisationCharges<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
254
|
+
orgId: string,
|
|
255
|
+
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>> & Pick<
|
|
256
|
+
UndefinedInitialDataOptions<
|
|
257
|
+
Awaited<ReturnType<typeof getOrganisationCharges>>,
|
|
258
|
+
TError,
|
|
259
|
+
TData
|
|
260
|
+
> , 'initialData'
|
|
261
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
262
|
+
|
|
263
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
264
|
+
export function useGetOrganisationCharges<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
265
|
+
orgId: string,
|
|
266
|
+
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
267
|
+
|
|
268
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
197
269
|
/**
|
|
198
270
|
* @summary Gets charges for all Units in an Organisation
|
|
199
271
|
*/
|
|
200
|
-
|
|
272
|
+
|
|
273
|
+
export function useGetOrganisationCharges<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
201
274
|
orgId: string,
|
|
202
275
|
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
203
276
|
|
|
204
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
277
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
205
278
|
|
|
206
279
|
const queryOptions = getGetOrganisationChargesQueryOptions(orgId,params,options)
|
|
207
280
|
|
|
@@ -236,14 +309,31 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
236
309
|
export type GetOrganisationChargesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisationCharges>>>
|
|
237
310
|
export type GetOrganisationChargesSuspenseQueryError = ErrorType<void | AsError>
|
|
238
311
|
|
|
312
|
+
|
|
313
|
+
export function useGetOrganisationChargesSuspense<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
314
|
+
orgId: string,
|
|
315
|
+
params: undefined | GetOrganisationChargesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
316
|
+
|
|
317
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
318
|
+
export function useGetOrganisationChargesSuspense<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
319
|
+
orgId: string,
|
|
320
|
+
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
321
|
+
|
|
322
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
323
|
+
export function useGetOrganisationChargesSuspense<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
324
|
+
orgId: string,
|
|
325
|
+
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
326
|
+
|
|
327
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
239
328
|
/**
|
|
240
329
|
* @summary Gets charges for all Units in an Organisation
|
|
241
330
|
*/
|
|
242
|
-
|
|
331
|
+
|
|
332
|
+
export function useGetOrganisationChargesSuspense<TData = Awaited<ReturnType<typeof getOrganisationCharges>>, TError = ErrorType<void | AsError>>(
|
|
243
333
|
orgId: string,
|
|
244
334
|
params?: GetOrganisationChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
245
335
|
|
|
246
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
336
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
247
337
|
|
|
248
338
|
const queryOptions = getGetOrganisationChargesSuspenseQueryOptions(orgId,params,options)
|
|
249
339
|
|
|
@@ -309,14 +399,43 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
309
399
|
export type GetProductChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getProductCharges>>>
|
|
310
400
|
export type GetProductChargesQueryError = ErrorType<AsError | void>
|
|
311
401
|
|
|
402
|
+
|
|
403
|
+
export function useGetProductCharges<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
404
|
+
productId: string,
|
|
405
|
+
params: undefined | GetProductChargesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>> & Pick<
|
|
406
|
+
DefinedInitialDataOptions<
|
|
407
|
+
Awaited<ReturnType<typeof getProductCharges>>,
|
|
408
|
+
TError,
|
|
409
|
+
TData
|
|
410
|
+
> , 'initialData'
|
|
411
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
412
|
+
|
|
413
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
414
|
+
export function useGetProductCharges<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
415
|
+
productId: string,
|
|
416
|
+
params?: GetProductChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>> & Pick<
|
|
417
|
+
UndefinedInitialDataOptions<
|
|
418
|
+
Awaited<ReturnType<typeof getProductCharges>>,
|
|
419
|
+
TError,
|
|
420
|
+
TData
|
|
421
|
+
> , 'initialData'
|
|
422
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
423
|
+
|
|
424
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
425
|
+
export function useGetProductCharges<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
426
|
+
productId: string,
|
|
427
|
+
params?: GetProductChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
428
|
+
|
|
429
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
312
430
|
/**
|
|
313
431
|
* @summary Get charges made against a Product
|
|
314
432
|
*/
|
|
315
|
-
|
|
433
|
+
|
|
434
|
+
export function useGetProductCharges<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
316
435
|
productId: string,
|
|
317
436
|
params?: GetProductChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
318
437
|
|
|
319
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
438
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
320
439
|
|
|
321
440
|
const queryOptions = getGetProductChargesQueryOptions(productId,params,options)
|
|
322
441
|
|
|
@@ -351,14 +470,31 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
351
470
|
export type GetProductChargesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductCharges>>>
|
|
352
471
|
export type GetProductChargesSuspenseQueryError = ErrorType<AsError | void>
|
|
353
472
|
|
|
473
|
+
|
|
474
|
+
export function useGetProductChargesSuspense<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
475
|
+
productId: string,
|
|
476
|
+
params: undefined | GetProductChargesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
477
|
+
|
|
478
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
479
|
+
export function useGetProductChargesSuspense<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
480
|
+
productId: string,
|
|
481
|
+
params?: GetProductChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
482
|
+
|
|
483
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
484
|
+
export function useGetProductChargesSuspense<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
485
|
+
productId: string,
|
|
486
|
+
params?: GetProductChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
487
|
+
|
|
488
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
354
489
|
/**
|
|
355
490
|
* @summary Get charges made against a Product
|
|
356
491
|
*/
|
|
357
|
-
|
|
492
|
+
|
|
493
|
+
export function useGetProductChargesSuspense<TData = Awaited<ReturnType<typeof getProductCharges>>, TError = ErrorType<AsError | void>>(
|
|
358
494
|
productId: string,
|
|
359
495
|
params?: GetProductChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
360
496
|
|
|
361
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
497
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
362
498
|
|
|
363
499
|
const queryOptions = getGetProductChargesSuspenseQueryOptions(productId,params,options)
|
|
364
500
|
|
|
@@ -423,14 +559,43 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
423
559
|
export type GetUnitChargesQueryResult = NonNullable<Awaited<ReturnType<typeof getUnitCharges>>>
|
|
424
560
|
export type GetUnitChargesQueryError = ErrorType<AsError | void>
|
|
425
561
|
|
|
562
|
+
|
|
563
|
+
export function useGetUnitCharges<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
564
|
+
unitId: string,
|
|
565
|
+
params: undefined | GetUnitChargesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>> & Pick<
|
|
566
|
+
DefinedInitialDataOptions<
|
|
567
|
+
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
568
|
+
TError,
|
|
569
|
+
TData
|
|
570
|
+
> , 'initialData'
|
|
571
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
572
|
+
|
|
573
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
574
|
+
export function useGetUnitCharges<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
575
|
+
unitId: string,
|
|
576
|
+
params?: GetUnitChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>> & Pick<
|
|
577
|
+
UndefinedInitialDataOptions<
|
|
578
|
+
Awaited<ReturnType<typeof getUnitCharges>>,
|
|
579
|
+
TError,
|
|
580
|
+
TData
|
|
581
|
+
> , 'initialData'
|
|
582
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
583
|
+
|
|
584
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
585
|
+
export function useGetUnitCharges<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
586
|
+
unitId: string,
|
|
587
|
+
params?: GetUnitChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
588
|
+
|
|
589
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
426
590
|
/**
|
|
427
591
|
* @summary Get charges made against a Unit
|
|
428
592
|
*/
|
|
429
|
-
|
|
593
|
+
|
|
594
|
+
export function useGetUnitCharges<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
430
595
|
unitId: string,
|
|
431
596
|
params?: GetUnitChargesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
432
597
|
|
|
433
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
598
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
434
599
|
|
|
435
600
|
const queryOptions = getGetUnitChargesQueryOptions(unitId,params,options)
|
|
436
601
|
|
|
@@ -465,14 +630,31 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
465
630
|
export type GetUnitChargesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUnitCharges>>>
|
|
466
631
|
export type GetUnitChargesSuspenseQueryError = ErrorType<AsError | void>
|
|
467
632
|
|
|
633
|
+
|
|
634
|
+
export function useGetUnitChargesSuspense<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
635
|
+
unitId: string,
|
|
636
|
+
params: undefined | GetUnitChargesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
637
|
+
|
|
638
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
639
|
+
export function useGetUnitChargesSuspense<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
640
|
+
unitId: string,
|
|
641
|
+
params?: GetUnitChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
642
|
+
|
|
643
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
644
|
+
export function useGetUnitChargesSuspense<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
645
|
+
unitId: string,
|
|
646
|
+
params?: GetUnitChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
647
|
+
|
|
648
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
468
649
|
/**
|
|
469
650
|
* @summary Get charges made against a Unit
|
|
470
651
|
*/
|
|
471
|
-
|
|
652
|
+
|
|
653
|
+
export function useGetUnitChargesSuspense<TData = Awaited<ReturnType<typeof getUnitCharges>>, TError = ErrorType<AsError | void>>(
|
|
472
654
|
unitId: string,
|
|
473
655
|
params?: GetUnitChargesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUnitCharges>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
474
656
|
|
|
475
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
657
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
476
658
|
|
|
477
659
|
const queryOptions = getGetUnitChargesSuspenseQueryOptions(unitId,params,options)
|
|
478
660
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
/**
|
|
2
|
-
* Generated by orval
|
|
3
|
+
* Generated by orval v7.2.0 🍺
|
|
3
4
|
* Do not edit manually.
|
|
4
5
|
* Account Server API
|
|
5
6
|
* The Informatics Matters Account Server API.
|
|
6
7
|
|
|
7
8
|
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
8
9
|
|
|
9
|
-
* OpenAPI spec version:
|
|
10
|
+
* OpenAPI spec version: 4.0
|
|
10
11
|
*/
|
|
11
12
|
import {
|
|
12
13
|
useMutation,
|
|
@@ -14,10 +15,14 @@ import {
|
|
|
14
15
|
useSuspenseQuery
|
|
15
16
|
} from '@tanstack/react-query'
|
|
16
17
|
import type {
|
|
18
|
+
DefinedInitialDataOptions,
|
|
19
|
+
DefinedUseQueryResult,
|
|
17
20
|
MutationFunction,
|
|
18
21
|
QueryFunction,
|
|
19
22
|
QueryKey,
|
|
23
|
+
UndefinedInitialDataOptions,
|
|
20
24
|
UseMutationOptions,
|
|
25
|
+
UseMutationResult,
|
|
21
26
|
UseQueryOptions,
|
|
22
27
|
UseQueryResult,
|
|
23
28
|
UseSuspenseQueryOptions,
|
|
@@ -78,13 +83,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
78
83
|
export type GetEventStreamQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>
|
|
79
84
|
export type GetEventStreamQueryError = ErrorType<void | AsError>
|
|
80
85
|
|
|
86
|
+
|
|
87
|
+
export function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
88
|
+
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<
|
|
89
|
+
DefinedInitialDataOptions<
|
|
90
|
+
Awaited<ReturnType<typeof getEventStream>>,
|
|
91
|
+
TError,
|
|
92
|
+
TData
|
|
93
|
+
> , 'initialData'
|
|
94
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
95
|
+
|
|
96
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
97
|
+
export function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
98
|
+
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<
|
|
99
|
+
UndefinedInitialDataOptions<
|
|
100
|
+
Awaited<ReturnType<typeof getEventStream>>,
|
|
101
|
+
TError,
|
|
102
|
+
TData
|
|
103
|
+
> , 'initialData'
|
|
104
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
105
|
+
|
|
106
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
107
|
+
export function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
108
|
+
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
109
|
+
|
|
110
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
81
111
|
/**
|
|
82
112
|
* @summary Gets the details of your EventStream
|
|
83
113
|
*/
|
|
84
|
-
|
|
114
|
+
|
|
115
|
+
export function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
85
116
|
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
86
117
|
|
|
87
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
118
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
88
119
|
|
|
89
120
|
const queryOptions = getGetEventStreamQueryOptions(options)
|
|
90
121
|
|
|
@@ -118,13 +149,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
118
149
|
export type GetEventStreamSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>
|
|
119
150
|
export type GetEventStreamSuspenseQueryError = ErrorType<void | AsError>
|
|
120
151
|
|
|
152
|
+
|
|
153
|
+
export function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
154
|
+
options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
155
|
+
|
|
156
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
157
|
+
export function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
158
|
+
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
159
|
+
|
|
160
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
161
|
+
export function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
162
|
+
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
163
|
+
|
|
164
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
121
165
|
/**
|
|
122
166
|
* @summary Gets the details of your EventStream
|
|
123
167
|
*/
|
|
124
|
-
|
|
168
|
+
|
|
169
|
+
export function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(
|
|
125
170
|
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
126
171
|
|
|
127
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
172
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
128
173
|
|
|
129
174
|
const queryOptions = getGetEventStreamSuspenseQueryOptions(options)
|
|
130
175
|
|
|
@@ -160,7 +205,7 @@ export const createEventStream = (
|
|
|
160
205
|
export const getCreateEventStreamMutationOptions = <TError = ErrorType<AsError | void>,
|
|
161
206
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError,void, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
162
207
|
): UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError,void, TContext> => {
|
|
163
|
-
|
|
208
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
164
209
|
|
|
165
210
|
|
|
166
211
|
|
|
@@ -174,7 +219,7 @@ export const getCreateEventStreamMutationOptions = <TError = ErrorType<AsError |
|
|
|
174
219
|
|
|
175
220
|
|
|
176
221
|
|
|
177
|
-
|
|
222
|
+
return { mutationFn, ...mutationOptions }}
|
|
178
223
|
|
|
179
224
|
export type CreateEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof createEventStream>>>
|
|
180
225
|
|
|
@@ -185,7 +230,12 @@ export const getCreateEventStreamMutationOptions = <TError = ErrorType<AsError |
|
|
|
185
230
|
*/
|
|
186
231
|
export const useCreateEventStream = <TError = ErrorType<AsError | void>,
|
|
187
232
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError,void, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
188
|
-
)
|
|
233
|
+
): UseMutationResult<
|
|
234
|
+
Awaited<ReturnType<typeof createEventStream>>,
|
|
235
|
+
TError,
|
|
236
|
+
void,
|
|
237
|
+
TContext
|
|
238
|
+
> => {
|
|
189
239
|
|
|
190
240
|
const mutationOptions = getCreateEventStreamMutationOptions(options);
|
|
191
241
|
|
|
@@ -237,13 +287,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
237
287
|
export type GetEventStreamEventsQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStreamEvents>>>
|
|
238
288
|
export type GetEventStreamEventsQueryError = ErrorType<void | AsError>
|
|
239
289
|
|
|
290
|
+
|
|
291
|
+
export function useGetEventStreamEvents<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
292
|
+
eventStreamId: number, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>> & Pick<
|
|
293
|
+
DefinedInitialDataOptions<
|
|
294
|
+
Awaited<ReturnType<typeof getEventStreamEvents>>,
|
|
295
|
+
TError,
|
|
296
|
+
TData
|
|
297
|
+
> , 'initialData'
|
|
298
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
299
|
+
|
|
300
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
301
|
+
export function useGetEventStreamEvents<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
302
|
+
eventStreamId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>> & Pick<
|
|
303
|
+
UndefinedInitialDataOptions<
|
|
304
|
+
Awaited<ReturnType<typeof getEventStreamEvents>>,
|
|
305
|
+
TError,
|
|
306
|
+
TData
|
|
307
|
+
> , 'initialData'
|
|
308
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
309
|
+
|
|
310
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
311
|
+
export function useGetEventStreamEvents<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
312
|
+
eventStreamId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
313
|
+
|
|
314
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
240
315
|
/**
|
|
241
316
|
* @summary Subscribe to Server-Sent Events events from an EventStream
|
|
242
317
|
*/
|
|
243
|
-
|
|
318
|
+
|
|
319
|
+
export function useGetEventStreamEvents<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
244
320
|
eventStreamId: number, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
245
321
|
|
|
246
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
322
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
247
323
|
|
|
248
324
|
const queryOptions = getGetEventStreamEventsQueryOptions(eventStreamId,options)
|
|
249
325
|
|
|
@@ -277,13 +353,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
277
353
|
export type GetEventStreamEventsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStreamEvents>>>
|
|
278
354
|
export type GetEventStreamEventsSuspenseQueryError = ErrorType<void | AsError>
|
|
279
355
|
|
|
356
|
+
|
|
357
|
+
export function useGetEventStreamEventsSuspense<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
358
|
+
eventStreamId: number, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
359
|
+
|
|
360
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
361
|
+
export function useGetEventStreamEventsSuspense<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
362
|
+
eventStreamId: number, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
363
|
+
|
|
364
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
365
|
+
export function useGetEventStreamEventsSuspense<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
366
|
+
eventStreamId: number, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
367
|
+
|
|
368
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
280
369
|
/**
|
|
281
370
|
* @summary Subscribe to Server-Sent Events events from an EventStream
|
|
282
371
|
*/
|
|
283
|
-
|
|
372
|
+
|
|
373
|
+
export function useGetEventStreamEventsSuspense<TData = Awaited<ReturnType<typeof getEventStreamEvents>>, TError = ErrorType<void | AsError>>(
|
|
284
374
|
eventStreamId: number, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamEvents>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
285
375
|
|
|
286
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
376
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
287
377
|
|
|
288
378
|
const queryOptions = getGetEventStreamEventsSuspenseQueryOptions(eventStreamId,options)
|
|
289
379
|
|
|
@@ -316,10 +406,10 @@ export const deleteEventStream = (
|
|
|
316
406
|
|
|
317
407
|
|
|
318
408
|
|
|
319
|
-
export const getDeleteEventStreamMutationOptions = <TError = ErrorType<AsError>,
|
|
409
|
+
export const getDeleteEventStreamMutationOptions = <TError = ErrorType<void | AsError>,
|
|
320
410
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError,{eventStreamId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
321
411
|
): UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError,{eventStreamId: number}, TContext> => {
|
|
322
|
-
|
|
412
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
323
413
|
|
|
324
414
|
|
|
325
415
|
|
|
@@ -333,18 +423,23 @@ export const getDeleteEventStreamMutationOptions = <TError = ErrorType<AsError>,
|
|
|
333
423
|
|
|
334
424
|
|
|
335
425
|
|
|
336
|
-
|
|
426
|
+
return { mutationFn, ...mutationOptions }}
|
|
337
427
|
|
|
338
428
|
export type DeleteEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof deleteEventStream>>>
|
|
339
429
|
|
|
340
|
-
export type DeleteEventStreamMutationError = ErrorType<AsError>
|
|
430
|
+
export type DeleteEventStreamMutationError = ErrorType<void | AsError>
|
|
341
431
|
|
|
342
432
|
/**
|
|
343
433
|
* @summary Deletes an existing EventStream (that you created)
|
|
344
434
|
*/
|
|
345
|
-
export const useDeleteEventStream = <TError = ErrorType<AsError>,
|
|
435
|
+
export const useDeleteEventStream = <TError = ErrorType<void | AsError>,
|
|
346
436
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError,{eventStreamId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
347
|
-
)
|
|
437
|
+
): UseMutationResult<
|
|
438
|
+
Awaited<ReturnType<typeof deleteEventStream>>,
|
|
439
|
+
TError,
|
|
440
|
+
{eventStreamId: number},
|
|
441
|
+
TContext
|
|
442
|
+
> => {
|
|
348
443
|
|
|
349
444
|
const mutationOptions = getDeleteEventStreamMutationOptions(options);
|
|
350
445
|
|