nestjs-typeorm3-kit 0.1.7 → 0.2.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/LICENSE +21 -0
- package/README.md +803 -162
- package/dist/common/decorator/index.d.ts.map +1 -1
- package/dist/common/decorator/index.js +1 -5
- package/dist/common/decorator/index.js.map +1 -1
- package/dist/controller/decorator/index.d.ts.map +1 -1
- package/dist/controller/decorator/index.js +66 -117
- package/dist/controller/decorator/index.js.map +1 -1
- package/dist/helpers/index.d.ts +4 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +81 -11
- package/dist/helpers/index.js.map +1 -1
- package/dist/module/decorator/index.d.ts +1 -1
- package/dist/module/decorator/index.d.ts.map +1 -1
- package/dist/module/decorator/index.js +188 -19
- package/dist/module/decorator/index.js.map +1 -1
- package/dist/repository/config/constants.d.ts +1 -0
- package/dist/repository/config/constants.d.ts.map +1 -1
- package/dist/repository/config/constants.js +2 -1
- package/dist/repository/config/constants.js.map +1 -1
- package/dist/repository/config/types.d.ts +2 -2
- package/dist/repository/config/types.d.ts.map +1 -1
- package/dist/repository/config/types.js +34 -5
- package/dist/repository/config/types.js.map +1 -1
- package/dist/repository/config/utils.d.ts +1 -1
- package/dist/repository/config/utils.d.ts.map +1 -1
- package/dist/repository/config/utils.js +12 -13
- package/dist/repository/config/utils.js.map +1 -1
- package/dist/repository/decorator/index.d.ts +2 -2
- package/dist/repository/decorator/index.d.ts.map +1 -1
- package/dist/repository/decorator/index.js +1 -1
- package/dist/repository/decorator/index.js.map +1 -1
- package/dist/repository/module/index.d.ts +2 -5
- package/dist/repository/module/index.d.ts.map +1 -1
- package/dist/repository/module/index.js +23 -87
- package/dist/repository/module/index.js.map +1 -1
- package/dist/transaction/decorator/index.d.ts +5 -3
- package/dist/transaction/decorator/index.d.ts.map +1 -1
- package/dist/transaction/decorator/index.js +20 -19
- package/dist/transaction/decorator/index.js.map +1 -1
- package/dist/transaction/setup/index.d.ts +8 -3
- package/dist/transaction/setup/index.d.ts.map +1 -1
- package/dist/transaction/setup/index.js +19 -5
- package/dist/transaction/setup/index.js.map +1 -1
- package/dist/validate/decorator/index.d.ts.map +1 -1
- package/dist/validate/decorator/index.js +6 -4
- package/dist/validate/decorator/index.js.map +1 -1
- package/dist/vendor/transactional/common/constants.d.ts +6 -0
- package/dist/vendor/transactional/common/constants.d.ts.map +1 -0
- package/dist/vendor/transactional/common/constants.js +9 -0
- package/dist/vendor/transactional/common/constants.js.map +1 -0
- package/dist/vendor/transactional/common/index.d.ts +26 -0
- package/dist/vendor/transactional/common/index.d.ts.map +1 -0
- package/dist/vendor/transactional/common/index.js +136 -0
- package/dist/vendor/transactional/common/index.js.map +1 -0
- package/dist/vendor/transactional/decorators/transactional.d.ts +3 -0
- package/dist/vendor/transactional/decorators/transactional.d.ts.map +1 -0
- package/dist/vendor/transactional/decorators/transactional.js +20 -0
- package/dist/vendor/transactional/decorators/transactional.js.map +1 -0
- package/dist/vendor/transactional/enums/isolation-level.d.ts +7 -0
- package/dist/vendor/transactional/enums/isolation-level.d.ts.map +1 -0
- package/dist/vendor/transactional/enums/isolation-level.js +11 -0
- package/dist/vendor/transactional/enums/isolation-level.js.map +1 -0
- package/dist/vendor/transactional/enums/propagation.d.ts +10 -0
- package/dist/vendor/transactional/enums/propagation.d.ts.map +1 -0
- package/dist/vendor/transactional/enums/propagation.js +14 -0
- package/dist/vendor/transactional/enums/propagation.js.map +1 -0
- package/dist/vendor/transactional/enums/storage-driver.d.ts +5 -0
- package/dist/vendor/transactional/enums/storage-driver.d.ts.map +1 -0
- package/dist/vendor/transactional/enums/storage-driver.js +9 -0
- package/dist/vendor/transactional/enums/storage-driver.js.map +1 -0
- package/dist/vendor/transactional/errors/transactional.d.ts +4 -0
- package/dist/vendor/transactional/errors/transactional.d.ts.map +1 -0
- package/dist/vendor/transactional/errors/transactional.js +11 -0
- package/dist/vendor/transactional/errors/transactional.js.map +1 -0
- package/dist/vendor/transactional/errors/typeorm-updated-patch.d.ts +5 -0
- package/dist/vendor/transactional/errors/typeorm-updated-patch.d.ts.map +1 -0
- package/dist/vendor/transactional/errors/typeorm-updated-patch.js +11 -0
- package/dist/vendor/transactional/errors/typeorm-updated-patch.js.map +1 -0
- package/dist/vendor/transactional/hooks/index.d.ts +11 -0
- package/dist/vendor/transactional/hooks/index.d.ts.map +1 -0
- package/dist/vendor/transactional/hooks/index.js +79 -0
- package/dist/vendor/transactional/hooks/index.js.map +1 -0
- package/dist/vendor/transactional/index.d.ts +10 -0
- package/dist/vendor/transactional/index.d.ts.map +1 -0
- package/dist/vendor/transactional/index.js +27 -0
- package/dist/vendor/transactional/index.js.map +1 -0
- package/dist/vendor/transactional/storage/driver/async-local-storage/index.d.ts +9 -0
- package/dist/vendor/transactional/storage/driver/async-local-storage/index.d.ts.map +1 -0
- package/dist/vendor/transactional/storage/driver/async-local-storage/index.js +25 -0
- package/dist/vendor/transactional/storage/driver/async-local-storage/index.js.map +1 -0
- package/dist/vendor/transactional/storage/driver/interface.d.ts +10 -0
- package/dist/vendor/transactional/storage/driver/interface.d.ts.map +1 -0
- package/dist/vendor/transactional/storage/driver/interface.js +3 -0
- package/dist/vendor/transactional/storage/driver/interface.js.map +1 -0
- package/dist/vendor/transactional/storage/index.d.ts +3 -0
- package/dist/vendor/transactional/storage/index.d.ts.map +1 -0
- package/dist/vendor/transactional/storage/index.js +6 -0
- package/dist/vendor/transactional/storage/index.js.map +1 -0
- package/dist/vendor/transactional/storage/storage.d.ts +7 -0
- package/dist/vendor/transactional/storage/storage.d.ts.map +1 -0
- package/dist/vendor/transactional/storage/storage.js +21 -0
- package/dist/vendor/transactional/storage/storage.js.map +1 -0
- package/dist/vendor/transactional/transactions/nested-scope.d.ts +12 -0
- package/dist/vendor/transactional/transactions/nested-scope.d.ts.map +1 -0
- package/dist/vendor/transactional/transactions/nested-scope.js +42 -0
- package/dist/vendor/transactional/transactions/nested-scope.js.map +1 -0
- package/dist/vendor/transactional/transactions/run-in-transaction.d.ts +3 -0
- package/dist/vendor/transactional/transactions/run-in-transaction.d.ts.map +1 -0
- package/dist/vendor/transactional/transactions/run-in-transaction.js +9 -0
- package/dist/vendor/transactional/transactions/run-in-transaction.js.map +1 -0
- package/dist/vendor/transactional/transactions/wrap-in-transaction.d.ts +11 -0
- package/dist/vendor/transactional/transactions/wrap-in-transaction.d.ts.map +1 -0
- package/dist/vendor/transactional/transactions/wrap-in-transaction.js +109 -0
- package/dist/vendor/transactional/transactions/wrap-in-transaction.js.map +1 -0
- package/dist/vendor/transactional/utils/index.d.ts +3 -0
- package/dist/vendor/transactional/utils/index.d.ts.map +1 -0
- package/dist/vendor/transactional/utils/index.js +12 -0
- package/dist/vendor/transactional/utils/index.js.map +1 -0
- package/package.json +28 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorator/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,KACF,QAAQ,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,UAkBtD;AAED,wBAAgB,QAAQ,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorator/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,KACF,QAAQ,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,UAkBtD;AAED,wBAAgB,QAAQ,IAAI,cAAc,CAqBzC"}
|
|
@@ -23,11 +23,7 @@ function NewClass() {
|
|
|
23
23
|
return function (target) {
|
|
24
24
|
const original = target;
|
|
25
25
|
function construct(constructor, args) {
|
|
26
|
-
|
|
27
|
-
return constructor.apply(this, args);
|
|
28
|
-
};
|
|
29
|
-
c.prototype = constructor.prototype;
|
|
30
|
-
return new c();
|
|
26
|
+
return Reflect.construct(constructor, args);
|
|
31
27
|
}
|
|
32
28
|
const newConstructor = function (...args) {
|
|
33
29
|
return construct(original, args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/decorator/index.ts"],"names":[],"mappings":";;AAAA,sBAmBC;AAED,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/decorator/index.ts"],"names":[],"mappings":";;AAAA,sBAmBC;AAED,4BAqBC;AA1CD,SAAgB,KAAK;IACnB,OAAO,UAAU,MAAc,EAAE,GAAoB;QACnD,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAEtB,MAAM,MAAM,GAAG,GAAG,EAAE;YAClB,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QACF,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE;YAEtB,GAAG,GAAG,MAAM,IAAI,KAAK,CAAC;QACxB,CAAC,CAAC;QAEF,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YACjC,GAAG,EAAE,MAAM;YACX,GAAG,EAAE,MAAM;YACX,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,QAAQ;IACtB,OAAO,UAAU,MAAgB;QAC/B,MAAM,QAAQ,GAAG,MAAM,CAAC;QAExB,SAAS,SAAS,CAAC,WAAqB,EAAE,IAAW;YAEnD,OAAO,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAC9C,CAAC;QAGD,MAAM,cAAc,GAAQ,UAAU,GAAG,IAAW;YAElD,OAAO,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC,CAAC;QAGF,cAAc,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;QAG9C,OAAO,cAAc,CAAC;IACxB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controller/decorator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controller/decorator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,cAAc,CAAC;AAC1E,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,cAAc,CAAC;AAW1E,wBAAgB,MAAM,CACpB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,gBAAyC,GACjD,eAAe,CAYjB;AAED,wBAAgB,OAAO,CACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,aAAmC,GAC3C,eAAe,CAmBjB;AAED,wBAAgB,MAAM,CACpB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,aAAmC,GAC3C,eAAe,CAmBjB;AAED,wBAAgB,QAAQ,CACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,aAAmC,GAC3C,eAAe,CAmBjB;AAED,wBAAgB,SAAS,CACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,aAAmC,GAC3C,eAAe,CAmBjB"}
|
|
@@ -7,135 +7,84 @@ exports.DefPut = DefPut;
|
|
|
7
7
|
exports.DefPatch = DefPatch;
|
|
8
8
|
exports.DefDelete = DefDelete;
|
|
9
9
|
const common_1 = require("@nestjs/common");
|
|
10
|
-
const constants_1 = require("@nestjs/common/constants");
|
|
11
10
|
const swagger_1 = require("@nestjs/swagger");
|
|
12
11
|
const _types_1 = require("../../@types");
|
|
13
12
|
function DefController(options) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
console.log(JSON.stringify({ modulePath, pathMetadata }));
|
|
19
|
-
console.log('-------------------');
|
|
20
|
-
(0, swagger_1.ApiBearerAuth)()(target);
|
|
21
|
-
(0, common_1.Controller)(options)(target);
|
|
22
|
-
};
|
|
13
|
+
const nestController = options && !Array.isArray(options) && typeof options === 'object'
|
|
14
|
+
? (0, common_1.Controller)(options)
|
|
15
|
+
: (0, common_1.Controller)(options);
|
|
16
|
+
return (0, common_1.applyDecorators)((0, swagger_1.ApiBearerAuth)(), nestController);
|
|
23
17
|
}
|
|
24
18
|
function DefGet(path, options = new _types_1.MethodGetOptions()) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
Object.assign(output, {
|
|
39
|
-
...(0, swagger_1.ApiResponse)({ status: statusCode })(target, propertyKey, descriptor),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return output;
|
|
43
|
-
};
|
|
19
|
+
const { statusCode = common_1.HttpStatus.OK, summary, responseType = undefined } = options || new _types_1.MethodGetOptions();
|
|
20
|
+
const decorators = [
|
|
21
|
+
(0, common_1.HttpCode)(statusCode),
|
|
22
|
+
(0, swagger_1.ApiOperation)({ summary }),
|
|
23
|
+
(0, common_1.Get)(path),
|
|
24
|
+
responseType
|
|
25
|
+
? (0, swagger_1.ApiResponse)({ status: statusCode, type: responseType })
|
|
26
|
+
: (0, swagger_1.ApiResponse)({ status: statusCode }),
|
|
27
|
+
];
|
|
28
|
+
return (0, common_1.applyDecorators)(...decorators);
|
|
44
29
|
}
|
|
45
30
|
function DefPost(path, options = new _types_1.MethodOptions()) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Object.assign(output, {
|
|
60
|
-
...(0, swagger_1.ApiResponse)({ status: statusCode })(target, propertyKey, descriptor),
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
if (bodyType) {
|
|
64
|
-
Object.assign(output, { ...(0, swagger_1.ApiBody)({ type: bodyType })(target, propertyKey, descriptor) });
|
|
65
|
-
}
|
|
66
|
-
return output;
|
|
67
|
-
};
|
|
31
|
+
const { statusCode = common_1.HttpStatus.OK, summary, responseType = undefined, bodyType = undefined, } = options || new _types_1.MethodOptions();
|
|
32
|
+
const decorators = [
|
|
33
|
+
(0, common_1.HttpCode)(statusCode),
|
|
34
|
+
(0, swagger_1.ApiOperation)({ summary }),
|
|
35
|
+
(0, common_1.Post)(path),
|
|
36
|
+
responseType
|
|
37
|
+
? (0, swagger_1.ApiResponse)({ status: statusCode, type: responseType })
|
|
38
|
+
: (0, swagger_1.ApiResponse)({ status: statusCode }),
|
|
39
|
+
];
|
|
40
|
+
if (bodyType) {
|
|
41
|
+
decorators.push((0, swagger_1.ApiBody)({ type: bodyType }));
|
|
42
|
+
}
|
|
43
|
+
return (0, common_1.applyDecorators)(...decorators);
|
|
68
44
|
}
|
|
69
45
|
function DefPut(path, options = new _types_1.MethodOptions()) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Object.assign(output, {
|
|
84
|
-
...(0, swagger_1.ApiResponse)({ status: statusCode })(target, propertyKey, descriptor),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
if (bodyType) {
|
|
88
|
-
Object.assign(output, { ...(0, swagger_1.ApiBody)({ type: bodyType })(target, propertyKey, descriptor) });
|
|
89
|
-
}
|
|
90
|
-
return output;
|
|
91
|
-
};
|
|
46
|
+
const { statusCode = common_1.HttpStatus.OK, summary, responseType = undefined, bodyType = undefined, } = options || new _types_1.MethodOptions();
|
|
47
|
+
const decorators = [
|
|
48
|
+
(0, common_1.HttpCode)(statusCode),
|
|
49
|
+
(0, swagger_1.ApiOperation)({ summary }),
|
|
50
|
+
(0, common_1.Put)(path),
|
|
51
|
+
responseType
|
|
52
|
+
? (0, swagger_1.ApiResponse)({ status: statusCode, type: responseType })
|
|
53
|
+
: (0, swagger_1.ApiResponse)({ status: statusCode }),
|
|
54
|
+
];
|
|
55
|
+
if (bodyType) {
|
|
56
|
+
decorators.push((0, swagger_1.ApiBody)({ type: bodyType }));
|
|
57
|
+
}
|
|
58
|
+
return (0, common_1.applyDecorators)(...decorators);
|
|
92
59
|
}
|
|
93
60
|
function DefPatch(path, options = new _types_1.MethodOptions()) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Object.assign(output, {
|
|
108
|
-
...(0, swagger_1.ApiResponse)({ status: statusCode })(target, propertyKey, descriptor),
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
if (bodyType) {
|
|
112
|
-
Object.assign(output, { ...(0, swagger_1.ApiBody)({ type: bodyType })(target, propertyKey, descriptor) });
|
|
113
|
-
}
|
|
114
|
-
return output;
|
|
115
|
-
};
|
|
61
|
+
const { statusCode = common_1.HttpStatus.OK, summary, responseType = undefined, bodyType = undefined, } = options || new _types_1.MethodOptions();
|
|
62
|
+
const decorators = [
|
|
63
|
+
(0, common_1.HttpCode)(statusCode),
|
|
64
|
+
(0, swagger_1.ApiOperation)({ summary }),
|
|
65
|
+
(0, common_1.Patch)(path),
|
|
66
|
+
responseType
|
|
67
|
+
? (0, swagger_1.ApiResponse)({ status: statusCode, type: responseType })
|
|
68
|
+
: (0, swagger_1.ApiResponse)({ status: statusCode }),
|
|
69
|
+
];
|
|
70
|
+
if (bodyType) {
|
|
71
|
+
decorators.push((0, swagger_1.ApiBody)({ type: bodyType }));
|
|
72
|
+
}
|
|
73
|
+
return (0, common_1.applyDecorators)(...decorators);
|
|
116
74
|
}
|
|
117
75
|
function DefDelete(path, options = new _types_1.MethodOptions()) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Object.assign(output, {
|
|
132
|
-
...(0, swagger_1.ApiResponse)({ status: statusCode })(target, propertyKey, descriptor),
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
if (bodyType) {
|
|
136
|
-
Object.assign(output, { ...(0, swagger_1.ApiBody)({ type: bodyType })(target, propertyKey, descriptor) });
|
|
137
|
-
}
|
|
138
|
-
return output;
|
|
139
|
-
};
|
|
76
|
+
const { statusCode = common_1.HttpStatus.OK, summary, responseType = undefined, bodyType = undefined, } = options || new _types_1.MethodOptions();
|
|
77
|
+
const decorators = [
|
|
78
|
+
(0, common_1.HttpCode)(statusCode),
|
|
79
|
+
(0, swagger_1.ApiOperation)({ summary }),
|
|
80
|
+
(0, common_1.Delete)(path),
|
|
81
|
+
responseType
|
|
82
|
+
? (0, swagger_1.ApiResponse)({ status: statusCode, type: responseType })
|
|
83
|
+
: (0, swagger_1.ApiResponse)({ status: statusCode }),
|
|
84
|
+
];
|
|
85
|
+
if (bodyType) {
|
|
86
|
+
decorators.push((0, swagger_1.ApiBody)({ type: bodyType }));
|
|
87
|
+
}
|
|
88
|
+
return (0, common_1.applyDecorators)(...decorators);
|
|
140
89
|
}
|
|
141
90
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controller/decorator/index.ts"],"names":[],"mappings":";;AAiBA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controller/decorator/index.ts"],"names":[],"mappings":";;AAiBA,sCAQC;AAED,wBAeC;AAED,0BAsBC;AAED,wBAsBC;AAED,4BAsBC;AAED,8BAsBC;AA1ID,2CAWwB;AACxB,6CAAoF;AACpF,yCAA+D;AAI/D,SAAgB,aAAa,CAC3B,OAA+C;IAE/C,MAAM,cAAc,GAClB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,KAAK,QAAQ;QAC/D,CAAC,CAAC,IAAA,mBAAU,EAAC,OAAO,CAAC;QACrB,CAAC,CAAC,IAAA,mBAAU,EAAC,OAAwC,CAAC,CAAC;IAC3D,OAAO,IAAA,wBAAe,EAAC,IAAA,uBAAa,GAAE,EAAE,cAAc,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,MAAM,CACpB,IAAwB,EACxB,UAA4B,IAAI,yBAAgB,EAAE;IAElD,MAAM,EAAE,UAAU,GAAG,mBAAU,CAAC,EAAE,EAAE,OAAO,EAAE,YAAY,GAAG,SAAS,EAAE,GACrE,OAAO,IAAI,IAAI,yBAAgB,EAAE,CAAC;IACpC,MAAM,UAAU,GAAgE;QAC9E,IAAA,iBAAQ,EAAC,UAAU,CAAC;QACpB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,CAAC;QACzB,IAAA,YAAG,EAAC,IAAI,CAAC;QACT,YAAY;YACV,CAAC,CAAC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YACzD,CAAC,CAAC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;KACxC,CAAC;IACF,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACxC,CAAC;AAED,S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SAAS,EACxB,QAAQ,GAAG,SAAS,GACrB,GAAG,OAAO,IAAI,IAAI,sBAAa,EAAE,CAAC;IACnC,MAAM,UAAU,GAAgE;QAC9E,IAAA,iBAAQ,EAAC,UAAU,CAAC;QACpB,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,CAAC;QACzB,IAAA,eAAM,EAAC,IAAI,CAAC;QACZ,YAAY;YACV,CAAC,CAAC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YACzD,CAAC,CAAC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;KACxC,CAAC;IACF,IAAI,QAAQ,EAAE,CAAC;QACb,UAAU,CAAC,IAAI,CAAC,IAAA,iBAAO,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { INestApplication } from "@nestjs/common";
|
|
2
|
+
import type { SwaggerDocumentOptions } from "@nestjs/swagger";
|
|
2
3
|
import { OpenAPIObject } from "@nestjs/swagger/dist/interfaces/open-api-spec.interface";
|
|
3
4
|
export declare const configSwaggerDocument: (app: INestApplication, document: OpenAPIObject, swaggerPath?: string) => void;
|
|
5
|
+
export declare function createScopedSwaggerDocument(app: INestApplication, config: Omit<OpenAPIObject, "paths">, options?: SwaggerDocumentOptions): OpenAPIObject;
|
|
6
|
+
import { Type } from "@nestjs/common";
|
|
7
|
+
export declare const lazyLoadClasses: (baseDir: string, suffixes: string[], additionalClasses?: Type<any>[]) => Type<any>[];
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EACL,aAAa,EAEd,MAAM,yDAAyD,CAAC;AAGjE,eAAO,MAAM,qBAAqB,GAChC,KAAK,gBAAgB,EACrB,UAAU,aAAa,EACvB,cAAa,MAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,aAAa,EAEd,MAAM,yDAAyD,CAAC;AAGjE,eAAO,MAAM,qBAAqB,GAChC,KAAK,gBAAgB,EACrB,UAAU,aAAa,EACvB,cAAa,MAAkB,SAqChC,CAAC;AAOF,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,gBAAgB,EACrB,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,EACpC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,aAAa,CAwBf;AAID,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAatC,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,UAAU,MAAM,EAAE,EAClB,oBAAmB,IAAI,CAAC,GAAG,CAAC,EAAO,KAClC,IAAI,CAAC,GAAG,CAAC,EAoCX,CAAC"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,28 +1,98 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.configSwaggerDocument = void 0;
|
|
3
|
+
exports.lazyLoadClasses = exports.configSwaggerDocument = void 0;
|
|
4
|
+
exports.createScopedSwaggerDocument = createScopedSwaggerDocument;
|
|
5
|
+
const core_1 = require("@nestjs/core");
|
|
4
6
|
const swagger_1 = require("@nestjs/swagger");
|
|
5
7
|
const class_validator_1 = require("class-validator");
|
|
6
8
|
const class_validator_jsonschema_1 = require("class-validator-jsonschema");
|
|
7
9
|
const configSwaggerDocument = (app, document, swaggerPath = "swagger") => {
|
|
8
|
-
|
|
9
|
-
.validationMetadatas;
|
|
10
|
+
document.components = document.components || {};
|
|
10
11
|
const targetSchemas = document.components.schemas || {};
|
|
11
|
-
const schemasBinding = (0, class_validator_jsonschema_1.validationMetadatasToSchemas)(
|
|
12
|
+
const schemasBinding = (0, class_validator_jsonschema_1.validationMetadatasToSchemas)({
|
|
13
|
+
classValidatorMetadataStorage: (0, class_validator_1.getMetadataStorage)(),
|
|
14
|
+
refPointerPrefix: "#/components/schemas/",
|
|
15
|
+
}) || {};
|
|
12
16
|
Object.keys(schemasBinding).forEach((key) => {
|
|
13
17
|
const value = schemasBinding[key];
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
const targetValue = targetSchemas[key];
|
|
19
|
+
if (!targetValue) {
|
|
20
|
+
targetSchemas[key] = value;
|
|
21
|
+
return;
|
|
16
22
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Object.assign(targetValue.properties, value.properties);
|
|
20
|
-
targetValue.required = value.required;
|
|
21
|
-
Object.assign(targetSchemas, { key: targetValue });
|
|
23
|
+
if ("$ref" in targetValue) {
|
|
24
|
+
return;
|
|
22
25
|
}
|
|
26
|
+
const properties = (targetValue.properties = targetValue.properties || {});
|
|
27
|
+
Object.keys(value.properties || {}).forEach((prop) => {
|
|
28
|
+
if (!(prop in properties))
|
|
29
|
+
properties[prop] = value.properties[prop];
|
|
30
|
+
});
|
|
31
|
+
const required = new Set([
|
|
32
|
+
...(targetValue.required || []),
|
|
33
|
+
...(value.required || []),
|
|
34
|
+
]);
|
|
35
|
+
if (required.size)
|
|
36
|
+
targetValue.required = [...required];
|
|
23
37
|
});
|
|
24
38
|
document.components.schemas = Object.assign({}, targetSchemas);
|
|
25
39
|
swagger_1.SwaggerModule.setup(swaggerPath, app, document);
|
|
26
40
|
};
|
|
27
41
|
exports.configSwaggerDocument = configSwaggerDocument;
|
|
42
|
+
function createScopedSwaggerDocument(app, config, options) {
|
|
43
|
+
var _a;
|
|
44
|
+
if (!((_a = options === null || options === void 0 ? void 0 : options.include) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
45
|
+
return swagger_1.SwaggerModule.createDocument(app, config, options);
|
|
46
|
+
}
|
|
47
|
+
const included = new Set(options.include);
|
|
48
|
+
for (const module of app.get(core_1.ModulesContainer).values()) {
|
|
49
|
+
const moduleType = module.metatype;
|
|
50
|
+
if (typeof moduleType !== "function" || included.has(moduleType)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
let prototype = Object.getPrototypeOf(moduleType.prototype);
|
|
54
|
+
while (prototype) {
|
|
55
|
+
if (included.has(prototype.constructor)) {
|
|
56
|
+
included.add(moduleType);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return swagger_1.SwaggerModule.createDocument(app, config, {
|
|
63
|
+
...options,
|
|
64
|
+
include: [...included],
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const path_1 = require("path");
|
|
68
|
+
const fs_1 = require("fs");
|
|
69
|
+
const lazyLoadClasses = (baseDir, suffixes, additionalClasses = []) => {
|
|
70
|
+
const results = [...additionalClasses];
|
|
71
|
+
const subDirs = (0, fs_1.readdirSync)(baseDir);
|
|
72
|
+
for (const sub of subDirs) {
|
|
73
|
+
const subPath = (0, path_1.join)(baseDir, sub);
|
|
74
|
+
if (!(0, fs_1.statSync)(subPath).isDirectory())
|
|
75
|
+
continue;
|
|
76
|
+
const files = (0, fs_1.readdirSync)(subPath);
|
|
77
|
+
for (const file of files) {
|
|
78
|
+
const isMatch = suffixes.some((suffix) => file.endsWith(`${suffix}.ts`) || file.endsWith(`${suffix}.js`));
|
|
79
|
+
if (!isMatch)
|
|
80
|
+
continue;
|
|
81
|
+
const fullPath = (0, path_1.join)(subPath, file);
|
|
82
|
+
const filePathWithoutExt = fullPath
|
|
83
|
+
.replace(/\.ts$/, "")
|
|
84
|
+
.replace(/\.js$/, "");
|
|
85
|
+
try {
|
|
86
|
+
const module = require(filePathWithoutExt);
|
|
87
|
+
const exportedClass = Object.values(module)[0];
|
|
88
|
+
results.push(exportedClass);
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
console.warn(`⚠️ Failed to load class from: ${fullPath}`, error);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return results;
|
|
96
|
+
};
|
|
97
|
+
exports.lazyLoadClasses = lazyLoadClasses;
|
|
28
98
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;AA0DA,kEA4BC;AArFD,uCAAgD;AAChD,6CAAgD;AAEhD,qDAAqD;AAKrD,2EAA0E;AAEnE,MAAM,qBAAqB,GAAG,CACnC,GAAqB,EACrB,QAAuB,EACvB,cAAsB,SAAS,EAC/B,EAAE;IAIF,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC;IAChD,MAAM,aAAa,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;IACxD,MAAM,cAAc,GAClB,IAAA,yDAA4B,EAAC;QAC3B,6BAA6B,EAAE,IAAA,oCAAkB,GAAE;QACnD,gBAAgB,EAAE,uBAAuB;KAC1C,CAAC,IAAI,EAAE,CAAC;IAEX,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1C,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAiB,CAAC;QAClD,MAA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
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/decorator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,cAAc,EAAQ,MAAM,gBAAgB,CAAC;AAKvF,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAyND,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,oBAAoB,GAAG,cAAc,CA+BhF"}
|