api client refactor

This commit is contained in:
2025-12-17 18:01:47 +01:00
parent bab55955e1
commit 4177644b18
190 changed files with 6403 additions and 1624 deletions

View File

@@ -0,0 +1,16 @@
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;
}