@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
package/src/api/user/user.ts
CHANGED
|
@@ -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,14 +10,9 @@ A service that provides access to the Account Server, which gives *registered* u
|
|
|
10
10
|
*/
|
|
11
11
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
13
|
-
DataTag,
|
|
14
|
-
DefinedInitialDataOptions,
|
|
15
|
-
DefinedUseQueryResult,
|
|
16
13
|
MutationFunction,
|
|
17
|
-
QueryClient,
|
|
18
14
|
QueryFunction,
|
|
19
15
|
QueryKey,
|
|
20
|
-
UndefinedInitialDataOptions,
|
|
21
16
|
UseMutationOptions,
|
|
22
17
|
UseMutationResult,
|
|
23
18
|
UseQueryOptions,
|
|
@@ -58,7 +53,7 @@ export const useGetUserAccountQueryOptions = <
|
|
|
58
53
|
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
59
54
|
TError = ErrorType<void | AsError>,
|
|
60
55
|
>(options?: {
|
|
61
|
-
query?:
|
|
56
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
62
57
|
request?: SecondParameter<typeof customInstance>;
|
|
63
58
|
}) => {
|
|
64
59
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
@@ -74,58 +69,12 @@ export const useGetUserAccountQueryOptions = <
|
|
|
74
69
|
Awaited<ReturnType<typeof getUserAccount>>,
|
|
75
70
|
TError,
|
|
76
71
|
TData
|
|
77
|
-
> & { queryKey:
|
|
72
|
+
> & { queryKey: QueryKey };
|
|
78
73
|
};
|
|
79
74
|
|
|
80
75
|
export type GetUserAccountQueryResult = NonNullable<Awaited<ReturnType<typeof getUserAccount>>>;
|
|
81
76
|
export type GetUserAccountQueryError = ErrorType<void | AsError>;
|
|
82
77
|
|
|
83
|
-
export function useGetUserAccount<
|
|
84
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
85
|
-
TError = ErrorType<void | AsError>,
|
|
86
|
-
>(
|
|
87
|
-
options: {
|
|
88
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &
|
|
89
|
-
Pick<
|
|
90
|
-
DefinedInitialDataOptions<
|
|
91
|
-
Awaited<ReturnType<typeof getUserAccount>>,
|
|
92
|
-
TError,
|
|
93
|
-
Awaited<ReturnType<typeof getUserAccount>>
|
|
94
|
-
>,
|
|
95
|
-
"initialData"
|
|
96
|
-
>;
|
|
97
|
-
request?: SecondParameter<typeof customInstance>;
|
|
98
|
-
},
|
|
99
|
-
queryClient?: QueryClient,
|
|
100
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
101
|
-
export function useGetUserAccount<
|
|
102
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
103
|
-
TError = ErrorType<void | AsError>,
|
|
104
|
-
>(
|
|
105
|
-
options?: {
|
|
106
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>> &
|
|
107
|
-
Pick<
|
|
108
|
-
UndefinedInitialDataOptions<
|
|
109
|
-
Awaited<ReturnType<typeof getUserAccount>>,
|
|
110
|
-
TError,
|
|
111
|
-
Awaited<ReturnType<typeof getUserAccount>>
|
|
112
|
-
>,
|
|
113
|
-
"initialData"
|
|
114
|
-
>;
|
|
115
|
-
request?: SecondParameter<typeof customInstance>;
|
|
116
|
-
},
|
|
117
|
-
queryClient?: QueryClient,
|
|
118
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
119
|
-
export function useGetUserAccount<
|
|
120
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
121
|
-
TError = ErrorType<void | AsError>,
|
|
122
|
-
>(
|
|
123
|
-
options?: {
|
|
124
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>>;
|
|
125
|
-
request?: SecondParameter<typeof customInstance>;
|
|
126
|
-
},
|
|
127
|
-
queryClient?: QueryClient,
|
|
128
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
129
78
|
/**
|
|
130
79
|
* @summary Get information about your account
|
|
131
80
|
*/
|
|
@@ -133,18 +82,13 @@ export function useGetUserAccount<
|
|
|
133
82
|
export function useGetUserAccount<
|
|
134
83
|
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
135
84
|
TError = ErrorType<void | AsError>,
|
|
136
|
-
>(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
queryClient?: QueryClient,
|
|
142
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
85
|
+
>(options?: {
|
|
86
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
87
|
+
request?: SecondParameter<typeof customInstance>;
|
|
88
|
+
}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
143
89
|
const queryOptions = useGetUserAccountQueryOptions(options);
|
|
144
90
|
|
|
145
|
-
const query = useQuery(queryOptions
|
|
146
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
147
|
-
};
|
|
91
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
148
92
|
|
|
149
93
|
query.queryKey = queryOptions.queryKey;
|
|
150
94
|
|
|
@@ -155,9 +99,7 @@ export const useGetUserAccountSuspenseQueryOptions = <
|
|
|
155
99
|
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
156
100
|
TError = ErrorType<void | AsError>,
|
|
157
101
|
>(options?: {
|
|
158
|
-
query?:
|
|
159
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>
|
|
160
|
-
>;
|
|
102
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
161
103
|
request?: SecondParameter<typeof customInstance>;
|
|
162
104
|
}) => {
|
|
163
105
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
@@ -173,7 +115,7 @@ export const useGetUserAccountSuspenseQueryOptions = <
|
|
|
173
115
|
Awaited<ReturnType<typeof getUserAccount>>,
|
|
174
116
|
TError,
|
|
175
117
|
TData
|
|
176
|
-
> & { queryKey:
|
|
118
|
+
> & { queryKey: QueryKey };
|
|
177
119
|
};
|
|
178
120
|
|
|
179
121
|
export type GetUserAccountSuspenseQueryResult = NonNullable<
|
|
@@ -181,42 +123,6 @@ export type GetUserAccountSuspenseQueryResult = NonNullable<
|
|
|
181
123
|
>;
|
|
182
124
|
export type GetUserAccountSuspenseQueryError = ErrorType<void | AsError>;
|
|
183
125
|
|
|
184
|
-
export function useGetUserAccountSuspense<
|
|
185
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
186
|
-
TError = ErrorType<void | AsError>,
|
|
187
|
-
>(
|
|
188
|
-
options: {
|
|
189
|
-
query: Partial<
|
|
190
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>
|
|
191
|
-
>;
|
|
192
|
-
request?: SecondParameter<typeof customInstance>;
|
|
193
|
-
},
|
|
194
|
-
queryClient?: QueryClient,
|
|
195
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
196
|
-
export function useGetUserAccountSuspense<
|
|
197
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
198
|
-
TError = ErrorType<void | AsError>,
|
|
199
|
-
>(
|
|
200
|
-
options?: {
|
|
201
|
-
query?: Partial<
|
|
202
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>
|
|
203
|
-
>;
|
|
204
|
-
request?: SecondParameter<typeof customInstance>;
|
|
205
|
-
},
|
|
206
|
-
queryClient?: QueryClient,
|
|
207
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
208
|
-
export function useGetUserAccountSuspense<
|
|
209
|
-
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
210
|
-
TError = ErrorType<void | AsError>,
|
|
211
|
-
>(
|
|
212
|
-
options?: {
|
|
213
|
-
query?: Partial<
|
|
214
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>
|
|
215
|
-
>;
|
|
216
|
-
request?: SecondParameter<typeof customInstance>;
|
|
217
|
-
},
|
|
218
|
-
queryClient?: QueryClient,
|
|
219
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
220
126
|
/**
|
|
221
127
|
* @summary Get information about your account
|
|
222
128
|
*/
|
|
@@ -224,21 +130,15 @@ export function useGetUserAccountSuspense<
|
|
|
224
130
|
export function useGetUserAccountSuspense<
|
|
225
131
|
TData = Awaited<ReturnType<typeof getUserAccount>>,
|
|
226
132
|
TError = ErrorType<void | AsError>,
|
|
227
|
-
>(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
>;
|
|
232
|
-
request?: SecondParameter<typeof customInstance>;
|
|
233
|
-
},
|
|
234
|
-
queryClient?: QueryClient,
|
|
235
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
133
|
+
>(options?: {
|
|
134
|
+
query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserAccount>>, TError, TData>;
|
|
135
|
+
request?: SecondParameter<typeof customInstance>;
|
|
136
|
+
}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
236
137
|
const queryOptions = useGetUserAccountSuspenseQueryOptions(options);
|
|
237
138
|
|
|
238
|
-
const query = useSuspenseQuery(queryOptions
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
139
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
140
|
+
queryKey: QueryKey;
|
|
141
|
+
};
|
|
242
142
|
|
|
243
143
|
query.queryKey = queryOptions.queryKey;
|
|
244
144
|
|
|
@@ -275,9 +175,7 @@ export const useGetOrganisationUsersQueryOptions = <
|
|
|
275
175
|
>(
|
|
276
176
|
orgId: string,
|
|
277
177
|
options?: {
|
|
278
|
-
query?:
|
|
279
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
280
|
-
>;
|
|
178
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>;
|
|
281
179
|
request?: SecondParameter<typeof customInstance>;
|
|
282
180
|
},
|
|
283
181
|
) => {
|
|
@@ -294,7 +192,7 @@ export const useGetOrganisationUsersQueryOptions = <
|
|
|
294
192
|
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
295
193
|
TError,
|
|
296
194
|
TData
|
|
297
|
-
> & { queryKey:
|
|
195
|
+
> & { queryKey: QueryKey };
|
|
298
196
|
};
|
|
299
197
|
|
|
300
198
|
export type GetOrganisationUsersQueryResult = NonNullable<
|
|
@@ -302,61 +200,6 @@ export type GetOrganisationUsersQueryResult = NonNullable<
|
|
|
302
200
|
>;
|
|
303
201
|
export type GetOrganisationUsersQueryError = ErrorType<AsError | void>;
|
|
304
202
|
|
|
305
|
-
export function useGetOrganisationUsers<
|
|
306
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
307
|
-
TError = ErrorType<AsError | void>,
|
|
308
|
-
>(
|
|
309
|
-
orgId: string,
|
|
310
|
-
options: {
|
|
311
|
-
query: Partial<
|
|
312
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
313
|
-
> &
|
|
314
|
-
Pick<
|
|
315
|
-
DefinedInitialDataOptions<
|
|
316
|
-
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
317
|
-
TError,
|
|
318
|
-
Awaited<ReturnType<typeof getOrganisationUsers>>
|
|
319
|
-
>,
|
|
320
|
-
"initialData"
|
|
321
|
-
>;
|
|
322
|
-
request?: SecondParameter<typeof customInstance>;
|
|
323
|
-
},
|
|
324
|
-
queryClient?: QueryClient,
|
|
325
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
326
|
-
export function useGetOrganisationUsers<
|
|
327
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
328
|
-
TError = ErrorType<AsError | void>,
|
|
329
|
-
>(
|
|
330
|
-
orgId: string,
|
|
331
|
-
options?: {
|
|
332
|
-
query?: Partial<
|
|
333
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
334
|
-
> &
|
|
335
|
-
Pick<
|
|
336
|
-
UndefinedInitialDataOptions<
|
|
337
|
-
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
338
|
-
TError,
|
|
339
|
-
Awaited<ReturnType<typeof getOrganisationUsers>>
|
|
340
|
-
>,
|
|
341
|
-
"initialData"
|
|
342
|
-
>;
|
|
343
|
-
request?: SecondParameter<typeof customInstance>;
|
|
344
|
-
},
|
|
345
|
-
queryClient?: QueryClient,
|
|
346
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
347
|
-
export function useGetOrganisationUsers<
|
|
348
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
349
|
-
TError = ErrorType<AsError | void>,
|
|
350
|
-
>(
|
|
351
|
-
orgId: string,
|
|
352
|
-
options?: {
|
|
353
|
-
query?: Partial<
|
|
354
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
355
|
-
>;
|
|
356
|
-
request?: SecondParameter<typeof customInstance>;
|
|
357
|
-
},
|
|
358
|
-
queryClient?: QueryClient,
|
|
359
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
360
203
|
/**
|
|
361
204
|
* @summary Gets users in an Organisation
|
|
362
205
|
*/
|
|
@@ -367,18 +210,13 @@ export function useGetOrganisationUsers<
|
|
|
367
210
|
>(
|
|
368
211
|
orgId: string,
|
|
369
212
|
options?: {
|
|
370
|
-
query?:
|
|
371
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
372
|
-
>;
|
|
213
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>;
|
|
373
214
|
request?: SecondParameter<typeof customInstance>;
|
|
374
215
|
},
|
|
375
|
-
|
|
376
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
216
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
377
217
|
const queryOptions = useGetOrganisationUsersQueryOptions(orgId, options);
|
|
378
218
|
|
|
379
|
-
const query = useQuery(queryOptions
|
|
380
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
381
|
-
};
|
|
219
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
382
220
|
|
|
383
221
|
query.queryKey = queryOptions.queryKey;
|
|
384
222
|
|
|
@@ -391,8 +229,10 @@ export const useGetOrganisationUsersSuspenseQueryOptions = <
|
|
|
391
229
|
>(
|
|
392
230
|
orgId: string,
|
|
393
231
|
options?: {
|
|
394
|
-
query?:
|
|
395
|
-
|
|
232
|
+
query?: UseSuspenseQueryOptions<
|
|
233
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
234
|
+
TError,
|
|
235
|
+
TData
|
|
396
236
|
>;
|
|
397
237
|
request?: SecondParameter<typeof customInstance>;
|
|
398
238
|
},
|
|
@@ -410,7 +250,7 @@ export const useGetOrganisationUsersSuspenseQueryOptions = <
|
|
|
410
250
|
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
411
251
|
TError,
|
|
412
252
|
TData
|
|
413
|
-
> & { queryKey:
|
|
253
|
+
> & { queryKey: QueryKey };
|
|
414
254
|
};
|
|
415
255
|
|
|
416
256
|
export type GetOrganisationUsersSuspenseQueryResult = NonNullable<
|
|
@@ -418,45 +258,6 @@ export type GetOrganisationUsersSuspenseQueryResult = NonNullable<
|
|
|
418
258
|
>;
|
|
419
259
|
export type GetOrganisationUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
420
260
|
|
|
421
|
-
export function useGetOrganisationUsersSuspense<
|
|
422
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
423
|
-
TError = ErrorType<AsError | void>,
|
|
424
|
-
>(
|
|
425
|
-
orgId: string,
|
|
426
|
-
options: {
|
|
427
|
-
query: Partial<
|
|
428
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
429
|
-
>;
|
|
430
|
-
request?: SecondParameter<typeof customInstance>;
|
|
431
|
-
},
|
|
432
|
-
queryClient?: QueryClient,
|
|
433
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
434
|
-
export function useGetOrganisationUsersSuspense<
|
|
435
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
436
|
-
TError = ErrorType<AsError | void>,
|
|
437
|
-
>(
|
|
438
|
-
orgId: string,
|
|
439
|
-
options?: {
|
|
440
|
-
query?: Partial<
|
|
441
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
442
|
-
>;
|
|
443
|
-
request?: SecondParameter<typeof customInstance>;
|
|
444
|
-
},
|
|
445
|
-
queryClient?: QueryClient,
|
|
446
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
447
|
-
export function useGetOrganisationUsersSuspense<
|
|
448
|
-
TData = Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
449
|
-
TError = ErrorType<AsError | void>,
|
|
450
|
-
>(
|
|
451
|
-
orgId: string,
|
|
452
|
-
options?: {
|
|
453
|
-
query?: Partial<
|
|
454
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUsers>>, TError, TData>
|
|
455
|
-
>;
|
|
456
|
-
request?: SecondParameter<typeof customInstance>;
|
|
457
|
-
},
|
|
458
|
-
queryClient?: QueryClient,
|
|
459
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
460
261
|
/**
|
|
461
262
|
* @summary Gets users in an Organisation
|
|
462
263
|
*/
|
|
@@ -467,19 +268,19 @@ export function useGetOrganisationUsersSuspense<
|
|
|
467
268
|
>(
|
|
468
269
|
orgId: string,
|
|
469
270
|
options?: {
|
|
470
|
-
query?:
|
|
471
|
-
|
|
271
|
+
query?: UseSuspenseQueryOptions<
|
|
272
|
+
Awaited<ReturnType<typeof getOrganisationUsers>>,
|
|
273
|
+
TError,
|
|
274
|
+
TData
|
|
472
275
|
>;
|
|
473
276
|
request?: SecondParameter<typeof customInstance>;
|
|
474
277
|
},
|
|
475
|
-
|
|
476
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
278
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
477
279
|
const queryOptions = useGetOrganisationUsersSuspenseQueryOptions(orgId, options);
|
|
478
280
|
|
|
479
|
-
const query = useSuspenseQuery(queryOptions
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
281
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
282
|
+
queryKey: QueryKey;
|
|
283
|
+
};
|
|
483
284
|
|
|
484
285
|
query.queryKey = queryOptions.queryKey;
|
|
485
286
|
|
|
@@ -551,18 +352,18 @@ export type AddOrganisationUserMutationError = ErrorType<AsError | void>;
|
|
|
551
352
|
/**
|
|
552
353
|
* @summary Adds a User to an Organisation
|
|
553
354
|
*/
|
|
554
|
-
export const useAddOrganisationUser = <
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
): UseMutationResult<
|
|
355
|
+
export const useAddOrganisationUser = <
|
|
356
|
+
TError = ErrorType<AsError | void>,
|
|
357
|
+
TContext = unknown,
|
|
358
|
+
>(options?: {
|
|
359
|
+
mutation?: UseMutationOptions<
|
|
360
|
+
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
361
|
+
TError,
|
|
362
|
+
{ orgId: string; userId: string },
|
|
363
|
+
TContext
|
|
364
|
+
>;
|
|
365
|
+
request?: SecondParameter<typeof customInstance>;
|
|
366
|
+
}): UseMutationResult<
|
|
566
367
|
Awaited<ReturnType<typeof addOrganisationUser>>,
|
|
567
368
|
TError,
|
|
568
369
|
{ orgId: string; userId: string },
|
|
@@ -570,7 +371,7 @@ export const useAddOrganisationUser = <TError = ErrorType<AsError | void>, TCont
|
|
|
570
371
|
> => {
|
|
571
372
|
const mutationOptions = useAddOrganisationUserMutationOptions(options);
|
|
572
373
|
|
|
573
|
-
return useMutation(mutationOptions
|
|
374
|
+
return useMutation(mutationOptions);
|
|
574
375
|
};
|
|
575
376
|
/**
|
|
576
377
|
* Removes a User from an **Organisation**.
|
|
@@ -637,18 +438,18 @@ export type DeleteOrganisationUserMutationError = ErrorType<AsError | void>;
|
|
|
637
438
|
/**
|
|
638
439
|
* @summary Deletes a User from an Organisation
|
|
639
440
|
*/
|
|
640
|
-
export const useDeleteOrganisationUser = <
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
): UseMutationResult<
|
|
441
|
+
export const useDeleteOrganisationUser = <
|
|
442
|
+
TError = ErrorType<AsError | void>,
|
|
443
|
+
TContext = unknown,
|
|
444
|
+
>(options?: {
|
|
445
|
+
mutation?: UseMutationOptions<
|
|
446
|
+
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
447
|
+
TError,
|
|
448
|
+
{ orgId: string; userId: string },
|
|
449
|
+
TContext
|
|
450
|
+
>;
|
|
451
|
+
request?: SecondParameter<typeof customInstance>;
|
|
452
|
+
}): UseMutationResult<
|
|
652
453
|
Awaited<ReturnType<typeof deleteOrganisationUser>>,
|
|
653
454
|
TError,
|
|
654
455
|
{ orgId: string; userId: string },
|
|
@@ -656,7 +457,7 @@ export const useDeleteOrganisationUser = <TError = ErrorType<AsError | void>, TC
|
|
|
656
457
|
> => {
|
|
657
458
|
const mutationOptions = useDeleteOrganisationUserMutationOptions(options);
|
|
658
459
|
|
|
659
|
-
return useMutation(mutationOptions
|
|
460
|
+
return useMutation(mutationOptions);
|
|
660
461
|
};
|
|
661
462
|
/**
|
|
662
463
|
* Gets users in an Organisational Unit.
|
|
@@ -688,9 +489,7 @@ export const useGetOrganisationUnitUsersQueryOptions = <
|
|
|
688
489
|
>(
|
|
689
490
|
unitId: string,
|
|
690
491
|
options?: {
|
|
691
|
-
query?:
|
|
692
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
693
|
-
>;
|
|
492
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>;
|
|
694
493
|
request?: SecondParameter<typeof customInstance>;
|
|
695
494
|
},
|
|
696
495
|
) => {
|
|
@@ -708,7 +507,7 @@ export const useGetOrganisationUnitUsersQueryOptions = <
|
|
|
708
507
|
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
709
508
|
TError,
|
|
710
509
|
TData
|
|
711
|
-
> & { queryKey:
|
|
510
|
+
> & { queryKey: QueryKey };
|
|
712
511
|
};
|
|
713
512
|
|
|
714
513
|
export type GetOrganisationUnitUsersQueryResult = NonNullable<
|
|
@@ -716,61 +515,6 @@ export type GetOrganisationUnitUsersQueryResult = NonNullable<
|
|
|
716
515
|
>;
|
|
717
516
|
export type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;
|
|
718
517
|
|
|
719
|
-
export function useGetOrganisationUnitUsers<
|
|
720
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
721
|
-
TError = ErrorType<AsError | void>,
|
|
722
|
-
>(
|
|
723
|
-
unitId: string,
|
|
724
|
-
options: {
|
|
725
|
-
query: Partial<
|
|
726
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
727
|
-
> &
|
|
728
|
-
Pick<
|
|
729
|
-
DefinedInitialDataOptions<
|
|
730
|
-
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
731
|
-
TError,
|
|
732
|
-
Awaited<ReturnType<typeof getOrganisationUnitUsers>>
|
|
733
|
-
>,
|
|
734
|
-
"initialData"
|
|
735
|
-
>;
|
|
736
|
-
request?: SecondParameter<typeof customInstance>;
|
|
737
|
-
},
|
|
738
|
-
queryClient?: QueryClient,
|
|
739
|
-
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
740
|
-
export function useGetOrganisationUnitUsers<
|
|
741
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
742
|
-
TError = ErrorType<AsError | void>,
|
|
743
|
-
>(
|
|
744
|
-
unitId: string,
|
|
745
|
-
options?: {
|
|
746
|
-
query?: Partial<
|
|
747
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
748
|
-
> &
|
|
749
|
-
Pick<
|
|
750
|
-
UndefinedInitialDataOptions<
|
|
751
|
-
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
752
|
-
TError,
|
|
753
|
-
Awaited<ReturnType<typeof getOrganisationUnitUsers>>
|
|
754
|
-
>,
|
|
755
|
-
"initialData"
|
|
756
|
-
>;
|
|
757
|
-
request?: SecondParameter<typeof customInstance>;
|
|
758
|
-
},
|
|
759
|
-
queryClient?: QueryClient,
|
|
760
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
761
|
-
export function useGetOrganisationUnitUsers<
|
|
762
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
763
|
-
TError = ErrorType<AsError | void>,
|
|
764
|
-
>(
|
|
765
|
-
unitId: string,
|
|
766
|
-
options?: {
|
|
767
|
-
query?: Partial<
|
|
768
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
769
|
-
>;
|
|
770
|
-
request?: SecondParameter<typeof customInstance>;
|
|
771
|
-
},
|
|
772
|
-
queryClient?: QueryClient,
|
|
773
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
774
518
|
/**
|
|
775
519
|
* @summary Gets users in an Organisational Unit
|
|
776
520
|
*/
|
|
@@ -781,18 +525,13 @@ export function useGetOrganisationUnitUsers<
|
|
|
781
525
|
>(
|
|
782
526
|
unitId: string,
|
|
783
527
|
options?: {
|
|
784
|
-
query?:
|
|
785
|
-
UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
786
|
-
>;
|
|
528
|
+
query?: UseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>;
|
|
787
529
|
request?: SecondParameter<typeof customInstance>;
|
|
788
530
|
},
|
|
789
|
-
|
|
790
|
-
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
531
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
791
532
|
const queryOptions = useGetOrganisationUnitUsersQueryOptions(unitId, options);
|
|
792
533
|
|
|
793
|
-
const query = useQuery(queryOptions
|
|
794
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
795
|
-
};
|
|
534
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
796
535
|
|
|
797
536
|
query.queryKey = queryOptions.queryKey;
|
|
798
537
|
|
|
@@ -805,8 +544,10 @@ export const useGetOrganisationUnitUsersSuspenseQueryOptions = <
|
|
|
805
544
|
>(
|
|
806
545
|
unitId: string,
|
|
807
546
|
options?: {
|
|
808
|
-
query?:
|
|
809
|
-
|
|
547
|
+
query?: UseSuspenseQueryOptions<
|
|
548
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
549
|
+
TError,
|
|
550
|
+
TData
|
|
810
551
|
>;
|
|
811
552
|
request?: SecondParameter<typeof customInstance>;
|
|
812
553
|
},
|
|
@@ -825,7 +566,7 @@ export const useGetOrganisationUnitUsersSuspenseQueryOptions = <
|
|
|
825
566
|
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
826
567
|
TError,
|
|
827
568
|
TData
|
|
828
|
-
> & { queryKey:
|
|
569
|
+
> & { queryKey: QueryKey };
|
|
829
570
|
};
|
|
830
571
|
|
|
831
572
|
export type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<
|
|
@@ -833,45 +574,6 @@ export type GetOrganisationUnitUsersSuspenseQueryResult = NonNullable<
|
|
|
833
574
|
>;
|
|
834
575
|
export type GetOrganisationUnitUsersSuspenseQueryError = ErrorType<AsError | void>;
|
|
835
576
|
|
|
836
|
-
export function useGetOrganisationUnitUsersSuspense<
|
|
837
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
838
|
-
TError = ErrorType<AsError | void>,
|
|
839
|
-
>(
|
|
840
|
-
unitId: string,
|
|
841
|
-
options: {
|
|
842
|
-
query: Partial<
|
|
843
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
844
|
-
>;
|
|
845
|
-
request?: SecondParameter<typeof customInstance>;
|
|
846
|
-
},
|
|
847
|
-
queryClient?: QueryClient,
|
|
848
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
849
|
-
export function useGetOrganisationUnitUsersSuspense<
|
|
850
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
851
|
-
TError = ErrorType<AsError | void>,
|
|
852
|
-
>(
|
|
853
|
-
unitId: string,
|
|
854
|
-
options?: {
|
|
855
|
-
query?: Partial<
|
|
856
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
857
|
-
>;
|
|
858
|
-
request?: SecondParameter<typeof customInstance>;
|
|
859
|
-
},
|
|
860
|
-
queryClient?: QueryClient,
|
|
861
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
862
|
-
export function useGetOrganisationUnitUsersSuspense<
|
|
863
|
-
TData = Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
864
|
-
TError = ErrorType<AsError | void>,
|
|
865
|
-
>(
|
|
866
|
-
unitId: string,
|
|
867
|
-
options?: {
|
|
868
|
-
query?: Partial<
|
|
869
|
-
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisationUnitUsers>>, TError, TData>
|
|
870
|
-
>;
|
|
871
|
-
request?: SecondParameter<typeof customInstance>;
|
|
872
|
-
},
|
|
873
|
-
queryClient?: QueryClient,
|
|
874
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
875
577
|
/**
|
|
876
578
|
* @summary Gets users in an Organisational Unit
|
|
877
579
|
*/
|
|
@@ -882,19 +584,19 @@ export function useGetOrganisationUnitUsersSuspense<
|
|
|
882
584
|
>(
|
|
883
585
|
unitId: string,
|
|
884
586
|
options?: {
|
|
885
|
-
query?:
|
|
886
|
-
|
|
587
|
+
query?: UseSuspenseQueryOptions<
|
|
588
|
+
Awaited<ReturnType<typeof getOrganisationUnitUsers>>,
|
|
589
|
+
TError,
|
|
590
|
+
TData
|
|
887
591
|
>;
|
|
888
592
|
request?: SecondParameter<typeof customInstance>;
|
|
889
593
|
},
|
|
890
|
-
|
|
891
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
594
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
892
595
|
const queryOptions = useGetOrganisationUnitUsersSuspenseQueryOptions(unitId, options);
|
|
893
596
|
|
|
894
|
-
const query = useSuspenseQuery(queryOptions
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
597
|
+
const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {
|
|
598
|
+
queryKey: QueryKey;
|
|
599
|
+
};
|
|
898
600
|
|
|
899
601
|
query.queryKey = queryOptions.queryKey;
|
|
900
602
|
|
|
@@ -965,18 +667,18 @@ export type AddOrganisationUnitUserMutationError = ErrorType<AsError | void>;
|
|
|
965
667
|
/**
|
|
966
668
|
* @summary Adds a user to an Organisational Unit
|
|
967
669
|
*/
|
|
968
|
-
export const useAddOrganisationUnitUser = <
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
): UseMutationResult<
|
|
670
|
+
export const useAddOrganisationUnitUser = <
|
|
671
|
+
TError = ErrorType<AsError | void>,
|
|
672
|
+
TContext = unknown,
|
|
673
|
+
>(options?: {
|
|
674
|
+
mutation?: UseMutationOptions<
|
|
675
|
+
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
676
|
+
TError,
|
|
677
|
+
{ unitId: string; userId: string },
|
|
678
|
+
TContext
|
|
679
|
+
>;
|
|
680
|
+
request?: SecondParameter<typeof customInstance>;
|
|
681
|
+
}): UseMutationResult<
|
|
980
682
|
Awaited<ReturnType<typeof addOrganisationUnitUser>>,
|
|
981
683
|
TError,
|
|
982
684
|
{ unitId: string; userId: string },
|
|
@@ -984,7 +686,7 @@ export const useAddOrganisationUnitUser = <TError = ErrorType<AsError | void>, T
|
|
|
984
686
|
> => {
|
|
985
687
|
const mutationOptions = useAddOrganisationUnitUserMutationOptions(options);
|
|
986
688
|
|
|
987
|
-
return useMutation(mutationOptions
|
|
689
|
+
return useMutation(mutationOptions);
|
|
988
690
|
};
|
|
989
691
|
/**
|
|
990
692
|
* Removes a User from an Organisational Unit.
|
|
@@ -1053,18 +755,15 @@ export type DeleteOrganisationUnitUserMutationError = ErrorType<AsError | void>;
|
|
|
1053
755
|
export const useDeleteOrganisationUnitUser = <
|
|
1054
756
|
TError = ErrorType<AsError | void>,
|
|
1055
757
|
TContext = unknown,
|
|
1056
|
-
>(
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
},
|
|
1066
|
-
queryClient?: QueryClient,
|
|
1067
|
-
): UseMutationResult<
|
|
758
|
+
>(options?: {
|
|
759
|
+
mutation?: UseMutationOptions<
|
|
760
|
+
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
761
|
+
TError,
|
|
762
|
+
{ unitId: string; userId: string },
|
|
763
|
+
TContext
|
|
764
|
+
>;
|
|
765
|
+
request?: SecondParameter<typeof customInstance>;
|
|
766
|
+
}): UseMutationResult<
|
|
1068
767
|
Awaited<ReturnType<typeof deleteOrganisationUnitUser>>,
|
|
1069
768
|
TError,
|
|
1070
769
|
{ unitId: string; userId: string },
|
|
@@ -1072,5 +771,5 @@ export const useDeleteOrganisationUnitUser = <
|
|
|
1072
771
|
> => {
|
|
1073
772
|
const mutationOptions = useDeleteOrganisationUnitUserMutationOptions(options);
|
|
1074
773
|
|
|
1075
|
-
return useMutation(mutationOptions
|
|
774
|
+
return useMutation(mutationOptions);
|
|
1076
775
|
};
|