@tc-libs/error-interface 0.9.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/README.md +11 -0
- package/package.json +11 -0
- package/src/constants/error.enum.constant.d.ts +4 -0
- package/src/constants/error.enum.constant.js +9 -0
- package/src/constants/error.enum.constant.js.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +6 -0
- package/src/index.js.map +1 -0
- package/src/interfaces/error.interface.d.ts +13 -0
- package/src/interfaces/error.interface.js +3 -0
- package/src/interfaces/error.interface.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# error-interface
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Building
|
|
6
|
+
|
|
7
|
+
Run `nx build error-interface` to build the library.
|
|
8
|
+
|
|
9
|
+
## Running unit tests
|
|
10
|
+
|
|
11
|
+
Run `nx test error-interface` to execute the unit tests via [Jest](https://jestjs.io).
|
package/package.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERROR_TYPE = void 0;
|
|
4
|
+
var ERROR_TYPE;
|
|
5
|
+
(function (ERROR_TYPE) {
|
|
6
|
+
ERROR_TYPE["DEFAULT"] = "DEFAULT";
|
|
7
|
+
ERROR_TYPE["IMPORT"] = "IMPORT";
|
|
8
|
+
})(ERROR_TYPE || (exports.ERROR_TYPE = ERROR_TYPE = {}));
|
|
9
|
+
//# sourceMappingURL=error.enum.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.enum.constant.js","sourceRoot":"","sources":["../../../../../packages/error-interface/src/constants/error.enum.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./interfaces/error.interface"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./constants/error.enum.constant"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/error-interface/src/index.ts"],"names":[],"mappings":";;;AAAA,uEAA6C;AAC7C,0EAAgD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ValidationError } from 'class-validator';
|
|
2
|
+
export interface IErrors {
|
|
3
|
+
readonly message: string;
|
|
4
|
+
readonly property: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IErrorsImport {
|
|
7
|
+
row: number;
|
|
8
|
+
file?: string;
|
|
9
|
+
errors: IErrors[];
|
|
10
|
+
}
|
|
11
|
+
export interface IValidationErrorImport extends Omit<IErrorsImport, 'errors'> {
|
|
12
|
+
errors: ValidationError[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.interface.js","sourceRoot":"","sources":["../../../../../packages/error-interface/src/interfaces/error.interface.ts"],"names":[],"mappings":""}
|