@microsoft/m365-spec-parser 0.2.4-alpha.5577464e2.0 → 0.2.4-alpha.59a7e76c4.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/index.esm2017.js +6 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +21 -6
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +6 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +24 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/src/specParser.d.ts +2 -0
- package/dist/src/utils.d.ts +1 -0
- package/package.json +4 -4
package/dist/src/specParser.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class SpecParser {
|
|
|
12
12
|
private spec;
|
|
13
13
|
private unResolveSpec;
|
|
14
14
|
private isSwaggerFile;
|
|
15
|
+
private readonly refParser;
|
|
15
16
|
private defaultOptions;
|
|
16
17
|
/**
|
|
17
18
|
* Creates a new instance of the SpecParser class.
|
|
@@ -37,6 +38,7 @@ export declare class SpecParser {
|
|
|
37
38
|
* @param filter An array of strings that represent the filters to apply when generating the artifacts. If filter is empty, it would process nothing.
|
|
38
39
|
*/
|
|
39
40
|
getFilteredSpecs(filter: string[], signal?: AbortSignal): Promise<[OpenAPIV3.Document, OpenAPIV3.Document]>;
|
|
41
|
+
private deReferenceSpec;
|
|
40
42
|
/**
|
|
41
43
|
* Generates and update artifacts from the OpenAPI specification file. Generate Adaptive Cards, update Teams app manifest, and generate a new OpenAPI specification file.
|
|
42
44
|
* @param manifestPath A file path of the Teams app manifest file to update.
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class Utils {
|
|
|
6
6
|
static containMultipleMediaTypes(bodyObject: OpenAPIV3.RequestBodyObject | OpenAPIV3.ResponseObject): boolean;
|
|
7
7
|
static isBearerTokenAuth(authScheme: AuthType): boolean;
|
|
8
8
|
static isAPIKeyAuth(authScheme: AuthType): boolean;
|
|
9
|
+
static isAPIKeyAuthButNotInCookie(authScheme: AuthType): boolean;
|
|
9
10
|
static isOAuthWithAuthCodeFlow(authScheme: AuthType): boolean;
|
|
10
11
|
static isNotSupportedAuth(authSchemeArray: AuthInfo[][]): boolean;
|
|
11
12
|
static getAuthArray(securities: OpenAPIV3.SecurityRequirementObject[] | undefined, spec: OpenAPIV3.Document): AuthInfo[][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/m365-spec-parser",
|
|
3
|
-
"version": "0.2.4-alpha.
|
|
3
|
+
"version": "0.2.4-alpha.59a7e76c4.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,8 +38,9 @@
|
|
|
38
38
|
"homepage": "https://github.com/OfficeDev/TeamsFx",
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@apidevtools/json-schema-ref-parser": "^11.7.2",
|
|
41
42
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
42
|
-
"@microsoft/teams-manifest": "0.1.8-alpha.
|
|
43
|
+
"@microsoft/teams-manifest": "0.1.8-alpha.59a7e76c4.0",
|
|
43
44
|
"fs-extra": "^11.2.0",
|
|
44
45
|
"js-yaml": "^4.1.0",
|
|
45
46
|
"openapi-types": "^7.2.3",
|
|
@@ -49,7 +50,6 @@
|
|
|
49
50
|
"access": "public"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@apidevtools/json-schema-ref-parser": "^9.0.6",
|
|
53
53
|
"@apidevtools/openapi-schemas": "2.1.0",
|
|
54
54
|
"@apidevtools/swagger-methods": "3.0.2",
|
|
55
55
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
"npx eslint --cache --fix --quiet"
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "2bff65072cb5793fbfa1d298f26eaec602e20ece"
|
|
151
151
|
}
|