@powerlines/plugin-hey-api 0.1.192 → 0.1.193
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/create-operation-id-CdT_cWku.mjs +16 -0
- package/dist/create-operation-id-CdT_cWku.mjs.map +1 -0
- package/dist/create-operation-id-Cw-sRmUe.cjs +21 -0
- package/dist/create-operation-id-DDMlsM4b.d.cts +11 -0
- package/dist/create-operation-id-DDMlsM4b.d.cts.map +1 -0
- package/dist/create-operation-id-_82tqUNg.d.mts +11 -0
- package/dist/create-operation-id-_82tqUNg.d.mts.map +1 -0
- package/dist/helpers/create-operation-id.cjs +2 -15
- package/dist/helpers/create-operation-id.d.cts +1 -9
- package/dist/helpers/create-operation-id.d.mts +1 -9
- package/dist/helpers/create-operation-id.mjs +1 -13
- package/dist/helpers/index.cjs +3 -2
- package/dist/helpers/index.d.cts +2 -1
- package/dist/helpers/index.d.mts +2 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers-B15z10jN.mjs +1 -0
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +1 -0
- package/dist/index-D-CYNcT9.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-DLoAMD9J.d.cts +1 -0
- package/dist/index.cjs +35 -6
- package/dist/index.d.cts +6 -4
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +6 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-CtyxP8Qk.d.mts +49 -0
- package/dist/plugin-CtyxP8Qk.d.mts.map +1 -0
- package/dist/plugin-DbwOBxik.d.cts +49 -0
- package/dist/plugin-DbwOBxik.d.cts.map +1 -0
- package/dist/plugin-ifZVa20V.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -47
- package/dist/types/plugin.d.mts +1 -47
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-U3zd8PTP.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { camelCase } from "@stryke/string-format/camel-case";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/create-operation-id.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create an Operation Id from a summary string
|
|
6
|
+
*
|
|
7
|
+
* @param summary - The summary string from the specification
|
|
8
|
+
* @returns The generated operation ID
|
|
9
|
+
*/
|
|
10
|
+
function createOperationId(summary) {
|
|
11
|
+
return camelCase(summary.replace(/\b(?:a|from|to|the|given|of|an)\b/gi, "").replace("Get list", "list"));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { createOperationId as t };
|
|
16
|
+
//# sourceMappingURL=create-operation-id-CdT_cWku.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-operation-id-CdT_cWku.mjs","names":[],"sources":["../src/helpers/create-operation-id.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { camelCase } from \"@stryke/string-format/camel-case\";\n\n/**\n * Create an Operation Id from a summary string\n *\n * @param summary - The summary string from the specification\n * @returns The generated operation ID\n */\nexport function createOperationId(summary: string) {\n return camelCase(\n summary\n .replace(/\\b(?:a|from|to|the|given|of|an)\\b/gi, \"\")\n .replace(\"Get list\", \"list\")\n );\n}\n"],"mappings":";;;;;;;;;AA0BA,SAAgB,kBAAkB,SAAiB;AACjD,QAAO,UACL,QACG,QAAQ,uCAAuC,GAAG,CAClD,QAAQ,YAAY,OAAO,CAC/B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
|
+
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/create-operation-id.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create an Operation Id from a summary string
|
|
7
|
+
*
|
|
8
|
+
* @param summary - The summary string from the specification
|
|
9
|
+
* @returns The generated operation ID
|
|
10
|
+
*/
|
|
11
|
+
function createOperationId(summary) {
|
|
12
|
+
return (0, __stryke_string_format_camel_case.camelCase)(summary.replace(/\b(?:a|from|to|the|given|of|an)\b/gi, "").replace("Get list", "list"));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, 'createOperationId', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return createOperationId;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/helpers/create-operation-id.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Create an Operation Id from a summary string
|
|
4
|
+
*
|
|
5
|
+
* @param summary - The summary string from the specification
|
|
6
|
+
* @returns The generated operation ID
|
|
7
|
+
*/
|
|
8
|
+
declare function createOperationId(summary: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createOperationId as t };
|
|
11
|
+
//# sourceMappingURL=create-operation-id-DDMlsM4b.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-operation-id-DDMlsM4b.d.cts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"sourcesContent":[],"mappings":";;AA0BA;;;;;iBAAgB,iBAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/helpers/create-operation-id.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Create an Operation Id from a summary string
|
|
4
|
+
*
|
|
5
|
+
* @param summary - The summary string from the specification
|
|
6
|
+
* @returns The generated operation ID
|
|
7
|
+
*/
|
|
8
|
+
declare function createOperationId(summary: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createOperationId as t };
|
|
11
|
+
//# sourceMappingURL=create-operation-id-_82tqUNg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-operation-id-_82tqUNg.d.mts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"sourcesContent":[],"mappings":";;AA0BA;;;;;iBAAgB,iBAAA"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
1
|
+
const require_create_operation_id = require('../create-operation-id-Cw-sRmUe.cjs');
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Create an Operation Id from a summary string
|
|
7
|
-
*
|
|
8
|
-
* @param summary - The summary string from the specification
|
|
9
|
-
* @returns The generated operation ID
|
|
10
|
-
*/
|
|
11
|
-
function createOperationId(summary) {
|
|
12
|
-
return (0, __stryke_string_format_camel_case.camelCase)(summary.replace(/\b(?:a|from|to|the|given|of|an)\b/gi, "").replace("Get list", "list"));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
exports.createOperationId = createOperationId;
|
|
3
|
+
exports.createOperationId = require_create_operation_id.createOperationId;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Create an Operation Id from a summary string
|
|
4
|
-
*
|
|
5
|
-
* @param summary - The summary string from the specification
|
|
6
|
-
* @returns The generated operation ID
|
|
7
|
-
*/
|
|
8
|
-
declare function createOperationId(summary: string): string;
|
|
9
|
-
//#endregion
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-DDMlsM4b.cjs";
|
|
10
2
|
export { createOperationId };
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Create an Operation Id from a summary string
|
|
4
|
-
*
|
|
5
|
-
* @param summary - The summary string from the specification
|
|
6
|
-
* @returns The generated operation ID
|
|
7
|
-
*/
|
|
8
|
-
declare function createOperationId(summary: string): string;
|
|
9
|
-
//#endregion
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-_82tqUNg.mjs";
|
|
10
2
|
export { createOperationId };
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-CdT_cWku.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/helpers/create-operation-id.ts
|
|
4
|
-
/**
|
|
5
|
-
* Create an Operation Id from a summary string
|
|
6
|
-
*
|
|
7
|
-
* @param summary - The summary string from the specification
|
|
8
|
-
* @returns The generated operation ID
|
|
9
|
-
*/
|
|
10
|
-
function createOperationId(summary) {
|
|
11
|
-
return camelCase(summary.replace(/\b(?:a|from|to|the|given|of|an)\b/gi, "").replace("Get list", "list"));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
3
|
export { createOperationId };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_create_operation_id = require('../create-operation-id-Cw-sRmUe.cjs');
|
|
2
|
+
require('../helpers-LF26RHol.cjs');
|
|
2
3
|
|
|
3
|
-
exports.createOperationId =
|
|
4
|
+
exports.createOperationId = require_create_operation_id.createOperationId;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,41 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
const require_create_operation_id = require('./create-operation-id-Cw-sRmUe.cjs');
|
|
30
|
+
require('./helpers-LF26RHol.cjs');
|
|
31
|
+
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
+
require('./types-o3zWarRp.cjs');
|
|
5
33
|
let __hey_api_openapi_ts = require("@hey-api/openapi-ts");
|
|
6
34
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
7
35
|
let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
8
36
|
let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
9
37
|
let defu = require("defu");
|
|
10
|
-
defu =
|
|
38
|
+
defu = __toESM(defu);
|
|
11
39
|
let powerlines_plugin_utils_paths = require("powerlines/plugin-utils/paths");
|
|
12
40
|
|
|
13
41
|
//#region src/index.ts
|
|
@@ -71,7 +99,7 @@ const plugin = (options = {}) => {
|
|
|
71
99
|
]) {
|
|
72
100
|
const operation = pathItem[method];
|
|
73
101
|
if (!(0, __stryke_type_checks_is_set_string.isSetString)(operation?.summary)) continue;
|
|
74
|
-
operation.operationId =
|
|
102
|
+
operation.operationId = require_create_operation_id.createOperationId(operation.summary);
|
|
75
103
|
}
|
|
76
104
|
}
|
|
77
105
|
}
|
|
@@ -87,6 +115,7 @@ const plugin = (options = {}) => {
|
|
|
87
115
|
var src_default = plugin;
|
|
88
116
|
|
|
89
117
|
//#endregion
|
|
90
|
-
exports.
|
|
118
|
+
exports.__toESM = __toESM;
|
|
119
|
+
exports.createOperationId = require_create_operation_id.createOperationId;
|
|
91
120
|
exports.default = src_default;
|
|
92
121
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createOperationId } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { t as createOperationId } from "./create-operation-id-DDMlsM4b.cjs";
|
|
2
|
+
import "./index-DLoAMD9J.cjs";
|
|
3
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "./plugin-DbwOBxik.cjs";
|
|
4
|
+
import "./index-D4ELpJXS.cjs";
|
|
4
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
5
6
|
|
|
6
7
|
//#region src/index.d.ts
|
|
@@ -15,4 +16,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
15
16
|
*/
|
|
16
17
|
declare const plugin: <TContext extends HeyAPIPluginContext = HeyAPIPluginContext>(options?: HeyAPIPluginOptions) => Plugin<TContext>;
|
|
17
18
|
//#endregion
|
|
18
|
-
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig, createOperationId, plugin as default, plugin };
|
|
19
|
+
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig, createOperationId, plugin as default, plugin };
|
|
20
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AA6CA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,mBAGhB,GAHsC,mBAGtC,CAAA,CAAA,OAAA,CAAA,EADQ,mBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createOperationId } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
1
|
+
import { t as createOperationId } from "./create-operation-id-_82tqUNg.mjs";
|
|
2
|
+
import "./index-D-CYNcT9.mjs";
|
|
3
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "./plugin-CtyxP8Qk.mjs";
|
|
4
|
+
import "./index-9iG2qHLe.mjs";
|
|
4
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
5
6
|
|
|
6
7
|
//#region src/index.d.ts
|
|
@@ -15,4 +16,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
15
16
|
*/
|
|
16
17
|
declare const plugin: <TContext extends HeyAPIPluginContext = HeyAPIPluginContext>(options?: HeyAPIPluginOptions) => Plugin<TContext>;
|
|
17
18
|
//#endregion
|
|
18
|
-
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig, createOperationId, plugin as default, plugin };
|
|
19
|
+
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig, createOperationId, plugin as default, plugin };
|
|
20
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AA6CA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,mBAGhB,GAHsC,mBAGtC,CAAA,CAAA,OAAA,CAAA,EADQ,mBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createOperationId } from "./
|
|
2
|
-
import "./helpers
|
|
1
|
+
import { t as createOperationId } from "./create-operation-id-CdT_cWku.mjs";
|
|
2
|
+
import "./helpers-B15z10jN.mjs";
|
|
3
|
+
import "./plugin-ifZVa20V.mjs";
|
|
4
|
+
import "./types-U3zd8PTP.mjs";
|
|
3
5
|
import { createClient } from "@hey-api/openapi-ts";
|
|
4
6
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
5
7
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
@@ -84,4 +86,5 @@ const plugin = (options = {}) => {
|
|
|
84
86
|
var src_default = plugin;
|
|
85
87
|
|
|
86
88
|
//#endregion
|
|
87
|
-
export { createOperationId, src_default as default, plugin };
|
|
89
|
+
export { createOperationId, src_default as default, plugin };
|
|
90
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { UserConfig } from \"@hey-api/openapi-ts\";\nimport { createClient, OpenApi } from \"@hey-api/openapi-ts\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport { replacePathTokens } from \"powerlines/plugin-utils/paths\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { createOperationId } from \"./helpers/create-operation-id\";\nimport {\n HeyAPIPluginContext,\n HeyAPIPluginOptions,\n HeyAPIPluginOutputOptions,\n HeyAPIPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to integrate Hey API for code generation.\n *\n * @see https://heyapi.dev/\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends HeyAPIPluginContext = HeyAPIPluginContext\n>(\n options: HeyAPIPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"hey-api\",\n config() {\n return {\n heyApi: {\n plugins: [\n {\n name: \"@hey-api/typescript\",\n exportFromIndex: false\n },\n {\n name: \"@hey-api/sdk\",\n instance: \"PrismaClient\",\n exportFromIndex: false,\n auth: false\n },\n {\n name: \"@hey-api/client-fetch\",\n throwOnError: true\n }\n ],\n ...defu(options, {\n schema: joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot,\n \"schema.yaml\"\n ),\n output: {\n path: joinPaths(\"{builtinPath}\", \"api\")\n },\n logs: this.envPaths.log\n })\n }\n } as Partial<HeyAPIPluginUserConfig>;\n },\n async configResolved() {\n this.config.heyApi.output ??= {} as HeyAPIPluginOutputOptions;\n this.config.heyApi.output.path = replacePathTokens(\n this,\n this.config.heyApi.output.path\n );\n\n if (!this.config.heyApi.schema) {\n throw new Error(\n \"The `schema` option is required by the Hey API plugin.\"\n );\n }\n\n if (isSetString(this.config.heyApi.schema)) {\n const result = await this.fetch(this.config.heyApi.schema);\n this.config.heyApi.schema = (await result.json()) as OpenApi.V3_0_X;\n }\n\n if (\n isSetObject(this.config.heyApi.schema) &&\n (this.config.heyApi.schema as OpenApi.V3_0_X).paths\n ) {\n const schema = this.config.heyApi.schema as OpenApi.V3_0_X;\n for (const pathItem of Object.values(schema.paths)) {\n if (!pathItem || \"$ref\" in pathItem) {\n continue;\n }\n\n for (const method of [\n \"get\",\n \"put\",\n \"post\",\n \"delete\",\n \"options\",\n \"head\",\n \"patch\",\n \"trace\"\n ] as const) {\n const operation = pathItem[method];\n if (!isSetString(operation?.summary)) {\n continue;\n }\n\n operation.operationId = createOperationId(operation.summary);\n }\n }\n }\n },\n async prepare() {\n await createClient({\n ...this.config.heyApi,\n input: this.config.heyApi.schema!\n } as UserConfig);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6CA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,QAAQ;IACN,SAAS;KACP;MACE,MAAM;MACN,iBAAiB;MAClB;KACD;MACE,MAAM;MACN,UAAU;MACV,iBAAiB;MACjB,MAAM;MACP;KACD;MACE,MAAM;MACN,cAAc;MACf;KACF;IACD,GAAG,KAAK,SAAS;KACf,QAAQ,UACN,KAAK,gBAAgB,eACrB,KAAK,OAAO,aACZ,cACD;KACD,QAAQ,EACN,MAAM,UAAU,iBAAiB,MAAM,EACxC;KACD,MAAM,KAAK,SAAS;KACrB,CAAC;IACH,EACF;;EAEH,MAAM,iBAAiB;AACrB,QAAK,OAAO,OAAO,WAAW,EAAE;AAChC,QAAK,OAAO,OAAO,OAAO,OAAO,kBAC/B,MACA,KAAK,OAAO,OAAO,OAAO,KAC3B;AAED,OAAI,CAAC,KAAK,OAAO,OAAO,OACtB,OAAM,IAAI,MACR,yDACD;AAGH,OAAI,YAAY,KAAK,OAAO,OAAO,OAAO,EAAE;IAC1C,MAAM,SAAS,MAAM,KAAK,MAAM,KAAK,OAAO,OAAO,OAAO;AAC1D,SAAK,OAAO,OAAO,SAAU,MAAM,OAAO,MAAM;;AAGlD,OACE,YAAY,KAAK,OAAO,OAAO,OAAO,IACrC,KAAK,OAAO,OAAO,OAA0B,OAC9C;IACA,MAAM,SAAS,KAAK,OAAO,OAAO;AAClC,SAAK,MAAM,YAAY,OAAO,OAAO,OAAO,MAAM,EAAE;AAClD,SAAI,CAAC,YAAY,UAAU,SACzB;AAGF,UAAK,MAAM,UAAU;MACnB;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACD,EAAW;MACV,MAAM,YAAY,SAAS;AAC3B,UAAI,CAAC,YAAY,WAAW,QAAQ,CAClC;AAGF,gBAAU,cAAc,kBAAkB,UAAU,QAAQ;;;;;EAKpE,MAAM,UAAU;AACd,SAAM,aAAa;IACjB,GAAG,KAAK,OAAO;IACf,OAAO,KAAK,OAAO,OAAO;IAC3B,CAAe;;EAEnB;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OpenApi, UserConfig } from "@hey-api/openapi-ts";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type HeyAPIPluginOutputOptions = UserConfig["output"] & {
|
|
8
|
+
/**
|
|
9
|
+
* The path to the output file generated by the plugin.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* If using the default value, the file can be imported from "powerlines:api". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue "\{builtinPath\}/api"
|
|
15
|
+
*/
|
|
16
|
+
path?: string;
|
|
17
|
+
};
|
|
18
|
+
type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
|
|
19
|
+
/**
|
|
20
|
+
* The path to the Hey API schema file.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue "\{projectRoot\}/schema.yaml"
|
|
26
|
+
*/
|
|
27
|
+
schema?: UserConfig["input"];
|
|
28
|
+
/**
|
|
29
|
+
* The output details of the Hey API generation
|
|
30
|
+
*/
|
|
31
|
+
output?: HeyAPIPluginOutputOptions;
|
|
32
|
+
};
|
|
33
|
+
type HeyAPIPluginUserConfig = UserConfig$1 & {
|
|
34
|
+
heyApi?: HeyAPIPluginOptions;
|
|
35
|
+
};
|
|
36
|
+
type HeyAPIPluginResolvedConfig = ResolvedConfig & {
|
|
37
|
+
heyApi: Omit<HeyAPIPluginOptions, "schema"> & {
|
|
38
|
+
schema: HeyAPIPluginOptions["schema"] | OpenApi.V3_0_X;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
42
|
+
declare type __ΩHeyAPIPluginOutputOptions = any[];
|
|
43
|
+
declare type __ΩHeyAPIPluginOptions = any[];
|
|
44
|
+
declare type __ΩHeyAPIPluginUserConfig = any[];
|
|
45
|
+
declare type __ΩHeyAPIPluginResolvedConfig = any[];
|
|
46
|
+
declare type __ΩHeyAPIPluginContext = any[];
|
|
47
|
+
//#endregion
|
|
48
|
+
export { HeyAPIPluginUserConfig as a, __ΩHeyAPIPluginOutputOptions as c, HeyAPIPluginResolvedConfig as i, __ΩHeyAPIPluginResolvedConfig as l, HeyAPIPluginOptions as n, __ΩHeyAPIPluginContext as o, HeyAPIPluginOutputOptions as r, __ΩHeyAPIPluginOptions as s, HeyAPIPluginContext as t, __ΩHeyAPIPluginUserConfig as u };
|
|
49
|
+
//# sourceMappingURL=plugin-CtyxP8Qk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-CtyxP8Qk.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAwBY,yBAAA,GAA4B;EAA5B;AAYZ;;;;;;AAiBA;EAIY,IAAA,CAAA,EAAA,MAAA;CAA6B;AAC1B,KAtBH,mBAAA,GAAsB,IAsBnB,CAtBwB,UAsBxB,EAAA,OAAA,GAAA,QAAA,CAAA,GAAA;EAAL;;;;AAKV;;;;EAGI,MAAA,CAAA,EArBO,UAqBP,CAAA,OAAA,CAAA;EAAa;;;WAhBN;;KAGC,sBAAA,GAAyB;WAC1B;;KAGC,0BAAA,GAA6B;UAC/B,KAAK;YACH,gCAAgC,OAAA,CAAQ;;;KAIxC,4CACc,6BACtB,8BACA,cAAc"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OpenApi, UserConfig } from "@hey-api/openapi-ts";
|
|
2
|
+
import { UserConfig as UserConfig$1 } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type HeyAPIPluginOutputOptions = UserConfig["output"] & {
|
|
8
|
+
/**
|
|
9
|
+
* The path to the output file generated by the plugin.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* If using the default value, the file can be imported from "powerlines:api". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue "\{builtinPath\}/api"
|
|
15
|
+
*/
|
|
16
|
+
path?: string;
|
|
17
|
+
};
|
|
18
|
+
type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
|
|
19
|
+
/**
|
|
20
|
+
* The path to the Hey API schema file.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue "\{projectRoot\}/schema.yaml"
|
|
26
|
+
*/
|
|
27
|
+
schema?: UserConfig["input"];
|
|
28
|
+
/**
|
|
29
|
+
* The output details of the Hey API generation
|
|
30
|
+
*/
|
|
31
|
+
output?: HeyAPIPluginOutputOptions;
|
|
32
|
+
};
|
|
33
|
+
type HeyAPIPluginUserConfig = UserConfig$1 & {
|
|
34
|
+
heyApi?: HeyAPIPluginOptions;
|
|
35
|
+
};
|
|
36
|
+
type HeyAPIPluginResolvedConfig = ResolvedConfig & {
|
|
37
|
+
heyApi: Omit<HeyAPIPluginOptions, "schema"> & {
|
|
38
|
+
schema: HeyAPIPluginOptions["schema"] | OpenApi.V3_0_X;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
42
|
+
declare type __ΩHeyAPIPluginOutputOptions = any[];
|
|
43
|
+
declare type __ΩHeyAPIPluginOptions = any[];
|
|
44
|
+
declare type __ΩHeyAPIPluginUserConfig = any[];
|
|
45
|
+
declare type __ΩHeyAPIPluginResolvedConfig = any[];
|
|
46
|
+
declare type __ΩHeyAPIPluginContext = any[];
|
|
47
|
+
//#endregion
|
|
48
|
+
export { HeyAPIPluginUserConfig as a, __ΩHeyAPIPluginOutputOptions as c, HeyAPIPluginResolvedConfig as i, __ΩHeyAPIPluginResolvedConfig as l, HeyAPIPluginOptions as n, __ΩHeyAPIPluginContext as o, HeyAPIPluginOutputOptions as r, __ΩHeyAPIPluginOptions as s, HeyAPIPluginContext as t, __ΩHeyAPIPluginUserConfig as u };
|
|
49
|
+
//# sourceMappingURL=plugin-DbwOBxik.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-DbwOBxik.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAwBY,yBAAA,GAA4B;EAA5B;AAYZ;;;;;;AAiBA;EAIY,IAAA,CAAA,EAAA,MAAA;CAA6B;AAC1B,KAtBH,mBAAA,GAAsB,IAsBnB,CAtBwB,UAsBxB,EAAA,OAAA,GAAA,QAAA,CAAA,GAAA;EAAL;;;;AAKV;;;;EAGI,MAAA,CAAA,EArBO,UAqBP,CAAA,OAAA,CAAA;EAAa;;;WAhBN;;KAGC,sBAAA,GAAyB;WAC1B;;KAGC,0BAAA,GAA6B;UAC/B,KAAK;YACH,gCAAgC,OAAA,CAAQ;;;KAIxC,4CACc,6BACtB,8BACA,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "../plugin-DbwOBxik.cjs";
|
|
2
|
+
import "../index-D4ELpJXS.cjs";
|
|
2
3
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "../plugin-CtyxP8Qk.mjs";
|
|
2
|
+
import "../index-9iG2qHLe.mjs";
|
|
2
3
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig as UserConfig$1 } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type HeyAPIPluginOutputOptions = UserConfig["output"] & {
|
|
8
|
-
/**
|
|
9
|
-
* The path to the output file generated by the plugin.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* If using the default value, the file can be imported from "powerlines:api". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
13
|
-
*
|
|
14
|
-
* @defaultValue "\{builtinPath\}/api"
|
|
15
|
-
*/
|
|
16
|
-
path?: string;
|
|
17
|
-
};
|
|
18
|
-
type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
|
|
19
|
-
/**
|
|
20
|
-
* The path to the Hey API schema file.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue "\{projectRoot\}/schema.yaml"
|
|
26
|
-
*/
|
|
27
|
-
schema?: UserConfig["input"];
|
|
28
|
-
/**
|
|
29
|
-
* The output details of the Hey API generation
|
|
30
|
-
*/
|
|
31
|
-
output?: HeyAPIPluginOutputOptions;
|
|
32
|
-
};
|
|
33
|
-
type HeyAPIPluginUserConfig = UserConfig$1 & {
|
|
34
|
-
heyApi?: HeyAPIPluginOptions;
|
|
35
|
-
};
|
|
36
|
-
type HeyAPIPluginResolvedConfig = ResolvedConfig & {
|
|
37
|
-
heyApi: Omit<HeyAPIPluginOptions, "schema"> & {
|
|
38
|
-
schema: HeyAPIPluginOptions["schema"] | OpenApi.V3_0_X;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
42
|
-
declare type __ΩHeyAPIPluginOutputOptions = any[];
|
|
43
|
-
declare type __ΩHeyAPIPluginOptions = any[];
|
|
44
|
-
declare type __ΩHeyAPIPluginUserConfig = any[];
|
|
45
|
-
declare type __ΩHeyAPIPluginResolvedConfig = any[];
|
|
46
|
-
declare type __ΩHeyAPIPluginContext = any[];
|
|
47
|
-
//#endregion
|
|
1
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "../plugin-DbwOBxik.cjs";
|
|
48
2
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig as UserConfig$1 } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type HeyAPIPluginOutputOptions = UserConfig["output"] & {
|
|
8
|
-
/**
|
|
9
|
-
* The path to the output file generated by the plugin.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* If using the default value, the file can be imported from "powerlines:api". This field allows the use of the "\{builtinPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin.
|
|
13
|
-
*
|
|
14
|
-
* @defaultValue "\{builtinPath\}/api"
|
|
15
|
-
*/
|
|
16
|
-
path?: string;
|
|
17
|
-
};
|
|
18
|
-
type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
|
|
19
|
-
/**
|
|
20
|
-
* The path to the Hey API schema file.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue "\{projectRoot\}/schema.yaml"
|
|
26
|
-
*/
|
|
27
|
-
schema?: UserConfig["input"];
|
|
28
|
-
/**
|
|
29
|
-
* The output details of the Hey API generation
|
|
30
|
-
*/
|
|
31
|
-
output?: HeyAPIPluginOutputOptions;
|
|
32
|
-
};
|
|
33
|
-
type HeyAPIPluginUserConfig = UserConfig$1 & {
|
|
34
|
-
heyApi?: HeyAPIPluginOptions;
|
|
35
|
-
};
|
|
36
|
-
type HeyAPIPluginResolvedConfig = ResolvedConfig & {
|
|
37
|
-
heyApi: Omit<HeyAPIPluginOptions, "schema"> & {
|
|
38
|
-
schema: HeyAPIPluginOptions["schema"] | OpenApi.V3_0_X;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
42
|
-
declare type __ΩHeyAPIPluginOutputOptions = any[];
|
|
43
|
-
declare type __ΩHeyAPIPluginOptions = any[];
|
|
44
|
-
declare type __ΩHeyAPIPluginUserConfig = any[];
|
|
45
|
-
declare type __ΩHeyAPIPluginResolvedConfig = any[];
|
|
46
|
-
declare type __ΩHeyAPIPluginContext = any[];
|
|
47
|
-
//#endregion
|
|
1
|
+
import { a as HeyAPIPluginUserConfig, c as __ΩHeyAPIPluginOutputOptions, i as HeyAPIPluginResolvedConfig, l as __ΩHeyAPIPluginResolvedConfig, n as HeyAPIPluginOptions, o as __ΩHeyAPIPluginContext, r as HeyAPIPluginOutputOptions, s as __ΩHeyAPIPluginOptions, t as HeyAPIPluginContext, u as __ΩHeyAPIPluginUserConfig } from "../plugin-CtyxP8Qk.mjs";
|
|
48
2
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-hey-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.193",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code using Hey API.",
|
|
6
6
|
"repository": {
|
|
@@ -124,13 +124,13 @@
|
|
|
124
124
|
"@stryke/types": "^0.10.36",
|
|
125
125
|
"defu": "^6.1.4",
|
|
126
126
|
"jiti": "^2.6.1",
|
|
127
|
-
"powerlines": "^0.38.
|
|
127
|
+
"powerlines": "^0.38.6"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
130
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
131
131
|
"@types/node": "^24.10.9"
|
|
132
132
|
},
|
|
133
133
|
"publishConfig": { "access": "public" },
|
|
134
134
|
"types": "./dist/index.d.cts",
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
136
136
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|