@kubb/plugin-swr 5.0.0-alpha.9 → 5.0.0-beta.33

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 (44) hide show
  1. package/LICENSE +17 -10
  2. package/README.md +33 -26
  3. package/dist/components-ByADeLZO.cjs +1029 -0
  4. package/dist/components-ByADeLZO.cjs.map +1 -0
  5. package/dist/components-CBdpiiay.js +933 -0
  6. package/dist/components-CBdpiiay.js.map +1 -0
  7. package/dist/components.cjs +1 -1
  8. package/dist/components.d.ts +45 -51
  9. package/dist/components.js +1 -1
  10. package/dist/generators-Bb5wNYig.cjs +445 -0
  11. package/dist/generators-Bb5wNYig.cjs.map +1 -0
  12. package/dist/generators-D5kJZsB1.js +434 -0
  13. package/dist/generators-D5kJZsB1.js.map +1 -0
  14. package/dist/generators.cjs +1 -1
  15. package/dist/generators.d.ts +4 -500
  16. package/dist/generators.js +1 -1
  17. package/dist/index.cjs +134 -113
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +130 -113
  21. package/dist/index.js.map +1 -1
  22. package/dist/types-D9jeG3fE.d.ts +220 -0
  23. package/extension.yaml +199 -0
  24. package/package.json +57 -67
  25. package/src/components/Mutation.tsx +106 -227
  26. package/src/components/MutationKey.tsx +25 -1
  27. package/src/components/Query.tsx +75 -140
  28. package/src/components/QueryOptions.tsx +46 -95
  29. package/src/generators/mutationGenerator.tsx +113 -128
  30. package/src/generators/queryGenerator.tsx +125 -137
  31. package/src/index.ts +2 -2
  32. package/src/plugin.ts +117 -170
  33. package/src/resolvers/resolverSwr.ts +56 -0
  34. package/src/types.ts +115 -59
  35. package/src/utils.ts +10 -0
  36. package/dist/components-DRDGvgXG.js +0 -702
  37. package/dist/components-DRDGvgXG.js.map +0 -1
  38. package/dist/components-jd0l9XKn.cjs +0 -780
  39. package/dist/components-jd0l9XKn.cjs.map +0 -1
  40. package/dist/generators-CRSl6u2M.js +0 -399
  41. package/dist/generators-CRSl6u2M.js.map +0 -1
  42. package/dist/generators-D062obA7.cjs +0 -410
  43. package/dist/generators-D062obA7.cjs.map +0 -1
  44. package/dist/types-BIaGRPjD.d.ts +0 -210
