@squonk/data-manager-client 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounting/accounting.cjs +96 -95
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +47 -47
- package/accounting/accounting.d.ts +47 -47
- package/accounting/accounting.js +102 -101
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +120 -145
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +121 -121
- package/admin/admin.d.ts +121 -121
- package/admin/admin.js +127 -152
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +39 -43
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +25 -25
- package/application/application.d.ts +25 -25
- package/application/application.js +42 -46
- package/application/application.js.map +1 -1
- package/chunk-OYRETEBZ.js +25 -0
- package/chunk-OYRETEBZ.js.map +1 -0
- package/{chunk-TKLTUR4R.cjs → chunk-RB2KVIEK.cjs} +1 -1
- package/chunk-RB2KVIEK.cjs.map +1 -0
- package/{chunk-EBOQPVLG.js → chunk-XYDLYMQ2.js} +1 -1
- package/chunk-XYDLYMQ2.js.map +1 -0
- package/chunk-ZLY5XEOQ.cjs +25 -0
- package/chunk-ZLY5XEOQ.cjs.map +1 -0
- package/configuration/configuration.cjs +38 -45
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +25 -25
- package/configuration/configuration.d.ts +25 -25
- package/configuration/configuration.js +42 -49
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +126 -141
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +102 -102
- package/dataset/dataset.d.ts +102 -102
- package/dataset/dataset.js +132 -147
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +22 -24
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +14 -14
- package/digest/digest.d.ts +14 -14
- package/digest/digest.js +24 -26
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +111 -109
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +69 -69
- package/exchange-rate/exchange-rate.d.ts +69 -69
- package/exchange-rate/exchange-rate.js +117 -115
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +93 -138
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +102 -102
- package/file-and-path/file-and-path.d.ts +102 -102
- package/file-and-path/file-and-path.js +105 -150
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs +80 -102
- package/index.cjs.map +1 -1
- package/index.d.cts +2401 -2326
- package/index.d.ts +2401 -2326
- package/index.js +79 -101
- package/index.js.map +1 -1
- package/instance/instance.cjs +100 -107
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +76 -76
- package/instance/instance.d.ts +76 -76
- package/instance/instance.js +105 -112
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +22 -25
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +14 -14
- package/inventory/inventory.d.ts +14 -14
- package/inventory/inventory.js +24 -27
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +55 -67
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +36 -36
- package/job/job.d.ts +36 -36
- package/job/job.js +60 -72
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +61 -59
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +47 -47
- package/metadata/metadata.d.ts +47 -47
- package/metadata/metadata.js +65 -63
- package/metadata/metadata.js.map +1 -1
- package/package.json +13 -16
- package/project/project.cjs +165 -186
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +157 -157
- package/project/project.d.ts +157 -157
- package/project/project.js +172 -193
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +767 -461
- package/src/admin/admin.ts +1187 -787
- package/src/application/application.ts +377 -231
- package/src/configuration/configuration.ts +348 -237
- package/src/custom-instance.ts +3 -3
- package/src/data-manager-api.schemas.ts +2538 -2492
- package/src/dataset/dataset.ts +1199 -792
- package/src/digest/digest.ts +198 -122
- package/src/exchange-rate/exchange-rate.ts +1088 -612
- package/src/file-and-path/file-and-path.ts +869 -616
- package/src/index.ts +2 -2
- package/src/instance/instance.ts +804 -539
- package/src/inventory/inventory.ts +200 -122
- package/src/job/job.ts +556 -348
- package/src/metadata/metadata.ts +587 -371
- package/src/options-mutator.ts +27 -0
- package/src/project/project.ts +1576 -1034
- package/src/task/task.ts +434 -295
- package/src/type/type.ts +180 -126
- package/src/user/user.ts +846 -398
- package/src/workflow/workflow.ts +1750 -1089
- package/task/task.cjs +45 -59
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +33 -33
- package/task/task.d.ts +33 -33
- package/task/task.js +51 -65
- package/task/task.js.map +1 -1
- package/type/type.cjs +21 -26
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +14 -14
- package/type/type.d.ts +14 -14
- package/type/type.js +24 -29
- package/type/type.js.map +1 -1
- package/user/user.cjs +114 -80
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +107 -48
- package/user/user.d.ts +107 -48
- package/user/user.js +120 -86
- package/user/user.js.map +1 -1
- package/workflow/workflow.cjs +179 -193
- package/workflow/workflow.cjs.map +1 -1
- package/workflow/workflow.d.cts +146 -146
- package/workflow/workflow.d.ts +146 -146
- package/workflow/workflow.js +187 -201
- package/workflow/workflow.js.map +1 -1
- package/chunk-EBOQPVLG.js.map +0 -1
- package/chunk-TKLTUR4R.cjs.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
4
3
|
* Do not edit manually.
|
|
5
4
|
* Dataset Manager API
|
|
6
5
|
* The Dataset Manager API service.
|
|
@@ -9,33 +8,32 @@ A service that allows *registered* users to make **Datasets** and associated **M
|
|
|
9
8
|
|
|
10
9
|
* OpenAPI spec version: 4.1
|
|
11
10
|
*/
|
|
12
|
-
import {
|
|
13
|
-
useQuery,
|
|
14
|
-
useSuspenseQuery
|
|
15
|
-
} from '@tanstack/react-query'
|
|
11
|
+
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
16
12
|
import type {
|
|
17
13
|
DataTag,
|
|
18
14
|
DefinedInitialDataOptions,
|
|
19
15
|
DefinedUseQueryResult,
|
|
16
|
+
QueryClient,
|
|
20
17
|
QueryFunction,
|
|
21
18
|
QueryKey,
|
|
22
19
|
UndefinedInitialDataOptions,
|
|
23
20
|
UseQueryOptions,
|
|
24
21
|
UseQueryResult,
|
|
25
22
|
UseSuspenseQueryOptions,
|
|
26
|
-
UseSuspenseQueryResult
|
|
27
|
-
} from
|
|
23
|
+
UseSuspenseQueryResult,
|
|
24
|
+
} from "@tanstack/react-query";
|
|
25
|
+
|
|
28
26
|
import type {
|
|
29
27
|
DmError,
|
|
30
28
|
GetUserInventoryParams,
|
|
31
|
-
InventoryUserGetResponse
|
|
32
|
-
} from
|
|
33
|
-
import { customInstance } from '.././custom-instance';
|
|
34
|
-
import type { ErrorType } from '.././custom-instance';
|
|
35
|
-
|
|
29
|
+
InventoryUserGetResponse,
|
|
30
|
+
} from "../data-manager-api.schemas";
|
|
36
31
|
|
|
37
|
-
|
|
32
|
+
import { customInstance } from ".././custom-instance";
|
|
33
|
+
import type { ErrorType } from ".././custom-instance";
|
|
34
|
+
import { queryMutator } from ".././options-mutator";
|
|
38
35
|
|
|
36
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
39
37
|
|
|
40
38
|
/**
|
|
41
39
|
* Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).
|
|
@@ -45,141 +43,221 @@ The caller must also be a member of the provided Unit or Organisation, i.e. you
|
|
|
45
43
|
* @summary Get User Inventory
|
|
46
44
|
*/
|
|
47
45
|
export const getUserInventory = (
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
params?: GetUserInventoryParams,
|
|
47
|
+
options?: SecondParameter<typeof customInstance>,
|
|
48
|
+
signal?: AbortSignal,
|
|
50
49
|
) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
return customInstance<InventoryUserGetResponse>(
|
|
51
|
+
{ url: `/inventory/user`, method: "GET", params, signal },
|
|
52
|
+
options,
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {
|
|
57
|
+
return [`/inventory/user`, ...(params ? [params] : [])] as const;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const useGetUserInventoryQueryOptions = <
|
|
61
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
62
|
+
TError = ErrorType<void | DmError>,
|
|
63
|
+
>(
|
|
64
|
+
params?: GetUserInventoryParams,
|
|
65
|
+
options?: {
|
|
66
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;
|
|
67
|
+
request?: SecondParameter<typeof customInstance>;
|
|
68
|
+
},
|
|
67
69
|
) => {
|
|
70
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
68
71
|
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) => getUserInventory(params, requestOptions, signal);
|
|
72
|
+
const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);
|
|
76
73
|
|
|
77
|
-
|
|
74
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>
|
|
75
|
+
getUserInventory(params, requestOptions, signal);
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
80
78
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
return customOptions as UseQueryOptions<
|
|
80
|
+
Awaited<ReturnType<typeof getUserInventory>>,
|
|
81
|
+
TError,
|
|
82
|
+
TData
|
|
83
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
84
|
+
};
|
|
86
85
|
|
|
86
|
+
export type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;
|
|
87
|
+
export type GetUserInventoryQueryError = ErrorType<void | DmError>;
|
|
87
88
|
|
|
88
|
-
export function useGetUserInventory<
|
|
89
|
-
|
|
89
|
+
export function useGetUserInventory<
|
|
90
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
91
|
+
TError = ErrorType<void | DmError>,
|
|
92
|
+
>(
|
|
93
|
+
params: undefined | GetUserInventoryParams,
|
|
94
|
+
options: {
|
|
95
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &
|
|
96
|
+
Pick<
|
|
90
97
|
DefinedInitialDataOptions<
|
|
91
98
|
Awaited<ReturnType<typeof getUserInventory>>,
|
|
92
99
|
TError,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
Awaited<ReturnType<typeof getUserInventory>>
|
|
101
|
+
>,
|
|
102
|
+
"initialData"
|
|
103
|
+
>;
|
|
104
|
+
request?: SecondParameter<typeof customInstance>;
|
|
105
|
+
},
|
|
106
|
+
queryClient?: QueryClient,
|
|
107
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
108
|
+
export function useGetUserInventory<
|
|
109
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
110
|
+
TError = ErrorType<void | DmError>,
|
|
111
|
+
>(
|
|
112
|
+
params?: GetUserInventoryParams,
|
|
113
|
+
options?: {
|
|
114
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &
|
|
115
|
+
Pick<
|
|
100
116
|
UndefinedInitialDataOptions<
|
|
101
117
|
Awaited<ReturnType<typeof getUserInventory>>,
|
|
102
118
|
TError,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
Awaited<ReturnType<typeof getUserInventory>>
|
|
120
|
+
>,
|
|
121
|
+
"initialData"
|
|
122
|
+
>;
|
|
123
|
+
request?: SecondParameter<typeof customInstance>;
|
|
124
|
+
},
|
|
125
|
+
queryClient?: QueryClient,
|
|
126
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
127
|
+
export function useGetUserInventory<
|
|
128
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
129
|
+
TError = ErrorType<void | DmError>,
|
|
130
|
+
>(
|
|
131
|
+
params?: GetUserInventoryParams,
|
|
132
|
+
options?: {
|
|
133
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;
|
|
134
|
+
request?: SecondParameter<typeof customInstance>;
|
|
135
|
+
},
|
|
136
|
+
queryClient?: QueryClient,
|
|
137
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
112
138
|
/**
|
|
113
139
|
* @summary Get User Inventory
|
|
114
140
|
*/
|
|
115
141
|
|
|
116
|
-
export function useGetUserInventory<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
142
|
+
export function useGetUserInventory<
|
|
143
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
144
|
+
TError = ErrorType<void | DmError>,
|
|
145
|
+
>(
|
|
146
|
+
params?: GetUserInventoryParams,
|
|
147
|
+
options?: {
|
|
148
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;
|
|
149
|
+
request?: SecondParameter<typeof customInstance>;
|
|
150
|
+
},
|
|
151
|
+
queryClient?: QueryClient,
|
|
152
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
153
|
+
const queryOptions = useGetUserInventoryQueryOptions(params, options);
|
|
154
|
+
|
|
155
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
156
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
query.queryKey = queryOptions.queryKey;
|
|
126
160
|
|
|
127
161
|
return query;
|
|
128
162
|
}
|
|
129
163
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
164
|
+
export const useGetUserInventorySuspenseQueryOptions = <
|
|
165
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
166
|
+
TError = ErrorType<void | DmError>,
|
|
167
|
+
>(
|
|
168
|
+
params?: GetUserInventoryParams,
|
|
169
|
+
options?: {
|
|
170
|
+
query?: Partial<
|
|
171
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>
|
|
172
|
+
>;
|
|
173
|
+
request?: SecondParameter<typeof customInstance>;
|
|
174
|
+
},
|
|
133
175
|
) => {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export type GetUserInventorySuspenseQueryResult = NonNullable<
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
176
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
177
|
+
|
|
178
|
+
const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);
|
|
179
|
+
|
|
180
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>
|
|
181
|
+
getUserInventory(params, requestOptions, signal);
|
|
182
|
+
|
|
183
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
184
|
+
|
|
185
|
+
return customOptions as UseSuspenseQueryOptions<
|
|
186
|
+
Awaited<ReturnType<typeof getUserInventory>>,
|
|
187
|
+
TError,
|
|
188
|
+
TData
|
|
189
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export type GetUserInventorySuspenseQueryResult = NonNullable<
|
|
193
|
+
Awaited<ReturnType<typeof getUserInventory>>
|
|
194
|
+
>;
|
|
195
|
+
export type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;
|
|
196
|
+
|
|
197
|
+
export function useGetUserInventorySuspense<
|
|
198
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
199
|
+
TError = ErrorType<void | DmError>,
|
|
200
|
+
>(
|
|
201
|
+
params: undefined | GetUserInventoryParams,
|
|
202
|
+
options: {
|
|
203
|
+
query: Partial<
|
|
204
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>
|
|
205
|
+
>;
|
|
206
|
+
request?: SecondParameter<typeof customInstance>;
|
|
207
|
+
},
|
|
208
|
+
queryClient?: QueryClient,
|
|
209
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
210
|
+
export function useGetUserInventorySuspense<
|
|
211
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
212
|
+
TError = ErrorType<void | DmError>,
|
|
213
|
+
>(
|
|
214
|
+
params?: GetUserInventoryParams,
|
|
215
|
+
options?: {
|
|
216
|
+
query?: Partial<
|
|
217
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>
|
|
218
|
+
>;
|
|
219
|
+
request?: SecondParameter<typeof customInstance>;
|
|
220
|
+
},
|
|
221
|
+
queryClient?: QueryClient,
|
|
222
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
223
|
+
export function useGetUserInventorySuspense<
|
|
224
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
225
|
+
TError = ErrorType<void | DmError>,
|
|
226
|
+
>(
|
|
227
|
+
params?: GetUserInventoryParams,
|
|
228
|
+
options?: {
|
|
229
|
+
query?: Partial<
|
|
230
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>
|
|
231
|
+
>;
|
|
232
|
+
request?: SecondParameter<typeof customInstance>;
|
|
233
|
+
},
|
|
234
|
+
queryClient?: QueryClient,
|
|
235
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
166
236
|
/**
|
|
167
237
|
* @summary Get User Inventory
|
|
168
238
|
*/
|
|
169
239
|
|
|
170
|
-
export function useGetUserInventorySuspense<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
240
|
+
export function useGetUserInventorySuspense<
|
|
241
|
+
TData = Awaited<ReturnType<typeof getUserInventory>>,
|
|
242
|
+
TError = ErrorType<void | DmError>,
|
|
243
|
+
>(
|
|
244
|
+
params?: GetUserInventoryParams,
|
|
245
|
+
options?: {
|
|
246
|
+
query?: Partial<
|
|
247
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>
|
|
248
|
+
>;
|
|
249
|
+
request?: SecondParameter<typeof customInstance>;
|
|
250
|
+
},
|
|
251
|
+
queryClient?: QueryClient,
|
|
252
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
253
|
+
const queryOptions = useGetUserInventorySuspenseQueryOptions(params, options);
|
|
254
|
+
|
|
255
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
256
|
+
TData,
|
|
257
|
+
TError
|
|
258
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
259
|
+
|
|
260
|
+
query.queryKey = queryOptions.queryKey;
|
|
180
261
|
|
|
181
262
|
return query;
|
|
182
263
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|