website refactor
This commit is contained in:
@@ -5,11 +5,10 @@
|
||||
*/
|
||||
|
||||
import { ADMIN_ACHIEVEMENTS, COMMUNITY_ACHIEVEMENTS, DRIVER_ACHIEVEMENTS, STEWARD_ACHIEVEMENTS } from "@core/identity/domain/AchievementConstants";
|
||||
import { Achievement } from "@core/identity/domain/entities/Achievement";
|
||||
import { Achievement, type AchievementCategory } from "@core/identity/domain/entities/Achievement";
|
||||
import { UserAchievement } from "@core/identity/domain/entities/UserAchievement";
|
||||
import { AchievementRepository } from "@core/identity/domain/repositories/AchievementRepository";
|
||||
import { AchievementCategory } from "@core/identity/domain/types/AchievementTypes";
|
||||
import { Logger } from "@core/shared/domain";
|
||||
import type { Logger } from "@core/shared/domain/Logger";
|
||||
|
||||
export class InMemoryAchievementRepository implements AchievementRepository {
|
||||
private achievements: Map<string, Achievement> = new Map();
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { User } from '@core/identity/domain/entities/User';
|
||||
import { AuthRepository } from '@core/identity/domain/repositories/AuthRepository';
|
||||
import { StoredUser } from '@core/identity/domain/repositories/UserRepository';
|
||||
|
||||
import type { AuthRepository } from '@core/identity/domain/repositories/AuthRepository';
|
||||
import type { UserRepository, StoredUser } from '@core/identity/domain/repositories/UserRepository';
|
||||
import type { PasswordHashingService } from '@core/identity/domain/services/PasswordHashingService';
|
||||
import { EmailAddress } from '@core/identity/domain/value-objects/EmailAddress';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export class InMemoryAuthRepository implements AuthRepository {
|
||||
constructor(
|
||||
private readonly userRepository: IUserRepository,
|
||||
private readonly passwordHashingService: IPasswordHashingService,
|
||||
private readonly userRepository: UserRepository,
|
||||
private readonly passwordHashingService: PasswordHashingService,
|
||||
private readonly logger: Logger,
|
||||
) {}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MagicLinkRepository, PasswordResetRequest } from '@core/identity/domain/repositories/MagicLinkRepository';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
import type { MagicLinkRepository, PasswordResetRequest } from '@core/identity/domain/repositories/MagicLinkRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
|
||||
export class InMemoryMagicLinkRepository implements MagicLinkRepository {
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
* In-memory implementation of ISponsorAccountRepository for development/testing.
|
||||
*/
|
||||
|
||||
import { SponsorAccount, SponsorAccountRepository, UserId } from '@core/identity';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
import { SponsorAccount } from '@core/identity/domain/entities/SponsorAccount';
|
||||
import type { SponsorAccountRepository } from '@core/identity/domain/repositories/SponsorAccountRepository';
|
||||
import { UserId } from '@core/identity/domain/value-objects/UserId';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export class InMemorySponsorAccountRepository implements SponsorAccountRepository {
|
||||
private accounts: Map<string, SponsorAccount> = new Map();
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
* In-memory implementation of IUserRatingRepository
|
||||
*/
|
||||
|
||||
import { UserRating, UserRatingRepository } from '@core/identity';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
import { UserRating } from '@core/identity/domain/value-objects/UserRating';
|
||||
import type { UserRatingRepository } from '@core/identity/domain/repositories/UserRatingRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export class InMemoryUserRatingRepository implements UserRatingRepository {
|
||||
private ratings: Map<string, UserRating> = new Map();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import type { StoredUser, UserRepository } from '@core/identity/domain/repositories/UserRepository';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export class InMemoryUserRepository implements UserRepository {
|
||||
private users: Map<string, StoredUser> = new Map();
|
||||
|
||||
Reference in New Issue
Block a user