You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.2 KiB
67 lines
1.2 KiB
export interface Candidate {
|
|
name: string,
|
|
image?: string,
|
|
description?: string
|
|
id?: number;
|
|
}
|
|
|
|
export interface CandidateItem extends Candidate {
|
|
active: boolean;
|
|
}
|
|
|
|
export interface Grade {
|
|
name: string;
|
|
value: number;
|
|
description?: string;
|
|
id?: number;
|
|
}
|
|
|
|
export interface GradeItem extends Grade {
|
|
active: boolean;
|
|
}
|
|
|
|
export interface Vote {
|
|
candidateId: number;
|
|
gradeId: number;
|
|
}
|
|
|
|
|
|
export interface GradeResultInterface {
|
|
name: string;
|
|
description: string;
|
|
id: number;
|
|
value: number;
|
|
color: string;
|
|
}
|
|
|
|
|
|
export interface MeritProfileInterface {
|
|
[key: number]: number;
|
|
}
|
|
|
|
export interface CandidateResultInterface {
|
|
name: string;
|
|
description: string;
|
|
id: number;
|
|
image: string;
|
|
majorityGrade: GradeResultInterface;
|
|
meritProfile: MeritProfileInterface;
|
|
rank: number;
|
|
}
|
|
|
|
export interface ResultInterface {
|
|
name: string;
|
|
description: string;
|
|
ref: string;
|
|
dateStart: string;
|
|
dateEnd: string;
|
|
hideResults: boolean;
|
|
forceClose: boolean;
|
|
restricted: boolean;
|
|
grades: Array<GradeResultInterface>;
|
|
candidates: Array<CandidateResultInterface>;
|
|
|
|
ranking: {[key: string]: number};
|
|
meritProfiles: {[key: number]: MeritProfileInterface};
|
|
}
|