@powerlines/plugin-hey-api 0.1.630 → 0.1.632
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-DWWadAfJ.d.cts → create-operation-id-fZcIuPdh.d.cts} +1 -3
- package/dist/create-operation-id-fZcIuPdh.d.cts.map +1 -0
- package/dist/{create-operation-id-DWWadAfJ.d.mts → create-operation-id-fZcIuPdh.d.mts} +1 -3
- package/dist/create-operation-id-fZcIuPdh.d.mts.map +1 -0
- package/dist/helpers/create-operation-id.cjs +1 -2
- package/dist/helpers/create-operation-id.d.cts +1 -1
- package/dist/helpers/create-operation-id.d.mts +1 -1
- package/dist/helpers/create-operation-id.mjs +1 -2
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +1 -1
- package/dist/helpers/index.d.mts +1 -1
- package/dist/index.cjs +5 -7
- package/dist/index.d.cts +1 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +1 -2
- package/dist/types/plugin.d.cts +0 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -2
- package/package.json +7 -7
- package/dist/create-operation-id-DWWadAfJ.d.cts.map +0 -1
- package/dist/create-operation-id-DWWadAfJ.d.mts.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/helpers/create-operation-id.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Create an Operation Id from a summary string
|
|
4
3
|
*
|
|
@@ -6,6 +5,5 @@
|
|
|
6
5
|
* @returns The generated operation ID
|
|
7
6
|
*/
|
|
8
7
|
declare function createOperationId(summary: string): string;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { createOperationId as t };
|
|
11
|
-
//# sourceMappingURL=create-operation-id-
|
|
9
|
+
//# sourceMappingURL=create-operation-id-fZcIuPdh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-operation-id-fZcIuPdh.d.cts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"mappings":";;;;;;iBA0BgB,kBAAkB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/helpers/create-operation-id.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Create an Operation Id from a summary string
|
|
4
3
|
*
|
|
@@ -6,6 +5,5 @@
|
|
|
6
5
|
* @returns The generated operation ID
|
|
7
6
|
*/
|
|
8
7
|
declare function createOperationId(summary: string): string;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { createOperationId as t };
|
|
11
|
-
//# sourceMappingURL=create-operation-id-
|
|
9
|
+
//# sourceMappingURL=create-operation-id-fZcIuPdh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-operation-id-fZcIuPdh.d.mts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/helpers/create-operation-id.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create an Operation Id from a summary string
|
|
7
7
|
*
|
|
@@ -12,5 +12,4 @@ function createOperationId(summary) {
|
|
|
12
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
13
|
}
|
|
14
14
|
|
|
15
|
-
//#endregion
|
|
16
15
|
exports.createOperationId = createOperationId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createOperationId } from "../create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-fZcIuPdh.cjs";
|
|
2
2
|
export { createOperationId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createOperationId } from "../create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-fZcIuPdh.mjs";
|
|
2
2
|
export { createOperationId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { camelCase } from "@stryke/string-format/camel-case";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/helpers/create-operation-id.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create an Operation Id from a summary string
|
|
6
6
|
*
|
|
@@ -11,6 +11,5 @@ function createOperationId(summary) {
|
|
|
11
11
|
return camelCase(summary.replace(/\b(?:a|from|to|the|given|of|an)\b/gi, "").replace("Get list", "list"));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
export { createOperationId };
|
|
16
15
|
//# sourceMappingURL=create-operation-id.mjs.map
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_create_operation_id = require(
|
|
2
|
+
const require_helpers_create_operation_id = require("./create-operation-id.cjs");
|
|
3
3
|
|
|
4
4
|
exports.createOperationId = require_helpers_create_operation_id.createOperationId;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createOperationId } from "../create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-fZcIuPdh.cjs";
|
|
2
2
|
export { createOperationId };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createOperationId } from "../create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "../create-operation-id-fZcIuPdh.mjs";
|
|
2
2
|
export { createOperationId };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -25,10 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) : target, mod));
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
require(
|
|
31
|
-
require('./types/index.cjs');
|
|
28
|
+
const require_helpers_create_operation_id = require("./helpers/create-operation-id.cjs");
|
|
29
|
+
require("./helpers/index.cjs");
|
|
30
|
+
require("./types/index.cjs");
|
|
32
31
|
let _power_plant_hey_api = require("@power-plant/hey-api");
|
|
33
32
|
_power_plant_hey_api = __toESM(_power_plant_hey_api, 1);
|
|
34
33
|
let _powerlines_plugin_power_plant = require("@powerlines/plugin-power-plant");
|
|
@@ -39,7 +38,7 @@ let defu = require("defu");
|
|
|
39
38
|
defu = __toESM(defu, 1);
|
|
40
39
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
// src/index.ts
|
|
43
42
|
function isLoadedDocument(value) {
|
|
44
43
|
return typeof value === "object" && value !== null && !(value instanceof URL);
|
|
45
44
|
}
|
|
@@ -122,6 +121,5 @@ const plugin = (options = {}) => {
|
|
|
122
121
|
}];
|
|
123
122
|
};
|
|
124
123
|
|
|
125
|
-
//#endregion
|
|
126
124
|
exports.createOperationId = require_helpers_create_operation_id.createOperationId;
|
|
127
125
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as createOperationId } from "./create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "./create-operation-id-fZcIuPdh.cjs";
|
|
2
2
|
import { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions } from "./types/plugin.cjs";
|
|
3
3
|
import "./types/index.cjs";
|
|
4
4
|
import { Plugin } from "powerlines";
|
|
5
|
-
//#region src/index.d.ts
|
|
6
5
|
declare module "powerlines" {
|
|
7
6
|
interface Config {
|
|
8
7
|
heyApi?: HeyAPIPluginOptions;
|
|
@@ -17,6 +16,5 @@ declare module "powerlines" {
|
|
|
17
16
|
* @returns Powerlines plugin instances.
|
|
18
17
|
*/
|
|
19
18
|
declare const plugin: <TContext extends HeyAPIPluginContext = HeyAPIPluginContext>(options?: HeyAPIPluginOptions) => Plugin<TContext>[];
|
|
20
|
-
//#endregion
|
|
21
19
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions, createOperationId, plugin };
|
|
22
20
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwCY;IACR,SAAS;;;;;;;;;;;cAgBA,SACX,iBAAiB,sBAAsB,qBAEvC,UAAS,wBACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as createOperationId } from "./create-operation-id-
|
|
1
|
+
import { t as createOperationId } from "./create-operation-id-fZcIuPdh.mjs";
|
|
2
2
|
import { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions } from "./types/plugin.mjs";
|
|
3
3
|
import "./types/index.mjs";
|
|
4
4
|
import { Plugin } from "powerlines";
|
|
5
|
-
//#region src/index.d.ts
|
|
6
5
|
declare module "powerlines" {
|
|
7
6
|
interface Config {
|
|
8
7
|
heyApi?: HeyAPIPluginOptions;
|
|
@@ -17,6 +16,5 @@ declare module "powerlines" {
|
|
|
17
16
|
* @returns Powerlines plugin instances.
|
|
18
17
|
*/
|
|
19
18
|
declare const plugin: <TContext extends HeyAPIPluginContext = HeyAPIPluginContext>(options?: HeyAPIPluginOptions) => Plugin<TContext>[];
|
|
20
|
-
//#endregion
|
|
21
19
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions, createOperationId, plugin };
|
|
22
20
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
|
9
9
|
import defu from "defu";
|
|
10
10
|
import { replacePathTokens } from "powerlines/plugin-utils";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/index.ts
|
|
13
13
|
function isLoadedDocument(value) {
|
|
14
14
|
return typeof value === "object" && value !== null && !(value instanceof URL);
|
|
15
15
|
}
|
|
@@ -92,6 +92,5 @@ const plugin = (options = {}) => {
|
|
|
92
92
|
}];
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
//#endregion
|
|
96
95
|
export { createOperationId, plugin };
|
|
97
96
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { ResolvedConfig, UserConfig } from "powerlines";
|
|
|
2
2
|
import { OpenApi, UserConfig as UserConfig$1 } from "@hey-api/openapi-ts";
|
|
3
3
|
import { PowerPlantPluginContext, PowerPlantPluginResolvedConfig } from "@powerlines/plugin-power-plant/types/plugin";
|
|
4
4
|
import { Arrayable } from "@stryke/types/array";
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
5
|
type PowerPlantHeyAPIOptions = Arrayable<Omit<UserConfig$1, "input">>;
|
|
7
6
|
type HeyAPIPluginOutputOptions = UserConfig$1["output"] & {
|
|
8
7
|
/**
|
|
@@ -39,6 +38,5 @@ type HeyAPIPluginResolvedConfig = ResolvedConfig & PowerPlantPluginResolvedConfi
|
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
40
|
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PowerPlantPluginContext<Record<string, unknown>, PowerPlantHeyAPIOptions, TResolvedConfig>;
|
|
42
|
-
//#endregion
|
|
43
41
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions };
|
|
44
42
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":["HeyAPIUserConfig"],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":["HeyAPIUserConfig"],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA2BY,0BAA0B,UACpC,KAAKA;KAGK,4BAA4BA;;;;;;;;;EAStC;;KAGU,sBAAsB,KAChCA;;;;;;;;;EAWA,SAASA;;;;EAKT,SAAS;;KAGC,yBAAyB;EACnC,SAAS;;KAGC,6BAA6B,iBACvC,+BACE,yBACA;EAEA,QAAQ,KAAK;IACX,QAAQ,gCAAgC,QAAQ;;;KAI1C,oBACV,wBAAwB,6BACtB,8BACA,wBACF,yBACA,yBACA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { ResolvedConfig, UserConfig } from "powerlines";
|
|
|
2
2
|
import { OpenApi, UserConfig as UserConfig$1 } from "@hey-api/openapi-ts";
|
|
3
3
|
import { PowerPlantPluginContext, PowerPlantPluginResolvedConfig } from "@powerlines/plugin-power-plant/types/plugin";
|
|
4
4
|
import { Arrayable } from "@stryke/types/array";
|
|
5
|
-
//#region src/types/plugin.d.ts
|
|
6
5
|
type PowerPlantHeyAPIOptions = Arrayable<Omit<UserConfig$1, "input">>;
|
|
7
6
|
type HeyAPIPluginOutputOptions = UserConfig$1["output"] & {
|
|
8
7
|
/**
|
|
@@ -39,6 +38,5 @@ type HeyAPIPluginResolvedConfig = ResolvedConfig & PowerPlantPluginResolvedConfi
|
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
40
|
type HeyAPIPluginContext<TResolvedConfig extends HeyAPIPluginResolvedConfig = HeyAPIPluginResolvedConfig> = PowerPlantPluginContext<Record<string, unknown>, PowerPlantHeyAPIOptions, TResolvedConfig>;
|
|
42
|
-
//#endregion
|
|
43
41
|
export { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, PowerPlantHeyAPIOptions };
|
|
44
42
|
//# sourceMappingURL=plugin.d.mts.map
|
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.632",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code using Hey API.",
|
|
6
6
|
"repository": {
|
|
@@ -118,22 +118,22 @@
|
|
|
118
118
|
"keywords": ["hey-api", "powerlines", "storm-software", "powerlines-plugin"],
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@hey-api/openapi-ts": "^0.88.2",
|
|
121
|
-
"@power-plant/core": "^0.0.
|
|
122
|
-
"@power-plant/hey-api": "^0.0.
|
|
123
|
-
"@powerlines/plugin-power-plant": "^0.1.
|
|
121
|
+
"@power-plant/core": "^0.0.98",
|
|
122
|
+
"@power-plant/hey-api": "^0.0.94",
|
|
123
|
+
"@powerlines/plugin-power-plant": "^0.1.73",
|
|
124
124
|
"@stryke/path": "^0.29.43",
|
|
125
125
|
"@stryke/string-format": "^0.17.58",
|
|
126
126
|
"@stryke/type-checks": "^0.6.49",
|
|
127
127
|
"@stryke/types": "^0.12.44",
|
|
128
128
|
"defu": "^6.1.7",
|
|
129
129
|
"jiti": "^2.7.0",
|
|
130
|
-
"powerlines": "^0.47.
|
|
130
|
+
"powerlines": "^0.47.216"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
133
|
+
"@powerlines/plugin-plugin": "^0.12.629",
|
|
134
134
|
"@types/node": "^25.9.9"
|
|
135
135
|
},
|
|
136
136
|
"publishConfig": { "access": "public" },
|
|
137
137
|
"types": "./dist/index.d.cts",
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
|
|
139
139
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-operation-id-DWWadAfJ.d.cts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"mappings":";;;;;;;iBA0BgB,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-operation-id-DWWadAfJ.d.mts","names":[],"sources":["../src/helpers/create-operation-id.ts"],"mappings":""}
|