mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
import {NoteModel} from "./note.model";
|
|
import {AdmonitionModel} from "./admonition.model";
|
|
|
|
|
|
export interface PlayerModel {
|
|
id: string;
|
|
playerName: string;
|
|
level: number;
|
|
rankName: string;
|
|
rankId: string;
|
|
allianceId: string;
|
|
createdOn: Date;
|
|
createdBy: string;
|
|
modifiedOn?: Date;
|
|
modifiedBy?: string;
|
|
notesCount: number;
|
|
admonitionsCount: number;
|
|
isDismissed: boolean;
|
|
dismissedAt?: Date;
|
|
dismissalReason?: string;
|
|
}
|
|
|
|
export interface PlayerMvpModel {
|
|
name: string;
|
|
allianceRank: string;
|
|
duelPointsLast3Weeks: number;
|
|
marshalParticipationCount: number;
|
|
desertStormParticipationCount: number;
|
|
hasParticipatedInOldestDuel: boolean;
|
|
mvpScore: number;
|
|
}
|
|
|
|
export interface CreatePlayerModel {
|
|
playerName: string;
|
|
rankId: string;
|
|
allianceId: string;
|
|
level: number;
|
|
}
|
|
|
|
export interface UpdatePlayerModel {
|
|
id: string;
|
|
playerName: string;
|
|
rankId: string;
|
|
level: number;
|
|
}
|
|
|
|
export interface DismissPlayerInformationModel {
|
|
id: string;
|
|
playerName: string;
|
|
dismissedAt: Date;
|
|
dismissalReason: string;
|
|
notes: NoteModel[],
|
|
admonitions: AdmonitionModel[],
|
|
desertStormParticipants: {eventDate: Date, participated: boolean}[],
|
|
marshalGuardParticipants: {eventDate: Date, participated: boolean}[],
|
|
vsDuelParticipants: {eventDate: Date, weeklyPoints: number}[],
|
|
}
|