21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
/**
|
|
* ViewData for Profile Leagues page
|
|
* Pure, JSON-serializable data structure for Template rendering
|
|
*/
|
|
|
|
import { ViewData } from "../contracts/view-data/ViewData";
|
|
|
|
|
|
export interface ProfileLeaguesLeagueViewData extends ViewData {
|
|
leagueId: string;
|
|
name: string;
|
|
description: string;
|
|
membershipRole: 'owner' | 'admin' | 'steward' | 'member';
|
|
}
|
|
|
|
|
|
export interface ProfileLeaguesViewData extends ViewData {
|
|
ownedLeagues: ProfileLeaguesLeagueViewData[];
|
|
memberLeagues: ProfileLeaguesLeagueViewData[];
|
|
}
|