@royalschedule/maps 3.2.50 → 3.2.52

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.
@@ -107,6 +107,7 @@ export default class {
107
107
  lastModifiedBy?: unknown;
108
108
  }[];
109
109
  courses: {
110
+ syllabus?: string | undefined;
110
111
  period?: string | undefined;
111
112
  locations?: {
112
113
  locations: string[];
@@ -129,28 +130,27 @@ export default class {
129
130
  id?: string | undefined;
130
131
  displayName?: string | undefined;
131
132
  updatedAt?: string | undefined;
132
- exceptions?: import("../../../core/types").Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
133
- type?: string | undefined;
134
133
  ids?: string | undefined;
135
- minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
136
- weight?: number | undefined;
134
+ exceptions?: import("../../../core/types").Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
137
135
  intervals?: import("../../../core/types").Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
138
136
  days?: import("../../../core/types").Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
137
+ minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
139
138
  tags?: import("../../../core/types").Deserialized<{
140
139
  type?: string | undefined;
141
140
  value: string;
142
141
  }>[] | undefined;
143
142
  density?: number | undefined;
143
+ weight?: number | undefined;
144
144
  subject?: string | undefined;
145
145
  weeks?: number[] | undefined;
146
146
  color?: string | undefined;
147
147
  eventDurationVariance?: number | undefined;
148
148
  totalTime?: string | undefined;
149
+ type?: string | undefined;
149
150
  comment?: string | undefined;
150
151
  startDate?: string | undefined;
151
152
  endDate?: string | undefined;
152
153
  centerOfAttraction?: string | null | undefined;
153
- syllabus?: import("../../../core/types").Deserialized<import("../../../core/v2/types/syllabus").Syllabus> | undefined;
154
154
  plannedDuration?: string | undefined;
155
155
  minutesPerWeek?: number | undefined;
156
156
  expectedTotalHours?: number | undefined;
@@ -197,22 +197,22 @@ export default class {
197
197
  id?: string | undefined;
198
198
  displayName?: string | undefined;
199
199
  updatedAt?: string | undefined;
200
+ rank?: number | undefined;
200
201
  ids?: string | undefined;
202
+ intervals?: import("../../../core/types").Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
203
+ days?: import("../../../core/types").Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
201
204
  minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
205
+ tags?: import("../../../core/types").Deserialized<{
206
+ type?: string | undefined;
207
+ value: string;
208
+ }>[] | undefined;
209
+ weight?: number | undefined;
202
210
  maxNumWorkingHours?: number | boolean | undefined;
203
211
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
204
212
  maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
205
213
  forbidOverlappingEvents?: boolean | undefined;
206
214
  disableDayLengthPunishment?: boolean | undefined;
207
- weight?: number | undefined;
208
- rank?: number | undefined;
209
215
  species?: string | undefined;
210
- intervals?: import("../../../core/types").Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
211
- days?: import("../../../core/types").Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
212
- tags?: import("../../../core/types").Deserialized<{
213
- type?: string | undefined;
214
- value: string;
215
- }>[] | undefined;
216
216
  }[];
217
217
  teachers: {
218
218
  exceptions?: string[] | import("../../../core/types").Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
@@ -220,22 +220,22 @@ export default class {
220
220
  id?: string | undefined;
221
221
  displayName?: string | undefined;
222
222
  updatedAt?: string | undefined;
223
- ids?: string | undefined;
224
- minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
225
- maxNumWorkingHours?: number | boolean | undefined;
226
- maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
227
- maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
228
- forbidOverlappingEvents?: boolean | undefined;
229
- disableDayLengthPunishment?: boolean | undefined;
230
- weight?: number | undefined;
231
223
  rank?: number | undefined;
224
+ ids?: string | undefined;
232
225
  intervals?: import("../../../core/types").Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
233
226
  days?: import("../../../core/types").Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
227
+ minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
234
228
  tags?: import("../../../core/types").Deserialized<{
235
229
  type?: string | undefined;
236
230
  value: string;
237
231
  }>[] | undefined;
232
+ weight?: number | undefined;
233
+ maxNumWorkingHours?: number | boolean | undefined;
234
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
238
235
  plannedScheduledDuration?: import("../../../core/v2/types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
236
+ maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
237
+ forbidOverlappingEvents?: boolean | undefined;
238
+ disableDayLengthPunishment?: boolean | undefined;
239
239
  complementaryHours?: import("../../../core/types").Deserialized<import("../../../core/v2/types/locked-times").LockedTime>[] | undefined;
240
240
  signature?: string | undefined;
241
241
  }[];
@@ -93,6 +93,7 @@ declare const _default: (schedule: Deserialized<CoreTypes.schedule>, options?: O
93
93
  lastModifiedBy?: unknown;
94
94
  }[];
95
95
  courses: {
96
+ syllabus?: string | undefined;
96
97
  period?: string | undefined;
97
98
  locations?: {
98
99
  locations: string[];
@@ -115,28 +116,27 @@ declare const _default: (schedule: Deserialized<CoreTypes.schedule>, options?: O
115
116
  id?: string | undefined;
116
117
  displayName?: string | undefined;
117
118
  updatedAt?: string | undefined;
118
- exceptions?: Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
119
- type?: string | undefined;
120
119
  ids?: string | undefined;
121
- minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
122
- weight?: number | undefined;
120
+ exceptions?: Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
123
121
  intervals?: Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
124
122
  days?: Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
123
+ minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
125
124
  tags?: Deserialized<{
126
125
  type?: string | undefined;
127
126
  value: string;
128
127
  }>[] | undefined;
129
128
  density?: number | undefined;
129
+ weight?: number | undefined;
130
130
  subject?: string | undefined;
131
131
  weeks?: number[] | undefined;
132
132
  color?: string | undefined;
133
133
  eventDurationVariance?: number | undefined;
134
134
  totalTime?: string | undefined;
135
+ type?: string | undefined;
135
136
  comment?: string | undefined;
136
137
  startDate?: string | undefined;
137
138
  endDate?: string | undefined;
138
139
  centerOfAttraction?: string | null | undefined;
139
- syllabus?: Deserialized<import("../../../core/v2/types/syllabus").Syllabus> | undefined;
140
140
  plannedDuration?: string | undefined;
141
141
  minutesPerWeek?: number | undefined;
142
142
  expectedTotalHours?: number | undefined;
@@ -183,22 +183,22 @@ declare const _default: (schedule: Deserialized<CoreTypes.schedule>, options?: O
183
183
  id?: string | undefined;
184
184
  displayName?: string | undefined;
185
185
  updatedAt?: string | undefined;
186
+ rank?: number | undefined;
186
187
  ids?: string | undefined;
188
+ intervals?: Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
189
+ days?: Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
187
190
  minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
191
+ tags?: Deserialized<{
192
+ type?: string | undefined;
193
+ value: string;
194
+ }>[] | undefined;
195
+ weight?: number | undefined;
188
196
  maxNumWorkingHours?: number | boolean | undefined;
189
197
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
190
198
  maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
191
199
  forbidOverlappingEvents?: boolean | undefined;
192
200
  disableDayLengthPunishment?: boolean | undefined;
193
- weight?: number | undefined;
194
- rank?: number | undefined;
195
201
  species?: string | undefined;
196
- intervals?: Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
197
- days?: Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
198
- tags?: Deserialized<{
199
- type?: string | undefined;
200
- value: string;
201
- }>[] | undefined;
202
202
  }[];
203
203
  teachers: {
204
204
  exceptions?: string[] | Deserialized<import("../../../core/v2/types/exceptions").Exception>[] | undefined;
@@ -206,22 +206,22 @@ declare const _default: (schedule: Deserialized<CoreTypes.schedule>, options?: O
206
206
  id?: string | undefined;
207
207
  displayName?: string | undefined;
208
208
  updatedAt?: string | undefined;
209
- ids?: string | undefined;
210
- minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
211
- maxNumWorkingHours?: number | boolean | undefined;
212
- maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
213
- maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
214
- forbidOverlappingEvents?: boolean | undefined;
215
- disableDayLengthPunishment?: boolean | undefined;
216
- weight?: number | undefined;
217
209
  rank?: number | undefined;
210
+ ids?: string | undefined;
218
211
  intervals?: Deserialized<import("../../../core/v2/types/intervals").Interval>[] | undefined;
219
212
  days?: Deserialized<import("../../../core/v2/types/days").Day>[] | undefined;
213
+ minBreakLength?: import("../../../core/v2/types/break-lengths").BreakLength | undefined;
220
214
  tags?: Deserialized<{
221
215
  type?: string | undefined;
222
216
  value: string;
223
217
  }>[] | undefined;
218
+ weight?: number | undefined;
219
+ maxNumWorkingHours?: number | boolean | undefined;
220
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
224
221
  plannedScheduledDuration?: import("../../../core/v2/types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
222
+ maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
223
+ forbidOverlappingEvents?: boolean | undefined;
224
+ disableDayLengthPunishment?: boolean | undefined;
225
225
  complementaryHours?: Deserialized<import("../../../core/v2/types/locked-times").LockedTime>[] | undefined;
226
226
  signature?: string | undefined;
227
227
  }[];
@@ -1,5 +1,5 @@
1
1
  export default class {
2
- static activities: (activities: (import("../../core/types").Deserialized<import("../../core/v2/types/events").Event> | import("../../core/types").Deserialized<import("../../core/v2/types/courses").Course>)[], belongsTo?: import("../../core/v2/types/divisions").Division | undefined, expand?: ("groups" | "teachers" | "syllabus" | "referenceNames")[] | undefined) => import("../types/activities").Activity[];
2
+ static activities: (activities: (import("../../core/types").Deserialized<import("../../core/v2/types/courses").Course> | import("../../core/types").Deserialized<import("../../core/v2/types/events").Event>)[], belongsTo?: import("../../core/v2/types/divisions").Division | undefined, expand?: ("groups" | "teachers" | "syllabus" | "referenceNames")[] | undefined) => import("../types/activities").Activity[];
3
3
  static calendarEvents: (events: import("../../core/types").Deserialized<import("../../core/v2/types/events").Event>[], belongsTo?: import("../../core/v2/types/divisions").Division | undefined, expand?: ("groups" | "teachers" | "referenceNames" | "activity")[] | undefined) => Partial<import("../types/calendar-events").CalendarEvent>[];
4
4
  static duties: (teachers: import("../../core/types").Deserialized<import("../../core/v2/types/teachers").Teacher>[], belongsTo?: import("../../core/v2/types/divisions").Division | undefined, expand?: ("person" | "referenceNames")[] | undefined) => import("../types/duties").Duty[];
5
5
  static groups: (groups: import("../../core/types").Deserialized<import("../../core/v2/types/groups").Group>[], belongsTo?: import("../../core/v2/types/divisions").Division | undefined, expand?: ("persons" | "referenceNames")[] | undefined) => import("../types/groups").Group[];
@@ -12,18 +12,18 @@ declare const _default: (courses: ReturnType<typeof transform>) => {
12
12
  id?: string | undefined;
13
13
  displayName?: string | undefined;
14
14
  updatedAt?: string | undefined;
15
- type?: string | undefined;
16
15
  ids?: string | undefined;
17
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
18
- weight?: number | undefined;
19
16
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
20
17
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
18
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
21
19
  density?: number | undefined;
20
+ weight?: number | undefined;
22
21
  subject?: string | undefined;
23
22
  weeks?: number[] | undefined;
24
23
  color?: string | undefined;
25
24
  eventDurationVariance?: number | undefined;
26
25
  totalTime?: string | undefined;
26
+ type?: string | undefined;
27
27
  centerOfAttraction?: string | null | undefined;
28
28
  minutesPerWeek?: number | undefined;
29
29
  expectedTotalHours?: number | undefined;
@@ -16,21 +16,21 @@ declare const _default: (events: ReturnType<typeof transform>) => {
16
16
  start?: string | import("moment").Moment | Date | undefined;
17
17
  end?: string | import("moment").Moment | Date | undefined;
18
18
  updatedAt?: string | undefined;
19
- type?: string | undefined;
20
19
  ids?: string | undefined;
21
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
22
- weight?: number | undefined;
23
20
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
24
21
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
22
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
25
23
  density?: number | undefined;
24
+ weight?: number | undefined;
26
25
  weeks?: number[] | undefined;
27
26
  color?: string | undefined;
27
+ type?: string | undefined;
28
28
  centerOfAttraction?: string | null | undefined;
29
- parked?: boolean | undefined;
30
- fixedStart?: boolean | undefined;
31
29
  visible?: boolean | undefined;
30
+ parked?: boolean | undefined;
32
31
  duration?: number | undefined;
33
- preferredDuration?: number | undefined;
34
32
  durationVariance?: number | undefined;
33
+ fixedStart?: boolean | undefined;
34
+ preferredDuration?: number | undefined;
35
35
  }[];
36
36
  export default _default;
@@ -3,15 +3,15 @@ declare const _default: (groups: ReturnType<typeof transform>) => {
3
3
  id?: string | undefined;
4
4
  displayName?: string | undefined;
5
5
  updatedAt?: string | undefined;
6
+ rank?: number | undefined;
6
7
  ids?: string | undefined;
8
+ intervals?: import("../types/intervals").Interval[] | undefined;
9
+ days?: import("../types/days").Day[] | undefined;
7
10
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
11
+ weight?: number | undefined;
8
12
  maxNumWorkingHours?: number | boolean | undefined;
9
13
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
10
14
  forbidOverlappingEvents?: boolean | undefined;
11
15
  disableDayLengthPunishment?: boolean | undefined;
12
- weight?: number | undefined;
13
- rank?: number | undefined;
14
- intervals?: import("../types/intervals").Interval[] | undefined;
15
- days?: import("../types/days").Day[] | undefined;
16
16
  }[];
17
17
  export default _default;
@@ -42,22 +42,22 @@ export default function (schedule: ReturnType<typeof transform>): {
42
42
  start?: string | import("moment").Moment | Date | undefined;
43
43
  end?: string | import("moment").Moment | Date | undefined;
44
44
  updatedAt?: string | undefined;
45
- type?: string | undefined;
46
45
  ids?: string | undefined;
47
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
48
- weight?: number | undefined;
49
46
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
50
47
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
48
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
51
49
  density?: number | undefined;
50
+ weight?: number | undefined;
52
51
  weeks?: number[] | undefined;
53
52
  color?: string | undefined;
53
+ type?: string | undefined;
54
54
  centerOfAttraction?: string | null | undefined;
55
- parked?: boolean | undefined;
56
- fixedStart?: boolean | undefined;
57
55
  visible?: boolean | undefined;
56
+ parked?: boolean | undefined;
58
57
  duration?: number | undefined;
59
- preferredDuration?: number | undefined;
60
58
  durationVariance?: number | undefined;
59
+ fixedStart?: boolean | undefined;
60
+ preferredDuration?: number | undefined;
61
61
  }[] | undefined;
62
62
  lockedTimes?: import("../types/locked-times").LockedTime[] | undefined;
63
63
  overlapGroups?: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[] | undefined;
@@ -74,18 +74,18 @@ export default function (schedule: ReturnType<typeof transform>): {
74
74
  id?: string | undefined;
75
75
  displayName?: string | undefined;
76
76
  updatedAt?: string | undefined;
77
- type?: string | undefined;
78
77
  ids?: string | undefined;
79
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
80
- weight?: number | undefined;
81
78
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
82
79
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
80
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
83
81
  density?: number | undefined;
82
+ weight?: number | undefined;
84
83
  subject?: string | undefined;
85
84
  weeks?: number[] | undefined;
86
85
  color?: string | undefined;
87
86
  eventDurationVariance?: number | undefined;
88
87
  totalTime?: string | undefined;
88
+ type?: string | undefined;
89
89
  centerOfAttraction?: string | null | undefined;
90
90
  minutesPerWeek?: number | undefined;
91
91
  expectedTotalHours?: number | undefined;
@@ -94,16 +94,16 @@ export default function (schedule: ReturnType<typeof transform>): {
94
94
  id?: string | undefined;
95
95
  displayName?: string | undefined;
96
96
  updatedAt?: string | undefined;
97
+ rank?: number | undefined;
97
98
  ids?: string | undefined;
99
+ intervals?: import("../types/intervals").Interval[] | undefined;
100
+ days?: import("../types/days").Day[] | undefined;
98
101
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
102
+ weight?: number | undefined;
99
103
  maxNumWorkingHours?: number | boolean | undefined;
100
104
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
101
105
  forbidOverlappingEvents?: boolean | undefined;
102
106
  disableDayLengthPunishment?: boolean | undefined;
103
- weight?: number | undefined;
104
- rank?: number | undefined;
105
- intervals?: import("../types/intervals").Interval[] | undefined;
106
- days?: import("../types/days").Day[] | undefined;
107
107
  }[] | undefined;
108
108
  teachers?: {
109
109
  _id?: import("mongoose").Types.ObjectId | undefined;
@@ -13,18 +13,18 @@ declare const _default: (courses: Deserialized<Course>[]) => {
13
13
  id?: string | undefined;
14
14
  displayName?: string | undefined;
15
15
  updatedAt?: string | undefined;
16
- type?: string | undefined;
17
16
  ids?: string | undefined;
18
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
19
- weight?: number | undefined;
20
17
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
21
18
  days?: Deserialized<import("../types/days").Day>[] | undefined;
19
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
22
20
  density?: number | undefined;
21
+ weight?: number | undefined;
23
22
  subject?: string | undefined;
24
23
  weeks?: number[] | undefined;
25
24
  color?: string | undefined;
26
25
  eventDurationVariance?: number | undefined;
27
26
  totalTime?: string | undefined;
27
+ type?: string | undefined;
28
28
  centerOfAttraction?: string | null | undefined;
29
29
  minutesPerWeek?: number | undefined;
30
30
  expectedTotalHours?: number | undefined;
@@ -17,21 +17,21 @@ declare const _default: (events: Deserialized<Event>[]) => {
17
17
  start?: string | import("moment").Moment | Date | undefined;
18
18
  end?: string | import("moment").Moment | Date | undefined;
19
19
  updatedAt?: string | undefined;
20
- type?: string | undefined;
21
20
  ids?: string | undefined;
22
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
23
- weight?: number | undefined;
24
21
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
25
22
  days?: Deserialized<import("../types/days").Day>[] | undefined;
23
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
26
24
  density?: number | undefined;
25
+ weight?: number | undefined;
27
26
  weeks?: number[] | undefined;
28
27
  color?: string | undefined;
28
+ type?: string | undefined;
29
29
  centerOfAttraction?: string | null | undefined;
30
- parked?: boolean | undefined;
31
- fixedStart?: boolean | undefined;
32
30
  visible?: boolean | undefined;
31
+ parked?: boolean | undefined;
33
32
  duration?: number | undefined;
34
- preferredDuration?: number | undefined;
35
33
  durationVariance?: number | undefined;
34
+ fixedStart?: boolean | undefined;
35
+ preferredDuration?: number | undefined;
36
36
  }[];
37
37
  export default _default;
@@ -3,15 +3,15 @@ declare const _default: (groups: Group[]) => {
3
3
  id?: string | undefined;
4
4
  displayName?: string | undefined;
5
5
  updatedAt?: string | undefined;
6
+ rank?: number | undefined;
6
7
  ids?: string | undefined;
8
+ intervals?: import("../types/intervals").Interval[] | undefined;
9
+ days?: import("../types/days").Day[] | undefined;
7
10
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
11
+ weight?: number | undefined;
8
12
  maxNumWorkingHours?: number | boolean | undefined;
9
13
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
10
14
  forbidOverlappingEvents?: boolean | undefined;
11
15
  disableDayLengthPunishment?: boolean | undefined;
12
- weight?: number | undefined;
13
- rank?: number | undefined;
14
- intervals?: import("../types/intervals").Interval[] | undefined;
15
- days?: import("../types/days").Day[] | undefined;
16
16
  }[];
17
17
  export default _default;
@@ -46,22 +46,22 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
46
46
  start?: string | import("moment").Moment | Date | undefined;
47
47
  end?: string | import("moment").Moment | Date | undefined;
48
48
  updatedAt?: string | undefined;
49
- type?: string | undefined;
50
49
  ids?: string | undefined;
51
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
52
- weight?: number | undefined;
53
50
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
54
51
  days?: Deserialized<import("../types/days").Day>[] | undefined;
52
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
55
53
  density?: number | undefined;
54
+ weight?: number | undefined;
56
55
  weeks?: number[] | undefined;
57
56
  color?: string | undefined;
57
+ type?: string | undefined;
58
58
  centerOfAttraction?: string | null | undefined;
59
- parked?: boolean | undefined;
60
- fixedStart?: boolean | undefined;
61
59
  visible?: boolean | undefined;
60
+ parked?: boolean | undefined;
62
61
  duration?: number | undefined;
63
- preferredDuration?: number | undefined;
64
62
  durationVariance?: number | undefined;
63
+ fixedStart?: boolean | undefined;
64
+ preferredDuration?: number | undefined;
65
65
  }[] | undefined;
66
66
  courses?: {
67
67
  period?: string | undefined;
@@ -76,18 +76,18 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
76
76
  id?: string | undefined;
77
77
  displayName?: string | undefined;
78
78
  updatedAt?: string | undefined;
79
- type?: string | undefined;
80
79
  ids?: string | undefined;
81
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
82
- weight?: number | undefined;
83
80
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
84
81
  days?: Deserialized<import("../types/days").Day>[] | undefined;
82
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
85
83
  density?: number | undefined;
84
+ weight?: number | undefined;
86
85
  subject?: string | undefined;
87
86
  weeks?: number[] | undefined;
88
87
  color?: string | undefined;
89
88
  eventDurationVariance?: number | undefined;
90
89
  totalTime?: string | undefined;
90
+ type?: string | undefined;
91
91
  centerOfAttraction?: string | null | undefined;
92
92
  minutesPerWeek?: number | undefined;
93
93
  expectedTotalHours?: number | undefined;
@@ -124,16 +124,16 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
124
124
  id?: string | undefined;
125
125
  displayName?: string | undefined;
126
126
  updatedAt?: string | undefined;
127
+ rank?: number | undefined;
127
128
  ids?: string | undefined;
129
+ intervals?: import("../types/intervals").Interval[] | undefined;
130
+ days?: import("../types/days").Day[] | undefined;
128
131
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
132
+ weight?: number | undefined;
129
133
  maxNumWorkingHours?: number | boolean | undefined;
130
134
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
131
135
  forbidOverlappingEvents?: boolean | undefined;
132
136
  disableDayLengthPunishment?: boolean | undefined;
133
- weight?: number | undefined;
134
- rank?: number | undefined;
135
- intervals?: import("../types/intervals").Interval[] | undefined;
136
- days?: import("../types/days").Day[] | undefined;
137
137
  }[] | undefined;
138
138
  teachers?: {
139
139
  _id?: import("mongoose").Types.ObjectId | undefined;
@@ -1,5 +1,6 @@
1
1
  import transform from '../to/courses';
2
2
  declare const _default: (courses: ReturnType<typeof transform>) => {
3
+ syllabus?: string | undefined;
3
4
  period?: string | undefined;
4
5
  locations?: {
5
6
  locations: string[];
@@ -22,28 +23,27 @@ declare const _default: (courses: ReturnType<typeof transform>) => {
22
23
  id?: string | undefined;
23
24
  displayName?: string | undefined;
24
25
  updatedAt?: string | undefined;
25
- exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
26
- type?: string | undefined;
27
26
  ids?: string | undefined;
28
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
29
- weight?: number | undefined;
27
+ exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
30
28
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
31
29
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
30
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
32
31
  tags?: import("../../types").Deserialized<{
33
32
  type?: string | undefined;
34
33
  value: string;
35
34
  }>[] | undefined;
36
35
  density?: number | undefined;
36
+ weight?: number | undefined;
37
37
  subject?: string | undefined;
38
38
  weeks?: number[] | undefined;
39
39
  color?: string | undefined;
40
40
  eventDurationVariance?: number | undefined;
41
41
  totalTime?: string | undefined;
42
+ type?: string | undefined;
42
43
  comment?: string | undefined;
43
44
  startDate?: string | undefined;
44
45
  endDate?: string | undefined;
45
46
  centerOfAttraction?: string | null | undefined;
46
- syllabus?: import("../../types").Deserialized<import("../types/syllabus").Syllabus> | undefined;
47
47
  plannedDuration?: string | undefined;
48
48
  minutesPerWeek?: number | undefined;
49
49
  expectedTotalHours?: number | undefined;
@@ -28,7 +28,7 @@ import transform from '../to/exceptions';
28
28
  declare const _default: (exceptions: ReturnType<typeof transform>) => {
29
29
  _id?: import("mongoose").Types.ObjectId | undefined;
30
30
  id?: string | undefined;
31
- belongsTo?: string | import("../types/divisions").Division | import("mongoose").Types.ObjectId | undefined;
31
+ belongsTo?: string | import("mongoose").Types.ObjectId | import("../types/divisions").Division | undefined;
32
32
  reason?: string | undefined;
33
33
  description?: string | undefined;
34
34
  sources?: import("../types/common/coalesced").Coalesced<import("../types/groups").Group | import("../types/persons").Person | import("../types/teachers").Teacher | import("../types/locations").Location | import("../types/courses").Course | import("../types/events").Event>[] | undefined;
@@ -7,21 +7,21 @@ declare const _default: (groups: ReturnType<typeof transform>) => {
7
7
  id?: string | undefined;
8
8
  displayName?: string | undefined;
9
9
  updatedAt?: string | undefined;
10
+ rank?: number | undefined;
10
11
  ids?: string | undefined;
12
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
13
+ days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
11
14
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
15
+ tags?: import("../../types").Deserialized<{
16
+ type?: string | undefined;
17
+ value: string;
18
+ }>[] | undefined;
19
+ weight?: number | undefined;
12
20
  maxNumWorkingHours?: number | boolean | undefined;
13
21
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
14
22
  maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
15
23
  forbidOverlappingEvents?: boolean | undefined;
16
24
  disableDayLengthPunishment?: boolean | undefined;
17
- weight?: number | undefined;
18
- rank?: number | undefined;
19
25
  species?: string | undefined;
20
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
21
- days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
22
- tags?: import("../../types").Deserialized<{
23
- type?: string | undefined;
24
- value: string;
25
- }>[] | undefined;
26
26
  }[];
27
27
  export default _default;
@@ -27,7 +27,7 @@ import transform from '../to/locked-times';
27
27
  declare const _default: (LockedTimes: ReturnType<typeof transform>) => {
28
28
  _id?: import("mongoose").Types.ObjectId | undefined;
29
29
  id?: string | undefined;
30
- belongsTo?: string | import("../types/divisions").Division | import("mongoose").Types.ObjectId | undefined;
30
+ belongsTo?: string | import("mongoose").Types.ObjectId | import("../types/divisions").Division | undefined;
31
31
  displayName?: string | undefined;
32
32
  color?: string | undefined;
33
33
  type?: "LUNCH" | "ANY" | "COMPLEMENTARY_HOURS" | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="lodash" />
1
2
  /// <reference types="mongoose/types/aggregate" />
2
3
  /// <reference types="mongoose/types/callback" />
3
4
  /// <reference types="mongoose/types/collection" />
@@ -25,6 +26,7 @@
25
26
  /// <reference types="mongoose/types/inferschematype" />
26
27
  import transform from '../to/schedules';
27
28
  export default function (schedule: ReturnType<typeof transform>): {
29
+ syllabuses: import("lodash").Omit<import("../../types").Deserialized<import("../types/syllabus").Syllabus>, "_id" | "createdAt" | "updatedAt" | "belongsTo" | "lastModifiedBy">[];
28
30
  events: {
29
31
  period?: string | undefined;
30
32
  exceptions?: string[] | undefined;
@@ -85,6 +87,7 @@ export default function (schedule: ReturnType<typeof transform>): {
85
87
  rootIntervals: import("../types/root-intervals").RootInterval[];
86
88
  overlapGroups: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[];
87
89
  courses: {
90
+ syllabus?: string | undefined;
88
91
  period?: string | undefined;
89
92
  locations?: {
90
93
  locations: string[];
@@ -107,28 +110,27 @@ export default function (schedule: ReturnType<typeof transform>): {
107
110
  id?: string | undefined;
108
111
  displayName?: string | undefined;
109
112
  updatedAt?: string | undefined;
110
- exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
111
- type?: string | undefined;
112
113
  ids?: string | undefined;
113
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
114
- weight?: number | undefined;
114
+ exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
115
115
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
116
116
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
117
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
117
118
  tags?: import("../../types").Deserialized<{
118
119
  type?: string | undefined;
119
120
  value: string;
120
121
  }>[] | undefined;
121
122
  density?: number | undefined;
123
+ weight?: number | undefined;
122
124
  subject?: string | undefined;
123
125
  weeks?: number[] | undefined;
124
126
  color?: string | undefined;
125
127
  eventDurationVariance?: number | undefined;
126
128
  totalTime?: string | undefined;
129
+ type?: string | undefined;
127
130
  comment?: string | undefined;
128
131
  startDate?: string | undefined;
129
132
  endDate?: string | undefined;
130
133
  centerOfAttraction?: string | null | undefined;
131
- syllabus?: import("../../types").Deserialized<import("../types/syllabus").Syllabus> | undefined;
132
134
  plannedDuration?: string | undefined;
133
135
  minutesPerWeek?: number | undefined;
134
136
  expectedTotalHours?: number | undefined;
@@ -175,22 +177,22 @@ export default function (schedule: ReturnType<typeof transform>): {
175
177
  id?: string | undefined;
176
178
  displayName?: string | undefined;
177
179
  updatedAt?: string | undefined;
180
+ rank?: number | undefined;
178
181
  ids?: string | undefined;
182
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
183
+ days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
179
184
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
185
+ tags?: import("../../types").Deserialized<{
186
+ type?: string | undefined;
187
+ value: string;
188
+ }>[] | undefined;
189
+ weight?: number | undefined;
180
190
  maxNumWorkingHours?: number | boolean | undefined;
181
191
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
182
192
  maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
183
193
  forbidOverlappingEvents?: boolean | undefined;
184
194
  disableDayLengthPunishment?: boolean | undefined;
185
- weight?: number | undefined;
186
- rank?: number | undefined;
187
195
  species?: string | undefined;
188
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
189
- days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
190
- tags?: import("../../types").Deserialized<{
191
- type?: string | undefined;
192
- value: string;
193
- }>[] | undefined;
194
196
  }[];
195
197
  teachers: {
196
198
  exceptions?: string[] | import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
@@ -198,22 +200,22 @@ export default function (schedule: ReturnType<typeof transform>): {
198
200
  id?: string | undefined;
199
201
  displayName?: string | undefined;
200
202
  updatedAt?: string | undefined;
201
- ids?: string | undefined;
202
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
203
- maxNumWorkingHours?: number | boolean | undefined;
204
- maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
205
- maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
206
- forbidOverlappingEvents?: boolean | undefined;
207
- disableDayLengthPunishment?: boolean | undefined;
208
- weight?: number | undefined;
209
203
  rank?: number | undefined;
204
+ ids?: string | undefined;
210
205
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
211
206
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
207
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
212
208
  tags?: import("../../types").Deserialized<{
213
209
  type?: string | undefined;
214
210
  value: string;
215
211
  }>[] | undefined;
212
+ weight?: number | undefined;
213
+ maxNumWorkingHours?: number | boolean | undefined;
214
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
216
215
  plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
216
+ maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
217
+ forbidOverlappingEvents?: boolean | undefined;
218
+ disableDayLengthPunishment?: boolean | undefined;
217
219
  complementaryHours?: import("../../types").Deserialized<import("../types/locked-times").LockedTime>[] | undefined;
218
220
  signature?: string | undefined;
219
221
  }[];
@@ -4,17 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = _default;
7
+ var _courses2 = _interopRequireDefault(require("./courses"));
8
+ var _events2 = _interopRequireDefault(require("./events"));
7
9
  var _exceptions2 = _interopRequireDefault(require("./exceptions"));
8
- var _periods2 = _interopRequireDefault(require("./periods"));
9
- var _locations2 = _interopRequireDefault(require("./locations"));
10
- var _teachers2 = _interopRequireDefault(require("./teachers"));
11
10
  var _groups2 = _interopRequireDefault(require("./groups"));
12
- var _persons2 = _interopRequireDefault(require("./persons"));
13
- var _courses2 = _interopRequireDefault(require("./courses"));
14
- var _overlapGroups2 = _interopRequireDefault(require("./overlap-groups"));
11
+ var _locations2 = _interopRequireDefault(require("./locations"));
15
12
  var _lockedTimes2 = _interopRequireDefault(require("./locked-times"));
13
+ var _overlapGroups2 = _interopRequireDefault(require("./overlap-groups"));
14
+ var _periods2 = _interopRequireDefault(require("./periods"));
15
+ var _persons2 = _interopRequireDefault(require("./persons"));
16
16
  var _rootIntervals2 = _interopRequireDefault(require("./root-intervals"));
17
- var _events2 = _interopRequireDefault(require("./events"));
17
+ var _syllabuses2 = _interopRequireDefault(require("./syllabuses"));
18
+ var _teachers2 = _interopRequireDefault(require("./teachers"));
18
19
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -34,7 +35,8 @@ function _default(schedule) {
34
35
  overlapGroups,
35
36
  rootIntervals,
36
37
  lockedTimes,
37
- exceptions
38
+ exceptions,
39
+ syllabuses
38
40
  } = schedule;
39
41
  if (periods) {
40
42
  periods = (0, _periods2.default)(periods);
@@ -69,7 +71,10 @@ function _default(schedule) {
69
71
  if (exceptions) {
70
72
  exceptions = (0, _exceptions2.default)(exceptions);
71
73
  }
72
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, exceptions && {
74
+ if (syllabuses) {
75
+ syllabuses = (0, _syllabuses2.default)(syllabuses);
76
+ }
77
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, exceptions && {
73
78
  exceptions
74
79
  }), settings && {
75
80
  settings
@@ -93,6 +98,8 @@ function _default(schedule) {
93
98
  lockedTimes
94
99
  }), events && {
95
100
  events
101
+ }), syllabuses && {
102
+ syllabuses
96
103
  });
97
104
  }
98
105
  //# sourceMappingURL=schedules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","names":["_exceptions2","_interopRequireDefault","require","_periods2","_locations2","_teachers2","_groups2","_persons2","_courses2","_overlapGroups2","_lockedTimes2","_rootIntervals2","_events2","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","_default","schedule","periods","groups","courses","teachers","persons","locations","settings","events","overlapGroups","rootIntervals","lockedTimes","exceptions","_periods","_groups","_teachers","_persons","_locations","_courses","_events","_overlapGroups","_lockedTimes","_rootIntervals","_exceptions"],"sources":["../../../../src/core/v2/from/schedules.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,eAAA,GAAAR,sBAAA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;EAAW,CAAE,GACrCH,MAAM,IAAgB;IAAEA;EAAM,CAAE;AAEvC","ignoreList":[]}
1
+ {"version":3,"file":"schedules.js","names":["_courses2","_interopRequireDefault","require","_events2","_exceptions2","_groups2","_locations2","_lockedTimes2","_overlapGroups2","_periods2","_persons2","_rootIntervals2","_syllabuses2","_teachers2","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","_default","schedule","periods","groups","courses","teachers","persons","locations","settings","events","overlapGroups","rootIntervals","lockedTimes","exceptions","syllabuses","_periods","_groups","_teachers","_persons","_locations","_courses","_events","_overlapGroups","_lockedTimes","_rootIntervals","_exceptions","_syllabuses"],"sources":["../../../../src/core/v2/from/schedules.ts"],"sourcesContent":[null],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,SAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,eAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,UAAA,GAAAZ,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAa,CAAA,WAAAA,CAAA,IAAAA,CAAA,CA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C","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ import transform from '../to/syllabuses';
2
+ declare const _default: (syllabuses: ReturnType<typeof transform>) => {
3
+ id?: string | undefined;
4
+ ids?: string | undefined;
5
+ schoolType: string;
6
+ subjectCode?: string | undefined;
7
+ subjectName: string;
8
+ subjectDesignation?: string | undefined;
9
+ courseCode?: string | undefined;
10
+ courseName?: string | undefined;
11
+ points?: number | undefined;
12
+ official: boolean;
13
+ }[];
14
+ export default _default;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
10
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
11
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
+ var _default = syllabuses => {
13
+ syllabuses = syllabuses.filter(_ref => {
14
+ var {
15
+ id
16
+ } = _ref;
17
+ return id != undefined;
18
+ });
19
+ if (syllabuses.length != Array.from(new Set(syllabuses.map(_ref2 => {
20
+ var {
21
+ id
22
+ } = _ref2;
23
+ return id;
24
+ }))).length) throw new Error('(Core::From::V2::Syllabuses) Syllabuses array have two or more syllabuses with the same ID');
25
+ return syllabuses.map(syllabus => {
26
+ if (!syllabus.id) throw new Error('(Core::From::V2::Syllabuses) Syllabus id is undefined');
27
+ return _objectSpread({}, syllabus);
28
+ }, []);
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=syllabuses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syllabuses.js","names":["syllabuses","filter","_ref","id","undefined","length","Array","from","Set","map","_ref2","Error","syllabus","_objectSpread","exports","default","_default"],"sources":["../../../../src/core/v2/from/syllabuses.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;eAGgBA,UAAwC,IAAI;EAC1DA,UAAU,GAAGA,UAAU,CAACC,MAAM,CAACC,IAAA;IAAA,IAAC;MAAEC;IAAE,CAAE,GAAAD,IAAA;IAAA,OAAKC,EAAE,IAAIC,SAAS;EAAA,EAAC;EAE3D,IAAIJ,UAAU,CAACK,MAAM,IAAIC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAAiBR,UAAU,CAACS,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEP;IAAE,CAAE,GAAAO,KAAA;IAAA,OAAKP,EAAE;EAAA,EAAC,CAAC,CAAC,CAACE,MAAM,EACjG,MAAM,IAAIM,KAAK,CAAC,4FAA4F,CAAC;EAE/G,OAAOX,UAAU,CAACS,GAAG,CAACG,QAAQ,IAAG;IAC/B,IAAI,CAACA,QAAQ,CAACT,EAAE,EACd,MAAM,IAAIQ,KAAK,CAAC,uDAAuD,CAAC;IAE1E,OAAAE,aAAA,KAAYD,QAAQ;EACtB,CAAC,EAAE,EAAE,CAAwC;AAC/C,CAAC;AAAAE,OAAA,CAAAC,OAAA,GAAAC,QAAA","ignoreList":[]}
@@ -5,22 +5,22 @@ declare const _default: (teachers: ReturnType<typeof transform>) => {
5
5
  id?: string | undefined;
6
6
  displayName?: string | undefined;
7
7
  updatedAt?: string | 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
- maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
13
- forbidOverlappingEvents?: boolean | undefined;
14
- disableDayLengthPunishment?: boolean | undefined;
15
- weight?: number | undefined;
16
8
  rank?: number | undefined;
9
+ ids?: string | undefined;
17
10
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
18
11
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
12
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
19
13
  tags?: import("../../types").Deserialized<{
20
14
  type?: string | undefined;
21
15
  value: string;
22
16
  }>[] | undefined;
17
+ weight?: number | undefined;
18
+ maxNumWorkingHours?: number | boolean | undefined;
19
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
23
20
  plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
21
+ maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
22
+ forbidOverlappingEvents?: boolean | undefined;
23
+ disableDayLengthPunishment?: boolean | undefined;
24
24
  complementaryHours?: import("../../types").Deserialized<import("../types/locked-times").LockedTime>[] | undefined;
25
25
  signature?: string | undefined;
26
26
  }[];
@@ -1,6 +1,7 @@
1
- import { Course } from '../types/courses';
2
1
  import { Deserialized } from '../../types';
2
+ import { Course } from '../types/courses';
3
3
  declare const _default: (courses: Deserialized<Course>[]) => {
4
+ syllabus?: string | undefined;
4
5
  period?: string | undefined;
5
6
  locations?: {
6
7
  locations: string[];
@@ -23,28 +24,27 @@ declare const _default: (courses: Deserialized<Course>[]) => {
23
24
  id?: string | undefined;
24
25
  displayName?: string | undefined;
25
26
  updatedAt?: string | undefined;
26
- exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
27
- type?: string | undefined;
28
27
  ids?: string | undefined;
29
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
30
- weight?: number | undefined;
28
+ exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
31
29
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
32
30
  days?: Deserialized<import("../types/days").Day>[] | undefined;
31
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
33
32
  tags?: Deserialized<{
34
33
  type?: string | undefined;
35
34
  value: string;
36
35
  }>[] | undefined;
37
36
  density?: number | undefined;
37
+ weight?: number | undefined;
38
38
  subject?: string | undefined;
39
39
  weeks?: number[] | undefined;
40
40
  color?: string | undefined;
41
41
  eventDurationVariance?: number | undefined;
42
42
  totalTime?: string | undefined;
43
+ type?: string | undefined;
43
44
  comment?: string | undefined;
44
45
  startDate?: string | undefined;
45
46
  endDate?: string | undefined;
46
47
  centerOfAttraction?: string | null | undefined;
47
- syllabus?: Deserialized<import("../types/syllabus").Syllabus> | undefined;
48
48
  plannedDuration?: string | undefined;
49
49
  minutesPerWeek?: number | undefined;
50
50
  expectedTotalHours?: number | undefined;
@@ -8,7 +8,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
8
8
  var _availableLocations2 = _interopRequireDefault(require("./available-locations"));
9
9
  var _days2 = _interopRequireDefault(require("./days"));
10
10
  var _intervals2 = _interopRequireDefault(require("./intervals"));
11
- var _excluded = ["groups", "locations", "teachers", "participants", "period"],
11
+ var _excluded = ["groups", "locations", "teachers", "participants", "period", "syllabus"],
12
12
  _excluded2 = ["to"],
13
13
  _excluded3 = ["to", "exclude"],
14
14
  _excluded4 = ["to"];
@@ -27,12 +27,13 @@ var _default = courses => {
27
27
  locations,
28
28
  teachers,
29
29
  participants,
30
- period
30
+ period,
31
+ syllabus
31
32
  } = _ref,
32
33
  course = _objectWithoutProperties(_ref, _excluded);
33
34
  if (course.days) course.days = (0, _days2.default)(course.days);
34
35
  if (course.intervals) course.intervals = (0, _intervals2.default)(course.intervals);
35
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _lodash.default.omit(course, ['_id', 'events', 'lockedTimes', 'overlapGroup', 'overlapSpecies', 'belongsTo', 'createdAt', 'lastModifiedBy'])), teachers && {
36
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _lodash.default.omit(course, ['_id', 'events', 'lockedTimes', 'overlapGroup', 'overlapSpecies', 'belongsTo', 'createdAt', 'lastModifiedBy'])), teachers && {
36
37
  teachers: teachers.filter(x => x.to != null).map(_ref2 => {
37
38
  var {
38
39
  to: {
@@ -74,6 +75,8 @@ var _default = courses => {
74
75
  locations: (0, _availableLocations2.default)(locations)
75
76
  }), period && {
76
77
  period: period.id
78
+ }), syllabus && {
79
+ syllabus: syllabus.id
77
80
  });
78
81
  }, []);
79
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"courses.js","names":["_lodash","_interopRequireDefault","require","_availableLocations2","_days2","_intervals2","_excluded","_excluded2","_excluded3","_excluded4","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","_objectWithoutProperties","_objectWithoutPropertiesLoose","s","includes","propertyIsEnumerable","n","hasOwnProperty","_default","courses","map","_ref","groups","locations","teachers","participants","period","course","days","_days","intervals","_intervals","_","omit","x","to","_ref2","id","meta","_ref3","exclude","_ref4","_availableLocations","exports"],"sources":["../../../../src/core/v2/to/courses.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,I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AAwC,QAAA","ignoreList":[]}
1
+ {"version":3,"file":"courses.js","names":["_lodash","_interopRequireDefault","require","_availableLocations2","_days2","_intervals2","_excluded","_excluded2","_excluded3","_excluded4","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","_objectWithoutProperties","_objectWithoutPropertiesLoose","s","includes","propertyIsEnumerable","n","hasOwnProperty","_default","courses","map","_ref","groups","locations","teachers","participants","period","syllabus","course","days","_days","intervals","_intervals","_","omit","x","to","_ref2","id","meta","_ref3","exclude","_ref4","_availableLocations","exports"],"sources":["../../../../src/core/v2/to/courses.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,oBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAAqC,IAAAI,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA,SAAAR,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,QAAAH,CAAA,EAAAI,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAP,CAAA,OAAAM,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAR,CAAA,GAAAI,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAX,CAAA,EAAAI,CAAA,EAAAQ,UAAA,OAAAP,CAAA,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CAAC,CAACG,EAAG;QAAC,GAAKC,IAAI;MAAA,CAAG;IAAC,CAAE,GAC9Kd,YAAY,IAAI;MAAEA,YAAY,EAAEA,YAAY,CAACvC,MAAM,CAACiD,CAAC,IAAIA,CAAC,CAACC,EAAE,IAAI,IAAI,CAAC,CAAChB,GAAG,CAACsB,KAAA;QAAA,IAAC;YAAEN,EAAE,EAAE;cAAEE;YAAE;UAAW,CAAG,GAAAI,KAAA;UAAPH,IAAI,GAAA5B,wBAAA,CAAA+B,KAAA,EAAAnE,UAAA;QAAA,OAAAgB,aAAA;UAAW6C,EAAE,EAAEE;QAAG,GAAKC,IAAI;MAAA,CAAG;IAAC,CAAE,GAClIhB,SAAS,IAAO;MAAEA,SAAS,EAAE,IAAAoB,4BAAmB,EAACpB,SAAS;IAAC,CAAE,GAC7DG,MAAM,IAAU;MAAEA,MAAM,EAAEA,MAAM,CAACY;IAAE,CAAE,GACrCX,QAAQ,IAAQ;MAAEA,QAAQ,EAAEA,QAAQ,CAACW;IAAE,CAAE;EAEhD,CAAC,EAAE,EAAE,CAAoB;AAC3B,CAAC;AAAAM,OAAA,CAAAlE,OAAA,GAAAwC,QAAA","ignoreList":[]}
@@ -8,21 +8,21 @@ declare const _default: (groups: Deserialized<Group>[]) => {
8
8
  id?: string | undefined;
9
9
  displayName?: string | undefined;
10
10
  updatedAt?: string | undefined;
11
+ rank?: number | undefined;
11
12
  ids?: string | undefined;
13
+ intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
14
+ days?: Deserialized<import("../types/days").Day>[] | undefined;
12
15
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
16
+ tags?: Deserialized<{
17
+ type?: string | undefined;
18
+ value: string;
19
+ }>[] | undefined;
20
+ weight?: number | undefined;
13
21
  maxNumWorkingHours?: number | boolean | undefined;
14
22
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
15
23
  maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
16
24
  forbidOverlappingEvents?: boolean | undefined;
17
25
  disableDayLengthPunishment?: boolean | undefined;
18
- weight?: number | undefined;
19
- rank?: number | undefined;
20
26
  species?: string | undefined;
21
- intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
22
- days?: Deserialized<import("../types/days").Day>[] | undefined;
23
- tags?: Deserialized<{
24
- type?: string | undefined;
25
- value: string;
26
- }>[] | undefined;
27
27
  }[];
28
28
  export default _default;
@@ -89,6 +89,7 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
89
89
  lastModifiedBy?: unknown;
90
90
  }[];
91
91
  courses: {
92
+ syllabus?: string | undefined;
92
93
  period?: string | undefined;
93
94
  locations?: {
94
95
  locations: string[];
@@ -111,28 +112,27 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
111
112
  id?: string | undefined;
112
113
  displayName?: string | undefined;
113
114
  updatedAt?: string | undefined;
114
- exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
115
- type?: string | undefined;
116
115
  ids?: string | undefined;
117
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
118
- weight?: number | undefined;
116
+ exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
119
117
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
120
118
  days?: Deserialized<import("../types/days").Day>[] | undefined;
119
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
121
120
  tags?: Deserialized<{
122
121
  type?: string | undefined;
123
122
  value: string;
124
123
  }>[] | undefined;
125
124
  density?: number | undefined;
125
+ weight?: number | undefined;
126
126
  subject?: string | undefined;
127
127
  weeks?: number[] | undefined;
128
128
  color?: string | undefined;
129
129
  eventDurationVariance?: number | undefined;
130
130
  totalTime?: string | undefined;
131
+ type?: string | undefined;
131
132
  comment?: string | undefined;
132
133
  startDate?: string | undefined;
133
134
  endDate?: string | undefined;
134
135
  centerOfAttraction?: string | null | undefined;
135
- syllabus?: Deserialized<import("../types/syllabus").Syllabus> | undefined;
136
136
  plannedDuration?: string | undefined;
137
137
  minutesPerWeek?: number | undefined;
138
138
  expectedTotalHours?: number | undefined;
@@ -179,22 +179,22 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
179
179
  id?: string | undefined;
180
180
  displayName?: string | undefined;
181
181
  updatedAt?: string | undefined;
182
+ rank?: number | undefined;
182
183
  ids?: string | undefined;
184
+ intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
185
+ days?: Deserialized<import("../types/days").Day>[] | undefined;
183
186
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
187
+ tags?: Deserialized<{
188
+ type?: string | undefined;
189
+ value: string;
190
+ }>[] | undefined;
191
+ weight?: number | undefined;
184
192
  maxNumWorkingHours?: number | boolean | undefined;
185
193
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
186
194
  maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
187
195
  forbidOverlappingEvents?: boolean | undefined;
188
196
  disableDayLengthPunishment?: boolean | undefined;
189
- weight?: number | undefined;
190
- rank?: number | undefined;
191
197
  species?: string | undefined;
192
- intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
193
- days?: Deserialized<import("../types/days").Day>[] | undefined;
194
- tags?: Deserialized<{
195
- type?: string | undefined;
196
- value: string;
197
- }>[] | undefined;
198
198
  }[];
199
199
  teachers: {
200
200
  exceptions?: string[] | Deserialized<import("../types/exceptions").Exception>[] | undefined;
@@ -202,22 +202,22 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
202
202
  id?: string | undefined;
203
203
  displayName?: string | undefined;
204
204
  updatedAt?: string | undefined;
205
- ids?: string | undefined;
206
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
207
- maxNumWorkingHours?: number | boolean | undefined;
208
- maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
209
- maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
210
- forbidOverlappingEvents?: boolean | undefined;
211
- disableDayLengthPunishment?: boolean | undefined;
212
- weight?: number | undefined;
213
205
  rank?: number | undefined;
206
+ ids?: string | undefined;
214
207
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
215
208
  days?: Deserialized<import("../types/days").Day>[] | undefined;
209
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
216
210
  tags?: Deserialized<{
217
211
  type?: string | undefined;
218
212
  value: string;
219
213
  }>[] | undefined;
214
+ weight?: number | undefined;
215
+ maxNumWorkingHours?: number | boolean | undefined;
216
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
220
217
  plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
218
+ maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
219
+ forbidOverlappingEvents?: boolean | undefined;
220
+ disableDayLengthPunishment?: boolean | undefined;
221
221
  complementaryHours?: Deserialized<import("../types/locked-times").LockedTime>[] | undefined;
222
222
  signature?: string | undefined;
223
223
  }[];
@@ -6,22 +6,22 @@ declare const _default: (teachers: Deserialized<Teacher>[]) => {
6
6
  id?: string | undefined;
7
7
  displayName?: string | undefined;
8
8
  updatedAt?: string | undefined;
9
- ids?: string | undefined;
10
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
11
- maxNumWorkingHours?: number | boolean | undefined;
12
- maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
13
- maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
14
- forbidOverlappingEvents?: boolean | undefined;
15
- disableDayLengthPunishment?: boolean | undefined;
16
- weight?: number | undefined;
17
9
  rank?: number | undefined;
10
+ ids?: string | undefined;
18
11
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
19
12
  days?: Deserialized<import("../types/days").Day>[] | undefined;
13
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
20
14
  tags?: Deserialized<{
21
15
  type?: string | undefined;
22
16
  value: string;
23
17
  }>[] | undefined;
18
+ weight?: number | undefined;
19
+ maxNumWorkingHours?: number | boolean | undefined;
20
+ maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
24
21
  plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
22
+ maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
23
+ forbidOverlappingEvents?: boolean | undefined;
24
+ disableDayLengthPunishment?: boolean | undefined;
25
25
  complementaryHours?: Deserialized<import("../types/locked-times").LockedTime>[] | undefined;
26
26
  signature?: string | undefined;
27
27
  }[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
3
  "description": "",
4
- "version": "3.2.50",
4
+ "version": "3.2.52",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "engines": {