api client refactor
This commit is contained in:
14
apps/website/lib/view-models/LeagueJoinRequestViewModel.ts
Normal file
14
apps/website/lib/view-models/LeagueJoinRequestViewModel.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { LeagueJoinRequestDto } from '../dtos';
|
||||
|
||||
/**
|
||||
* League join request view model
|
||||
* Transform from DTO to ViewModel with UI fields
|
||||
*/
|
||||
export interface LeagueJoinRequestViewModel extends LeagueJoinRequestDto {
|
||||
// Formatted request date
|
||||
formattedRequestedAt: string;
|
||||
// Whether the request can be approved by current user
|
||||
canApprove: boolean;
|
||||
// Whether the request can be rejected by current user
|
||||
canReject: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user