@royalschedule/maps 2.6.10 → 2.7.0

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.
Files changed (128) hide show
  1. package/dist/common/functions.d.ts +4 -0
  2. package/dist/common/functions.js +40 -0
  3. package/dist/common/functions.js.map +1 -0
  4. package/dist/core/v1/from/schedules.d.ts +1 -1
  5. package/dist/core/v1/to/schedules.d.ts +1 -1
  6. package/dist/core/v2/from/courses.d.ts +1 -1
  7. package/dist/core/v2/from/exceptions.d.ts +3 -0
  8. package/dist/core/v2/from/schedules.d.ts +2 -2
  9. package/dist/core/v2/to/courses.d.ts +1 -1
  10. package/dist/core/v2/to/exceptions.js +20 -4
  11. package/dist/core/v2/to/exceptions.js.map +1 -1
  12. package/dist/core/v2/to/schedules.d.ts +2 -2
  13. package/dist/core/v2/types/exceptions.d.ts +2 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +11 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/sdui/from/classes.d.ts +4 -0
  18. package/dist/sdui/from/classes.js +13 -0
  19. package/dist/sdui/from/classes.js.map +1 -0
  20. package/dist/sdui/from/courses.d.ts +4 -0
  21. package/dist/sdui/from/courses.js +21 -0
  22. package/dist/sdui/from/courses.js.map +1 -0
  23. package/dist/sdui/from/holidays.d.ts +4 -0
  24. package/dist/sdui/from/holidays.js +11 -0
  25. package/dist/sdui/from/holidays.js.map +1 -0
  26. package/dist/sdui/from/hours.d.ts +3 -0
  27. package/dist/sdui/from/hours.js +9 -0
  28. package/dist/sdui/from/hours.js.map +1 -0
  29. package/dist/sdui/from/index.d.ts +13 -0
  30. package/dist/sdui/from/index.js +35 -0
  31. package/dist/sdui/from/index.js.map +1 -0
  32. package/dist/sdui/from/lessons.d.ts +4 -0
  33. package/dist/sdui/from/lessons.js +27 -0
  34. package/dist/sdui/from/lessons.js.map +1 -0
  35. package/dist/sdui/from/rooms.d.ts +4 -0
  36. package/dist/sdui/from/rooms.js +14 -0
  37. package/dist/sdui/from/rooms.js.map +1 -0
  38. package/dist/sdui/from/schedules.d.ts +4 -0
  39. package/dist/sdui/from/schedules.js +28 -0
  40. package/dist/sdui/from/schedules.js.map +1 -0
  41. package/dist/sdui/from/school-years.d.ts +4 -0
  42. package/dist/sdui/from/school-years.js +15 -0
  43. package/dist/sdui/from/school-years.js.map +1 -0
  44. package/dist/sdui/from/subjects.d.ts +3 -0
  45. package/dist/sdui/from/subjects.js +9 -0
  46. package/dist/sdui/from/subjects.js.map +1 -0
  47. package/dist/sdui/from/substitution-plans.d.ts +4 -0
  48. package/dist/sdui/from/substitution-plans.js +19 -0
  49. package/dist/sdui/from/substitution-plans.js.map +1 -0
  50. package/dist/sdui/from/teachers.d.ts +4 -0
  51. package/dist/sdui/from/teachers.js +18 -0
  52. package/dist/sdui/from/teachers.js.map +1 -0
  53. package/dist/sdui/index.d.ts +8 -0
  54. package/dist/sdui/index.js +17 -0
  55. package/dist/sdui/index.js.map +1 -0
  56. package/dist/sdui/to/classes.d.ts +4 -0
  57. package/dist/sdui/to/classes.js +13 -0
  58. package/dist/sdui/to/classes.js.map +1 -0
  59. package/dist/sdui/to/courses.d.ts +4 -0
  60. package/dist/sdui/to/courses.js +18 -0
  61. package/dist/sdui/to/courses.js.map +1 -0
  62. package/dist/sdui/to/holidays.d.ts +4 -0
  63. package/dist/sdui/to/holidays.js +18 -0
  64. package/dist/sdui/to/holidays.js.map +1 -0
  65. package/dist/sdui/to/hours.d.ts +4 -0
  66. package/dist/sdui/to/hours.js +16 -0
  67. package/dist/sdui/to/hours.js.map +1 -0
  68. package/dist/sdui/to/index.d.ts +13 -0
  69. package/dist/sdui/to/index.js +35 -0
  70. package/dist/sdui/to/index.js.map +1 -0
  71. package/dist/sdui/to/lessons.d.ts +4 -0
  72. package/dist/sdui/to/lessons.js +25 -0
  73. package/dist/sdui/to/lessons.js.map +1 -0
  74. package/dist/sdui/to/rooms.d.ts +4 -0
  75. package/dist/sdui/to/rooms.js +14 -0
  76. package/dist/sdui/to/rooms.js.map +1 -0
  77. package/dist/sdui/to/schedules.d.ts +4 -0
  78. package/dist/sdui/to/schedules.js +30 -0
  79. package/dist/sdui/to/schedules.js.map +1 -0
  80. package/dist/sdui/to/school-years.d.ts +4 -0
  81. package/dist/sdui/to/school-years.js +19 -0
  82. package/dist/sdui/to/school-years.js.map +1 -0
  83. package/dist/sdui/to/subjects.d.ts +3 -0
  84. package/dist/sdui/to/subjects.js +11 -0
  85. package/dist/sdui/to/subjects.js.map +1 -0
  86. package/dist/sdui/to/substitution-plans.d.ts +4 -0
  87. package/dist/sdui/to/substitution-plans.js +59 -0
  88. package/dist/sdui/to/substitution-plans.js.map +1 -0
  89. package/dist/sdui/to/teachers.d.ts +4 -0
  90. package/dist/sdui/to/teachers.js +30 -0
  91. package/dist/sdui/to/teachers.js.map +1 -0
  92. package/dist/sdui/types/classes.d.ts +4 -0
  93. package/dist/sdui/types/classes.js +6 -0
  94. package/dist/sdui/types/classes.js.map +1 -0
  95. package/dist/sdui/types/courses.d.ts +8 -0
  96. package/dist/sdui/types/courses.js +6 -0
  97. package/dist/sdui/types/courses.js.map +1 -0
  98. package/dist/sdui/types/holidays.d.ts +6 -0
  99. package/dist/sdui/types/holidays.js +6 -0
  100. package/dist/sdui/types/holidays.js.map +1 -0
  101. package/dist/sdui/types/hours.d.ts +6 -0
  102. package/dist/sdui/types/hours.js +6 -0
  103. package/dist/sdui/types/hours.js.map +1 -0
  104. package/dist/sdui/types/index.d.ts +24 -0
  105. package/dist/sdui/types/index.js +6 -0
  106. package/dist/sdui/types/index.js.map +1 -0
  107. package/dist/sdui/types/lessons.d.ts +9 -0
  108. package/dist/sdui/types/lessons.js +6 -0
  109. package/dist/sdui/types/lessons.js.map +1 -0
  110. package/dist/sdui/types/rooms.d.ts +5 -0
  111. package/dist/sdui/types/rooms.js +6 -0
  112. package/dist/sdui/types/rooms.js.map +1 -0
  113. package/dist/sdui/types/schedules.d.ts +22 -0
  114. package/dist/sdui/types/schedules.js +6 -0
  115. package/dist/sdui/types/schedules.js.map +1 -0
  116. package/dist/sdui/types/school-years.d.ts +5 -0
  117. package/dist/sdui/types/school-years.js +6 -0
  118. package/dist/sdui/types/school-years.js.map +1 -0
  119. package/dist/sdui/types/subjects.d.ts +5 -0
  120. package/dist/sdui/types/subjects.js +6 -0
  121. package/dist/sdui/types/subjects.js.map +1 -0
  122. package/dist/sdui/types/substitution-plans.d.ts +25 -0
  123. package/dist/sdui/types/substitution-plans.js +6 -0
  124. package/dist/sdui/types/substitution-plans.js.map +1 -0
  125. package/dist/sdui/types/teachers.d.ts +6 -0
  126. package/dist/sdui/types/teachers.js +6 -0
  127. package/dist/sdui/types/teachers.js.map +1 -0
  128. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=holidays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holidays.js","names":[],"sources":["../../../src/sdui/types/holidays.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type Hour = {
2
+ id: string;
3
+ name: string;
4
+ time_begins_at: string;
5
+ time_ends_at: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=hours.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hours.js","names":[],"sources":["../../../src/sdui/types/hours.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { Schedule } from './schedules';
2
+ import { Hour } from './hours';
3
+ import { SubstitutionPlan } from './substitution-plans';
4
+ import { Class } from './classes';
5
+ import { Teacher } from './teachers';
6
+ import { Subject } from './subjects';
7
+ import { Room } from './rooms';
8
+ import { Course } from './courses';
9
+ import { Lesson } from './lessons';
10
+ import { Holiday } from './holidays';
11
+ import { SchoolYear } from './school-years';
12
+ export declare namespace Types {
13
+ type schedule = Schedule;
14
+ type hour = Hour;
15
+ type substitutionPlan = SubstitutionPlan;
16
+ type classes = Class;
17
+ type teacher = Teacher;
18
+ type subject = Subject;
19
+ type room = Room;
20
+ type course = Course;
21
+ type lesson = Lesson;
22
+ type holiday = Holiday;
23
+ type schoolYear = SchoolYear;
24
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/sdui/types/index.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export type Lesson = {
2
+ id: string;
3
+ course_id: string;
4
+ begins_at: string;
5
+ ends_at: string;
6
+ classes: string[];
7
+ teachers: string[];
8
+ rooms?: string[];
9
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=lessons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lessons.js","names":[],"sources":["../../../src/sdui/types/lessons.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type Room = {
2
+ id: string;
3
+ shortcut?: string;
4
+ name?: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=rooms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rooms.js","names":[],"sources":["../../../src/sdui/types/rooms.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { SchoolYear } from './school-years';
2
+ import { Hour } from './hours';
3
+ import { SubstitutionPlan } from './substitution-plans';
4
+ import { Class } from './classes';
5
+ import { Teacher } from './teachers';
6
+ import { Subject } from './subjects';
7
+ import { Room } from './rooms';
8
+ import { Course } from './courses';
9
+ import { Lesson } from './lessons';
10
+ import { Holiday } from './holidays';
11
+ export type Schedule = {
12
+ schoolYear: SchoolYear;
13
+ hours: Hour[];
14
+ holidays?: Holiday[];
15
+ classes: Class[];
16
+ teachers: Teacher[];
17
+ subjects?: Subject[];
18
+ rooms?: Room[];
19
+ courses?: Course[];
20
+ lessons?: Lesson[];
21
+ substitution_plan?: SubstitutionPlan;
22
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=schedules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedules.js","names":[],"sources":["../../../src/sdui/types/schedules.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type SchoolYear = {
2
+ id?: string;
3
+ begins_at: string;
4
+ ends_at: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=school-years.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"school-years.js","names":[],"sources":["../../../src/sdui/types/school-years.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export type Subject = {
2
+ id: string;
3
+ shortcut: string;
4
+ name?: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=subjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subjects.js","names":[],"sources":["../../../src/sdui/types/subjects.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { Lesson } from "./lessons";
2
+ export type Cancellation = {
3
+ lesson_id: string;
4
+ comment: string;
5
+ action?: string;
6
+ };
7
+ export type LessonChange = {
8
+ lesson_id: string;
9
+ classes: string[];
10
+ teachers: string[];
11
+ rooms: string[];
12
+ begins_at: string;
13
+ ends_at: string;
14
+ comment: string;
15
+ action: string;
16
+ };
17
+ export type Additional = Omit<Lesson, 'id'> & {
18
+ comment: string;
19
+ action?: string;
20
+ };
21
+ export type SubstitutionPlan = {
22
+ cancellations: Cancellation[];
23
+ lesson_changes: LessonChange[];
24
+ additionals: Additional[];
25
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=substitution-plans.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"substitution-plans.js","names":[],"sources":["../../../src/sdui/types/substitution-plans.ts"],"sourcesContent":[null],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type Teacher = {
2
+ id: string;
3
+ shortcut?: string;
4
+ firstname?: string;
5
+ lastname?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=teachers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teachers.js","names":[],"sources":["../../../src/sdui/types/teachers.ts"],"sourcesContent":[null],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
3
  "description": "",
4
- "version": "2.6.10",
4
+ "version": "2.7.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "engines": {