@rxap/schematics-open-api 13.0.0-next.1 → 13.0.0-next.2
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/package.json +5 -10
- package/src/lib/types.d.ts +5 -0
- package/src/lib/types.js +10 -1
- package/src/lib/types.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [13.0.0-next.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.1...@rxap/schematics-open-api@13.0.0-next.2) (2022-05-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/schematics-open-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [13.0.0-next.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.0...@rxap/schematics-open-api@13.0.0-next.1) (2022-03-23)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/schematics-open-api",
|
|
3
|
-
"version": "13.0.0-next.
|
|
3
|
+
"version": "13.0.0-next.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"
|
|
6
|
-
"openapi-types": "^10.0.0",
|
|
7
|
-
"tslib": "^2.3.1",
|
|
8
|
-
"semver": "^7.3.5"
|
|
5
|
+
"tslib": "^2.3.1"
|
|
9
6
|
},
|
|
10
7
|
"schematics": "./schematics/collection.json",
|
|
11
8
|
"ng-update": {
|
|
12
9
|
"migrations": "./migration.json",
|
|
13
10
|
"packageGroup": [
|
|
14
|
-
"@rxap/schematics-open-api"
|
|
11
|
+
"@rxap/schematics-open-api",
|
|
12
|
+
"@rxap/schematics-utilities"
|
|
15
13
|
]
|
|
16
14
|
},
|
|
17
15
|
"publishConfig": {
|
|
@@ -37,9 +35,6 @@
|
|
|
37
35
|
"url": "https://gitlab.com/rxap/plugins/-/issues",
|
|
38
36
|
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
39
37
|
},
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"@rxap/schematics-utilities": "^13.0.0-next.1",
|
|
42
|
-
"ts-morph": "^13.0.3"
|
|
43
|
-
},
|
|
38
|
+
"peerDependencies": {},
|
|
44
39
|
"typings": "./src/index.d.ts"
|
|
45
40
|
}
|
package/src/lib/types.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export interface GenerateParameter<Options extends OpenApiSchemaBase = OpenApiSc
|
|
|
10
10
|
components: OpenAPIV3.ComponentsObject;
|
|
11
11
|
options: Options;
|
|
12
12
|
}
|
|
13
|
+
export interface OperationObjectWithMetadata extends OpenAPIV3.OperationObject {
|
|
14
|
+
path: string;
|
|
15
|
+
method: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function GenerateParameterToOperationObjectWithMetadata(parameter: GenerateParameter): OperationObjectWithMetadata;
|
|
13
18
|
export declare function HasOperationId(operation: OpenAPIV3.OperationObject): operation is OperationObject;
|
|
14
19
|
export declare function AssertWithOperationId(operation: OpenAPIV3.OperationObject): asserts operation is OperationObject;
|
|
15
20
|
export declare type GeneratorFunction<Options extends OpenApiSchemaBase = OpenApiSchemaBase> = (parameters: GenerateParameter<Options>) => Promise<void>;
|
package/src/lib/types.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AssertWithOperationId = exports.HasOperationId = void 0;
|
|
3
|
+
exports.AssertWithOperationId = exports.HasOperationId = exports.GenerateParameterToOperationObjectWithMetadata = void 0;
|
|
4
|
+
function GenerateParameterToOperationObjectWithMetadata(parameter) {
|
|
5
|
+
const blacklist = ['project', 'options', 'components'];
|
|
6
|
+
const copy = {};
|
|
7
|
+
for (const key of Object.keys(parameter).filter(k => !blacklist.includes(k))) {
|
|
8
|
+
copy[key] = parameter[key];
|
|
9
|
+
}
|
|
10
|
+
return copy;
|
|
11
|
+
}
|
|
12
|
+
exports.GenerateParameterToOperationObjectWithMetadata = GenerateParameterToOperationObjectWithMetadata;
|
|
4
13
|
function HasOperationId(operation) {
|
|
5
14
|
return !!operation.operationId;
|
|
6
15
|
}
|
package/src/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/types.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,8CAA8C,CAAC,SAA4B;IACzF,MAAM,SAAS,GAAG,CAAC,SAAS,EAAC,SAAS,EAAC,YAAY,CAAC,CAAC;IACrD,MAAM,IAAI,GAAQ,EAAE,CAAC;IACrB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;QAC5E,IAAI,CAAC,GAAG,CAAC,GAAI,SAAiB,CAAC,GAAG,CAAC,CAAC;KACrC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,wGAOC;AAED,SAAgB,cAAc,CAAC,SAAoC;IACjE,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,CAAA;AAChC,CAAC;AAFD,wCAEC;AAED,SAAgB,qBAAqB,CAAC,SAAoC;IACxE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;QAC9B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;KAC7D;AACH,CAAC;AAJD,sDAIC"}
|