@powerlines/plugin-hey-api 0.1.243 → 0.1.245

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/index.cjs CHANGED
@@ -8,7 +8,7 @@ let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-obj
8
8
  let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
9
9
  let defu = require("defu");
10
10
  defu = require_rolldown_runtime.__toESM(defu);
11
- let powerlines_plugin_utils_paths = require("powerlines/plugin-utils/paths");
11
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
12
12
 
13
13
  //#region src/index.ts
14
14
  /**
@@ -41,7 +41,7 @@ const plugin = (options = {}) => {
41
41
  }
42
42
  ],
43
43
  ...(0, defu.default)(options, {
44
- schema: (0, __stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "schema.yaml"),
44
+ schema: (0, __stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root, "schema.yaml"),
45
45
  output: { path: (0, __stryke_path_join_paths.joinPaths)("{builtinPath}", "api") },
46
46
  logs: this.envPaths.log
47
47
  })
@@ -49,7 +49,7 @@ const plugin = (options = {}) => {
49
49
  },
50
50
  async configResolved() {
51
51
  this.config.heyApi.output ??= {};
52
- this.config.heyApi.output.path = (0, powerlines_plugin_utils_paths.replacePathTokens)(this, this.config.heyApi.output.path);
52
+ this.config.heyApi.output.path = (0, powerlines_plugin_utils.replacePathTokens)(this, this.config.heyApi.output.path);
53
53
  if (!this.config.heyApi.schema) throw new Error("The `schema` option is required by the Hey API plugin.");
54
54
  if ((0, __stryke_type_checks_is_set_string.isSetString)(this.config.heyApi.schema)) {
55
55
  const result = await this.fetch(this.config.heyApi.schema);
package/dist/index.d.cts CHANGED
@@ -1,10 +1,14 @@
1
1
  import { createOperationId } from "./helpers/create-operation-id.cjs";
2
2
  import { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig } from "./types/plugin.cjs";
3
3
  import "./types/index.cjs";
4
- import { Plugin } from "powerlines/types/plugin";
4
+ import { Plugin } from "powerlines";
5
5
 
6
6
  //#region src/index.d.ts
7
-
7
+ declare module "powerlines" {
8
+ interface UserConfig {
9
+ heyApi?: HeyAPIPluginOptions;
10
+ }
11
+ }
8
12
  /**
9
13
  * A Powerlines plugin to integrate Hey API for code generation.
10
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA6CA;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;IAmCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
package/dist/index.d.mts CHANGED
@@ -1,10 +1,14 @@
1
1
  import { createOperationId } from "./helpers/create-operation-id.mjs";
2
2
  import { HeyAPIPluginContext, HeyAPIPluginOptions, HeyAPIPluginOutputOptions, HeyAPIPluginResolvedConfig, HeyAPIPluginUserConfig, __ΩHeyAPIPluginContext, __ΩHeyAPIPluginOptions, __ΩHeyAPIPluginOutputOptions, __ΩHeyAPIPluginResolvedConfig, __ΩHeyAPIPluginUserConfig } from "./types/plugin.mjs";
3
3
  import "./types/index.mjs";
4
- import { Plugin } from "powerlines/types/plugin";
4
+ import { Plugin } from "powerlines";
5
5
 
6
6
  //#region src/index.d.ts
7
-
7
+ declare module "powerlines" {
8
+ interface UserConfig {
9
+ heyApi?: HeyAPIPluginOptions;
10
+ }
11
+ }
8
12
  /**
9
13
  * A Powerlines plugin to integrate Hey API for code generation.
10
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA6CA;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;IAmCwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAgBxB;;;;;;AAIS,cAJI,MAIJ,EAAA,CAAA,iBAHU,mBAGV,GAHgC,mBAGhC,CAAA,CAAA,OAAA,CAAA,EADE,mBACF,EAAA,GAAN,MAAM,CAAC,QAAD,CAAA"}
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { joinPaths } from "@stryke/path/join-paths";
5
5
  import { isSetObject } from "@stryke/type-checks/is-set-object";
6
6
  import { isSetString } from "@stryke/type-checks/is-set-string";
7
7
  import defu from "defu";
8
- import { replacePathTokens } from "powerlines/plugin-utils/paths";
8
+ import { replacePathTokens } from "powerlines/plugin-utils";
9
9
 
10
10
  //#region src/index.ts
11
11
  /**
@@ -38,7 +38,7 @@ const plugin = (options = {}) => {
38
38
  }
39
39
  ],
40
40
  ...defu(options, {
41
- schema: joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "schema.yaml"),
41
+ schema: joinPaths(this.workspaceConfig.workspaceRoot, this.config.root, "schema.yaml"),
42
42
  output: { path: joinPaths("{builtinPath}", "api") },
43
43
  logs: this.envPaths.log
44
44
  })
@@ -1 +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"}
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 { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\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\ndeclare module \"powerlines\" {\n export interface UserConfig {\n heyApi?: HeyAPIPluginOptions;\n }\n}\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.root,\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 =\n (await result.json()) as HeyAPIPluginOptions[\"schema\"];\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":";;;;;;;;;;;;;;;;;;AAmDA,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,MACZ,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,SAChB,MAAM,OAAO,MAAM;;AAGxB,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"}
@@ -1,10 +1,8 @@
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";
1
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
+ import { OpenApi, UserConfig as UserConfig$1 } from "@hey-api/openapi-ts";
5
3
 
6
4
  //#region src/types/plugin.d.ts
7
- type HeyAPIPluginOutputOptions = UserConfig["output"] & {
5
+ type HeyAPIPluginOutputOptions = UserConfig$1["output"] & {
8
6
  /**
9
7
  * The path to the output file generated by the plugin.
10
8
  *
@@ -15,22 +13,22 @@ type HeyAPIPluginOutputOptions = UserConfig["output"] & {
15
13
  */
