@powerlines/plugin-asyncapi 0.1.61 → 0.1.63
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/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +8 -0
- package/dist/powerlines/src/types/config.d.cts +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +347 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +100 -1
- package/dist/types/plugin.d.mts +100 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +9 -9
- package/dist/index-BgAdqTbb.d.mts +0 -1
- package/dist/index-CEgs-Dz2.d.cts +0 -1
- package/dist/plugin-Bvn-he2n.mjs +0 -1
- package/dist/plugin-C4jwwXBD.d.mts +0 -1732
- package/dist/plugin-Cgecba8_.d.cts +0 -1732
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/types-B7VYa_Pp.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,101 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
|
+
import { GeneratorOptions } from "@asyncapi/generator";
|
|
5
|
+
import { AsyncAPIDocument } from "@asyncapi/parser/esm/models/v3/asyncapi";
|
|
6
|
+
|
|
7
|
+
//#region src/types/plugin.d.ts
|
|
8
|
+
interface AsyncAPIPluginOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The path to the AsyncAPI schema file.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This can be a string file path/remote URL string or a {@link URL} object.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue "\{projectRoot\}/schema.yaml"
|
|
16
|
+
*/
|
|
17
|
+
schema?: string | URL | AsyncAPIDocument;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the AsyncAPI template to use.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* This can be a local path or a template package that will be installed by AsyncAPI.
|
|
23
|
+
*/
|
|
24
|
+
templateName: string;
|
|
25
|
+
/**
|
|
26
|
+
* The target directory where the generated files will be written.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* 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.
|
|
30
|
+
*
|
|
31
|
+
* @defaultValue "\{builtinPath\}/asyncapi"
|
|
32
|
+
*/
|
|
33
|
+
outputPath?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
*/
|
|
37
|
+
entrypoint?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Template parameters to pass to the AsyncAPI generator.
|
|
40
|
+
*/
|
|
41
|
+
templateParams?: Record<string, any>;
|
|
42
|
+
/**
|
|
43
|
+
* Glob patterns to prevent overwriting specific files.
|
|
44
|
+
*/
|
|
45
|
+
noOverwriteGlobs?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
*/
|
|
49
|
+
disabledHooks?: Record<string, boolean | string | string[]>;
|
|
50
|
+
/**
|
|
51
|
+
* The registry to use for installing templates/dependencies.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* If no value is provided, the default registry configured for the repository will be used.
|
|
55
|
+
*/
|
|
56
|
+
registry?: string | {
|
|
57
|
+
url: string;
|
|
58
|
+
auth?: string;
|
|
59
|
+
token?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Whether to force write files even if they exist.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue true
|
|
65
|
+
*/
|
|
66
|
+
forceWrite?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether to enable debug mode.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* When no value is provided, if `mode` is "development" or `logLevel` is "debug" or "trace", debug mode will be enabled by default.
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue false
|
|
74
|
+
*/
|
|
75
|
+
debug?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to compile the template before generating files.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue false
|
|
80
|
+
*/
|
|
81
|
+
compile?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* 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/ .
|
|
84
|
+
*/
|
|
85
|
+
mapBaseUrlToFolder?: Record<string, string>;
|
|
86
|
+
}
|
|
87
|
+
type AsyncAPIPluginUserConfig = UserConfig & {
|
|
88
|
+
asyncapi?: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">>;
|
|
89
|
+
};
|
|
90
|
+
type AsyncAPIPluginResolvedConfig = ResolvedConfig & {
|
|
91
|
+
asyncapi: GeneratorOptions & Required<Pick<AsyncAPIPluginOptions, "schema" | "templateName" | "outputPath">> & {
|
|
92
|
+
document: string | AsyncAPIDocument;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type AsyncAPIPluginContext<TResolvedConfig extends AsyncAPIPluginResolvedConfig = AsyncAPIPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
96
|
+
declare type __ΩAsyncAPIPluginOptions = any[];
|
|
97
|
+
declare type __ΩAsyncAPIPluginUserConfig = any[];
|
|
98
|
+
declare type __ΩAsyncAPIPluginResolvedConfig = any[];
|
|
99
|
+
declare type __ΩAsyncAPIPluginContext = any[];
|
|
100
|
+
//#endregion
|
|
2
101
|
export { AsyncAPIPluginContext, AsyncAPIPluginOptions, AsyncAPIPluginResolvedConfig, AsyncAPIPluginUserConfig, __ΩAsyncAPIPluginContext, __ΩAsyncAPIPluginOptions, __ΩAsyncAPIPluginResolvedConfig, __ΩAsyncAPIPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-asyncapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from AsyncAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -119,18 +119,18 @@
|
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@asyncapi/generator": "^2.11.0",
|
|
121
121
|
"@asyncapi/parser": "^3.4.0",
|
|
122
|
-
"@stryke/convert": "^0.6.
|
|
123
|
-
"@stryke/fs": "^0.33.
|
|
124
|
-
"@stryke/http": "^0.12.
|
|
125
|
-
"@stryke/path": "^0.22.
|
|
122
|
+
"@stryke/convert": "^0.6.24",
|
|
123
|
+
"@stryke/fs": "^0.33.20",
|
|
124
|
+
"@stryke/http": "^0.12.14",
|
|
125
|
+
"@stryke/path": "^0.22.11",
|
|
126
126
|
"defu": "^6.1.4",
|
|
127
|
-
"powerlines": "^0.30.
|
|
127
|
+
"powerlines": "^0.30.11"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"@powerlines/nx": "^0.10.
|
|
131
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
130
|
+
"@powerlines/nx": "^0.10.60",
|
|
131
|
+
"@powerlines/plugin-plugin": "^0.12.12",
|
|
132
132
|
"@types/node": "^24.10.1"
|
|
133
133
|
},
|
|
134
134
|
"publishConfig": { "access": "public" },
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
|
|
136
136
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-Bvn-he2n.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|