@kubb/plugin-vue-query 3.16.1 → 3.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-ClNrCCre.cjs +873 -0
- package/dist/components-ClNrCCre.cjs.map +1 -0
- package/dist/components-D8lYnxao.js +803 -0
- package/dist/components-D8lYnxao.js.map +1 -0
- package/dist/components.cjs +9 -36
- package/dist/components.d.cts +266 -124
- package/dist/components.d.ts +266 -124
- package/dist/components.js +3 -3
- package/dist/generators-DIB6YtRr.js +556 -0
- package/dist/generators-DIB6YtRr.js.map +1 -0
- package/dist/generators-DIZQUvkg.cjs +573 -0
- package/dist/generators-DIZQUvkg.cjs.map +1 -0
- package/dist/generators.cjs +5 -20
- package/dist/generators.d.cts +12 -12
- package/dist/generators.d.ts +12 -12
- package/dist/generators.js +4 -4
- package/dist/index.cjs +118 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +118 -137
- package/dist/index.js.map +1 -1
- package/dist/types-DPDni0p-.d.ts +1385 -0
- package/dist/types-UcJcIqHK.d.cts +1385 -0
- package/package.json +25 -30
- package/dist/chunk-5RO5VZAJ.js +0 -444
- package/dist/chunk-5RO5VZAJ.js.map +0 -1
- package/dist/chunk-BBSHBY5N.cjs +0 -448
- package/dist/chunk-BBSHBY5N.cjs.map +0 -1
- package/dist/chunk-KHEXOVSW.js +0 -726
- package/dist/chunk-KHEXOVSW.js.map +0 -1
- package/dist/chunk-ZR7DRLPY.cjs +0 -734
- package/dist/chunk-ZR7DRLPY.cjs.map +0 -1
- package/dist/components.cjs.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/generators.cjs.map +0 -1
- package/dist/generators.js.map +0 -1
- package/dist/types-CDzVWC17.d.cts +0 -164
- package/dist/types-CDzVWC17.d.ts +0 -164
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
const require_components = require('./components-ClNrCCre.cjs');
|
|
2
|
+
const __kubb_plugin_oas = require_components.__toESM(require("@kubb/plugin-oas"));
|
|
3
|
+
const __kubb_plugin_ts = require_components.__toESM(require("@kubb/plugin-ts"));
|
|
4
|
+
const __kubb_plugin_zod = require_components.__toESM(require("@kubb/plugin-zod"));
|
|
5
|
+
const __kubb_react = require_components.__toESM(require("@kubb/react"));
|
|
6
|
+
const __kubb_plugin_client_components = require_components.__toESM(require("@kubb/plugin-client/components"));
|
|
7
|
+
const __kubb_plugin_oas_utils = require_components.__toESM(require("@kubb/plugin-oas/utils"));
|
|
8
|
+
const __kubb_react_jsx_runtime = require_components.__toESM(require("@kubb/react/jsx-runtime"));
|
|
9
|
+
const __kubb_plugin_client = require_components.__toESM(require("@kubb/plugin-client"));
|
|
10
|
+
const __kubb_plugin_oas_hooks = require_components.__toESM(require("@kubb/plugin-oas/hooks"));
|
|
11
|
+
const remeda = require_components.__toESM(require("remeda"));
|
|
12
|
+
|
|
13
|
+
//#region src/generators/queryGenerator.tsx
|
|
14
|
+
const queryGenerator = (0, __kubb_plugin_oas.createReactGenerator)({
|
|
15
|
+
name: "vue-query",
|
|
16
|
+
Operation({ options, operation }) {
|
|
17
|
+
const { plugin: { options: { output } }, pluginManager } = (0, __kubb_react.useApp)();
|
|
18
|
+
const oas = (0, __kubb_plugin_oas_hooks.useOas)();
|
|
19
|
+
const { getSchemas, getName, getFile } = (0, __kubb_plugin_oas_hooks.useOperationManager)();
|
|
20
|
+
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
21
|
+
const isMutation = (0, remeda.difference)(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method);
|
|
22
|
+
const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
|
|
23
|
+
const query = {
|
|
24
|
+
name: getName(operation, {
|
|
25
|
+
type: "function",
|
|
26
|
+
prefix: "use"
|
|
27
|
+
}),
|
|
28
|
+
typeName: getName(operation, { type: "type" }),
|
|
29
|
+
file: getFile(operation, { prefix: "use" })
|
|
30
|
+
};
|
|
31
|
+
const hasClientPlugin = !!pluginManager.getPluginByKey([__kubb_plugin_client.pluginClientName]);
|
|
32
|
+
const client = {
|
|
33
|
+
name: hasClientPlugin ? getName(operation, {
|
|
34
|
+
type: "function",
|
|
35
|
+
pluginKey: [__kubb_plugin_client.pluginClientName]
|
|
36
|
+
}) : getName(operation, { type: "function" }),
|
|
37
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_client.pluginClientName] })
|
|
38
|
+
};
|
|
39
|
+
const queryOptions = { name: getName(operation, {
|
|
40
|
+
type: "function",
|
|
41
|
+
suffix: "QueryOptions"
|
|
42
|
+
}) };
|
|
43
|
+
const queryKey = {
|
|
44
|
+
name: getName(operation, {
|
|
45
|
+
type: "const",
|
|
46
|
+
suffix: "QueryKey"
|
|
47
|
+
}),
|
|
48
|
+
typeName: getName(operation, {
|
|
49
|
+
type: "type",
|
|
50
|
+
suffix: "QueryKey"
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
const type = {
|
|
54
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_ts.pluginTsName] }),
|
|
55
|
+
schemas: getSchemas(operation, {
|
|
56
|
+
pluginKey: [__kubb_plugin_ts.pluginTsName],
|
|
57
|
+
type: "type"
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
const zod = {
|
|
61
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_zod.pluginZodName] }),
|
|
62
|
+
schemas: getSchemas(operation, {
|
|
63
|
+
pluginKey: [__kubb_plugin_zod.pluginZodName],
|
|
64
|
+
type: "function"
|
|
65
|
+
})
|
|
66
|
+
};
|
|
67
|
+
if (!isQuery || isMutation) return null;
|
|
68
|
+
return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react.File, {
|
|
69
|
+
baseName: query.file.baseName,
|
|
70
|
+
path: query.file.path,
|
|
71
|
+
meta: query.file.meta,
|
|
72
|
+
banner: (0, __kubb_plugin_oas_utils.getBanner)({
|
|
73
|
+
oas,
|
|
74
|
+
output,
|
|
75
|
+
config: pluginManager.config
|
|
76
|
+
}),
|
|
77
|
+
footer: (0, __kubb_plugin_oas_utils.getFooter)({
|
|
78
|
+
oas,
|
|
79
|
+
output
|
|
80
|
+
}),
|
|
81
|
+
children: [
|
|
82
|
+
options.parser === "zod" && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
83
|
+
name: [zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean),
|
|
84
|
+
root: query.file.path,
|
|
85
|
+
path: zod.file.path
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
88
|
+
name: ["toValue"],
|
|
89
|
+
path: "vue"
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
92
|
+
name: ["MaybeRefOrGetter"],
|
|
93
|
+
path: "vue",
|
|
94
|
+
isTypeOnly: true
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
97
|
+
name: "fetch",
|
|
98
|
+
path: options.client.importPath
|
|
99
|
+
}),
|
|
100
|
+
!!hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
101
|
+
name: [client.name],
|
|
102
|
+
root: query.file.path,
|
|
103
|
+
path: client.file.path
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
106
|
+
name: ["RequestConfig", "ResponseErrorConfig"],
|
|
107
|
+
path: options.client.importPath,
|
|
108
|
+
isTypeOnly: true
|
|
109
|
+
}),
|
|
110
|
+
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
111
|
+
name: ["ResponseConfig"],
|
|
112
|
+
path: options.client.importPath,
|
|
113
|
+
isTypeOnly: true
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
116
|
+
name: [
|
|
117
|
+
type.schemas.request?.name,
|
|
118
|
+
type.schemas.response.name,
|
|
119
|
+
type.schemas.pathParams?.name,
|
|
120
|
+
type.schemas.queryParams?.name,
|
|
121
|
+
type.schemas.headerParams?.name,
|
|
122
|
+
...type.schemas.statusCodes?.map((item) => item.name) || []
|
|
123
|
+
].filter(Boolean),
|
|
124
|
+
root: query.file.path,
|
|
125
|
+
path: type.file.path,
|
|
126
|
+
isTypeOnly: true
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.QueryKey, {
|
|
129
|
+
name: queryKey.name,
|
|
130
|
+
typeName: queryKey.typeName,
|
|
131
|
+
operation,
|
|
132
|
+
paramsCasing: options.paramsCasing,
|
|
133
|
+
pathParamsType: options.pathParamsType,
|
|
134
|
+
typeSchemas: type.schemas,
|
|
135
|
+
transformer: options.queryKey
|
|
136
|
+
}),
|
|
137
|
+
!hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_plugin_client_components.Client, {
|
|
138
|
+
name: client.name,
|
|
139
|
+
baseURL: options.client.baseURL,
|
|
140
|
+
operation,
|
|
141
|
+
typeSchemas: type.schemas,
|
|
142
|
+
zodSchemas: zod.schemas,
|
|
143
|
+
dataReturnType: options.client.dataReturnType,
|
|
144
|
+
paramsCasing: options.paramsCasing,
|
|
145
|
+
paramsType: options.paramsType,
|
|
146
|
+
pathParamsType: options.pathParamsType,
|
|
147
|
+
parser: options.parser
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
150
|
+
name: ["queryOptions"],
|
|
151
|
+
path: importPath
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.QueryOptions, {
|
|
154
|
+
name: queryOptions.name,
|
|
155
|
+
clientName: client.name,
|
|
156
|
+
queryKeyName: queryKey.name,
|
|
157
|
+
paramsCasing: options.paramsCasing,
|
|
158
|
+
typeSchemas: type.schemas,
|
|
159
|
+
paramsType: options.paramsType,
|
|
160
|
+
pathParamsType: options.pathParamsType,
|
|
161
|
+
dataReturnType: options.client.dataReturnType
|
|
162
|
+
}),
|
|
163
|
+
options.query && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [
|
|
164
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
165
|
+
name: ["useQuery"],
|
|
166
|
+
path: importPath
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
169
|
+
name: [
|
|
170
|
+
"QueryKey",
|
|
171
|
+
"QueryClient",
|
|
172
|
+
"QueryObserverOptions",
|
|
173
|
+
"UseQueryReturnType"
|
|
174
|
+
],
|
|
175
|
+
path: importPath,
|
|
176
|
+
isTypeOnly: true
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.Query, {
|
|
179
|
+
name: query.name,
|
|
180
|
+
queryOptionsName: queryOptions.name,
|
|
181
|
+
typeSchemas: type.schemas,
|
|
182
|
+
paramsCasing: options.paramsCasing,
|
|
183
|
+
paramsType: options.paramsType,
|
|
184
|
+
pathParamsType: options.pathParamsType,
|
|
185
|
+
operation,
|
|
186
|
+
dataReturnType: options.client.dataReturnType,
|
|
187
|
+
queryKeyName: queryKey.name,
|
|
188
|
+
queryKeyTypeName: queryKey.typeName
|
|
189
|
+
})
|
|
190
|
+
] })
|
|
191
|
+
]
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/generators/mutationGenerator.tsx
|
|
198
|
+
const mutationGenerator = (0, __kubb_plugin_oas.createReactGenerator)({
|
|
199
|
+
name: "vue-query",
|
|
200
|
+
Operation({ options, operation }) {
|
|
201
|
+
const { plugin: { options: { output } }, pluginManager } = (0, __kubb_react.useApp)();
|
|
202
|
+
const oas = (0, __kubb_plugin_oas_hooks.useOas)();
|
|
203
|
+
const { getSchemas, getName, getFile } = (0, __kubb_plugin_oas_hooks.useOperationManager)();
|
|
204
|
+
const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method);
|
|
205
|
+
const isMutation = !isQuery && (0, remeda.difference)(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method);
|
|
206
|
+
const importPath = options.mutation ? options.mutation.importPath : "@tanstack/vue-query";
|
|
207
|
+
const mutation = {
|
|
208
|
+
name: getName(operation, {
|
|
209
|
+
type: "function",
|
|
210
|
+
prefix: "use"
|
|
211
|
+
}),
|
|
212
|
+
typeName: getName(operation, { type: "type" }),
|
|
213
|
+
file: getFile(operation, { prefix: "use" })
|
|
214
|
+
};
|
|
215
|
+
const type = {
|
|
216
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_ts.pluginTsName] }),
|
|
217
|
+
schemas: getSchemas(operation, {
|
|
218
|
+
pluginKey: [__kubb_plugin_ts.pluginTsName],
|
|
219
|
+
type: "type"
|
|
220
|
+
})
|
|
221
|
+
};
|
|
222
|
+
const zod = {
|
|
223
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_zod.pluginZodName] }),
|
|
224
|
+
schemas: getSchemas(operation, {
|
|
225
|
+
pluginKey: [__kubb_plugin_zod.pluginZodName],
|
|
226
|
+
type: "function"
|
|
227
|
+
})
|
|
228
|
+
};
|
|
229
|
+
const hasClientPlugin = !!pluginManager.getPluginByKey([__kubb_plugin_client.pluginClientName]);
|
|
230
|
+
const client = {
|
|
231
|
+
name: hasClientPlugin ? getName(operation, {
|
|
232
|
+
type: "function",
|
|
233
|
+
pluginKey: [__kubb_plugin_client.pluginClientName]
|
|
234
|
+
}) : getName(operation, { type: "function" }),
|
|
235
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_client.pluginClientName] })
|
|
236
|
+
};
|
|
237
|
+
const mutationKey = {
|
|
238
|
+
name: getName(operation, {
|
|
239
|
+
type: "const",
|
|
240
|
+
suffix: "MutationKey"
|
|
241
|
+
}),
|
|
242
|
+
typeName: getName(operation, {
|
|
243
|
+
type: "type",
|
|
244
|
+
suffix: "MutationKey"
|
|
245
|
+
})
|
|
246
|
+
};
|
|
247
|
+
if (!isMutation) return null;
|
|
248
|
+
return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react.File, {
|
|
249
|
+
baseName: mutation.file.baseName,
|
|
250
|
+
path: mutation.file.path,
|
|
251
|
+
meta: mutation.file.meta,
|
|
252
|
+
banner: (0, __kubb_plugin_oas_utils.getBanner)({
|
|
253
|
+
oas,
|
|
254
|
+
output,
|
|
255
|
+
config: pluginManager.config
|
|
256
|
+
}),
|
|
257
|
+
footer: (0, __kubb_plugin_oas_utils.getFooter)({
|
|
258
|
+
oas,
|
|
259
|
+
output
|
|
260
|
+
}),
|
|
261
|
+
children: [
|
|
262
|
+
options.parser === "zod" && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
263
|
+
name: [zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean),
|
|
264
|
+
root: mutation.file.path,
|
|
265
|
+
path: zod.file.path
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
268
|
+
name: ["MaybeRefOrGetter"],
|
|
269
|
+
path: "vue",
|
|
270
|
+
isTypeOnly: true
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
273
|
+
name: "fetch",
|
|
274
|
+
path: options.client.importPath
|
|
275
|
+
}),
|
|
276
|
+
!!hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
277
|
+
name: [client.name],
|
|
278
|
+
root: mutation.file.path,
|
|
279
|
+
path: client.file.path
|
|
280
|
+
}),
|
|
281
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
282
|
+
name: [
|
|
283
|
+
"RequestConfig",
|
|
284
|
+
"ResponseConfig",
|
|
285
|
+
"ResponseErrorConfig"
|
|
286
|
+
],
|
|
287
|
+
path: options.client.importPath,
|
|
288
|
+
isTypeOnly: true
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
291
|
+
name: [
|
|
292
|
+
type.schemas.request?.name,
|
|
293
|
+
type.schemas.response.name,
|
|
294
|
+
type.schemas.pathParams?.name,
|
|
295
|
+
type.schemas.queryParams?.name,
|
|
296
|
+
type.schemas.headerParams?.name,
|
|
297
|
+
...type.schemas.statusCodes?.map((item) => item.name) || []
|
|
298
|
+
].filter(Boolean),
|
|
299
|
+
root: mutation.file.path,
|
|
300
|
+
path: type.file.path,
|
|
301
|
+
isTypeOnly: true
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.MutationKey, {
|
|
304
|
+
name: mutationKey.name,
|
|
305
|
+
typeName: mutationKey.typeName,
|
|
306
|
+
operation,
|
|
307
|
+
pathParamsType: options.pathParamsType,
|
|
308
|
+
paramsCasing: options.paramsCasing,
|
|
309
|
+
typeSchemas: type.schemas,
|
|
310
|
+
transformer: options.mutationKey
|
|
311
|
+
}),
|
|
312
|
+
!hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_plugin_client_components.Client, {
|
|
313
|
+
name: client.name,
|
|
314
|
+
baseURL: options.client.baseURL,
|
|
315
|
+
operation,
|
|
316
|
+
typeSchemas: type.schemas,
|
|
317
|
+
zodSchemas: zod.schemas,
|
|
318
|
+
dataReturnType: options.client.dataReturnType,
|
|
319
|
+
paramsCasing: options.paramsCasing,
|
|
320
|
+
paramsType: options.paramsType,
|
|
321
|
+
pathParamsType: options.pathParamsType,
|
|
322
|
+
parser: options.parser
|
|
323
|
+
}),
|
|
324
|
+
options.mutation && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [
|
|
325
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
326
|
+
name: ["useMutation"],
|
|
327
|
+
path: importPath
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
330
|
+
name: ["MutationObserverOptions", "QueryClient"],
|
|
331
|
+
path: importPath,
|
|
332
|
+
isTypeOnly: true
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.Mutation, {
|
|
335
|
+
name: mutation.name,
|
|
336
|
+
clientName: client.name,
|
|
337
|
+
typeName: mutation.typeName,
|
|
338
|
+
typeSchemas: type.schemas,
|
|
339
|
+
operation,
|
|
340
|
+
paramsCasing: options.paramsCasing,
|
|
341
|
+
dataReturnType: options.client.dataReturnType,
|
|
342
|
+
paramsType: options.paramsType,
|
|
343
|
+
pathParamsType: options.pathParamsType,
|
|
344
|
+
mutationKeyName: mutationKey.name
|
|
345
|
+
})
|
|
346
|
+
] })
|
|
347
|
+
]
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region src/generators/infiniteQueryGenerator.tsx
|
|
354
|
+
const infiniteQueryGenerator = (0, __kubb_plugin_oas.createReactGenerator)({
|
|
355
|
+
name: "vue-infinite-query",
|
|
356
|
+
Operation({ options, operation }) {
|
|
357
|
+
const { plugin: { options: { output } }, pluginManager } = (0, __kubb_react.useApp)();
|
|
358
|
+
const oas = (0, __kubb_plugin_oas_hooks.useOas)();
|
|
359
|
+
const { getSchemas, getName, getFile } = (0, __kubb_plugin_oas_hooks.useOperationManager)();
|
|
360
|
+
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
361
|
+
const isMutation = (0, remeda.difference)(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method);
|
|
362
|
+
const isInfinite = isQuery && !!options.infinite;
|
|
363
|
+
const importPath = options.query ? options.query.importPath : "@tanstack/vue-query";
|
|
364
|
+
const query = {
|
|
365
|
+
name: getName(operation, {
|
|
366
|
+
type: "function",
|
|
367
|
+
prefix: "use",
|
|
368
|
+
suffix: "infinite"
|
|
369
|
+
}),
|
|
370
|
+
typeName: getName(operation, { type: "type" }),
|
|
371
|
+
file: getFile(operation, {
|
|
372
|
+
prefix: "use",
|
|
373
|
+
suffix: "infinite"
|
|
374
|
+
})
|
|
375
|
+
};
|
|
376
|
+
const hasClientPlugin = !!pluginManager.getPluginByKey([__kubb_plugin_client.pluginClientName]);
|
|
377
|
+
const client = {
|
|
378
|
+
name: hasClientPlugin ? getName(operation, {
|
|
379
|
+
type: "function",
|
|
380
|
+
pluginKey: [__kubb_plugin_client.pluginClientName]
|
|
381
|
+
}) : getName(operation, {
|
|
382
|
+
type: "function",
|
|
383
|
+
suffix: "infinite"
|
|
384
|
+
}),
|
|
385
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_client.pluginClientName] })
|
|
386
|
+
};
|
|
387
|
+
const queryOptions = { name: getName(operation, {
|
|
388
|
+
type: "function",
|
|
389
|
+
suffix: "InfiniteQueryOptions"
|
|
390
|
+
}) };
|
|
391
|
+
const queryKey = {
|
|
392
|
+
name: getName(operation, {
|
|
393
|
+
type: "const",
|
|
394
|
+
suffix: "InfiniteQueryKey"
|
|
395
|
+
}),
|
|
396
|
+
typeName: getName(operation, {
|
|
397
|
+
type: "type",
|
|
398
|
+
suffix: "InfiniteQueryKey"
|
|
399
|
+
})
|
|
400
|
+
};
|
|
401
|
+
const type = {
|
|
402
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_ts.pluginTsName] }),
|
|
403
|
+
schemas: getSchemas(operation, {
|
|
404
|
+
pluginKey: [__kubb_plugin_ts.pluginTsName],
|
|
405
|
+
type: "type"
|
|
406
|
+
})
|
|
407
|
+
};
|
|
408
|
+
const zod = {
|
|
409
|
+
file: getFile(operation, { pluginKey: [__kubb_plugin_zod.pluginZodName] }),
|
|
410
|
+
schemas: getSchemas(operation, {
|
|
411
|
+
pluginKey: [__kubb_plugin_zod.pluginZodName],
|
|
412
|
+
type: "function"
|
|
413
|
+
})
|
|
414
|
+
};
|
|
415
|
+
if (!isQuery || isMutation || !isInfinite) return null;
|
|
416
|
+
return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react.File, {
|
|
417
|
+
baseName: query.file.baseName,
|
|
418
|
+
path: query.file.path,
|
|
419
|
+
meta: query.file.meta,
|
|
420
|
+
banner: (0, __kubb_plugin_oas_utils.getBanner)({
|
|
421
|
+
oas,
|
|
422
|
+
output,
|
|
423
|
+
config: pluginManager.config
|
|
424
|
+
}),
|
|
425
|
+
footer: (0, __kubb_plugin_oas_utils.getFooter)({
|
|
426
|
+
oas,
|
|
427
|
+
output
|
|
428
|
+
}),
|
|
429
|
+
children: [
|
|
430
|
+
options.parser === "zod" && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
431
|
+
name: [zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean),
|
|
432
|
+
root: query.file.path,
|
|
433
|
+
path: zod.file.path
|
|
434
|
+
}),
|
|
435
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
436
|
+
name: ["toValue"],
|
|
437
|
+
path: "vue"
|
|
438
|
+
}),
|
|
439
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
440
|
+
name: ["MaybeRefOrGetter"],
|
|
441
|
+
path: "vue",
|
|
442
|
+
isTypeOnly: true
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
445
|
+
name: "fetch",
|
|
446
|
+
path: options.client.importPath
|
|
447
|
+
}),
|
|
448
|
+
hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
449
|
+
name: [client.name],
|
|
450
|
+
root: query.file.path,
|
|
451
|
+
path: client.file.path
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
454
|
+
name: ["RequestConfig", "ResponseErrorConfig"],
|
|
455
|
+
path: options.client.importPath,
|
|
456
|
+
isTypeOnly: true
|
|
457
|
+
}),
|
|
458
|
+
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
459
|
+
name: ["ResponseConfig"],
|
|
460
|
+
path: options.client.importPath,
|
|
461
|
+
isTypeOnly: true
|
|
462
|
+
}),
|
|
463
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
464
|
+
name: [
|
|
465
|
+
type.schemas.request?.name,
|
|
466
|
+
type.schemas.response.name,
|
|
467
|
+
type.schemas.pathParams?.name,
|
|
468
|
+
type.schemas.queryParams?.name,
|
|
469
|
+
type.schemas.headerParams?.name,
|
|
470
|
+
...type.schemas.statusCodes?.map((item) => item.name) || []
|
|
471
|
+
].filter(Boolean),
|
|
472
|
+
root: query.file.path,
|
|
473
|
+
path: type.file.path,
|
|
474
|
+
isTypeOnly: true
|
|
475
|
+
}),
|
|
476
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.QueryKey, {
|
|
477
|
+
name: queryKey.name,
|
|
478
|
+
typeName: queryKey.typeName,
|
|
479
|
+
operation,
|
|
480
|
+
paramsCasing: options.paramsCasing,
|
|
481
|
+
pathParamsType: options.pathParamsType,
|
|
482
|
+
typeSchemas: type.schemas,
|
|
483
|
+
transformer: options.queryKey
|
|
484
|
+
}),
|
|
485
|
+
!hasClientPlugin && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_plugin_client_components.Client, {
|
|
486
|
+
name: client.name,
|
|
487
|
+
baseURL: options.client.baseURL,
|
|
488
|
+
operation,
|
|
489
|
+
typeSchemas: type.schemas,
|
|
490
|
+
zodSchemas: zod.schemas,
|
|
491
|
+
dataReturnType: options.client.dataReturnType,
|
|
492
|
+
paramsCasing: options.paramsCasing,
|
|
493
|
+
paramsType: options.paramsType,
|
|
494
|
+
pathParamsType: options.pathParamsType,
|
|
495
|
+
parser: options.parser
|
|
496
|
+
}),
|
|
497
|
+
options.infinite && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [
|
|
498
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
499
|
+
name: ["InfiniteData"],
|
|
500
|
+
isTypeOnly: true,
|
|
501
|
+
path: importPath
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
504
|
+
name: ["infiniteQueryOptions"],
|
|
505
|
+
path: importPath
|
|
506
|
+
}),
|
|
507
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.InfiniteQueryOptions, {
|
|
508
|
+
name: queryOptions.name,
|
|
509
|
+
clientName: client.name,
|
|
510
|
+
queryKeyName: queryKey.name,
|
|
511
|
+
typeSchemas: type.schemas,
|
|
512
|
+
paramsType: options.paramsType,
|
|
513
|
+
paramsCasing: options.paramsCasing,
|
|
514
|
+
pathParamsType: options.pathParamsType,
|
|
515
|
+
dataReturnType: options.client.dataReturnType,
|
|
516
|
+
cursorParam: options.infinite.cursorParam,
|
|
517
|
+
initialPageParam: options.infinite.initialPageParam,
|
|
518
|
+
queryParam: options.infinite.queryParam
|
|
519
|
+
})
|
|
520
|
+
] }),
|
|
521
|
+
options.infinite && /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [
|
|
522
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
523
|
+
name: ["useInfiniteQuery"],
|
|
524
|
+
path: importPath
|
|
525
|
+
}),
|
|
526
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Import, {
|
|
527
|
+
name: [
|
|
528
|
+
"QueryKey",
|
|
529
|
+
"QueryClient",
|
|
530
|
+
"InfiniteQueryObserverOptions",
|
|
531
|
+
"UseInfiniteQueryReturnType"
|
|
532
|
+
],
|
|
533
|
+
path: importPath,
|
|
534
|
+
isTypeOnly: true
|
|
535
|
+
}),
|
|
536
|
+
/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(require_components.InfiniteQuery, {
|
|
537
|
+
name: query.name,
|
|
538
|
+
queryOptionsName: queryOptions.name,
|
|
539
|
+
typeSchemas: type.schemas,
|
|
540
|
+
paramsCasing: options.paramsCasing,
|
|
541
|
+
paramsType: options.paramsType,
|
|
542
|
+
pathParamsType: options.pathParamsType,
|
|
543
|
+
operation,
|
|
544
|
+
dataReturnType: options.client.dataReturnType,
|
|
545
|
+
queryKeyName: queryKey.name,
|
|
546
|
+
queryKeyTypeName: queryKey.typeName
|
|
547
|
+
})
|
|
548
|
+
] })
|
|
549
|
+
]
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
|
|
554
|
+
//#endregion
|
|
555
|
+
Object.defineProperty(exports, 'infiniteQueryGenerator', {
|
|
556
|
+
enumerable: true,
|
|
557
|
+
get: function () {
|
|
558
|
+
return infiniteQueryGenerator;
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(exports, 'mutationGenerator', {
|
|
562
|
+
enumerable: true,
|
|
563
|
+
get: function () {
|
|
564
|
+
return mutationGenerator;
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
Object.defineProperty(exports, 'queryGenerator', {
|
|
568
|
+
enumerable: true,
|
|
569
|
+
get: function () {
|
|
570
|
+
return queryGenerator;
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
//# sourceMappingURL=generators-DIZQUvkg.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generators-DIZQUvkg.cjs","names":["pluginClientName","pluginTsName","pluginZodName","File","QueryKey","Client","QueryOptions","Query","pluginTsName","pluginZodName","pluginClientName","File","MutationKey","Client","Mutation","pluginClientName","pluginTsName","pluginZodName","File","QueryKey","Client","InfiniteQueryOptions","InfiniteQuery"],"sources":["../src/generators/queryGenerator.tsx","../src/generators/mutationGenerator.tsx","../src/generators/infiniteQueryGenerator.tsx"],"sourcesContent":["import { 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, useApp } from '@kubb/react'\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 plugin: {\n options: { output },\n },\n pluginManager,\n } = useApp<PluginVueQuery>()\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 { 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, useApp } from '@kubb/react'\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 plugin: {\n options: { output },\n },\n pluginManager,\n } = useApp<PluginVueQuery>()\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 { 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, useApp } from '@kubb/react'\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 plugin: {\n options: { output },\n },\n pluginManager,\n } = useApp<PluginVueQuery>()\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":";;;;;;;;;;;;;AAYA,MAAa,6DAAsD;CACjE,MAAM;CACN,UAAU,EAAE,SAAS,WAAW,EAAE;EAChC,MAAM,EACJ,QAAQ,EACN,SAAS,EAAE,QAAQ,EACpB,EACD,eACD,6BAA2B;EAC5B,MAAM,2CAAc;EACpB,MAAM,EAAE,YAAY,SAAS,SAAS,qDAAwB;EAE9D,MAAM,UAAU,OAAO,QAAQ,UAAU,YAAY,OAAO,QAAQ,OAAO,QAAQ,KAAK,CAAC,WAAW,UAAU,WAAW,OAAO;EAChI,MAAM,oCAAwB,QAAQ,WAAW,QAAQ,SAAS,UAAU,CAAE,GAAE,QAAQ,QAAQ,QAAQ,MAAM,UAAU,CAAE,EAAC,CAAC,KAC1H,CAAC,WAAW,U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Y,OAAO;MACnB,cAAc,SAAS;MACvB,aAAa,KAAK;MAClB,YAAY,QAAQ;MACpB,cAAc,QAAQ;MACtB,gBAAgB,QAAQ;MACxB,gBAAgB,QAAQ,OAAO;MAC/B,aAAa,QAAQ,SAAS;MAC9B,kBAAkB,QAAQ,SAAS;MACnC,YAAY,QAAQ,SAAS;OAC7B;QACD;IAEJ,QAAQ;uDAEJH,kBAAK;MAAO,MAAM,CAAC,kBAAmB;MAAE,MAAM;OAAc;uDAC5DA,kBAAK;MAAO,MAAM;OAAC;OAAY;OAAe;OAAgC;MAA6B;MAAE,MAAM;MAAY;OAAa;uDAC5II;MACC,MAAM,MAAM;MACZ,kBAAkB,aAAa;MAC/B,aAAa,KAAK;MAClB,cAAc,QAAQ;MACtB,YAAY,QAAQ;MACpB,gBAAgB,QAAQ;MACb;MACX,gBAAgB,QAAQ,OAAO;MAC/B,cAAc,SAAS;MACvB,kBAAkB,SAAS;OAC3B;QACD;;IAEA;CAEV;AACF,EAAC"}
|
package/dist/generators.cjs
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
'
|
|
1
|
+
require('./components-ClNrCCre.cjs');
|
|
2
|
+
const require_generators = require('./generators-DIZQUvkg.cjs');
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "infiniteQueryGenerator", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkBBSHBY5N_cjs.infiniteQueryGenerator; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "mutationGenerator", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkBBSHBY5N_cjs.mutationGenerator; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "queryGenerator", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkBBSHBY5N_cjs.queryGenerator; }
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=generators.cjs.map
|
|
21
|
-
//# sourceMappingURL=generators.cjs.map
|
|
4
|
+
exports.infiniteQueryGenerator = require_generators.infiniteQueryGenerator;
|
|
5
|
+
exports.mutationGenerator = require_generators.mutationGenerator;
|
|
6
|
+
exports.queryGenerator = require_generators.queryGenerator;
|