refactor dtos to ports

This commit is contained in:
2025-12-19 14:08:27 +01:00
parent 2ab86ec9bd
commit 499562c456
106 changed files with 386 additions and 1009 deletions

View File

@@ -0,0 +1,3 @@
export interface GetDriverAvatarInputPort {
driverId: string;
}

View File

@@ -0,0 +1,3 @@
export interface GetDriverRatingInputPort {
driverId: string;
}

View File

@@ -0,0 +1,6 @@
import type { SponsorableEntityType } from '../../../domain/entities/SponsorshipRequest';
export interface GetEntitySponsorshipPricingInputPort {
entityType: SponsorableEntityType;
entityId: string;
}

View File

@@ -0,0 +1,3 @@
export interface GetLeagueCoverInputPort {
leagueId: string;
}

View File

@@ -0,0 +1,3 @@
export interface GetLeagueLogoInputPort {
leagueId: string;
}

View File

@@ -0,0 +1,3 @@
export interface GetLeagueScoringPresetByIdInputPort {
presetId: string;
}

View File

@@ -0,0 +1,3 @@
export interface GetTeamLogoInputPort {
teamId: string;
}

View File

@@ -0,0 +1,6 @@
/**
* League visibility/ranking mode.
* - 'ranked' (or legacy 'public'): Competitive, public, affects driver ratings. Min 10 drivers.
* - 'unranked' (or legacy 'private'): Casual with friends, no rating impact.
*/
export type LeagueVisibilityInputPort = 'ranked' | 'unranked' | 'public' | 'private';

View File

@@ -0,0 +1,3 @@
export interface ListLeagueScoringPresetsInputPort {
// Empty interface for query with no parameters
}

View File

@@ -0,0 +1,6 @@
export interface ProcessPaymentInputPort {
amount: number; // in cents
payerId: string;
description: string;
metadata?: Record<string, unknown>;
}

View File

@@ -0,0 +1,8 @@
export interface IsDriverRegisteredForRaceInputPort {
raceId: string;
driverId: string;
}
export interface GetRaceRegistrationsInputPort {
raceId: string;
}

View File

@@ -0,0 +1,7 @@
import type { Money } from '../../domain/value-objects/Money';
export interface RefundPaymentInputPort {
originalTransactionId: string;
amount: Money;
reason: string;
}

View File

@@ -0,0 +1,3 @@
export interface VerifyPaymentInputPort {
transactionId: string;
}