@royalschedule/maps 4.0.15 → 4.0.16
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/Additio/from/courses.js.map +1 -1
- package/dist/Additio/from/events.js.map +1 -1
- package/dist/Additio/from/groups.js.map +1 -1
- package/dist/Additio/from/index.js.map +1 -1
- package/dist/Additio/from/locations.js.map +1 -1
- package/dist/Additio/from/persons.js.map +1 -1
- package/dist/Additio/from/schedules.d.ts +7 -6
- package/dist/Additio/from/schedules.js +2 -4
- package/dist/Additio/from/schedules.js.map +1 -1
- package/dist/Additio/from/teachers.js.map +1 -1
- package/dist/Additio/to/index.d.ts +13 -11
- package/dist/Additio/to/schedules.js +2 -4
- package/dist/Additio/to/schedules.js.map +1 -1
- package/dist/Admentum/from/courses.js.map +1 -1
- package/dist/Admentum/from/events.js.map +1 -1
- package/dist/Admentum/from/groups.js.map +1 -1
- package/dist/Admentum/from/index.js.map +1 -1
- package/dist/Admentum/from/locations.js.map +1 -1
- package/dist/Admentum/from/persons.js.map +1 -1
- package/dist/Admentum/from/schedules.d.ts +7 -6
- package/dist/Admentum/from/schedules.js +2 -4
- package/dist/Admentum/from/schedules.js.map +1 -1
- package/dist/Admentum/from/teachers.js.map +1 -1
- package/dist/Admentum/to/index.d.ts +9 -8
- package/dist/Admentum/to/schedules.js +4 -7
- package/dist/Admentum/to/schedules.js.map +1 -1
- package/dist/Excel/index.d.ts +263 -26
- package/dist/Excel/v1/from/index.js +2 -1
- package/dist/Excel/v1/from/index.js.map +1 -1
- package/dist/Excel/v1/index.d.ts +218 -20
- package/dist/Excel/v2/from/index.js +49 -57
- package/dist/Excel/v2/from/index.js.map +1 -1
- package/dist/Excel/v2/index.d.ts +263 -26
- package/dist/IdunSoft/from/courses.js.map +1 -1
- package/dist/IdunSoft/from/events.js +1 -2
- package/dist/IdunSoft/from/events.js.map +1 -1
- package/dist/IdunSoft/from/groups.js.map +1 -1
- package/dist/IdunSoft/from/index.js.map +1 -1
- package/dist/IdunSoft/from/locations.js.map +1 -1
- package/dist/IdunSoft/from/schedules.d.ts +6 -5
- package/dist/IdunSoft/from/schedules.js.map +1 -1
- package/dist/IdunSoft/from/teachers.js.map +1 -1
- package/dist/IdunSoft/to/index.d.ts +2 -1
- package/dist/IdunSoft/to/schedules.js +5 -8
- package/dist/IdunSoft/to/schedules.js.map +1 -1
- package/dist/InfoMentor/to/index.d.ts +2 -1
- package/dist/InfoMentor/to/schedules.js +3 -4
- package/dist/InfoMentor/to/schedules.js.map +1 -1
- package/dist/PlanDigital/from/index.js.map +1 -1
- package/dist/PlanDigital/from/schedules.js +9 -11
- package/dist/PlanDigital/from/schedules.js.map +1 -1
- package/dist/PlanDigital/index.d.ts +73 -58
- package/dist/Quiculum/file/to/index.d.ts +10 -9
- package/dist/Quiculum/file/to/schedules.js +5 -9
- package/dist/Quiculum/file/to/schedules.js.map +1 -1
- package/dist/RS/from/division.d.ts +2 -1
- package/dist/RS/from/division.js +9 -6
- package/dist/RS/from/division.js.map +1 -1
- package/dist/RS/from/index.js.map +1 -1
- package/dist/RS/from/schedules.d.ts +2 -1
- package/dist/RS/from/schedules.js.map +1 -1
- package/dist/RS/make-connected.d.ts +17 -16
- package/dist/RS/make-connected.js +63 -96
- package/dist/RS/make-connected.js.map +1 -1
- package/dist/RS/to/index.js.map +1 -1
- package/dist/RS/to/initial-configuration.js +4 -6
- package/dist/RS/to/initial-configuration.js.map +1 -1
- package/dist/RS/to/input/collections.js.map +1 -1
- package/dist/RS/to/input/default.js +1 -2
- package/dist/RS/to/input/default.js.map +1 -1
- package/dist/RS/to/input/dependencies.js +1 -3
- package/dist/RS/to/input/dependencies.js.map +1 -1
- package/dist/RS/to/input/dynamic-locked-times.js +1 -2
- package/dist/RS/to/input/dynamic-locked-times.js.map +1 -1
- package/dist/RS/to/input/events.js +5 -3
- package/dist/RS/to/input/events.js.map +1 -1
- package/dist/RS/to/input/groups.js.map +1 -1
- package/dist/RS/to/input/individuals.js +2 -3
- package/dist/RS/to/input/individuals.js.map +1 -1
- package/dist/RS/to/input/input.js +1 -3
- package/dist/RS/to/input/input.js.map +1 -1
- package/dist/RS/to/input/intervals.js +2 -4
- package/dist/RS/to/input/intervals.js.map +1 -1
- package/dist/RS/to/input/periods.js +6 -8
- package/dist/RS/to/input/periods.js.map +1 -1
- package/dist/RS/to/input/settings.js.map +1 -1
- package/dist/RS/to/input/teachers.js.map +1 -1
- package/dist/RS/to/input/util/attach-locked-times.js.map +1 -1
- package/dist/RS/to/input/util/parse-days.js.map +1 -1
- package/dist/RS/to/input/util/parse-group-references.js.map +1 -1
- package/dist/RS/to/input/util/parse-intervals.js +2 -4
- package/dist/RS/to/input/util/parse-intervals.js.map +1 -1
- package/dist/RS/to/input/util/parse-location-references.js +1 -2
- package/dist/RS/to/input/util/parse-location-references.js.map +1 -1
- package/dist/RS/to/input/util/parse-max-working-hours.js.map +1 -1
- package/dist/RS/to/input/util/parse-minimum-break-length.js.map +1 -1
- package/dist/RS/to/input/util/util.js +1 -2
- package/dist/RS/to/input/util/util.js.map +1 -1
- package/dist/RS/to/schedules.js +1 -1
- package/dist/RS/to/schedules.js.map +1 -1
- package/dist/RS/types/to.d.ts +12 -3
- package/dist/RS/types/to.js +1 -1
- package/dist/RS/types/to.js.map +1 -1
- package/dist/SS12000/from/activities.js +1 -2
- package/dist/SS12000/from/activities.js.map +1 -1
- package/dist/SS12000/from/calendar-events.js.map +1 -1
- package/dist/SS12000/from/duties.js.map +1 -1
- package/dist/SS12000/from/groups.js.map +1 -1
- package/dist/SS12000/from/index.js.map +1 -1
- package/dist/SS12000/from/persons.js.map +1 -1
- package/dist/SS12000/from/resources.js.map +1 -1
- package/dist/SS12000/from/rooms.js.map +1 -1
- package/dist/SS12000/from/syllabuses.js.map +1 -1
- package/dist/SS12000/index.d.ts +12567 -9
- package/dist/SS12000/to/activities.js.map +1 -1
- package/dist/SS12000/to/calendar-events.js.map +1 -1
- package/dist/SS12000/to/common.js.map +1 -1
- package/dist/SS12000/to/duties.js.map +1 -1
- package/dist/SS12000/to/groups.js.map +1 -1
- package/dist/SS12000/to/index.d.ts +17 -16
- package/dist/SS12000/to/persons.js.map +1 -1
- package/dist/SS12000/to/resources.js.map +1 -1
- package/dist/SS12000/to/rooms.js.map +1 -1
- package/dist/SS12000/to/syllabuses.js.map +1 -1
- package/dist/SchoolSoft/api/from/index.js.map +1 -1
- package/dist/SchoolSoft/api/from/schedules.js +8 -12
- package/dist/SchoolSoft/api/from/schedules.js.map +1 -1
- package/dist/SchoolSoft/api/index.d.ts +444 -9
- package/dist/SchoolSoft/file/from/index.js.map +1 -1
- package/dist/SchoolSoft/file/from/schedules.js +83 -87
- package/dist/SchoolSoft/file/from/schedules.js.map +1 -1
- package/dist/SchoolSoft/file/index.d.ts +2 -1
- package/dist/SchoolSoft/file/to/index.d.ts +5 -4
- package/dist/SchoolSoft/file/to/schedules.js +1 -2
- package/dist/SchoolSoft/file/to/schedules.js.map +1 -1
- package/dist/SchoolSoft/index.d.ts +2 -1
- package/dist/Schoolity/txt/to/index.d.ts +2 -1
- package/dist/Schoolity/txt/to/schedules.js +5 -12
- package/dist/Schoolity/txt/to/schedules.js.map +1 -1
- package/dist/Skola24/mdb/from/course-and-events.js +3 -5
- package/dist/Skola24/mdb/from/course-and-events.js.map +1 -1
- package/dist/Skola24/mdb/from/groups.js.map +1 -1
- package/dist/Skola24/mdb/from/index.js.map +1 -1
- package/dist/Skola24/mdb/from/locations.js.map +1 -1
- package/dist/Skola24/mdb/from/schedule.d.ts +6 -5
- package/dist/Skola24/mdb/from/schedule.js.map +1 -1
- package/dist/Skola24/mdb/from/teachers.js.map +1 -1
- package/dist/Skola24/txt/from/calendar-exceptions.js +1 -2
- package/dist/Skola24/txt/from/calendar-exceptions.js.map +1 -1
- package/dist/Skola24/txt/from/division.js.map +1 -1
- package/dist/Skola24/txt/from/index.js.map +1 -1
- package/dist/Skola24/txt/from/period.js +31 -34
- package/dist/Skola24/txt/from/period.js.map +1 -1
- package/dist/Skola24/txt/from/schedules.d.ts +9 -8
- package/dist/Skola24/txt/from/schedules.js +10 -12
- package/dist/Skola24/txt/from/schedules.js.map +1 -1
- package/dist/Skola24/txt/from/util.js.map +1 -1
- package/dist/Skola24/txt/index.d.ts +2 -1
- package/dist/Skola24/txt/to/index.d.ts +2 -1
- package/dist/Skola24/txt/to/schedules.js +5 -12
- package/dist/Skola24/txt/to/schedules.js.map +1 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/functions.js +46 -10
- package/dist/common/functions.js.map +1 -1
- package/dist/common/get-date.js.map +1 -1
- package/dist/common/make-chainable/index.js.map +1 -1
- package/dist/common/types.d.ts +3 -6
- package/dist/core/from/configurations.js.map +1 -1
- package/dist/core/from/courses.js.map +1 -1
- package/dist/core/from/events.js +1 -1
- package/dist/core/from/events.js.map +1 -1
- package/dist/core/from/exceptions.js.map +1 -1
- package/dist/core/from/groups.js.map +1 -1
- package/dist/core/from/index.js +9 -6
- package/dist/core/from/index.js.map +1 -1
- package/dist/core/from/locations.js.map +1 -1
- package/dist/core/from/locked-times.js.map +1 -1
- package/dist/core/from/overlap-groups.js.map +1 -1
- package/dist/core/from/periods.js.map +1 -1
- package/dist/core/from/persons.js.map +1 -1
- package/dist/core/from/root-intervals.js.map +1 -1
- package/dist/core/from/schedules.js.map +1 -1
- package/dist/core/from/syllabuses.js.map +1 -1
- package/dist/core/from/teachers.js.map +1 -1
- package/dist/core/index.d.ts +24 -1
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/interfaces/index.d.ts +23 -0
- package/dist/core/interfaces/index.js +6 -0
- package/dist/core/interfaces/other/companies.d.ts +132 -0
- package/dist/core/interfaces/other/companies.js +9 -0
- package/dist/core/interfaces/other/companies.js.map +1 -0
- package/dist/core/interfaces/other/etc.d.ts +19 -0
- package/dist/core/interfaces/other/index.d.ts +6 -0
- package/dist/core/interfaces/other/integrations.d.ts +17 -0
- package/dist/core/interfaces/other/operations.d.ts +36 -0
- package/dist/core/interfaces/other/policies.d.ts +31 -0
- package/dist/core/interfaces/other/sync-logs.d.ts +21 -0
- package/dist/core/interfaces/other/users.d.ts +35 -0
- package/dist/core/interfaces/vertices/companies.d.ts +8 -0
- package/dist/core/interfaces/vertices/configurations.d.ts +58 -0
- package/dist/core/interfaces/vertices/courses.d.ts +68 -0
- package/dist/core/{types → interfaces/vertices}/division-settings.d.ts +31 -29
- package/dist/core/interfaces/vertices/divisions.d.ts +31 -0
- package/dist/core/interfaces/vertices/events.d.ts +100 -0
- package/dist/core/interfaces/vertices/exceptions.d.ts +74 -0
- package/dist/core/interfaces/vertices/generations.d.ts +23 -0
- package/dist/core/interfaces/vertices/groups.d.ts +53 -0
- package/dist/core/interfaces/vertices/index.d.ts +209 -0
- package/dist/core/interfaces/vertices/index.js +3 -0
- package/dist/core/interfaces/vertices/locations.d.ts +22 -0
- package/dist/core/interfaces/vertices/locked-times.d.ts +37 -0
- package/dist/core/interfaces/vertices/overlap-groups.d.ts +17 -0
- package/dist/core/interfaces/vertices/periods.d.ts +15 -0
- package/dist/core/interfaces/vertices/persons.d.ts +32 -0
- package/dist/core/interfaces/vertices/properties/belongs-to.d.ts +11 -0
- package/dist/core/interfaces/vertices/properties/coalesced.d.ts +8 -0
- package/dist/core/interfaces/vertices/properties/days.d.ts +9 -0
- package/dist/core/interfaces/vertices/properties/index.d.ts +15 -0
- package/dist/core/interfaces/vertices/properties/intervals.d.ts +10 -0
- package/dist/core/{types/common → interfaces/vertices/properties}/maximum-schedule-span.d.ts +1 -1
- package/dist/core/interfaces/vertices/properties/min-break-length.d.ts +5 -0
- package/dist/core/{types/common/planned-schedule-duration.d.ts → interfaces/vertices/properties/planned-scheduled-duration.d.ts} +2 -2
- package/dist/core/interfaces/vertices/properties/species.d.ts +9 -0
- package/dist/core/interfaces/vertices/properties/tags.d.ts +9 -0
- package/dist/core/interfaces/vertices/properties/week.d.ts +22 -0
- package/dist/core/interfaces/vertices/properties/week.js +6 -0
- package/dist/core/interfaces/vertices/properties/week.js.map +1 -0
- package/dist/core/interfaces/vertices/root-intervals.d.ts +14 -0
- package/dist/core/interfaces/vertices/syllabuses.d.ts +18 -0
- package/dist/core/interfaces/vertices/teachers.d.ts +43 -0
- package/dist/core/interfaces/vertices/users.d.ts +8 -0
- package/dist/core/interfaces/vertices/util/common.d.ts +28 -0
- package/dist/core/interfaces/vertices/util/custom-vertex-export/index.d.ts +31 -0
- package/dist/core/interfaces/vertices/util/custom-vertex-export/util.d.ts +51 -0
- package/dist/core/interfaces/vertices/util/deep-vertex-export/index.d.ts +64 -0
- package/dist/core/interfaces/vertices/util/edges.d.ts +105 -0
- package/dist/core/interfaces/vertices/util/index.d.ts +5 -0
- package/dist/core/interfaces/vertices/util/keys-of.d.ts +27 -0
- package/dist/core/interfaces/vertices/util/serialized-vertex-export.d.ts +12 -0
- package/dist/core/interfaces/vertices/util/util.d.ts +76 -0
- package/dist/core/interfaces/vertices/util/vertex-query/index.d.ts +44 -0
- package/dist/core/interfaces/vertices/util/vertex-query/util.d.ts +13 -0
- package/dist/core/interfaces/vertices/util/vertex.d.ts +70 -0
- package/dist/core/interfaces/vertices/vertex-query.d.ts +102 -0
- package/dist/core/interfaces/vertices/vertex-query.js +94 -0
- package/dist/core/interfaces/vertices/vertex-query.js.map +1 -0
- package/dist/core/to/configurations.js +2 -3
- package/dist/core/to/configurations.js.map +1 -1
- package/dist/core/to/courses.js +2 -3
- package/dist/core/to/courses.js.map +1 -1
- package/dist/core/to/division.js.map +1 -1
- package/dist/core/to/events.js +2 -3
- package/dist/core/to/events.js.map +1 -1
- package/dist/core/to/exceptions.js +4 -4
- package/dist/core/to/exceptions.js.map +1 -1
- package/dist/core/to/groups.js +2 -3
- package/dist/core/to/groups.js.map +1 -1
- package/dist/core/to/locations.js +2 -3
- package/dist/core/to/locations.js.map +1 -1
- package/dist/core/to/locked-times.js +2 -3
- package/dist/core/to/locked-times.js.map +1 -1
- package/dist/core/to/overlap-groups.js +2 -3
- package/dist/core/to/overlap-groups.js.map +1 -1
- package/dist/core/to/periods.js +2 -3
- package/dist/core/to/periods.js.map +1 -1
- package/dist/core/to/persons.js +3 -9
- package/dist/core/to/persons.js.map +1 -1
- package/dist/core/to/root-intervals.js +2 -3
- package/dist/core/to/root-intervals.js.map +1 -1
- package/dist/core/to/schedules.d.ts +17 -18
- package/dist/core/to/schedules.js.map +1 -1
- package/dist/core/to/settings.js +2 -3
- package/dist/core/to/settings.js.map +1 -1
- package/dist/core/to/syllabuses.js +2 -3
- package/dist/core/to/syllabuses.js.map +1 -1
- package/dist/core/to/teachers.js +4 -4
- package/dist/core/to/teachers.js.map +1 -1
- package/dist/core/to/util.d.ts +4 -8
- package/dist/core/to/util.js +7 -5
- package/dist/core/to/util.js.map +1 -1
- package/dist/core/types/common/index.d.ts +4 -41
- package/dist/core/types/index.d.ts +108 -112
- package/dist/core/util.js +4 -5
- package/dist/core/util.js.map +1 -1
- package/dist/identify/constants/index.d.ts +1 -1
- package/dist/identify/constants/index.js.map +1 -1
- package/dist/identify/index.js +1 -2
- package/dist/identify/index.js.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +4 -1
- package/dist/sdui/from/classes.js.map +1 -1
- package/dist/sdui/from/courses.js.map +1 -1
- package/dist/sdui/from/holidays.js.map +1 -1
- package/dist/sdui/from/index.js.map +1 -1
- package/dist/sdui/from/lessons.js +4 -0
- package/dist/sdui/from/lessons.js.map +1 -1
- package/dist/sdui/from/rooms.js.map +1 -1
- package/dist/sdui/from/schedules.d.ts +10 -8
- package/dist/sdui/from/schedules.js.map +1 -1
- package/dist/sdui/from/school-years.js +0 -1
- package/dist/sdui/from/school-years.js.map +1 -1
- package/dist/sdui/from/substitution-plans.js.map +1 -1
- package/dist/sdui/from/teachers.js.map +1 -1
- package/dist/sdui/index.d.ts +1 -1
- package/dist/sdui/to/classes.js.map +1 -1
- package/dist/sdui/to/courses.js.map +1 -1
- package/dist/sdui/to/holidays.js.map +1 -1
- package/dist/sdui/to/hours.js.map +1 -1
- package/dist/sdui/to/index.d.ts +12 -10
- package/dist/sdui/to/lessons.js.map +1 -1
- package/dist/sdui/to/rooms.js.map +1 -1
- package/dist/sdui/to/schedules.js.map +1 -1
- package/dist/sdui/to/school-years.js.map +1 -1
- package/dist/sdui/to/substitution-plans.js +3 -6
- package/dist/sdui/to/substitution-plans.js.map +1 -1
- package/dist/sdui/to/teachers.js.map +1 -1
- package/dist/vKlass/from/index.js.map +1 -1
- package/dist/vKlass/from/schedule.d.ts +4 -3
- package/dist/vKlass/from/schedule.js +2 -2
- package/dist/vKlass/from/schedule.js.map +1 -1
- package/dist/vKlass/to/schedules.d.ts +4 -4
- package/dist/vKlass/to/schedules.js +6 -17
- package/dist/vKlass/to/schedules.js.map +1 -1
- package/package.json +24 -22
- package/dist/core/types/areas.d.ts +0 -10
- package/dist/core/types/common/break-lengths.d.ts +0 -5
- package/dist/core/types/common/days.d.ts +0 -8
- package/dist/core/types/common/intervals.d.ts +0 -20
- package/dist/core/types/common/tag.d.ts +0 -9
- package/dist/core/types/configurations.d.ts +0 -31
- package/dist/core/types/courses.d.ts +0 -60
- package/dist/core/types/divisions.d.ts +0 -24
- package/dist/core/types/events.d.ts +0 -56
- package/dist/core/types/exceptions.d.ts +0 -35
- package/dist/core/types/groups.d.ts +0 -44
- package/dist/core/types/locations.d.ts +0 -27
- package/dist/core/types/locked-times.d.ts +0 -33
- package/dist/core/types/overlap-groups.d.ts +0 -14
- package/dist/core/types/periods.d.ts +0 -14
- package/dist/core/types/persons.d.ts +0 -38
- package/dist/core/types/root-intervals.d.ts +0 -13
- package/dist/core/types/schedules.d.ts +0 -44
- package/dist/core/types/syllabus.d.ts +0 -18
- package/dist/core/types/teachers.d.ts +0 -44
- package/dist/core/vertex-mapping.d.ts +0 -69
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../../common/types.js";
|
|
2
|
-
|
|
3
|
-
//#region src/core/types/common/intervals.d.ts
|
|
4
|
-
type Interval<T = DateType> = {
|
|
5
|
-
start: T;
|
|
6
|
-
end: T;
|
|
7
|
-
};
|
|
8
|
-
interface AllowedInterval<T = DateType> extends Interval<T> {
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated IS THIS REALLY OPTIONAL? ALSO, IS THIS USED ANYWHERE?
|
|
11
|
-
*/
|
|
12
|
-
day?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated WHAT IS THE VALUE OF THE STRING!?
|
|
15
|
-
*/
|
|
16
|
-
type?: string;
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { AllowedInterval, Interval };
|
|
20
|
-
//# sourceMappingURL=intervals.d.ts.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { Division } from "./divisions.js";
|
|
3
|
-
|
|
4
|
-
//#region src/core/types/configurations.d.ts
|
|
5
|
-
type ConfigurationType = 'filter' | 'template' | 'rule';
|
|
6
|
-
interface ConfigurationDomain {
|
|
7
|
-
to: Division | Vertex;
|
|
8
|
-
toModel: 'companies' | 'divisions';
|
|
9
|
-
}
|
|
10
|
-
interface ConfigurationMetadata {
|
|
11
|
-
active: boolean;
|
|
12
|
-
version: string;
|
|
13
|
-
tags: {
|
|
14
|
-
value: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
18
|
-
type Configuration = Vertex & {
|
|
19
|
-
domain: ConfigurationDomain[];
|
|
20
|
-
type: ConfigurationType;
|
|
21
|
-
metadata: ConfigurationMetadata;
|
|
22
|
-
lastModifiedBy?: Vertex;
|
|
23
|
-
data?: any;
|
|
24
|
-
displayName?: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
category?: string;
|
|
27
|
-
enabled?: boolean;
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { Configuration };
|
|
31
|
-
//# sourceMappingURL=configurations.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { AvailableLocation, GroupReference, PersonReference, Vertex } from "./common/index.js";
|
|
3
|
-
import { BreakLength } from "./common/break-lengths.js";
|
|
4
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
5
|
-
import { Day } from "./common/days.js";
|
|
6
|
-
import { Tag } from "./common/tag.js";
|
|
7
|
-
import { Group } from "./groups.js";
|
|
8
|
-
import { Person } from "./persons.js";
|
|
9
|
-
import { Teacher } from "./teachers.js";
|
|
10
|
-
import { Location } from "./locations.js";
|
|
11
|
-
import { LockedTime } from "./locked-times.js";
|
|
12
|
-
import { OverlapGroup } from "./overlap-groups.js";
|
|
13
|
-
import { Period } from "./periods.js";
|
|
14
|
-
import { Event } from "./events.js";
|
|
15
|
-
import { Exception } from "./exceptions.js";
|
|
16
|
-
import { Syllabus } from "./syllabus.js";
|
|
17
|
-
import { Division } from "./divisions.js";
|
|
18
|
-
|
|
19
|
-
//#region src/core/types/courses.d.ts
|
|
20
|
-
type Course = Vertex & {
|
|
21
|
-
belongsTo?: Division;
|
|
22
|
-
events?: Event[];
|
|
23
|
-
period?: Period;
|
|
24
|
-
groups?: GroupReference<Group, Person>[];
|
|
25
|
-
teachers?: PersonReference<Teacher>[];
|
|
26
|
-
participants?: PersonReference<Person>[];
|
|
27
|
-
locations?: AvailableLocation<Location>[];
|
|
28
|
-
density?: number;
|
|
29
|
-
weight?: number;
|
|
30
|
-
subject?: string;
|
|
31
|
-
minBreakLength?: BreakLength;
|
|
32
|
-
weeks?: number[];
|
|
33
|
-
displayName?: string;
|
|
34
|
-
color?: string;
|
|
35
|
-
eventDurationVariance?: number;
|
|
36
|
-
totalTime?: string;
|
|
37
|
-
type?: string;
|
|
38
|
-
comment?: string;
|
|
39
|
-
startDate?: DateType;
|
|
40
|
-
endDate?: DateType;
|
|
41
|
-
exceptions?: Exception[];
|
|
42
|
-
lockedTimes?: LockedTime[];
|
|
43
|
-
/**
|
|
44
|
-
* @note an empty array is the same as undefined
|
|
45
|
-
*/
|
|
46
|
-
intervals?: AllowedInterval[];
|
|
47
|
-
centerOfAttraction?: string | null;
|
|
48
|
-
syllabus?: Syllabus;
|
|
49
|
-
days?: Day[];
|
|
50
|
-
overlapGroup?: OverlapGroup | null;
|
|
51
|
-
plannedDuration?: string;
|
|
52
|
-
tags?: Tag[];
|
|
53
|
-
/** @deprecated replaced by plannedDuration? */
|
|
54
|
-
minutesPerWeek?: number;
|
|
55
|
-
/** @deprecated replaced by plannedDuration? */
|
|
56
|
-
expectedTotalHours?: number;
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { Course };
|
|
60
|
-
//# sourceMappingURL=courses.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { Vertex } from "./common/index.js";
|
|
3
|
-
import { DivisionSettings } from "./division-settings.js";
|
|
4
|
-
import { Meta } from "./common/meta.js";
|
|
5
|
-
|
|
6
|
-
//#region src/core/types/divisions.d.ts
|
|
7
|
-
|
|
8
|
-
type StepGuideProgress = {
|
|
9
|
-
checked: string[];
|
|
10
|
-
completed: boolean;
|
|
11
|
-
updatedAt?: DateType;
|
|
12
|
-
};
|
|
13
|
-
type Division = Vertex & {
|
|
14
|
-
settings?: DivisionSettings;
|
|
15
|
-
stepGuideProgress?: StepGuideProgress;
|
|
16
|
-
displayName?: string;
|
|
17
|
-
start?: DateType;
|
|
18
|
-
end?: DateType;
|
|
19
|
-
editedAt?: DateType;
|
|
20
|
-
meta?: Meta;
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Division };
|
|
24
|
-
//# sourceMappingURL=divisions.d.ts.map
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { AvailableLocation, GroupReference, PersonReference, Vertex } from "./common/index.js";
|
|
3
|
-
import { BreakLength } from "./common/break-lengths.js";
|
|
4
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
5
|
-
import { Day } from "./common/days.js";
|
|
6
|
-
import { Tag } from "./common/tag.js";
|
|
7
|
-
import { Group } from "./groups.js";
|
|
8
|
-
import { Person } from "./persons.js";
|
|
9
|
-
import { Teacher } from "./teachers.js";
|
|
10
|
-
import { Location } from "./locations.js";
|
|
11
|
-
import { LockedTime } from "./locked-times.js";
|
|
12
|
-
import { OverlapGroup } from "./overlap-groups.js";
|
|
13
|
-
import { Period } from "./periods.js";
|
|
14
|
-
import { Exception } from "./exceptions.js";
|
|
15
|
-
import { Course } from "./courses.js";
|
|
16
|
-
import { Division } from "./divisions.js";
|
|
17
|
-
|
|
18
|
-
//#region src/core/types/events.d.ts
|
|
19
|
-
type Event = Vertex & {
|
|
20
|
-
belongsTo?: Division;
|
|
21
|
-
course?: Course;
|
|
22
|
-
period?: Period | null;
|
|
23
|
-
groups?: GroupReference<Group, Person>[] | null;
|
|
24
|
-
teachers?: PersonReference<Teacher>[] | null;
|
|
25
|
-
participants?: PersonReference<Person>[] | null;
|
|
26
|
-
locations?: AvailableLocation<Location>[] | null;
|
|
27
|
-
inLocations?: (Location | null)[];
|
|
28
|
-
exceptions?: Exception[];
|
|
29
|
-
density?: number;
|
|
30
|
-
weight?: number;
|
|
31
|
-
parked?: boolean;
|
|
32
|
-
color?: string;
|
|
33
|
-
fixedStart?: boolean;
|
|
34
|
-
start?: DateType;
|
|
35
|
-
end?: DateType;
|
|
36
|
-
minBreakLength?: BreakLength;
|
|
37
|
-
weeks?: number[];
|
|
38
|
-
type?: string;
|
|
39
|
-
displayName?: string;
|
|
40
|
-
visible?: boolean;
|
|
41
|
-
duration?: number;
|
|
42
|
-
preferredDuration?: number;
|
|
43
|
-
durationVariance?: number;
|
|
44
|
-
lockedTimes?: LockedTime[] | null;
|
|
45
|
-
/**
|
|
46
|
-
* @note an empty array is the same as undefined
|
|
47
|
-
*/
|
|
48
|
-
intervals?: AllowedInterval[];
|
|
49
|
-
centerOfAttraction?: string | null;
|
|
50
|
-
days?: Day[] | null;
|
|
51
|
-
overlapSpecies?: OverlapGroup | null;
|
|
52
|
-
tags?: Tag[];
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
|
-
export { Event };
|
|
56
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { Coalesced, Vertex } from "./common/index.js";
|
|
3
|
-
import { Group } from "./groups.js";
|
|
4
|
-
import { Person } from "./persons.js";
|
|
5
|
-
import { Teacher } from "./teachers.js";
|
|
6
|
-
import { Location } from "./locations.js";
|
|
7
|
-
import { Event } from "./events.js";
|
|
8
|
-
import { Course } from "./courses.js";
|
|
9
|
-
import { Division } from "./divisions.js";
|
|
10
|
-
|
|
11
|
-
//#region src/core/types/exceptions.d.ts
|
|
12
|
-
declare const exceptionStatus: readonly ["pending", "failed", "completed", "rejected", "approved"];
|
|
13
|
-
type ExceptionStatus = typeof exceptionStatus[number];
|
|
14
|
-
type _Exception = Coalesced<Group, 'groups'> | Coalesced<Course, 'courses'> | Coalesced<Teacher, 'teachers'> | Coalesced<Location, 'locations'> | Coalesced<Person, 'persons'>;
|
|
15
|
-
type Exception = Vertex & {
|
|
16
|
-
belongsTo?: Division;
|
|
17
|
-
reason?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
sources?: Coalesced<Event | Course | Group | Teacher | Location | Person>[];
|
|
20
|
-
exceptions?: Exception[];
|
|
21
|
-
parentExceptions?: Exception[];
|
|
22
|
-
start?: DateType;
|
|
23
|
-
end?: DateType;
|
|
24
|
-
type?: 'absence' | 'calendar';
|
|
25
|
-
action?: 'cancel' | 'remove' | 'reschedule' | 'add' | 'substitute';
|
|
26
|
-
handleStatus?: ExceptionStatus;
|
|
27
|
-
exception?: Partial<_Exception> & {
|
|
28
|
-
include?: boolean;
|
|
29
|
-
start?: DateType;
|
|
30
|
-
end?: DateType;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Exception };
|
|
35
|
-
//# sourceMappingURL=exceptions.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { BreakLength } from "./common/break-lengths.js";
|
|
3
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
4
|
-
import { Day } from "./common/days.js";
|
|
5
|
-
import { RootInterval } from "./root-intervals.js";
|
|
6
|
-
import { MaximumScheduleSpan } from "./common/maximum-schedule-span.js";
|
|
7
|
-
import { Tag } from "./common/tag.js";
|
|
8
|
-
import { Person } from "./persons.js";
|
|
9
|
-
import { LockedTime } from "./locked-times.js";
|
|
10
|
-
import { Exception } from "./exceptions.js";
|
|
11
|
-
import { Division } from "./divisions.js";
|
|
12
|
-
|
|
13
|
-
//#region src/core/types/groups.d.ts
|
|
14
|
-
type Group = Vertex & {
|
|
15
|
-
belongsTo?: Division;
|
|
16
|
-
displayName?: string;
|
|
17
|
-
minBreakLength?: BreakLength;
|
|
18
|
-
maximumScheduleSpan?: MaximumScheduleSpan;
|
|
19
|
-
forbidOverlappingEvents?: boolean;
|
|
20
|
-
disableDayLengthPunishment?: boolean;
|
|
21
|
-
weight?: number;
|
|
22
|
-
rank?: number;
|
|
23
|
-
species?: 'class';
|
|
24
|
-
exceptions?: Exception[];
|
|
25
|
-
parentGroups?: Group[];
|
|
26
|
-
subGroups?: Group[];
|
|
27
|
-
lockedTimes?: LockedTime[];
|
|
28
|
-
lunch?: LockedTime[];
|
|
29
|
-
members?: Person[];
|
|
30
|
-
/**
|
|
31
|
-
* @note an empty array is the same as undefined
|
|
32
|
-
*/
|
|
33
|
-
intervals?: AllowedInterval[];
|
|
34
|
-
rootInterval?: RootInterval;
|
|
35
|
-
days?: Day[];
|
|
36
|
-
tags?: Tag[];
|
|
37
|
-
/** @deprecated replaced by maximumScheduleSpan */
|
|
38
|
-
maxNumWorkingHours?: number | boolean;
|
|
39
|
-
/** @deprecated replaced by maximumScheduleSpan */
|
|
40
|
-
maxNumDailyWorkingHours?: number | number[] | boolean;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { Group };
|
|
44
|
-
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
3
|
-
import { Day } from "./common/days.js";
|
|
4
|
-
import { Tag } from "./common/tag.js";
|
|
5
|
-
import { LockedTime } from "./locked-times.js";
|
|
6
|
-
import { Exception } from "./exceptions.js";
|
|
7
|
-
import { Division } from "./divisions.js";
|
|
8
|
-
|
|
9
|
-
//#region src/core/types/locations.d.ts
|
|
10
|
-
type Location = Vertex & {
|
|
11
|
-
belongsTo?: Division;
|
|
12
|
-
rank?: number;
|
|
13
|
-
maximumCapacity?: number;
|
|
14
|
-
displayName?: string;
|
|
15
|
-
text?: string;
|
|
16
|
-
exceptions?: Exception[];
|
|
17
|
-
lockedTimes?: LockedTime[];
|
|
18
|
-
lunch?: LockedTime[];
|
|
19
|
-
intervals?: AllowedInterval[];
|
|
20
|
-
days?: Day[];
|
|
21
|
-
area?: string;
|
|
22
|
-
minBreakLength?: number;
|
|
23
|
-
tags?: Tag[];
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { Location };
|
|
27
|
-
//# sourceMappingURL=locations.d.ts.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { Coalesced, Vertex } from "./common/index.js";
|
|
3
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
4
|
-
import { Day } from "./common/days.js";
|
|
5
|
-
import { Tag } from "./common/tag.js";
|
|
6
|
-
import { Group } from "./groups.js";
|
|
7
|
-
import { Teacher } from "./teachers.js";
|
|
8
|
-
import { Location } from "./locations.js";
|
|
9
|
-
import { Event } from "./events.js";
|
|
10
|
-
import { Course } from "./courses.js";
|
|
11
|
-
import { Division } from "./divisions.js";
|
|
12
|
-
|
|
13
|
-
//#region src/core/types/locked-times.d.ts
|
|
14
|
-
type Type = /* 'ANY' | */'LUNCH' | 'COMPLEMENTARY_TIME';
|
|
15
|
-
type LockedTime = Vertex & {
|
|
16
|
-
belongsTo?: Division;
|
|
17
|
-
displayName?: string;
|
|
18
|
-
color?: string;
|
|
19
|
-
type?: Type;
|
|
20
|
-
start?: DateType;
|
|
21
|
-
end?: DateType;
|
|
22
|
-
visible?: boolean;
|
|
23
|
-
parked?: boolean;
|
|
24
|
-
duration?: number;
|
|
25
|
-
durationVariance?: number;
|
|
26
|
-
coalesced?: (Coalesced<Group, 'groups'> | Coalesced<Teacher, 'teachers'> | Coalesced<Course, 'courses'> | Coalesced<Event, 'events'> | Coalesced<Event, 'courseevents'> | Coalesced<Location, 'locations'>)[];
|
|
27
|
-
intervals?: AllowedInterval[];
|
|
28
|
-
days?: Day[];
|
|
29
|
-
tags?: Tag[];
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { LockedTime };
|
|
33
|
-
//# sourceMappingURL=locked-times.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Coalesced, Species, Vertex } from "./common/index.js";
|
|
2
|
-
import { Event } from "./events.js";
|
|
3
|
-
import { Course } from "./courses.js";
|
|
4
|
-
import { Division } from "./divisions.js";
|
|
5
|
-
|
|
6
|
-
//#region src/core/types/overlap-groups.d.ts
|
|
7
|
-
type OverlapGroup = Vertex & {
|
|
8
|
-
belongsTo?: Division;
|
|
9
|
-
coalesced?: Coalesced<Course, 'courses'>[];
|
|
10
|
-
species?: Species<Event, 'events' | 'courseevents'>[];
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { OverlapGroup };
|
|
14
|
-
//# sourceMappingURL=overlap-groups.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { Interval } from "./common/intervals.js";
|
|
3
|
-
import { Division } from "./divisions.js";
|
|
4
|
-
|
|
5
|
-
//#region src/core/types/periods.d.ts
|
|
6
|
-
type Period = Vertex & {
|
|
7
|
-
belongsTo?: Division;
|
|
8
|
-
displayIndex?: number;
|
|
9
|
-
displayName?: string;
|
|
10
|
-
ranges: Partial<Interval>[];
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Period };
|
|
14
|
-
//# sourceMappingURL=periods.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DateType } from "../../common/types.js";
|
|
2
|
-
import { Vertex } from "./common/index.js";
|
|
3
|
-
import { Tag } from "./common/tag.js";
|
|
4
|
-
import { Group } from "./groups.js";
|
|
5
|
-
import { LockedTime } from "./locked-times.js";
|
|
6
|
-
import { Exception } from "./exceptions.js";
|
|
7
|
-
import { Division } from "./divisions.js";
|
|
8
|
-
|
|
9
|
-
//#region src/core/types/persons.d.ts
|
|
10
|
-
type Person = Vertex & {
|
|
11
|
-
belongsTo?: Division;
|
|
12
|
-
displayName?: string;
|
|
13
|
-
lastName?: string;
|
|
14
|
-
firstName?: string;
|
|
15
|
-
birthDate?: DateType;
|
|
16
|
-
sex?: 'Man' | 'Woman';
|
|
17
|
-
type?: 'Student' | 'Teacher' | 'Other';
|
|
18
|
-
SSN?: {
|
|
19
|
-
value: string;
|
|
20
|
-
nationality?: string;
|
|
21
|
-
};
|
|
22
|
-
emails?: {
|
|
23
|
-
value: string;
|
|
24
|
-
type: 'private' | 'organization';
|
|
25
|
-
}[];
|
|
26
|
-
phoneNumbers?: {
|
|
27
|
-
value: string;
|
|
28
|
-
type: 'private' | 'organization';
|
|
29
|
-
}[];
|
|
30
|
-
tags?: Tag[];
|
|
31
|
-
exceptions?: Exception[];
|
|
32
|
-
lockedTimes?: LockedTime[];
|
|
33
|
-
lunch?: LockedTime[];
|
|
34
|
-
group?: Group;
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
37
|
-
export { Person };
|
|
38
|
-
//# sourceMappingURL=persons.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { Interval } from "./common/intervals.js";
|
|
3
|
-
import { Division } from "./divisions.js";
|
|
4
|
-
|
|
5
|
-
//#region src/core/types/root-intervals.d.ts
|
|
6
|
-
type RootInterval = Vertex & {
|
|
7
|
-
belongsTo?: Division;
|
|
8
|
-
displayName?: string;
|
|
9
|
-
intervals: Interval[];
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { RootInterval };
|
|
13
|
-
//# sourceMappingURL=root-intervals.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { InternalIdKey, Vertex } from "./common/index.js";
|
|
2
|
-
import { Mixed, MixedWithoutInternalId, Serialized } from "../vertex-mapping.js";
|
|
3
|
-
import { RootInterval } from "./root-intervals.js";
|
|
4
|
-
import { Group } from "./groups.js";
|
|
5
|
-
import { Person } from "./persons.js";
|
|
6
|
-
import { Teacher } from "./teachers.js";
|
|
7
|
-
import { Location } from "./locations.js";
|
|
8
|
-
import { LockedTime } from "./locked-times.js";
|
|
9
|
-
import { OverlapGroup } from "./overlap-groups.js";
|
|
10
|
-
import { Period } from "./periods.js";
|
|
11
|
-
import { Event } from "./events.js";
|
|
12
|
-
import { Exception } from "./exceptions.js";
|
|
13
|
-
import { Syllabus } from "./syllabus.js";
|
|
14
|
-
import { Course } from "./courses.js";
|
|
15
|
-
import { DivisionSettings } from "./division-settings.js";
|
|
16
|
-
import { Division } from "./divisions.js";
|
|
17
|
-
import { Area } from "./areas.js";
|
|
18
|
-
|
|
19
|
-
//#region src/core/types/schedules.d.ts
|
|
20
|
-
type ScheduleShape = {
|
|
21
|
-
divisions: Division;
|
|
22
|
-
exceptions: Exception[];
|
|
23
|
-
settings: DivisionSettings;
|
|
24
|
-
groups: Group[];
|
|
25
|
-
teachers: Teacher[];
|
|
26
|
-
locations: Location[];
|
|
27
|
-
courses: Course[];
|
|
28
|
-
events: Event[];
|
|
29
|
-
overlapGroups: OverlapGroup[];
|
|
30
|
-
periods: Period[];
|
|
31
|
-
persons: Person[];
|
|
32
|
-
lockedTimes: LockedTime[];
|
|
33
|
-
rootIntervals: RootInterval[];
|
|
34
|
-
areas: Area[];
|
|
35
|
-
syllabuses: Syllabus[];
|
|
36
|
-
};
|
|
37
|
-
type Schedule = ScheduleShape;
|
|
38
|
-
type SerializedSchedule = { [K in keyof ScheduleShape]: ScheduleShape[K] extends Array<infer U extends Vertex> ? Serialized<U>[] : ScheduleShape[K] extends Vertex ? Serialized<ScheduleShape[K]> : never };
|
|
39
|
-
type MixedSchedule = { [K in keyof ScheduleShape]: ScheduleShape[K] extends Array<infer U extends Vertex> ? Mixed<U>[] : ScheduleShape[K] extends Vertex ? Mixed<ScheduleShape[K]> : never };
|
|
40
|
-
type MixedScheduleWithoutInternalId = { [K in keyof ScheduleShape]: ScheduleShape[K] extends Array<infer U extends Vertex> ? MixedWithoutInternalId<U>[] : ScheduleShape[K] extends Vertex ? MixedWithoutInternalId<ScheduleShape[K]> : never };
|
|
41
|
-
type SerializedScheduleWithoutInternalId = { [K in keyof ScheduleShape]: ScheduleShape[K] extends Array<infer U extends Vertex> ? Omit<Serialized<U>, InternalIdKey>[] : ScheduleShape[K] extends Vertex ? Omit<Serialized<ScheduleShape[K]>, InternalIdKey> : never };
|
|
42
|
-
//#endregion
|
|
43
|
-
export { MixedSchedule, MixedScheduleWithoutInternalId, Schedule, SerializedSchedule, SerializedScheduleWithoutInternalId };
|
|
44
|
-
//# sourceMappingURL=schedules.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { Division } from "./divisions.js";
|
|
3
|
-
|
|
4
|
-
//#region src/core/types/syllabus.d.ts
|
|
5
|
-
type Syllabus = Vertex & {
|
|
6
|
-
belongsTo?: Division;
|
|
7
|
-
schoolType: string;
|
|
8
|
-
subjectCode?: string;
|
|
9
|
-
subjectName: string;
|
|
10
|
-
subjectDesignation?: string;
|
|
11
|
-
courseCode?: string;
|
|
12
|
-
courseName?: string;
|
|
13
|
-
points?: number;
|
|
14
|
-
official: boolean;
|
|
15
|
-
};
|
|
16
|
-
//#endregion
|
|
17
|
-
export { Syllabus };
|
|
18
|
-
//# sourceMappingURL=syllabus.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Vertex } from "./common/index.js";
|
|
2
|
-
import { BreakLength } from "./common/break-lengths.js";
|
|
3
|
-
import { AllowedInterval } from "./common/intervals.js";
|
|
4
|
-
import { Day } from "./common/days.js";
|
|
5
|
-
import { RootInterval } from "./root-intervals.js";
|
|
6
|
-
import { MaximumScheduleSpan } from "./common/maximum-schedule-span.js";
|
|
7
|
-
import { Tag } from "./common/tag.js";
|
|
8
|
-
import { Person } from "./persons.js";
|
|
9
|
-
import { PlannedScheduledDuration } from "./common/planned-schedule-duration.js";
|
|
10
|
-
import { LockedTime } from "./locked-times.js";
|
|
11
|
-
import { Exception } from "./exceptions.js";
|
|
12
|
-
import { Division } from "./divisions.js";
|
|
13
|
-
|
|
14
|
-
//#region src/core/types/teachers.d.ts
|
|
15
|
-
type Teacher = Vertex & {
|
|
16
|
-
belongsTo?: Division;
|
|
17
|
-
displayName?: string;
|
|
18
|
-
minBreakLength?: BreakLength;
|
|
19
|
-
plannedScheduledDuration?: PlannedScheduledDuration;
|
|
20
|
-
maximumScheduleSpan?: MaximumScheduleSpan;
|
|
21
|
-
forbidOverlappingEvents?: boolean;
|
|
22
|
-
disableDayLengthPunishment?: boolean;
|
|
23
|
-
weight?: number;
|
|
24
|
-
person?: Person;
|
|
25
|
-
exceptions?: Exception[];
|
|
26
|
-
lockedTimes?: LockedTime[];
|
|
27
|
-
lunch?: LockedTime[];
|
|
28
|
-
/**
|
|
29
|
-
* @note an empty array is the same as undefined
|
|
30
|
-
*/
|
|
31
|
-
intervals?: AllowedInterval[];
|
|
32
|
-
rootInterval?: RootInterval;
|
|
33
|
-
days?: Day[];
|
|
34
|
-
signature?: string;
|
|
35
|
-
rank?: number;
|
|
36
|
-
tags?: Tag[];
|
|
37
|
-
/** @deprecated replaced by maximumScheduleSpan */
|
|
38
|
-
maxNumWorkingHours?: number | boolean;
|
|
39
|
-
/** @deprecated replaced by maximumScheduleSpan */
|
|
40
|
-
maxNumDailyWorkingHours?: number | number[] | boolean;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { Teacher };
|
|
44
|
-
//# sourceMappingURL=teachers.d.ts.map
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AvailableLocation, Coalesced, GroupReference, InternalIdKey, PersonReference, SerializedVertex, Species, Vertex } from "./types/common/index.js";
|
|
2
|
-
import { Types } from "mongoose";
|
|
3
|
-
|
|
4
|
-
//#region src/core/vertex-mapping.d.ts
|
|
5
|
-
type MixedTransformType = {
|
|
6
|
-
type: 'mixed';
|
|
7
|
-
depth: SupportedDepths;
|
|
8
|
-
ignoreInternalId?: boolean;
|
|
9
|
-
};
|
|
10
|
-
type SerializedTransformType = {
|
|
11
|
-
type: 'serialized';
|
|
12
|
-
depth: SupportedDepths;
|
|
13
|
-
};
|
|
14
|
-
type TransformType = MixedTransformType | SerializedTransformType;
|
|
15
|
-
type SupportedDepths = 0 | 1 | 2 | 3 | 4;
|
|
16
|
-
type MaxDepth = 4;
|
|
17
|
-
type DecrementedDepths = [never, 0, 1, 2, 3, 4];
|
|
18
|
-
type Decrement<T extends SupportedDepths> = DecrementedDepths[T];
|
|
19
|
-
type __Mixed<T extends Vertex, Depth extends SupportedDepths, IgnoreInternalId extends boolean | undefined = false> = IgnoreInternalId extends true ? Omit<_Mixed<T, Depth, true>, InternalIdKey> | SerializedVertex : _Mixed<T, Depth, false> | SerializedVertex;
|
|
20
|
-
type ResolveVertexTransform<T extends Vertex, Transform extends TransformType> = Transform extends MixedTransformType ? Transform['depth'] extends 0 ? any : __Mixed<T, Decrement<Transform['depth']>, Transform['ignoreInternalId']> : Transform['depth'] extends 0 ? string : Serialized<T, Decrement<Transform['depth']>>;
|
|
21
|
-
type ExtractNullish<T> = Extract<T, null | undefined>;
|
|
22
|
-
type Get<T> = T extends (infer U)[] ? Required<NonNullable<U>>[] : Required<NonNullable<T>>;
|
|
23
|
-
type TransformPlainVertex<T, To extends TransformType> = NonNullable<T> extends (infer U extends Vertex) ? U extends Coalesced<Vertex> ? never : U extends Required<Types.ObjectId> ? never : ResolveVertexTransform<U, To> | ExtractNullish<T> : never;
|
|
24
|
-
type TransformPlainVertexArray<T, To extends TransformType> = NonNullable<T> extends (infer U extends Vertex | undefined | null)[] ? NonNullable<U> extends Species<Vertex> ? never : NonNullable<U> extends Types.ObjectId ? never : (ResolveVertexTransform<NonNullable<U>, To> | ExtractNullish<U>)[] | ExtractNullish<T> : never;
|
|
25
|
-
type TransformCoalesced<T, To extends TransformType> = Get<T> extends Required<Coalesced<infer U extends Vertex, infer M>> ? Required<NonNullable<T>> extends Required<Species<Vertex>> ? never : Coalesced<ResolveVertexTransform<U, To>, M> | ExtractNullish<T> : never;
|
|
26
|
-
type TransformCoalescedArray<T, To extends TransformType> = Get<T> extends Required<Coalesced<infer U extends Vertex, infer M>>[] ? Get<T> extends Required<Species<Vertex>>[] ? never : (Coalesced<ResolveVertexTransform<U, To>, M>)[] | ExtractNullish<T> : never;
|
|
27
|
-
type TransformSpecies<T, To extends TransformType> = Get<T> extends Required<Species<infer U extends Vertex, infer M>> ? Species<ResolveVertexTransform<U, To>, M> | ExtractNullish<T> : never;
|
|
28
|
-
type TransformSpeciesArray<T, To extends TransformType> = Get<T> extends Required<Species<infer U extends Vertex, infer M>>[] ? Species<ResolveVertexTransform<U, To>, M>[] | ExtractNullish<T> : never;
|
|
29
|
-
type TransformAvailableLocation<T, To extends TransformType> = Get<T> extends Required<AvailableLocation<infer U extends Vertex>> ? AvailableLocation<ResolveVertexTransform<U, To>> | ExtractNullish<T> : never;
|
|
30
|
-
type TransformAvailableLocationArray<T, To extends TransformType> = Get<T> extends Required<AvailableLocation<infer U extends Vertex>>[] ? AvailableLocation<ResolveVertexTransform<U, To>>[] | ExtractNullish<T> : never;
|
|
31
|
-
type TransformGroupReference<T, To extends TransformType> = Get<T> extends Required<GroupReference<infer G extends Vertex, infer P extends Vertex>> ? GroupReference<ResolveVertexTransform<G, To>, ResolveVertexTransform<P, To>> | ExtractNullish<T> : never;
|
|
32
|
-
type TransformGroupReferenceArray<T, To extends TransformType> = Get<T> extends Required<GroupReference<infer G extends Vertex, infer P extends Vertex>>[] ? Get<T> extends Required<Coalesced<Vertex>>[] ? never : (GroupReference<ResolveVertexTransform<G, To>, ResolveVertexTransform<P, To>>)[] | ExtractNullish<T> : never;
|
|
33
|
-
type TransformPersonReference<T, To extends TransformType> = Required<NonNullable<T>> extends Required<PersonReference<infer U extends Vertex>> ? Required<NonNullable<T>> extends Required<GroupReference<Vertex, Vertex>> ? never : PersonReference<ResolveVertexTransform<U, To>> | ExtractNullish<T> : never;
|
|
34
|
-
type TransformPersonReferenceArray<T, To extends TransformType> = Get<T> extends Required<PersonReference<infer U extends Vertex>>[] ? Get<T> extends Required<GroupReference<Vertex, Vertex>>[] ? never : (PersonReference<ResolveVertexTransform<U, To>>)[] | ExtractNullish<T> : never;
|
|
35
|
-
type TransformGeneral<T, To extends TransformType> = TransformPlainVertex<T, To> | TransformPlainVertexArray<T, To> | TransformCoalesced<T, To> | TransformCoalescedArray<T, To> | TransformSpecies<T, To> | TransformSpeciesArray<T, To> | TransformAvailableLocation<T, To> | TransformAvailableLocationArray<T, To> | TransformGroupReference<T, To> | TransformGroupReferenceArray<T, To> | TransformPersonReference<T, To> | TransformPersonReferenceArray<T, To>;
|
|
36
|
-
type _Mixed<T extends Vertex, Depth extends SupportedDepths = MaxDepth, IgnoreInternalId extends boolean = false> = Vertex & { [K in keyof T]: TransformGeneral<T[K], {
|
|
37
|
-
type: 'mixed';
|
|
38
|
-
depth: Depth;
|
|
39
|
-
ignoreInternalId: IgnoreInternalId;
|
|
40
|
-
}> extends never ? T[K] : TransformGeneral<T[K], {
|
|
41
|
-
type: 'mixed';
|
|
42
|
-
depth: Depth;
|
|
43
|
-
ignoreInternalId: IgnoreInternalId;
|
|
44
|
-
}> };
|
|
45
|
-
/**
|
|
46
|
-
* Given a vertex type, this will return a new type where all references to other vertices are replaced with their mixed type.
|
|
47
|
-
*/
|
|
48
|
-
type Mixed<T extends Vertex> = _Mixed<T>;
|
|
49
|
-
/**
|
|
50
|
-
* Given a vertex type, this will return a new type where all references to other vertices are replaced with their mixed type, but without the internal id (`_id` and `id`)
|
|
51
|
-
*/
|
|
52
|
-
type MixedWithoutInternalId<T extends Vertex> = Omit<_Mixed<T, MaxDepth, true>, InternalIdKey>;
|
|
53
|
-
/**
|
|
54
|
-
* Given a vertex type, this will return a new type where all references to other vertices are replaced with their serialized type at the specified depth.
|
|
55
|
-
*/
|
|
56
|
-
type Serialized<T extends Vertex, DepthIndex extends SupportedDepths = 0> = Vertex & { [K in keyof T]: TransformGeneral<T[K], {
|
|
57
|
-
type: 'serialized';
|
|
58
|
-
depth: DepthIndex;
|
|
59
|
-
}> extends never ? T[K] : TransformGeneral<T[K], {
|
|
60
|
-
type: 'serialized';
|
|
61
|
-
depth: DepthIndex;
|
|
62
|
-
}> };
|
|
63
|
-
/**
|
|
64
|
-
* Given a object that contains entries of vertices or arrays of vertices, this will return a new type where all references to other vertices are replaced with their serialized type.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
//#endregion
|
|
68
|
-
export { Mixed, MixedWithoutInternalId, Serialized };
|
|
69
|
-
//# sourceMappingURL=vertex-mapping.d.ts.map
|