index.ts 2.67 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { createLogger } from "redux-logger";

import { IAppState, rootReducer, deimmutify } from "./store";
import { ISectorFieldRecord, ISectorFieldRecords } from "./sectorfields/sectorfields.types";
import { IRRegion, IRRegionSchool, IRegionRecord, IRegionRecords, IRegionSchoolRecord, IRegionSchoolRecords } from "./regionschools/regionschools.types";
import { ISectorRecords, ISectorRecord, ISector, ISectorCourseRecords, ISectorCourseRecord, ISectorCourse } from "./sectorcourses/sectorcourses.types";
import { IStudentDataFieldRecord, IStudentDataFieldRecords } from "./studentdatafields/studentdatafields.types";
import { IEpalClass, IEpalClassRecord, IEpalClassRecords } from "./epalclasses/epalclasses.types";
import { ILoginInfoObj, ILoginInfoRecord, ILoginInfoRecords } from "./logininfo/logininfo.types";
import { IDataMode, IDataModeRecord, IDataModeRecords } from "./datamode/datamode.types";

import { IOrientationGroupObj, IOrientationGroupRecord, IOrientationGroupRecords } from "../store/orientationgroup/orientationgroup.types";
import { IElectiveCourseFieldRecord, IElectiveCourseFieldRecords } from "./electivecoursesfields/electivecoursesfields.types";
import { ILangCourseFieldRecord, ILangCourseFieldRecords } from "./langcoursesfields/langcoursesfields.types";
import { IGelClass, IGelClassRecord, IGelClassRecords } from "./gelclasses/gelclasses.types";
import { IGelStudentDataFieldRecord, IGelStudentDataFieldRecords } from "./gelstudentdatafields/gelstudentdatafields.types";
Kostas G's avatar
Kostas G committed
17
import { ISchoolType, ISchoolTypeRecord, ISchoolTypeRecords } from "./schooltype/schooltype.types";
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

export {
    IAppState,
    rootReducer,
    ISectorFieldRecord,
    ISectorFieldRecords,
    IRRegion,
    IRegionRecord,
    IRegionRecords,
    IRegionSchoolRecord,
    IRegionSchoolRecords,
    IRRegionSchool,
    ISectorRecords,
    ISectorRecord,
    ISector,
    ISectorCourseRecords,
    ISectorCourseRecord,
    ISectorCourse,
    IStudentDataFieldRecord,
    IStudentDataFieldRecords,
    IEpalClass,
    IEpalClassRecord,
    IEpalClassRecords,
    IDataMode,
    IDataModeRecord,
    IDataModeRecords,
    ILoginInfoObj,
    ILoginInfoRecord,
    ILoginInfoRecords,

    IOrientationGroupObj,
    IOrientationGroupRecord,
    IOrientationGroupRecords,
    IElectiveCourseFieldRecord,
    IElectiveCourseFieldRecords,
    ILangCourseFieldRecord,
    ILangCourseFieldRecords,
    IGelClass,
    IGelClassRecord,
    IGelClassRecords,
    IGelStudentDataFieldRecord,
Kostas G's avatar
Kostas G committed
59 60 61 62
    IGelStudentDataFieldRecords,
    ISchoolType,
    ISchoolTypeRecord,
    ISchoolTypeRecords
63 64 65 66 67 68 69 70 71 72 73
};

const myLogger = createLogger({
    level: "info",
    collapsed: true,
    stateTransformer: deimmutify
});

export const middleware = [
    myLogger
];