@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 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,11 @@
1
+ {
2
+ "name": "@tc-libs/error-interface",
3
+ "version": "0.9.0",
4
+ "dependencies": {
5
+ "tslib": "^2.3.0"
6
+ },
7
+ "type": "commonjs",
8
+ "main": "./src/index.js",
9
+ "typings": "./src/index.d.ts",
10
+ "types": "./src/index.d.ts"
11
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ERROR_TYPE {
2
+ DEFAULT = "DEFAULT",
3
+ IMPORT = "IMPORT"
4
+ }
@@ -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
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/error.interface';
2
+ export * from './constants/error.enum.constant';
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
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=error.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.interface.js","sourceRoot":"","sources":["../../../../../packages/error-interface/src/interfaces/error.interface.ts"],"names":[],"mappings":""}