website refactor
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* Defines the contract for AI-powered avatar generation.
|
||||
*/
|
||||
|
||||
import type { RacingSuitColor, AvatarStyle } from '../../domain/types/AvatarGenerationRequest';
|
||||
import type { AvatarStyle, RacingSuitColor } from '../../domain/types/AvatarGenerationRequest';
|
||||
|
||||
export interface AvatarGenerationOptions {
|
||||
facePhotoUrl: string;
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
* Handles the business logic for deleting media files.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
|
||||
export interface DeleteMediaInput {
|
||||
mediaId: string;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Handles the business logic for retrieving a driver's avatar.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { AvatarRepository } from '../../domain/repositories/AvatarRepository';
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Handles the business logic for retrieving media information.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
* Handles the business logic for requesting avatar generation from a face photo.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
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 { AvatarGenerationRequest } from '../../domain/entities/AvatarGenerationRequest';
|
||||
import { AvatarGenerationRepository } from '../../domain/repositories/AvatarGenerationRepository';
|
||||
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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { MediaReference } from '@core/domain/media/MediaReference';
|
||||
import type { MediaResolverPort } from '@core/ports/media/MediaResolverPort';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
|
||||
export type ResolveMediaReferenceInput = {
|
||||
reference: MediaReference;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Handles the business logic for selecting a generated avatar from the options.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import { AvatarGenerationRepository } from '../../domain/repositories/AvatarGenerationRepository';
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* Handles the business logic for updating a driver's avatar.
|
||||
*/
|
||||
|
||||
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';
|
||||
import { AvatarId } from '../../domain/value-objects/AvatarId';
|
||||
|
||||
export interface UpdateAvatarInput {
|
||||
driverId: string;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* Handles the business logic for uploading media files.
|
||||
*/
|
||||
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
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 { Media } from '../../domain/entities/Media';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
import { MediaRepository } from '../../domain/repositories/MediaRepository';
|
||||
import type { MediaStoragePort } from '../ports/MediaStoragePort';
|
||||
|
||||
// Define Multer file type locally since @types/multer is not available
|
||||
export interface MulterFile {
|
||||
|
||||
Reference in New Issue
Block a user