@royalschedule/maps 2.2.76 → 2.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Admentum/from/events.js.map +1 -1
- package/dist/Admentum/from/schedules.d.ts +1 -1
- package/dist/Admentum/from/schedules.js.map +1 -1
- package/dist/Admentum/to/index.d.ts +1 -1
- package/dist/Admentum/to/schedules.d.ts +2 -1
- package/dist/Admentum/to/schedules.js +6 -6
- package/dist/Admentum/to/schedules.js.map +1 -1
- package/dist/RS/v0/to/constraints.d.ts +2 -1
- package/dist/RS/v0/to/constraints.js.map +1 -1
- package/dist/RS/v0/to/course-events/days.d.ts +1 -1
- package/dist/RS/v0/to/course-events/index.d.ts +1 -1
- package/dist/RS/v0/to/course-events/index.js.map +1 -1
- package/dist/RS/v0/to/courses.d.ts +1 -1
- package/dist/RS/v0/to/dependencies.d.ts +1 -1
- package/dist/RS/v0/to/groups.d.ts +1 -1
- package/dist/RS/v0/to/index.d.ts +3 -3
- package/dist/RS/v0/to/schedules.d.ts +2 -1
- package/dist/RS/v0/to/schedules.js.map +1 -1
- package/dist/RS/v0/to/teachers.d.ts +1 -1
- package/dist/RS/v1/to/collections.d.ts +3 -2
- package/dist/RS/v1/to/collections.js.map +1 -1
- package/dist/RS/v1/to/constraints.d.ts +2 -1
- package/dist/RS/v1/to/constraints.js.map +1 -1
- package/dist/RS/v1/to/course-events/days.d.ts +1 -1
- package/dist/RS/v1/to/course-events/index.d.ts +3 -2
- package/dist/RS/v1/to/course-events/index.js.map +1 -1
- package/dist/RS/v1/to/dependencies.d.ts +1 -1
- package/dist/RS/v1/to/groups.d.ts +1 -1
- package/dist/RS/v1/to/index.d.ts +6 -6
- package/dist/RS/v1/to/schedules.d.ts +2 -1
- package/dist/RS/v1/to/schedules.js.map +1 -1
- package/dist/RS/v1/to/teachers.d.ts +3 -2
- package/dist/RS/v1/to/teachers.js.map +1 -1
- package/dist/RS/v2/to/collections.d.ts +3 -2
- package/dist/RS/v2/to/collections.js.map +1 -1
- package/dist/RS/v2/to/constraints.d.ts +2 -1
- package/dist/RS/v2/to/constraints.js.map +1 -1
- package/dist/RS/v2/to/course-events/days.d.ts +1 -1
- package/dist/RS/v2/to/course-events/index.d.ts +3 -2
- package/dist/RS/v2/to/course-events/index.js.map +1 -1
- package/dist/RS/v2/to/dependencies.d.ts +1 -1
- package/dist/RS/v2/to/dynamic-locked-times.d.ts +2 -1
- package/dist/RS/v2/to/dynamic-locked-times.js +14 -8
- package/dist/RS/v2/to/dynamic-locked-times.js.map +1 -1
- package/dist/RS/v2/to/groups.d.ts +1 -1
- package/dist/RS/v2/to/index.d.ts +6 -6
- package/dist/RS/v2/to/schedules.d.ts +2 -1
- package/dist/RS/v2/to/schedules.js.map +1 -1
- package/dist/RS/v2/to/teachers.d.ts +3 -2
- package/dist/RS/v2/to/teachers.js.map +1 -1
- package/dist/RS/v2/types/course-events.d.ts +1 -1
- package/dist/SS12000/to/activities.d.ts +2 -1
- package/dist/SS12000/to/activities.js.map +1 -1
- package/dist/SS12000/to/calendar-events.d.ts +2 -1
- package/dist/SS12000/to/calendar-events.js.map +1 -1
- package/dist/SS12000/to/duties.d.ts +2 -1
- package/dist/SS12000/to/duties.js.map +1 -1
- package/dist/SS12000/to/groups.d.ts +2 -1
- package/dist/SS12000/to/groups.js.map +1 -1
- package/dist/SS12000/to/index.d.ts +5 -5
- package/dist/SS12000/to/rooms.d.ts +2 -1
- package/dist/SS12000/to/rooms.js.map +1 -1
- package/dist/SchoolSoft/file/from/schedules.js +11 -8
- package/dist/SchoolSoft/file/from/schedules.js.map +1 -1
- package/dist/core/from/events.js.map +1 -1
- package/dist/core/to/available-locations.d.ts +2 -1
- package/dist/core/to/available-locations.js +18 -8
- package/dist/core/to/available-locations.js.map +1 -1
- package/dist/core/to/courses.d.ts +2 -1
- package/dist/core/to/courses.js +33 -23
- package/dist/core/to/courses.js.map +1 -1
- package/dist/core/to/days.js.map +1 -1
- package/dist/core/to/events.d.ts +2 -1
- package/dist/core/to/events.js +39 -28
- package/dist/core/to/events.js.map +1 -1
- package/dist/core/to/groups.js +1 -15
- package/dist/core/to/groups.js.map +1 -1
- package/dist/core/to/intervals.js.map +1 -1
- package/dist/core/to/locations.js +1 -0
- package/dist/core/to/locations.js.map +1 -1
- package/dist/core/to/locked-times.d.ts +2 -1
- package/dist/core/to/locked-times.js +31 -22
- package/dist/core/to/locked-times.js.map +1 -1
- package/dist/core/to/overlap-groups.d.ts +2 -1
- package/dist/core/to/overlap-groups.js +47 -35
- package/dist/core/to/overlap-groups.js.map +1 -1
- package/dist/core/to/schedules.d.ts +2 -1
- package/dist/core/to/schedules.js +8 -41
- package/dist/core/to/schedules.js.map +1 -1
- package/dist/core/to/teachers.js +1 -15
- package/dist/core/to/teachers.js.map +1 -1
- package/dist/core/types/available-locations.d.ts +3 -8
- package/dist/core/types/common/coalesced.d.ts +4 -4
- package/dist/core/types/common/index.d.ts +9 -1
- package/dist/core/types/course-events.d.ts +17 -14
- package/dist/core/types/courses.d.ts +13 -10
- package/dist/core/types/days.d.ts +0 -4
- package/dist/core/types/division-settings.d.ts +13 -12
- package/dist/core/types/divisions.d.ts +13 -5
- package/dist/core/types/groups.d.ts +6 -3
- package/dist/core/types/intervals.d.ts +2 -4
- package/dist/core/types/locations.d.ts +8 -3
- package/dist/core/types/locked-times.d.ts +17 -7
- package/dist/core/types/meta.d.ts +1 -0
- package/dist/core/types/overlap-groups.d.ts +8 -3
- package/dist/core/types/persons.d.ts +19 -0
- package/dist/{Skola24/types/Meta.js → core/types/persons.js} +1 -1
- package/dist/core/types/persons.js.map +1 -0
- package/dist/core/types/teachers.d.ts +4 -3
- package/package.json +2 -2
- package/dist/PlanDigital/types/course.d.ts +0 -15
- package/dist/PlanDigital/types/course.js +0 -6
- package/dist/PlanDigital/types/course.js.map +0 -1
- package/dist/Skola24/types/Meta.d.ts +0 -7
- package/dist/Skola24/types/Meta.js.map +0 -1
- package/dist/core/constants/index.d.ts +0 -63
- package/dist/core/constants/index.js +0 -121
- package/dist/core/constants/index.js.map +0 -1
- package/dist/core/identify/index.d.ts +0 -2
- package/dist/core/identify/index.js +0 -78
- package/dist/core/identify/index.js.map +0 -1
- package/dist/core/types/identify.d.ts +0 -10
- package/dist/core/types/identify.js +0 -6
- package/dist/core/types/identify.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
+
import { Edge } from './common';
|
|
3
4
|
import { Division } from './divisions';
|
|
4
5
|
import { BreakLength } from './break-lengths';
|
|
5
6
|
import { LockedTime } from './locked-times';
|
|
@@ -12,36 +13,38 @@ import { Location } from './locations';
|
|
|
12
13
|
import { AvailableLocation } from './available-locations';
|
|
13
14
|
import { OverlapGroup } from './overlap-groups';
|
|
14
15
|
export interface CourseEventBare {
|
|
15
|
-
belongsTo?: Division
|
|
16
|
-
course?: Course
|
|
17
|
-
groups?: Group[] |
|
|
18
|
-
teachers?: Teacher[] |
|
|
19
|
-
locations?: AvailableLocation[] |
|
|
20
|
-
inLocations?: Location[]
|
|
21
|
-
weeks?: number[];
|
|
16
|
+
belongsTo?: Edge<Division>;
|
|
17
|
+
course?: Edge<Course>;
|
|
18
|
+
groups?: Edge<Group[]> | null;
|
|
19
|
+
teachers?: Edge<Teacher[]> | null;
|
|
20
|
+
locations?: AvailableLocation[] | null;
|
|
21
|
+
inLocations?: Edge<Location[]>;
|
|
22
22
|
density?: number;
|
|
23
23
|
weight?: number;
|
|
24
24
|
potentialCenter?: string;
|
|
25
25
|
parked?: boolean;
|
|
26
26
|
color?: string;
|
|
27
27
|
fixedStart?: boolean;
|
|
28
|
-
start?: moment.Moment | string;
|
|
29
|
-
end?: moment.Moment | string;
|
|
28
|
+
start?: moment.Moment | string | Date;
|
|
29
|
+
end?: moment.Moment | string | Date;
|
|
30
30
|
ids?: string;
|
|
31
31
|
minBreakLength?: BreakLength;
|
|
32
|
+
weeks?: number[];
|
|
33
|
+
type?: string;
|
|
32
34
|
displayName?: string;
|
|
33
35
|
visible?: boolean;
|
|
34
36
|
duration?: number;
|
|
35
|
-
preferredDuration
|
|
37
|
+
preferredDuration?: number;
|
|
36
38
|
durationVariance?: number;
|
|
37
|
-
lockedTimes?: LockedTime[];
|
|
39
|
+
lockedTimes?: Edge<LockedTime[]> | null;
|
|
38
40
|
intervals?: Interval[];
|
|
41
|
+
centerOfAttraction?: string | null;
|
|
39
42
|
days?: Day[] | null;
|
|
40
|
-
overlapGroup?: OverlapGroup;
|
|
41
|
-
overlapSpecies?: OverlapGroup | null;
|
|
42
|
-
centerOfAttraction?: string;
|
|
43
|
+
overlapGroup?: Edge<OverlapGroup> | null;
|
|
44
|
+
overlapSpecies?: Edge<OverlapGroup> | null;
|
|
43
45
|
createdAt?: string;
|
|
44
46
|
updatedAt?: string;
|
|
47
|
+
lastModifiedBy?: unknown;
|
|
45
48
|
}
|
|
46
49
|
export interface CourseEvent extends CourseEventBare {
|
|
47
50
|
_id?: Types.ObjectId;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { BreakLength } from './break-lengths';
|
|
4
5
|
import { LockedTime } from './locked-times';
|
|
@@ -10,32 +11,34 @@ import { AvailableLocation } from './available-locations';
|
|
|
10
11
|
import { CourseEvent } from './course-events';
|
|
11
12
|
import { OverlapGroup } from './overlap-groups';
|
|
12
13
|
export interface CourseBare {
|
|
13
|
-
belongsTo?: Division
|
|
14
|
-
events?: CourseEvent[]
|
|
15
|
-
groups?: Group[]
|
|
16
|
-
teachers?: Teacher[]
|
|
17
|
-
locations?: AvailableLocation[]
|
|
14
|
+
belongsTo?: Edge<Division>;
|
|
15
|
+
events?: Edge<CourseEvent[]>;
|
|
16
|
+
groups?: Edge<Group[]>;
|
|
17
|
+
teachers?: Edge<Teacher[]>;
|
|
18
|
+
locations?: AvailableLocation[];
|
|
18
19
|
density?: number;
|
|
19
20
|
weight?: number;
|
|
20
21
|
potentialCenter?: string;
|
|
21
22
|
ids?: string;
|
|
22
23
|
subject?: string;
|
|
23
24
|
minBreakLength?: BreakLength;
|
|
25
|
+
weeks?: number[];
|
|
24
26
|
displayName?: string;
|
|
25
27
|
color?: string;
|
|
28
|
+
eventDurationVariance?: number;
|
|
26
29
|
totalTime?: string;
|
|
27
30
|
type?: string;
|
|
28
|
-
lockedTimes?: LockedTime[]
|
|
31
|
+
lockedTimes?: Edge<LockedTime[]>;
|
|
29
32
|
intervals?: Interval[];
|
|
33
|
+
centerOfAttraction?: string | null;
|
|
30
34
|
days?: Day[];
|
|
31
|
-
overlapGroup?: OverlapGroup;
|
|
32
|
-
overlapSpecies?: OverlapGroup | null;
|
|
33
|
-
eventDurationVariance?: number;
|
|
34
|
-
centerOfAttraction?: string;
|
|
35
|
+
overlapGroup?: Edge<OverlapGroup> | null;
|
|
36
|
+
overlapSpecies?: Edge<OverlapGroup> | null;
|
|
35
37
|
minutesPerWeek?: number;
|
|
36
38
|
expectedTotalHours?: number;
|
|
37
39
|
createdAt?: string;
|
|
38
40
|
updatedAt?: string;
|
|
41
|
+
lastModifiedBy?: unknown;
|
|
39
42
|
}
|
|
40
43
|
export interface Course extends CourseBare {
|
|
41
44
|
_id?: Types.ObjectId;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
-
import { Division } from './divisions';
|
|
3
2
|
export interface DayBare {
|
|
4
|
-
belongsTo?: Division;
|
|
5
3
|
day?: number;
|
|
6
4
|
rank?: number;
|
|
7
|
-
to?: Types.ObjectId;
|
|
8
|
-
toModel?: string;
|
|
9
5
|
}
|
|
10
6
|
export interface Day extends DayBare {
|
|
11
7
|
_id?: Types.ObjectId;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { LockedTime } from './locked-times';
|
|
4
5
|
export interface DivisionSettingsBare {
|
|
5
|
-
belongsTo?: Division
|
|
6
|
+
belongsTo?: Edge<Division>;
|
|
6
7
|
createdAt?: string;
|
|
8
|
+
discretization: number;
|
|
7
9
|
numDays: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
defaultDependencyMinimumBreakLength?: number;
|
|
10
|
+
dayStart: string;
|
|
11
|
+
dayEnd: string;
|
|
12
|
+
potentialCenter?: string;
|
|
12
13
|
defaultGroupMinimumBreakLength?: number;
|
|
13
14
|
defaultEventMinimumBreakLength?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultMaxNumWorkingHours?: number | boolean;
|
|
18
|
-
defaultMaxNumDailyWorkingHours?: number | boolean;
|
|
15
|
+
defaultDependencyMinimumBreakLength?: number;
|
|
16
|
+
defaultMaxNumWorkingHours?: number | boolean | any;
|
|
17
|
+
defaultMaxNumDailyWorkingHours?: number | boolean | any;
|
|
19
18
|
defaultDayRank?: number;
|
|
20
|
-
defaultDependencyRank?: number;
|
|
21
19
|
defaultGroupRank?: number;
|
|
20
|
+
defaultDependencyRank?: number;
|
|
21
|
+
defaultEventDensity?: number;
|
|
22
22
|
defaultEventWeight?: number;
|
|
23
23
|
defaultGroupWeight?: number;
|
|
24
24
|
defaultCourseWeight?: number;
|
|
25
|
-
|
|
25
|
+
defaultEventDurationVariance?: number;
|
|
26
|
+
defaultLunch?: Edge<LockedTime[]>;
|
|
26
27
|
}
|
|
27
28
|
export interface DivisionSettings extends DivisionSettingsBare {
|
|
28
29
|
_id?: Types.ObjectId;
|
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
+
import { Edge } from './common';
|
|
3
4
|
import { Area } from './areas';
|
|
4
5
|
import { Course } from './courses';
|
|
5
6
|
import { CourseEvent } from './course-events';
|
|
6
7
|
import { DivisionSettings } from './division-settings';
|
|
7
8
|
import { Group } from './groups';
|
|
8
9
|
import { Location } from './locations';
|
|
10
|
+
import { LockedTime } from './locked-times';
|
|
9
11
|
import { OverlapGroup } from './overlap-groups';
|
|
12
|
+
import { Person } from './persons';
|
|
10
13
|
import { Teacher } from './teachers';
|
|
11
14
|
import { Meta } from './meta';
|
|
12
|
-
export interface
|
|
13
|
-
displayName?: string;
|
|
15
|
+
export interface VirtualDivisionFields {
|
|
14
16
|
groups?: Group[];
|
|
15
17
|
teachers?: Teacher[];
|
|
16
18
|
locations?: Location[];
|
|
19
|
+
courses?: Course[];
|
|
17
20
|
events?: CourseEvent[];
|
|
21
|
+
persons?: Person[];
|
|
18
22
|
overlapGroups?: OverlapGroup[];
|
|
19
|
-
|
|
23
|
+
lockedTimes?: LockedTime[];
|
|
20
24
|
area?: Area;
|
|
25
|
+
}
|
|
26
|
+
export interface DivisionBare {
|
|
27
|
+
settings?: Edge<DivisionSettings>;
|
|
28
|
+
displayName?: string;
|
|
21
29
|
start?: moment.Moment | string | Date;
|
|
22
30
|
end?: moment.Moment | string | Date;
|
|
23
|
-
|
|
31
|
+
editedAt?: moment.Moment | string | Date;
|
|
24
32
|
createdAt?: string;
|
|
25
33
|
meta?: Meta;
|
|
26
34
|
}
|
|
27
|
-
export interface Division extends DivisionBare {
|
|
35
|
+
export interface Division extends DivisionBare, VirtualDivisionFields {
|
|
28
36
|
_id?: Types.ObjectId;
|
|
29
37
|
id?: string;
|
|
30
38
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { BreakLength } from './break-lengths';
|
|
4
5
|
import { LockedTime } from './locked-times';
|
|
5
6
|
import { Interval } from './intervals';
|
|
6
7
|
import { Day } from './days';
|
|
7
8
|
export interface GroupBare {
|
|
8
|
-
belongsTo?: Division
|
|
9
|
+
belongsTo?: Edge<Division>;
|
|
9
10
|
ids?: string;
|
|
10
11
|
displayName?: string;
|
|
11
12
|
minBreakLength?: BreakLength;
|
|
@@ -14,12 +15,14 @@ export interface GroupBare {
|
|
|
14
15
|
forbidOverlappingEvents?: boolean;
|
|
15
16
|
disableDayLengthPunishment?: boolean;
|
|
16
17
|
weight?: number;
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
rank?: number;
|
|
19
|
+
lockedTimes?: Edge<LockedTime[]>;
|
|
20
|
+
lunch?: Edge<LockedTime[]>;
|
|
19
21
|
intervals?: Interval[];
|
|
20
22
|
days?: Day[];
|
|
21
23
|
createdAt?: string;
|
|
22
24
|
updatedAt?: string;
|
|
25
|
+
lastModifiedBy?: unknown;
|
|
23
26
|
}
|
|
24
27
|
export interface Group extends GroupBare {
|
|
25
28
|
_id?: Types.ObjectId;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import { Division } from './divisions';
|
|
4
3
|
export interface IntervalBare {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
end?: moment.Moment | string;
|
|
4
|
+
start?: moment.Moment | string | Date;
|
|
5
|
+
end?: moment.Moment | string | Date;
|
|
8
6
|
day?: number;
|
|
9
7
|
type?: string;
|
|
10
8
|
}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { LockedTime } from './locked-times';
|
|
4
5
|
import { Interval } from './intervals';
|
|
5
6
|
import { Day } from './days';
|
|
6
7
|
export interface LocationBare {
|
|
7
|
-
belongsTo?: Division
|
|
8
|
+
belongsTo?: Edge<Division>;
|
|
8
9
|
ids?: string;
|
|
9
|
-
|
|
10
|
+
rank?: number;
|
|
10
11
|
seats?: number;
|
|
11
|
-
|
|
12
|
+
displayName?: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
lockedTimes?: Edge<LockedTime[]>;
|
|
15
|
+
lunch?: Edge<LockedTime[]>;
|
|
12
16
|
intervals?: Interval[];
|
|
13
17
|
days?: Day[];
|
|
14
18
|
area?: string;
|
|
15
19
|
minBreakLength?: number;
|
|
16
20
|
createdAt?: string;
|
|
17
21
|
updatedAt?: string;
|
|
22
|
+
lastModifiedBy?: unknown;
|
|
18
23
|
}
|
|
19
24
|
export interface Location extends LocationBare {
|
|
20
25
|
_id?: Types.ObjectId;
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
+
import { Edge } from './common';
|
|
4
|
+
import { Coalesced } from './common/coalesced';
|
|
3
5
|
import { Division } from './divisions';
|
|
4
6
|
import { Interval } from './intervals';
|
|
5
|
-
import {
|
|
7
|
+
import { Day } from './days';
|
|
8
|
+
import { Teacher } from './teachers';
|
|
9
|
+
import { Course } from './courses';
|
|
10
|
+
import { CourseEvent } from './course-events';
|
|
11
|
+
import { Person } from './persons';
|
|
12
|
+
import { Location } from './locations';
|
|
6
13
|
export interface LockedTimeBare {
|
|
7
|
-
belongsTo?: Division
|
|
14
|
+
belongsTo?: Edge<Division>;
|
|
8
15
|
displayName?: string;
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
color?: string;
|
|
17
|
+
type?: 'LUNCH' | 'ANY';
|
|
18
|
+
start?: moment.Moment | Date | string;
|
|
19
|
+
end?: moment.Moment | Date | string;
|
|
11
20
|
visible?: boolean;
|
|
12
21
|
parked?: boolean;
|
|
13
|
-
day?: number;
|
|
14
|
-
coalesced?: Coalesced[];
|
|
15
22
|
duration?: number;
|
|
16
23
|
durationVariance?: number;
|
|
24
|
+
coalesced?: Coalesced<Teacher | Course | CourseEvent | Location | Person>[];
|
|
17
25
|
intervals?: Interval[];
|
|
26
|
+
days?: Day[];
|
|
18
27
|
createdAt?: string;
|
|
19
|
-
|
|
28
|
+
updatedAt?: string;
|
|
29
|
+
lastModifiedBy?: unknown;
|
|
20
30
|
}
|
|
21
31
|
export interface LockedTime extends LockedTimeBare {
|
|
22
32
|
_id?: Types.ObjectId;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { Coalesced } from './common/coalesced';
|
|
5
|
+
import { Course } from './courses';
|
|
6
|
+
import { CourseEvent } from './course-events';
|
|
4
7
|
export interface OverlapGroupBare {
|
|
5
|
-
belongsTo?: Division
|
|
8
|
+
belongsTo?: Edge<Division>;
|
|
6
9
|
ids?: string;
|
|
7
|
-
coalesced?: Coalesced[];
|
|
8
|
-
species?: (Coalesced & {
|
|
10
|
+
coalesced?: Coalesced<Course>[];
|
|
11
|
+
species?: (Coalesced<CourseEvent> & {
|
|
9
12
|
id?: string;
|
|
10
13
|
})[];
|
|
11
14
|
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
lastModifiedBy?: unknown;
|
|
12
17
|
}
|
|
13
18
|
export interface OverlapGroup extends OverlapGroupBare {
|
|
14
19
|
_id?: Types.ObjectId;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
3
|
+
import { Division } from './divisions';
|
|
4
|
+
import { LockedTime } from './locked-times';
|
|
5
|
+
export interface PersonBare {
|
|
6
|
+
belongsTo?: Edge<Division>;
|
|
7
|
+
ids?: string;
|
|
8
|
+
displayName?: string;
|
|
9
|
+
lastname?: string;
|
|
10
|
+
firstname?: string;
|
|
11
|
+
lockedTimes?: Edge<LockedTime[]>;
|
|
12
|
+
lunch?: Edge<LockedTime[]>;
|
|
13
|
+
createdAt?: string;
|
|
14
|
+
updatedAt?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Person extends PersonBare {
|
|
17
|
+
_id?: Types.ObjectId;
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persons.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { Edge } from './common';
|
|
2
3
|
import { Division } from './divisions';
|
|
3
4
|
import { BreakLength } from './break-lengths';
|
|
4
5
|
import { LockedTime } from './locked-times';
|
|
5
6
|
import { Interval } from './intervals';
|
|
6
7
|
import { Day } from './days';
|
|
7
8
|
export interface TeacherBare {
|
|
8
|
-
belongsTo?: Division
|
|
9
|
+
belongsTo?: Edge<Division>;
|
|
9
10
|
ids?: string;
|
|
10
11
|
displayName?: string;
|
|
11
12
|
lastname?: string;
|
|
@@ -16,8 +17,8 @@ export interface TeacherBare {
|
|
|
16
17
|
forbidOverlappingEvents?: boolean;
|
|
17
18
|
disableDayLengthPunishment?: boolean;
|
|
18
19
|
weight?: number;
|
|
19
|
-
lockedTimes?: LockedTime[]
|
|
20
|
-
lunch?: LockedTime[]
|
|
20
|
+
lockedTimes?: Edge<LockedTime[]>;
|
|
21
|
+
lunch?: Edge<LockedTime[]>;
|
|
21
22
|
intervals?: Interval[];
|
|
22
23
|
days?: Day[];
|
|
23
24
|
rank?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royalschedule/maps",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.78",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"nodemon": "^2.0.19",
|
|
48
48
|
"ts-node": "^10.9.1",
|
|
49
49
|
"tslib": "^2.4.0",
|
|
50
|
-
"typescript": "^4.
|
|
50
|
+
"typescript": "^4.7.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"app-module-path": "^2.2.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface Course {
|
|
2
|
-
Klass: string;
|
|
3
|
-
Kurskod: string;
|
|
4
|
-
Sign: string;
|
|
5
|
-
Poäng: number;
|
|
6
|
-
Ht: number;
|
|
7
|
-
Resurs: 0 | 1;
|
|
8
|
-
Vt: number;
|
|
9
|
-
Summa: number;
|
|
10
|
-
Period: 'LÅ' | 'Vt' | 'Ht';
|
|
11
|
-
Anteckningar: string;
|
|
12
|
-
Antal: number;
|
|
13
|
-
Ämne: string;
|
|
14
|
-
Kursnamn: string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"course.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Meta.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { CoreMap } from '../index';
|
|
2
|
-
import { SchoolSoftMap } from '../../SchoolSoft/file';
|
|
3
|
-
import { PlanDigitalMap } from '../../PlanDigital';
|
|
4
|
-
import { IdunSoftMap } from '../../IdunSoft';
|
|
5
|
-
import { Skola24Map } from '../../Skola24';
|
|
6
|
-
import { RSMap } from '../../RS';
|
|
7
|
-
export declare const maps: readonly [{
|
|
8
|
-
readonly structure: (keyof import("../../SchoolSoft/file/types/events").Event)[];
|
|
9
|
-
readonly name: "SchoolSoft";
|
|
10
|
-
readonly map: typeof SchoolSoftMap;
|
|
11
|
-
readonly meta: {
|
|
12
|
-
readonly structure: "";
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
readonly structure: (keyof import("../../PlanDigital/types/course").Course)[];
|
|
16
|
-
readonly name: "Plan Digital";
|
|
17
|
-
readonly map: typeof PlanDigitalMap;
|
|
18
|
-
readonly meta: {
|
|
19
|
-
readonly structure: "";
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
readonly structure: any;
|
|
23
|
-
readonly name: "IdunSoft";
|
|
24
|
-
readonly map: typeof IdunSoftMap;
|
|
25
|
-
readonly meta: {
|
|
26
|
-
readonly structure: "";
|
|
27
|
-
};
|
|
28
|
-
}, {
|
|
29
|
-
readonly structure: any;
|
|
30
|
-
readonly name: "Skola24";
|
|
31
|
-
readonly map: typeof Skola24Map;
|
|
32
|
-
readonly meta: {
|
|
33
|
-
readonly structure: "";
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
readonly structure: any;
|
|
37
|
-
readonly name: "Royal Schedule Algorithm v0";
|
|
38
|
-
readonly map: typeof RSMap;
|
|
39
|
-
readonly meta: {
|
|
40
|
-
readonly structure: "RS/algorithm-0.1.3";
|
|
41
|
-
};
|
|
42
|
-
}, {
|
|
43
|
-
readonly structure: any;
|
|
44
|
-
readonly name: "Royal Schedule Algorithm v1";
|
|
45
|
-
readonly map: typeof import("../../RS/v1").V1;
|
|
46
|
-
readonly meta: {
|
|
47
|
-
readonly structure: "RS/algorithm-1.0.0";
|
|
48
|
-
};
|
|
49
|
-
}, {
|
|
50
|
-
readonly structure: any;
|
|
51
|
-
readonly name: "Royal Schedule Algorithm v2";
|
|
52
|
-
readonly map: typeof import("../../RS/v2").V2;
|
|
53
|
-
readonly meta: {
|
|
54
|
-
readonly structure: "RS/algorithm-2.0.0";
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
readonly structure: any;
|
|
58
|
-
readonly name: "Royal Schedule";
|
|
59
|
-
readonly map: typeof CoreMap;
|
|
60
|
-
readonly meta: {
|
|
61
|
-
readonly structure: "RS/core-1.0.0";
|
|
62
|
-
};
|
|
63
|
-
}];
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.maps = void 0;
|
|
7
|
-
|
|
8
|
-
var _index = require("../index");
|
|
9
|
-
|
|
10
|
-
var _file = require("../../SchoolSoft/file");
|
|
11
|
-
|
|
12
|
-
var _PlanDigital = require("../../PlanDigital");
|
|
13
|
-
|
|
14
|
-
var _IdunSoft = require("../../IdunSoft");
|
|
15
|
-
|
|
16
|
-
var _Skola = require("../../Skola24");
|
|
17
|
-
|
|
18
|
-
var _RS = require("../../RS");
|
|
19
|
-
|
|
20
|
-
var core_structure = {
|
|
21
|
-
groups: ['id'],
|
|
22
|
-
locations: ['id'],
|
|
23
|
-
teachers: ['id'],
|
|
24
|
-
courses: ['id', 'events', 'groups', 'subject', 'teachers']
|
|
25
|
-
};
|
|
26
|
-
var RS0_structure = {
|
|
27
|
-
input: ['courses', 'dependencies', 'settings', 'groups', 'teachers'],
|
|
28
|
-
output: ['course', 'day', 'dependencies', 'end', 'id', 'start']
|
|
29
|
-
};
|
|
30
|
-
var RS1_structure = {
|
|
31
|
-
events: ['collection', 'day', 'dependencies', 'end', 'id', 'start']
|
|
32
|
-
};
|
|
33
|
-
var RS2_structure = {
|
|
34
|
-
events: ['collection', 'day', 'dependencies', 'end', 'id', 'start']
|
|
35
|
-
};
|
|
36
|
-
var IdunSoft_structure = {
|
|
37
|
-
Grupp: ['ID', 'Klassnamn'],
|
|
38
|
-
Lärare: ['ID', 'Namn'],
|
|
39
|
-
Rum: ['ID', 'Namn'],
|
|
40
|
-
Ämne: ['Ämne', 'Betygskod'],
|
|
41
|
-
Lektion: ['LektionID', 'Ämne', 'Starttid', 'Sluttid', 'Lektionslängd', 'LärareID', 'GruppID', 'RumID', 'VeckodagID']
|
|
42
|
-
};
|
|
43
|
-
var Skola24_structure = {
|
|
44
|
-
unit_tblroom: ['PK', 'ID'],
|
|
45
|
-
school_tblsubject: ['PK', 'ID'],
|
|
46
|
-
school_tblteacher: ['PK', 'ID'],
|
|
47
|
-
school_tblgroup: ['PK', 'ID', 'bClass'],
|
|
48
|
-
school_tblplan: ['PK', 'FKSubject'],
|
|
49
|
-
school_tblcourse: [],
|
|
50
|
-
school_tblschedule: ['PK', 'Length', 'StartTime', 'DayOfWeek', 'FKSubject', 'CalcActualWeeks'],
|
|
51
|
-
school_tblgroup_group: ['FKGroup', 'FKGroupCon'],
|
|
52
|
-
school_tblplan_period: ['FKPlan', 'FKPeriod'],
|
|
53
|
-
school_tblplan_teacher: ['FKPlan', 'FKTeacher'],
|
|
54
|
-
school_tblplan_group: ['FKPlan', 'FKGroup'],
|
|
55
|
-
unit_tblperiod_date: ['FKPeriod', 'StartDate', 'EndDate'],
|
|
56
|
-
school_tblschedule_period: ['FKSchedule', 'FKPeriod'],
|
|
57
|
-
school_tblschedule_teacher: ['FKSchedule', 'FKTeacher'],
|
|
58
|
-
school_tblschedule_group: ['FKSchedule', 'FKGroup'],
|
|
59
|
-
school_tblschedule_room: ['FKSchedule', 'FKRoom']
|
|
60
|
-
};
|
|
61
|
-
var PlanDigital_structure = ['Klass', 'Kurskod', 'Sign', 'Poäng', 'Ht', 'Resurs', 'Vt', 'Summa', 'Period', 'Anteckningar', 'Antal', 'Ämne', 'Kursnamn'];
|
|
62
|
-
var SchoolSoft_structure = ['id', 'group', 'dayid', 'day', 'starttime', 'length', 'teacher', 'subject', 'room', 'period', 'inweek', 'exweek', 'exclass', 'realweeks'];
|
|
63
|
-
var maps = [{
|
|
64
|
-
structure: SchoolSoft_structure,
|
|
65
|
-
name: 'SchoolSoft',
|
|
66
|
-
map: _file.SchoolSoftMap,
|
|
67
|
-
meta: {
|
|
68
|
-
structure: ''
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
structure: PlanDigital_structure,
|
|
72
|
-
name: 'Plan Digital',
|
|
73
|
-
map: _PlanDigital.PlanDigitalMap,
|
|
74
|
-
meta: {
|
|
75
|
-
structure: ''
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
78
|
-
structure: IdunSoft_structure,
|
|
79
|
-
name: 'IdunSoft',
|
|
80
|
-
map: _IdunSoft.IdunSoftMap,
|
|
81
|
-
meta: {
|
|
82
|
-
structure: ''
|
|
83
|
-
}
|
|
84
|
-
}, {
|
|
85
|
-
structure: Skola24_structure,
|
|
86
|
-
name: 'Skola24',
|
|
87
|
-
map: _Skola.Skola24Map,
|
|
88
|
-
meta: {
|
|
89
|
-
structure: ''
|
|
90
|
-
}
|
|
91
|
-
}, {
|
|
92
|
-
structure: RS0_structure,
|
|
93
|
-
name: 'Royal Schedule Algorithm v0',
|
|
94
|
-
map: _RS.RSMap,
|
|
95
|
-
meta: {
|
|
96
|
-
structure: 'RS/algorithm-0.1.3'
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
structure: RS1_structure,
|
|
100
|
-
name: 'Royal Schedule Algorithm v1',
|
|
101
|
-
map: _RS.RSMap.V1,
|
|
102
|
-
meta: {
|
|
103
|
-
structure: 'RS/algorithm-1.0.0'
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
structure: RS2_structure,
|
|
107
|
-
name: 'Royal Schedule Algorithm v2',
|
|
108
|
-
map: _RS.RSMap.V2,
|
|
109
|
-
meta: {
|
|
110
|
-
structure: 'RS/algorithm-2.0.0'
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
structure: core_structure,
|
|
114
|
-
name: 'Royal Schedule',
|
|
115
|
-
map: _index.CoreMap,
|
|
116
|
-
meta: {
|
|
117
|
-
structure: 'RS/core-1.0.0'
|
|
118
|
-
}
|
|
119
|
-
}];
|
|
120
|
-
exports.maps = maps;
|
|
121
|
-
//# sourceMappingURL=index.js.map
|