@kubb/plugin-vue-query 3.0.0-beta.11 → 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.
Files changed (49) hide show
  1. package/dist/{chunk-DM6KQOMW.cjs → chunk-A7SD37VK.cjs} +94 -89
  2. package/dist/chunk-A7SD37VK.cjs.map +1 -0
  3. package/dist/{chunk-DWWRCRGY.js → chunk-DHJLKFYS.js} +22 -10
  4. package/dist/chunk-DHJLKFYS.js.map +1 -0
  5. package/dist/{chunk-5MY3SE2R.cjs → chunk-J4RZRRHQ.cjs} +22 -10
  6. package/dist/chunk-J4RZRRHQ.cjs.map +1 -0
  7. package/dist/{chunk-JOSO5JH4.js → chunk-O4EGNKUX.js} +86 -81
  8. package/dist/chunk-O4EGNKUX.js.map +1 -0
  9. package/dist/components.cjs +8 -8
  10. package/dist/components.d.cts +7 -5
  11. package/dist/components.d.ts +7 -5
  12. package/dist/components.js +1 -1
  13. package/dist/generators.cjs +5 -5
  14. package/dist/generators.d.cts +1 -1
  15. package/dist/generators.d.ts +1 -1
  16. package/dist/generators.js +2 -2
  17. package/dist/index.cjs +7 -5
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +6 -4
  22. package/dist/index.js.map +1 -1
  23. package/dist/{types-CJEMZz_Q.d.cts → types-C8LfCZUP.d.cts} +37 -19
  24. package/dist/{types-CJEMZz_Q.d.ts → types-C8LfCZUP.d.ts} +37 -19
  25. package/package.json +11 -11
  26. package/src/components/MutationKey.tsx +11 -5
  27. package/src/components/QueryKey.tsx +17 -7
  28. package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +1 -1
  29. package/src/generators/__snapshots__/clientGetImportPath.ts +1 -1
  30. package/src/generators/__snapshots__/clientPostImportPath.ts +2 -2
  31. package/src/generators/__snapshots__/findByTags.ts +1 -1
  32. package/src/generators/__snapshots__/findByTagsObject.ts +1 -1
  33. package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +1 -1
  34. package/src/generators/__snapshots__/findByTagsWithCustomQueryKey.ts +2 -2
  35. package/src/generators/__snapshots__/findByTagsWithZod.ts +1 -1
  36. package/src/generators/__snapshots__/findInfiniteByTags.ts +1 -1
  37. package/src/generators/__snapshots__/findInfiniteByTagsCursor.ts +1 -1
  38. package/src/generators/__snapshots__/postAsQuery.ts +1 -1
  39. package/src/generators/__snapshots__/updatePetById.ts +2 -2
  40. package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +2 -2
  41. package/src/generators/infiniteQueryGenerator.tsx +37 -32
  42. package/src/generators/mutationGenerator.tsx +21 -15
  43. package/src/generators/queryGenerator.tsx +21 -17
  44. package/src/plugin.ts +5 -2
  45. package/src/types.ts +23 -10
  46. package/dist/chunk-5MY3SE2R.cjs.map +0 -1
  47. package/dist/chunk-DM6KQOMW.cjs.map +0 -1
  48. package/dist/chunk-DWWRCRGY.js.map +0 -1
  49. package/dist/chunk-JOSO5JH4.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Client, Operations, QueryKey, QueryOptions, Query, MutationKey, Mutation, InfiniteQueryOptions, InfiniteQuery } from './chunk-DWWRCRGY.js';
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",
@@ -226,7 +226,7 @@ var queryGenerator = createReactGenerator({
226
226
  } = useApp();
227
227
  const { getSchemas, getName, getFile } = useOperationManager();
228
228
  const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
229
- !isQuery && options.mutation && options.mutation.methods.some((method) => operation.method === method);
229
+ const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
230
230
  const query = {
231
231
  name: getName(operation, { type: "function", prefix: "use" }),
232
232
  typeName: getName(operation, { type: "type" }),
@@ -251,13 +251,11 @@ var queryGenerator = createReactGenerator({
251
251
  file: getFile(operation, { pluginKey: [pluginZodName] }),
252
252
  schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: "function" })
253
253
  };
254
- if (!isQuery || typeof options.query === "boolean") {
254
+ if (!isQuery) {
255
255
  return null;
256
256
  }
257
257
  return /* @__PURE__ */ jsxs(File, { baseName: query.file.baseName, path: query.file.path, meta: query.file.meta, banner: output?.banner, footer: output?.footer, children: [
258
258
  options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: query.file.path, path: zod.file.path }),
259
- /* @__PURE__ */ jsx(File.Import, { name: ["useQuery", "queryOptions"], path: options.query.importPath }),
260
- /* @__PURE__ */ jsx(File.Import, { name: ["QueryKey", "WithRequired", "QueryObserverOptions", "UseQueryReturnType"], path: options.query.importPath, isTypeOnly: true }),
261
259
  /* @__PURE__ */ jsx(File.Import, { name: ["unref"], path: "vue" }),
262
260
  /* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
263
261
  /* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
@@ -287,7 +285,7 @@ var queryGenerator = createReactGenerator({
287
285
  operation,
288
286
  pathParamsType: options.pathParamsType,
289
287
  typeSchemas: type.schemas,
290
- keysFn: options.query.key
288
+ transformer: options.queryKey
291
289
  }
292
290
  ),
293
291
  /* @__PURE__ */ jsx(
@@ -306,6 +304,7 @@ var queryGenerator = createReactGenerator({
306
304
  parser: options.parser
307
305
  }
308
306
  ),
307
+ /* @__PURE__ */ jsx(File.Import, { name: ["queryOptions"], path: importPath }),
309
308
  /* @__PURE__ */ jsx(
310
309
  QueryOptions,
311
310
  {
@@ -317,20 +316,24 @@ var queryGenerator = createReactGenerator({
317
316
  pathParamsType: options.pathParamsType
318
317
  }
319
318
  ),
320
- /* @__PURE__ */ jsx(
321
- Query,
322
- {
323
- name: query.name,
324
- queryOptionsName: queryOptions.name,
325
- typeSchemas: type.schemas,
326
- paramsType: options.paramsType,
327
- pathParamsType: options.pathParamsType,
328
- operation,
329
- dataReturnType: options.client.dataReturnType,
330
- queryKeyName: queryKey.name,
331
- queryKeyTypeName: queryKey.typeName
332
- }
333
- )
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
+ ] })
334
337
  ] });
