@tc-libs/user 1.14.0 → 1.15.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.14.0",
3
+ "version": "1.15.0",
4
4
  "dependencies": {
5
- "@tc-libs/authentication": "1.14.0",
6
- "@tc-libs/service": "1.14.0",
7
- "@tc-libs/database": "1.14.0"
5
+ "@tc-libs/authentication": "1.15.0",
6
+ "@tc-libs/service": "1.15.0",
7
+ "@tc-libs/database": "1.15.0"
8
8
  },
9
9
  "type": "commonjs",
10
10
  "main": "./src/index.js",
@@ -6,6 +6,7 @@ export declare enum AUTH_PROVIDERS {
6
6
  GH = "github",
7
7
  LI = "linkedin",
8
8
  AM = "amazon",
9
+ AP = "apple",
9
10
  GO = "google",
10
11
  BB = "bitbucket",
11
12
  MI = "microsoft",
@@ -122,15 +123,16 @@ export interface IUserLoginInfo {
122
123
  * @property {string} paypalId - The user's PayPal ID.
123
124
  */
124
125
  export interface IUserSocialInfo {
125
- facebookId: string;
126
- twitterId: string;
127
- githubId: string;
128
- linkedinId: string;
129
- amazonId: string;
130
- googleId: string;
131
- bitbucketId: string;
132
- microsoftId: string;
133
- paypalId: string;
126
+ facebookId?: string;
127
+ appleId?: string;
128
+ twitterId?: string;
129
+ githubId?: string;
130
+ linkedinId?: string;
131
+ amazonId?: string;
132
+ googleId?: string;
133
+ bitbucketId?: string;
134
+ microsoftId?: string;
135
+ paypalId?: string;
134
136
  }
135
137
  /**
136
138
  * Interface representing the flags associated with a user.
@@ -188,5 +190,5 @@ export interface IBaseUser extends IDatabaseMongoBaseEntityAbstract {
188
190
  agreements: IUserAgreements;
189
191
  notifications: IUserNotifications;
190
192
  birthday?: IUserBirthday;
191
- authProviders: string[];
193
+ authProviders: AUTH_PROVIDERS[];
192
194
  }
@@ -9,6 +9,7 @@ var AUTH_PROVIDERS;
9
9
  AUTH_PROVIDERS["GH"] = "github";
10
10
  AUTH_PROVIDERS["LI"] = "linkedin";
11
11
  AUTH_PROVIDERS["AM"] = "amazon";
12
+ AUTH_PROVIDERS["AP"] = "apple";
12
13
  AUTH_PROVIDERS["GO"] = "google";
13
14
  AUTH_PROVIDERS["BB"] = "bitbucket";
14
15
  AUTH_PROVIDERS["MI"] = "microsoft";
@@ -1 +1 @@
1
- {"version":3,"file":"user.base.interface.js","sourceRoot":"","sources":["../../../../../packages/user/src/interfaces/user.base.interface.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,gCAAc,CAAA;IACd,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,kCAAgB,CAAA;IAChB,kCAAgB,CAAA;IAChB,+BAAa,CAAA;AACf,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
1
+ {"version":3,"file":"user.base.interface.js","sourceRoot":"","sources":["../../../../../packages/user/src/interfaces/user.base.interface.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,gCAAc,CAAA;IACd,+BAAa,CAAA;IACb,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,8BAAY,CAAA;IACZ,+BAAa,CAAA;IACb,kCAAgB,CAAA;IAChB,kCAAgB,CAAA;IAChB,+BAAa,CAAA;AACf,CAAC,EAZW,cAAc,8BAAd,cAAc,QAYzB"}