@nx-ddd/openapi 19.0.0-preview.10
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/README.md +11 -0
- package/index.d.ts +1 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/lib/openapi.decorator.d.ts +4 -0
- package/lib/openapi.decorator.js +17 -0
- package/lib/openapi.decorator.js.map +1 -0
- package/package.json +14 -0
package/README.md
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/@nx-ddd/openapi/src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './openapi.decorator';
|
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/openapi/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenAPI = void 0;
|
|
4
|
+
exports.OpenApiProperty = OpenApiProperty;
|
|
5
|
+
function OpenApiProperty(options) {
|
|
6
|
+
return (target, propertyKey) => {
|
|
7
|
+
var _a;
|
|
8
|
+
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
9
|
+
const { ApiProperty } = require('@nestjs/swagger');
|
|
10
|
+
ApiProperty(options)(target, propertyKey);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.OpenAPI = {
|
|
15
|
+
Property: OpenApiProperty,
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=openapi.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.decorator.js","sourceRoot":"","sources":["../../../../../packages/@nx-ddd/openapi/src/lib/openapi.decorator.ts"],"names":[],"mappings":";;;AAAA,0CAOC;AAPD,SAAgB,eAAe,CAAC,OAAqE;IACnG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;;QAC7B,IAAI,OAAO,OAAO,KAAK,WAAW,KAAI,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAI,CAAA,EAAE,CAAC;YAC7D,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACnD,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,QAAQ,EAAE,eAAe;CAC1B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nx-ddd/openapi",
|
|
3
|
+
"version": "19.0.0-preview.10",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"homepage": "https://github.com/xx-machina/plaform/tree/main/packages/@nx-ddd/openapi",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/xx-machina/plaform.git"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {},
|
|
12
|
+
"dependencies": {},
|
|
13
|
+
"type": "commonjs"
|
|
14
|
+
}
|