@kubb/plugin-react-query 4.28.1 → 4.29.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/dist/{components-DcRvg3r2.js → SuspenseQuery-BFn3x1kP.js} +2 -2
- package/dist/SuspenseQuery-BFn3x1kP.js.map +1 -0
- package/dist/{components-Bud7cJEj.cjs → SuspenseQuery-Dqr3APYf.cjs} +2 -2
- package/dist/SuspenseQuery-Dqr3APYf.cjs.map +1 -0
- package/dist/{chunk-eQyhnF5A.js → chunk-DKWOrOAv.js} +1 -1
- package/dist/components.cjs +13 -12
- package/dist/components.d.ts +2 -3
- package/dist/components.js +1 -1
- package/dist/generators.cjs +9 -8
- package/dist/generators.d.ts +3 -4
- package/dist/generators.js +1 -1
- package/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{generators-D9wuuYX2.js → suspenseQueryGenerator-BjEGcQcE.js} +5 -5
- package/dist/{generators-D9wuuYX2.js.map → suspenseQueryGenerator-BjEGcQcE.js.map} +1 -1
- package/dist/{generators-FaoMN0Iz.cjs → suspenseQueryGenerator-CHrwd9jE.cjs} +21 -21
- package/dist/suspenseQueryGenerator-CHrwd9jE.cjs.map +1 -0
- package/dist/{types-Dpnaq-tp.d.ts → types-BpR8NRhS.d.ts} +2 -2
- package/dist/{types-DaKf8CBl.d.cts → types-BvXj6Cu5.d.ts} +2 -2
- package/package.json +19 -19
- package/dist/components-Bud7cJEj.cjs.map +0 -1
- package/dist/components-DcRvg3r2.js.map +0 -1
- package/dist/components.d.cts +0 -458
- package/dist/generators-FaoMN0Iz.cjs.map +0 -1
- package/dist/generators.d.cts +0 -485
- package/dist/index.d.cts +0 -9
package/dist/components.d.cts
DELETED
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
import { a as __name, i as Transformer, r as PluginReactQuery, t as Infinite } from "./types-DaKf8CBl.cjs";
|
|
2
|
-
import { Operation } from "@kubb/oas";
|
|
3
|
-
import { OperationSchemas } from "@kubb/plugin-oas";
|
|
4
|
-
import { FunctionParams } from "@kubb/react-fabric";
|
|
5
|
-
import { FabricReactNode } from "@kubb/react-fabric/types";
|
|
6
|
-
|
|
7
|
-
//#region src/components/InfiniteQuery.d.ts
|
|
8
|
-
type Props$10 = {
|
|
9
|
-
/**
|
|
10
|
-
* Name of the function
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
queryOptionsName: string;
|
|
14
|
-
queryKeyName: string;
|
|
15
|
-
queryKeyTypeName: string;
|
|
16
|
-
typeSchemas: OperationSchemas;
|
|
17
|
-
operation: Operation;
|
|
18
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
19
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
20
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
21
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
22
|
-
initialPageParam: Infinite['initialPageParam'];
|
|
23
|
-
queryParam?: Infinite['queryParam'];
|
|
24
|
-
customOptions: PluginReactQuery['resolvedOptions']['customOptions'];
|
|
25
|
-
};
|
|
26
|
-
type GetParamsProps$9 = {
|
|
27
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
28
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
29
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
30
|
-
typeSchemas: OperationSchemas;
|
|
31
|
-
pageParamGeneric: string;
|
|
32
|
-
};
|
|
33
|
-
declare function InfiniteQuery({
|
|
34
|
-
name,
|
|
35
|
-
queryKeyTypeName,
|
|
36
|
-
queryOptionsName,
|
|
37
|
-
queryKeyName,
|
|
38
|
-
paramsType,
|
|
39
|
-
paramsCasing,
|
|
40
|
-
pathParamsType,
|
|
41
|
-
dataReturnType,
|
|
42
|
-
typeSchemas,
|
|
43
|
-
operation,
|
|
44
|
-
initialPageParam,
|
|
45
|
-
queryParam,
|
|
46
|
-
customOptions
|
|
47
|
-
}: Props$10): FabricReactNode;
|
|
48
|
-
declare namespace InfiniteQuery {
|
|
49
|
-
var getParams: ({
|
|
50
|
-
paramsType,
|
|
51
|
-
paramsCasing,
|
|
52
|
-
pathParamsType,
|
|
53
|
-
typeSchemas,
|
|
54
|
-
pageParamGeneric
|
|
55
|
-
}: GetParamsProps$9) => FunctionParams;
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/components/InfiniteQueryOptions.d.ts
|
|
59
|
-
type Props$9 = {
|
|
60
|
-
name: string;
|
|
61
|
-
clientName: string;
|
|
62
|
-
queryKeyName: string;
|
|
63
|
-
typeSchemas: OperationSchemas;
|
|
64
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
65
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
66
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
67
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
68
|
-
initialPageParam: Infinite['initialPageParam'];
|
|
69
|
-
cursorParam: Infinite['cursorParam'];
|
|
70
|
-
nextParam: Infinite['nextParam'];
|
|
71
|
-
previousParam: Infinite['previousParam'];
|
|
72
|
-
queryParam: Infinite['queryParam'];
|
|
73
|
-
};
|
|
74
|
-
type GetParamsProps$8 = {
|
|
75
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
76
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
77
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
78
|
-
typeSchemas: OperationSchemas;
|
|
79
|
-
};
|
|
80
|
-
declare function InfiniteQueryOptions({
|
|
81
|
-
name,
|
|
82
|
-
clientName,
|
|
83
|
-
initialPageParam,
|
|
84
|
-
cursorParam,
|
|
85
|
-
nextParam,
|
|
86
|
-
previousParam,
|
|
87
|
-
typeSchemas,
|
|
88
|
-
paramsCasing,
|
|
89
|
-
paramsType,
|
|
90
|
-
dataReturnType,
|
|
91
|
-
pathParamsType,
|
|
92
|
-
queryParam,
|
|
93
|
-
queryKeyName
|
|
94
|
-
}: Props$9): FabricReactNode;
|
|
95
|
-
declare namespace InfiniteQueryOptions {
|
|
96
|
-
var getParams: ({
|
|
97
|
-
paramsType,
|
|
98
|
-
paramsCasing,
|
|
99
|
-
pathParamsType,
|
|
100
|
-
typeSchemas
|
|
101
|
-
}: GetParamsProps$8) => FunctionParams;
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/components/Mutation.d.ts
|
|
105
|
-
type Props$8 = {
|
|
106
|
-
/**
|
|
107
|
-
* Name of the function
|
|
108
|
-
*/
|
|
109
|
-
name: string;
|
|
110
|
-
typeName: string;
|
|
111
|
-
mutationOptionsName: string;
|
|
112
|
-
mutationKeyName: string;
|
|
113
|
-
typeSchemas: OperationSchemas;
|
|
114
|
-
operation: Operation;
|
|
115
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
116
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
117
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
118
|
-
customOptions: PluginReactQuery['resolvedOptions']['customOptions'];
|
|
119
|
-
};
|
|
120
|
-
declare function Mutation({
|
|
121
|
-
name,
|
|
122
|
-
mutationOptionsName,
|
|
123
|
-
paramsCasing,
|
|
124
|
-
pathParamsType,
|
|
125
|
-
dataReturnType,
|
|
126
|
-
typeSchemas,
|
|
127
|
-
operation,
|
|
128
|
-
mutationKeyName,
|
|
129
|
-
customOptions
|
|
130
|
-
}: Props$8): FabricReactNode;
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region src/components/MutationKey.d.ts
|
|
133
|
-
type Props$7 = {
|
|
134
|
-
name: string;
|
|
135
|
-
typeName: string;
|
|
136
|
-
typeSchemas: OperationSchemas;
|
|
137
|
-
operation: Operation;
|
|
138
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
139
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
140
|
-
transformer: Transformer | undefined;
|
|
141
|
-
};
|
|
142
|
-
type GetParamsProps$7 = {
|
|
143
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
144
|
-
typeSchemas: OperationSchemas;
|
|
145
|
-
};
|
|
146
|
-
declare function MutationKey({
|
|
147
|
-
name,
|
|
148
|
-
typeSchemas,
|
|
149
|
-
pathParamsType,
|
|
150
|
-
paramsCasing,
|
|
151
|
-
operation,
|
|
152
|
-
typeName,
|
|
153
|
-
transformer
|
|
154
|
-
}: Props$7): FabricReactNode;
|
|
155
|
-
declare namespace MutationKey {
|
|
156
|
-
var getParams: ({}: GetParamsProps$7) => FunctionParams;
|
|
157
|
-
var getTransformer: Transformer;
|
|
158
|
-
}
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region src/components/MutationOptions.d.ts
|
|
161
|
-
type Props$6 = {
|
|
162
|
-
name: string;
|
|
163
|
-
clientName: string;
|
|
164
|
-
mutationKeyName: string;
|
|
165
|
-
typeSchemas: OperationSchemas;
|
|
166
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
167
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
168
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
169
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
170
|
-
};
|
|
171
|
-
type GetParamsProps$6 = {
|
|
172
|
-
typeSchemas: OperationSchemas;
|
|
173
|
-
};
|
|
174
|
-
declare function MutationOptions({
|
|
175
|
-
name,
|
|
176
|
-
clientName,
|
|
177
|
-
dataReturnType,
|
|
178
|
-
typeSchemas,
|
|
179
|
-
paramsCasing,
|
|
180
|
-
paramsType,
|
|
181
|
-
pathParamsType,
|
|
182
|
-
mutationKeyName
|
|
183
|
-
}: Props$6): FabricReactNode;
|
|
184
|
-
declare namespace MutationOptions {
|
|
185
|
-
var getParams: ({
|
|
186
|
-
typeSchemas
|
|
187
|
-
}: GetParamsProps$6) => FunctionParams;
|
|
188
|
-
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/components/Query.d.ts
|
|
191
|
-
type Props$5 = {
|
|
192
|
-
/**
|
|
193
|
-
* Name of the function
|
|
194
|
-
*/
|
|
195
|
-
name: string;
|
|
196
|
-
queryOptionsName: string;
|
|
197
|
-
queryKeyName: string;
|
|
198
|
-
queryKeyTypeName: string;
|
|
199
|
-
typeSchemas: OperationSchemas;
|
|
200
|
-
operation: Operation;
|
|
201
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
202
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
203
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
204
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
205
|
-
customOptions: PluginReactQuery['resolvedOptions']['customOptions'];
|
|
206
|
-
};
|
|
207
|
-
type GetParamsProps$5 = {
|
|
208
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
209
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
210
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
211
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
212
|
-
typeSchemas: OperationSchemas;
|
|
213
|
-
};
|
|
214
|
-
declare function Query({
|
|
215
|
-
name,
|
|
216
|
-
queryKeyTypeName,
|
|
217
|
-
queryOptionsName,
|
|
218
|
-
queryKeyName,
|
|
219
|
-
paramsType,
|
|
220
|
-
paramsCasing,
|
|
221
|
-
pathParamsType,
|
|
222
|
-
dataReturnType,
|
|
223
|
-
typeSchemas,
|
|
224
|
-
operation,
|
|
225
|
-
customOptions
|
|
226
|
-
}: Props$5): FabricReactNode;
|
|
227
|
-
declare namespace Query {
|
|
228
|
-
var getParams: ({
|
|
229
|
-
paramsType,
|
|
230
|
-
paramsCasing,
|
|
231
|
-
pathParamsType,
|
|
232
|
-
dataReturnType,
|
|
233
|
-
typeSchemas
|
|
234
|
-
}: GetParamsProps$5) => FunctionParams;
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/components/QueryKey.d.ts
|
|
238
|
-
type Props$4 = {
|
|
239
|
-
name: string;
|
|
240
|
-
typeName: string;
|
|
241
|
-
typeSchemas: OperationSchemas;
|
|
242
|
-
operation: Operation;
|
|
243
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
244
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
245
|
-
transformer: Transformer | undefined;
|
|
246
|
-
};
|
|
247
|
-
type GetParamsProps$4 = {
|
|
248
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
249
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
250
|
-
typeSchemas: OperationSchemas;
|
|
251
|
-
};
|
|
252
|
-
declare function QueryKey({
|
|
253
|
-
name,
|
|
254
|
-
typeSchemas,
|
|
255
|
-
paramsCasing,
|
|
256
|
-
pathParamsType,
|
|
257
|
-
operation,
|
|
258
|
-
typeName,
|
|
259
|
-
transformer
|
|
260
|
-
}: Props$4): FabricReactNode;
|
|
261
|
-
declare namespace QueryKey {
|
|
262
|
-
var getParams: ({
|
|
263
|
-
pathParamsType,
|
|
264
|
-
paramsCasing,
|
|
265
|
-
typeSchemas
|
|
266
|
-
}: GetParamsProps$4) => FunctionParams;
|
|
267
|
-
var getTransformer: Transformer;
|
|
268
|
-
}
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region src/components/QueryOptions.d.ts
|
|
271
|
-
type Props$3 = {
|
|
272
|
-
name: string;
|
|
273
|
-
clientName: string;
|
|
274
|
-
queryKeyName: string;
|
|
275
|
-
typeSchemas: OperationSchemas;
|
|
276
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
277
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
278
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
279
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
280
|
-
};
|
|
281
|
-
type GetParamsProps$3 = {
|
|
282
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
283
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
284
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
285
|
-
typeSchemas: OperationSchemas;
|
|
286
|
-
};
|
|
287
|
-
declare function QueryOptions({
|
|
288
|
-
name,
|
|
289
|
-
clientName,
|
|
290
|
-
dataReturnType,
|
|
291
|
-
typeSchemas,
|
|
292
|
-
paramsCasing,
|
|
293
|
-
paramsType,
|
|
294
|
-
pathParamsType,
|
|
295
|
-
queryKeyName
|
|
296
|
-
}: Props$3): FabricReactNode;
|
|
297
|
-
declare namespace QueryOptions {
|
|
298
|
-
var getParams: ({
|
|
299
|
-
paramsType,
|
|
300
|
-
paramsCasing,
|
|
301
|
-
pathParamsType,
|
|
302
|
-
typeSchemas
|
|
303
|
-
}: GetParamsProps$3) => FunctionParams;
|
|
304
|
-
}
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/components/SuspenseInfiniteQuery.d.ts
|
|
307
|
-
type Props$2 = {
|
|
308
|
-
/**
|
|
309
|
-
* Name of the function
|
|
310
|
-
*/
|
|
311
|
-
name: string;
|
|
312
|
-
queryOptionsName: string;
|
|
313
|
-
queryKeyName: string;
|
|
314
|
-
queryKeyTypeName: string;
|
|
315
|
-
typeSchemas: OperationSchemas;
|
|
316
|
-
operation: Operation;
|
|
317
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
318
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
319
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
320
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
321
|
-
customOptions: PluginReactQuery['resolvedOptions']['customOptions'];
|
|
322
|
-
initialPageParam: Infinite['initialPageParam'];
|
|
323
|
-
queryParam?: Infinite['queryParam'];
|
|
324
|
-
};
|
|
325
|
-
type GetParamsProps$2 = {
|
|
326
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
327
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
328
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
329
|
-
typeSchemas: OperationSchemas;
|
|
330
|
-
pageParamGeneric: string;
|
|
331
|
-
};
|
|
332
|
-
declare function SuspenseInfiniteQuery({
|
|
333
|
-
name,
|
|
334
|
-
queryKeyTypeName,
|
|
335
|
-
queryOptionsName,
|
|
336
|
-
queryKeyName,
|
|
337
|
-
paramsType,
|
|
338
|
-
paramsCasing,
|
|
339
|
-
pathParamsType,
|
|
340
|
-
dataReturnType,
|
|
341
|
-
typeSchemas,
|
|
342
|
-
operation,
|
|
343
|
-
customOptions,
|
|
344
|
-
initialPageParam,
|
|
345
|
-
queryParam
|
|
346
|
-
}: Props$2): FabricReactNode;
|
|
347
|
-
declare namespace SuspenseInfiniteQuery {
|
|
348
|
-
var getParams: ({
|
|
349
|
-
paramsType,
|
|
350
|
-
paramsCasing,
|
|
351
|
-
pathParamsType,
|
|
352
|
-
typeSchemas,
|
|
353
|
-
pageParamGeneric
|
|
354
|
-
}: GetParamsProps$2) => FunctionParams;
|
|
355
|
-
}
|
|
356
|
-
//#endregion
|
|
357
|
-
//#region src/components/SuspenseInfiniteQueryOptions.d.ts
|
|
358
|
-
type Props$1 = {
|
|
359
|
-
name: string;
|
|
360
|
-
clientName: string;
|
|
361
|
-
queryKeyName: string;
|
|
362
|
-
typeSchemas: OperationSchemas;
|
|
363
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
364
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
365
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
366
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
367
|
-
initialPageParam: Infinite['initialPageParam'];
|
|
368
|
-
cursorParam: Infinite['cursorParam'];
|
|
369
|
-
nextParam: Infinite['nextParam'];
|
|
370
|
-
previousParam: Infinite['previousParam'];
|
|
371
|
-
queryParam: Infinite['queryParam'];
|
|
372
|
-
};
|
|
373
|
-
type GetParamsProps$1 = {
|
|
374
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
375
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
376
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
377
|
-
typeSchemas: OperationSchemas;
|
|
378
|
-
};
|
|
379
|
-
declare function SuspenseInfiniteQueryOptions({
|
|
380
|
-
name,
|
|
381
|
-
clientName,
|
|
382
|
-
initialPageParam,
|
|
383
|
-
cursorParam,
|
|
384
|
-
nextParam,
|
|
385
|
-
previousParam,
|
|
386
|
-
typeSchemas,
|
|
387
|
-
paramsCasing,
|
|
388
|
-
paramsType,
|
|
389
|
-
dataReturnType,
|
|
390
|
-
pathParamsType,
|
|
391
|
-
queryParam,
|
|
392
|
-
queryKeyName
|
|
393
|
-
}: Props$1): FabricReactNode;
|
|
394
|
-
declare namespace SuspenseInfiniteQueryOptions {
|
|
395
|
-
var getParams: ({
|
|
396
|
-
paramsType,
|
|
397
|
-
paramsCasing,
|
|
398
|
-
pathParamsType,
|
|
399
|
-
typeSchemas
|
|
400
|
-
}: GetParamsProps$1) => FunctionParams;
|
|
401
|
-
}
|
|
402
|
-
//#endregion
|
|
403
|
-
//#region src/components/SuspenseQuery.d.ts
|
|
404
|
-
type Props = {
|
|
405
|
-
/**
|
|
406
|
-
* Name of the function
|
|
407
|
-
*/
|
|
408
|
-
name: string;
|
|
409
|
-
queryOptionsName: string;
|
|
410
|
-
queryKeyName: string;
|
|
411
|
-
queryKeyTypeName: string;
|
|
412
|
-
typeSchemas: OperationSchemas;
|
|
413
|
-
operation: Operation;
|
|
414
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
415
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
416
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
417
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
418
|
-
customOptions: PluginReactQuery['resolvedOptions']['customOptions'];
|
|
419
|
-
};
|
|
420
|
-
type GetParamsProps = {
|
|
421
|
-
paramsCasing: PluginReactQuery['resolvedOptions']['paramsCasing'];
|
|
422
|
-
paramsType: PluginReactQuery['resolvedOptions']['paramsType'];
|
|
423
|
-
pathParamsType: PluginReactQuery['resolvedOptions']['pathParamsType'];
|
|
424
|
-
dataReturnType: PluginReactQuery['resolvedOptions']['client']['dataReturnType'];
|
|
425
|
-
typeSchemas: OperationSchemas;
|
|
426
|
-
};
|
|
427
|
-
/**
|
|
428
|
-
* Generates a strongly-typed React Query Suspense hook function for an OpenAPI operation.
|
|
429
|
-
*
|
|
430
|
-
* The generated function wraps `useSuspenseQuery`, providing type-safe parameters and return types based on the supplied OpenAPI schemas and configuration.
|
|
431
|
-
*
|
|
432
|
-
* @returns A React component source node containing the generated query function.
|
|
433
|
-
*/
|
|
434
|
-
declare function SuspenseQuery({
|
|
435
|
-
name,
|
|
436
|
-
queryKeyTypeName,
|
|
437
|
-
queryOptionsName,
|
|
438
|
-
queryKeyName,
|
|
439
|
-
paramsType,
|
|
440
|
-
paramsCasing,
|
|
441
|
-
pathParamsType,
|
|
442
|
-
dataReturnType,
|
|
443
|
-
typeSchemas,
|
|
444
|
-
operation,
|
|
445
|
-
customOptions
|
|
446
|
-
}: Props): FabricReactNode;
|
|
447
|
-
declare namespace SuspenseQuery {
|
|
448
|
-
var getParams: ({
|
|
449
|
-
paramsType,
|
|
450
|
-
paramsCasing,
|
|
451
|
-
pathParamsType,
|
|
452
|
-
dataReturnType,
|
|
453
|
-
typeSchemas
|
|
454
|
-
}: GetParamsProps) => FunctionParams;
|
|
455
|
-
}
|
|
456
|
-
//#endregion
|
|
457
|
-
export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, MutationOptions, Query, QueryKey, QueryOptions, SuspenseInfiniteQuery, SuspenseInfiniteQueryOptions, SuspenseQuery };
|
|
458
|
-
//# sourceMappingURL=components.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generators-FaoMN0Iz.cjs","names":["path","operations","fs","File","Function","File","Type","pluginClientName","pluginTsName","pluginZodName","File","path","QueryKey","Client","InfiniteQueryOptions","InfiniteQuery","pluginTsName","pluginZodName","pluginClientName","File","path","MutationKey","Client","MutationOptions","Mutation","pluginClientName","pluginTsName","pluginZodName","File","path","QueryKey","Client","QueryOptions","Query","pluginClientName","pluginTsName","pluginZodName","File","path","QueryKey","Client","SuspenseInfiniteQueryOptions","SuspenseInfiniteQuery","pluginClientName","pluginTsName","pluginZodName","File","path","QueryKey","Client","QueryOptions","SuspenseQuery"],"sources":["../src/generators/customHookOptionsFileGenerator.tsx","../src/generators/hookOptionsGenerator.tsx","../src/generators/infiniteQueryGenerator.tsx","../src/generators/mutationGenerator.tsx","../src/generators/queryGenerator.tsx","../src/generators/suspenseInfiniteQueryGenerator.tsx","../src/generators/suspenseQueryGenerator.tsx"],"sourcesContent":["import fs from 'node:fs'\nimport path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport type { Operation } from '@kubb/oas'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { File, Function } from '@kubb/react-fabric'\nimport type { PluginReactQuery } from '../types'\n\nexport const customHookOptionsFileGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query-custom-hook-options-file',\n Operations({ operations, generator, plugin, config }) {\n const {\n options,\n options: { output },\n key: pluginKey,\n } = plugin\n const pluginManager = usePluginManager()\n\n const { getFile } = useOperationManager(generator)\n\n if (!options.customOptions) {\n return null\n }\n\n const override = output.override ?? config.output.override ?? false\n const { importPath, name } = options.customOptions\n\n const root = path.resolve(config.root, config.output.path)\n\n const reactQueryImportPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const getHookFilePath = (operations: Operation[]) => {\n const firstOperation = operations[0]\n if (firstOperation != null) {\n // Get the file of the first generated hook\n return getFile(firstOperation, { prefix: 'use' }).path\n }\n // Get the index file of the hooks directory\n return pluginManager.getFile({ name: 'index', extname: '.ts', pluginKey }).path\n }\n\n const ensureExtension = (filePath: string, extname: string) => {\n if (path.extname(filePath) === '') {\n return filePath + extname\n }\n return filePath\n }\n\n const getExternalFile = (filePath: string, rootPath: string) => {\n const actualFilePath = ensureExtension(filePath, '.ts')\n return {\n baseName: path.basename(actualFilePath) as `${string}.${string}`,\n name: path.basename(actualFilePath, path.extname(actualFilePath)),\n path: path.resolve(rootPath, actualFilePath),\n }\n }\n\n const basePath = path.dirname(getHookFilePath(operations))\n const file = getExternalFile(importPath, basePath)\n\n if (fs.existsSync(file.path) && !override) {\n return null\n }\n\n return (\n <File baseName={file.baseName} path={file.path}>\n <File.Import name={['QueryClient']} path={reactQueryImportPath} isTypeOnly />\n <File.Import name={['useQueryClient']} path={reactQueryImportPath} />\n <File.Import name={['HookOptions']} root={file.path} path={path.resolve(root, './index.ts')} />\n <File.Source name={file.name} isExportable isIndexable>\n <Function name=\"getCustomHookOptions\" params=\"{ queryClient }: { queryClient: QueryClient }\" returnType=\"Partial<HookOptions>\">\n {`return {\n // TODO: Define custom hook options here\n // Example:\n // useUpdatePetHook: {\n // onSuccess: () => {\n // void queryClient.invalidateQueries({ queryKey: ['pet'] })\n // }\n // }\n }`}\n </Function>\n <Function\n name={name}\n generics=\"T extends keyof HookOptions\"\n params=\"{ hookName, operationId }: { hookName: T, operationId: string }\"\n returnType=\"HookOptions[T]\"\n export\n >\n {`const queryClient = useQueryClient()\n const customOptions = getCustomHookOptions({ queryClient })\n return customOptions[hookName] ?? {}`}\n </Function>\n </File.Source>\n </File>\n )\n },\n})\n","import { usePluginManager } from '@kubb/core/hooks'\nimport type { Operation } from '@kubb/oas'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { File, Type } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport type { PluginReactQuery } from '../types'\n\nexport const hookOptionsGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query-hook-options',\n Operations({ operations, plugin, generator }) {\n const {\n options,\n options: { output },\n key: pluginKey,\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getName, getFile } = useOperationManager(generator)\n\n if (!options.customOptions) {\n return null\n }\n\n const name = 'HookOptions'\n const file = pluginManager.getFile({ name, extname: '.ts', pluginKey })\n\n const getOperationOptions = (operation: Operation) => {\n const operationOptions = generator.getOptions(operation, operation.method)\n return { ...options, ...operationOptions }\n }\n\n const isQuery = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return typeof operationOptions.query === 'boolean' ? true : operationOptions.query?.methods.some((method) => operation.method === method)\n }\n\n const isMutation = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return (\n operationOptions.mutation !== false &&\n !isQuery(operation) &&\n difference(operationOptions.mutation ? operationOptions.mutation.methods : [], operationOptions.query ? operationOptions.query.methods : []).some(\n (method) => operation.method === method,\n )\n )\n }\n\n const isSuspense = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return !!operationOptions.suspense\n }\n\n const isInfinite = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n const infiniteOptions = operationOptions.infinite && typeof operationOptions.infinite === 'object' ? operationOptions.infinite : undefined\n return !!infiniteOptions\n }\n\n // Query/mutation hooks\n const getHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use' })\n }\n\n const getHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use' })\n }\n\n // Query hooks\n const getQueryHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'QueryOptions' })\n }\n\n const getQueryHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getQueryHookOptions(operation)]} root={file.path} path={getHookFile(operation).path} />\n }\n\n // Mutation hooks\n const getMutationHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'MutationOptions' })\n }\n\n const getMutationHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getMutationHookOptions(operation)]} root={file.path} path={getHookFile(operation).path} />\n }\n\n // Suspense hooks\n const getSuspenseHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'suspense' })\n }\n\n const getSuspenseHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'suspense' })\n }\n\n const getSuspenseHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'SuspenseQueryOptions' })\n }\n\n const getSuspenseHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getSuspenseHookOptions(operation)]} root={file.path} path={getSuspenseHookFile(operation).path} />\n }\n\n // Infinite hooks\n const getInfiniteHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'infinite' })\n }\n\n const getInfiniteHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'infinite' })\n }\n\n const getInfiniteHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'InfiniteQueryOptions' })\n }\n\n const getInfiniteHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getInfiniteHookOptions(operation)]} root={file.path} path={getInfiniteHookFile(operation).path} />\n }\n\n // Suspense infinite hooks\n const getSuspenseInfiniteHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'suspenseInfinite' })\n }\n\n const getSuspenseInfiniteHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'suspenseInfinite' })\n }\n\n const getSuspenseInfiniteHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'SuspenseInfiniteQueryOptions' })\n }\n\n const getSuspenseInfiniteHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getSuspenseInfiniteHookOptions(operation)]} root={file.path} path={getSuspenseInfiniteHookFile(operation).path} />\n }\n\n const imports = operations\n .flatMap((operation) => {\n if (isQuery(operation)) {\n return [\n getQueryHookOptionsImport(operation),\n isSuspense(operation) ? getSuspenseHookOptionsImport(operation) : undefined,\n isInfinite(operation) ? getInfiniteHookOptionsImport(operation) : undefined,\n isSuspense(operation) && isInfinite(operation) ? getSuspenseInfiniteHookOptionsImport(operation) : undefined,\n ].filter(Boolean)\n }\n if (isMutation(operation)) {\n return [getMutationHookOptionsImport(operation)]\n }\n return []\n })\n .filter(Boolean)\n\n const hookOptions = operations.reduce(\n (acc, operation) => {\n if (isQuery(operation)) {\n acc[getHookName(operation)] = `Partial<ReturnType<typeof ${getQueryHookOptions(operation)}>>`\n if (isSuspense(operation)) {\n acc[getSuspenseHookName(operation)] = `Partial<ReturnType<typeof ${getSuspenseHookOptions(operation)}>>`\n }\n if (isInfinite(operation)) {\n acc[getInfiniteHookName(operation)] = `Partial<ReturnType<typeof ${getInfiniteHookOptions(operation)}>>`\n }\n if (isSuspense(operation) && isInfinite(operation)) {\n acc[getSuspenseInfiniteHookName(operation)] = `Partial<ReturnType<typeof ${getSuspenseInfiniteHookOptions(operation)}>>`\n }\n }\n if (isMutation(operation)) {\n acc[getHookName(operation)] = `Partial<ReturnType<typeof ${getMutationHookOptions(operation)}>>`\n }\n return acc\n },\n {} as Record<string, string>,\n )\n\n return (\n <File\n baseName={file.baseName}\n path={file.path}\n meta={file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {imports}\n <File.Source name={name} isExportable isIndexable isTypeOnly>\n <Type export name={name}>\n {`{ ${Object.keys(hookOptions).map((key) => `${JSON.stringify(key)}: ${hookOptions[key]}`)} }`}\n </Type>\n </File.Source>\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { InfiniteQuery, InfiniteQueryOptions, QueryKey } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const infiniteQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-infinite-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n const infiniteOptions = options.infinite && typeof options.infinite === 'object' ? options.infinite : undefined\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use', suffix: 'infinite' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'infinite' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n suffix: 'infinite',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'InfiniteQueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'InfiniteQueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'InfiniteQueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n if (!isQuery || isMutation || !infiniteOptions) {\n return null\n }\n\n const normalizeKey = (key?: string | null) => (key ?? '').replace(/\\?$/, '')\n const queryParam = infiniteOptions.queryParam\n const cursorParam = infiniteOptions.cursorParam\n const queryParamKeys = type.schemas.queryParams?.keys ?? []\n const responseKeys = [...(type.schemas.responses?.flatMap((item) => item.keys ?? []) ?? []), ...(type.schemas.response?.keys ?? [])]\n\n const hasQueryParam = queryParam ? queryParamKeys.some((key) => normalizeKey(key) === queryParam) : false\n const hasCursorParam = cursorParam ? responseKeys.some((key) => normalizeKey(key) === cursorParam) : true\n\n if (!hasQueryParam || !hasCursorParam) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n <File.Import name={'fetch'} path={options.client.importPath} />\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n <File.Import name={['fetch']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} />\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && (\n <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/config.ts')} />\n )}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n {infiniteOptions && (\n <>\n <File.Import name={['InfiniteData']} isTypeOnly path={importPath} />\n <File.Import name={['infiniteQueryOptions']} path={importPath} />\n <InfiniteQueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n cursorParam={infiniteOptions.cursorParam}\n nextParam={infiniteOptions.nextParam}\n previousParam={infiniteOptions.previousParam}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['useInfiniteQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'InfiniteQueryObserverOptions', 'UseInfiniteQueryResult']} path={importPath} isTypeOnly />\n <InfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Mutation, MutationKey } from '../components'\nimport { MutationOptions } from '../components/MutationOptions.tsx'\nimport type { PluginReactQuery } from '../types'\n\nexport const mutationGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query',\n Operation({ config, plugin, operation, generator }) {\n const {\n options,\n options: { output },\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method)\n const isMutation =\n options.mutation !== false &&\n !isQuery &&\n difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method)\n\n const importPath = options.mutation ? options.mutation.importPath : '@tanstack/react-query'\n\n const mutation = {\n name: getName(operation, { type: 'function', prefix: 'use' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const mutationOptions = {\n name: getName(operation, { type: 'function', suffix: 'MutationOptions' }),\n }\n\n const mutationKey = {\n name: getName(operation, { type: 'const', suffix: 'MutationKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'MutationKey' }),\n }\n\n if (!isMutation) {\n return null\n }\n\n return (\n <File\n baseName={mutation.file.baseName}\n path={mutation.file.path}\n meta={mutation.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={mutation.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n <File.Import name={'fetch'} path={options.client.importPath} />\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n <File.Import name={['fetch']} root={mutation.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} />\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={mutation.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import\n name={['ResponseConfig']}\n root={mutation.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n )}\n </>\n )}\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={mutation.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && (\n <File.Import name={['buildFormData']} root={mutation.file.path} path={path.resolve(config.root, config.output.path, '.kubb/config.ts')} />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={mutation.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <MutationKey\n name={mutationKey.name}\n typeName={mutationKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n transformer={options.mutationKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['mutationOptions']} path={importPath} />\n\n <MutationOptions\n name={mutationOptions.name}\n clientName={client.name}\n mutationKeyName={mutationKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n />\n {options.mutation && (\n <>\n <File.Import name={['useMutation']} path={importPath} />\n <File.Import name={['UseMutationOptions', 'UseMutationResult', 'QueryClient']} path={importPath} isTypeOnly />\n <Mutation\n name={mutation.name}\n mutationOptionsName={mutationOptions.name}\n typeName={mutation.typeName}\n typeSchemas={type.schemas}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n mutationKeyName={mutationKey.name}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const queryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query',\n Operation({ config, plugin, operation, generator }) {\n const {\n options,\n options: { output },\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'QueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'QueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'QueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, {\n pluginKey: [pluginTsName],\n type: 'type',\n }),\n }\n\n const zod = {\n // grouping is coming from react-query instead of zod option, we need to pass the options of zod instead\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, {\n pluginKey: [pluginZodName],\n type: 'function',\n }),\n }\n\n if (!isQuery || isMutation) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n <File.Import name={'fetch'} path={options.client.importPath} />\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n <File.Import name={['fetch']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} />\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && (\n <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/config.ts')} />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsType={options.paramsType}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n />\n {options.query && (\n <>\n <File.Import name={['useQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'QueryObserverOptions', 'UseQueryResult', 'QueryClient']} path={importPath} isTypeOnly />\n <Query\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { QueryKey, SuspenseInfiniteQuery, SuspenseInfiniteQueryOptions } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const suspenseInfiniteQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-suspense-infinite-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n const isSuspense = !!options.suspense\n const infiniteOptions = options.infinite && typeof options.infinite === 'object' ? options.infinite : undefined\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use', suffix: 'suspenseInfinite' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'suspenseInfinite' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n suffix: 'suspenseInfinite',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'SuspenseInfiniteQueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'SuspenseInfiniteQueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'SuspenseInfiniteQueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n if (!isQuery || isMutation || !isSuspense || !infiniteOptions) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n <File.Import name={'fetch'} path={options.client.importPath} />\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n <File.Import name={['fetch']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} />\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && (\n <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/config.ts')} />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['InfiniteData']} isTypeOnly path={importPath} />\n <File.Import name={['infiniteQueryOptions']} path={importPath} />\n <SuspenseInfiniteQueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n cursorParam={infiniteOptions.cursorParam}\n nextParam={infiniteOptions.nextParam}\n previousParam={infiniteOptions.previousParam}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['useSuspenseInfiniteQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'UseSuspenseInfiniteQueryOptions', 'UseSuspenseInfiniteQueryResult']} path={importPath} isTypeOnly />\n <SuspenseInfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { QueryKey, QueryOptions, SuspenseQuery } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const suspenseQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-suspense-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n\n const isSuspense = !!options.suspense\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, {\n type: 'function',\n prefix: 'use',\n suffix: 'suspense',\n }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'suspense' }),\n }\n\n const hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n suffix: 'suspense',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, {\n type: 'function',\n suffix: 'SuspenseQueryOptions',\n }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'SuspenseQueryKey' }),\n typeName: getName(operation, {\n type: 'type',\n suffix: 'SuspenseQueryKey',\n }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, {\n pluginKey: [pluginTsName],\n type: 'type',\n }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, {\n pluginKey: [pluginZodName],\n type: 'function',\n }),\n }\n\n if (!isQuery || isMutation || !isSuspense) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n <File.Import name={'fetch'} path={options.client.importPath} />\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n <File.Import name={['fetch']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} />\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && (\n <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(config.root, config.output.path, '.kubb/config.ts')} />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType}\n />\n {options.suspense && (\n <>\n <File.Import name={['useSuspenseQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'UseSuspenseQueryOptions', 'UseSuspenseQueryResult']} path={importPath} isTypeOnly />\n\n <SuspenseQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;AASA,MAAa,uFAAwE;CACnF,MAAM;CACN,WAAW,EAAE,YAAY,WAAW,QAAQ,UAAU;EACpD,MAAM,EACJ,SACA,SAAS,EAAE,UACX,KAAK,cACH;EACJ,MAAM,wDAAkC;EAExC,MAAM,EAAE,4DAAgC,UAAU;AAElD,MAAI,CAAC,QAAQ,cACX,QAAO;EAGT,MAAM,WAAW,OAAO,YAAY,OAAO,OAAO,YAAY;EAC9D,MAAM,EAAE,YAAY,SAAS,QAAQ;EAErC,MAAM,OAAOA,kBAAK,QAAQ,OAAO,MAAM,O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