@geekmidas/cli 1.2.1 → 1.2.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +110 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +111 -183
- package/dist/index.mjs.map +1 -1
- package/dist/{openapi-DrbBWq0s.mjs → openapi-NthphEWK.mjs} +3 -4
- package/dist/{openapi-DrbBWq0s.mjs.map → openapi-NthphEWK.mjs.map} +1 -1
- package/dist/{openapi-BZP8jkI4.cjs → openapi-ZhO7wwya.cjs} +2 -9
- package/dist/{openapi-BZP8jkI4.cjs.map → openapi-ZhO7wwya.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +1 -1
- package/package.json +4 -4
- package/src/__tests__/openapi.spec.ts +385 -5
- package/src/dev/index.ts +71 -107
- package/src/generators/OpenApiTsGenerator.ts +0 -1
- package/src/init/generators/ui.ts +20 -20
- package/src/openapi.ts +2 -1
- package/src/workspace/__tests__/client-generator.spec.ts +472 -19
- package/src/workspace/client-generator.ts +139 -199
|
@@ -1596,7 +1596,6 @@ export function createApi(options: CreateApiOptions) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
`;
|
|
1598
1598
|
return `// Auto-generated by @geekmidas/cli - DO NOT EDIT
|
|
1599
|
-
// Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
1600
1599
|
|
|
1601
1600
|
// ============================================================
|
|
1602
1601
|
// Security Scheme Type
|
|
@@ -1683,7 +1682,7 @@ const OPENAPI_OUTPUT_PATH = "./.gkm/openapi.ts";
|
|
|
1683
1682
|
function resolveOpenApiConfig(config) {
|
|
1684
1683
|
if (config.openapi === false) return { enabled: false };
|
|
1685
1684
|
if (config.openapi === true || config.openapi === void 0) return {
|
|
1686
|
-
enabled:
|
|
1685
|
+
enabled: true,
|
|
1687
1686
|
title: "API Documentation",
|
|
1688
1687
|
version: "1.0.0",
|
|
1689
1688
|
description: "Auto-generated API documentation from endpoints"
|
|
@@ -1800,12 +1799,6 @@ Object.defineProperty(exports, 'OPENAPI_OUTPUT_PATH', {
|
|
|
1800
1799
|
return OPENAPI_OUTPUT_PATH;
|
|
1801
1800
|
}
|
|
1802
1801
|
});
|
|
1803
|
-
Object.defineProperty(exports, 'OpenApiTsGenerator', {
|
|
1804
|
-
enumerable: true,
|
|
1805
|
-
get: function () {
|
|
1806
|
-
return OpenApiTsGenerator;
|
|
1807
|
-
}
|
|
1808
|
-
});
|
|
1809
1802
|
Object.defineProperty(exports, 'generateOpenApi', {
|
|
1810
1803
|
enumerable: true,
|
|
1811
1804
|
get: function () {
|
|
@@ -1824,4 +1817,4 @@ Object.defineProperty(exports, 'resolveOpenApiConfig', {
|
|
|
1824
1817
|
return resolveOpenApiConfig;
|
|
1825
1818
|
}
|
|
1826
1819
|
});
|
|
1827
|
-
//# sourceMappingURL=openapi-
|
|
1820
|
+
//# sourceMappingURL=openapi-ZhO7wwya.cjs.map
|