@microsoft/m365-spec-parser 0.2.5-alpha.66ee22767.0 → 0.2.5-alpha.9303bbfbd.0
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/src/specParser.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare class SpecParser {
|
|
|
12
12
|
private spec;
|
|
13
13
|
private unResolveSpec;
|
|
14
14
|
private isSwaggerFile;
|
|
15
|
-
private readonly refParser;
|
|
16
15
|
private defaultOptions;
|
|
17
16
|
/**
|
|
18
17
|
* Creates a new instance of the SpecParser class.
|
|
@@ -55,6 +54,12 @@ export declare class SpecParser {
|
|
|
55
54
|
* @param adaptiveCardFolder Folder path where the Adaptive Card files will be generated. If not specified or empty, Adaptive Card files will not be generated.
|
|
56
55
|
*/
|
|
57
56
|
generate(manifestPath: string, filter: string[], outputSpecPath: string, adaptiveCardFolder?: string, signal?: AbortSignal): Promise<GenerateResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Generates and update artifacts from the OpenAPI specification file. Generate Adaptive Cards, update Teams app manifest, and generate a new OpenAPI specification file.
|
|
59
|
+
* @param pluginFilePath A file path of the plugin manifest file to update.
|
|
60
|
+
* @param filter An array of strings that represent the filters to apply when generating the artifacts. If filter is empty, it would process nothing.
|
|
61
|
+
*/
|
|
62
|
+
generateAdaptiveCardInPlugin(pluginFilePath: string, filter: string[], signal?: AbortSignal): Promise<void>;
|
|
58
63
|
private loadSpec;
|
|
59
64
|
private getAPIs;
|
|
60
65
|
private getValidator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/m365-spec-parser",
|
|
3
|
-
"version": "0.2.5-alpha.
|
|
3
|
+
"version": "0.2.5-alpha.9303bbfbd.0",
|
|
4
4
|
"description": "OpenAPI specification files Parser for M365 Apps",
|
|
5
5
|
"main": "dist/index.node.cjs.js",
|
|
6
6
|
"browser": "dist/index.esm2017.js",
|
|
@@ -38,9 +38,8 @@
|
|
|
38
38
|
"homepage": "https://github.com/OfficeDev/TeamsFx",
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@apidevtools/
|
|
42
|
-
"@
|
|
43
|
-
"@microsoft/teams-manifest": "0.1.9-alpha.66ee22767.0",
|
|
41
|
+
"@apidevtools/swagger-parser": "^10.1.1",
|
|
42
|
+
"@microsoft/teams-manifest": "0.1.9-alpha.9303bbfbd.0",
|
|
44
43
|
"fs-extra": "^11.2.0",
|
|
45
44
|
"js-yaml": "^4.1.0",
|
|
46
45
|
"openapi-types": "^7.2.3",
|
|
@@ -118,6 +117,7 @@
|
|
|
118
117
|
"nise": "^5.1.4",
|
|
119
118
|
"nyc": "^15.1.0",
|
|
120
119
|
"object-inspect": "1.13.1",
|
|
120
|
+
"path-browserify": "^1.0.1",
|
|
121
121
|
"pathval": "^2.0.0",
|
|
122
122
|
"prettier": "^2.4.1",
|
|
123
123
|
"process": "^0.11.10",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
"npx eslint --cache --fix --quiet"
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "c1a76a2e250dd69ea927878b71219c80e9311385"
|
|
151
151
|
}
|