connectfy-shared 0.0.69 → 0.0.71

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
@@ -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;
@@ -695,14 +696,9 @@ interface IBooleanFieldOptions extends IBaseFieldOptions {
695
696
  }
696
697
  type FieldValidatorOptions = IStringFieldOptions | INumberFieldOptions | IEnumFieldOptions | IDateFieldOptions | IArrayFieldOptions | IObjectFieldOptions | IBooleanFieldOptions;
697
698
 
698
- interface ILoggedUser {
699
- user: IUser;
700
- account: IAccount;
701
- settings: {
702
- generalSettings: IGeneralSettings;
703
- notificationSettings: INotificationSettings;
704
- privacySettings: IPrivacySettings;
705
- };
699
+ interface ILoggedUser extends IUser {
700
+ language: LANGUAGE;
701
+ avatar: string | null;
706
702
  }
707
703
  interface IUser {
708
704
  _id: string;
package/dist/index.d.ts CHANGED
@@ -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;
@@ -695,14 +696,9 @@ interface IBooleanFieldOptions extends IBaseFieldOptions {
695
696
  }
696
697
  type FieldValidatorOptions = IStringFieldOptions | INumberFieldOptions | IEnumFieldOptions | IDateFieldOptions | IArrayFieldOptions | IObjectFieldOptions | IBooleanFieldOptions;
697
698
 
698
- interface ILoggedUser {
699
- user: IUser;
700
- account: IAccount;
701
- settings: {
702
- generalSettings: IGeneralSettings;
703
- notificationSettings: INotificationSettings;
704
- privacySettings: IPrivacySettings;
705
- };
699
+ interface ILoggedUser extends IUser {
700
+ language: LANGUAGE;
701
+ avatar: string | null;
706
702
  }
707
703
  interface IUser {
708
704
  _id: 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.69",
3
+ "version": "0.0.71",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {