@powerlines/plugin-asyncapi 0.1.335 → 0.1.336

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.mjs CHANGED
@@ -51,5 +51,4 @@ const plugin = (options) => {
51
51
  var src_default = plugin;
52
52
 
53
53
  //#endregion
54
- export { src_default as default, plugin };
55
- //# sourceMappingURL=index.mjs.map
54
+ export { src_default as default, plugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-asyncapi",
3
- "version": "0.1.335",
3
+ "version": "0.1.336",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from AsyncAPI specifications.",
6
6
  "repository": {
@@ -91,18 +91,18 @@
91
91
  "dependencies": {
92
92
  "@asyncapi/generator": "^2.11.0",
93
93
  "@asyncapi/parser": "^3.6.0",
94
- "@stryke/convert": "^0.6.51",
95
- "@stryke/fs": "^0.33.55",
96
- "@stryke/http": "^0.12.47",
97
- "@stryke/path": "^0.26.17",
94
+ "@stryke/convert": "^0.6.52",
95
+ "@stryke/fs": "^0.33.56",
96
+ "@stryke/http": "^0.12.48",
97
+ "@stryke/path": "^0.26.18",
98
98
  "defu": "^6.1.4",
99
- "powerlines": "^0.40.18"
99
+ "powerlines": "^0.40.19"
100
100
  },
101
101
  "devDependencies": {
102
- "@powerlines/plugin-plugin": "^0.12.282",
103
- "@types/node": "^25.3.5"
102
+ "@powerlines/plugin-plugin": "^0.12.283",
103
+ "@types/node": "^25.4.0"
104
104
  },
105
105
  "publishConfig": { "access": "public" },
106
106
  "types": "./dist/index.d.cts",
107
- "gitHead": "7aff4b34ac598df76db48e9b713a2ff08ee85134"
107
+ "gitHead": "7496a546473274494be487ebc33cf267ed5cd1f0"
108
108
  }
package/dist/index.d.cts DELETED
@@ -1,20 +0,0 @@
1
- import { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig } from "./types/plugin.cjs";
2
- import "./types/index.cjs";
3
- import { Plugin } from "powerlines";
4
-
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- asyncapi?: AsyncAPIPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to integrate AsyncAPI for code generation.
13
- *
14
- * @param options - The plugin options.
15
- * @returns A Powerlines plugin instance.
16
- */
17
- declare const plugin: <TContext extends AsyncAPIPluginContext = AsyncAPIPluginContext>(options: AsyncAPIPluginOptions) => Plugin<TContext>;
18
- //#endregion
19
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig, plugin as default, plugin };
20
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA+BwB,QAAA,CAAA,EAIT,qBAJS;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,qBAGT,GAHiC,qBAGjC,CAAA,CAAA,OAAA,EADC,qBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
package/dist/index.d.mts DELETED
@@ -1,20 +0,0 @@
1
- import { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig } from "./types/plugin.mjs";
2
- import "./types/index.mjs";
3
- import { Plugin } from "powerlines";
4
-
5
- //#region src/index.d.ts
6
- declare module "powerlines" {
7
- interface Config {
8
- asyncapi?: AsyncAPIPluginOptions;
9
- }
10
- }
11
- /**
12
- * A Powerlines plugin to integrate AsyncAPI for code generation.
13
- *
14
- * @param options - The plugin options.
15
- * @returns A Powerlines plugin instance.
16
- */
17
- declare const plugin: <TContext extends AsyncAPIPluginContext = AsyncAPIPluginContext>(options: AsyncAPIPluginOptions) => Plugin<TContext>;
18
- //#endregion
19
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig, plugin as default, plugin };
20
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA+BwB,QAAA,CAAA,EAIT,qBAJS;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,qBAGT,GAHiC,qBAGjC,CAAA,CAAA,OAAA,EADC,qBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
@@ -1 +0,0 @@
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 { Generator } from \"@asyncapi/generator\";\nimport { isAsyncAPIDocument } from \"@asyncapi/parser/esm/document\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { isPackageExists } from \"@stryke/fs/package-fns\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { replacePathTokens } from \"powerlines/plugin-utils\";\nimport type {\n AsyncAPIPluginContext,\n AsyncAPIPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n asyncapi?: AsyncAPIPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate AsyncAPI for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends AsyncAPIPluginContext = AsyncAPIPluginContext\n>(\n options: AsyncAPIPluginOptions\n): Plugin<TContext> => {\n return {\n name: \"asyncapi\",\n config() {\n return {\n asyncapi: defu(options, {\n schema: joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"schema.yaml\"\n ),\n output: \"string\",\n install: false,\n compile: false,\n debug:\n this.config.mode === \"development\" ||\n this.config.logLevel === \"debug\" ||\n this.config.logLevel === \"trace\",\n targetDir: joinPaths(this.builtinsPath, \"asyncapi\")\n })\n };\n },\n async configResolved() {\n if (!this.config.asyncapi.schema) {\n throw new Error(\n 'AsyncAPI schema is required. Please specify it in the plugin options or your Powerlines configuration under \"asyncapi.schema\".'\n );\n }\n\n if (\n !this.config.asyncapi.document ||\n !isAsyncAPIDocument(this.config.asyncapi.document)\n ) {\n if (isAsyncAPIDocument(this.config.asyncapi.schema)) {\n this.config.asyncapi.document = this.config.asyncapi.schema;\n } else if (existsSync(this.config.asyncapi.schema.toString())) {\n const document = await this.fs.read(\n this.config.asyncapi.schema.toString()\n );\n if (!document) {\n throw new Error(\n `Failed to read AsyncAPI schema from file: ${this.config.asyncapi.schema.toString()}`\n );\n }\n\n this.config.asyncapi.document = document;\n } else {\n const document = await this.fetch(\n this.config.asyncapi.schema.toString()\n );\n if (!document) {\n throw new Error(\n `Failed to fetch AsyncAPI schema from endpoint: ${this.config.asyncapi.schema.toString()}`\n );\n }\n\n this.config.asyncapi.document = await document.text();\n }\n }\n\n if (!this.config.asyncapi.templateName) {\n throw new Error(\n 'AsyncAPI template name is required. Please specify it in the plugin options or your Powerlines configuration under \"asyncapi.templateName\".'\n );\n }\n\n if (!this.config.asyncapi.outputPath) {\n throw new Error(\n 'AsyncAPI output path is required. Please specify it in the plugin options or your Powerlines configuration under \"asyncapi.outputPath\".'\n );\n }\n\n if (\n !existsSync(this.config.asyncapi.templateName) &&\n !isPackageExists(this.config.asyncapi.templateName)\n ) {\n this.devDependencies[this.config.asyncapi.templateName] = \"latest\";\n }\n\n this.config.asyncapi.outputPath = replacePathTokens(\n this,\n this.config.asyncapi.outputPath\n );\n },\n async prepare() {\n const generator = new Generator(\n this.config.asyncapi.templateName,\n this.config.asyncapi.outputPath,\n this.config.asyncapi\n );\n\n await generator.generate(this.config.asyncapi.document);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AA6CA,MAAa,UAGX,YACqB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,UAAU,KAAK,SAAS;IACtB,QAAQ,UACN,KAAK,gBAAgB,eACrB,KAAK,OAAO,MACZ,cACD;IACD,QAAQ;IACR,SAAS;IACT,SAAS;IACT,OACE,KAAK,OAAO,SAAS,iBACrB,KAAK,OAAO,aAAa,WACzB,KAAK,OAAO,aAAa;IAC3B,WAAW,UAAU,KAAK,cAAc,WAAW;IACpD,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,OAAI,CAAC,KAAK,OAAO,SAAS,OACxB,OAAM,IAAI,MACR,mIACD;AAGH,OACE,CAAC,KAAK,OAAO,SAAS,YACtB,CAAC,mBAAmB,KAAK,OAAO,SAAS,SAAS,CAElD,KAAI,mBAAmB,KAAK,OAAO,SAAS,OAAO,CACjD,MAAK,OAAO,SAAS,WAAW,KAAK,OAAO,SAAS;YAC5C,WAAW,KAAK,OAAO,SAAS,OAAO,UAAU,CAAC,EAAE;IAC7D,MAAM,WAAW,MAAM,KAAK,GAAG,KAC7B,KAAK,OAAO,SAAS,OAAO,UAAU,CACvC;AACD,QAAI,CAAC,SACH,OAAM,IAAI,MACR,6CAA6C,KAAK,OAAO,SAAS,OAAO,UAAU,GACpF;AAGH,SAAK,OAAO,SAAS,WAAW;UAC3B;IACL,MAAM,WAAW,MAAM,KAAK,MAC1B,KAAK,OAAO,SAAS,OAAO,UAAU,CACvC;AACD,QAAI,CAAC,SACH,OAAM,IAAI,MACR,kDAAkD,KAAK,OAAO,SAAS,OAAO,UAAU,GACzF;AAGH,SAAK,OAAO,SAAS,WAAW,MAAM,SAAS,MAAM;;AAIzD,OAAI,CAAC,KAAK,OAAO,SAAS,aACxB,OAAM,IAAI,MACR,gJACD;AAGH,OAAI,CAAC,KAAK,OAAO,SAAS,WACxB,OAAM,IAAI,MACR,4IACD;AAGH,OACE,CAAC,WAAW,KAAK,OAAO,SAAS,aAAa,IAC9C,CAAC,gBAAgB,KAAK,OAAO,SAAS,aAAa,CAEnD,MAAK,gBAAgB,KAAK,OAAO,SAAS,gBAAgB;AAG5D,QAAK,OAAO,SAAS,aAAa,kBAChC,MACA,KAAK,OAAO,SAAS,WACtB;;EAEH,MAAM,UAAU;AAOd,SANkB,IAAI,UACpB,KAAK,OAAO,SAAS,cACrB,KAAK,OAAO,SAAS,YACrB,KAAK,OAAO,SACb,CAEe,SAAS,KAAK,OAAO,SAAS,SAAS;;EAE1D;;AAGH,kBAAe"}
@@ -1,2 +0,0 @@
1
- import { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig } from "./plugin.cjs";
2
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig };
@@ -1,2 +0,0 @@
1
- import { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig } from "./plugin.mjs";
2
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig };
@@ -1,100 +0,0 @@
1
- import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
- import { GeneratorOptions } from "@asyncapi/generator";
3
- import { AsyncAPIDocument } from "@asyncapi/parser/esm/models/v3/asyncapi";
4
-
5
- //#region src/types/plugin.d.ts
6
- interface AsyncAPIPluginOptions {
7
- /**
8
- * The path to the AsyncAPI schema file.
9
- *
10
- * @remarks
11
- * This can be a string file path/remote URL string or a {@link URL} object.
12
- *
13
- * @defaultValue "\{projectRoot\}/schema.yaml"
14
- */
15
- schema?: string | URL | AsyncAPIDocument;
16
- /**
17
- * The name of the AsyncAPI template to use.
18
- *
19
- * @remarks
20
- * This can be a local path or a template package that will be installed by AsyncAPI.
21
- */
22
- templateName: string;
23
- /**
24
- * The target directory where the generated files will be written.
25
- *
26
- * @remarks
27
- * If using the default value, the files can be imported from "powerlines:asyncapi/fileName". 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.
28
- *
29
- * @defaultValue "\{builtinPath\}/asyncapi"
30
- */
31
- outputPath?: string;
32
- /**
33
- * Name of the file to use as the entry point for the rendering process. Use in case you want to use only a specific template file. Note: this potentially avoids rendering every file in the template.
34
- */
35
- entrypoint?: string;
36
- /**
37
- * Template parameters to pass to the AsyncAPI generator.
38
- */
39
- templateParams?: Record<string, any>;
40
- /**
41
- * Glob patterns to prevent overwriting specific files.
42
- */
43
- noOverwriteGlobs?: string[];
44
- /**
45
- * Object with hooks to disable. The key is a hook type. If key has "true" value, then the generator skips all hooks from the given type. If the value associated with a key is a string with the name of a single hook, then the generator skips only this single hook name. If the value associated with a key is an array of strings, then the generator skips only hooks from the array.
46
- */
47
- disabledHooks?: Record<string, boolean | string | string[]>;
48
- /**
49
- * The registry to use for installing templates/dependencies.
50
- *
51
- * @remarks
52
- * If no value is provided, the default registry configured for the repository will be used.
53
- */
54
- registry?: string | {
55
- url: string;
56
- auth?: string;
57
- token?: string;
58
- };
59
- /**
60
- * Whether to force write files even if they exist.
61
- *
62
- * @defaultValue true
63
- */
64
- forceWrite?: boolean;
65
- /**
66
- * Whether to enable debug mode.
67
- *
68
- * @remarks
69
- * When no value is provided, if `mode` is "development" or `logLevel` is "debug" or "trace", debug mode will be enabled by default.
70
- *
71
- * @defaultValue false
72
- */
73
- debug?: boolean;
74
- /**
75
- * Whether to compile the template before generating files.
76
- *
77
- * @defaultValue false
78
- */
79
- compile?: boolean;
80
- /**
81
- * Optional parameter to map schema references from a base url to a local base folder e.g. url=https://schema.example.com/crm/ folder=./test/docs/ .
82
- */
83
- mapBaseUrlToFolder?: Record<string, string>;
84
- }
85
- type AsyncAPIPluginUserConfig = UserConfig & {
86
- asyncapi?: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">>;
87
- };
88
- type AsyncAPIPluginResolvedConfig = ResolvedConfig & {
89
- asyncapi: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">> & {
90
- document: string | AsyncAPIDocument;
91
- };
92
- };
93
- type AsyncAPIPluginContext<TResolvedConfig extends AsyncAPIPluginResolvedConfig = AsyncAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
94
- declare type __ΩAsyncAPIPluginOptions = any[];
95
- declare type __ΩAsyncAPIPluginUserConfig = any[];
96
- declare type __ΩAsyncAPIPluginResolvedConfig = any[];
97
- declare type __ΩAsyncAPIPluginContext = any[];
98
- //#endregion
99
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig };
100
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,qBAAA;;AAAjB;;;;;;;EAuFY,MAAA,CAAA,EAAA,MAAA,GA9EQ,GA8ER,GA9Ec,gBA8EU;EAAG;;;;;;EAO3B,YAAA,EAAA,MAAA;EAA+B;;;;;;;AAS3C;EAC0B,UAAA,CAAA,EAAA,MAAA;EACtB;;;EACa,UAAA,CAAA,EAAA,MAAA;;;;mBArEE;;;;;;;;kBAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAqCK;;KAGX,wBAAA,GAA2B;aAC1B,mBACT,SACE,KAAK;;KAIC,4BAAA,GAA+B;YAC/B,mBACR,SACE,KAAK;uBAEc;;;KAIb,8CACc,+BACtB,gCACA,cAAc"}
@@ -1,100 +0,0 @@
1
- import { GeneratorOptions } from "@asyncapi/generator";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
- import { AsyncAPIDocument } from "@asyncapi/parser/esm/models/v3/asyncapi";
4
-
5
- //#region src/types/plugin.d.ts
6
- interface AsyncAPIPluginOptions {
7
- /**
8
- * The path to the AsyncAPI schema file.
9
- *
10
- * @remarks
11
- * This can be a string file path/remote URL string or a {@link URL} object.
12
- *
13
- * @defaultValue "\{projectRoot\}/schema.yaml"
14
- */
15
- schema?: string | URL | AsyncAPIDocument;
16
- /**
17
- * The name of the AsyncAPI template to use.
18
- *
19
- * @remarks
20
- * This can be a local path or a template package that will be installed by AsyncAPI.
21
- */
22
- templateName: string;
23
- /**
24
- * The target directory where the generated files will be written.
25
- *
26
- * @remarks
27
- * If using the default value, the files can be imported from "powerlines:asyncapi/fileName". 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.
28
- *
29
- * @defaultValue "\{builtinPath\}/asyncapi"
30
- */
31
- outputPath?: string;
32
- /**
33
- * Name of the file to use as the entry point for the rendering process. Use in case you want to use only a specific template file. Note: this potentially avoids rendering every file in the template.
34
- */
35
- entrypoint?: string;
36
- /**
37
- * Template parameters to pass to the AsyncAPI generator.
38
- */
39
- templateParams?: Record<string, any>;
40
- /**
41
- * Glob patterns to prevent overwriting specific files.
42
- */
43
- noOverwriteGlobs?: string[];
44
- /**
45
- * Object with hooks to disable. The key is a hook type. If key has "true" value, then the generator skips all hooks from the given type. If the value associated with a key is a string with the name of a single hook, then the generator skips only this single hook name. If the value associated with a key is an array of strings, then the generator skips only hooks from the array.
46
- */
47
- disabledHooks?: Record<string, boolean | string | string[]>;
48
- /**
49
- * The registry to use for installing templates/dependencies.
50
- *
51
- * @remarks
52
- * If no value is provided, the default registry configured for the repository will be used.
53
- */
54
- registry?: string | {
55
- url: string;
56
- auth?: string;
57
- token?: string;
58
- };
59
- /**
60
- * Whether to force write files even if they exist.
61
- *
62
- * @defaultValue true
63
- */
64
- forceWrite?: boolean;
65
- /**
66
- * Whether to enable debug mode.
67
- *
68
- * @remarks
69
- * When no value is provided, if `mode` is "development" or `logLevel` is "debug" or "trace", debug mode will be enabled by default.
70
- *
71
- * @defaultValue false
72
- */
73
- debug?: boolean;
74
- /**
75
- * Whether to compile the template before generating files.
76
- *
77
- * @defaultValue false
78
- */
79
- compile?: boolean;
80
- /**
81
- * Optional parameter to map schema references from a base url to a local base folder e.g. url=https://schema.example.com/crm/ folder=./test/docs/ .
82
- */
83
- mapBaseUrlToFolder?: Record<string, string>;
84
- }
85
- type AsyncAPIPluginUserConfig = UserConfig & {
86
- asyncapi?: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">>;
87
- };
88
- type AsyncAPIPluginResolvedConfig = ResolvedConfig & {
89
- asyncapi: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">> & {
90
- document: string | AsyncAPIDocument;
91
- };
92
- };
93
- type AsyncAPIPluginContext<TResolvedConfig extends AsyncAPIPluginResolvedConfig = AsyncAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
94
- declare type __ΩAsyncAPIPluginOptions = any[];
95
- declare type __ΩAsyncAPIPluginUserConfig = any[];
96
- declare type __ΩAsyncAPIPluginResolvedConfig = any[];
97
- declare type __ΩAsyncAPIPluginContext = any[];
98
- //#endregion
99
- export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig };
100
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,qBAAA;;AAAjB;;;;;;;EAuFY,MAAA,CAAA,EAAA,MAAA,GA9EQ,GA8ER,GA9Ec,gBA8EU;EAAG;;;;;;EAO3B,YAAA,EAAA,MAAA;EAA+B;;;;;;;AAS3C;EAC0B,UAAA,CAAA,EAAA,MAAA;EACtB;;;EACa,UAAA,CAAA,EAAA,MAAA;;;;mBArEE;;;;;;;;kBAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAqCK;;KAGX,wBAAA,GAA2B;aAC1B,mBACT,SACE,KAAK;;KAIC,4BAAA,GAA+B;YAC/B,mBACR,SACE,KAAK;uBAEc;;;KAIb,8CACc,+BACtB,gCACA,cAAc"}