module cleanup
This commit is contained in:
15
core/racing/application/presenters/ICreateLeaguePresenter.ts
Normal file
15
core/racing/application/presenters/ICreateLeaguePresenter.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Presenter } from './Presenter';
|
||||
|
||||
export interface CreateLeagueResultDTO {
|
||||
leagueId: string;
|
||||
seasonId: string;
|
||||
scoringPresetId?: string;
|
||||
scoringPresetName?: string;
|
||||
}
|
||||
|
||||
export interface CreateLeagueViewModel {
|
||||
leagueId: string;
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface ICreateLeaguePresenter extends Presenter<CreateLeagueResultDTO, CreateLeagueViewModel> {}
|
||||
13
core/racing/application/presenters/IJoinLeaguePresenter.ts
Normal file
13
core/racing/application/presenters/IJoinLeaguePresenter.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Presenter } from './Presenter';
|
||||
|
||||
export interface JoinLeagueResultDTO {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface JoinLeagueViewModel {
|
||||
success: boolean;
|
||||
membershipId?: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface IJoinLeaguePresenter extends Presenter<JoinLeagueResultDTO, JoinLeagueViewModel> {}
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { Presenter } from '@core/shared/presentation/Presenter';
|
||||
|
||||
export interface RemoveLeagueMemberViewModel {
|
||||
success: boolean;
|
||||
}
|
||||
import { Presenter } from './Presenter';
|
||||
|
||||
export interface RemoveLeagueMemberResultDTO {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface RemoveLeagueMemberViewModel {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface IRemoveLeagueMemberPresenter extends Presenter<RemoveLeagueMemberResultDTO, RemoveLeagueMemberViewModel> {}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Presenter } from './Presenter';
|
||||
|
||||
export interface TransferLeagueOwnershipResultDTO {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface TransferLeagueOwnershipViewModel {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface ITransferLeagueOwnershipPresenter extends Presenter<TransferLeagueOwnershipResultDTO, TransferLeagueOwnershipViewModel> {}
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { Presenter } from '@core/shared/presentation/Presenter';
|
||||
|
||||
export interface UpdateLeagueMemberRoleViewModel {
|
||||
success: boolean;
|
||||
}
|
||||
import { Presenter } from './Presenter';
|
||||
|
||||
export interface UpdateLeagueMemberRoleResultDTO {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface UpdateLeagueMemberRoleViewModel {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface IUpdateLeagueMemberRolePresenter extends Presenter<UpdateLeagueMemberRoleResultDTO, UpdateLeagueMemberRoleViewModel> {}
|
||||
Reference in New Issue
Block a user