335
338
  }
336
339
  });
@@ -345,6 +348,7 @@ var mutationGenerator = createReactGenerator({
345
348
  const { getSchemas, getName, getFile } = useOperationManager();
346
349
  const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
347
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";
348
352
  const mutation = {
349
353
  name: getName(operation, { type: "function", prefix: "use" }),
350
354
  typeName: getName(operation, { type: "type" }),
@@ -366,13 +370,11 @@ var mutationGenerator = createReactGenerator({
366
370
  name: getName(operation, { type: "const", suffix: "MutationKey" }),
367
371
  typeName: getName(operation, { type: "type", suffix: "MutationKey" })
368
372
  };
369
- if (!isMutation || typeof options.mutation === "boolean") {
373
+ if (!isMutation) {
370
374
  return null;
371
375
  }
372
376
  return /* @__PURE__ */ jsxs(File, { baseName: mutation.file.baseName, path: mutation.file.path, meta: mutation.file.meta, banner: output?.banner, footer: output?.footer, children: [
373
377
  options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: mutation.file.path, path: zod.file.path }),
374
- /* @__PURE__ */ jsx(File.Import, { name: ["useMutation"], path: options.mutation.importPath }),
375
- /* @__PURE__ */ jsx(File.Import, { name: ["MutationObserverOptions"], path: options.mutation.importPath, isTypeOnly: true }),
376
378
  /* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
377
379
  /* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
378
380
  /* @__PURE__ */ jsx(File.Import, { name: ["RequestConfig", "ResponseConfig"], path: options.client.importPath, isTypeOnly: true }),
@@ -400,7 +402,7 @@ var mutationGenerator = createReactGenerator({
400
402
  operation,
401
403
  pathParamsType: options.pathParamsType,
402
404
  typeSchemas: type.schemas,
403
- keysFn: options.mutation.key
405
+ transformer: options.mutationKey
404
406
  }
405
407
  ),
406
408
  /* @__PURE__ */ jsx(
@@ -419,20 +421,24 @@ var mutationGenerator = createReactGenerator({
419
421
  parser: options.parser
420
422
  }
421
423
  ),
422
- /* @__PURE__ */ jsx(
423
- Mutation,
424
- {
425
- name: mutation.name,
426
- clientName: client.name,
427
- typeName: mutation.typeName,
428
- typeSchemas: type.schemas,
429
- operation,
430
- dataReturnType: options.client.dataReturnType,
431
- paramsType: options.paramsType,
432
- pathParamsType: options.pathParamsType,
433
- mutationKeyName: mutationKey.name
434
- }
435
- )
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
+ ] })
436
442
  ] });
437
443
  }
