website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ValueObject } from '@core/shared/domain';
|
||||
import { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { AdminDomainValidationError } from '../errors/AdminDomainError';
|
||||
|
||||
export interface EmailProps {
|
||||
@@ -40,7 +40,7 @@ export class Email implements ValueObject<EmailProps> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
equals(other: IValueObject<EmailProps>): boolean {
|
||||
equals(other: ValueObject<EmailProps>): boolean {
|
||||
return this.value === other.props.value;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ValueObject } from '@core/shared/domain';
|
||||
import { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { AdminDomainValidationError } from '../errors/AdminDomainError';
|
||||
|
||||
export interface UserIdProps {
|
||||
@@ -28,7 +28,7 @@ export class UserId implements ValueObject<UserIdProps> {
|
||||
return { value: this.value };
|
||||
}
|
||||
|
||||
equals(other: IValueObject<UserIdProps>): boolean {
|
||||
equals(other: ValueObject<UserIdProps>): boolean {
|
||||
return this.value === other.props.value;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ValueObject } from '@core/shared/domain';
|
||||
import { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { AdminDomainValidationError } from '../errors/AdminDomainError';
|
||||
|
||||
export type UserRoleValue = string;
|
||||
@@ -41,7 +41,7 @@ export class UserRole implements ValueObject<UserRoleProps> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
equals(other: IValueObject<UserRoleProps>): boolean {
|
||||
equals(other: ValueObject<UserRoleProps>): boolean {
|
||||
return this.value === other.props.value;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ValueObject } from '@core/shared/domain';
|
||||
import { ValueObject } from '@core/shared/domain/ValueObject';
|
||||
import { AdminDomainValidationError } from '../errors/AdminDomainError';
|
||||
|
||||
export type UserStatusValue = string;
|
||||
@@ -41,7 +41,7 @@ export class UserStatus implements ValueObject<UserStatusProps> {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
equals(other: IValueObject<UserStatusProps>): boolean {
|
||||
equals(other: ValueObject<UserStatusProps>): boolean {
|
||||
return this.value === other.props.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user