@royalschedule/maps 4.0.15 → 4.0.17
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 +99 -94
- 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 +15 -5
- 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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RealCollection } from "../vertices/util/vertex.js";
|
|
2
|
+
import "../vertices/util/index.js";
|
|
3
|
+
import { IntegrationTypes } from "./etc.js";
|
|
4
|
+
import { Company } from "./companies.js";
|
|
5
|
+
import { User } from "./users.js";
|
|
6
|
+
import { Deep } from "../vertices/index.js";
|
|
7
|
+
|
|
8
|
+
//#region src/core/interfaces/other/operations.d.ts
|
|
9
|
+
type Status = 'COMPLETED' | 'FAILED' | 'STARTED' | 'PENDING' | 'CANCELED' | 'RESOLVED' | 'IN_PROGRESS';
|
|
10
|
+
declare const operationType: readonly ["IMPORT", "EXPORT", "UPDATE", "MIGRATION", "MUTATE", "RESTORE_BACKUP", "SYNC", "SYSTEM_MAINTENANCE"];
|
|
11
|
+
type OperationType = typeof operationType[number];
|
|
12
|
+
interface Operation {
|
|
13
|
+
organization?: Company.complete;
|
|
14
|
+
id?: string;
|
|
15
|
+
belongsTo?: Deep.Division;
|
|
16
|
+
createdBy?: User;
|
|
17
|
+
integrationType?: IntegrationTypes;
|
|
18
|
+
status?: Status;
|
|
19
|
+
type?: OperationType;
|
|
20
|
+
error?: {
|
|
21
|
+
message: string;
|
|
22
|
+
stack: string;
|
|
23
|
+
code: number;
|
|
24
|
+
data: any;
|
|
25
|
+
};
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
createdAt?: Date;
|
|
28
|
+
expiresAt?: string;
|
|
29
|
+
deltaStats?: {
|
|
30
|
+
coll: RealCollection;
|
|
31
|
+
count: number;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Operation, OperationType, operationType };
|
|
36
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Access } from "./etc.js";
|
|
2
|
+
import { PublicId } from "../vertices/properties/index.js";
|
|
3
|
+
import { Company } from "./companies.js";
|
|
4
|
+
import { User } from "./users.js";
|
|
5
|
+
import { Deep } from "../vertices/index.js";
|
|
6
|
+
|
|
7
|
+
//#region src/core/interfaces/other/policies.d.ts
|
|
8
|
+
interface Action {
|
|
9
|
+
targetResourceModel: string;
|
|
10
|
+
operation: (Access['CREATE'] | Access['READ'] | Access['UPDATE'] | Access['DELETE'])[];
|
|
11
|
+
}
|
|
12
|
+
interface Statement {
|
|
13
|
+
resource: Pick<Company.complete, 'name' | 'id'> | Pick<Deep.Division, 'displayName' | 'id'>;
|
|
14
|
+
resourceModel: string;
|
|
15
|
+
action: Action;
|
|
16
|
+
effect: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface Policy {
|
|
19
|
+
id?: PublicId;
|
|
20
|
+
users?: User[];
|
|
21
|
+
inline?: boolean;
|
|
22
|
+
organization?: Company.complete;
|
|
23
|
+
displayName?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
statements?: Statement[];
|
|
26
|
+
createdAt?: Date;
|
|
27
|
+
updatedAt?: Date;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Action, Policy, Statement };
|
|
31
|
+
//# sourceMappingURL=policies.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/core/interfaces/other/sync-logs.d.ts
|
|
2
|
+
declare enum ErrorCode {
|
|
3
|
+
CONFIG_ERROR = "CONFIG_ERROR",
|
|
4
|
+
AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
|
|
5
|
+
API_ERROR = "API_ERROR",
|
|
6
|
+
DATA_ERROR = "DATA_ERROR",
|
|
7
|
+
THIRD_PARTY_ERROR = "THIRD_PARTY_ERROR",
|
|
8
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
|
9
|
+
}
|
|
10
|
+
type Collection = 'courses' | 'teachers' | 'groups' | 'persons' | 'locations' | 'syllabuses';
|
|
11
|
+
interface SyncLog {
|
|
12
|
+
status: 'success' | 'error';
|
|
13
|
+
message?: string;
|
|
14
|
+
errorCode?: ErrorCode;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
divisionIds: string[];
|
|
17
|
+
imported?: Partial<{ [key in Collection]: number }>;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ErrorCode, SyncLog };
|
|
21
|
+
//# sourceMappingURL=sync-logs.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Partner, Role } from "./etc.js";
|
|
2
|
+
import { PublicId } from "../vertices/properties/index.js";
|
|
3
|
+
import { Company } from "./companies.js";
|
|
4
|
+
|
|
5
|
+
//#region src/core/interfaces/other/users.d.ts
|
|
6
|
+
declare namespace User {
|
|
7
|
+
export type core = {
|
|
8
|
+
readonly id: PublicId;
|
|
9
|
+
username: string;
|
|
10
|
+
role: Role;
|
|
11
|
+
associatedPartner?: Partner | null;
|
|
12
|
+
};
|
|
13
|
+
type optionals = {
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
verifyToken?: string;
|
|
16
|
+
company?: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type serialized = core & optionals & {};
|
|
22
|
+
export type shallow = core & optionals & {};
|
|
23
|
+
export type populated = core & optionals & {};
|
|
24
|
+
export {};
|
|
25
|
+
}
|
|
26
|
+
interface User {
|
|
27
|
+
id?: PublicId;
|
|
28
|
+
username?: string;
|
|
29
|
+
role: Role;
|
|
30
|
+
timestamps?: string[];
|
|
31
|
+
company?: Pick<Company.complete, 'id' | 'name'>;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { User };
|
|
35
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import "./util/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/core/interfaces/vertices/companies.d.ts
|
|
5
|
+
type CompanyVertex = VertexFactory<'companies', object>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CompanyVertex };
|
|
8
|
+
//# sourceMappingURL=companies.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { Coalesced, EdgeWrapper } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { DivisionVertex } from "./divisions.js";
|
|
5
|
+
import { CompanyVertex } from "./companies.js";
|
|
6
|
+
import { UserVertex } from "./users.js";
|
|
7
|
+
|
|
8
|
+
//#region src/core/interfaces/vertices/configurations.d.ts
|
|
9
|
+
type ConfigurationType = 'filter' | 'template' | 'rule';
|
|
10
|
+
interface ConfigurationMetadata {
|
|
11
|
+
active: boolean;
|
|
12
|
+
version: string;
|
|
13
|
+
tags: {
|
|
14
|
+
value: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
type Base = {
|
|
19
|
+
domain?: EdgeWrapper<'array', Coalesced.Edge<DivisionVertex> | Coalesced.Edge<CompanyVertex>>;
|
|
20
|
+
type: ConfigurationType;
|
|
21
|
+
metadata: ConfigurationMetadata;
|
|
22
|
+
lastModifiedBy?: UserVertex;
|
|
23
|
+
data?: any;
|
|
24
|
+
displayName?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
category?: string;
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
type ConfigurationVertex = VertexFactory<'configurations', Base>;
|
|
30
|
+
type ConfigurationFilterVertex = VertexFactory<'configurations', Base & {
|
|
31
|
+
type: 'filter';
|
|
32
|
+
data: any;
|
|
33
|
+
displayName: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
}>;
|
|
36
|
+
type ConfigurationTemplateVertex = VertexFactory<'configurations', Base & {
|
|
37
|
+
type: 'template';
|
|
38
|
+
data: {
|
|
39
|
+
layout: any;
|
|
40
|
+
defaultValues?: any;
|
|
41
|
+
validation?: any;
|
|
42
|
+
};
|
|
43
|
+
displayName: string;
|
|
44
|
+
category?: string;
|
|
45
|
+
}>;
|
|
46
|
+
type ConfigurationRuleVertex = VertexFactory<'configurations', Base & {
|
|
47
|
+
type: 'rule';
|
|
48
|
+
data: {
|
|
49
|
+
conditions?: Array<any>;
|
|
50
|
+
actions?: Array<any>;
|
|
51
|
+
priority?: number;
|
|
52
|
+
};
|
|
53
|
+
displayName: string;
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
//#endregion
|
|
57
|
+
export { ConfigurationFilterVertex, ConfigurationRuleVertex, ConfigurationTemplateVertex, ConfigurationVertex };
|
|
58
|
+
//# sourceMappingURL=configurations.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { AvailableLocation, EdgeWrapper, GroupWithExclude, Plain, Wrapped } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { Day } from "./properties/days.js";
|
|
5
|
+
import { Interval } from "./properties/intervals.js";
|
|
6
|
+
import { Tag } from "./properties/tags.js";
|
|
7
|
+
import { MinBreakLength } from "./properties/min-break-length.js";
|
|
8
|
+
import { PeriodVertex } from "./periods.js";
|
|
9
|
+
import { BelongsTo } from "./properties/belongs-to.js";
|
|
10
|
+
import { PersonVertex } from "./persons.js";
|
|
11
|
+
import { LocationVertex } from "./locations.js";
|
|
12
|
+
import { EventVertex } from "./events.js";
|
|
13
|
+
import { OverlapGroupVertex } from "./overlap-groups.js";
|
|
14
|
+
import { SyllabusVertex } from "./syllabuses.js";
|
|
15
|
+
import { ExceptionVertex } from "./exceptions.js";
|
|
16
|
+
import { GroupVertex } from "./groups.js";
|
|
17
|
+
import { LockedTimeVertex } from "./locked-times.js";
|
|
18
|
+
import { TeacherVertex } from "./teachers.js";
|
|
19
|
+
|
|
20
|
+
//#region src/core/interfaces/vertices/courses.d.ts
|
|
21
|
+
type CourseVertex = VertexFactory<'courses', BelongsTo & {
|
|
22
|
+
tags?: Tag[];
|
|
23
|
+
subject?: string;
|
|
24
|
+
color?: string;
|
|
25
|
+
minBreakLength?: MinBreakLength;
|
|
26
|
+
/**
|
|
27
|
+
* @note an empty array is the same as undefined
|
|
28
|
+
*/
|
|
29
|
+
intervals?: Interval[];
|
|
30
|
+
days?: Day[];
|
|
31
|
+
eventDurationVariance?: number;
|
|
32
|
+
centerOfAttraction?: string | null;
|
|
33
|
+
density?: number;
|
|
34
|
+
weight?: number;
|
|
35
|
+
type?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Can be one of the following formats:
|
|
38
|
+
* - X hrs
|
|
39
|
+
* - Y min/week
|
|
40
|
+
*/
|
|
41
|
+
plannedDuration?: string;
|
|
42
|
+
/** @deprecated replaced by plannedDuration? */
|
|
43
|
+
minutesPerWeek?: number;
|
|
44
|
+
/** @deprecated replaced by plannedDuration? */
|
|
45
|
+
expectedTotalHours?: number;
|
|
46
|
+
period?: EdgeWrapper<'single', Plain.Edge<PeriodVertex>>;
|
|
47
|
+
overlapGroup?: EdgeWrapper<'single', Plain.Edge<OverlapGroupVertex>>;
|
|
48
|
+
syllabus?: EdgeWrapper<'single', Plain.Edge<SyllabusVertex>>;
|
|
49
|
+
lockedTimes?: EdgeWrapper<'array', Plain.Edge<LockedTimeVertex>>;
|
|
50
|
+
exceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
51
|
+
events?: EdgeWrapper<'array', Plain.Edge<EventVertex>>;
|
|
52
|
+
participants?: EdgeWrapper<'array', Wrapped.Edge<'to', PersonVertex, {
|
|
53
|
+
groupIndex?: number;
|
|
54
|
+
}>>;
|
|
55
|
+
teachers?: EdgeWrapper<'array', Wrapped.Edge<'to', TeacherVertex, {
|
|
56
|
+
groupIndex?: number;
|
|
57
|
+
}>>;
|
|
58
|
+
groups?: EdgeWrapper<'array', GroupWithExclude.Edge<GroupVertex, PersonVertex, {
|
|
59
|
+
groupIndex?: number;
|
|
60
|
+
}>>;
|
|
61
|
+
locations?: EdgeWrapper<'array', AvailableLocation.Edge<LocationVertex, {
|
|
62
|
+
groupIndex?: number;
|
|
63
|
+
rank?: number;
|
|
64
|
+
}>>;
|
|
65
|
+
}>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { CourseVertex };
|
|
68
|
+
//# sourceMappingURL=courses.d.ts.map
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { MaximumScheduleSpan } from "./
|
|
5
|
-
import { PlannedScheduledDuration } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { EdgeWrapper, Plain } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { MaximumScheduleSpan } from "./properties/maximum-schedule-span.js";
|
|
5
|
+
import { PlannedScheduledDuration } from "./properties/planned-scheduled-duration.js";
|
|
6
|
+
import { PeriodVertex } from "./periods.js";
|
|
7
|
+
import { RootIntervalVertex } from "./root-intervals.js";
|
|
8
|
+
import { BelongsTo } from "./properties/belongs-to.js";
|
|
9
|
+
import { Moment } from "moment";
|
|
8
10
|
|
|
9
|
-
//#region src/core/
|
|
10
|
-
|
|
11
|
-
start:
|
|
12
|
-
end:
|
|
11
|
+
//#region src/core/interfaces/vertices/division-settings.d.ts
|
|
12
|
+
type CalendarException = {
|
|
13
|
+
start: string | Moment;
|
|
14
|
+
end: string | Moment;
|
|
13
15
|
description?: string;
|
|
14
|
-
}
|
|
16
|
+
};
|
|
15
17
|
interface ExceptionsConfig {
|
|
16
18
|
requireAbsenceReason: boolean;
|
|
17
19
|
constrictAbsenceReason: boolean;
|
|
18
20
|
absenceReasons: string[];
|
|
21
|
+
suggestionRanking: Record<string, number>;
|
|
19
22
|
}
|
|
20
|
-
type
|
|
21
|
-
belongsTo?: Division;
|
|
22
|
-
discretization: number;
|
|
23
|
+
type DivisionSettingsVertex = VertexFactory<'settings', BelongsTo & {
|
|
23
24
|
numDays: number;
|
|
24
25
|
dayStart: string;
|
|
25
26
|
dayEnd: string;
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
discretization: number;
|
|
28
|
+
potentialCenter: string;
|
|
28
29
|
defaultEventMinimumBreakLength?: number;
|
|
30
|
+
defaultGroupMinimumBreakLength?: number;
|
|
29
31
|
defaultDependencyMinimumBreakLength?: number;
|
|
32
|
+
/** @deprecated replaced by defaultMaximumScheduleSpan */
|
|
33
|
+
defaultMaxNumWorkingHours?: number | null;
|
|
34
|
+
/** @deprecated replaced by defaultMaximumScheduleSpan */
|
|
35
|
+
defaultMaxNumDailyWorkingHours?: number | null;
|
|
30
36
|
defaultPlannedScheduledDuration?: PlannedScheduledDuration;
|
|
31
37
|
defaultMaximumScheduleSpan?: MaximumScheduleSpan;
|
|
32
38
|
defaultDayRank?: number;
|
|
33
|
-
defaultGroupRank?: number;
|
|
34
39
|
defaultDependencyRank?: number;
|
|
40
|
+
defaultGroupRank?: number;
|
|
35
41
|
defaultEventDensity?: number;
|
|
36
42
|
defaultEventWeight?: number;
|
|
37
43
|
defaultGroupWeight?: number;
|
|
38
44
|
defaultCourseWeight?: number;
|
|
39
|
-
defaultEventDurationVariance?: number;
|
|
40
|
-
requireForcedOverlappingEventsSets?: boolean;
|
|
41
45
|
calendarExceptions?: CalendarException[];
|
|
42
|
-
|
|
43
|
-
period?: Period;
|
|
46
|
+
defaultEventDurationVariance?: number;
|
|
44
47
|
eventTime?: number;
|
|
45
48
|
eventTimeActive?: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
49
|
+
requireForcedOverlappingEventsSets?: boolean;
|
|
50
|
+
exceptionsConfig?: ExceptionsConfig;
|
|
51
|
+
period?: EdgeWrapper<'single', Plain.Edge<PeriodVertex>>;
|
|
52
|
+
defaultRootInterval?: EdgeWrapper<'single', Plain.Edge<RootIntervalVertex>>;
|
|
53
|
+
}>;
|
|
52
54
|
//#endregion
|
|
53
|
-
export {
|
|
55
|
+
export { CalendarException, DivisionSettingsVertex, ExceptionsConfig };
|
|
54
56
|
//# sourceMappingURL=division-settings.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { EdgeWrapper, Plain } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { DateType, Partner } from "../other/etc.js";
|
|
5
|
+
import { DivisionSettingsVertex } from "./division-settings.js";
|
|
6
|
+
import { GenerationVertex } from "./generations.js";
|
|
7
|
+
|
|
8
|
+
//#region src/core/interfaces/vertices/divisions.d.ts
|
|
9
|
+
type StepGuideProgress = {
|
|
10
|
+
checked: string[];
|
|
11
|
+
completed: boolean;
|
|
12
|
+
updatedAt: Date | null;
|
|
13
|
+
};
|
|
14
|
+
type DivisionVertex = VertexFactory<'divisions', {
|
|
15
|
+
associatedPartner?: Partner | null;
|
|
16
|
+
start: DateType;
|
|
17
|
+
end: DateType;
|
|
18
|
+
published?: boolean;
|
|
19
|
+
createdAt?: string;
|
|
20
|
+
updatedAt?: string;
|
|
21
|
+
syncedAt?: string | number | Date;
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
autoSync?: boolean;
|
|
24
|
+
stepGuideProgress?: StepGuideProgress;
|
|
25
|
+
pinned?: boolean;
|
|
26
|
+
settings?: EdgeWrapper<'single', Plain.Edge<DivisionSettingsVertex>>;
|
|
27
|
+
running?: EdgeWrapper<'single', Plain.Edge<GenerationVertex>>;
|
|
28
|
+
}>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { DivisionVertex, StepGuideProgress };
|
|
31
|
+
//# sourceMappingURL=divisions.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { AvailableLocation, EdgeWrapper, GroupWithExclude, Plain, Wrapped } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { Day } from "./properties/days.js";
|
|
5
|
+
import { Interval } from "./properties/intervals.js";
|
|
6
|
+
import { Tag } from "./properties/tags.js";
|
|
7
|
+
import { MinBreakLength } from "./properties/min-break-length.js";
|
|
8
|
+
import { PeriodVertex } from "./periods.js";
|
|
9
|
+
import { BelongsTo } from "./properties/belongs-to.js";
|
|
10
|
+
import { PersonVertex } from "./persons.js";
|
|
11
|
+
import { LocationVertex } from "./locations.js";
|
|
12
|
+
import { OverlapGroupVertex } from "./overlap-groups.js";
|
|
13
|
+
import { CourseVertex } from "./courses.js";
|
|
14
|
+
import { ExceptionVertex } from "./exceptions.js";
|
|
15
|
+
import { GroupVertex } from "./groups.js";
|
|
16
|
+
import { LockedTimeVertex } from "./locked-times.js";
|
|
17
|
+
import { TeacherVertex } from "./teachers.js";
|
|
18
|
+
import { Moment } from "moment";
|
|
19
|
+
|
|
20
|
+
//#region src/core/interfaces/vertices/events.d.ts
|
|
21
|
+
type BasicSharedProperties = BelongsTo & {
|
|
22
|
+
color?: string | null;
|
|
23
|
+
tags?: Tag[];
|
|
24
|
+
fixedStart?: boolean;
|
|
25
|
+
visible?: boolean;
|
|
26
|
+
};
|
|
27
|
+
type EventProperties = BasicSharedProperties & {
|
|
28
|
+
density?: number;
|
|
29
|
+
weight?: number;
|
|
30
|
+
potentialCenter?: string;
|
|
31
|
+
parked?: boolean;
|
|
32
|
+
minBreakLength?: MinBreakLength | null;
|
|
33
|
+
preferredDuration: number;
|
|
34
|
+
durationVariance?: number;
|
|
35
|
+
duration?: number;
|
|
36
|
+
centerOfAttraction?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* @note an empty array is the same as undefined
|
|
39
|
+
*/
|
|
40
|
+
intervals?: Interval[] | null;
|
|
41
|
+
days?: Day[] | null;
|
|
42
|
+
start?: Moment | string;
|
|
43
|
+
end?: Moment | string;
|
|
44
|
+
weeks?: number[];
|
|
45
|
+
type?: string;
|
|
46
|
+
course?: EdgeWrapper<'single', Plain.Edge<CourseVertex>>;
|
|
47
|
+
period?: EdgeWrapper<'single', Plain.Edge<PeriodVertex>>;
|
|
48
|
+
overlapSpecies?: EdgeWrapper<'single', Plain.Edge<OverlapGroupVertex>>;
|
|
49
|
+
lockedTimes?: EdgeWrapper<'array', Plain.Edge<LockedTimeVertex>>;
|
|
50
|
+
exceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
51
|
+
inLocations?: EdgeWrapper<'array', Plain.Edge<LocationVertex> | null>;
|
|
52
|
+
participants?: EdgeWrapper<'array', Wrapped.Edge<'to', PersonVertex, {
|
|
53
|
+
groupIndex?: number;
|
|
54
|
+
}>>;
|
|
55
|
+
teachers?: EdgeWrapper<'array', Wrapped.Edge<'to', TeacherVertex, {
|
|
56
|
+
groupIndex?: number;
|
|
57
|
+
}>>;
|
|
58
|
+
groups?: EdgeWrapper<'array', GroupWithExclude.Edge<GroupVertex, PersonVertex, {
|
|
59
|
+
groupIndex?: number;
|
|
60
|
+
}>>;
|
|
61
|
+
locations?: EdgeWrapper<'array', AvailableLocation.Edge<LocationVertex, {
|
|
62
|
+
groupIndex?: number;
|
|
63
|
+
rank?: number;
|
|
64
|
+
}>>;
|
|
65
|
+
};
|
|
66
|
+
type EventVertex = VertexFactory<'events', EventProperties>;
|
|
67
|
+
type ScheduleEventVertex = VertexFactory<'scheduleEvents', EventProperties & {
|
|
68
|
+
subject?: string;
|
|
69
|
+
start?: Moment | string;
|
|
70
|
+
end?: Moment | string;
|
|
71
|
+
persons?: EdgeWrapper<'array', Plain.Edge<PersonVertex>>;
|
|
72
|
+
}>;
|
|
73
|
+
type CalendarEventVertex = VertexFactory<'calendarEvents', BasicSharedProperties & {
|
|
74
|
+
meta: {
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
type: 'event' | 'lockedtime' | 'exception';
|
|
78
|
+
subType?: string;
|
|
79
|
+
};
|
|
80
|
+
subject?: string;
|
|
81
|
+
canceled?: boolean;
|
|
82
|
+
start: number;
|
|
83
|
+
end: number;
|
|
84
|
+
exceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
85
|
+
inLocations?: EdgeWrapper<'array', Plain.Edge<LocationVertex> | null>;
|
|
86
|
+
participants?: EdgeWrapper<'array', Wrapped.Edge<'to', PersonVertex, {
|
|
87
|
+
groupIndex?: number;
|
|
88
|
+
}>>;
|
|
89
|
+
teachers?: EdgeWrapper<'array', Wrapped.Edge<'to', TeacherVertex, {
|
|
90
|
+
groupIndex?: number;
|
|
91
|
+
participates?: boolean;
|
|
92
|
+
}>>;
|
|
93
|
+
groups?: EdgeWrapper<'array', GroupWithExclude.Edge<GroupVertex, PersonVertex, {
|
|
94
|
+
groupIndex?: number;
|
|
95
|
+
participates?: boolean;
|
|
96
|
+
}>>;
|
|
97
|
+
}>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { CalendarEventVertex, EventVertex, ScheduleEventVertex };
|
|
100
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Collection, Vertex, VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { Coalesced, EdgeWrapper, Plain } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { PersonVertex } from "./persons.js";
|
|
5
|
+
import { LocationVertex } from "./locations.js";
|
|
6
|
+
import { EventVertex } from "./events.js";
|
|
7
|
+
import { CourseVertex } from "./courses.js";
|
|
8
|
+
import { GroupVertex } from "./groups.js";
|
|
9
|
+
import { TeacherVertex } from "./teachers.js";
|
|
10
|
+
import { Deep } from "./index.js";
|
|
11
|
+
import { Moment } from "moment";
|
|
12
|
+
|
|
13
|
+
//#region src/core/interfaces/vertices/exceptions.d.ts
|
|
14
|
+
declare const exceptionStatus: readonly ["pending", "failed", "completed", "rejected", "approved"];
|
|
15
|
+
type ExceptionStatus = typeof exceptionStatus[number];
|
|
16
|
+
type CalendarException<T> = {
|
|
17
|
+
to?: T;
|
|
18
|
+
toModel?: 'groups' | 'courses' | 'teachers' | 'locations' | 'persons' | string;
|
|
19
|
+
include?: boolean;
|
|
20
|
+
start?: Date | string;
|
|
21
|
+
end?: Date | string;
|
|
22
|
+
displayName?: string;
|
|
23
|
+
comment?: string;
|
|
24
|
+
};
|
|
25
|
+
type CalendarExceptionAction = ({
|
|
26
|
+
action: 'cancel' | 'remove';
|
|
27
|
+
} | {
|
|
28
|
+
action: 'reschedule';
|
|
29
|
+
exception: {
|
|
30
|
+
start?: Date | string;
|
|
31
|
+
end?: Date | string;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
action: 'substitute';
|
|
35
|
+
exception: {
|
|
36
|
+
to: Deep.Group | Deep.Teacher | Deep.Location | Deep.Person;
|
|
37
|
+
toModel: 'groups' | 'teachers' | 'locations' | 'persons';
|
|
38
|
+
include: boolean;
|
|
39
|
+
start?: Date | string;
|
|
40
|
+
end?: Date | string;
|
|
41
|
+
};
|
|
42
|
+
} | {
|
|
43
|
+
action: 'add';
|
|
44
|
+
exception: {
|
|
45
|
+
start: Date | string;
|
|
46
|
+
end: Date | string;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
action: 'comment';
|
|
51
|
+
exception: {
|
|
52
|
+
comment: string;
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
type CalendarExceptionEdge<V extends Vertex<Collection>> = Coalesced.Edge<V, {
|
|
56
|
+
optional: true;
|
|
57
|
+
}, Omit<CalendarException<unknown>, 'to' | 'toModel'>>;
|
|
58
|
+
type ExceptionVertex = VertexFactory<'exceptions', {
|
|
59
|
+
start?: Moment | string;
|
|
60
|
+
end?: Moment | string;
|
|
61
|
+
reason?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
comment?: string;
|
|
64
|
+
action?: 'cancel' | 'remove' | 'reschedule' | 'add' | 'substitute' | 'comment';
|
|
65
|
+
type?: 'absence' | 'calendar';
|
|
66
|
+
handleStatus?: ExceptionStatus;
|
|
67
|
+
sources?: EdgeWrapper<'array', Coalesced.Edge<CourseVertex> | Coalesced.Edge<EventVertex> | Coalesced.Edge<GroupVertex> | Coalesced.Edge<LocationVertex> | Coalesced.Edge<TeacherVertex> | Coalesced.Edge<PersonVertex>>;
|
|
68
|
+
exception?: EdgeWrapper<'single', CalendarExceptionEdge<GroupVertex> | CalendarExceptionEdge<CourseVertex> | CalendarExceptionEdge<LocationVertex> | CalendarExceptionEdge<TeacherVertex> | CalendarExceptionEdge<PersonVertex>>;
|
|
69
|
+
parentExceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
70
|
+
exceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
71
|
+
}>;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { CalendarExceptionAction, ExceptionStatus, ExceptionVertex };
|
|
74
|
+
//# sourceMappingURL=exceptions.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import "./util/index.js";
|
|
3
|
+
import { User } from "../other/users.js";
|
|
4
|
+
import "../other/index.js";
|
|
5
|
+
import { BelongsTo } from "./properties/belongs-to.js";
|
|
6
|
+
import { Moment } from "moment";
|
|
7
|
+
|
|
8
|
+
//#region src/core/interfaces/vertices/generations.d.ts
|
|
9
|
+
type Status = 'PENDING' | 'STARTED' | 'COMPLETED' | 'FAILED' | 'CANCELED';
|
|
10
|
+
type GenerationVertex = VertexFactory<'generations', BelongsTo & {
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
startedBy?: User;
|
|
13
|
+
completionDate?: string | Moment;
|
|
14
|
+
startDate?: string | Moment;
|
|
15
|
+
configurationId: number;
|
|
16
|
+
status: Status;
|
|
17
|
+
error?: string | Error;
|
|
18
|
+
progress: number;
|
|
19
|
+
canceled: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { GenerationVertex, Status };
|
|
23
|
+
//# sourceMappingURL=generations.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { VertexFactory } from "./util/vertex.js";
|
|
2
|
+
import { EdgeWrapper, Plain, Wrapped } from "./util/edges.js";
|
|
3
|
+
import "./util/index.js";
|
|
4
|
+
import { Day } from "./properties/days.js";
|
|
5
|
+
import { Interval } from "./properties/intervals.js";
|
|
6
|
+
import { Tag } from "./properties/tags.js";
|
|
7
|
+
import { MaximumScheduleSpan } from "./properties/maximum-schedule-span.js";
|
|
8
|
+
import { RootIntervalVertex } from "./root-intervals.js";
|
|
9
|
+
import { BelongsTo } from "./properties/belongs-to.js";
|
|
10
|
+
import { PersonVertex } from "./persons.js";
|
|
11
|
+
import { ExceptionVertex } from "./exceptions.js";
|
|
12
|
+
import { LockedTimeVertex } from "./locked-times.js";
|
|
13
|
+
|
|
14
|
+
//#region src/core/interfaces/vertices/groups.d.ts
|
|
15
|
+
type DerivedParentGroupOpts = {
|
|
16
|
+
implicit?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* If the group is explicitly defined as a parent group.
|
|
19
|
+
*/
|
|
20
|
+
explicit?: boolean;
|
|
21
|
+
};
|
|
22
|
+
type GroupVertex = VertexFactory<'groups', BelongsTo & {
|
|
23
|
+
tags?: Tag[];
|
|
24
|
+
minBreakLength?: number;
|
|
25
|
+
/** @deprecated replaced by maximumScheduleSpan */
|
|
26
|
+
maxNumWorkingHours?: number | false;
|
|
27
|
+
/** @deprecated replaced by maximumScheduleSpan */
|
|
28
|
+
maxNumDailyWorkingHours?: number | number[] | false;
|
|
29
|
+
maximumScheduleSpan?: MaximumScheduleSpan;
|
|
30
|
+
forbidOverlappingEvents?: boolean;
|
|
31
|
+
disableDayLengthPunishment?: boolean;
|
|
32
|
+
weight?: number;
|
|
33
|
+
species?: 'class';
|
|
34
|
+
/**
|
|
35
|
+
* @note an empty array is the same as undefined
|
|
36
|
+
*/
|
|
37
|
+
intervals?: Interval[];
|
|
38
|
+
days?: Day[];
|
|
39
|
+
parentGroups?: EdgeWrapper<'array', Plain.Edge<GroupVertex>>;
|
|
40
|
+
subGroups?: EdgeWrapper<'array', Plain.Edge<GroupVertex>>;
|
|
41
|
+
lockedTimes?: EdgeWrapper<'array', Plain.Edge<LockedTimeVertex>>;
|
|
42
|
+
lunch?: EdgeWrapper<'array', Plain.Edge<LockedTimeVertex>>;
|
|
43
|
+
exceptions?: EdgeWrapper<'array', Plain.Edge<ExceptionVertex>>;
|
|
44
|
+
members?: EdgeWrapper<'array', Plain.Edge<PersonVertex>>;
|
|
45
|
+
rootInterval?: EdgeWrapper<'single', Plain.Edge<RootIntervalVertex>>;
|
|
46
|
+
/**
|
|
47
|
+
* Source only?
|
|
48
|
+
*/
|
|
49
|
+
derivedParentGroups?: EdgeWrapper<'array', Wrapped.Edge<'group', GroupVertex, DerivedParentGroupOpts>>;
|
|
50
|
+
}>;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { GroupVertex };
|
|
53
|
+
//# sourceMappingURL=groups.d.ts.map
|