438
444
  });
@@ -447,6 +453,7 @@ var infiniteQueryGenerator = createReactGenerator({
447
453
  const { getSchemas, getName, getFile } = useOperationManager();
448
454
  const isQuery = typeof options.query === "boolean" ? options.query : !!options.query.methods?.some((method) => operation.method === method);
449
455
  const isInfinite = isQuery && !!options.infinite;
456
+ const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
450
457
  const query = {
451
458
  name: getName(operation, { type: "function", prefix: "use", suffix: "infinite" }),
452
459
  typeName: getName(operation, { type: "type" }),
@@ -471,20 +478,11 @@ var infiniteQueryGenerator = createReactGenerator({
471
478
  file: getFile(operation, { pluginKey: [pluginZodName] }),
472
479
  schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: "function" })
473
480
  };
474
- if (!isQuery || !isInfinite || typeof options.query === "boolean" || typeof options.infinite === "boolean") {
481
+ if (!isQuery || !isInfinite) {
475
482
  return null;
476
483
  }
477
484
  return /* @__PURE__ */ jsxs(File, { baseName: query.file.baseName, path: query.file.path, meta: query.file.meta, banner: output?.banner, footer: output?.footer, children: [
478
485
  options.parser === "zod" && /* @__PURE__ */ jsx(File.Import, { name: [zod.schemas.response.name], root: query.file.path, path: zod.file.path }),
479
- /* @__PURE__ */ jsx(File.Import, { name: ["useInfiniteQuery", "infiniteQueryOptions"], path: options.query.importPath }),
480
- /* @__PURE__ */ jsx(
481
- File.Import,
482
- {
483
- name: ["QueryKey", "WithRequired", "InfiniteQueryObserverOptions", "UseInfiniteQueryReturnType"],
484
- path: options.query.importPath,
485
- isTypeOnly: true
486
- }
487
- ),
488
486
  /* @__PURE__ */ jsx(File.Import, { name: ["unref"], path: "vue" }),
489
487
  /* @__PURE__ */ jsx(File.Import, { name: ["MaybeRef"], path: "vue", isTypeOnly: true }),
490
488
  /* @__PURE__ */ jsx(File.Import, { name: "client", path: options.client.importPath }),
@@ -514,7 +512,7 @@ var infiniteQueryGenerator = createReactGenerator({
514
512
  operation,
515
513
  pathParamsType: options.pathParamsType,
516
514
  typeSchemas: type.schemas,
517
- keysFn: options.query.key
515
+ transformer: options.queryKey
518
516
  }
519
517
  ),
520
518
  /* @__PURE__ */ jsx(
@@ -533,39 +531,46 @@ var infiniteQueryGenerator = createReactGenerator({
533
531
  parser: options.parser
534
532
  }
535
533
  ),
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
- /* @__PURE__ */ jsx(
552
- InfiniteQuery,
553
- {
554
- name: query.name,
555
- queryOptionsName: queryOptions.name,
556
- typeSchemas: type.schemas,
557
- paramsType: options.paramsType,
558
- pathParamsType: options.pathParamsType,
559
- operation,
560
- dataReturnType: options.client.dataReturnType,
561
- queryKeyName: queryKey.name,
562
- queryKeyTypeName: queryKey.typeName
563
- }
564
- )
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
+ ] })
565
570
  ] });
566
571
  }