16
14
  path?: string;
17
15
  };
18
- type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
16
+ type HeyAPIPluginOptions = Omit<UserConfig$1, "input" | "output" | "schema"> & {
19
17
  /**
20
18
  * The path to the Hey API schema file.
21
19
  *
22
20
  * @remarks
23
21
  * This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
24
22
  *
25
- * @defaultValue "\{projectRoot\}/schema.yaml"
23
+ * @defaultValue "\{root\}/schema.yaml"
26
24
  */
27
- schema?: UserConfig["input"];
25
+ schema?: UserConfig$1["input"];
28
26
  /**
29
27
  * The output details of the Hey API generation
30
28
  */
31
29
  output?: HeyAPIPluginOutputOptions;
32
30
  };
33
- type HeyAPIPluginUserConfig = UserConfig$1 & {
31
+ type HeyAPIPluginUserConfig = UserConfig & {
34
32
  heyApi?: HeyAPIPluginOptions;
35
33
  };
36
34
  type HeyAPIPluginResolvedConfig = ResolvedConfig & {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.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"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAsBY,yBAAA,GAA4B;EAA5B;AAYZ;;;;;;AAoBA;EAIY,IAAA,CAAA,EAAA,MAAA;CAA6B;AAC1B,KAzBH,mBAAA,GAAsB,IAyBnB,CAxBb,YAwBa,EAAA,OAAA,GAAA,QAAA,GAAA,QAAA,CAAA,GAAA;EAAL;;;;AAKV;;;;EAGI,MAAA,CAAA,EArBO,YAqBP,CAAA,OAAA,CAAA;EAAa;;;WAhBN;;KAGC,sBAAA,GAAyB;WAC1B;;KAGC,0BAAA,GAA6B;UAC/B,KAAK;YACH,gCAAgC,OAAA,CAAQ;;;KAIxC,4CACc,6BACtB,8BACA,cAAc"}
@@ -1,7 +1,5 @@
1
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";
2
+ import { PluginContext, ResolvedConfig, UserConfig as UserConfig$1 } from "powerlines";
5
3
 
6
4
  //#region src/types/plugin.d.ts
7
5
  type HeyAPIPluginOutputOptions = UserConfig["output"] & {
@@ -15,14 +13,14 @@ type HeyAPIPluginOutputOptions = UserConfig["output"] & {
15
13
  */
16
14
  path?: string;
17
15
  };
18
- type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output"> & {
16
+ type HeyAPIPluginOptions = Omit<UserConfig, "input" | "output" | "schema"> & {
19
17
  /**
20
18
  * The path to the Hey API schema file.
21
19
  *
22
20
  * @remarks
23
21
  * This can be a string path, URL, HeyAPI3 object, Buffer, or Readable stream.
24
22
  *
25
- * @defaultValue "\{projectRoot\}/schema.yaml"
23
+ * @defaultValue "\{root\}/schema.yaml"
26
24
  */
27
25
  schema?: UserConfig["input"];
28
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.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"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAsBY,yBAAA,GAA4B;EAA5B;AAYZ;;;;;;AAoBA;EAIY,IAAA,CAAA,EAAA,MAAA;CAA6B;AAC1B,KAzBH,mBAAA,GAAsB,IAyBnB,CAxBb,UAwBa,EAAA,OAAA,GAAA,QAAA,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-hey-api",
3
- "version": "0.1.243",
3
+ "version": "0.1.245",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code using Hey API.",
6
6
  "repository": {
@@ -55,6 +55,7 @@
55
55
  "default": "./dist/index.mjs"
56
56
  }
57
57
  },
58
+ "./*": "./*",
58
59
  "./helpers": {
59
60
  "require": {
60
61
  "types": "./dist/helpers/index.d.cts",
@@ -83,7 +84,6 @@
83
84
  "default": "./dist/helpers/create-operation-id.mjs"
84
85
  }
85
86
  },
86
- "./package.json": "./package.json",
87
87
  "./types": {
88
88
  "require": {
89
89
  "types": "./dist/types/index.d.cts",
@@ -124,13 +124,13 @@
124
124
  "@stryke/types": "^0.10.39",
125
125
  "defu": "^6.1.4",
126
126
  "jiti": "^2.6.1",
127
- "powerlines": "^0.38.56"
127
+ "powerlines": "^0.39.0"
128
128
  },
129
129
  "devDependencies": {
130
- "@powerlines/plugin-plugin": "^0.12.240",
131
- "@types/node": "^25.3.0"
130
+ "@powerlines/plugin-plugin": "^0.12.242",
131
+ "@types/node": "^25.3.2"
132
132
  },
133
133
  "publishConfig": { "access": "public" },
134
134
  "types": "./dist/index.d.cts",
135
- "gitHead": "256020b11a6afd9decac143ca57eaba68d102906"
135
+ "gitHead": "0dcb16f054b8a69915b074578e6d4dfa3ecc1529"
136
136
  }