2017-06-08 19:46:36 +02:00
|
|
|
export interface AppUser {
|
|
|
|
_id?: string;
|
|
|
|
username?: string;
|
|
|
|
squad?: Squad;
|
|
|
|
secret?: string;
|
|
|
|
activated: boolean;
|
|
|
|
permission: number;
|
|
|
|
}
|
|
|
|
|
2017-05-10 11:04:06 +02:00
|
|
|
export interface User {
|
|
|
|
_id?: string;
|
|
|
|
boardUserId?: number;
|
|
|
|
username?: string;
|
2017-08-12 21:37:31 +02:00
|
|
|
squad?: any; //Squad or id-string
|
2017-05-10 11:04:06 +02:00
|
|
|
rank?: Rank;
|
|
|
|
awards?: Award[];
|
|
|
|
}
|
|
|
|
|
2017-07-08 21:56:11 +02:00
|
|
|
export interface Player {
|
|
|
|
_id?: string;
|
|
|
|
fraction?: string;
|
|
|
|
name?: string;
|
|
|
|
warId?: War;
|
|
|
|
kill?: number;
|
|
|
|
death?: number;
|
|
|
|
friendlyFire?: number;
|
2017-08-05 23:19:23 +02:00
|
|
|
revive?: number;
|
2017-07-08 21:56:11 +02:00
|
|
|
respawn?: number;
|
|
|
|
flagTouch?: number;
|
|
|
|
}
|
2017-08-12 21:37:31 +02:00
|
|
|
export interface Campaign {
|
|
|
|
_id?: string;
|
|
|
|
title?: string;
|
|
|
|
wars?: War[];
|
|
|
|
}
|
2017-07-08 21:56:11 +02:00
|
|
|
export interface War {
|
|
|
|
_id?: string;
|
2017-07-08 22:50:01 +02:00
|
|
|
title?: string;
|
2017-07-14 23:33:17 +02:00
|
|
|
date?: string;
|
2017-07-08 21:56:11 +02:00
|
|
|
ptBlufor?: number;
|
|
|
|
ptOpfor?: number;
|
2017-07-30 16:25:11 +02:00
|
|
|
playersBlufor?: number;
|
|
|
|
playersOpfor?: number;
|
2017-08-12 23:13:39 +02:00
|
|
|
players?: Player[];
|
|
|
|
campaign?: string;
|
2017-07-08 21:56:11 +02:00
|
|
|
}
|
|
|
|
|
2017-05-10 11:04:06 +02:00
|
|
|
export interface Squad {
|
|
|
|
_id?: string;
|
|
|
|
name?: string;
|
|
|
|
fraction?: string;
|
|
|
|
sortingNumber?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Rank {
|
|
|
|
_id?: string;
|
|
|
|
name?: string;
|
|
|
|
fraction?: string;
|
|
|
|
level?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Award {
|
|
|
|
_id?: string,
|
|
|
|
userId: string,
|
2017-07-29 11:23:37 +02:00
|
|
|
decorationId?: any; //Decoration or string
|
2017-05-10 11:04:06 +02:00
|
|
|
reason?: string;
|
2017-06-09 18:30:35 +02:00
|
|
|
proposer?: AppUser;
|
2017-05-10 11:04:06 +02:00
|
|
|
date?: number; // since Date.now() returns a number
|
2017-06-10 22:07:32 +02:00
|
|
|
confirmed?: number;
|
2017-05-10 11:04:06 +02:00
|
|
|
}
|
|
|
|
|
2017-06-10 13:16:15 +02:00
|
|
|
export interface Promotion {
|
2017-06-11 13:18:03 +02:00
|
|
|
_id?: string;
|
2017-06-10 13:16:15 +02:00
|
|
|
userId?: string
|
|
|
|
oldRankLvl: number,
|
|
|
|
newRankLvl: number
|
|
|
|
}
|
|
|
|
|
2017-05-10 11:04:06 +02:00
|
|
|
export interface Decoration {
|
|
|
|
_id?: string;
|
|
|
|
name?: string;
|
|
|
|
description?: string;
|
|
|
|
fraction?: string;
|
|
|
|
sortingNumber?: number;
|
|
|
|
isMedal?: boolean;
|
|
|
|
}
|
2017-05-11 21:46:28 +02:00
|
|
|
|
|
|
|
export interface Army {
|
|
|
|
NATO: {
|
|
|
|
squads: {
|
|
|
|
_id,
|
|
|
|
name,
|
|
|
|
memberCount,
|
|
|
|
members: {
|
|
|
|
_id,
|
|
|
|
username,
|
|
|
|
rank
|
|
|
|
}[],
|
|
|
|
}[],
|
|
|
|
memberCount
|
|
|
|
},
|
|
|
|
CSAT: {
|
|
|
|
squads: {
|
|
|
|
_id,
|
|
|
|
name,
|
|
|
|
memberCount,
|
|
|
|
members: {
|
|
|
|
_id,
|
|
|
|
username,
|
|
|
|
rank
|
|
|
|
}[],
|
|
|
|
}[],
|
|
|
|
memberCount
|
|
|
|
},
|
|
|
|
}
|
2017-05-10 11:04:06 +02:00
|
|
|
|