@royalschedule/maps 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Admentum/from/events.d.ts +2 -2
- package/dist/Admentum/from/events.js.map +1 -1
- package/dist/Admentum/from/index.js.map +1 -1
- package/dist/Admentum/from/schedules.js.map +1 -1
- package/dist/Admentum/to/index.d.ts +1 -1
- package/dist/Admentum/to/schedules.d.ts +3 -3
- package/dist/Admentum/to/schedules.js.map +1 -1
- package/dist/IdunSoft/from/events.d.ts +1 -1
- package/dist/IdunSoft/from/events.js.map +1 -1
- package/dist/IdunSoft/to/index.d.ts +1 -1
- package/dist/IdunSoft/to/schedules.d.ts +1 -1
- package/dist/IdunSoft/to/schedules.js.map +1 -1
- package/dist/InfoMentor/to/index.d.ts +1 -1
- package/dist/InfoMentor/to/schedules.d.ts +1 -1
- package/dist/InfoMentor/to/schedules.js.map +1 -1
- package/dist/PlanDigital/from/index.d.ts +1 -1
- package/dist/PlanDigital/to/index.d.ts +1 -1
- package/dist/RS/v0/from/courses.d.ts +1 -1
- package/dist/RS/v0/from/index.d.ts +6 -6
- package/dist/RS/v0/from/intervals.d.ts +1 -1
- package/dist/RS/v0/from/locked-times.d.ts +1 -1
- package/dist/RS/v0/from/placements.d.ts +2 -2
- package/dist/RS/v0/from/placements.js.map +1 -1
- package/dist/RS/v0/from/schedules.d.ts +2 -2
- package/dist/RS/v0/from/settings.d.ts +1 -1
- package/dist/RS/v0/to/available-dependencies.d.ts +1 -1
- package/dist/RS/v0/to/configurations.d.ts +2 -2
- package/dist/RS/v0/to/configurations.js.map +1 -1
- package/dist/RS/v0/to/constraints.d.ts +2 -2
- package/dist/RS/v0/to/constraints.js.map +1 -1
- package/dist/RS/v0/to/course-events/days.d.ts +2 -2
- package/dist/RS/v0/to/course-events/dependencies.d.ts +2 -2
- package/dist/RS/v0/to/course-events/groups.d.ts +3 -3
- package/dist/RS/v0/to/course-events/in-locations.d.ts +1 -1
- package/dist/RS/v0/to/course-events/index.d.ts +2 -2
- package/dist/RS/v0/to/course-events/index.js.map +1 -1
- package/dist/RS/v0/to/course-events/intervals.d.ts +1 -1
- package/dist/RS/v0/to/course-events/meta.d.ts +2 -2
- package/dist/RS/v0/to/course-events/meta.js.map +1 -1
- package/dist/RS/v0/to/courses.d.ts +5 -5
- package/dist/RS/v0/to/courses.js.map +1 -1
- package/dist/RS/v0/to/days.d.ts +1 -1
- package/dist/RS/v0/to/dependencies.d.ts +2 -2
- package/dist/RS/v0/to/groups.d.ts +2 -2
- package/dist/RS/v0/to/index.d.ts +13 -13
- package/dist/RS/v0/to/intervals.d.ts +1 -1
- package/dist/RS/v0/to/locked-times.d.ts +1 -1
- package/dist/RS/v0/to/schedules.d.ts +2 -2
- package/dist/RS/v0/to/settings.d.ts +1 -1
- package/dist/RS/v0/to/teachers.d.ts +2 -2
- package/dist/RS/v1/from/collections.d.ts +1 -1
- package/dist/RS/v1/from/groups.d.ts +1 -1
- package/dist/RS/v1/from/index.d.ts +8 -8
- package/dist/RS/v1/from/intervals.d.ts +1 -1
- package/dist/RS/v1/from/locked-times.d.ts +1 -1
- package/dist/RS/v1/from/placements.d.ts +2 -2
- package/dist/RS/v1/from/placements.js.map +1 -1
- package/dist/RS/v1/from/schedules.d.ts +2 -2
- package/dist/RS/v1/from/settings.d.ts +1 -1
- package/dist/RS/v1/from/teachers.d.ts +1 -1
- package/dist/RS/v1/to/available-dependencies.d.ts +1 -1
- package/dist/RS/v1/to/break-lengths.d.ts +1 -1
- package/dist/RS/v1/to/break-lengths.js.map +1 -1
- package/dist/RS/v1/to/collections.d.ts +6 -6
- package/dist/RS/v1/to/collections.js.map +1 -1
- package/dist/RS/v1/to/configurations.d.ts +2 -2
- package/dist/RS/v1/to/configurations.js.map +1 -1
- package/dist/RS/v1/to/constraints.d.ts +2 -2
- package/dist/RS/v1/to/course-events/days.d.ts +2 -2
- package/dist/RS/v1/to/course-events/dependencies.d.ts +2 -2
- package/dist/RS/v1/to/course-events/groups.d.ts +3 -3
- package/dist/RS/v1/to/course-events/in-locations.d.ts +1 -1
- package/dist/RS/v1/to/course-events/index.d.ts +3 -3
- package/dist/RS/v1/to/course-events/intervals.d.ts +1 -1
- package/dist/RS/v1/to/course-events/meta.d.ts +2 -2
- package/dist/RS/v1/to/course-events/meta.js.map +1 -1
- package/dist/RS/v1/to/days.d.ts +1 -1
- package/dist/RS/v1/to/dependencies.d.ts +2 -2
- package/dist/RS/v1/to/groups.d.ts +2 -2
- package/dist/RS/v1/to/index.d.ts +13 -13
- package/dist/RS/v1/to/intervals.d.ts +1 -1
- package/dist/RS/v1/to/locked-times.d.ts +1 -1
- package/dist/RS/v1/to/schedules.d.ts +2 -2
- package/dist/RS/v1/to/settings.d.ts +1 -1
- package/dist/RS/v1/to/teachers.d.ts +3 -3
- package/dist/RS/v2/from/collections.d.ts +3 -3
- package/dist/RS/v2/from/collections.js.map +1 -1
- package/dist/RS/v2/from/course-events.d.ts +2 -2
- package/dist/RS/v2/from/course-events.js.map +1 -1
- package/dist/RS/v2/from/days.d.ts +1 -1
- package/dist/RS/v2/from/dependencies.d.ts +1 -1
- package/dist/RS/v2/from/groups.d.ts +2 -3
- package/dist/RS/v2/from/groups.js.map +1 -1
- package/dist/RS/v2/from/index.d.ts +17 -17
- package/dist/RS/v2/from/intervals.d.ts +2 -2
- package/dist/RS/v2/from/intervals.js.map +1 -1
- package/dist/RS/v2/from/locked-times.d.ts +2 -3
- package/dist/RS/v2/from/locked-times.js.map +1 -1
- package/dist/RS/v2/from/placements.d.ts +2 -3
- package/dist/RS/v2/from/placements.js.map +1 -1
- package/dist/RS/v2/from/schedules.d.ts +7 -7
- package/dist/RS/v2/from/settings.d.ts +3 -3
- package/dist/RS/v2/from/settings.js.map +1 -1
- package/dist/RS/v2/from/teachers.d.ts +2 -3
- package/dist/RS/v2/from/teachers.js.map +1 -1
- package/dist/RS/v2/to/available-dependencies.d.ts +1 -1
- package/dist/RS/v2/to/break-lengths.d.ts +2 -2
- package/dist/RS/v2/to/break-lengths.js.map +1 -1
- package/dist/RS/v2/to/collections.d.ts +2 -2
- package/dist/RS/v2/to/collections.js.map +1 -1
- package/dist/RS/v2/to/configurations.d.ts +2 -2
- package/dist/RS/v2/to/configurations.js.map +1 -1
- package/dist/RS/v2/to/constraints.d.ts +1 -1
- package/dist/RS/v2/to/course-events/days.d.ts +2 -2
- package/dist/RS/v2/to/course-events/days.js.map +1 -1
- package/dist/RS/v2/to/course-events/dependencies.d.ts +2 -2
- package/dist/RS/v2/to/course-events/dependencies.js.map +1 -1
- package/dist/RS/v2/to/course-events/groups.d.ts +2 -2
- package/dist/RS/v2/to/course-events/groups.js.map +1 -1
- package/dist/RS/v2/to/course-events/in-locations.d.ts +2 -2
- package/dist/RS/v2/to/course-events/in-locations.js.map +1 -1
- package/dist/RS/v2/to/course-events/index.d.ts +2 -2
- package/dist/RS/v2/to/course-events/index.js.map +1 -1
- package/dist/RS/v2/to/course-events/intervals.d.ts +1 -1
- package/dist/RS/v2/to/course-events/intervals.js.map +1 -1
- package/dist/RS/v2/to/course-events/meta.d.ts +2 -2
- package/dist/RS/v2/to/course-events/meta.js.map +1 -1
- package/dist/RS/v2/to/default.d.ts +1 -1
- package/dist/RS/v2/to/dependencies.d.ts +1 -1
- package/dist/RS/v2/to/destructure.d.ts +2 -2
- package/dist/RS/v2/to/destructure.js.map +1 -1
- package/dist/RS/v2/to/dynamic-locked-times.d.ts +1 -1
- package/dist/RS/v2/to/groups.d.ts +1 -1
- package/dist/RS/v2/to/index.d.ts +14 -14
- package/dist/RS/v2/to/periods.d.ts +2 -2
- package/dist/RS/v2/to/periods.js.map +1 -1
- package/dist/RS/v2/to/persons.d.ts +1 -1
- package/dist/RS/v2/to/schedules.d.ts +3 -3
- package/dist/RS/v2/to/schedules.js.map +1 -1
- package/dist/RS/v2/to/settings.d.ts +2 -2
- package/dist/RS/v2/to/settings.js.map +1 -1
- package/dist/RS/v2/to/teachers.d.ts +1 -1
- package/dist/SS12000/from/calendar-events.d.ts +1 -1
- package/dist/SS12000/from/calendar-events.js.map +1 -1
- package/dist/SS12000/from/groups.js +1 -1
- package/dist/SS12000/from/index.d.ts +7 -7
- package/dist/SS12000/from/persons.js +3 -3
- package/dist/SS12000/from/persons.js.map +1 -1
- package/dist/SS12000/from/resources.d.ts +1 -1
- package/dist/SS12000/from/resources.js.map +1 -1
- package/dist/SS12000/to/activities.d.ts +1 -1
- package/dist/SS12000/to/calendar-events.d.ts +2 -2
- package/dist/SS12000/to/calendar-events.js.map +1 -1
- package/dist/SS12000/to/duties.d.ts +1 -1
- package/dist/SS12000/to/groups.d.ts +1 -1
- package/dist/SS12000/to/index.d.ts +7 -7
- package/dist/SS12000/to/persons.d.ts +1 -1
- package/dist/SS12000/to/rooms.d.ts +1 -1
- package/dist/SchoolSoft/api/from/index.d.ts +1 -1
- package/dist/SchoolSoft/api/from/schedules.js.map +1 -1
- package/dist/SchoolSoft/file/from/index.d.ts +1 -1
- package/dist/SchoolSoft/file/from/schedules.d.ts +1 -1
- package/dist/SchoolSoft/file/from/schedules.js.map +1 -1
- package/dist/SchoolSoft/file/to/index.d.ts +1 -1
- package/dist/SchoolSoft/file/to/schedules.d.ts +2 -2
- package/dist/SchoolSoft/file/to/schedules.js.map +1 -1
- package/dist/Skola24/from/course-and-events.d.ts +1 -1
- package/dist/Skola24/from/course-and-events.js.map +1 -1
- package/dist/common/get-date.d.ts +2 -2
- package/dist/common/get-date.js.map +1 -1
- package/dist/core/from/courses.js +49 -5
- package/dist/core/from/courses.js.map +1 -1
- package/dist/core/from/events.js +49 -5
- package/dist/core/from/events.js.map +1 -1
- package/dist/core/from/groups.js +49 -5
- package/dist/core/from/groups.js.map +1 -1
- package/dist/core/from/index.js +5 -1
- package/dist/core/from/index.js.map +1 -1
- package/dist/core/from/locations.js +49 -5
- package/dist/core/from/locations.js.map +1 -1
- package/dist/core/from/locked-times.js +49 -5
- package/dist/core/from/locked-times.js.map +1 -1
- package/dist/core/from/overlap-groups.js +49 -5
- 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 +49 -5
- package/dist/core/from/persons.js.map +1 -1
- package/dist/core/from/schedules.js +54 -6
- package/dist/core/from/schedules.js.map +1 -1
- package/dist/core/from/teachers.js +49 -5
- package/dist/core/from/teachers.js.map +1 -1
- package/dist/core/index.d.ts +10 -6
- package/dist/core/index.js +10 -6
- package/dist/core/index.js.map +1 -1
- package/dist/core/to/available-locations.js +76 -7
- package/dist/core/to/available-locations.js.map +1 -1
- package/dist/core/to/courses.d.ts +37 -1
- package/dist/core/to/courses.js +81 -8
- package/dist/core/to/courses.js.map +1 -1
- package/dist/core/to/days.js +49 -5
- package/dist/core/to/days.js.map +1 -1
- package/dist/core/to/events.d.ts +41 -1
- package/dist/core/to/events.js +81 -8
- package/dist/core/to/events.js.map +1 -1
- package/dist/core/to/groups.d.ts +15 -1
- package/dist/core/to/groups.js +54 -6
- package/dist/core/to/groups.js.map +1 -1
- package/dist/core/to/index.js +5 -1
- package/dist/core/to/index.js.map +1 -1
- package/dist/core/to/intervals.d.ts +4 -1
- package/dist/core/to/intervals.js.map +1 -1
- package/dist/core/to/locations.js +54 -6
- package/dist/core/to/locations.js.map +1 -1
- package/dist/core/to/locked-times.d.ts +2 -2
- package/dist/core/to/locked-times.js +82 -9
- package/dist/core/to/locked-times.js.map +1 -1
- package/dist/core/to/overlap-groups.js +81 -8
- package/dist/core/to/overlap-groups.js.map +1 -1
- package/dist/core/to/periods.js +5 -1
- package/dist/core/to/periods.js.map +1 -1
- package/dist/core/to/persons.js +81 -8
- package/dist/core/to/persons.js.map +1 -1
- package/dist/core/to/schedules.js +55 -7
- package/dist/core/to/schedules.js.map +1 -1
- package/dist/core/to/settings.js +49 -5
- package/dist/core/to/settings.js.map +1 -1
- package/dist/core/to/teachers.js +54 -6
- package/dist/core/to/teachers.js.map +1 -1
- package/dist/core/types/common/index.d.ts +2 -2
- package/dist/core/types/common/index.js +0 -1
- package/dist/core/types/common/index.js.map +1 -1
- package/dist/core/types/common.d.ts +26 -0
- package/dist/core/types/common.js +6 -0
- package/dist/core/types/common.js.map +1 -0
- package/dist/core/types/index.d.ts +27 -36
- package/dist/core/types/meta.d.ts +1 -1
- package/dist/core/types/teachers.d.ts +0 -2
- package/dist/core/v1/from/courses.d.ts +32 -0
- package/dist/core/v1/from/courses.js +56 -0
- package/dist/core/v1/from/courses.js.map +1 -0
- package/dist/core/v1/from/events.d.ts +37 -0
- package/dist/core/v1/from/events.js +25 -0
- package/dist/core/v1/from/events.js.map +1 -0
- package/dist/core/v1/from/groups.d.ts +17 -0
- package/dist/core/v1/from/groups.js +32 -0
- package/dist/core/v1/from/groups.js.map +1 -0
- package/dist/core/v1/from/index.d.ts +4 -0
- package/dist/core/v1/from/index.js +12 -0
- package/dist/core/v1/from/index.js.map +1 -0
- package/dist/core/v1/from/locations.d.ts +46 -0
- package/dist/core/v1/from/locations.js +32 -0
- package/dist/core/v1/from/locations.js.map +1 -0
- package/dist/core/v1/from/locked-times.d.ts +47 -0
- package/dist/core/v1/from/locked-times.js +31 -0
- package/dist/core/v1/from/locked-times.js.map +1 -0
- package/dist/core/v1/from/overlap-groups.d.ts +38 -0
- package/dist/core/v1/from/overlap-groups.js +31 -0
- package/dist/core/v1/from/overlap-groups.js.map +1 -0
- package/dist/core/v1/from/periods.d.ts +4 -0
- package/dist/core/v1/from/periods.js +27 -0
- package/dist/core/v1/from/periods.js.map +1 -0
- package/dist/core/v1/from/persons.d.ts +55 -0
- package/dist/core/v1/from/persons.js +26 -0
- package/dist/core/v1/from/persons.js.map +1 -0
- package/dist/core/v1/from/schedules.d.ts +151 -0
- package/dist/core/v1/from/schedules.js +77 -0
- package/dist/core/v1/from/schedules.js.map +1 -0
- package/dist/core/v1/from/teachers.d.ts +47 -0
- package/dist/core/v1/from/teachers.js +32 -0
- package/dist/core/v1/from/teachers.js.map +1 -0
- package/dist/core/v1/index.d.ts +8 -0
- package/dist/core/v1/index.js +14 -0
- package/dist/core/v1/index.js.map +1 -0
- package/dist/core/v1/to/available-locations.d.ts +8 -0
- package/dist/core/v1/to/available-locations.js +32 -0
- package/dist/core/v1/to/available-locations.js.map +1 -0
- package/dist/core/v1/to/courses.d.ts +33 -0
- package/dist/core/v1/to/courses.js +61 -0
- package/dist/core/v1/to/courses.js.map +1 -0
- package/dist/core/v1/to/days.d.ts +6 -0
- package/dist/core/v1/to/days.js +22 -0
- package/dist/core/v1/to/days.js.map +1 -0
- package/dist/core/v1/to/events.d.ts +38 -0
- package/dist/core/v1/to/events.js +68 -0
- package/dist/core/v1/to/events.js.map +1 -0
- package/dist/core/v1/to/groups.d.ts +17 -0
- package/dist/core/v1/to/groups.js +24 -0
- package/dist/core/v1/to/groups.js.map +1 -0
- package/dist/core/v1/to/index.d.ts +4 -0
- package/dist/core/v1/to/index.js +12 -0
- package/dist/core/v1/to/index.js.map +1 -0
- package/dist/core/v1/to/intervals.d.ts +6 -0
- package/dist/core/v1/to/intervals.js +20 -0
- package/dist/core/v1/to/intervals.js.map +1 -0
- package/dist/core/v1/to/locations.d.ts +46 -0
- package/dist/core/v1/to/locations.js +28 -0
- package/dist/core/v1/to/locations.js.map +1 -0
- package/dist/core/v1/to/locked-times.d.ts +4 -0
- package/dist/core/v1/to/locked-times.js +41 -0
- package/dist/core/v1/to/locked-times.js.map +1 -0
- package/dist/core/v1/to/overlap-groups.d.ts +4 -0
- package/dist/core/v1/to/overlap-groups.js +57 -0
- package/dist/core/v1/to/overlap-groups.js.map +1 -0
- package/dist/core/v1/to/periods.d.ts +3 -0
- package/dist/core/v1/to/periods.js +13 -0
- package/dist/core/v1/to/periods.js.map +1 -0
- package/dist/core/v1/to/persons.d.ts +56 -0
- package/dist/core/v1/to/persons.js +29 -0
- package/dist/core/v1/to/persons.js.map +1 -0
- package/dist/core/v1/to/schedules.d.ts +183 -0
- package/dist/core/v1/to/schedules.js +62 -0
- package/dist/core/v1/to/schedules.js.map +1 -0
- package/dist/core/v1/to/settings.d.ts +3 -0
- package/dist/core/v1/to/settings.js +24 -0
- package/dist/core/v1/to/settings.js.map +1 -0
- package/dist/core/v1/to/teachers.d.ts +47 -0
- package/dist/core/v1/to/teachers.js +28 -0
- package/dist/core/v1/to/teachers.js.map +1 -0
- package/dist/core/v1/types/areas.d.ts +11 -0
- package/dist/core/v1/types/areas.js +6 -0
- package/dist/core/v1/types/areas.js.map +1 -0
- package/dist/core/v1/types/available-locations.d.ts +8 -0
- package/dist/core/v1/types/available-locations.js +6 -0
- package/dist/core/v1/types/available-locations.js.map +1 -0
- package/dist/core/v1/types/break-lengths.d.ts +1 -0
- package/dist/core/v1/types/break-lengths.js +6 -0
- package/dist/core/v1/types/break-lengths.js.map +1 -0
- package/dist/core/v1/types/common/coalesced.d.ts +5 -0
- package/dist/core/v1/types/common/coalesced.js +6 -0
- package/dist/core/v1/types/common/coalesced.js.map +1 -0
- package/dist/core/v1/types/courses.d.ts +50 -0
- package/dist/core/v1/types/courses.js +6 -0
- package/dist/core/v1/types/courses.js.map +1 -0
- package/dist/core/v1/types/days.d.ts +9 -0
- package/dist/core/v1/types/days.js +6 -0
- package/dist/core/v1/types/days.js.map +1 -0
- package/dist/core/v1/types/division-settings.d.ts +34 -0
- package/dist/core/v1/types/division-settings.js +6 -0
- package/dist/core/v1/types/division-settings.js.map +1 -0
- package/dist/core/v1/types/divisions.d.ts +40 -0
- package/dist/core/v1/types/divisions.js +6 -0
- package/dist/core/v1/types/divisions.js.map +1 -0
- package/dist/core/v1/types/events.d.ts +56 -0
- package/dist/core/v1/types/events.js +6 -0
- package/dist/core/v1/types/events.js.map +1 -0
- package/dist/core/v1/types/groups.d.ts +32 -0
- package/dist/core/v1/types/groups.js +6 -0
- package/dist/core/v1/types/groups.js.map +1 -0
- package/dist/core/v1/types/index.d.ts +36 -0
- package/dist/core/v1/types/index.js +6 -0
- package/dist/core/v1/types/index.js.map +1 -0
- package/dist/core/v1/types/intervals.d.ts +12 -0
- package/dist/core/v1/types/intervals.js +6 -0
- package/dist/core/v1/types/intervals.js.map +1 -0
- package/dist/core/v1/types/locations.d.ts +27 -0
- package/dist/core/v1/types/locations.js +6 -0
- package/dist/core/v1/types/locations.js.map +1 -0
- package/dist/core/v1/types/locked-times.d.ts +34 -0
- package/dist/core/v1/types/locked-times.js +6 -0
- package/dist/core/v1/types/locked-times.js.map +1 -0
- package/dist/core/v1/types/meta.d.ts +5 -0
- package/dist/core/v1/types/meta.js +6 -0
- package/dist/core/v1/types/meta.js.map +1 -0
- package/dist/core/v1/types/overlap-groups.d.ts +21 -0
- package/dist/core/v1/types/overlap-groups.js +6 -0
- package/dist/core/v1/types/overlap-groups.js.map +1 -0
- package/dist/core/v1/types/periods.d.ts +17 -0
- package/dist/core/v1/types/periods.js +6 -0
- package/dist/core/v1/types/periods.js.map +1 -0
- package/dist/core/v1/types/persons.d.ts +35 -0
- package/dist/core/v1/types/persons.js +6 -0
- package/dist/core/v1/types/persons.js.map +1 -0
- package/dist/core/v1/types/teachers.d.ts +29 -0
- package/dist/core/v1/types/teachers.js +6 -0
- package/dist/core/v1/types/teachers.js.map +1 -0
- package/dist/core/v2/from/courses.d.ts +43 -0
- package/dist/core/v2/from/courses.js +56 -0
- package/dist/core/v2/from/courses.js.map +1 -0
- package/dist/core/v2/from/events.d.ts +47 -0
- package/dist/core/v2/from/events.js +25 -0
- package/dist/core/v2/from/events.js.map +1 -0
- package/dist/core/v2/from/groups.d.ts +17 -0
- package/dist/core/v2/from/groups.js +32 -0
- package/dist/core/v2/from/groups.js.map +1 -0
- package/dist/core/v2/from/index.d.ts +4 -0
- package/dist/core/v2/from/index.js +12 -0
- package/dist/core/v2/from/index.js.map +1 -0
- package/dist/core/v2/from/locations.d.ts +46 -0
- package/dist/core/v2/from/locations.js +32 -0
- package/dist/core/v2/from/locations.js.map +1 -0
- package/dist/core/v2/from/locked-times.d.ts +47 -0
- package/dist/core/v2/from/locked-times.js +31 -0
- package/dist/core/v2/from/locked-times.js.map +1 -0
- package/dist/core/v2/from/overlap-groups.d.ts +38 -0
- package/dist/core/v2/from/overlap-groups.js +31 -0
- package/dist/core/v2/from/overlap-groups.js.map +1 -0
- package/dist/core/v2/from/periods.d.ts +4 -0
- package/dist/core/v2/from/periods.js +27 -0
- package/dist/core/v2/from/periods.js.map +1 -0
- package/dist/core/v2/from/persons.d.ts +55 -0
- package/dist/core/v2/from/persons.js +26 -0
- package/dist/core/v2/from/persons.js.map +1 -0
- package/dist/core/v2/from/schedules.d.ts +172 -0
- package/dist/core/v2/from/schedules.js +77 -0
- package/dist/core/v2/from/schedules.js.map +1 -0
- package/dist/core/v2/from/teachers.d.ts +47 -0
- package/dist/core/v2/from/teachers.js +32 -0
- package/dist/core/v2/from/teachers.js.map +1 -0
- package/dist/core/v2/index.d.ts +8 -0
- package/dist/core/v2/index.js +14 -0
- package/dist/core/v2/index.js.map +1 -0
- package/dist/core/v2/to/available-locations.d.ts +8 -0
- package/dist/core/v2/to/available-locations.js +32 -0
- package/dist/core/v2/to/available-locations.js.map +1 -0
- package/dist/core/v2/to/courses.d.ts +44 -0
- package/dist/core/v2/to/courses.js +79 -0
- package/dist/core/v2/to/courses.js.map +1 -0
- package/dist/core/v2/to/days.d.ts +6 -0
- package/dist/core/v2/to/days.js +22 -0
- package/dist/core/v2/to/days.js.map +1 -0
- package/dist/core/v2/to/events.d.ts +48 -0
- package/dist/core/v2/to/events.js +86 -0
- package/dist/core/v2/to/events.js.map +1 -0
- package/dist/core/v2/to/groups.d.ts +17 -0
- package/dist/core/v2/to/groups.js +24 -0
- package/dist/core/v2/to/groups.js.map +1 -0
- package/dist/core/v2/to/index.d.ts +4 -0
- package/dist/core/v2/to/index.js +12 -0
- package/dist/core/v2/to/index.js.map +1 -0
- package/dist/core/v2/to/intervals.d.ts +6 -0
- package/dist/core/v2/to/intervals.js +20 -0
- package/dist/core/v2/to/intervals.js.map +1 -0
- package/dist/core/v2/to/locations.d.ts +46 -0
- package/dist/core/v2/to/locations.js +28 -0
- package/dist/core/v2/to/locations.js.map +1 -0
- package/dist/core/v2/to/locked-times.d.ts +4 -0
- package/dist/core/v2/to/locked-times.js +41 -0
- package/dist/core/v2/to/locked-times.js.map +1 -0
- package/dist/core/v2/to/overlap-groups.d.ts +4 -0
- package/dist/core/v2/to/overlap-groups.js +57 -0
- package/dist/core/v2/to/overlap-groups.js.map +1 -0
- package/dist/core/v2/to/periods.d.ts +3 -0
- package/dist/core/v2/to/periods.js +13 -0
- package/dist/core/v2/to/periods.js.map +1 -0
- package/dist/core/v2/to/persons.d.ts +56 -0
- package/dist/core/v2/to/persons.js +29 -0
- package/dist/core/v2/to/persons.js.map +1 -0
- package/dist/core/v2/to/schedules.d.ts +204 -0
- package/dist/core/v2/to/schedules.js +62 -0
- package/dist/core/v2/to/schedules.js.map +1 -0
- package/dist/core/v2/to/settings.d.ts +3 -0
- package/dist/core/v2/to/settings.js +24 -0
- package/dist/core/v2/to/settings.js.map +1 -0
- package/dist/core/v2/to/teachers.d.ts +47 -0
- package/dist/core/v2/to/teachers.js +28 -0
- package/dist/core/v2/to/teachers.js.map +1 -0
- package/dist/core/v2/types/areas.d.ts +11 -0
- package/dist/core/v2/types/areas.js +6 -0
- package/dist/core/v2/types/areas.js.map +1 -0
- package/dist/core/v2/types/available-locations.d.ts +8 -0
- package/dist/core/v2/types/available-locations.js +6 -0
- package/dist/core/v2/types/available-locations.js.map +1 -0
- package/dist/core/v2/types/break-lengths.d.ts +1 -0
- package/dist/core/v2/types/break-lengths.js +6 -0
- package/dist/core/v2/types/break-lengths.js.map +1 -0
- package/dist/core/v2/types/common/coalesced.d.ts +5 -0
- package/dist/core/v2/types/common/coalesced.js +6 -0
- package/dist/core/v2/types/common/coalesced.js.map +1 -0
- package/dist/core/v2/types/common/index.d.ts +26 -0
- package/dist/core/v2/types/common/index.js +6 -0
- package/dist/core/v2/types/common/index.js.map +1 -0
- package/dist/core/v2/types/courses.d.ts +61 -0
- package/dist/core/v2/types/courses.js +6 -0
- package/dist/core/v2/types/courses.js.map +1 -0
- package/dist/core/v2/types/days.d.ts +9 -0
- package/dist/core/v2/types/days.js +6 -0
- package/dist/core/v2/types/days.js.map +1 -0
- package/dist/core/v2/types/division-settings.d.ts +34 -0
- package/dist/core/v2/types/division-settings.js +6 -0
- package/dist/core/v2/types/division-settings.js.map +1 -0
- package/dist/core/v2/types/divisions.d.ts +40 -0
- package/dist/core/v2/types/divisions.js +6 -0
- package/dist/core/v2/types/divisions.js.map +1 -0
- package/dist/core/v2/types/events.d.ts +66 -0
- package/dist/core/v2/types/events.js +6 -0
- package/dist/core/v2/types/events.js.map +1 -0
- package/dist/core/v2/types/groups.d.ts +32 -0
- package/dist/core/v2/types/groups.js +6 -0
- package/dist/core/v2/types/groups.js.map +1 -0
- package/dist/core/v2/types/index.d.ts +36 -0
- package/dist/core/v2/types/index.js +6 -0
- package/dist/core/v2/types/index.js.map +1 -0
- package/dist/core/v2/types/intervals.d.ts +12 -0
- package/dist/core/v2/types/intervals.js +6 -0
- package/dist/core/v2/types/intervals.js.map +1 -0
- package/dist/core/v2/types/locations.d.ts +27 -0
- package/dist/core/v2/types/locations.js +6 -0
- package/dist/core/v2/types/locations.js.map +1 -0
- package/dist/core/v2/types/locked-times.d.ts +34 -0
- package/dist/core/v2/types/locked-times.js +6 -0
- package/dist/core/v2/types/locked-times.js.map +1 -0
- package/dist/core/v2/types/meta.d.ts +5 -0
- package/dist/core/v2/types/meta.js +6 -0
- package/dist/core/v2/types/meta.js.map +1 -0
- package/dist/core/v2/types/overlap-groups.d.ts +21 -0
- package/dist/core/v2/types/overlap-groups.js +6 -0
- package/dist/core/v2/types/overlap-groups.js.map +1 -0
- package/dist/core/v2/types/periods.d.ts +17 -0
- package/dist/core/v2/types/periods.js +6 -0
- package/dist/core/v2/types/periods.js.map +1 -0
- package/dist/core/v2/types/persons.d.ts +35 -0
- package/dist/core/v2/types/persons.js +6 -0
- package/dist/core/v2/types/persons.js.map +1 -0
- package/dist/core/v2/types/teachers.d.ts +29 -0
- package/dist/core/v2/types/teachers.js +6 -0
- package/dist/core/v2/types/teachers.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
|
+
var _default = teachers => {
|
|
13
|
+
teachers = teachers.filter(_ref => {
|
|
14
|
+
var {
|
|
15
|
+
id
|
|
16
|
+
} = _ref;
|
|
17
|
+
return id != undefined;
|
|
18
|
+
});
|
|
19
|
+
if (teachers.length != Array.from(new Set(teachers.map(_ref2 => {
|
|
20
|
+
var {
|
|
21
|
+
id
|
|
22
|
+
} = _ref2;
|
|
23
|
+
return id;
|
|
24
|
+
}))).length) throw new Error('(Core::From::V2::Teachers) Teachers array have two or more teachers with the same ID');
|
|
25
|
+
return teachers.map(teacher => {
|
|
26
|
+
if (!teacher.id) throw new Error('(Core::From::V2::Teachers) Teacher id is undefiend');
|
|
27
|
+
if (!teacher.displayName) teacher.displayName = teacher.id;
|
|
28
|
+
return _objectSpread({}, teacher);
|
|
29
|
+
}, []);
|
|
30
|
+
};
|
|
31
|
+
exports.default = _default;
|
|
32
|
+
//# sourceMappingURL=teachers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teachers.js","mappings":";;;;;;;;;;;eAGgBA,QAAsC,IAAI;EACxDA,QAAQ,GAAGA,QAAQ,CAACC,MAAM,CAAC;IAAA,IAAC;MAAEC;IAAE,CAAE;IAAA,OAAKA,EAAE,IAAIC,SAAS;EAAA,EAAC;EAEvD,IAAIH,QAAQ,CAACI,MAAM,IAAIC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAAgBP,QAAQ,CAACQ,GAAG,CAAC;IAAA,IAAC;MAAEN;IAAE,CAAE;IAAA,OAAKA,EAAE;EAAA,EAAC,CAAC,CAAC,CAACE,MAAM,EAC5F,MAAM,IAAIK,KAAK,CAAC,sFAAsF,CAAC;EAEzG,OAAOT,QAAQ,CAACQ,GAAG,CAACE,OAAO,IAAG;IAC5B,IAAI,CAAEA,OAAO,CAACR,EAAE,EACd,MAAM,IAAIO,KAAK,CAAC,oDAAoD,CAAC;IAEvE,IAAI,CAAEC,OAAO,CAACC,WAAW,EACvBD,OAAO,CAACC,WAAW,GAAGD,OAAO,CAACR,EAAE;IAElC,yBAAYQ,OAAO;EACrB,CAAC,EAAE,EAAE,CAAqB;AAC5B,CAAC;AAAA","names":["teachers","filter","id","undefined","length","Array","from","Set","map","Error","teacher","displayName"],"sourceRoot":"","sources":["../../../../src/core/v1/from/teachers.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Map = void 0;
|
|
7
|
+
var _from2 = _interopRequireDefault(require("./from"));
|
|
8
|
+
var _to2 = _interopRequireDefault(require("./to"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
class Map {}
|
|
11
|
+
exports.Map = Map;
|
|
12
|
+
Map.to = _to2.default;
|
|
13
|
+
Map.from = _from2.default;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;AAAA;AACA;AAAuD;AAGjD,MAAOA,GAAG;;AACPA,MAAE,GAAKC,YAAG;AACVD,QAAI,GAAGE,cAAK","names":["Map","_to","_from"],"sourceRoot":"","sources":["../../../src/core/v1/index.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AvailableLocation } from '../types/available-locations';
|
|
2
|
+
import { Deserialized } from '../../types';
|
|
3
|
+
declare const _default: (availableLocations: Deserialized<AvailableLocation>[]) => {
|
|
4
|
+
locations: string[];
|
|
5
|
+
rank?: number | undefined;
|
|
6
|
+
groupIndex?: number | undefined;
|
|
7
|
+
}[];
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _excluded = ["locations"];
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
12
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
|
+
var _default = availableLocations => {
|
|
16
|
+
return (availableLocations || []).map(_ref => {
|
|
17
|
+
var {
|
|
18
|
+
locations
|
|
19
|
+
} = _ref,
|
|
20
|
+
source = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return _objectSpread(_objectSpread({}, source), {}, {
|
|
22
|
+
locations: (locations || []).map(_ref2 => {
|
|
23
|
+
var {
|
|
24
|
+
id
|
|
25
|
+
} = _ref2;
|
|
26
|
+
return id;
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.default = _default;
|
|
32
|
+
//# sourceMappingURL=available-locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"available-locations.js","mappings":";;;;;;;;;;;;;;eAIgBA,kBAAqD,IAAI;EACvE,OAAO,CAACA,kBAAkB,IAAI,EAAE,EAAEC,GAAG,CAAC;IAAA,IAAC;QAAEC;MAAoB,CAAE;MAARC,MAAM;IAAA,uCACtDA,MAAM;MACTD,SAAS,EAAE,CAACA,SAAS,IAAG,EAAE,EAAED,GAAG,CAAC;QAAA,IAAC;UAAEG;QAAE,CAAE;QAAA,OAAKA,EAAG;MAAA;IAAC;EAAA,CAChD,CACuC;AAC7C,CAAC;AAAA","names":["availableLocations","map","locations","source","id"],"sourceRoot":"","sources":["../../../../src/core/v1/to/available-locations.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Course } from '../types/courses';
|
|
2
|
+
import { Deserialized } from '../../types';
|
|
3
|
+
declare const _default: (courses: Deserialized<Course>[]) => {
|
|
4
|
+
period?: string | undefined;
|
|
5
|
+
locations?: {
|
|
6
|
+
locations: string[];
|
|
7
|
+
rank?: number | undefined;
|
|
8
|
+
groupIndex?: number | undefined;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
participants?: string[] | undefined;
|
|
11
|
+
groups?: string[] | undefined;
|
|
12
|
+
teachers?: string[] | undefined;
|
|
13
|
+
type?: string | undefined;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
weeks?: number[] | undefined;
|
|
17
|
+
days?: Deserialized<import("../types/days").Day>[] | undefined;
|
|
18
|
+
displayName?: string | undefined;
|
|
19
|
+
updatedAt?: string | undefined;
|
|
20
|
+
intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
|
|
21
|
+
ids?: string | undefined;
|
|
22
|
+
minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
|
|
23
|
+
weight?: number | undefined;
|
|
24
|
+
density?: number | undefined;
|
|
25
|
+
potentialCenter?: string | undefined;
|
|
26
|
+
subject?: string | undefined;
|
|
27
|
+
eventDurationVariance?: number | undefined;
|
|
28
|
+
totalTime?: string | undefined;
|
|
29
|
+
centerOfAttraction?: string | null | undefined;
|
|
30
|
+
minutesPerWeek?: number | undefined;
|
|
31
|
+
expectedTotalHours?: number | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
|
+
var _availableLocations2 = _interopRequireDefault(require("./available-locations"));
|
|
9
|
+
var _days2 = _interopRequireDefault(require("./days"));
|
|
10
|
+
var _intervals2 = _interopRequireDefault(require("./intervals"));
|
|
11
|
+
var _excluded = ["groups", "locations", "teachers", "participants", "period"];
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
+
var _default = courses => {
|
|
21
|
+
return courses.map(_ref => {
|
|
22
|
+
var {
|
|
23
|
+
groups,
|
|
24
|
+
locations,
|
|
25
|
+
teachers,
|
|
26
|
+
participants,
|
|
27
|
+
period
|
|
28
|
+
} = _ref,
|
|
29
|
+
course = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
+
if (course.days) course.days = (0, _days2.default)(course.days);
|
|
31
|
+
if (course.intervals) course.intervals = (0, _intervals2.default)(course.intervals);
|
|
32
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _lodash.default.omit(course, ['_id', 'events', 'lockedTimes', 'overlapGroup', 'overlapSpecies', 'belongsTo', 'createdAt', 'lastModifiedBy'])), teachers && {
|
|
33
|
+
teachers: teachers.map(_ref2 => {
|
|
34
|
+
var {
|
|
35
|
+
id
|
|
36
|
+
} = _ref2;
|
|
37
|
+
return id;
|
|
38
|
+
})
|
|
39
|
+
}), groups && {
|
|
40
|
+
groups: groups.map(_ref3 => {
|
|
41
|
+
var {
|
|
42
|
+
id
|
|
43
|
+
} = _ref3;
|
|
44
|
+
return id;
|
|
45
|
+
})
|
|
46
|
+
}), participants && {
|
|
47
|
+
participants: participants.map(_ref4 => {
|
|
48
|
+
var {
|
|
49
|
+
id
|
|
50
|
+
} = _ref4;
|
|
51
|
+
return id;
|
|
52
|
+
})
|
|
53
|
+
}), locations && {
|
|
54
|
+
locations: (0, _availableLocations2.default)(locations)
|
|
55
|
+
}), period && {
|
|
56
|
+
period: period.id
|
|
57
|
+
});
|
|
58
|
+
}, []);
|
|
59
|
+
};
|
|
60
|
+
exports.default = _default;
|
|
61
|
+
//# sourceMappingURL=courses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"courses.js","mappings":";;;;;;AAAA;AAEA;AACA;AAEA;AAA8D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAM9CA,OAA+B,IAAI;EACjD,OAAOA,OAAO,CAACC,GAAG,CAAC,QAAqE;IAAA,IAApE;QAAEC,MAAM;QAAEC,SAAS;QAAEC,QAAQ;QAAEC,YAAY;QAAEC;MAAiB,CAAE;MAARC,MAAM;IAEhF,IAAIA,MAAM,CAACC,IAAI,EACbD,MAAM,CAACC,IAAI,GAAS,kBAAK,EAACD,MAAM,CAACC,IAAI,CAAC;IAExC,IAAID,MAAM,CAACE,SAAS,EAClBF,MAAM,CAACE,SAAS,GAAI,uBAAU,EAACF,MAAM,CAACE,SAAS,CAAC;IAElD,+FACKC,eAAC,CAACC,IAAI,CAACJ,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,GAC9HH,QAAQ,IAAQ;MAAEA,QAAQ,EAAMA,QAAQ,CAACH,GAAG,CAAC;QAAA,IAAC;UAAEW;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GACjEV,MAAM,IAAU;MAAEA,MAAM,EAAQA,MAAM,CAACD,GAAG,CAAC;QAAA,IAAC;UAAEW;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GAC/DP,YAAY,IAAI;MAAEA,YAAY,EAAEA,YAAY,CAACJ,GAAG,CAAC;QAAA,IAAC;UAAEW;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GACrET,SAAS,IAAO;MAAEA,SAAS,EAAE,gCAAmB,EAACA,SAAS;IAAC,CAAE,GAC7DG,MAAM,IAAU;MAAEA,MAAM,EAAEA,MAAM,CAACM;IAAE,CAAE;EAE5C,CAAC,EAAE,EAAE,CAAgC;AACvC,CAAC;AAAA","names":["courses","map","groups","locations","teachers","participants","period","course","days","intervals","_","omit","id"],"sourceRoot":"","sources":["../../../../src/core/v1/to/courses.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
|
+
var _default = days => {
|
|
13
|
+
return days.map(day => {
|
|
14
|
+
return _objectSpread({
|
|
15
|
+
day: day.day
|
|
16
|
+
}, day.rank && {
|
|
17
|
+
rank: day.rank
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
//# sourceMappingURL=days.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"days.js","mappings":";;;;;;;;;;;eAEgBA,IAAW,IAAI;EAC7B,OAAOA,IAAI,CAACC,GAAG,CAACC,GAAG,IAAG;IACpB;MACEA,GAAG,EAAGA,GAAG,CAACA;IAAG,GACVA,GAAG,CAACC,IAAI,IAAI;MAAEA,IAAI,EAAED,GAAG,CAACC;IAAI,CAAE;EAErC,CAAC,CAAiB;AACpB,CAAC;AAAA","names":["days","map","day","rank"],"sourceRoot":"","sources":["../../../../src/core/v1/to/days.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Event } from '../types/events';
|
|
2
|
+
import { Deserialized } from '../../types';
|
|
3
|
+
declare const _default: (events: Deserialized<Event>[]) => {
|
|
4
|
+
period?: string | undefined;
|
|
5
|
+
inLocations?: string[] | undefined;
|
|
6
|
+
locations?: {
|
|
7
|
+
locations: string[];
|
|
8
|
+
rank?: number | undefined;
|
|
9
|
+
groupIndex?: number | undefined;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
participants?: string[] | undefined;
|
|
12
|
+
groups?: string[] | undefined;
|
|
13
|
+
teachers?: string[] | undefined;
|
|
14
|
+
course: string | undefined;
|
|
15
|
+
type?: string | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
end?: string | Date | import("moment").Moment | undefined;
|
|
18
|
+
start?: string | Date | import("moment").Moment | undefined;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
visible?: boolean | undefined;
|
|
21
|
+
weeks?: number[] | undefined;
|
|
22
|
+
days?: Deserialized<import("../types/days").Day>[] | undefined;
|
|
23
|
+
displayName?: string | undefined;
|
|
24
|
+
updatedAt?: string | undefined;
|
|
25
|
+
parked?: boolean | undefined;
|
|
26
|
+
duration?: number | undefined;
|
|
27
|
+
durationVariance?: number | undefined;
|
|
28
|
+
intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
|
|
29
|
+
ids?: string | undefined;
|
|
30
|
+
minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
|
|
31
|
+
weight?: number | undefined;
|
|
32
|
+
density?: number | undefined;
|
|
33
|
+
potentialCenter?: string | undefined;
|
|
34
|
+
centerOfAttraction?: string | null | undefined;
|
|
35
|
+
fixedStart?: boolean | undefined;
|
|
36
|
+
preferredDuration?: number | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
|
+
var _availableLocations2 = _interopRequireDefault(require("./available-locations"));
|
|
9
|
+
var _days2 = _interopRequireDefault(require("./days"));
|
|
10
|
+
var _intervals2 = _interopRequireDefault(require("./intervals"));
|
|
11
|
+
var _excluded = ["course", "groups", "locations", "teachers", "inLocations", "participants", "period"];
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
+
var _default = events => {
|
|
21
|
+
return events.map(_ref => {
|
|
22
|
+
var {
|
|
23
|
+
course,
|
|
24
|
+
groups,
|
|
25
|
+
locations,
|
|
26
|
+
teachers,
|
|
27
|
+
inLocations,
|
|
28
|
+
participants,
|
|
29
|
+
period
|
|
30
|
+
} = _ref,
|
|
31
|
+
event = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
+
if (event.preferredDuration == undefined) event.preferredDuration = event.duration;
|
|
33
|
+
if (event.days) event.days = (0, _days2.default)(event.days);
|
|
34
|
+
if (event.intervals) event.intervals = (0, _intervals2.default)(event.intervals);
|
|
35
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _lodash.default.omit(event, ['_id', 'lockedTimes', 'overlapGroup', 'overlapSpecies', 'belongsTo', 'createdAt', 'lastModifiedBy'])), {}, {
|
|
36
|
+
course: course === null || course === void 0 ? void 0 : course.id
|
|
37
|
+
}, teachers && {
|
|
38
|
+
teachers: teachers.map(_ref2 => {
|
|
39
|
+
var {
|
|
40
|
+
id
|
|
41
|
+
} = _ref2;
|
|
42
|
+
return id;
|
|
43
|
+
})
|
|
44
|
+
}), groups && {
|
|
45
|
+
groups: groups.map(_ref3 => {
|
|
46
|
+
var {
|
|
47
|
+
id
|
|
48
|
+
} = _ref3;
|
|
49
|
+
return id;
|
|
50
|
+
})
|
|
51
|
+
}), participants && {
|
|
52
|
+
participants: participants.map(_ref4 => {
|
|
53
|
+
var {
|
|
54
|
+
id
|
|
55
|
+
} = _ref4;
|
|
56
|
+
return id;
|
|
57
|
+
})
|
|
58
|
+
}), locations && {
|
|
59
|
+
locations: (0, _availableLocations2.default)(locations)
|
|
60
|
+
}), inLocations && {
|
|
61
|
+
inLocations: inLocations.map(x => x === null ? null : x.id)
|
|
62
|
+
}), period && {
|
|
63
|
+
period: period.id
|
|
64
|
+
});
|
|
65
|
+
}, []);
|
|
66
|
+
};
|
|
67
|
+
exports.default = _default;
|
|
68
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","mappings":";;;;;;AAAA;AAEA;AACA;AAEA;AAA8D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAM9CA,MAA6B,IAAI;EAC/C,OAAOA,MAAM,CAACC,GAAG,CAAC,QAAyF;IAAA,IAAxF;QAAEC,MAAM;QAAEC,MAAM;QAAEC,SAAS;QAAEC,QAAQ;QAAEC,WAAW;QAAEC,YAAY;QAAEC;MAAgB,CAAE;MAAPC,KAAK;IAGnG,IAAIA,KAAK,CAACC,iBAAiB,IAAIC,SAAS,EACtCF,KAAK,CAACC,iBAAiB,GAAGD,KAAK,CAACG,QAAS;IAE3C,IAAIH,KAAK,CAACI,IAAI,EACZJ,KAAK,CAACI,IAAI,GAAS,kBAAK,EAACJ,KAAK,CAACI,IAAI,CAAC;IAEtC,IAAIJ,KAAK,CAACK,SAAS,EACjBL,KAAK,CAACK,SAAS,GAAI,uBAAU,EAACL,KAAK,CAACK,SAAS,CAAC;IAEhD,6GACKC,eAAC,CAACC,IAAI,CAACP,KAAK,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;MACtHP,MAAM,EAAEA,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEe;IAAE,GACfZ,QAAQ,IAAQ;MAAEA,QAAQ,EAAMA,QAAQ,CAACJ,GAAG,CAAC;QAAA,IAAC;UAAEgB;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GACjEd,MAAM,IAAU;MAAEA,MAAM,EAAQA,MAAM,CAACF,GAAG,CAAC;QAAA,IAAC;UAAEgB;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GAC/DV,YAAY,IAAI;MAAEA,YAAY,EAAEA,YAAY,CAACN,GAAG,CAAC;QAAA,IAAC;UAAEgB;QAAE,CAAE;QAAA,OAAMA,EAAG;MAAA,CAAC;IAAC,CAAE,GACrEb,SAAS,IAAO;MAAEA,SAAS,EAAK,gCAAmB,EAACA,SAAS;IAAC,CAAE,GAChEE,WAAW,IAAK;MAAEA,WAAW,EAAGA,WAAW,CAACL,GAAG,CAACiB,CAAC,IAAIA,CAAC,KAAK,IAAI,GAAG,IAAI,GAAGA,CAAC,CAACD,EAAG;IAAa,CAAE,GAC7FT,MAAM,IAAU;MAAEA,MAAM,EAAQA,MAAM,CAACS;IAAE,CAAE;EAElD,CAAC,EAAE,EAAE,CAA+B;AACtC,CAAC;AAAA","names":["events","map","course","groups","locations","teachers","inLocations","participants","period","event","preferredDuration","undefined","duration","days","intervals","_","omit","id","x"],"sourceRoot":"","sources":["../../../../src/core/v1/to/events.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Group } from '../types/groups';
|
|
2
|
+
declare const _default: (groups: Group[]) => {
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
days?: import("../types/days").Day[] | undefined;
|
|
5
|
+
displayName?: string | undefined;
|
|
6
|
+
updatedAt?: string | undefined;
|
|
7
|
+
intervals?: import("../types/intervals").Interval[] | undefined;
|
|
8
|
+
ids?: string | undefined;
|
|
9
|
+
minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
|
|
10
|
+
maxNumWorkingHours?: number | boolean | undefined;
|
|
11
|
+
maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
|
|
12
|
+
forbidOverlappingEvents?: boolean | undefined;
|
|
13
|
+
disableDayLengthPunishment?: boolean | undefined;
|
|
14
|
+
weight?: number | undefined;
|
|
15
|
+
rank?: number | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
|
+
var _days2 = _interopRequireDefault(require("./days"));
|
|
9
|
+
var _intervals2 = _interopRequireDefault(require("./intervals"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
+
var _default = groups => {
|
|
17
|
+
return groups.map(group => {
|
|
18
|
+
if (group.days) group.days = (0, _days2.default)(group.days);
|
|
19
|
+
if (group.intervals) group.intervals = (0, _intervals2.default)(group.intervals);
|
|
20
|
+
return _objectSpread({}, _lodash.default.omit(group, ['_id', 'members', 'lunch', 'lockedTimes', 'belongsTo', 'createdAt', 'lastModifiedBy']));
|
|
21
|
+
}, []);
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.js","mappings":";;;;;;AAAA;AAEA;AAEA;AAA8D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAI9CA,MAAe,IAAI;EAEjC,OAAOA,MAAM,CAACC,GAAG,CAACC,KAAK,IAAG;IACxB,IAAIA,KAAK,CAACC,IAAI,EACZD,KAAK,CAACC,IAAI,GAAS,kBAAK,EAACD,KAAK,CAACC,IAAI,CAAC;IAEtC,IAAID,KAAK,CAACE,SAAS,EACjBF,KAAK,CAACE,SAAS,GAAI,uBAAU,EAACF,KAAK,CAACE,SAAS,CAAC;IAEhD,yBACKC,eAAC,CAACC,IAAI,CAACJ,KAAK,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;EAE5G,CAAC,EAAE,EAAE,CAAmB;AAC1B,CAAC;AAAA","names":["groups","map","group","days","intervals","_","omit"],"sourceRoot":"","sources":["../../../../src/core/v1/to/groups.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _schedules2 = _interopRequireDefault(require("./schedules"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
class default_1 {}
|
|
10
|
+
exports.default = default_1;
|
|
11
|
+
default_1.schedules = _schedules2.default;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;AAAA;AAA8D;AAEhD;;AACLA,mBAAS,GAAGC,mBAAU","names":["default_1","_schedules"],"sourceRoot":"","sources":["../../../../src/core/v1/to/index.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = intervals => {
|
|
8
|
+
return intervals.map(interval => {
|
|
9
|
+
var {
|
|
10
|
+
start,
|
|
11
|
+
end
|
|
12
|
+
} = interval;
|
|
13
|
+
return {
|
|
14
|
+
start,
|
|
15
|
+
end
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
exports.default = _default;
|
|
20
|
+
//# sourceMappingURL=intervals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intervals.js","mappings":";;;;;;eAEgBA,SAAqB,IAAI;EACvC,OAAOA,SAAS,CAACC,GAAG,CAACC,QAAQ,IAAG;IAC9B,IAAM;MAAEC,KAAK;MAAEC;IAAG,CAAE,GAAGF,QAAQ;IAC/B,OAAO;MAAEC,KAAK;MAAEC;IAAG,CAAE;EACvB,CAAC,CAAsB;AACzB,CAAC;AAAA","names":["intervals","map","interval","start","end"],"sourceRoot":"","sources":["../../../../src/core/v1/to/intervals.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
+
import { Location } from '../types/locations';
|
|
27
|
+
declare const _default: (locations: Location[]) => {
|
|
28
|
+
_id?: import("mongoose").Types.ObjectId | undefined;
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
belongsTo?: string | import("mongoose").Types.ObjectId | import("../types/divisions").Division | undefined;
|
|
31
|
+
ids?: string | undefined;
|
|
32
|
+
rank?: number | undefined;
|
|
33
|
+
seats?: number | undefined;
|
|
34
|
+
displayName?: string | undefined;
|
|
35
|
+
text?: string | undefined;
|
|
36
|
+
lockedTimes?: import("mongoose").Types.ObjectId[] | string[] | import("../types/locked-times").LockedTime[] | undefined;
|
|
37
|
+
lunch?: import("mongoose").Types.ObjectId[] | string[] | import("../types/locked-times").LockedTime[] | undefined;
|
|
38
|
+
intervals?: import("../types/intervals").Interval[] | undefined;
|
|
39
|
+
days?: import("../types/days").Day[] | undefined;
|
|
40
|
+
area?: string | undefined;
|
|
41
|
+
minBreakLength?: number | undefined;
|
|
42
|
+
createdAt?: string | undefined;
|
|
43
|
+
updatedAt?: string | undefined;
|
|
44
|
+
lastModifiedBy?: unknown;
|
|
45
|
+
}[];
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _days2 = _interopRequireDefault(require("./days"));
|
|
8
|
+
var _intervals2 = _interopRequireDefault(require("./intervals"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
var _default = locations => {
|
|
16
|
+
return locations.map(location => {
|
|
17
|
+
delete location._id;
|
|
18
|
+
delete location.belongsTo;
|
|
19
|
+
delete location.lunch;
|
|
20
|
+
delete location.lockedTimes;
|
|
21
|
+
delete location.createdAt;
|
|
22
|
+
if (location.days) location.days = (0, _days2.default)(location.days);
|
|
23
|
+
if (location.intervals) location.intervals = (0, _intervals2.default)(location.intervals);
|
|
24
|
+
return _objectSpread({}, location);
|
|
25
|
+
}, []);
|
|
26
|
+
};
|
|
27
|
+
exports.default = _default;
|
|
28
|
+
//# sourceMappingURL=locations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locations.js","mappings":";;;;;;AAAA;AAEA;AAA8D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAI9CA,SAAqB,IAAI;EACvC,OAAOA,SAAS,CAACC,GAAG,CAAEC,QAAkB,IAAI;IAC1C,OAAOA,QAAQ,CAACC,GAAG;IACnB,OAAOD,QAAQ,CAACE,SAAS;IACzB,OAAOF,QAAQ,CAACG,KAAK;IACrB,OAAOH,QAAQ,CAACI,WAAW;IAC3B,OAAOJ,QAAQ,CAACK,SAAS;IAEzB,IAAIL,QAAQ,CAACM,IAAI,EACfN,QAAQ,CAACM,IAAI,GAAS,kBAAK,EAACN,QAAQ,CAACM,IAAI,CAAC;IAE5C,IAAIN,QAAQ,CAACO,SAAS,EACpBP,QAAQ,CAACO,SAAS,GAAI,uBAAU,EAACP,QAAQ,CAACO,SAAS,CAAC;IAEtD,yBAAYP,QAAQ;EACtB,CAAC,EAAE,EAAE,CAAsB;AAC7B,CAAC;AAAA","names":["locations","map","location","_id","belongsTo","lunch","lockedTimes","createdAt","days","intervals"],"sourceRoot":"","sources":["../../../../src/core/v1/to/locations.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
|
+
var _excluded = ["coalesced"];
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
+
var _default = lockedTimes => {
|
|
18
|
+
return lockedTimes.reduce((acc, _ref) => {
|
|
19
|
+
var {
|
|
20
|
+
coalesced
|
|
21
|
+
} = _ref,
|
|
22
|
+
lockedTime = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
if (!(coalesced !== null && coalesced !== void 0 && coalesced.length)) return acc;
|
|
24
|
+
return acc.concat(_objectSpread(_objectSpread({}, _lodash.default.omit(lockedTime, ['_id', 'belongsTo', 'lastModifiedBy', 'createdAt', 'updatedAt'])), coalesced && {
|
|
25
|
+
coalesced: coalesced === null || coalesced === void 0 ? void 0 : coalesced.map(_ref2 => {
|
|
26
|
+
var {
|
|
27
|
+
to: {
|
|
28
|
+
id
|
|
29
|
+
},
|
|
30
|
+
toModel
|
|
31
|
+
} = _ref2;
|
|
32
|
+
return {
|
|
33
|
+
to: id.toString(),
|
|
34
|
+
toModel
|
|
35
|
+
};
|
|
36
|
+
})
|
|
37
|
+
}));
|
|
38
|
+
}, []);
|
|
39
|
+
};
|
|
40
|
+
exports.default = _default;
|
|
41
|
+
//# sourceMappingURL=locked-times.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locked-times.js","mappings":";;;;;;AAAA;AAAyD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAMzCA,WAAuC,IAAI;EACzD,OAAOA,WAAW,CAACC,MAAM,CAAC,CAACC,GAAiB,WAAkC;IAAA,IAAhC;QAAEC;MAAwB,CAAE;MAAZC,UAAU;IAEtE,IAAI,EAAED,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEE,MAAM,GAAE,OAAOH,GAAG;IAEnC,OAAOA,GAAG,CAACI,MAAM,iCACZC,eAAC,CAACC,IAAI,CAACJ,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,GACpFD,SAAS,IAAI;MAAEA,SAAS,EAAEA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEM,GAAG,CAAC;QAAA,IAAC;UAAEC,EAAE,EAAE;YAAEC;UAAE,CAAE;UAAEC;QAAO,CAAE;QAAA,OAAM;UAAEF,EAAE,EAAEC,EAAG,CAACE,QAAQ,EAAE;UAAED;QAAO,CAAE;MAAA,CAAC;IAAC,CAAE,EAC7G;EACJ,CAAC,EAAE,EAAE,CAA0E;AACjF,CAAC;AAAA","names":["lockedTimes","reduce","acc","coalesced","lockedTime","length","concat","_","omit","map","to","id","toModel","toString"],"sourceRoot":"","sources":["../../../../src/core/v1/to/locked-times.ts"],"sourcesContent":[null]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { OverlapGroup } from '../types/overlap-groups';
|
|
2
|
+
import { Serialized, Deserialized } from '../../types';
|
|
3
|
+
declare const _default: (overlapGroups: Deserialized<OverlapGroup>[]) => Serialized<Omit<OverlapGroup, 'lastModifiedBy' | 'belongsTo'>>[];
|
|
4
|
+
export default _default;
|