@kubb/plugin-vue-query 4.3.1 → 4.4.1

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 (42) hide show
  1. package/dist/chunk-DMmIE7y6.js +28 -0
  2. package/dist/{components-Dvi_jRkJ.js → components-B8p5782n.js} +3 -3
  3. package/dist/components-B8p5782n.js.map +1 -0
  4. package/dist/{components-bMp5Ah9F.cjs → components-DoPUxAFs.cjs} +37 -37
  5. package/dist/components-DoPUxAFs.cjs.map +1 -0
  6. package/dist/components.cjs +1 -1
  7. package/dist/components.d.cts +16 -19
  8. package/dist/components.d.ts +16 -19
  9. package/dist/components.js +1 -1
  10. package/dist/{generators-DBMY3PQ4.js → generators-CxbnV3X_.js} +4 -4
  11. package/dist/generators-CxbnV3X_.js.map +1 -0
  12. package/dist/{generators-BF51oYnC.cjs → generators-a7s1tUe0.cjs} +55 -55
  13. package/dist/generators-a7s1tUe0.cjs.map +1 -0
  14. package/dist/generators.cjs +2 -2
  15. package/dist/generators.d.cts +4 -4
  16. package/dist/generators.d.ts +4 -4
  17. package/dist/generators.js +2 -2
  18. package/dist/index.cjs +3 -2
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +3 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/{types-COVfOkZY.d.ts → types-CGRXTDFW.d.ts} +230 -325
  25. package/dist/{types-Cm8SKgrw.d.cts → types-PVIn4n6Z.d.cts} +230 -325
  26. package/package.json +18 -14
  27. package/src/components/InfiniteQuery.tsx +3 -2
  28. package/src/components/InfiniteQueryOptions.tsx +3 -2
  29. package/src/components/Mutation.tsx +13 -3
  30. package/src/components/MutationKey.tsx +3 -2
  31. package/src/components/Query.tsx +3 -2
  32. package/src/components/QueryKey.tsx +3 -2
  33. package/src/components/QueryOptions.tsx +3 -2
  34. package/src/generators/infiniteQueryGenerator.tsx +1 -1
  35. package/src/generators/mutationGenerator.tsx +1 -1
  36. package/src/generators/queryGenerator.tsx +1 -1
  37. package/src/plugin.ts +1 -0
  38. package/src/types.ts +1 -1
  39. package/dist/components-Dvi_jRkJ.js.map +0 -1
  40. package/dist/components-bMp5Ah9F.cjs.map +0 -1
  41. package/dist/generators-BF51oYnC.cjs.map +0 -1
  42. package/dist/generators-DBMY3PQ4.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-Cm8SKgrw.cjs";
1
+ import { a as OperationSchemas, c as Operation, i as Transformer, r as PluginVueQuery, t as Infinite } from "./types-PVIn4n6Z.cjs";
2
+ import { FunctionParams } from "@kubb/react-fabric";
3
+ import { KubbNode } from "@kubb/react-fabric/types";
2
4
 
3
- //#region rolldown:runtime
4
- //#endregion
5
5
  //#region src/components/Mutation.d.ts
