@kubb/agent 5.0.0-alpha.35 → 5.0.0-alpha.36
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1293 -20554
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +16 -14
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +16 -14
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/constants.js +18 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/permessage-deflate.js +514 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/sender.js +602 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/stream.js +159 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket-server.js +540 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket.js +1388 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/package.json +69 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/wrapper.mjs +8 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/event-target.js +292 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/extension.js +203 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/limiter.js +55 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/receiver.js +706 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/validation.js +152 -0
- package/.output/server/node_modules/@clack/core/dist/index.mjs +11 -0
- package/.output/server/node_modules/@clack/core/package.json +60 -0
- package/.output/server/node_modules/@clack/prompts/dist/index.mjs +137 -0
- package/.output/server/node_modules/@clack/prompts/package.json +65 -0
- package/.output/server/node_modules/@kubb/ast/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/ast/dist/index.js +423 -0
- package/.output/server/node_modules/@kubb/ast/package.json +70 -0
- package/.output/server/node_modules/@kubb/core/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/core/dist/hooks.js +23 -0
- package/.output/server/node_modules/@kubb/core/dist/index.js +2311 -0
- package/.output/server/node_modules/@kubb/core/package.json +109 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-O_arW02_.js +17 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/defaultParser-iCpMSYCp.js +15 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/getRelativePath-NAm_Y-vp.js +55 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +653 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/onProcessExit-Cput7j2c.js +742 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +101 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +17 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +375 -0
- package/.output/server/node_modules/@kubb/fabric-core/package.json +111 -0
- package/.output/server/node_modules/@kubb/oas/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/oas/dist/index.js +918 -0
- package/.output/server/node_modules/@kubb/oas/package.json +94 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/StaticClassClient-bCe7RG_w.js +636 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/components.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/generators-BffddRNu.js +723 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/index.js +124 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/axios.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/fetch.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/config.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/package.json +153 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/components-BK_6GU4v.js +257 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/generators-D5YFtyyC.js +71 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/index.js +79 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/package.json +108 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/components-BkBIov4R.js +419 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/fakerGenerator-BztogaeO.js +200 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/index.js +141 -0
- package/.output/server/node_modules/@kubb/plugin-faker/package.json +103 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/Server-H3SwqhwF.js +178 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/generators-BqkMrcs9.js +274 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/index.js +122 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/package.json +107 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/components-DgtTZkWX.js +277 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/generators-C34kqa1L.js +161 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/index.js +84 -0
- package/.output/server/node_modules/@kubb/plugin-msw/package.json +109 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/SchemaMapper-CqMkO2T1.js +58 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/generators-D7C3CXsN.js +79 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/generators.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/getFooter-Pw3tLCiV.js +112 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/hooks.js +200 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/index.js +408 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/requestBody-pRavthCw.js +1336 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/utils.js +268 -0
- package/.output/server/node_modules/@kubb/plugin-oas/package.json +122 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/components-CpyHYGOw.js +1520 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/generators-CpiBv5eE.js +1427 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/index.js +166 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/package.json +112 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/dist/index.js +65 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/package.json +85 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/static/redoc.hbs +22 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/components-BhStIi1M.js +665 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/generators-CQClzsST.js +415 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/index.js +145 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/package.json +113 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/components-DntKBsnB.js +666 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/generators-BtTsGGrM.js +414 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/index.js +145 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/package.json +113 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/components-DRDGvgXG.js +702 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/generators-ClWZJ-YG.js +399 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/index.js +144 -0
- package/.output/server/node_modules/@kubb/plugin-swr/package.json +115 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/components-C7fu-sK1.js +723 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/index.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/plugin-CYC-FGXe.js +479 -0
- package/.output/server/node_modules/@kubb/plugin-ts/package.json +105 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/components-_AMBl0g-.js +1029 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/generators-Zb1s5Wmb.js +661 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/index.js +157 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/package.json +114 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/components-eECfXVou.js +842 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/generators-D1R6NNf2.js +290 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/index.js +175 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/templates/ToZod.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-zod/package.json +112 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/chunk-BGCRLu6H.js +38 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +525 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime-Bl0DfUmV.js +1448 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +12 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/parsers.js +2 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +4 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/reactPlugin-QQPrjNuQ.js +17813 -0
- package/.output/server/node_modules/@kubb/react-fabric/package.json +143 -0
- package/.output/server/node_modules/buffer-from/index.js +72 -0
- package/.output/server/node_modules/buffer-from/package.json +19 -0
- package/.output/server/node_modules/empathic/access.js +39 -0
- package/.output/server/node_modules/empathic/access.mjs +34 -0
- package/.output/server/node_modules/empathic/find.js +81 -0
- package/.output/server/node_modules/empathic/find.mjs +76 -0
- package/.output/server/node_modules/empathic/package.json +49 -0
- package/.output/server/node_modules/empathic/package.mjs +52 -0
- package/.output/server/node_modules/empathic/resolve.js +31 -0
- package/.output/server/node_modules/empathic/resolve.mjs +27 -0
- package/.output/server/node_modules/empathic/walk.js +22 -0
- package/.output/server/node_modules/empathic/walk.mjs +20 -0
- package/.output/server/node_modules/fast-string-truncated-width/dist/index.js +171 -0
- package/.output/server/node_modules/fast-string-truncated-width/dist/utils.js +15 -0
- package/.output/server/node_modules/fast-string-truncated-width/package.json +35 -0
- package/.output/server/node_modules/fast-string-width/dist/index.js +14 -0
- package/.output/server/node_modules/fast-string-width/package.json +34 -0
- package/.output/server/node_modules/fast-wrap-ansi/lib/main.js +216 -0
- package/.output/server/node_modules/fast-wrap-ansi/package.json +51 -0
- package/.output/server/node_modules/p-limit/index.js +127 -0
- package/.output/server/node_modules/p-limit/package.json +58 -0
- package/.output/server/node_modules/react-devtools-core/dist/backend.js +18302 -0
- package/.output/server/node_modules/react-devtools-core/package.json +38 -0
- package/.output/server/node_modules/sisteransi/package.json +34 -0
- package/.output/server/node_modules/sisteransi/src/index.js +58 -0
- package/.output/server/node_modules/source-map-support/package.json +31 -0
- package/.output/server/node_modules/source-map-support/source-map-support.js +625 -0
- package/.output/server/node_modules/typescript/lib/typescript.js +200276 -0
- package/.output/server/node_modules/typescript/package.json +120 -0
- package/.output/server/node_modules/yocto-queue/index.js +90 -0
- package/.output/server/node_modules/yocto-queue/package.json +48 -0
- package/.output/server/package.json +34 -2
- package/package.json +20 -20
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/buffer-util.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/event-target.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/extension.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/limiter.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/receiver.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/subprotocol.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/validation.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/constants.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/permessage-deflate.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/sender.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/stream.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket-server.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/package.json +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/wrapper.mjs +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import "./chunk--u3MIqq1.js";
|
|
2
|
+
import { c as camelCase, l as pascalCase, r as MutationKey, s as QueryKey } from "./components-_AMBl0g-.js";
|
|
3
|
+
import { n as mutationGenerator, r as infiniteQueryGenerator, t as queryGenerator } from "./generators-Zb1s5Wmb.js";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { definePlugin, getBarrelFiles, getMode } from "@kubb/core";
|
|
6
|
+
import { pluginClientName } from "@kubb/plugin-client";
|
|
7
|
+
import { source } from "@kubb/plugin-client/templates/clients/axios.source";
|
|
8
|
+
import { source as source$1 } from "@kubb/plugin-client/templates/clients/fetch.source";
|
|
9
|
+
import { source as source$2 } from "@kubb/plugin-client/templates/config.source";
|
|
10
|
+
import { OperationGenerator, pluginOasName } from "@kubb/plugin-oas";
|
|
11
|
+
import { pluginTsName } from "@kubb/plugin-ts";
|
|
12
|
+
import { pluginZodName } from "@kubb/plugin-zod";
|
|
13
|
+
//#region src/plugin.ts
|
|
14
|
+
const pluginVueQueryName = "plugin-vue-query";
|
|
15
|
+
const pluginVueQuery = definePlugin((options) => {
|
|
16
|
+
const { output = {
|
|
17
|
+
path: "hooks",
|
|
18
|
+
barrelType: "named"
|
|
19
|
+
}, group, exclude = [], include, override = [], parser = "client", infinite, transformers = {}, paramsType = "inline", pathParamsType = paramsType === "object" ? "object" : options.pathParamsType || "inline", mutation = {}, query = {}, paramsCasing, mutationKey = MutationKey.getTransformer, queryKey = QueryKey.getTransformer, generators = [
|
|
20
|
+
queryGenerator,
|
|
21
|
+
infiniteQueryGenerator,
|
|
22
|
+
mutationGenerator
|
|
23
|
+
].filter(Boolean), contentType, client } = options;
|
|
24
|
+
const clientName = client?.client ?? "axios";
|
|
25
|
+
const clientImportPath = client?.importPath ?? (!client?.bundle ? `@kubb/plugin-client/clients/${clientName}` : void 0);
|
|
26
|
+
return {
|
|
27
|
+
name: pluginVueQueryName,
|
|
28
|
+
options: {
|
|
29
|
+
output,
|
|
30
|
+
client: {
|
|
31
|
+
bundle: client?.bundle,
|
|
32
|
+
baseURL: client?.baseURL,
|
|
33
|
+
client: clientName,
|
|
34
|
+
clientType: client?.clientType ?? "function",
|
|
35
|
+
dataReturnType: client?.dataReturnType ?? "data",
|
|
36
|
+
pathParamsType,
|
|
37
|
+
importPath: clientImportPath,
|
|
38
|
+
paramsCasing
|
|
39
|
+
},
|
|
40
|
+
infinite: infinite ? {
|
|
41
|
+
queryParam: "id",
|
|
42
|
+
initialPageParam: 0,
|
|
43
|
+
cursorParam: void 0,
|
|
44
|
+
nextParam: void 0,
|
|
45
|
+
previousParam: void 0,
|
|
46
|
+
...infinite
|
|
47
|
+
} : false,
|
|
48
|
+
queryKey,
|
|
49
|
+
query: query === false ? false : {
|
|
50
|
+
methods: ["get"],
|
|
51
|
+
importPath: "@tanstack/vue-query",
|
|
52
|
+
...query
|
|
53
|
+
},
|
|
54
|
+
mutationKey,
|
|
55
|
+
mutation: mutation === false ? false : {
|
|
56
|
+
methods: [
|
|
57
|
+
"post",
|
|
58
|
+
"put",
|
|
59
|
+
"patch",
|
|
60
|
+
"delete"
|
|
61
|
+
],
|
|
62
|
+
importPath: "@tanstack/vue-query",
|
|
63
|
+
...mutation
|
|
64
|
+
},
|
|
65
|
+
paramsType,
|
|
66
|
+
pathParamsType,
|
|
67
|
+
parser,
|
|
68
|
+
paramsCasing,
|
|
69
|
+
group
|
|
70
|
+
},
|
|
71
|
+
pre: [
|
|
72
|
+
pluginOasName,
|
|
73
|
+
pluginTsName,
|
|
74
|
+
parser === "zod" ? pluginZodName : void 0
|
|
75
|
+
].filter(Boolean),
|
|
76
|
+
resolvePath(baseName, pathMode, options) {
|
|
77
|
+
const root = path.resolve(this.config.root, this.config.output.path);
|
|
78
|
+
if ((pathMode ?? getMode(path.resolve(root, output.path))) === "single")
|
|
79
|
+
/**
|
|
80
|
+
* when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend
|
|
81
|
+
* Other plugins then need to call addOrAppend instead of just add from the fileManager class
|
|
82
|
+
*/
|
|
83
|
+
return path.resolve(root, output.path);
|
|
84
|
+
if (group && (options?.group?.path || options?.group?.tag)) {
|
|
85
|
+
const groupName = group?.name ? group.name : (ctx) => {
|
|
86
|
+
if (group?.type === "path") return `${ctx.group.split("/")[1]}`;
|
|
87
|
+
return `${camelCase(ctx.group)}Controller`;
|
|
88
|
+
};
|
|
89
|
+
return path.resolve(root, output.path, groupName({ group: group.type === "path" ? options.group.path : options.group.tag }), baseName);
|
|
90
|
+
}
|
|
91
|
+
return path.resolve(root, output.path, baseName);
|
|
92
|
+
},
|
|
93
|
+
resolveName(name, type) {
|
|
94
|
+
let resolvedName = camelCase(name);
|
|
95
|
+
if (type === "file" || type === "function") resolvedName = camelCase(name, { isFile: type === "file" });
|
|
96
|
+
if (type === "type") resolvedName = pascalCase(name);
|
|
97
|
+
if (type) return transformers?.name?.(resolvedName, type) || resolvedName;
|
|
98
|
+
return resolvedName;
|
|
99
|
+
},
|
|
100
|
+
async install() {
|
|
101
|
+
const root = path.resolve(this.config.root, this.config.output.path);
|
|
102
|
+
const mode = getMode(path.resolve(root, output.path));
|
|
103
|
+
const oas = await this.getOas();
|
|
104
|
+
const baseURL = await this.getBaseURL();
|
|
105
|
+
if (baseURL) this.plugin.options.client.baseURL = baseURL;
|
|
106
|
+
const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
|
|
107
|
+
if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
|
|
108
|
+
baseName: "fetch.ts",
|
|
109
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
110
|
+
sources: [{
|
|
111
|
+
name: "fetch",
|
|
112
|
+
value: this.plugin.options.client.client === "fetch" ? source$1 : source,
|
|
113
|
+
isExportable: true,
|
|
114
|
+
isIndexable: true
|
|
115
|
+
}],
|
|
116
|
+
imports: [],
|
|
117
|
+
exports: []
|
|
118
|
+
});
|
|
119
|
+
if (!hasClientPlugin) await this.addFile({
|
|
120
|
+
baseName: "config.ts",
|
|
121
|
+
path: path.resolve(root, ".kubb/config.ts"),
|
|
122
|
+
sources: [{
|
|
123
|
+
name: "config",
|
|
124
|
+
value: source$2,
|
|
125
|
+
isExportable: false,
|
|
126
|
+
isIndexable: false
|
|
127
|
+
}],
|
|
128
|
+
imports: [],
|
|
129
|
+
exports: []
|
|
130
|
+
});
|
|
131
|
+
const files = await new OperationGenerator(this.plugin.options, {
|
|
132
|
+
fabric: this.fabric,
|
|
133
|
+
oas,
|
|
134
|
+
pluginManager: this.pluginManager,
|
|
135
|
+
events: this.events,
|
|
136
|
+
plugin: this.plugin,
|
|
137
|
+
contentType,
|
|
138
|
+
exclude,
|
|
139
|
+
include,
|
|
140
|
+
override,
|
|
141
|
+
mode
|
|
142
|
+
}).build(...generators);
|
|
143
|
+
await this.upsertFile(...files);
|
|
144
|
+
const barrelFiles = await getBarrelFiles(this.fabric.files, {
|
|
145
|
+
type: output.barrelType ?? "named",
|
|
146
|
+
root,
|
|
147
|
+
output,
|
|
148
|
+
meta: { pluginKey: this.plugin.key }
|
|
149
|
+
});
|
|
150
|
+
await this.upsertFile(...barrelFiles);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
//#endregion
|
|
155
|
+
export { pluginVueQuery, pluginVueQueryName };
|
|
156
|
+
|
|
157
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kubb/plugin-vue-query",
|
|
3
|
+
"version": "4.37.2",
|
|
4
|
+
"description": "Vue Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Vue.js applications.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vue-query",
|
|
7
|
+
"vue",
|
|
8
|
+
"vue.js",
|
|
9
|
+
"vue3",
|
|
10
|
+
"tanstack-query",
|
|
11
|
+
"composables",
|
|
12
|
+
"hooks",
|
|
13
|
+
"data-fetching",
|
|
14
|
+
"api-client",
|
|
15
|
+
"sdk-generator",
|
|
16
|
+
"typescript",
|
|
17
|
+
"type-safe",
|
|
18
|
+
"openapi",
|
|
19
|
+
"swagger",
|
|
20
|
+
"oas",
|
|
21
|
+
"code-generator",
|
|
22
|
+
"codegen",
|
|
23
|
+
"plugins",
|
|
24
|
+
"kubb"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/kubb-labs/kubb.git",
|
|
29
|
+
"directory": "packages/plugin-vue-query"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"author": "stijnvanhulle",
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"type": "module",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"require": "./dist/index.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./components": {
|
|
41
|
+
"import": "./dist/components.js",
|
|
42
|
+
"require": "./dist/components.cjs"
|
|
43
|
+
},
|
|
44
|
+
"./generators": {
|
|
45
|
+
"import": "./dist/generators.js",
|
|
46
|
+
"require": "./dist/generators.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"typesVersions": {
|
|
52
|
+
"*": {
|
|
53
|
+
"components": [
|
|
54
|
+
"./dist/components.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"generators": [
|
|
57
|
+
"./dist/generators.d.ts"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"files": [
|
|
62
|
+
"src",
|
|
63
|
+
"dist",
|
|
64
|
+
"!/**/**.test.**",
|
|
65
|
+
"!/**/__tests__/**",
|
|
66
|
+
"!/**/__snapshots__/**"
|
|
67
|
+
],
|
|
68
|
+
"size-limit": [
|
|
69
|
+
{
|
|
70
|
+
"path": "./dist/*.js",
|
|
71
|
+
"limit": "510 KiB",
|
|
72
|
+
"gzip": true
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@kubb/fabric-core": "0.14.0",
|
|
77
|
+
"@kubb/react-fabric": "0.14.0",
|
|
78
|
+
"remeda": "^2.33.6",
|
|
79
|
+
"@kubb/oas": "4.37.2",
|
|
80
|
+
"@kubb/core": "4.37.2",
|
|
81
|
+
"@kubb/plugin-client": "4.37.2",
|
|
82
|
+
"@kubb/plugin-oas": "4.37.2",
|
|
83
|
+
"@kubb/plugin-ts": "4.37.2",
|
|
84
|
+
"@kubb/plugin-zod": "4.37.2"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"@kubb/fabric-core": "0.14.0",
|
|
88
|
+
"@kubb/react-fabric": "0.14.0"
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=20"
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public",
|
|
95
|
+
"registry": "https://registry.npmjs.org/"
|
|
96
|
+
},
|
|
97
|
+
"main": "./dist/index.cjs",
|
|
98
|
+
"module": "./dist/index.js",
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@internals/tanstack-query": "0.0.0",
|
|
101
|
+
"@internals/utils": "0.0.0"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "tsdown && size-limit",
|
|
105
|
+
"clean": "npx rimraf ./dist",
|
|
106
|
+
"lint": "bun biome lint .",
|
|
107
|
+
"lint:fix": "bun biome lint --fix --unsafe .",
|
|
108
|
+
"release": "pnpm publish --no-git-check",
|
|
109
|
+
"release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check",
|
|
110
|
+
"start": "tsdown --watch",
|
|
111
|
+
"test": "vitest --passWithNoTests",
|
|
112
|
+
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
|
|
113
|
+
}
|
|
114
|
+
}
|