@@ -0,0 +1,434 @@
1
+ import "./chunk--u3MIqq1.js";
2
+ import { a as QueryKey, c as resolveOperationTypeNames, i as Mutation, n as QueryOptions, r as MutationKey, s as resolveZodSchemaNames, t as Query } from "./components-CBdpiiay.js";
3
+ import path from "node:path";
4
+ import { ast, defineGenerator } from "@kubb/core";
5
+ import { Client, pluginClientName } from "@kubb/plugin-client";
6
+ import { pluginTsName } from "@kubb/plugin-ts";
7
+ import { pluginZodName } from "@kubb/plugin-zod";
8
+ import { File, jsxRenderer } from "@kubb/renderer-jsx";
9
+ import { Fragment, jsx, jsxs } from "@kubb/renderer-jsx/jsx-runtime";
10
+ import { difference } from "remeda";
11
+ //#region src/generators/mutationGenerator.tsx
12
+ const mutationGenerator = defineGenerator({
13
+ name: "swr-mutation",
14
+ renderer: jsxRenderer,
15
+ operation(node, ctx) {
16
+ if (!ast.isHttpOperationNode(node)) return null;
17
+ const { config, driver, resolver, root } = ctx;
18
+ const { output, query, mutation, paramsCasing, paramsType, pathParamsType, parser, client: clientOptions, group } = ctx.options;
19
+ const pluginTs = driver.getPlugin(pluginTsName);
20
+ if (!pluginTs) return null;
21
+ const tsResolver = driver.getResolver(pluginTsName);
22
+ const isQuery = query === false || !!query && query.methods.some((method) => node.method.toLowerCase() === method.toLowerCase());
23
+ if (!(mutation !== false && !isQuery && difference(mutation ? mutation.methods : [], query ? query.methods : []).some((method) => node.method.toLowerCase() === method.toLowerCase()))) return null;
24
+ const importPath = mutation ? mutation.importPath : "swr/mutation";
25
+ const mutationHookName = resolver.resolveMutationName(node);
26
+ const mutationKeyName = resolver.resolveMutationKeyName(node);
27
+ const mutationKeyTypeName = resolver.resolveMutationKeyTypeName(node);
28
+ const mutationArgTypeName = resolver.resolveMutationArgTypeName(node);
29
+ const clientName = resolver.resolveClientName(node);
30
+ const meta = {
31
+ file: resolver.resolveFile({
32
+ name: mutationHookName,
33
+ extname: ".ts",
34
+ tag: node.tags[0] ?? "default",
35
+ path: node.path
36
+ }, {
37
+ root,
38
+ output,
39
+ group
40
+ }),
41
+ fileTs: tsResolver.resolveFile({
42
+ name: node.operationId,
43
+ extname: ".ts",
44
+ tag: node.tags[0] ?? "default",
45
+ path: node.path
46
+ }, {
47
+ root,
48
+ output: pluginTs.options?.output ?? output,
49
+ group: pluginTs.options?.group
50
+ })
51
+ };
52
+ const importedTypeNames = resolveOperationTypeNames(node, tsResolver, {
53
+ paramsCasing,
54
+ order: "body-response-first"
55
+ });
56
+ const pluginZod = parser === "zod" ? driver.getPlugin(pluginZodName) : void 0;
57
+ const zodResolver = pluginZod ? driver.getResolver(pluginZodName) : void 0;
58
+ const fileZod = zodResolver ? zodResolver.resolveFile({
59
+ name: node.operationId,
60
+ extname: ".ts",
61
+ tag: node.tags[0] ?? "default",
62
+ path: node.path
63
+ }, {
64
+ root,
65
+ output: pluginZod?.options?.output ?? output,
66
+ group: pluginZod?.options?.group
67
+ }) : void 0;
68
+ const zodSchemaNames = resolveZodSchemaNames(node, zodResolver);
69
+ const clientPlugin = driver.getPlugin(pluginClientName);
70
+ const shouldUseClientPlugin = clientPlugin?.name === pluginClientName && clientOptions.clientType !== "class";
71
+ const clientResolver = shouldUseClientPlugin ? driver.getResolver(pluginClientName) : void 0;
72
+ const clientFile = shouldUseClientPlugin ? clientResolver?.resolveFile({
73
+ name: node.operationId,
74
+ extname: ".ts",
75
+ tag: node.tags[0] ?? "default",
76
+ path: node.path
77
+ }, {
78
+ root,
79
+ output: clientPlugin?.options?.output ?? output,
80
+ group: clientPlugin?.options?.group
81
+ }) : void 0;
82
+ const resolvedClientName = shouldUseClientPlugin ? clientResolver?.resolveName(node.operationId) ?? clientName : clientName;
83
+ return /* @__PURE__ */ jsxs(File, {
84
+ baseName: meta.file.baseName,
85
+ path: meta.file.path,
86
+ meta: meta.file.meta,
87
+ banner: resolver.resolveBanner(ctx.meta, {
88
+ output,
89
+ config,
90
+ file: {
91
+ path: meta.file.path,
92
+ baseName: meta.file.baseName
93
+ }
94
+ }),
95
+ footer: resolver.resolveFooter(ctx.meta, {
96
+ output,
97
+ config,
98
+ file: {
99
+ path: meta.file.path,
100
+ baseName: meta.file.baseName
101
+ }
102
+ }),
103
+ children: [
104
+ fileZod && zodSchemaNames.length > 0 && /* @__PURE__ */ jsx(File.Import, {
105
+ name: zodSchemaNames,
106
+ root: meta.file.path,
107
+ path: fileZod.path
108
+ }),
109
+ clientOptions.importPath ? /* @__PURE__ */ jsxs(Fragment, { children: [
110
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
111
+ name: "client",
112
+ path: clientOptions.importPath
113
+ }),
114
+ /* @__PURE__ */ jsx(File.Import, {
115
+ name: [
116
+ "Client",
117
+ "RequestConfig",
118
+ "ResponseErrorConfig"
119
+ ],
120
+ path: clientOptions.importPath,
121
+ isTypeOnly: true
122
+ }),
123
+ clientOptions.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
124
+ name: ["ResponseConfig"],
125
+ path: clientOptions.importPath,
126
+ isTypeOnly: true
127
+ })
128
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
129
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
130
+ name: ["client"],
131
+ root: meta.file.path,
132
+ path: path.resolve(root, ".kubb/client.ts")
133
+ }),
134
+ /* @__PURE__ */ jsx(File.Import, {
135
+ name: [
136
+ "Client",
137
+ "RequestConfig",
138
+ "ResponseErrorConfig"
139
+ ],
140
+ root: meta.file.path,
141
+ path: path.resolve(root, ".kubb/client.ts"),
142
+ isTypeOnly: true
143
+ }),
144
+ clientOptions.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
145
+ name: ["ResponseConfig"],
146
+ root: meta.file.path,
147
+ path: path.resolve(root, ".kubb/client.ts"),
148
+ isTypeOnly: true
149
+ })
150
+ ] }),
151
+ shouldUseClientPlugin && clientFile && /* @__PURE__ */ jsx(File.Import, {
152
+ name: [resolvedClientName],
153
+ root: meta.file.path,
154
+ path: clientFile.path
155
+ }),
156
+ !shouldUseClientPlugin && node.requestBody?.content?.some((e) => e.contentType === "multipart/form-data") && /* @__PURE__ */ jsx(File.Import, {
157
+ name: ["buildFormData"],
158
+ root: meta.file.path,
159
+ path: path.resolve(root, ".kubb/config.ts")
160
+ }),
161
+ meta.fileTs && importedTypeNames.length > 0 && /* @__PURE__ */ jsx(File.Import, {
162
+ name: Array.from(new Set(importedTypeNames)),
163
+ root: meta.file.path,
164
+ path: meta.fileTs.path,
165
+ isTypeOnly: true
166
+ }),
167
+ /* @__PURE__ */ jsx(MutationKey, {
168
+ name: mutationKeyName,
169
+ typeName: mutationKeyTypeName,
170
+ node,
171
+ pathParamsType,
172
+ paramsCasing,
173
+ transformer: ctx.options.mutationKey
174
+ }),
175
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(Client, {
176
+ name: resolvedClientName,
177
+ baseURL: clientOptions.baseURL,
178
+ dataReturnType: clientOptions.dataReturnType || "data",
179
+ paramsCasing: clientOptions.paramsCasing || paramsCasing,
180
+ paramsType,
181
+ pathParamsType,
182
+ parser,
183
+ node,
184
+ tsResolver,
185
+ zodResolver
186
+ }),
187
+ mutation && /* @__PURE__ */ jsxs(Fragment, { children: [
188
+ /* @__PURE__ */ jsx(File.Import, {
189
+ name: "useSWRMutation",
190
+ path: importPath
191
+ }),
192
+ /* @__PURE__ */ jsx(File.Import, {
193
+ name: ["SWRMutationConfiguration"],
194
+ path: importPath,
195
+ isTypeOnly: true
196
+ }),
197
+ /* @__PURE__ */ jsx(Mutation, {
198
+ name: mutationHookName,
199
+ clientName: resolvedClientName,
200
+ mutationKeyName,
201
+ mutationKeyTypeName,
202
+ mutationArgTypeName,
203
+ node,
204
+ tsResolver,
205
+ dataReturnType: clientOptions.dataReturnType || "data",
206
+ paramsCasing,
207
+ paramsType,
208
+ pathParamsType
209
+ })
210
+ ] })
211
+ ]
212
+ });
213
+ }
214
+ });
215
+ //#endregion
216
+ //#region src/generators/queryGenerator.tsx
217
+ const queryGenerator = defineGenerator({
218
+ name: "swr-query",
219
+ renderer: jsxRenderer,
220
+ operation(node, ctx) {
221
+ if (!ast.isHttpOperationNode(node)) return null;
222
+ const { config, driver, resolver, root } = ctx;
223
+ const { output, query, mutation, paramsCasing, paramsType, pathParamsType, parser, client: clientOptions, group } = ctx.options;
224
+ const pluginTs = driver.getPlugin(pluginTsName);
225
+ if (!pluginTs) return null;
226
+ const tsResolver = driver.getResolver(pluginTsName);
227
+ const isQuery = query === false || !!query && query.methods.some((method) => node.method.toLowerCase() === method.toLowerCase());
228
+ const isMutation = mutation !== false && !isQuery && difference(mutation ? mutation.methods : [], query ? query.methods : []).some((method) => node.method.toLowerCase() === method.toLowerCase());
229
+ if (!isQuery || isMutation) return null;
230
+ const importPath = query ? query.importPath : "swr";
231
+ const queryName = resolver.resolveQueryName(node);
232
+ const queryOptionsName = resolver.resolveQueryOptionsName(node);
233
+ const queryKeyName = resolver.resolveQueryKeyName(node);
234
+ const queryKeyTypeName = resolver.resolveQueryKeyTypeName(node);
235
+ const clientName = resolver.resolveClientName(node);
236
+ const meta = {
237
+ file: resolver.resolveFile({
238
+ name: queryName,
239
+ extname: ".ts",
240
+ tag: node.tags[0] ?? "default",
241
+ path: node.path
242
+ }, {
243
+ root,
244
+ output,
245
+ group
246
+ }),
247
+ fileTs: tsResolver.resolveFile({
248
+ name: node.operationId,
249
+ extname: ".ts",
250
+ tag: node.tags[0] ?? "default",
251
+ path: node.path
252
+ }, {
253
+ root,
254
+ output: pluginTs.options?.output ?? output,
255
+ group: pluginTs.options?.group
256
+ })
257
+ };
258
+ const importedTypeNames = resolveOperationTypeNames(node, tsResolver, {
259
+ paramsCasing,
260
+ exclude: [queryKeyTypeName],
261
+ order: "body-response-first"
262
+ });
263
+ const pluginZod = parser === "zod" ? driver.getPlugin(pluginZodName) : void 0;
264
+ const zodResolver = pluginZod ? driver.getResolver(pluginZodName) : void 0;
265
+ const fileZod = zodResolver ? zodResolver.resolveFile({
266
+ name: node.operationId,
267
+ extname: ".ts",
268
+ tag: node.tags[0] ?? "default",
269
+ path: node.path
270
+ }, {
271
+ root,
272
+ output: pluginZod?.options?.output ?? output,
273
+ group: pluginZod?.options?.group
274
+ }) : void 0;
275
+ const zodSchemaNames = resolveZodSchemaNames(node, zodResolver);
276
+ const clientPlugin = driver.getPlugin(pluginClientName);
277
+ const shouldUseClientPlugin = clientPlugin?.name === pluginClientName && clientOptions.clientType !== "class";
278
+ const clientResolver = shouldUseClientPlugin ? driver.getResolver(pluginClientName) : void 0;
279
+ const clientFile = shouldUseClientPlugin ? clientResolver?.resolveFile({
280
+ name: node.operationId,
281
+ extname: ".ts",
282
+ tag: node.tags[0] ?? "default",
283
+ path: node.path
284
+ }, {
285
+ root,
286
+ output: clientPlugin?.options?.output ?? output,
287
+ group: clientPlugin?.options?.group
288
+ }) : void 0;
289
+ const resolvedClientName = shouldUseClientPlugin ? clientResolver?.resolveName(node.operationId) ?? clientName : clientName;
290
+ return /* @__PURE__ */ jsxs(File, {
291
+ baseName: meta.file.baseName,
292
+ path: meta.file.path,
293
+ meta: meta.file.meta,
294
+ banner: resolver.resolveBanner(ctx.meta, {
295
+ output,
296
+ config,
297
+ file: {
298
+ path: meta.file.path,
299
+ baseName: meta.file.baseName
300
+ }
301
+ }),
302
+ footer: resolver.resolveFooter(ctx.meta, {
303
+ output,
304
+ config,
305
+ file: {
306
+ path: meta.file.path,
307
+ baseName: meta.file.baseName
308
+ }
309
+ }),
310
+ children: [
311
+ fileZod && zodSchemaNames.length > 0 && /* @__PURE__ */ jsx(File.Import, {
312
+ name: zodSchemaNames,
313
+ root: meta.file.path,
314
+ path: fileZod.path
315
+ }),
316
+ clientOptions.importPath ? /* @__PURE__ */ jsxs(Fragment, { children: [
317
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
318
+ name: "client",
319
+ path: clientOptions.importPath
320
+ }),
321
+ /* @__PURE__ */ jsx(File.Import, {
322
+ name: [
323
+ "Client",
324
+ "RequestConfig",
325
+ "ResponseErrorConfig"
326
+ ],
327
+ path: clientOptions.importPath,
328
+ isTypeOnly: true
329
+ }),
330
+ clientOptions.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
331
+ name: ["ResponseConfig"],
332
+ path: clientOptions.importPath,
333
+ isTypeOnly: true
334
+ })
335
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
336
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
337
+ name: ["client"],
338
+ root: meta.file.path,
339
+ path: path.resolve(root, ".kubb/client.ts")
340
+ }),
341
+ /* @__PURE__ */ jsx(File.Import, {
342
+ name: [
343
+ "Client",
344
+ "RequestConfig",
345
+ "ResponseErrorConfig"
346
+ ],
347
+ root: meta.file.path,
348
+ path: path.resolve(root, ".kubb/client.ts"),
349
+ isTypeOnly: true
350
+ }),
351
+ clientOptions.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
352
+ name: ["ResponseConfig"],
353
+ root: meta.file.path,
354
+ path: path.resolve(root, ".kubb/client.ts"),
355
+ isTypeOnly: true
356
+ })
357
+ ] }),
358
+ shouldUseClientPlugin && clientFile && /* @__PURE__ */ jsx(File.Import, {
359
+ name: [resolvedClientName],
360
+ root: meta.file.path,
361
+ path: clientFile.path
362
+ }),
363
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
364
+ name: ["buildFormData"],
365
+ root: meta.file.path,
366
+ path: path.resolve(root, ".kubb/config.ts")
367
+ }),
368
+ meta.fileTs && importedTypeNames.length > 0 && /* @__PURE__ */ jsx(File.Import, {
369
+ name: Array.from(new Set(importedTypeNames)),
370
+ root: meta.file.path,
371
+ path: meta.fileTs.path,
372
+ isTypeOnly: true
373
+ }),
374
+ /* @__PURE__ */ jsx(QueryKey, {
375
+ name: queryKeyName,
376
+ typeName: queryKeyTypeName,
377
+ node,
378
+ tsResolver,
379
+ pathParamsType,
380
+ paramsCasing,
381
+ transformer: ctx.options.queryKey
382
+ }),
383
+ !shouldUseClientPlugin && /* @__PURE__ */ jsx(Client, {
384
+ name: resolvedClientName,
385
+ baseURL: clientOptions.baseURL,
386
+ dataReturnType: clientOptions.dataReturnType || "data",
387
+ paramsCasing: clientOptions.paramsCasing || paramsCasing,
388
+ paramsType,
389
+ pathParamsType,
390
+ parser,
391
+ node,
392
+ tsResolver,
393
+ zodResolver
394
+ }),
395
+ /* @__PURE__ */ jsx(QueryOptions, {
396
+ name: queryOptionsName,
397
+ clientName: resolvedClientName,
398
+ node,
399
+ tsResolver,
400
+ paramsCasing,
401
+ paramsType,
402
+ pathParamsType
403
+ }),
404
+ query && /* @__PURE__ */ jsxs(Fragment, { children: [
405
+ /* @__PURE__ */ jsx(File.Import, {
406
+ name: "useSWR",
407
+ path: importPath
408
+ }),
409
+ /* @__PURE__ */ jsx(File.Import, {
410
+ name: ["SWRConfiguration"],
411
+ path: importPath,
412
+ isTypeOnly: true
413
+ }),
414
+ /* @__PURE__ */ jsx(Query, {
415
+ name: queryName,
416
+ queryOptionsName,
417
+ queryKeyName,
418
+ queryKeyTypeName,
419
+ node,
420
+ tsResolver,
421
+ paramsCasing,
422
+ paramsType,
423
+ pathParamsType,
424
+ dataReturnType: clientOptions.dataReturnType || "data"
425
+ })
426
+ ] })
427
+ ]
428
+ });
429
+ }
430
+ });
431
+ //#endregion
432
+ export { mutationGenerator as n, queryGenerator as t };
433
+
434
+ //# sourceMappingURL=generators-D5kJZsB1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generators-D5kJZsB1.js","names":[],"sources":["../src/generators/mutationGenerator.tsx","../src/generators/queryGenerator.tsx"],"sourcesContent":["import path from 'node:path'\nimport { resolveOperationTypeNames } from '@internals/shared'\nimport { resolveZodSchemaNames } from '@internals/tanstack-query'\nimport { ast, defineGenerator } from '@kubb/core'\nimport { Client, pluginClientName } from '@kubb/plugin-client'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, jsxRenderer } from '@kubb/renderer-jsx'\nimport { difference } from 'remeda'\nimport { Mutation, MutationKey } from '../components'\nimport type { PluginSwr } from '../types'\n\nexport const mutationGenerator = defineGenerator<PluginSwr>({\n name: 'swr-mutation',\n renderer: jsxRenderer,\n operation(node, ctx) {\n if (!ast.isHttpOperationNode(node)) return null\n const { config, driver, resolver, root } = ctx\n const { output, query, mutation, paramsCasing, paramsType, pathParamsType, parser, client: clientOptions, group } = ctx.options\n\n const pluginTs = driver.getPlugin(pluginTsName)\n if (!pluginTs) return null\n const tsResolver = driver.getResolver(pluginTsName)\n\n const isQuery = query === false || (!!query && query.methods.some((method) => node.method.toLowerCase() === method.toLowerCase()))\n const isMutation =\n mutation !== false &&\n !isQuery &&\n difference(mutation ? mutation.methods : [], query ? query.methods : []).some((method) => node.method.toLowerCase() === method.toLowerCase())\n\n if (!isMutation) return null\n\n const importPath = mutation ? mutation.importPath : 'swr/mutation'\n\n const mutationHookName = resolver.resolveMutationName(node)\n const mutationKeyName = resolver.resolveMutationKeyName(node)\n const mutationKeyTypeName = resolver.resolveMutationKeyTypeName(node)\n const mutationArgTypeName = resolver.resolveMutationArgTypeName(node)\n const clientName = resolver.resolveClientName(node)\n\n const meta = {\n file: resolver.resolveFile({ name: mutationHookName, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path }, { root, output, group }),\n fileTs: tsResolver.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n { root, output: pluginTs.options?.output ?? output, group: pluginTs.options?.group },\n ),\n }\n\n const importedTypeNames = resolveOperationTypeNames(node, tsResolver, { paramsCasing, order: 'body-response-first' })\n\n const pluginZod = parser === 'zod' ? driver.getPlugin(pluginZodName) : undefined\n const zodResolver = pluginZod ? driver.getResolver(pluginZodName) : undefined\n const fileZod = zodResolver\n ? zodResolver.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n { root, output: pluginZod?.options?.output ?? output, group: pluginZod?.options?.group },\n )\n : undefined\n const zodSchemaNames = resolveZodSchemaNames(node, zodResolver)\n\n const clientPlugin = driver.getPlugin(pluginClientName)\n const hasClientPlugin = clientPlugin?.name === pluginClientName\n const shouldUseClientPlugin = hasClientPlugin && clientOptions.clientType !== 'class'\n const clientResolver = shouldUseClientPlugin ? driver.getResolver(pluginClientName) : undefined\n\n const clientFile = shouldUseClientPlugin\n ? clientResolver?.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n {\n root,\n output: clientPlugin?.options?.output ?? output,\n group: clientPlugin?.options?.group,\n },\n )\n : undefined\n\n const resolvedClientName = shouldUseClientPlugin ? (clientResolver?.resolveName(node.operationId) ?? clientName) : clientName\n\n return (\n <File\n baseName={meta.file.baseName}\n path={meta.file.path}\n meta={meta.file.meta}\n banner={resolver.resolveBanner(ctx.meta, { output, config, file: { path: meta.file.path, baseName: meta.file.baseName } })}\n footer={resolver.resolveFooter(ctx.meta, { output, config, file: { path: meta.file.path, baseName: meta.file.baseName } })}\n >\n {fileZod && zodSchemaNames.length > 0 && <File.Import name={zodSchemaNames} root={meta.file.path} path={fileZod.path} />}\n {clientOptions.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'client'} path={clientOptions.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={clientOptions.importPath} isTypeOnly />\n {clientOptions.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={clientOptions.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['client']} root={meta.file.path} path={path.resolve(root, '.kubb/client.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={meta.file.path}\n path={path.resolve(root, '.kubb/client.ts')}\n isTypeOnly\n />\n {clientOptions.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={meta.file.path} path={path.resolve(root, '.kubb/client.ts')} isTypeOnly />\n )}\n </>\n )}\n {shouldUseClientPlugin && clientFile && <File.Import name={[resolvedClientName]} root={meta.file.path} path={clientFile.path} />}\n {!shouldUseClientPlugin && node.requestBody?.content?.some((e) => e.contentType === 'multipart/form-data') && (\n <File.Import name={['buildFormData']} root={meta.file.path} path={path.resolve(root, '.kubb/config.ts')} />\n )}\n {meta.fileTs && importedTypeNames.length > 0 && (\n <File.Import name={Array.from(new Set(importedTypeNames))} root={meta.file.path} path={meta.fileTs.path} isTypeOnly />\n )}\n\n <MutationKey\n name={mutationKeyName}\n typeName={mutationKeyTypeName}\n node={node}\n pathParamsType={pathParamsType}\n paramsCasing={paramsCasing}\n transformer={ctx.options.mutationKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={resolvedClientName}\n baseURL={clientOptions.baseURL}\n dataReturnType={clientOptions.dataReturnType || 'data'}\n paramsCasing={clientOptions.paramsCasing || paramsCasing}\n paramsType={paramsType}\n pathParamsType={pathParamsType}\n parser={parser}\n node={node}\n tsResolver={tsResolver}\n zodResolver={zodResolver}\n />\n )}\n\n {mutation && (\n <>\n <File.Import name={'useSWRMutation'} path={importPath} />\n <File.Import name={['SWRMutationConfiguration']} path={importPath} isTypeOnly />\n <Mutation\n name={mutationHookName}\n clientName={resolvedClientName}\n mutationKeyName={mutationKeyName}\n mutationKeyTypeName={mutationKeyTypeName}\n mutationArgTypeName={mutationArgTypeName}\n node={node}\n tsResolver={tsResolver}\n dataReturnType={clientOptions.dataReturnType || 'data'}\n paramsCasing={paramsCasing}\n paramsType={paramsType}\n pathParamsType={pathParamsType}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { resolveOperationTypeNames } from '@internals/shared'\nimport { resolveZodSchemaNames } from '@internals/tanstack-query'\nimport { ast, defineGenerator } from '@kubb/core'\nimport { Client, pluginClientName } from '@kubb/plugin-client'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File, jsxRenderer } from '@kubb/renderer-jsx'\nimport { difference } from 'remeda'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginSwr } from '../types'\n\nexport const queryGenerator = defineGenerator<PluginSwr>({\n name: 'swr-query',\n renderer: jsxRenderer,\n operation(node, ctx) {\n if (!ast.isHttpOperationNode(node)) return null\n const { config, driver, resolver, root } = ctx\n const { output, query, mutation, paramsCasing, paramsType, pathParamsType, parser, client: clientOptions, group } = ctx.options\n\n const pluginTs = driver.getPlugin(pluginTsName)\n if (!pluginTs) return null\n const tsResolver = driver.getResolver(pluginTsName)\n\n const isQuery = query === false || (!!query && query.methods.some((method) => node.method.toLowerCase() === method.toLowerCase()))\n const isMutation =\n mutation !== false &&\n !isQuery &&\n difference(mutation ? mutation.methods : [], query ? query.methods : []).some((method) => node.method.toLowerCase() === method.toLowerCase())\n\n if (!isQuery || isMutation) return null\n\n const importPath = query ? query.importPath : 'swr'\n\n const queryName = resolver.resolveQueryName(node)\n const queryOptionsName = resolver.resolveQueryOptionsName(node)\n const queryKeyName = resolver.resolveQueryKeyName(node)\n const queryKeyTypeName = resolver.resolveQueryKeyTypeName(node)\n const clientName = resolver.resolveClientName(node)\n\n const meta = {\n file: resolver.resolveFile({ name: queryName, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path }, { root, output, group }),\n fileTs: tsResolver.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n { root, output: pluginTs.options?.output ?? output, group: pluginTs.options?.group },\n ),\n }\n\n const importedTypeNames = resolveOperationTypeNames(node, tsResolver, {\n paramsCasing,\n exclude: [queryKeyTypeName],\n order: 'body-response-first',\n })\n\n const pluginZod = parser === 'zod' ? driver.getPlugin(pluginZodName) : undefined\n const zodResolver = pluginZod ? driver.getResolver(pluginZodName) : undefined\n const fileZod = zodResolver\n ? zodResolver.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n { root, output: pluginZod?.options?.output ?? output, group: pluginZod?.options?.group },\n )\n : undefined\n const zodSchemaNames = resolveZodSchemaNames(node, zodResolver)\n\n const clientPlugin = driver.getPlugin(pluginClientName)\n const hasClientPlugin = clientPlugin?.name === pluginClientName\n const shouldUseClientPlugin = hasClientPlugin && clientOptions.clientType !== 'class'\n const clientResolver = shouldUseClientPlugin ? driver.getResolver(pluginClientName) : undefined\n\n const clientFile = shouldUseClientPlugin\n ? clientResolver?.resolveFile(\n { name: node.operationId, extname: '.ts', tag: node.tags[0] ?? 'default', path: node.path },\n {\n root,\n output: clientPlugin?.options?.output ?? output,\n group: clientPlugin?.options?.group,\n },\n )\n : undefined\n\n const resolvedClientName = shouldUseClientPlugin ? (clientResolver?.resolveName(node.operationId) ?? clientName) : clientName\n\n return (\n <File\n baseName={meta.file.baseName}\n path={meta.file.path}\n meta={meta.file.meta}\n banner={resolver.resolveBanner(ctx.meta, { output, config, file: { path: meta.file.path, baseName: meta.file.baseName } })}\n footer={resolver.resolveFooter(ctx.meta, { output, config, file: { path: meta.file.path, baseName: meta.file.baseName } })}\n >\n {fileZod && zodSchemaNames.length > 0 && <File.Import name={zodSchemaNames} root={meta.file.path} path={fileZod.path} />}\n {clientOptions.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'client'} path={clientOptions.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={clientOptions.importPath} isTypeOnly />\n {clientOptions.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={clientOptions.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['client']} root={meta.file.path} path={path.resolve(root, '.kubb/client.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={meta.file.path}\n path={path.resolve(root, '.kubb/client.ts')}\n isTypeOnly\n />\n {clientOptions.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={meta.file.path} path={path.resolve(root, '.kubb/client.ts')} isTypeOnly />\n )}\n </>\n )}\n {shouldUseClientPlugin && clientFile && <File.Import name={[resolvedClientName]} root={meta.file.path} path={clientFile.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={meta.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n {meta.fileTs && importedTypeNames.length > 0 && (\n <File.Import name={Array.from(new Set(importedTypeNames))} root={meta.file.path} path={meta.fileTs.path} isTypeOnly />\n )}\n\n <QueryKey\n name={queryKeyName}\n typeName={queryKeyTypeName}\n node={node}\n tsResolver={tsResolver}\n pathParamsType={pathParamsType}\n paramsCasing={paramsCasing}\n transformer={ctx.options.queryKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={resolvedClientName}\n baseURL={clientOptions.baseURL}\n dataReturnType={clientOptions.dataReturnType || 'data'}\n paramsCasing={clientOptions.paramsCasing || paramsCasing}\n paramsType={paramsType}\n pathParamsType={pathParamsType}\n parser={parser}\n node={node}\n tsResolver={tsResolver}\n zodResolver={zodResolver}\n />\n )}\n\n <QueryOptions\n name={queryOptionsName}\n clientName={resolvedClientName}\n node={node}\n tsResolver={tsResolver}\n paramsCasing={paramsCasing}\n paramsType={paramsType}\n pathParamsType={pathParamsType}\n />\n\n {query && (\n <>\n <File.Import name={'useSWR'} path={importPath} />\n <File.Import name={['SWRConfiguration']} path={importPath} isTypeOnly />\n <Query\n name={queryName}\n queryOptionsName={queryOptionsName}\n queryKeyName={queryKeyName}\n queryKeyTypeName={queryKeyTypeName}\n node={node}\n tsResolver={tsResolver}\n paramsCasing={paramsCasing}\n paramsType={paramsType}\n pathParamsType={pathParamsType}\n dataReturnType={clientOptions.dataReturnType || 'data'}\n />\n </>\n )}\n </File>\n )\n },\n})\n"],"mappings":";;;;;;;;;;;AAYA,MAAa,oBAAoB,gBAA2B;CAC1D,MAAM;CACN,UAAU;CACV,UAAU,MAAM,KAAK;EACnB,IAAI,CAAC,IAAI,oBA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,kBAAkB;KAChD,cAAc,cAAc,gBAAgB;KAChC;KACI;KACR;KACF;KACM;KACC;KACb,CAAA;IAGJ,oBAAC,cAAD;KACE,MAAM;KACN,YAAY;KACN;KACM;KACE;KACF;KACI;KAChB,CAAA;IAED,SACC,qBAAA,UAAA,EAAA,UAAA;KACE,oBAAC,KAAK,QAAN;MAAa,MAAM;MAAU,MAAM;MAAc,CAAA;KACjD,oBAAC,KAAK,QAAN;MAAa,MAAM,CAAC,mBAAmB;MAAE,MAAM;MAAY,YAAA;MAAa,CAAA;KACxE,oBAAC,OAAD;MACE,MAAM;MACY;MACJ;MACI;MACZ;MACM;MACE;MACF;MACI;MAChB,gBAAgB,cAAc,kBAAkB;MAChD,CAAA;KACD,EAAA,CAAA;IAEA;;;CAGZ,CAAC"}
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_generators = require("./generators-D062obA7.cjs");
2
+ const require_generators = require("./generators-Bb5wNYig.cjs");
3
3
  exports.mutationGenerator = require_generators.mutationGenerator;
4
4
  exports.queryGenerator = require_generators.queryGenerator;