@squonk/data-manager-client 4.2.0 → 5.0.0-5-0.2173777171

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.
Files changed (141) hide show
  1. package/accounting/accounting.cjs +140 -94
  2. package/accounting/accounting.cjs.map +1 -1
  3. package/accounting/accounting.d.cts +104 -47
  4. package/accounting/accounting.d.ts +104 -47
  5. package/accounting/accounting.js +146 -100
  6. package/accounting/accounting.js.map +1 -1
  7. package/admin/admin.cjs +120 -145
  8. package/admin/admin.cjs.map +1 -1
  9. package/admin/admin.d.cts +123 -121
  10. package/admin/admin.d.ts +123 -121
  11. package/admin/admin.js +127 -152
  12. package/admin/admin.js.map +1 -1
  13. package/application/application.cjs +39 -43
  14. package/application/application.cjs.map +1 -1
  15. package/application/application.d.cts +25 -25
  16. package/application/application.d.ts +25 -25
  17. package/application/application.js +42 -46
  18. package/application/application.js.map +1 -1
  19. package/chunk-76ADQBHZ.js +25 -0
  20. package/chunk-76ADQBHZ.js.map +1 -0
  21. package/chunk-KHB5TJT7.cjs +25 -0
  22. package/chunk-KHB5TJT7.cjs.map +1 -0
  23. package/{chunk-TKLTUR4R.cjs → chunk-RB2KVIEK.cjs} +1 -1
  24. package/chunk-RB2KVIEK.cjs.map +1 -0
  25. package/{chunk-EBOQPVLG.js → chunk-XYDLYMQ2.js} +1 -1
  26. package/chunk-XYDLYMQ2.js.map +1 -0
  27. package/configuration/configuration.cjs +38 -45
  28. package/configuration/configuration.cjs.map +1 -1
  29. package/configuration/configuration.d.cts +26 -26
  30. package/configuration/configuration.d.ts +26 -26
  31. package/configuration/configuration.js +42 -49
  32. package/configuration/configuration.js.map +1 -1
  33. package/dataset/dataset.cjs +126 -141
  34. package/dataset/dataset.cjs.map +1 -1
  35. package/dataset/dataset.d.cts +102 -102
  36. package/dataset/dataset.d.ts +102 -102
  37. package/dataset/dataset.js +132 -147
  38. package/dataset/dataset.js.map +1 -1
  39. package/digest/digest.cjs +22 -24
  40. package/digest/digest.cjs.map +1 -1
  41. package/digest/digest.d.cts +14 -14
  42. package/digest/digest.d.ts +14 -14
  43. package/digest/digest.js +24 -26
  44. package/digest/digest.js.map +1 -1
  45. package/file-and-path/file-and-path.cjs +212 -135
  46. package/file-and-path/file-and-path.cjs.map +1 -1
  47. package/file-and-path/file-and-path.d.cts +263 -103
  48. package/file-and-path/file-and-path.d.ts +263 -103
  49. package/file-and-path/file-and-path.js +222 -145
  50. package/file-and-path/file-and-path.js.map +1 -1
  51. package/index.cjs +83 -103
  52. package/index.cjs.map +1 -1
  53. package/index.d.cts +2434 -2343
  54. package/index.d.ts +2434 -2343
  55. package/index.js +82 -102
  56. package/index.js.map +1 -1
  57. package/instance/instance.cjs +100 -107
  58. package/instance/instance.cjs.map +1 -1
  59. package/instance/instance.d.cts +76 -76
  60. package/instance/instance.d.ts +76 -76
  61. package/instance/instance.js +105 -112
  62. package/instance/instance.js.map +1 -1
  63. package/inventory/inventory.cjs +22 -25
  64. package/inventory/inventory.cjs.map +1 -1
  65. package/inventory/inventory.d.cts +14 -14
  66. package/inventory/inventory.d.ts +14 -14
  67. package/inventory/inventory.js +24 -27
  68. package/inventory/inventory.js.map +1 -1
  69. package/job/job.cjs +170 -66
  70. package/job/job.cjs.map +1 -1
  71. package/job/job.d.cts +193 -37
  72. package/job/job.d.ts +193 -37
  73. package/job/job.js +176 -72
  74. package/job/job.js.map +1 -1
  75. package/metadata/metadata.cjs +61 -59
  76. package/metadata/metadata.cjs.map +1 -1
  77. package/metadata/metadata.d.cts +47 -47
  78. package/metadata/metadata.d.ts +47 -47
  79. package/metadata/metadata.js +65 -63
  80. package/metadata/metadata.js.map +1 -1
  81. package/package.json +13 -16
  82. package/project/project.cjs +113 -256
  83. package/project/project.cjs.map +1 -1
  84. package/project/project.d.cts +122 -282
  85. package/project/project.d.ts +122 -282
  86. package/project/project.js +118 -261
  87. package/project/project.js.map +1 -1
  88. package/src/{data-manager-api.schemas.ts → API_TARGET_NAME.schemas.ts} +2538 -2483
  89. package/src/accounting/accounting.ts +1003 -455
  90. package/src/admin/admin.ts +1190 -788
  91. package/src/application/application.ts +378 -232
  92. package/src/configuration/configuration.ts +350 -243
  93. package/src/custom-instance.ts +3 -3
  94. package/src/dataset/dataset.ts +1200 -793
  95. package/src/digest/digest.ts +199 -123
  96. package/src/file-and-path/file-and-path.ts +1456 -603
  97. package/src/index.ts +3 -3
  98. package/src/instance/instance.ts +805 -540
  99. package/src/inventory/inventory.ts +201 -123
  100. package/src/job/job.ts +1134 -330
  101. package/src/metadata/metadata.ts +588 -372
  102. package/src/options-mutator.ts +27 -0
  103. package/src/project/project.ts +1064 -1121
  104. package/src/task/task.ts +435 -296
  105. package/src/type/type.ts +181 -127
  106. package/src/user/user.ts +847 -399
  107. package/src/workflow/workflow.ts +1754 -1091
  108. package/task/task.cjs +45 -59
  109. package/task/task.cjs.map +1 -1
  110. package/task/task.d.cts +33 -33
  111. package/task/task.d.ts +33 -33
  112. package/task/task.js +51 -65
  113. package/task/task.js.map +1 -1
  114. package/type/type.cjs +21 -26
  115. package/type/type.cjs.map +1 -1
  116. package/type/type.d.cts +14 -14
  117. package/type/type.d.ts +14 -14
  118. package/type/type.js +24 -29
  119. package/type/type.js.map +1 -1
  120. package/user/user.cjs +114 -80
  121. package/user/user.cjs.map +1 -1
  122. package/user/user.d.cts +107 -48
  123. package/user/user.d.ts +107 -48
  124. package/user/user.js +120 -86
  125. package/user/user.js.map +1 -1
  126. package/workflow/workflow.cjs +179 -193
  127. package/workflow/workflow.cjs.map +1 -1
  128. package/workflow/workflow.d.cts +149 -147
  129. package/workflow/workflow.d.ts +149 -147
  130. package/workflow/workflow.js +187 -201
  131. package/workflow/workflow.js.map +1 -1
  132. package/chunk-EBOQPVLG.js.map +0 -1
  133. package/chunk-TKLTUR4R.cjs.map +0 -1
  134. package/exchange-rate/exchange-rate.cjs +0 -253
  135. package/exchange-rate/exchange-rate.cjs.map +0 -1
  136. package/exchange-rate/exchange-rate.d.cts +0 -319
  137. package/exchange-rate/exchange-rate.d.ts +0 -319
  138. package/exchange-rate/exchange-rate.js +0 -253
  139. package/exchange-rate/exchange-rate.js.map +0 -1
  140. package/exchange-rate/package.json +0 -7
  141. package/src/exchange-rate/exchange-rate.ts +0 -800
