16 lines
510 B
TypeScript
16 lines
510 B
TypeScript
import type { LeagueAdminDto } from '../dtos';
|
|
import type { LeagueMemberViewModel, LeagueJoinRequestViewModel } from './';
|
|
|
|
/**
|
|
* League admin view model
|
|
* Transform from DTO to ViewModel with UI fields
|
|
*/
|
|
export interface LeagueAdminViewModel {
|
|
config: LeagueAdminDto['config'];
|
|
members: LeagueMemberViewModel[];
|
|
joinRequests: LeagueJoinRequestViewModel[];
|
|
// Total pending requests count
|
|
pendingRequestsCount: number;
|
|
// Whether there are any pending requests
|
|
hasPendingRequests: boolean;
|
|
} |