refactor dtos to ports
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export interface GetDriverAvatarInputPort {
|
||||
driverId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface GetDriverRatingInputPort {
|
||||
driverId: string;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { SponsorableEntityType } from '../../../domain/entities/SponsorshipRequest';
|
||||
|
||||
export interface GetEntitySponsorshipPricingInputPort {
|
||||
entityType: SponsorableEntityType;
|
||||
entityId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface GetLeagueCoverInputPort {
|
||||
leagueId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface GetLeagueLogoInputPort {
|
||||
leagueId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface GetLeagueScoringPresetByIdInputPort {
|
||||
presetId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface GetTeamLogoInputPort {
|
||||
teamId: string;
|
||||
}
|
||||
@@ -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';
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface ListLeagueScoringPresetsInputPort {
|
||||
// Empty interface for query with no parameters
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface ProcessPaymentInputPort {
|
||||
amount: number; // in cents
|
||||
payerId: string;
|
||||
description: string;
|
||||
metadata?: Record<string, unknown>;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export interface IsDriverRegisteredForRaceInputPort {
|
||||
raceId: string;
|
||||
driverId: string;
|
||||
}
|
||||
|
||||
export interface GetRaceRegistrationsInputPort {
|
||||
raceId: string;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Money } from '../../domain/value-objects/Money';
|
||||
|
||||
export interface RefundPaymentInputPort {
|
||||
originalTransactionId: string;
|
||||
amount: Money;
|
||||
reason: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface VerifyPaymentInputPort {
|
||||
transactionId: string;
|
||||
}
|
||||
Reference in New Issue
Block a user