@tc-libs/user 1.20.0 → 1.27.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,10 +1,10 @@
1
1
  {
2
2
  "name": "@tc-libs/user",
3
- "version": "1.20.0",
3
+ "version": "1.27.0",
4
4
  "dependencies": {
5
- "@tc-libs/authentication": "1.20.0",
6
- "@tc-libs/service": "1.20.0",
7
- "@tc-libs/database": "1.20.0"
5
+ "@tc-libs/authentication": "1.27.0",
6
+ "@tc-libs/service": "1.27.0",
7
+ "@tc-libs/database": "1.27.0"
8
8
  },
9
9
  "type": "commonjs",
10
10
  "main": "./src/index.js",
@@ -48,10 +48,10 @@ export interface IUserAgreements {
48
48
  commercial: IFlagAcceptance;
49
49
  }
50
50
  export interface IUserBirthday {
51
- day?: number;
52
- month?: number;
53
- year?: number;
54
- date?: Date;
51
+ day?: number | null;
52
+ month?: number | null;
53
+ year?: number | null;
54
+ date?: Date | null;
55
55
  }
56
56
  /**
57
57
  * Interface representing the structure of user reset password details.
@@ -63,9 +63,9 @@ export interface IUserBirthday {
63
63
  * @property {Date} [ts] - The timestamp when the reset password was requested.
64
64
  */
65
65
  export interface IUserResetPassword {
66
- code?: string;
67
- tmpPassword?: string;
68
- ts?: Date;
66
+ code?: string | null;
67
+ tmpPassword?: string | null;
68
+ ts?: Date | null;
69
69
  }
70
70
  /**
71
71
  * Interface representing the history of user passwords.
@@ -86,8 +86,9 @@ export interface IUserPasswordHistory {
86
86
  * @property {Date} [ts] - The timestamp of the confirmation code.
87
87
  */
88
88
  export interface IUserEmailConfirmation {
89
- code?: string;
90
- ts?: Date;
89
+ code?: string | null;
90
+ redirect?: string | null;
91
+ ts?: Date | null;
91
92
  }
92
93
  /**
93
94
  * Interface representing user login information.
@@ -185,7 +186,7 @@ export interface IBaseUser extends IDatabaseMongoBaseEntityAbstract {
185
186
  resetPassword?: IUserResetPassword;
186
187
  confirmation: IUserEmailConfirmation;
187
188
  passwordHistory?: IUserPasswordHistory[];
188
- login?: IUserLoginInfo;
189
+ login?: IUserLoginInfo | null;
189
190
  social?: IUserSocialInfo;
190
191
  agreements: IUserAgreements;
191
192
  notifications: IUserNotifications;