567
572
  });
568
573
 
569
574
  export { infiniteQueryGenerator, mutationGenerator, queryGenerator };
570
- //# sourceMappingURL=chunk-JOSO5JH4.js.map
571
- //# sourceMappingURL=chunk-JOSO5JH4.js.map
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","plugin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AQ,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"]}
@@ -1,36 +1,36 @@
1
1
  'use strict';
2
2
 
3
- var chunk5MY3SE2R_cjs = require('./chunk-5MY3SE2R.cjs');
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 chunk5MY3SE2R_cjs.InfiniteQuery; }
9
+ get: function () { return chunkJ4RZRRHQ_cjs.InfiniteQuery; }
10
10
  });
11
11
  Object.defineProperty(exports, "InfiniteQueryOptions", {
12
12
  enumerable: true,
13
- get: function () { return chunk5MY3SE2R_cjs.InfiniteQueryOptions; }
13
+ get: function () { return chunkJ4RZRRHQ_cjs.InfiniteQueryOptions; }
14
14
  });
15
15
  Object.defineProperty(exports, "Mutation", {
16
16
  enumerable: true,
17
- get: function () { return chunk5MY3SE2R_cjs.Mutation; }
17
+ get: function () { return chunkJ4RZRRHQ_cjs.Mutation; }
18
18
  });
19
19
  Object.defineProperty(exports, "MutationKey", {
20
20
  enumerable: true,
21
- get: function () { return chunk5MY3SE2R_cjs.MutationKey; }
21
+ get: function () { return chunkJ4RZRRHQ_cjs.MutationKey; }
22
22
  });
23
23
  Object.defineProperty(exports, "Query", {
24
24
  enumerable: true,
25
- get: function () { return chunk5MY3SE2R_cjs.Query; }
25
+ get: function () { return chunkJ4RZRRHQ_cjs.Query; }
26
26
  });
27
27
  Object.defineProperty(exports, "QueryKey", {
28
28
  enumerable: true,
29
- get: function () { return chunk5MY3SE2R_cjs.QueryKey; }
29
+ get: function () { return chunkJ4RZRRHQ_cjs.QueryKey; }
30
30
  });
31
31
  Object.defineProperty(exports, "QueryOptions", {
32
32
  enumerable: true,
33
- get: function () { return chunk5MY3SE2R_cjs.QueryOptions; }
33
+ get: function () { return chunkJ4RZRRHQ_cjs.QueryOptions; }
34
34
  });
35
35
  //# sourceMappingURL=components.cjs.map
36
36
  //# sourceMappingURL=components.cjs.map
@@ -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-CJEMZz_Q.cjs';
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
- keysFn: ((keys: unknown[]) => unknown[]) | undefined;
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, keysFn }: Props$4): ReactNode;
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
- keysFn: ((keys: unknown[]) => unknown[]) | undefined;
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, keysFn }: Props): ReactNode;
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 };
@@ -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-CJEMZz_Q.js';
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
- keysFn: ((keys: unknown[]) => unknown[]) | undefined;
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, keysFn }: Props$4): ReactNode;
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
- keysFn: ((keys: unknown[]) => unknown[]) | undefined;
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, keysFn }: Props): ReactNode;
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 };
@@ -1,3 +1,3 @@
1
- export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions } from './chunk-DWWRCRGY.js';
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
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunkDM6KQOMW_cjs = require('./chunk-DM6KQOMW.cjs');
4
- require('./chunk-5MY3SE2R.cjs');
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 chunkDM6KQOMW_cjs.infiniteQueryGenerator; }
10
+ get: function () { return chunkA7SD37VK_cjs.infiniteQueryGenerator; }
11
11
  });
