regionschools.types.ts 1.21 KB
Newer Older
1
import { List, Map } from 'immutable';
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {TypedRecord} from 'typed-immutable-record';

export interface IRRegion {
    region_id: string;
    region_name: string;
    epals: IRRegionSchool[];
}

export interface IRRegionSchool {
    epal_id: string;
    epal_name: string;
    epal_special_case: string;
    globalIndex: number;
    selected: boolean;
    order_id: number;
}

export interface IRegionRecord extends TypedRecord<IRegionRecord>, IRRegion {};
export interface IRegionSchoolRecord extends TypedRecord<IRegionSchoolRecord>, IRRegionSchool {};
export type IRegionSchoolRecords = IRegionSchoolRecord[];
22

23
24

export interface Region {
25
26
    region_id: string;
    region_name: string;
27
    epals: RegionSchool[];
28
29
}

30
export interface RegionSchool {
31
32
    epal_id: string;
    epal_name: string;
33
    epal_special_case: string;
34
35
    globalIndex: number;
    selected: boolean;
36
    order_id: number;
37
38
}

39
40
41
42
43
44
45
46
47
48
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>;
49
export type IRegionSchools = List<RegionSchool>;