6
6
  type Props$6 = {
7
7
  /**
@@ -28,10 +28,7 @@ declare function Mutation({
28
28
  typeSchemas,
29
29
  operation,
30
30
  mutationKeyName
31
- }: Props$6): any;
32
- import * as import___kubb_react_fabric from "@kubb/react-fabric";
33
- import * as import___kubb_react_fabric_parsers from "@kubb/react-fabric/parsers";
34
- import * as import___kubb_react_fabric_plugins from "@kubb/react-fabric/plugins";
31
+ }: Props$6): KubbNode;
35
32
  //#endregion
36
33
  //#region src/components/Query.d.ts
37
34
  type Props$5 = {
@@ -67,7 +64,7 @@ declare function Query({
67
64
  dataReturnType,
68
65
  typeSchemas,
69
66
  operation
70
- }: Props$5): any;
67
+ }: Props$5): KubbNode;
71
68
  declare namespace Query {
72
69
  var getParams: ({
73
70
  paramsCasing,
@@ -75,7 +72,7 @@ declare namespace Query {
75
72
  pathParamsType,
76
73
  dataReturnType,
77
74
  typeSchemas
78
- }: GetParamsProps$5) => index_d_exports.FunctionParams;
75
+ }: GetParamsProps$5) => FunctionParams;
79
76
  }
80
77
  //#endregion
81
78
  //#region src/components/QueryKey.d.ts
@@ -101,13 +98,13 @@ declare function QueryKey({
101
98
  operation,
102
99
  typeName,
103
100
  transformer
104
- }: Props$4): any;
101
+ }: Props$4): KubbNode;
105
102
  declare namespace QueryKey {
106
103
  var getParams: ({
107
104
  pathParamsType,
108
105
  paramsCasing,
109
106
  typeSchemas
110
- }: GetParamsProps$4) => index_d_exports.FunctionParams;
107
+ }: GetParamsProps$4) => FunctionParams;
111
108
  var getTransformer: Transformer;
112
109
  }
113
110
  //#endregion
@@ -137,14 +134,14 @@ declare function QueryOptions({
137
134
  paramsType,
138
135
  pathParamsType,
139
136
  queryKeyName
140
- }: Props$3): any;
137
+ }: Props$3): KubbNode;
141
138
  declare namespace QueryOptions {
142
139
  var getParams: ({
143
140
  paramsType,
144
141
  paramsCasing,
145
142
  pathParamsType,
146
143
  typeSchemas
147
- }: GetParamsProps$3) => index_d_exports.FunctionParams;
144
+ }: GetParamsProps$3) => FunctionParams;
148
145
  }
149
146
  //#endregion
150
147
  //#region src/components/InfiniteQueryOptions.d.ts
@@ -179,14 +176,14 @@ declare function InfiniteQueryOptions({
179
176
  pathParamsType,
180
177
  queryParam,
181
178
  queryKeyName
182
- }: Props$2): any;
179
+ }: Props$2): KubbNode;
183
180
  declare namespace InfiniteQueryOptions {
184
181
  var getParams: ({
185
182
  paramsType,
186
183
  paramsCasing,
187
184
  pathParamsType,
188
185
  typeSchemas
189
- }: GetParamsProps$2) => index_d_exports.FunctionParams;
186
+ }: GetParamsProps$2) => FunctionParams;
190
187
  }
191
188
  //#endregion
192
189
  //#region src/components/InfiniteQuery.d.ts
@@ -223,7 +220,7 @@ declare function InfiniteQuery({
223
220
  dataReturnType,
224
221
  typeSchemas,
225
222
  operation
226
- }: Props$1): any;
223
+ }: Props$1): KubbNode;
227
224
  declare namespace InfiniteQuery {
228
225
  var getParams: ({
229
226
  paramsType,
@@ -231,7 +228,7 @@ declare namespace InfiniteQuery {
231
228
  pathParamsType,
232
229
  dataReturnType,
233
230
  typeSchemas
234
- }: GetParamsProps$1) => index_d_exports.FunctionParams;
231
+ }: GetParamsProps$1) => FunctionParams;
235
232
  }
236
233
  //#endregion
237
234
  //#region src/components/MutationKey.d.ts
@@ -256,9 +253,9 @@ declare function MutationKey({
256
253
  operation,
257
254
  typeName,
258
255
  transformer
259
- }: Props): any;
256
+ }: Props): KubbNode;
260
257
  declare namespace MutationKey {
261
- var getParams: ({}: GetParamsProps) => index_d_exports.FunctionParams;
258
+ var getParams: ({}: GetParamsProps) => FunctionParams;
262
259
  var getTransformer: Transformer;
263
260
  }
264
261
  //#endregion
@@ -1,7 +1,7 @@
1
- import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginVueQuery, t as Infinite } from "./types-COVfOkZY.js";
1
+ import { a as OperationSchemas, c as Operation, i as Transformer, r as PluginVueQuery, t as Infinite } from "./types-CGRXTDFW.js";
2
+ import { FunctionParams } from "@kubb/react-fabric";
3
+ import { KubbNode } from "@kubb/react-fabric/types";
2
4
 
3
- //#region rolldown:runtime
4
- //#endregion
5
5
  //#region src/components/Mutation.d.ts
6
6
  type Props$6 = {
7
7
  /**
@@ -28,10 +28,7 @@ declare function Mutation({
28
28
  typeSchemas,
29
29
  operation,
30
30
  mutationKeyName
31
- }: Props$6): any;
32
- import * as import___kubb_react_fabric from "@kubb/react-fabric";
33
- import * as import___kubb_react_fabric_parsers from "@kubb/react-fabric/parsers";
34
- import * as import___kubb_react_fabric_plugins from "@kubb/react-fabric/plugins";
31
+ }: Props$6): KubbNode;
35
32
  //#endregion
36
33
  //#region src/components/Query.d.ts
37
34
  type Props$5 = {
@@ -67,7 +64,7 @@ declare function Query({
67
64
  dataReturnType,
68
65
  typeSchemas,
69
66
  operation
70
- }: Props$5): any;
67
+ }: Props$5): KubbNode;
71
68
  declare namespace Query {
72
69
  var getParams: ({
73
70
  paramsCasing,
@@ -75,7 +72,7 @@ declare namespace Query {
75
72
  pathParamsType,
76
73
  dataReturnType,
77
74
  typeSchemas
78
- }: GetParamsProps$5) => index_d_exports.FunctionParams;
75
+ }: GetParamsProps$5) => FunctionParams;
79
76
  }
80
77
  //#endregion
81
78
  //#region src/components/QueryKey.d.ts
@@ -101,13 +98,13 @@ declare function QueryKey({
101
98
  operation,
102
99
  typeName,
103
100
  transformer
104
- }: Props$4): any;
101
+ }: Props$4): KubbNode;
105
102
  declare namespace QueryKey {
106
103
  var getParams: ({
107
104
  pathParamsType,
108
105
  paramsCasing,
109
106
  typeSchemas
110
- }: GetParamsProps$4) => index_d_exports.FunctionParams;
107
+ }: GetParamsProps$4) => FunctionParams;
111
108
  var getTransformer: Transformer;
112
109
  }
113
110
  //#endregion
@@ -137,14 +134,14 @@ declare function QueryOptions({
137
134
  paramsType,
138
135
  pathParamsType,
139
136
  queryKeyName
140
- }: Props$3): any;
137
+ }: Props$3): KubbNode;
141
138
  declare namespace QueryOptions {
142
139
  var getParams: ({
143
140
  paramsType,
144
141
  paramsCasing,
145
142
  pathParamsType,
146
143
  typeSchemas
147
- }: GetParamsProps$3) => index_d_exports.FunctionParams;
144
+ }: GetParamsProps$3) => FunctionParams;
148
145
  }
149
146
  //#endregion
150
147
  //#region src/components/InfiniteQueryOptions.d.ts
@@ -179,14 +176,14 @@ declare function InfiniteQueryOptions({
179
176
  pathParamsType,
180
177
  queryParam,
181
178
  queryKeyName
182
- }: Props$2): any;
179
+ }: Props$2): KubbNode;
183
180
  declare namespace InfiniteQueryOptions {
184
181
  var getParams: ({
185
182
  paramsType,
186
183
  paramsCasing,
187
184
  pathParamsType,
188
185
  typeSchemas
189
- }: GetParamsProps$2) => index_d_exports.FunctionParams;
186
+ }: GetParamsProps$2) => FunctionParams;
190
187
  }
191
188
  //#endregion
192
189
  //#region src/components/InfiniteQuery.d.ts
@@ -223,7 +220,7 @@ declare function InfiniteQuery({
223
220
  dataReturnType,
224
221
  typeSchemas,
225
222
  operation
226
- }: Props$1): any;
223
+ }: Props$1): KubbNode;
227
224
  declare namespace InfiniteQuery {
228
225
  var getParams: ({
229
226
  paramsType,
@@ -231,7 +228,7 @@ declare namespace InfiniteQuery {
231
228
  pathParamsType,
232
229
  dataReturnType,
233
230
  typeSchemas
234
- }: GetParamsProps$1) => index_d_exports.FunctionParams;
231
+ }: GetParamsProps$1) => FunctionParams;
235
232
  }
236
233
  //#endregion
237
234
  //#region src/components/MutationKey.d.ts
@@ -256,9 +253,9 @@ declare function MutationKey({
256
253
  operation,
257
254
  typeName,
258
255
  transformer
259
- }: Props): any;
256
+ }: Props): KubbNode;
260
257
  declare namespace MutationKey {
261
- var getParams: ({}: GetParamsProps) => index_d_exports.FunctionParams;
258
+ var getParams: ({}: GetParamsProps) => FunctionParams;
262
259
  var getTransformer: Transformer;
263
260
  }
264
261
  //#endregion
@@ -1,3 +1,3 @@
1
- import { a as QueryKey, i as QueryOptions, n as InfiniteQueryOptions, o as Mutation, r as Query, s as MutationKey, t as InfiniteQuery } from "./components-Dvi_jRkJ.js";
1
+ import { a as QueryKey, i as QueryOptions, n as InfiniteQueryOptions, o as Mutation, r as Query, s as MutationKey, t as InfiniteQuery } from "./components-B8p5782n.js";
2
2
 
3
3
  export { InfiniteQuery, InfiniteQueryOptions, Mutation, MutationKey, Query, QueryKey, QueryOptions };
@@ -1,11 +1,11 @@
1
- import { a as QueryKey, i as QueryOptions, n as InfiniteQueryOptions, o as Mutation, r as Query, s as MutationKey, t as InfiniteQuery } from "./components-Dvi_jRkJ.js";
1
+ import { a as QueryKey, i as QueryOptions, n as InfiniteQueryOptions, o as Mutation, r as Query, s as MutationKey, t as InfiniteQuery } from "./components-B8p5782n.js";
2
2
  import { createReactGenerator } from "@kubb/plugin-oas";
3
3
  import { pluginTsName } from "@kubb/plugin-ts";
4
4
  import { pluginZodName } from "@kubb/plugin-zod";
5
5
  import { Client } from "@kubb/plugin-client/components";
6
6
  import { getBanner, getFooter } from "@kubb/plugin-oas/utils";
7
- import { File } from "@kubb/react";
8
- import { Fragment, jsx, jsxs } from "@kubb/react/jsx-runtime";
7
+ import { File } from "@kubb/react-fabric";
8
+ import { Fragment, jsx, jsxs } from "@kubb/react-fabric/jsx-runtime";
9
9
  import { usePlugin, usePluginManager } from "@kubb/core/hooks";
10
10
  import { pluginClientName } from "@kubb/plugin-client";
11
11
  import { useOas, useOperationManager } from "@kubb/plugin-oas/hooks";
@@ -556,4 +556,4 @@ const infiniteQueryGenerator = createReactGenerator({
556
556
 
557
557
  //#endregion
558
558
  export { mutationGenerator as n, queryGenerator as r, infiniteQueryGenerator as t };
559
- //# sourceMappingURL=generators-DBMY3PQ4.js.map
559
+ //# sourceMappingURL=generators-CxbnV3X_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generators-CxbnV3X_.js","names":[],"sources":["../src/generators/queryGenerator.tsx","../src/generators/mutationGenerator.tsx","../src/generators/infiniteQueryGenerator.tsx"],"sourcesContent":["import { usePlugin, usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const queryGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-query',\n Operation({ options, operation }) {\n const {\n options: { output },\n } = usePlugin<PluginVueQuery>()\n const pluginManager = usePluginManager()\n\n const oas = useOas()\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 = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\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 hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n const client = {\n name: hasClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'QueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'QueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'QueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n if (!isQuery || isMutation) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n <File.Import name={['toValue']} path=\"vue\" />\n <File.Import name={['MaybeRefOrGetter']} path=\"vue\" isTypeOnly />\n <File.Import name={'fetch'} path={options.client.importPath} />\n {!!hasClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n <File.Import name={['RequestConfig', 'ResponseErrorConfig']} 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 paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!hasClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n paramsCasing={options.paramsCasing}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType}\n />\n {options.query && (\n <>\n <File.Import name={['useQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'QueryObserverOptions', 'UseQueryReturnType']} path={importPath} isTypeOnly />\n <Query\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import { usePlugin, usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Mutation, MutationKey } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const mutationGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-query',\n Operation({ options, operation }) {\n const {\n options: { output },\n } = usePlugin<PluginVueQuery>()\n const pluginManager = usePluginManager()\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager()\n\n const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method)\n const isMutation =\n !isQuery &&\n difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method)\n\n const importPath = options.mutation ? options.mutation.importPath : '@tanstack/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 hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n const client = {\n name: hasClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const mutationKey = {\n name: getName(operation, { type: 'const', suffix: 'MutationKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'MutationKey' }),\n }\n\n if (!isMutation) {\n return null\n }\n\n return (\n <File\n baseName={mutation.file.baseName}\n path={mutation.file.path}\n meta={mutation.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={mutation.file.path} path={zod.file.path} />\n )}\n <File.Import name={['MaybeRefOrGetter']} path=\"vue\" isTypeOnly />\n <File.Import name={'fetch'} path={options.client.importPath} />\n {!!hasClientPlugin && <File.Import name={[client.name]} root={mutation.file.path} path={client.file.path} />}\n <File.Import name={['RequestConfig', 'ResponseConfig', 'ResponseErrorConfig']} 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 paramsCasing={options.paramsCasing}\n typeSchemas={type.schemas}\n transformer={options.mutationKey}\n />\n {!hasClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {options.mutation && (\n <>\n <File.Import name={['useMutation']} path={importPath} />\n <File.Import name={['MutationObserverOptions', 'QueryClient']} 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 paramsCasing={options.paramsCasing}\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 { usePlugin, usePluginManager } from '@kubb/core/hooks'\nimport { pluginClientName } from '@kubb/plugin-client'\nimport { Client } from '@kubb/plugin-client/components'\nimport { createReactGenerator } from '@kubb/plugin-oas'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { InfiniteQuery, InfiniteQueryOptions, QueryKey } from '../components'\nimport type { PluginVueQuery } from '../types'\n\nexport const infiniteQueryGenerator = createReactGenerator<PluginVueQuery>({\n name: 'vue-infinite-query',\n Operation({ options, operation }) {\n const {\n options: { output },\n } = usePlugin<PluginVueQuery>()\n const pluginManager = usePluginManager()\n\n const oas = useOas()\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 = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\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 hasClientPlugin = !!pluginManager.getPluginByKey([pluginClientName])\n const client = {\n name: hasClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginKey: [pluginClientName],\n })\n : getName(operation, {\n type: 'function',\n suffix: 'infinite',\n }),\n file: getFile(operation, { pluginKey: [pluginClientName] }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'InfiniteQueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'InfiniteQueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'InfiniteQueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginKey: [pluginTsName] }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginKey: [pluginTsName], type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginKey: [pluginZodName] }),\n schemas: getSchemas(operation, { pluginKey: [pluginZodName], type: 'function' }),\n }\n\n if (!isQuery || isMutation || !isInfinite) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: pluginManager.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n <File.Import name={['toValue']} path=\"vue\" />\n <File.Import name={['MaybeRefOrGetter']} path=\"vue\" isTypeOnly />\n <File.Import name={'fetch'} path={options.client.importPath} />\n {hasClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n <File.Import name={['RequestConfig', 'ResponseErrorConfig']} 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 paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!hasClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {options.infinite && (\n <>\n <File.Import name={['InfiniteData']} isTypeOnly path={importPath} />\n <File.Import name={['infiniteQueryOptions']} path={importPath} />\n <InfiniteQueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n paramsCasing={options.paramsCasing}\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', 'QueryClient', 'InfiniteQueryObserverOptions', 'UseInfiniteQueryReturnType']} path={importPath} isTypeOnly />\n <InfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n />\n </>\n )}\n </File>\n )\n },\n})\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,iBAAiB,qBAAqC;CACjE,MAAM;CACN,UAAU,EAAE,SAAS,aAAa;EAChC,MAAM,EACJ,SAAS,EAAE,aACT,WAA2B;EAC/B,MAAM,gBAAgB,kBAAkB;EAExC,MAAM,MAAM,QAAQ;EACpB,MAAM,EAAE,YAAY,SAAS,YAAY,qBAAqB;EAE9D,MAAM,UAAU,OAAO,QAAQ,UAAU,YAAY,OAAO,QAAQ,OAAO,QAAQ,MAAM,WAAW,UAAU,WAAW,OAAO;EAChI,MAAM,aAAa,WAAW,QAAQ,WAAW,QAAQ,SAAS,UAAU,EAAE,EAAE,QAAQ,QAAQ,QAAQ,MAAM,UAAU,EAAE,CAAC,CAAC,MACzH,WAAW,UAAU,WAAW,OAClC;EACD,MAAM,aAAa,QAAQ,QAAQ,QAAQ,MAAM,aAAa;EAE9D,MAAM,QAAQ;GACZ,MAAM,QAAQ,WAAW;IAAE,MAAM;IAAY,QAAQ;IAAO,CAAC;GAC7D,UAAU,QAAQ,WAAW,EAAE,MAAM,QAAQ,CAAC;GAC9C,MAAM,QAAQ,WAAW,EAAE,QAAQ,OAAO,CAAC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