corede-common
Advanced tools
Comparing version 5.1.55 to 5.1.56
@@ -8,4 +8,4 @@ "use strict"; | ||
return factories_1.NameFactory.getFullName({ | ||
name: params.user?.personalInformation.name, | ||
surname: params.user?.personalInformation.surname, | ||
name: params.user?.name, | ||
surname: params.user?.surname, | ||
defaultName: params.defaultName, | ||
@@ -12,0 +12,0 @@ }); |
@@ -7,6 +7,3 @@ export { ReferralStatus } from "./enums/referral/ReferralStatus"; | ||
export { IUser } from "./interfaces/user.subdomain/user/IUser"; | ||
export { IPersonalInformation } from "./interfaces/user.subdomain/user/IPersonalInformation"; | ||
export { IUserContact } from "./interfaces/user.subdomain/user/IUserContact"; | ||
export { IUserSettings } from "./interfaces/user.subdomain/user/IUserSettings"; | ||
export { UserNameFactory } from "./factories/user-name.factory"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import { Gender, Language } from "../../../../../../enums"; | ||
import { IEntity } from "../../../../../../interfaces/entity.interface"; | ||
@@ -9,15 +10,22 @@ import { IHasTimeStamp } from "../../../../../../interfaces/has-timestamp.interface"; | ||
import { ITwoFactorAuthMeans } from "../auth/ITwoFactorAuthMeans"; | ||
import { IVerifiedContact } from "../auth/IVerifiedContact"; | ||
import { IPersonalInformation } from "./IPersonalInformation"; | ||
import { IUserContact } from "./IUserContact"; | ||
export interface IUser extends IEntity, IHasTimeStamp, IHasOptionalUserAudit { | ||
role: string; | ||
personalInformation: IPersonalInformation; | ||
contact: IUserContact; | ||
name?: string; | ||
surname?: string; | ||
birthDate?: Date; | ||
gender?: Gender; | ||
address?: string; | ||
profileImageUrl?: string; | ||
backgroundImageUrl?: string; | ||
description?: string; | ||
password?: string; | ||
status?: UserConfirmationStatus; | ||
languageCode?: string; | ||
countryCode?: string; | ||
country?: string; | ||
city?: string; | ||
language?: Language; | ||
email: string; | ||
emailVerified: boolean; | ||
phoneNumber?: string; | ||
phoneNumberVerified?: boolean; | ||
twoFactorAuth: ITwoFactorAuthMeans; | ||
verifiedContact: IVerifiedContact; | ||
lastLoginDate?: Date; | ||
@@ -24,0 +32,0 @@ googleOAuthData?: IGoogleOAuthData; |
@@ -1,7 +0,1 @@ | ||
export interface IUserContact { | ||
phoneNumber?: string; | ||
phoneNumberVerified?: boolean; | ||
email: string; | ||
emailVerified: boolean; | ||
} | ||
export interface IUpdateContactPhoneNumber { | ||
@@ -8,0 +2,0 @@ phoneNumber?: string; |
{ | ||
"name": "corede-common", | ||
"version": "5.1.55", | ||
"version": "5.1.56", | ||
"description": "The common utility functions, interfaces, types etc.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -13,4 +13,4 @@ import { NameFactory } from "../../../../factories"; | ||
return NameFactory.getFullName({ | ||
name: params.user?.personalInformation.name, | ||
surname: params.user?.personalInformation.surname, | ||
name: params.user?.name, | ||
surname: params.user?.surname, | ||
defaultName: params.defaultName, | ||
@@ -17,0 +17,0 @@ }); |
@@ -15,5 +15,2 @@ //////////////////////////////////////////////////////////////// | ||
export { IUser } from "./interfaces/user.subdomain/user/IUser"; | ||
export { IPersonalInformation } from "./interfaces/user.subdomain/user/IPersonalInformation"; | ||
export { IUserContact } from "./interfaces/user.subdomain/user/IUserContact"; | ||
export { IUserSettings } from "./interfaces/user.subdomain/user/IUserSettings"; | ||
@@ -20,0 +17,0 @@ //////////////////////////////////////////////////////////////// |
@@ -1,8 +0,5 @@ | ||
import { | ||
IEntity, | ||
} from "../../../../../../interfaces/entity.interface"; | ||
import { Gender, Language } from "../../../../../../enums"; | ||
import { IEntity } from "../../../../../../interfaces/entity.interface"; | ||
import { IHasTimeStamp } from "../../../../../../interfaces/has-timestamp.interface"; | ||
import { | ||
IHasOptionalUserAudit, | ||
} from "../../../../../../interfaces/has-user-audit.interface"; | ||
import { IHasOptionalUserAudit } from "../../../../../../interfaces/has-user-audit.interface"; | ||
import IFacebookOAuthData from "../../../../../auth/oauth/interfaces/oAuthData/IFacebookOAuthData"; | ||
@@ -14,20 +11,31 @@ import IGoogleOAuthData from "../../../../../auth/oauth/interfaces/oAuthData/IGoogleOAuthData"; | ||
import { IVerifiedContact } from "../auth/IVerifiedContact"; | ||
import { | ||
IPersonalInformation, | ||
} from "./IPersonalInformation"; | ||
import { | ||
IUserContact, | ||
} from "./IUserContact"; | ||
export interface IUser extends IEntity, IHasTimeStamp, IHasOptionalUserAudit { | ||
role: string; // TODO: Role enum | ||
personalInformation: IPersonalInformation; | ||
contact: IUserContact; | ||
// personal information | ||
name?: string; | ||
surname?: string; | ||
birthDate?: Date; | ||
gender?: Gender; | ||
address?: string; | ||
profileImageUrl?: string; | ||
backgroundImageUrl?: string; | ||
description?: string; | ||
password?: string; | ||
status?: UserConfirmationStatus; | ||
country?: string; | ||
city?: string; | ||
languageCode?: string; | ||
countryCode?: string; | ||
// settings | ||
language?: Language; | ||
// acceptedPolicies: IUserAcceptedPolicy[]; // TODO: | ||
// contact | ||
email: string; | ||
emailVerified: boolean; | ||
phoneNumber?: string; | ||
phoneNumberVerified?: boolean; | ||
twoFactorAuth: ITwoFactorAuthMeans; | ||
verifiedContact: IVerifiedContact; | ||
lastLoginDate?: Date; | ||
@@ -34,0 +42,0 @@ googleOAuthData?: IGoogleOAuthData; |
@@ -1,8 +0,1 @@ | ||
export interface IUserContact { | ||
phoneNumber?: string; | ||
phoneNumberVerified?: boolean; | ||
email: string; | ||
emailVerified: boolean; | ||
} | ||
export interface IUpdateContactPhoneNumber { | ||
@@ -9,0 +2,0 @@ phoneNumber?: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
497662
844
5324