@tc-libs/errors 0.46.0 → 0.48.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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tc-libs/errors",
3
- "version": "0.46.0",
3
+ "version": "0.48.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "@nestjs/common": "^10.0.2",
7
7
  "class-validator": "^0.14.0",
8
- "@tc-libs/error-interface": "0.46.0"
8
+ "@tc-libs/error-interface": "0.48.0"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@types/express": "^4.17.17"
@@ -0,0 +1,13 @@
1
+ import { Api400Error } from './_api.400.error';
2
+ export type Api400PaginationFilterNumberMalformedType = {
3
+ field: string;
4
+ };
5
+ export type Api400PagiantionFilterNumberIllegalOperatorType = Api400PaginationFilterNumberMalformedType & {
6
+ availableOperators: string[];
7
+ };
8
+ export declare class Api400PagiantionFilterNumberMalformedError extends Api400Error {
9
+ constructor(data: Api400PaginationFilterNumberMalformedType);
10
+ }
11
+ export declare class Api400PagiantionFilterNumberIllegalOperatorError extends Api400Error {
12
+ constructor(data: Api400PagiantionFilterNumberIllegalOperatorType);
13
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Api400PagiantionFilterNumberIllegalOperatorError = exports.Api400PagiantionFilterNumberMalformedError = void 0;
4
+ const _api_400_error_1 = require("./_api.400.error");
5
+ class Api400PagiantionFilterNumberMalformedError extends _api_400_error_1.Api400Error {
6
+ constructor(data) {
7
+ super('error.400.pagination_filter_number_malformed', 40091, `Query [${data.field}] must be an object or a single value`);
8
+ this.data = data;
9
+ }
10
+ }
11
+ exports.Api400PagiantionFilterNumberMalformedError = Api400PagiantionFilterNumberMalformedError;
12
+ class Api400PagiantionFilterNumberIllegalOperatorError extends _api_400_error_1.Api400Error {
13
+ constructor(data) {
14
+ super('error.400.pagination_filter_number_malformed', 40091, `Illegal operator for [${data.field}], must be one of [${data.availableOperators.join(', ')}]`);
15
+ this.data = data;
16
+ }
17
+ }
18
+ exports.Api400PagiantionFilterNumberIllegalOperatorError = Api400PagiantionFilterNumberIllegalOperatorError;
19
+ //# sourceMappingURL=api.400.pagination.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.400.pagination.error.js","sourceRoot":"","sources":["../../../../../../packages/errors/src/api/400/api.400.pagination.error.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAW/C,MAAa,0CAA2C,SAAQ,4BAAW;IACzE,YAAY,IAA+C;QACzD,KAAK,CACH,8CAA8C,EAC9C,KAAK,EACL,UAAU,IAAI,CAAC,KAAK,uCAAuC,CAC5D,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AATD,gGASC;AAED,MAAa,gDAAiD,SAAQ,4BAAW;IAC/E,YAAY,IAAqD;QAC/D,KAAK,CACH,8CAA8C,EAC9C,KAAK,EACL,yBACE,IAAI,CAAC,KACP,sBAAsB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAC5D,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAXD,4GAWC"}
@@ -2,3 +2,4 @@ export * from './_api.400.error';
2
2
  export * from './api.400.auth.error';
3
3
  export * from './api.400.generic.error';
4
4
  export * from './api.400.entity.error';
5
+ export * from './api.400.pagination.error';
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./_api.400.error"), exports);
5
5
  tslib_1.__exportStar(require("./api.400.auth.error"), exports);
6
6
  tslib_1.__exportStar(require("./api.400.generic.error"), exports);
7
7
  tslib_1.__exportStar(require("./api.400.entity.error"), exports);
8
+ tslib_1.__exportStar(require("./api.400.pagination.error"), exports);
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/errors/src/api/400/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,+DAAqC;AACrC,kEAAwC;AACxC,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/errors/src/api/400/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,+DAAqC;AACrC,kEAAwC;AACxC,iEAAuC;AACvC,qEAA2C"}