12
12
  Object.defineProperty(exports, "mutationGenerator", {
13
13
  enumerable: true,
14
- get: function () { return chunkDM6KQOMW_cjs.mutationGenerator; }
14
+ get: function () { return chunkA7SD37VK_cjs.mutationGenerator; }
15
15
  });
16
16
  Object.defineProperty(exports, "queryGenerator", {
17
17
  enumerable: true,
18
- get: function () { return chunkDM6KQOMW_cjs.queryGenerator; }
18
+ get: function () { return chunkA7SD37VK_cjs.queryGenerator; }
19
19
  });
20
20
  //# sourceMappingURL=generators.cjs.map
21
21
  //# sourceMappingURL=generators.cjs.map
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_plugin_oas from '@kubb/plugin-oas';
2
- import { P as PluginVueQuery } from './types-CJEMZz_Q.cjs';
2
+ import { P as PluginVueQuery } from './types-C8LfCZUP.cjs';
3
3
  import '@kubb/core';
4
4
  import '@kubb/oas';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as _kubb_plugin_oas from '@kubb/plugin-oas';
2
- import { P as PluginVueQuery } from './types-CJEMZz_Q.js';
2
+ import { P as PluginVueQuery } from './types-C8LfCZUP.js';
3
3
  import '@kubb/core';
4
4
  import '@kubb/oas';
5
5
 
@@ -1,4 +1,4 @@
1
- export { infiniteQueryGenerator, mutationGenerator, queryGenerator } from './chunk-JOSO5JH4.js';
2
- import './chunk-DWWRCRGY.js';
1
+ export { infiniteQueryGenerator, mutationGenerator, queryGenerator } from './chunk-O4EGNKUX.js';
2
+ import './chunk-DHJLKFYS.js';
3
3
  //# sourceMappingURL=generators.js.map
4
4
  //# sourceMappingURL=generators.js.map
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkDM6KQOMW_cjs = require('./chunk-DM6KQOMW.cjs');
4
- require('./chunk-5MY3SE2R.cjs');
3
+ var chunkA7SD37VK_cjs = require('./chunk-A7SD37VK.cjs');
4
+ var chunkJ4RZRRHQ_cjs = require('./chunk-J4RZRRHQ.cjs');
5
5
  var path = require('path');
6
6
  var core = require('@kubb/core');
7
7
  var transformers = require('@kubb/core/transformers');
@@ -28,7 +28,9 @@ var pluginVueQuery = core.createPlugin((options) => {
28
28
  pathParamsType = "inline",
29
29
  mutation = {},
30
30
  query = {},
31
- generators = [chunkDM6KQOMW_cjs.queryGenerator, chunkDM6KQOMW_cjs.infiniteQueryGenerator, chunkDM6KQOMW_cjs.mutationGenerator].filter(Boolean)
31
+ mutationKey = chunkJ4RZRRHQ_cjs.MutationKey.getTransformer,
32
+ queryKey = chunkJ4RZRRHQ_cjs.QueryKey.getTransformer,
33
+ generators = [chunkA7SD37VK_cjs.queryGenerator, chunkA7SD37VK_cjs.infiniteQueryGenerator, chunkA7SD37VK_cjs.mutationGenerator].filter(Boolean)
32
34
  } = options;
33
35
  return {
34
36
  name: pluginVueQueryName,
@@ -46,14 +48,14 @@ var pluginVueQuery = core.createPlugin((options) => {
46
48
  cursorParam: void 0,
47
49
  ...infinite
48
50
  } : false,
51
+ queryKey,
49
52
  query: {
50
- key: (key) => key,
51
53
  methods: ["get"],
52
54
  importPath: "@tanstack/vue-query",
53
55
  ...query
54
56
  },
57
+ mutationKey,
55
58
  mutation: {
56
- key: (key) => key,
57
59
  methods: ["post", "put", "patch", "delete"],
58
60
  importPath: "@tanstack/vue-query",
59
61
  ...mutation