@kubb/plugin-vue-query 3.0.0-beta.10 → 3.0.0-beta.12
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/{chunk-PGNSMLGU.cjs → chunk-A7SD37VK.cjs} +103 -97
- package/dist/chunk-A7SD37VK.cjs.map +1 -0
- package/dist/{chunk-DWWRCRGY.js → chunk-DHJLKFYS.js} +22 -10
- package/dist/chunk-DHJLKFYS.js.map +1 -0
- package/dist/{chunk-5MY3SE2R.cjs → chunk-J4RZRRHQ.cjs} +22 -10
- package/dist/chunk-J4RZRRHQ.cjs.map +1 -0
- package/dist/{chunk-YQOJHRKU.js → chunk-O4EGNKUX.js} +95 -89
- package/dist/chunk-O4EGNKUX.js.map +1 -0
- package/dist/components.cjs +8 -8
- package/dist/components.d.cts +7 -5
- package/dist/components.d.ts +7 -5
- package/dist/components.js +1 -1
- package/dist/generators.cjs +5 -5
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +2 -2
- package/dist/index.cjs +20 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -21
- package/dist/index.js.map +1 -1
- package/dist/{types-Dx6yZliF.d.cts → types-C8LfCZUP.d.cts} +187 -22
- package/dist/{types-Dx6yZliF.d.ts → types-C8LfCZUP.d.ts} +187 -22
- package/package.json +11 -11
- package/src/components/MutationKey.tsx +11 -5
- package/src/components/QueryKey.tsx +17 -7
- package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +1 -1
- package/src/generators/__snapshots__/clientGetImportPath.ts +1 -1
- package/src/generators/__snapshots__/clientPostImportPath.ts +2 -2
- package/src/generators/__snapshots__/findByTags.ts +1 -1
- package/src/generators/__snapshots__/findByTagsObject.ts +1 -1
- package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +1 -1
- package/src/generators/__snapshots__/findByTagsWithCustomQueryKey.ts +2 -2
- package/src/generators/__snapshots__/findByTagsWithZod.ts +1 -1
- package/src/generators/__snapshots__/findInfiniteByTags.ts +1 -1
- package/src/generators/__snapshots__/findInfiniteByTagsCursor.ts +1 -1
- package/src/generators/__snapshots__/postAsQuery.ts +1 -1
- package/src/generators/__snapshots__/updatePetById.ts +2 -2
- package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +2 -2
- package/src/generators/infiniteQueryGenerator.tsx +38 -33
- package/src/generators/mutationGenerator.tsx +22 -16
- package/src/generators/queryGenerator.tsx +22 -18
- package/src/plugin.ts +18 -19
- package/src/types.ts +26 -13
- package/dist/chunk-5MY3SE2R.cjs.map +0 -1
- package/dist/chunk-DWWRCRGY.js.map +0 -1
- package/dist/chunk-PGNSMLGU.cjs.map +0 -1
- package/dist/chunk-YQOJHRKU.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Client, Operations, QueryKey, QueryOptions, Query, MutationKey, Mutation, InfiniteQueryOptions, InfiniteQuery } from './chunk-
|
|
1
|
+
import { Client, Operations, QueryKey, QueryOptions, Query, MutationKey, Mutation, InfiniteQueryOptions, InfiniteQuery } from './chunk-DHJLKFYS.js';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { createPlugin, FileManager, PluginManager } from '@kubb/core';
|
|
4
4
|
import { camelCase } from '@kubb/core/transformers';
|
|
@@ -7,7 +7,7 @@ import { pluginZodName } from '@kubb/plugin-zod';
|
|
|
7
7
|
import { useOperationManager } from '@kubb/plugin-oas/hooks';
|
|
8
8
|
import { pluginTsName } from '@kubb/plugin-ts';
|
|
9
9
|
import { useApp, File, Function } from '@kubb/react';
|
|
10
|
-
import { jsxs, jsx } from '@kubb/react/jsx-runtime';
|
|
10
|
+
import { jsxs, jsx, Fragment } from '@kubb/react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
var clientGenerator = createReactGenerator({
|
|
13
13
|
name: "client",
|
|
@@ -141,6 +141,7 @@ createPlugin((options) => {
|
|
|
141
141
|
pathParamsType = "inline",
|
|
142
142
|
paramsType = "inline",
|
|
143
143
|
operations = false,
|
|
144
|
+
baseURL,
|
|
144
145
|
generators = [clientGenerator, group ? groupedClientGenerator : void 0, operations ? operationsGenerator : void 0].filter(Boolean),
|
|
145
146
|
importPath = "@kubb/plugin-client/client",
|
|
146
147
|
parser = "client"
|
|
@@ -155,7 +156,7 @@ createPlugin((options) => {
|
|
|
155
156
|
importPath,
|
|
156
157
|
paramsType,
|
|
157
158
|
pathParamsType: paramsType === "object" ? "object" : pathParamsType,
|
|
158
|
-
baseURL
|
|
159
|
+
baseURL
|
|
159
160
|
},
|
|
160
161
|
pre: [pluginOasName, parser === "zod" ? pluginZodName : void 0].filter(Boolean),
|
|
161
162
|
resolvePath(baseName, pathMode, options2) {
|
|
@@ -182,12 +183,12 @@ createPlugin((options) => {
|
|
|
182
183
|
const oas = await swaggerPlugin.context.getOas();
|
|
183
184
|
const root = path.resolve(this.config.root, this.config.output.path);
|
|
184
185
|
const mode = FileManager.getMode(path.resolve(root, output.path));
|
|
185
|
-
const
|
|
186
|
+
const baseURL2 = await swaggerPlugin.context.getBaseURL();
|
|
186
187
|
const operationGenerator = new OperationGenerator(
|
|
187
|
-
{
|
|
188
|
+
baseURL2 ? {
|
|
188
189
|
...this.plugin.options,
|
|
189
|
-
baseURL
|
|
190
|
-
},
|
|
190
|
+
baseURL: baseURL2
|
|
191
|
+
} : this.plugin.options,
|
|
191
192
|
{
|
|
192
193
|
oas,
|
|
193
194
|
pluginManager: this.pluginManager,
|
|
@@ -225,7 +226,7 @@ var queryGenerator = createReactGenerator({
|
|
|
225
226
|
} = useApp();
|
|
226
227
|
const { getSchemas, getName, getFile } = useOperationManager();
|
|
227
228
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
228
|
-
|
|
229
|
+
const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
|
|
229
230
|
const query = {
|
|
230
231
|
name: getName(operation, { type: "function", prefix: "use" }),
|
|
231
232
|
typeName: getName(operation, { type: "type" }),
|
|
@@ -250,13 +251,11 @@ var queryGenerator = createReactGenerator({
|
|
|
250
251
|
file: getFile(operation, { pluginKey: [pluginZodName] }),
|
|
251
252
|
schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: "function" })
|
|
252
253
|
};
|
|
253
|
-
if (!isQuery
|
|
254
|
+
if (!isQuery) {
|
|
254
255
|
return null;
|
|
255
256
|
}
|
|
256
257
|
return /* @__PURE__ */ jsxs(File, { baseName: query.file.baseName, path: query.file.path, meta: query.file.meta, banner: output?.banner, footer: output?.footer, children: [
|
|
257
258
|
options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: query.file.path, path: zod.file.path }),
|
|
258
|
-
/* @__PURE__ */ jsx(File.Import, { name: ["useQuery", "queryOptions"], path: options.query.importPath }),
|
|
259
|
-
/* @__PURE__ */ jsx(File.Import, { name: ["QueryKey", "WithRequired", "QueryObserverOptions", "UseQueryReturnType"], path: options.query.importPath, isTypeOnly: true }),
|
|
260
259
|
/* @__PURE__ */ jsx(File.Import, { name: ["unref"], path: "vue" }),
|
|
261
260
|
/* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
|
|
262
261
|
/* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
|
|
@@ -286,7 +285,7 @@ var queryGenerator = createReactGenerator({
|
|
|
286
285
|
operation,
|
|
287
286
|
pathParamsType: options.pathParamsType,
|
|
288
287
|
typeSchemas: type.schemas,
|
|
289
|
-
|
|
288
|
+
transformer: options.queryKey
|
|
290
289
|
}
|
|
291
290
|
),
|
|
292
291
|
/* @__PURE__ */ jsx(
|
|
@@ -295,7 +294,7 @@ var queryGenerator = createReactGenerator({
|
|
|
295
294
|
name: client.name,
|
|
296
295
|
isExportable: false,
|
|
297
296
|
isIndexable: false,
|
|
298
|
-
baseURL: options.baseURL,
|
|
297
|
+
baseURL: options.client.baseURL,
|
|
299
298
|
operation,
|
|
300
299
|
typeSchemas: type.schemas,
|
|
301
300
|
zodSchemas: zod.schemas,
|
|
@@ -305,6 +304,7 @@ var queryGenerator = createReactGenerator({
|
|
|
305
304
|
parser: options.parser
|
|
306
305
|
}
|
|
307
306
|
),
|
|
307
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["queryOptions"], path: importPath }),
|
|
308
308
|
/* @__PURE__ */ jsx(
|
|
309
309
|
QueryOptions,
|
|
310
310
|
{
|
|
@@ -316,20 +316,24 @@ var queryGenerator = createReactGenerator({
|
|
|
316
316
|
pathParamsType: options.pathParamsType
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
|
|
321
|
-
{
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
319
|
+
options.query && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
320
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["useQuery"], path: importPath }),
|
|
321
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["QueryKey", "QueryObserverOptions", "UseQueryReturnType"], path: importPath, isTypeOnly: true }),
|
|
322
|
+
/* @__PURE__ */ jsx(
|
|
323
|
+
Query,
|
|
324
|
+
{
|
|
325
|
+
name: query.name,
|
|
326
|
+
queryOptionsName: queryOptions.name,
|
|
327
|
+
typeSchemas: type.schemas,
|
|
328
|
+
paramsType: options.paramsType,
|
|
329
|
+
pathParamsType: options.pathParamsType,
|
|
330
|
+
operation,
|
|
331
|
+
dataReturnType: options.client.dataReturnType,
|
|
332
|
+
queryKeyName: queryKey.name,
|
|
333
|
+
queryKeyTypeName: queryKey.typeName
|
|
334
|
+
}
|
|
335
|
+
)
|
|
336
|
+
] })
|
|
333
337
|
] });
|
|
334
338
|
}
|
|
335
339
|
});
|
|
@@ -344,6 +348,7 @@ var mutationGenerator = createReactGenerator({
|
|
|
344
348
|
const { getSchemas, getName, getFile } = useOperationManager();
|
|
345
349
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
346
350
|
const isMutation = !isQuery && options.mutation && options.mutation.methods.some((method) => operation.method === method);
|
|
351
|
+
const importPath = options.mutation ? options.mutation.importPath : "@tanstack/vue-query";
|
|
347
352
|
const mutation = {
|
|
348
353
|
name: getName(operation, { type: "function", prefix: "use" }),
|
|
349
354
|
typeName: getName(operation, { type: "type" }),
|
|
@@ -365,13 +370,11 @@ var mutationGenerator = createReactGenerator({
|
|
|
365
370
|
name: getName(operation, { type: "const", suffix: "MutationKey" }),
|
|
366
371
|
typeName: getName(operation, { type: "type", suffix: "MutationKey" })
|
|
367
372
|
};
|
|
368
|
-
if (!isMutation
|
|
373
|
+
if (!isMutation) {
|
|
369
374
|
return null;
|
|
370
375
|
}
|
|
371
376
|
return /* @__PURE__ */ jsxs(File, { baseName: mutation.file.baseName, path: mutation.file.path, meta: mutation.file.meta, banner: output?.banner, footer: output?.footer, children: [
|
|
372
377
|
options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: mutation.file.path, path: zod.file.path }),
|
|
373
|
-
/* @__PURE__ */ jsx(File.Import, { name: ["useMutation"], path: options.mutation.importPath }),
|
|
374
|
-
/* @__PURE__ */ jsx(File.Import, { name: ["MutationObserverOptions"], path: options.mutation.importPath, isTypeOnly: true }),
|
|
375
378
|
/* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
|
|
376
379
|
/* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
|
|
377
380
|
/* @__PURE__ */ jsx(File.Import, { name: ["RequestConfig", "ResponseConfig"], path: options.client.importPath, isTypeOnly: true }),
|
|
@@ -399,7 +402,7 @@ var mutationGenerator = createReactGenerator({
|
|
|
399
402
|
operation,
|
|
400
403
|
pathParamsType: options.pathParamsType,
|
|
401
404
|
typeSchemas: type.schemas,
|
|
402
|
-
|
|
405
|
+
transformer: options.mutationKey
|
|
403
406
|
}
|
|
404
407
|
),
|
|
405
408
|
/* @__PURE__ */ jsx(
|
|
@@ -408,7 +411,7 @@ var mutationGenerator = createReactGenerator({
|
|
|
408
411
|
name: client.name,
|
|
409
412
|
isExportable: false,
|
|
410
413
|
isIndexable: false,
|
|
411
|
-
baseURL: options.baseURL,
|
|
414
|
+
baseURL: options.client.baseURL,
|
|
412
415
|
operation,
|
|
413
416
|
typeSchemas: type.schemas,
|
|
414
417
|
zodSchemas: zod.schemas,
|
|
@@ -418,20 +421,24 @@ var mutationGenerator = createReactGenerator({
|
|
|
418
421
|
parser: options.parser
|
|
419
422
|
}
|
|
420
423
|
),
|
|
421
|
-
/* @__PURE__ */
|
|
422
|
-
|
|
423
|
-
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
424
|
+
options.mutation && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
425
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["useMutation"], path: importPath }),
|
|
426
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["MutationObserverOptions"], path: importPath, isTypeOnly: true }),
|
|
427
|
+
/* @__PURE__ */ jsx(
|
|
428
|
+
Mutation,
|
|
429
|
+
{
|
|
430
|
+
name: mutation.name,
|
|
431
|
+
clientName: client.name,
|
|
432
|
+
typeName: mutation.typeName,
|
|
433
|
+
typeSchemas: type.schemas,
|
|
434
|
+
operation,
|
|
435
|
+
dataReturnType: options.client.dataReturnType,
|
|
436
|
+
paramsType: options.paramsType,
|
|
437
|
+
pathParamsType: options.pathParamsType,
|
|
438
|
+
mutationKeyName: mutationKey.name
|
|
439
|
+
}
|
|
440
|
+
)
|
|
441
|
+
] })
|
|
435
442
|
] });
|
|
436
443
|
}
|
|
437
444
|
});
|
|
@@ -446,6 +453,7 @@ var infiniteQueryGenerator = createReactGenerator({
|
|
|
446
453
|
const { getSchemas, getName, getFile } = useOperationManager();
|
|
447
454
|
const isQuery = typeof options.query === "boolean" ? options.query : !!options.query.methods?.some((method) => operation.method === method);
|
|
448
455
|
const isInfinite = isQuery && !!options.infinite;
|
|
456
|
+
const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
|
|
449
457
|
const query = {
|
|
450
458
|
name: getName(operation, { type: "function", prefix: "use", suffix: "infinite" }),
|
|
451
459
|
typeName: getName(operation, { type: "type" }),
|
|
@@ -470,20 +478,11 @@ var infiniteQueryGenerator = createReactGenerator({
|
|
|
470
478
|
file: getFile(operation, { pluginKey: [pluginZodName] }),
|
|
471
479
|
schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: "function" })
|
|
472
480
|
};
|
|
473
|
-
if (!isQuery || !isInfinite
|
|
481
|
+
if (!isQuery || !isInfinite) {
|
|
474
482
|
return null;
|
|
475
483
|
}
|
|
476
484
|
return /* @__PURE__ */ jsxs(File, { baseName: query.file.baseName, path: query.file.path, meta: query.file.meta, banner: output?.banner, footer: output?.footer, children: [
|
|
477
485
|
options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: query.file.path, path: zod.file.path }),
|
|
478
|
-
/* @__PURE__ */ jsx(File.Import, { name: ["useInfiniteQuery", "infiniteQueryOptions"], path: options.query.importPath }),
|
|
479
|
-
/* @__PURE__ */ jsx(
|
|
480
|
-
File.Import,
|
|
481
|
-
{
|
|
482
|
-
name: ["QueryKey", "WithRequired", "InfiniteQueryObserverOptions", "UseInfiniteQueryReturnType"],
|
|
483
|
-
path: options.query.importPath,
|
|
484
|
-
isTypeOnly: true
|
|
485
|
-
}
|
|
486
|
-
),
|
|
487
486
|
/* @__PURE__ */ jsx(File.Import, { name: ["unref"], path: "vue" }),
|
|
488
487
|
/* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
|
|
489
488
|
/* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
|
|
@@ -513,7 +512,7 @@ var infiniteQueryGenerator = createReactGenerator({
|
|
|
513
512
|
operation,
|
|
514
513
|
pathParamsType: options.pathParamsType,
|
|
515
514
|
typeSchemas: type.schemas,
|
|
516
|
-
|
|
515
|
+
transformer: options.queryKey
|
|
517
516
|
}
|
|
518
517
|
),
|
|
519
518
|
/* @__PURE__ */ jsx(
|
|
@@ -522,7 +521,7 @@ var infiniteQueryGenerator = createReactGenerator({
|
|
|
522
521
|
name: client.name,
|
|
523
522
|
isExportable: false,
|
|
524
523
|
isIndexable: false,
|
|
525
|
-
baseURL: options.baseURL,
|
|
524
|
+
baseURL: options.client.baseURL,
|
|
526
525
|
operation,
|
|
527
526
|
typeSchemas: type.schemas,
|
|
528
527
|
zodSchemas: zod.schemas,
|
|
@@ -532,39 +531,46 @@ var infiniteQueryGenerator = createReactGenerator({
|
|
|
532
531
|
parser: options.parser
|
|
533
532
|
}
|
|
534
533
|
),
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
534
|
+
options.infinite && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
535
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["infiniteQueryOptions"], path: importPath }),
|
|
536
|
+
/* @__PURE__ */ jsx(
|
|
537
|
+
InfiniteQueryOptions,
|
|
538
|
+
{
|
|
539
|
+
name: queryOptions.name,
|
|
540
|
+
clientName: client.name,
|
|
541
|
+
queryKeyName: queryKey.name,
|
|
542
|
+
typeSchemas: type.schemas,
|
|
543
|
+
paramsType: options.paramsType,
|
|
544
|
+
pathParamsType: options.pathParamsType,
|
|
545
|
+
dataReturnType: options.client.dataReturnType,
|
|
546
|
+
cursorParam: options.infinite.cursorParam,
|
|
547
|
+
initialPageParam: options.infinite.initialPageParam,
|
|
548
|
+
queryParam: options.infinite.queryParam
|
|
549
|
+
}
|
|
550
|
+
)
|
|
551
|
+
] }),
|
|
552
|
+
options.infinite && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
553
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["useInfiniteQuery"], path: importPath }),
|
|
554
|
+
/* @__PURE__ */ jsx(File.Import, { name: ["QueryKey", "InfiniteQueryObserverOptions", "UseInfiniteQueryReturnType"], path: importPath, isTypeOnly: true }),
|
|
555
|
+
/* @__PURE__ */ jsx(
|
|
556
|
+
InfiniteQuery,
|
|
557
|
+
{
|
|
558
|
+
name: query.name,
|
|
559
|
+
queryOptionsName: queryOptions.name,
|
|
560
|
+
typeSchemas: type.schemas,
|
|
561
|
+
paramsType: options.paramsType,
|
|
562
|
+
pathParamsType: options.pathParamsType,
|
|
563
|
+
operation,
|
|
564
|
+
dataReturnType: options.client.dataReturnType,
|
|
565
|
+
queryKeyName: queryKey.name,
|
|
566
|
+
queryKeyTypeName: queryKey.typeName
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
] })
|
|
564
570
|
] });
|
|
565
571
|
}
|
|
566
572
|
});
|
|
567
573
|
|
|
568
574
|
export { infiniteQueryGenerator, mutationGenerator, queryGenerator };
|
|
569
|
-
//# sourceMappingURL=chunk-
|
|
570
|
-
//# sourceMappingURL=chunk-
|
|
575
|
+
//# sourceMappingURL=chunk-O4EGNKUX.js.map
|
|
576
|
+
//# sourceMappingURL=chunk-O4EGNKUX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../plugin-client/src/generators/clientGenerator.tsx","../../plugin-client/src/generators/operationsGenerator.tsx","../../plugin-client/src/generators/groupedClientGenerator.tsx","../../plugin-client/src/plugin.ts","../src/generators/queryGenerator.tsx","../src/generators/mutationGenerator.tsx","../src/generators/infiniteQueryGenerator.tsx"],"names":["createReactGenerator","useApp","jsx","File","useOperationManager","jsxs","pluginZodName","options","camelCase","baseURL","pluginTsName","Fragment"],"mappings":";;;;;;;;;;;AAQO,IAAM,kBAAkB,oBAAmC,CAAA;AAAA,EAChE,IAAM,EAAA,QAAA;AAAA,EACN,SAAU,CAAA,EAAE,OAAS,EAAA,SAAA,EAAa,EAAA;AAChC,IAAM,MAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,OAAA,EAAS,EAAE,MAAO;AAAA;AACpB,QACE,MAAqB,EAAA;AACzB,IAAA,MAAM,EAAE,UAAA,EAAY,OAAS,EAAA,OAAA,KAAY,mBAAoB,EAAA;AAE7D,IAAA,MAAM,MAAS,GAAA;AAAA,MACb,MAAM,OAAQ,CAAA,SAAA,EAAW,EAAE,IAAA,EAAM,YAAY,CAAA;AAAA,MAC7C,IAAA,EAAM,QAAQ,SAAS;AAAA,KACzB;AAEA,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,IAAA,EAAM,QAAQ,SAAW,EAAA,EAAE,WAAW,CAAC,YAAY,GAAG,CAAA;AAAA,MACtD,OAAA,EAAS,UAAW,CAAA,SAAA,EAAW,EAAE,SAAA,EAAW,CAAC,YAAY,CAAA,EAAG,IAAM,EAAA,MAAA,EAAQ;AAAA,KAC5E;AAEA,IAAA,MAAM,GAAM,GAAA;AAAA,MACV,IAAA,EAAM,QAAQ,SAAW,EAAA,EAAE,WAAW,CAAC,aAAa,GAAG,CAAA;AAAA,MACvD,OAAA,EAAS,UAAW,CAAA,SAAA,EAAW,EAAE,SAAA,EAAW,CAAC,aAAa,CAAA,EAAG,IAAM,EAAA,UAAA,EAAY;AAAA,KACjF;AAEA,IAAA,4BACG,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UAAA;AAAA,YACpB,gBAAgB,OAAQ,CAAA,cAAA;AAAA,YACxB,cAAA,EAAgB,QAAQ,MAAO,CAAA,cAAA;AAAA,YAC/B,WAAA,EAAa,QAAQ,QAAS,CAAA,WAAA;AAAA,YAC9B,gBAAA,EAAkB,QAAQ,QAAS,CAAA,gBAAA;AAAA,YACnC,UAAA,EAAY,QAAQ,QAAS,CAAA;AAAA;AAAA;AAC/B,OACF,EAAA,CAAA;AAAA,MAED,OAAQ,CAAA,QAAA,oBACPG,IAAAA,CAAAM,UAAA,EACE,QAAA,EAAA;AAAA,wBAAAT,GAAAA,CAACC,KAAK,MAAL,EAAA,EAAY,MAAM,CAAC,kBAAkB,CAAG,EAAA,IAAA,EAAM,UAAY,EAAA,CAAA;AAAA,wBAC3DD,GAAAA,CAACC,IAAK,CAAA,MAAA,EAAL,EAAY,IAAM,EAAA,CAAC,UAAY,EAAA,8BAAA,EAAgC,4BAA4B,CAAA,EAAG,IAAM,EAAA,UAAA,EAAY,YAAU,IAAC,EAAA,CAAA;AAAA,wBAC5HD,GAAAA;AAAA,UAAC,aAAA;AAAA,UAAA;AAAA,YACC,MAAM,KAAM,CAAA,IAAA;AAAA,YACZ,kBAAkB,YAAa,CAAA,IAAA;AAAA,YAC/B,aAAa,IAAK,CAAA,OAAA;AAAA,YAClB,YAAY,OAAQ,CAAA,UAAA;AAAA,YACpB,gBAAgB,OAAQ,CAAA,cAAA;AAAA,YACxB,SAAA;AAAA,YACA,cAAA,EAAgB,QAAQ,MAAO,CAAA,cAAA;AAAA,YAC/B,cAAc,QAAS,CAAA,IAAA;AAAA,YACvB,kBAAkB,QAAS,CAAA;AAAA;AAAA;AAC7B,OACF,EAAA;AAAA,KAEJ,EAAA,CAAA;AAAA;AAGN,CAAC","file":"chunk-O4EGNKUX.js","sourcesContent":["import { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { Client } from '../components/Client'\nimport type { PluginClient } from '../types'\n\nexport const clientGenerator = createReactGenerator<PluginClient>({\n name: 'client',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n } = useApp<PluginClient>()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const client = {\n name: getName(operation, { type: 'function' }),\n file: getFile(operation),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\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 return (\n <File baseName={client.file.baseName} path={client.file.path} meta={client.file.meta} banner={output?.banner} footer={output?.footer}>\n <File.Import name={'client'} path={options.importPath} />\n <File.Import name={['RequestConfig']} path={options.importPath} isTypeOnly />\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={client.file.path} path={zod.file.path} />}\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={client.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <Client\n name={client.name}\n baseURL={options.baseURL}\n dataReturnType={options.dataReturnType}\n pathParamsType={options.pathParamsType}\n paramsType={options.paramsType}\n typeSchemas={type.schemas}\n operation={operation}\n parser={options.parser}\n zodSchemas={zod.schemas}\n />\n </File>\n )\n },\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { File, useApp } from '@kubb/react'\nimport { Operations } from '../components/Operations'\nimport type { PluginClient } from '../types'\n\nexport const operationsGenerator = createReactGenerator<PluginClient>({\n name: 'client',\n Operations({ operations }) {\n const {\n pluginManager,\n plugin: {\n options: { output },\n },\n } = useApp<PluginClient>()\n\n const name = 'operations'\n const file = pluginManager.getFile({ name, extname: '.ts', pluginKey: [pluginClientName] })\n\n return (\n <File baseName={file.baseName} path={file.path} meta={file.meta} banner={output?.banner} footer={output?.footer}>\n <Operations name={name} operations={operations} />\n </File>\n )\n },\n})\n","import { camelCase } from '@kubb/core/transformers'\nimport type * as KubbFile from '@kubb/fs/types'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { File, Function, useApp } from '@kubb/react'\nimport type { PluginClient } from '../types'\n\nexport const groupedClientGenerator = createReactGenerator<PluginClient>({\n name: 'groupedClient',\n Operations({ operations }) {\n const {\n pluginManager,\n plugin: { options },\n } = useApp<PluginClient>()\n const { getName, getFile } = useOperationManager()\n\n const controllers = operations.reduce(\n (acc, operation) => {\n if (options.group?.type === 'tag') {\n const tag = operation.getTags().at(0)?.name\n const name = tag ? options.group?.name?.({ group: camelCase(tag) }) : undefined\n\n if (!tag || !name) {\n return acc\n }\n\n const file = pluginManager.getFile({\n name,\n extname: '.ts',\n pluginKey: [pluginClientName],\n options: { tag },\n })\n\n const client = {\n name: getName(operation, { type: 'function' }),\n file: getFile(operation),\n }\n\n const previousFile = acc.find((item) => item.file.path === file.path)\n\n if (previousFile) {\n previousFile.clients.push(client)\n } else {\n acc.push({ name, file, clients: [client] })\n }\n }\n\n return acc\n },\n [] as Array<{ name: string; file: KubbFile.File; clients: Array<{ name: string; file: KubbFile.File }> }>,\n )\n\n return controllers.map(({ name, file, clients }) => {\n return (\n <File key={file.path} baseName={file.baseName} path={file.path} meta={file.meta} banner={options.output?.banner} footer={options.output?.footer}>\n {clients.map((client) => (\n <File.Import key={client.name} name={[client.name]} root={file.path} path={client.file.path} />\n ))}\n\n <File.Source name={name} isExportable isIndexable>\n <Function export name={name}>\n {`return { ${clients.map((client) => client.name).join(', ')} }`}\n </Function>\n </File.Source>\n </File>\n )\n })\n },\n})\n","import path from 'node:path'\n\nimport { FileManager, type Group, PluginManager, createPlugin } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName } from '@kubb/plugin-oas'\n\nimport type { Plugin } from '@kubb/core'\nimport type { PluginOas as SwaggerPluginOptions } from '@kubb/plugin-oas'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { operationsGenerator } from './generators'\nimport { clientGenerator } from './generators/clientGenerator.tsx'\nimport { groupedClientGenerator } from './generators/groupedClientGenerator.tsx'\nimport type { PluginClient } from './types.ts'\n\nexport const pluginClientName = 'plugin-client' satisfies PluginClient['name']\n\nexport const pluginClient = createPlugin<PluginClient>((options) => {\n const {\n output = { path: 'clients', barrelType: 'named' },\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n dataReturnType = 'data',\n pathParamsType = 'inline',\n paramsType = 'inline',\n operations = false,\n baseURL,\n generators = [clientGenerator, group ? groupedClientGenerator : undefined, operations ? operationsGenerator : undefined].filter(Boolean),\n importPath = '@kubb/plugin-client/client',\n parser = 'client',\n } = options\n\n return {\n name: pluginClientName,\n options: {\n output,\n group,\n parser,\n dataReturnType,\n importPath,\n paramsType,\n pathParamsType: paramsType === 'object' ? 'object' : pathParamsType,\n baseURL,\n },\n pre: [pluginOasName, parser === 'zod' ? pluginZodName : undefined].filter(Boolean),\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path))\n\n if (options?.tag && group?.type === 'tag') {\n const groupName: Group['name'] = group?.name ? group.name : (ctx) => `${ctx.group}Controller`\n\n return path.resolve(root, output.path, groupName({ group: camelCase(options.tag) }), baseName)\n }\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, { isFile: type === 'file' })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async buildStart() {\n const [swaggerPlugin]: [Plugin<SwaggerPluginOptions>] = PluginManager.getDependedPlugins<SwaggerPluginOptions>(this.plugins, [pluginOasName])\n\n const oas = await swaggerPlugin.context.getOas()\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = FileManager.getMode(path.resolve(root, output.path))\n const baseURL = await swaggerPlugin.context.getBaseURL()\n\n const operationGenerator = new OperationGenerator(\n baseURL\n ? {\n ...this.plugin.options,\n baseURL,\n }\n : this.plugin.options,\n {\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType: swaggerPlugin.context.contentType,\n exclude,\n include,\n override,\n mode,\n },\n )\n\n const files = await operationGenerator.build(...generators)\n\n await this.addFile(...files)\n\n const barrelFiles = await this.fileManager.getBarrelFiles({\n type: output.barrelType ?? 'named',\n root,\n output,\n files: this.fileManager.files,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.addFile(...barrelFiles)\n },\n }\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const queryGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-query',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n } = useApp<PluginVueQuery>()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const importPath = options.query ? options.query.importPath : '@tanstack/vue-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 client = {\n name: getName(operation, { type: 'function', 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, { 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) {\n return null\n }\n\n return (\n <File baseName={query.file.baseName} path={query.file.path} meta={query.file.meta} banner={output?.banner} footer={output?.footer}>\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={query.file.path} path={zod.file.path} />}\n <File.Import name={['unref']} path=\"vue\" />\n <File.Import name={['MaybeRef']} path=\"vue\" isTypeOnly />\n <File.Import name={'client'} path={options.client.importPath} />\n <File.Import name={['RequestConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\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 transformer={options.queryKey}\n />\n <Client\n name={client.name}\n isExportable={false}\n isIndexable={false}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\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 paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n />\n {options.query && (\n <>\n <File.Import name={['useQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryObserverOptions', 'UseQueryReturnType']} path={importPath} isTypeOnly />\n <Query\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { Mutation, MutationKey } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const mutationGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-query',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n } = useApp<PluginVueQuery>()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = !isQuery && options.mutation && options.mutation.methods.some((method) => operation.method === method)\n\n const importPath = options.mutation ? options.mutation.importPath : '@tanstack/vue-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 client = {\n name: getName(operation, { type: 'function', pluginKey: [pluginClientName] }),\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 baseName={mutation.file.baseName} path={mutation.file.path} meta={mutation.file.meta} banner={output?.banner} footer={output?.footer}>\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={mutation.file.path} path={zod.file.path} />}\n <File.Import name={['MaybeRef']} path=\"vue\" isTypeOnly />\n <File.Import name={'client'} path={options.client.importPath} />\n <File.Import name={['RequestConfig', 'ResponseConfig']} path={options.client.importPath} isTypeOnly />\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 <MutationKey\n name={mutationKey.name}\n typeName={mutationKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.mutationKey}\n />\n <Client\n name={client.name}\n isExportable={false}\n isIndexable={false}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n {options.mutation && (\n <>\n <File.Import name={['useMutation']} path={importPath} />\n <File.Import name={['MutationObserverOptions']} path={importPath} isTypeOnly />\n <Mutation\n name={mutation.name}\n clientName={client.name}\n typeName={mutation.typeName}\n typeSchemas={type.schemas}\n operation={operation}\n dataReturnType={options.client.dataReturnType}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n mutationKeyName={mutationKey.name}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, useApp } from '@kubb/react'\nimport { InfiniteQuery, InfiniteQueryOptions, QueryKey } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const infiniteQueryGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-infinite-query',\n Operation({ options, operation }) {\n const {\n plugin: {\n options: { output },\n },\n } = useApp<PluginVueQuery>()\n const { getSchemas, getName, getFile } = useOperationManager()\n const isQuery = typeof options.query === 'boolean' ? options.query : !!options.query.methods?.some((method) => operation.method === method)\n const isInfinite = isQuery && !!options.infinite\n const importPath = options.query ? options.query.importPath : '@tanstack/vue-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 client = {\n name: getName(operation, { type: 'function', 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 || !isInfinite) {\n return null\n }\n\n return (\n <File baseName={query.file.baseName} path={query.file.path} meta={query.file.meta} banner={output?.banner} footer={output?.footer}>\n {options.parser === 'zod' && <File.Import name={[zod.schemas.response.name]} root={query.file.path} path={zod.file.path} />}\n <File.Import name={['unref']} path=\"vue\" />\n <File.Import name={['MaybeRef']} path=\"vue\" isTypeOnly />\n <File.Import name={'client'} path={options.client.importPath} />\n <File.Import name={['RequestConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\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 transformer={options.queryKey}\n />\n <Client\n name={client.name}\n isExportable={false}\n isIndexable={false}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n {options.infinite && (\n <>\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 paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType}\n cursorParam={options.infinite.cursorParam}\n initialPageParam={options.infinite.initialPageParam}\n queryParam={options.infinite.queryParam}\n />\n </>\n )}\n {options.infinite && (\n <>\n <File.Import name={['useInfiniteQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'InfiniteQueryObserverOptions', 'UseInfiniteQueryReturnType']} path={importPath} isTypeOnly />\n <InfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n />\n </>\n )}\n </File>\n )\n },\n})\n"]}
|
package/dist/components.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ4RZRRHQ_cjs = require('./chunk-J4RZRRHQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "InfiniteQuery", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkJ4RZRRHQ_cjs.InfiniteQuery; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "InfiniteQueryOptions", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJ4RZRRHQ_cjs.InfiniteQueryOptions; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Mutation", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJ4RZRRHQ_cjs.Mutation; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "MutationKey", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJ4RZRRHQ_cjs.MutationKey; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "Query", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJ4RZRRHQ_cjs.Query; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "QueryKey", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJ4RZRRHQ_cjs.QueryKey; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "QueryOptions", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJ4RZRRHQ_cjs.QueryOptions; }
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=components.cjs.map
|
|
36
36
|
//# sourceMappingURL=components.cjs.map
|
package/dist/components.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Operation } from '@kubb/oas';
|
|
2
2
|
import { OperationSchemas } from '@kubb/plugin-oas';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { P as PluginVueQuery, I as Infinite } from './types-
|
|
4
|
+
import { P as PluginVueQuery, T as Transformer, I as Infinite } from './types-C8LfCZUP.cjs';
|
|
5
5
|
import { FunctionParams } from '@kubb/react';
|
|
6
6
|
import '@kubb/core';
|
|
7
7
|
|
|
@@ -52,15 +52,16 @@ type Props$4 = {
|
|
|
52
52
|
typeSchemas: OperationSchemas;
|
|
53
53
|
operation: Operation;
|
|
54
54
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
55
|
-
|
|
55
|
+
transformer: Transformer | undefined;
|
|
56
56
|
};
|
|
57
57
|
type GetParamsProps$4 = {
|
|
58
58
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
59
59
|
typeSchemas: OperationSchemas;
|
|
60
60
|
};
|
|
61
|
-
declare function QueryKey({ name, typeSchemas, pathParamsType, operation, typeName,
|
|
61
|
+
declare function QueryKey({ name, typeSchemas, pathParamsType, operation, typeName, transformer }: Props$4): ReactNode;
|
|
62
62
|
declare namespace QueryKey {
|
|
63
63
|
var getParams: ({ pathParamsType, typeSchemas }: GetParamsProps$4) => FunctionParams;
|
|
64
|
+
var getTransformer: Transformer;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
type Props$3 = {
|
|
@@ -134,15 +135,16 @@ type Props = {
|
|
|
134
135
|
typeSchemas: OperationSchemas;
|
|
135
136
|
operation: Operation;
|
|
136
137
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
137
|
-
|
|
138
|
+
transformer: Transformer | undefined;
|
|
138
139
|
};
|
|
139
140
|
type GetParamsProps = {
|
|
140
141
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
141
142
|
typeSchemas: OperationSchemas;
|
|
142
143
|
};
|
|
143
|
-
declare function MutationKey({ name, typeSchemas, pathParamsType, operation, typeName,
|
|
144
|
+
declare function MutationKey({ name, typeSchemas, pathParamsType, operation, typeName, transformer }: Props): ReactNode;
|
|
144
145
|
declare namespace MutationKey {
|
|
145
146
|
var getParams: ({}: GetParamsProps) => FunctionParams;
|
|
147
|
+
var getTransformer: Transformer;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions };
|
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Operation } from '@kubb/oas';
|
|
2
2
|
import { OperationSchemas } from '@kubb/plugin-oas';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
|
-
import { P as PluginVueQuery, I as Infinite } from './types-
|
|
4
|
+
import { P as PluginVueQuery, T as Transformer, I as Infinite } from './types-C8LfCZUP.js';
|
|
5
5
|
import { FunctionParams } from '@kubb/react';
|
|
6
6
|
import '@kubb/core';
|
|
7
7
|
|
|
@@ -52,15 +52,16 @@ type Props$4 = {
|
|
|
52
52
|
typeSchemas: OperationSchemas;
|
|
53
53
|
operation: Operation;
|
|
54
54
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
55
|
-
|
|
55
|
+
transformer: Transformer | undefined;
|
|
56
56
|
};
|
|
57
57
|
type GetParamsProps$4 = {
|
|
58
58
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
59
59
|
typeSchemas: OperationSchemas;
|
|
60
60
|
};
|
|
61
|
-
declare function QueryKey({ name, typeSchemas, pathParamsType, operation, typeName,
|
|
61
|
+
declare function QueryKey({ name, typeSchemas, pathParamsType, operation, typeName, transformer }: Props$4): ReactNode;
|
|
62
62
|
declare namespace QueryKey {
|
|
63
63
|
var getParams: ({ pathParamsType, typeSchemas }: GetParamsProps$4) => FunctionParams;
|
|
64
|
+
var getTransformer: Transformer;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
type Props$3 = {
|
|
@@ -134,15 +135,16 @@ type Props = {
|
|
|
134
135
|
typeSchemas: OperationSchemas;
|
|
135
136
|
operation: Operation;
|
|
136
137
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
137
|
-
|
|
138
|
+
transformer: Transformer | undefined;
|
|
138
139
|
};
|
|
139
140
|
type GetParamsProps = {
|
|
140
141
|
pathParamsType: PluginVueQuery['resolvedOptions']['pathParamsType'];
|
|
141
142
|
typeSchemas: OperationSchemas;
|
|
142
143
|
};
|
|
143
|
-
declare function MutationKey({ name, typeSchemas, pathParamsType, operation, typeName,
|
|
144
|
+
declare function MutationKey({ name, typeSchemas, pathParamsType, operation, typeName, transformer }: Props): ReactNode;
|
|
144
145
|
declare namespace MutationKey {
|
|
145
146
|
var getParams: ({}: GetParamsProps) => FunctionParams;
|
|
147
|
+
var getTransformer: Transformer;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions };
|
package/dist/components.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions } from './chunk-
|
|
1
|
+
export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions } from './chunk-DHJLKFYS.js';
|
|
2
2
|
//# sourceMappingURL=components.js.map
|
|
3
3
|
//# sourceMappingURL=components.js.map
|
package/dist/generators.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkA7SD37VK_cjs = require('./chunk-A7SD37VK.cjs');
|
|
4
|
+
require('./chunk-J4RZRRHQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "infiniteQueryGenerator", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkA7SD37VK_cjs.infiniteQueryGenerator; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "mutationGenerator", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkA7SD37VK_cjs.mutationGenerator; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "queryGenerator", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkA7SD37VK_cjs.queryGenerator; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=generators.cjs.map
|
|
21
21
|
//# sourceMappingURL=generators.cjs.map
|
package/dist/generators.d.cts
CHANGED