website refactor

This commit is contained in:
2026-01-16 16:46:57 +01:00
parent 37b1aa626c
commit 2f53727702
445 changed files with 1160 additions and 1150 deletions

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
/**
@@ -68,7 +68,7 @@ export class AdminTrustReasonCode implements ValueObject<AdminTrustReasonCodePro
return { value: this.value };
}
equals(other: IValueObject<AdminTrustReasonCodeProps>): boolean {
equals(other: ValueObject<AdminTrustReasonCodeProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
/**
@@ -80,7 +80,7 @@ export class DrivingReasonCode implements ValueObject<DrivingReasonCodeProps> {
return { value: this.value };
}
equals(other: IValueObject<DrivingReasonCodeProps>): boolean {
equals(other: ValueObject<DrivingReasonCodeProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import type { EmailValidationResult } from '../types/EmailAddress';
import { validateEmail, isDisposableEmail } from '../types/EmailAddress';
@@ -35,7 +35,7 @@ export class EmailAddress implements ValueObject<EmailAddressProps> {
return this.props.value;
}
equals(other: IValueObject<EmailAddressProps>): boolean {
equals(other: ValueObject<EmailAddressProps>): boolean {
return this.props.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
import { GameKey } from './GameKey';
@@ -40,7 +40,7 @@ export class ExternalRating implements ValueObject<ExternalRatingProps> {
};
}
equals(other: IValueObject<ExternalRatingProps>): boolean {
equals(other: ValueObject<ExternalRatingProps>): boolean {
return (
this.gameKey.equals(other.props.gameKey) &&
this.type === other.props.type &&

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export interface ExternalRatingProvenanceProps {
@@ -45,7 +45,7 @@ export class ExternalRatingProvenance implements ValueObject<ExternalRatingProve
};
}
equals(other: IValueObject<ExternalRatingProvenanceProps>): boolean {
equals(other: ValueObject<ExternalRatingProvenanceProps>): boolean {
return (
this.source === other.props.source &&
this.lastSyncedAt.getTime() === other.props.lastSyncedAt.getTime() &&

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export interface GameKeyProps {
@@ -33,7 +33,7 @@ export class GameKey implements ValueObject<GameKeyProps> {
return { value: this.value };
}
equals(other: IValueObject<GameKeyProps>): boolean {
equals(other: ValueObject<GameKeyProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,5 +1,5 @@
import bcrypt from 'bcrypt';
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
export interface PasswordHashProps {
value: string;
@@ -35,7 +35,7 @@ export class PasswordHash implements ValueObject<PasswordHashProps> {
return bcrypt.compare(plain, this.props.value);
}
equals(other: IValueObject<PasswordHashProps>): boolean {
equals(other: ValueObject<PasswordHashProps>): boolean {
return this.props.value === other.props.value;
}
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export interface RatingDeltaProps {
@@ -30,7 +30,7 @@ export class RatingDelta implements ValueObject<RatingDeltaProps> {
return { value: this.value };
}
equals(other: IValueObject<RatingDeltaProps>): boolean {
equals(other: ValueObject<RatingDeltaProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export interface RatingDimensionKeyProps {
@@ -39,7 +39,7 @@ export class RatingDimensionKey implements ValueObject<RatingDimensionKeyProps>
return { value: this.value };
}
equals(other: IValueObject<RatingDimensionKeyProps>): boolean {
equals(other: ValueObject<RatingDimensionKeyProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
import { v4 as uuidv4 } from 'uuid';
@@ -38,7 +38,7 @@ export class RatingEventId implements ValueObject<RatingEventIdProps> {
return { value: this.value };
}
equals(other: IValueObject<RatingEventIdProps>): boolean {
equals(other: ValueObject<RatingEventIdProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export type RatingReferenceType = 'race' | 'penalty' | 'vote' | 'adminAction';
@@ -38,7 +38,7 @@ export class RatingReference implements ValueObject<RatingReferenceProps> {
return { type: this.type, id: this.id };
}
equals(other: IValueObject<RatingReferenceProps>): boolean {
equals(other: ValueObject<RatingReferenceProps>): boolean {
return this.type === other.props.type && this.id === other.props.id;
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
import { IdentityDomainValidationError } from '../errors/IdentityDomainError';
export interface RatingValueProps {
@@ -30,7 +30,7 @@ export class RatingValue implements ValueObject<RatingValueProps> {
return { value: this.value };
}
equals(other: IValueObject<RatingValueProps>): boolean {
equals(other: ValueObject<RatingValueProps>): boolean {
return this.value === other.props.value;
}

View File

@@ -1,5 +1,5 @@
import { v4 as uuidv4 } from 'uuid';
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
export interface UserIdProps {
value: string;
@@ -31,7 +31,7 @@ export class UserId implements ValueObject<UserIdProps> {
return this.props.value;
}
public equals(other: IValueObject<UserIdProps>): boolean {
public equals(other: ValueObject<UserIdProps>): boolean {
return this.props.value === other.props.value;
}
}

View File

@@ -1,4 +1,4 @@
import type { ValueObject } from '@core/shared/domain';
import type { ValueObject } from '@core/shared/domain/ValueObject';
/**
* Value Object: UserRating
@@ -111,7 +111,7 @@ export class UserRating implements ValueObject<UserRatingProps> {
return new UserRating(props);
}
equals(other: IValueObject<UserRatingProps>): boolean {
equals(other: ValueObject<UserRatingProps>): boolean {
return this.props.userId === other.props.userId;
}