@@ -1,41 +1,39 @@
1
- // @ts-nocheck
2
1
  /**
3
- * Generated by orval v7.4.1 🍺
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.
7
6
 
8
7
  A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
9
8
 
10
- * OpenAPI spec version: 4.1
9
+ * OpenAPI spec version: 5.0
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 '@tanstack/react-query'
23
+ UseSuspenseQueryResult,
24
+ } from "@tanstack/react-query";
25
+
28
26
  import type {
29
27
  DmError,
30
28
  GetUserInventoryParams,
31
- InventoryUserGetResponse
32
- } from '../data-manager-api.schemas'
33
- import { customInstance } from '.././custom-instance';
34
- import type { ErrorType } from '.././custom-instance';
35
-
29
+ InventoryUserGetResponse,
30
+ } from "../API_TARGET_NAME.schemas";
36
31
 
37
- type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
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
- params?: GetUserInventoryParams,
49
- options?: SecondParameter<typeof customInstance>,signal?: AbortSignal
46
+ params?: GetUserInventoryParams,
47
+ options?: SecondParameter<typeof customInstance>,
48
+ signal?: AbortSignal,
50
49
  ) => {
51
-
52
-
53
- return customInstance<InventoryUserGetResponse>(
54
- {url: `/inventory/user`, method: 'GET',
55
- params, signal
56
- },
57
- options);
58
- }
59
-
60
-
61
- export const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams,) => {
62
- return ["data-manager-api", `/inventory/user`, ...(params ? [params]: [])] as const;
63
- }
64
-
65
-
66
- export const getGetUserInventoryQueryOptions = <TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(params?: GetUserInventoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
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 {query: queryOptions, request: requestOptions} = options ?? {};
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
- return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
82
- }
83
-
84
- export type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>
85
- export type GetUserInventoryQueryError = ErrorType<void | DmError>
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<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
89
- params: undefined | GetUserInventoryParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> & Pick<
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
- TData
94
- > , 'initialData'
95
- >, request?: SecondParameter<typeof customInstance>}
96
-
97
- ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
98
- export function useGetUserInventory<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
99
- params?: GetUserInventoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> & Pick<
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
- TData
104
- > , 'initialData'
105
- >, request?: SecondParameter<typeof customInstance>}
106
-
107
- ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
108
- export function useGetUserInventory<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
109
- params?: GetUserInventoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
110
-
111
- ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
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<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
117
- params?: GetUserInventoryParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
118
-
119
- ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
120
-
121
- const queryOptions = getGetUserInventoryQueryOptions(params,options)
122
-
123
- const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
124
-
125
- query.queryKey = queryOptions.queryKey ;
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
- export const getGetUserInventorySuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(params?: GetUserInventoryParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
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
- const {query: queryOptions, request: requestOptions} = options ?? {};
136
-
137
- const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);
138
-
139
-
140
-
141
- const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) => getUserInventory(params, requestOptions, signal);
142
-
143
-
144
-
145
-
146
-
147
- return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
148
- }
149
-
150
- export type GetUserInventorySuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>
151
- export type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>
152
-
153
-
154
- export function useGetUserInventorySuspense<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
155
- params: undefined | GetUserInventoryParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
156
-
157
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
158
- export function useGetUserInventorySuspense<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
159
- params?: GetUserInventoryParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
160
-
161
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
162
- export function useGetUserInventorySuspense<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
163
- params?: GetUserInventoryParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
164
-
165
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
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<TData = Awaited<ReturnType<typeof getUserInventory>>, TError = ErrorType<void | DmError>>(
171
- params?: GetUserInventoryParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
172
-
173
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
174
-
175
- const queryOptions = getGetUserInventorySuspenseQueryOptions(params,options)
176
-
177
- const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
178
-
179
- query.queryKey = queryOptions.queryKey ;
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
-