connectfy-shared 0.0.68 → 0.0.70

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/dist/index.cjs CHANGED
@@ -9785,7 +9785,8 @@ var ExceptionMessages = {
9785
9785
  field,
9786
9786
  validValues: validValues.join(", "),
9787
9787
  lng: lang
9788
- })
9788
+ }),
9789
+ INVALID_LENGTH_MESSAGE: (field, lang = "en" /* EN */) => i18n_default.t("exception_messages.invalid_length", { field, lng: lang })
9789
9790
  };
9790
9791
  var ExceptionTypes = {
9791
9792
  INTERNAL_SERVER_ERROR: "InternalServerError",
package/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@ import * as rxjs from 'rxjs';
8
8
  import { Observable } from 'rxjs';
9
9
 
10
10
  declare class BaseException extends RpcException {
11
- constructor(messageOrFunc?: string | ((...args: any[]) => string), statusCode?: HttpStatus, error?: string, additional?: Record<string, any>);
11
+ constructor(messageOrFunc?: string | string[] | ((...args: any[]) => string | string[]), statusCode?: HttpStatus, error?: string, additional?: Record<string, any>);
12
12
  }
13
13
 
14
14
  interface ICountry {
@@ -189,6 +189,7 @@ declare const ExceptionMessages: {
189
189
  BOOLEAN_TYPE_MESSAGE: (field: string, lang?: LANGUAGE) => string;
190
190
  BOOLEAN_INVALID_MESSAGE: (field: string, lang?: LANGUAGE) => string;
191
191
  ENUM_INVALID_MESSAGE: (field: string, validValues: any[], lang?: LANGUAGE) => string;
192
+ INVALID_LENGTH_MESSAGE: (field: string, lang?: LANGUAGE) => string;
192
193
  };
193
194
  declare const ExceptionTypes: {
194
195
  INTERNAL_SERVER_ERROR: string;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import * as rxjs from 'rxjs';
8
8
  import { Observable } from 'rxjs';
9
9
 
10
10
  declare class BaseException extends RpcException {
11
- constructor(messageOrFunc?: string | ((...args: any[]) => string), statusCode?: HttpStatus, error?: string, additional?: Record<string, any>);
11
+ constructor(messageOrFunc?: string | string[] | ((...args: any[]) => string | string[]), statusCode?: HttpStatus, error?: string, additional?: Record<string, any>);
12
12
  }
13
13
 
14
14
  interface ICountry {
@@ -189,6 +189,7 @@ declare const ExceptionMessages: {
189
189
  BOOLEAN_TYPE_MESSAGE: (field: string, lang?: LANGUAGE) => string;
190
190
  BOOLEAN_INVALID_MESSAGE: (field: string, lang?: LANGUAGE) => string;
191
191
  ENUM_INVALID_MESSAGE: (field: string, validValues: any[], lang?: LANGUAGE) => string;
192
+ INVALID_LENGTH_MESSAGE: (field: string, lang?: LANGUAGE) => string;
192
193
  };
193
194
  declare const ExceptionTypes: {
194
195
  INTERNAL_SERVER_ERROR: string;
package/dist/index.mjs CHANGED
@@ -9700,7 +9700,8 @@ var ExceptionMessages = {
9700
9700
  field,
9701
9701
  validValues: validValues.join(", "),
9702
9702
  lng: lang
9703
- })
9703
+ }),
9704
+ INVALID_LENGTH_MESSAGE: (field, lang = "en" /* EN */) => i18n_default.t("exception_messages.invalid_length", { field, lng: lang })
9704
9705
  };
9705
9706
  var ExceptionTypes = {
9706
9707
  INTERNAL_SERVER_ERROR: "InternalServerError",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectfy-shared",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {