website refactor
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
|
||||
export interface DeleteMediaInput {
|
||||
mediaId: string;
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { AvatarRepository } from '../../domain/repositories/AvatarRepository';
|
||||
|
||||
export interface GetAvatarInput {
|
||||
driverId: string;
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
|
||||
export interface GetMediaInput {
|
||||
mediaId: string;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Handles the business logic for requesting avatar generation from a face photo.
|
||||
*/
|
||||
|
||||
import { Result } from '@/shared/domain/Result';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
@@ -12,6 +12,7 @@ import { AvatarGenerationRequest } from '../../domain/entities/AvatarGenerationR
|
||||
import type { RacingSuitColor } from '../../domain/types/AvatarGenerationRequest';
|
||||
import type { AvatarGenerationPort } from '../ports/AvatarGenerationPort';
|
||||
import type { FaceValidationPort } from '../ports/FaceValidationPort';
|
||||
import { AvatarGenerationRepository } from '../../domain/repositories/AvatarGenerationRepository';
|
||||
|
||||
export interface RequestAvatarGenerationInput {
|
||||
userId: string;
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { AvatarGenerationRepository } from '../../domain/repositories/AvatarGenerationRepository';
|
||||
|
||||
export interface SelectAvatarInput {
|
||||
requestId: string;
|
||||
|
||||
@@ -4,12 +4,13 @@
|
||||
* Handles the business logic for updating a driver's avatar.
|
||||
*/
|
||||
|
||||
import { AvatarId } from '@/media/domain/value-objects/AvatarId';
|
||||
import { AvatarId } from '../../domain/value-objects/AvatarId';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { Avatar } from '../../domain/entities/Avatar';
|
||||
import { AvatarRepository } from '../../domain/repositories/AvatarRepository';
|
||||
|
||||
export interface UpdateAvatarInput {
|
||||
driverId: string;
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { Media } from '../../domain/entities/Media';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
|
||||
// Define Multer file type locally since @types/multer is not available
|
||||
export interface MulterFile {
|
||||
|
||||
Reference in New Issue
Block a user