nicot 1.0.49 → 1.0.50
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ApiError: (status: number, description: string) => MethodDecorator & ClassDecorator;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiError = void 0;
|
|
4
|
+
const dto_1 = require("../dto");
|
|
5
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
+
const ApiError = (status, description) => (0, swagger_1.ApiResponse)({ status, type: dto_1.BlankReturnMessageDto, description });
|
|
7
|
+
exports.ApiError = ApiError;
|
|
8
|
+
//# sourceMappingURL=api-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-error.js","sourceRoot":"","sources":["../../../src/utility/api-error.ts"],"names":[],"mappings":";;;AAAA,gCAA+C;AAC/C,6CAA8C;AAEvC,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,WAAmB,EAAE,EAAE,CAC9D,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAqB,EAAE,WAAW,EAAE,CAAC,CAAC;AADvD,QAAA,QAAQ,YAC+C"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./api-error"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B"}
|
package/package.json
CHANGED