regionschools.types.ts 674 Bytes
Newer Older
1
import { List, Map } from 'immutable';
2

3
4

export interface Region {
5
6
    region_id: string;
    region_name: string;
7
    epals: RegionSchool[];
8
9
}

10
export interface RegionSchool {
11
12
    epal_id: string;
    epal_name: string;
13
    epal_special_case: string;
14
15
    globalIndex: number;
    selected: boolean;
16
    order_id: number;
17
18
}

19
20
21
22
23
24
25
26
27
28
29
export interface IRegion {
    region_id: string;
    region_name: string;
    epals: IRegionSchools;
}

export type IRegions = List<IRegionM>;
// export type IRegionM = Map<IRegion>;
export type IRegionM = Map<string, IRegion>;
export type IRegionSchoolM = Map<string, RegionSchool>;
export type IRegionSchools = Map<string, List<IRegionSchoolM>>;