@povio/openapi-codegen-cli 3.3.0-rc.1 → 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -9
- package/dist/AuthGuard-GbtTDXs0.d.mts +32 -0
- package/dist/AuthGuard-qpAtHaBz.mjs +24 -0
- package/dist/acl.d.mts +6 -19
- package/dist/acl.mjs +7 -7
- package/dist/{auth.context-BAz8frX9.mjs → auth.context-COWO6ssl.mjs} +1 -18
- package/dist/auth.d.mts +2 -0
- package/dist/auth.mjs +3 -0
- package/dist/axios.d.mts +2 -0
- package/dist/axios.mjs +2 -0
- package/dist/{config-BQqze8rU.d.mts → config-CiLFKLAY.d.mts} +1 -2
- package/dist/config.d.mts +4 -0
- package/dist/config.mjs +5 -0
- package/dist/{error-handling-D6ZYITQ3.d.mts → error-handling-LPEPQV1V.d.mts} +3 -42
- package/dist/{error-handling-CsnufAil.mjs → error-handling-uS0DgYUR.mjs} +23 -47
- package/dist/errors.d.mts +3 -0
- package/dist/errors.mjs +2 -0
- package/dist/generate.runner-BtPpBVj9.mjs +1667 -0
- package/dist/generate.utils-BJxdEik8.cjs +2269 -0
- package/dist/{generateCodeFromOpenAPIDoc-KQT4kYxY.mjs → generateCodeFromOpenAPIDoc-CGoR73wh.cjs} +1335 -2237
- package/dist/generateCodeFromOpenAPIDoc-D1H6MZiS.mjs +2101 -0
- package/dist/generator.d.mts +3 -10
- package/dist/generator.mjs +6 -4
- package/dist/getDataFromOpenAPIDoc-fJCwtr-2.mjs +2016 -0
- package/dist/i18n-B_brQh4X.d.mts +38 -0
- package/dist/i18n-D-FesqFb.mjs +36 -0
- package/dist/index.d.mts +12 -198
- package/dist/index.mjs +12 -256
- package/dist/metro.cjs +117 -4861
- package/dist/metro.d.mts +3 -4
- package/dist/metro.mjs +3 -3
- package/dist/native-rest-interceptor-BX45GDWd.d.mts +49 -0
- package/dist/native-rest-interceptor-Np4Ov54n.mjs +215 -0
- package/dist/native.d.mts +3 -0
- package/dist/native.mjs +3 -0
- package/dist/openapi-codegen-native-darwin-arm64.node +0 -0
- package/dist/openapi-codegen-native-linux-x64.node +0 -0
- package/dist/openapi-codegen-native-win32-x64.node +0 -0
- package/dist/{openapi-codegen.runner-nPBssrBL.mjs → openapi-codegen.runner-BpykceyD.mjs} +2 -2
- package/dist/{openapi-source.runner-B6KKrXw7.d.mts → openapi-source.runner-DIOvAX_R.d.mts} +2 -8
- package/dist/{openapi-source.runner-8kCe-g9S.mjs → openapi-source.runner-DPUNTduQ.mjs} +25 -11
- package/dist/{options-DdQJ9BSc.d.mts → options-X0zju7gw.d.mts} +8 -1
- package/dist/query.d.mts +3 -0
- package/dist/query.mjs +3 -0
- package/dist/queryConfig.context-CldQ5YL9.mjs +34 -0
- package/dist/queryConfig.context-aO4QOLru.d.mts +24 -0
- package/dist/rest-client-BSXsrOff.d.mts +55 -0
- package/dist/rest-interceptor-Dm9DFErh.mjs +115 -0
- package/dist/rest-transport.types-DM5-qyOJ.d.mts +66 -0
- package/dist/rest-transport.types-DxitRtsB.mjs +11 -0
- package/dist/rest.d.mts +2 -0
- package/dist/rest.mjs +2 -0
- package/dist/rest.utils-DpiFIdhF.d.mts +9 -0
- package/dist/router.context-EPlMBk3G.mjs +21 -0
- package/dist/sh.d.mts +1 -1
- package/dist/sh.mjs +52 -59
- package/dist/tiny.d.mts +1 -1
- package/dist/tiny.mjs +1 -1
- package/dist/useMutationEffects-D_wEEF6-.d.mts +29 -0
- package/dist/useMutationEffects-PB1fvKWM.mjs +68 -0
- package/dist/vite.d.mts +3 -4
- package/dist/vite.mjs +5 -4
- package/dist/workspace.context-XWvQ_7Hg.mjs +26 -0
- package/dist/workspace.context-isVY9ves.d.mts +23 -0
- package/dist/zod.d.mts +2 -7
- package/dist/zod.mjs +1 -1
- package/package.json +70 -22
- package/dist/generate.runner-BeCGJ1ar.mjs +0 -87
package/dist/generator.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as GenerateFileData, t as GenerateOptions } from "./options-
|
|
1
|
+
import { n as GenerateFileData, t as GenerateOptions } from "./options-X0zju7gw.mjs";
|
|
2
2
|
import { OpenAPIV3 } from "openapi-types";
|
|
3
|
-
|
|
4
3
|
//#region src/generators/types/metadata.d.ts
|
|
5
4
|
interface GenerateParams {
|
|
6
5
|
input: string;
|
|
@@ -53,13 +52,7 @@ interface GenerateMetadata {
|
|
|
53
52
|
}
|
|
54
53
|
//#endregion
|
|
55
54
|
//#region src/generator.d.ts
|
|
56
|
-
declare function getGenerateMetadata({
|
|
57
|
-
|
|
58
|
-
options: genOptions
|
|
59
|
-
}: GenerateParams): Promise<GenerateMetadata>;
|
|
60
|
-
declare function getGenerateFilesData({
|
|
61
|
-
input,
|
|
62
|
-
options: genOptions
|
|
63
|
-
}: GenerateParams): Promise<GenerateFileData[]>;
|
|
55
|
+
declare function getGenerateMetadata({ input, options: genOptions }: GenerateParams): Promise<GenerateMetadata>;
|
|
56
|
+
declare function getGenerateFilesData({ input, options: genOptions }: GenerateParams): Promise<GenerateFileData[]>;
|
|
64
57
|
//#endregion
|
|
65
58
|
export { getGenerateFilesData, getGenerateMetadata };
|
package/dist/generator.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { t as generateCodeFromOpenAPIDoc } from "./generateCodeFromOpenAPIDoc-D1H6MZiS.mjs";
|
|
2
|
+
import { t as getDataFromOpenAPIDoc } from "./getDataFromOpenAPIDoc-fJCwtr-2.mjs";
|
|
3
|
+
import { H as getQueryName, Ht as getNamespaceName, Mn as formatTag, O as getTagImportPath, S as getTsTypeBase, Xt as isMediaTypeAllowed, Zt as isParamMediaTypeAllowed, bt as invalidVariableNameCharactersToCamel, d as isQuery, dt as DEFAULT_GENERATE_OPTIONS, t as getOpenApiDoc, u as isMutation, x as getSchemaTsMetaType } from "./generate.runner-BtPpBVj9.mjs";
|
|
3
4
|
//#region src/generators/core/getMetadataFromOpenAPIDoc.ts
|
|
4
5
|
async function getMetadataFromOpenAPIDoc(openApiDoc, options) {
|
|
5
6
|
const { resolver, data } = await getDataFromOpenAPIDoc(openApiDoc, options);
|
|
@@ -128,14 +129,15 @@ async function getGenerateMetadata({ input, options: genOptions }) {
|
|
|
128
129
|
...DEFAULT_GENERATE_OPTIONS,
|
|
129
130
|
...genOptions
|
|
130
131
|
};
|
|
131
|
-
return await getMetadataFromOpenAPIDoc(await
|
|
132
|
+
return await getMetadataFromOpenAPIDoc(await getOpenApiDoc(input), options);
|
|
132
133
|
}
|
|
133
134
|
async function getGenerateFilesData({ input, options: genOptions }) {
|
|
134
135
|
const options = {
|
|
135
136
|
...DEFAULT_GENERATE_OPTIONS,
|
|
136
137
|
...genOptions
|
|
137
138
|
};
|
|
138
|
-
|
|
139
|
+
const openApiDoc = await getOpenApiDoc(input);
|
|
140
|
+
return generateCodeFromOpenAPIDoc(openApiDoc, options);
|
|
139
141
|
}
|
|
140
142
|
//#endregion
|
|
141
143
|
export { getGenerateFilesData, getGenerateMetadata };
|