@royalschedule/maps 2.6.8 → 2.6.10

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 (70) hide show
  1. package/dist/RS/v2/from/groups.js +1 -0
  2. package/dist/RS/v2/from/groups.js.map +1 -1
  3. package/dist/RS/v2/to/index.d.ts +1 -0
  4. package/dist/RS/v2/to/schedules.d.ts +1 -0
  5. package/dist/RS/v2/to/schedules.js +3 -1
  6. package/dist/RS/v2/to/schedules.js.map +1 -1
  7. package/dist/RS/v2/types/schedules.d.ts +2 -0
  8. package/dist/core/v1/from/courses.d.ts +4 -4
  9. package/dist/core/v1/from/events.d.ts +2 -2
  10. package/dist/core/v1/from/groups.d.ts +2 -2
  11. package/dist/core/v1/from/overlap-groups.d.ts +1 -1
  12. package/dist/core/v1/from/schedules.d.ts +8 -8
  13. package/dist/core/v1/to/courses.d.ts +4 -4
  14. package/dist/core/v1/to/events.d.ts +2 -2
  15. package/dist/core/v1/to/groups.d.ts +2 -2
  16. package/dist/core/v1/to/schedules.d.ts +8 -8
  17. package/dist/core/v2/from/calendar-exceptions.d.ts +3 -2
  18. package/dist/core/v2/from/calendar-exceptions.js +49 -5
  19. package/dist/core/v2/from/calendar-exceptions.js.map +1 -1
  20. package/dist/core/v2/from/courses.d.ts +5 -4
  21. package/dist/core/v2/from/events.d.ts +46 -13
  22. package/dist/core/v2/from/exceptions.d.ts +47 -0
  23. package/dist/core/v2/from/exceptions.js +31 -0
  24. package/dist/core/v2/from/exceptions.js.map +1 -0
  25. package/dist/core/v2/from/groups.d.ts +3 -2
  26. package/dist/core/v2/from/locations.d.ts +8 -7
  27. package/dist/core/v2/from/overlap-groups.d.ts +1 -1
  28. package/dist/core/v2/from/persons.d.ts +1 -0
  29. package/dist/core/v2/from/schedules.d.ts +42 -29
  30. package/dist/core/v2/from/schedules.js +6 -6
  31. package/dist/core/v2/from/schedules.js.map +1 -1
  32. package/dist/core/v2/from/teachers.d.ts +3 -2
  33. package/dist/core/v2/from/teachers.js +1 -1
  34. package/dist/core/v2/to/calendar-exceptions.js +81 -8
  35. package/dist/core/v2/to/calendar-exceptions.js.map +1 -1
  36. package/dist/core/v2/to/courses.d.ts +5 -4
  37. package/dist/core/v2/to/courses.js.map +1 -1
  38. package/dist/core/v2/to/events.d.ts +46 -13
  39. package/dist/core/v2/to/events.js +10 -2
  40. package/dist/core/v2/to/events.js.map +1 -1
  41. package/dist/core/v2/to/exceptions.d.ts +4 -0
  42. package/dist/core/v2/to/exceptions.js +44 -0
  43. package/dist/core/v2/to/exceptions.js.map +1 -0
  44. package/dist/core/v2/to/groups.d.ts +3 -2
  45. package/dist/core/v2/to/groups.js +8 -1
  46. package/dist/core/v2/to/groups.js.map +1 -1
  47. package/dist/core/v2/to/locations.d.ts +10 -8
  48. package/dist/core/v2/to/locations.js +9 -1
  49. package/dist/core/v2/to/locations.js.map +1 -1
  50. package/dist/core/v2/to/persons.d.ts +1 -0
  51. package/dist/core/v2/to/persons.js +11 -3
  52. package/dist/core/v2/to/persons.js.map +1 -1
  53. package/dist/core/v2/to/schedules.d.ts +42 -29
  54. package/dist/core/v2/to/schedules.js +4 -4
  55. package/dist/core/v2/to/schedules.js.map +1 -1
  56. package/dist/core/v2/to/teachers.d.ts +3 -2
  57. package/dist/core/v2/to/teachers.js +8 -1
  58. package/dist/core/v2/to/teachers.js.map +1 -1
  59. package/dist/core/v2/types/courses.d.ts +2 -0
  60. package/dist/core/v2/types/events.d.ts +2 -2
  61. package/dist/core/v2/types/exceptions.d.ts +32 -0
  62. package/dist/core/v2/types/exceptions.js +6 -0
  63. package/dist/core/v2/types/exceptions.js.map +1 -0
  64. package/dist/core/v2/types/groups.d.ts +2 -0
  65. package/dist/core/v2/types/index.d.ts +2 -2
  66. package/dist/core/v2/types/locations.d.ts +2 -0
  67. package/dist/core/v2/types/persons.d.ts +2 -0
  68. package/dist/core/v2/types/schedules.d.ts +2 -2
  69. package/dist/core/v2/types/teachers.d.ts +2 -0
  70. package/package.json +1 -1
@@ -24,6 +24,7 @@ var _default = (groups, settings) => {
24
24
  if (!group[idKey]) throw new Error('(RS::V2::From::Groups) A group does not have a unique key');
25
25
  if (group.group_type != 'classes') return acc;
26
26
  return acc.concat(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
27
+ species: 'class',
27
28
  ids: group[idKey]
28
29
  }, group.name && {
29
30
  displayName: group.name
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","names":["_breakLengths","_interopRequireDefault","require","_days","_lockedTimes","_intervals","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_default","groups","settings","idKey","groupIdKey","Error","reduce","acc","group","_group$days","_group$intervals","_group$lockedTimes","group_type","includes","concat","ids","name","displayName","forbidOverlappingEvents","maxNumWorkingHours","maxNumDailyWorkingHours","minBreakLength","breakLength","disableDayLengthPunishment","weight","rank","days","intervals","lockedTimes","lockedTime","exports"],"sources":["../../../../src/RS/v2/from/groups.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA8D,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAA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uBAAjBA,kBAAA,CAAmBnC,MAAM,KAAgB;MAAEoD,WAAW,EAAiB,IAAAC,oBAAU,EAACrB,KAAK,CAACoB,WAAW;IAAC,CAAE,CAC1G,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAAE,OAAA,CAAAtE,OAAA,GAAAwC,QAAA"}
1
+ {"version":3,"file":"groups.js","names":["_breakLengths","_interopRequireDefault","require","_days","_lockedTimes","_intervals","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_default","groups","settings","idKey","groupIdKey","Error","reduce","acc","group","_group$days","_group$intervals","_group$lockedTimes","group_type","includes","concat","species","ids","name","displayName","forbidOverlappingEvents","maxNumWorkingHours","maxNumDailyWorkingHours","minBreakLength","breakLength","disableDayLengthPunishment","weight","rank","days","intervals","lockedTimes","lockedTime","exports"],"sources":["../../../../src/RS/v2/from/groups.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA8D,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA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ACtB,KAAK,CAACqB,WAAW;IAAC,CAAE,CAC1G,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAAE,OAAA,CAAAvE,OAAA,GAAAwC,QAAA"}
@@ -14,6 +14,7 @@ export default class {
14
14
  output: import("../types/configurations").Configuration[];
15
15
  meta: {
16
16
  structure: "RS/algorithm-2.0.0";
17
+ division: Pick<import("../../../core/types").Deserialized<import("../../../core/v2/types/divisions").Division>, "end" | "start" | "displayName">;
17
18
  };
18
19
  input: import("../types/constraints").Constraint;
19
20
  };
@@ -5,6 +5,7 @@ declare const _default: (schedule: Deserialized<import("../../../core/v2/types/s
5
5
  output: import("../types/configurations").Configuration[];
6
6
  meta: {
7
7
  structure: "RS/algorithm-2.0.0";
8
+ division: Pick<Deserialized<import("../../../core/v2/types/divisions").Division>, "end" | "start" | "displayName">;
8
9
  };
9
10
  input: import("../types/constraints").Constraint;
10
11
  };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var _lodash = _interopRequireDefault(require("lodash"));
7
8
  var _constraints2 = _interopRequireDefault(require("./constraints"));
8
9
  var _configurations2 = _interopRequireDefault(require("./configurations"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -16,7 +17,8 @@ var _default = exports.default = function _default(schedule) {
16
17
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17
18
  return _objectSpread({
18
19
  meta: {
19
- structure: 'RS/algorithm-2.0.0'
20
+ structure: 'RS/algorithm-2.0.0',
21
+ division: _lodash.default.pick(schedule.divisions, 'displayName', 'start', 'end')
20
22
  },
21
23
  input: (0, _constraints2.default)(schedule, options)
22
24
  }, schedule.events && {
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","names":["_constraints2","_interopRequireDefault","require","_configurations2","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_default","exports","schedule","options","meta","structure","_constraints","events","output","_configurations"],"sources":["../../../../src/RS/v2/to/schedules.ts"],"sourcesContent":[null],"mappings":";;;;;;AAMA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAmE,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,IAAAe,eAAA,CAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,C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;IAAoB,CAAE;IAC9Cf,KAAK,EAAM,IAAAgB,qBAAY,EAACJ,QAAQ,EAAEC,OAAO;EAAC,GACvCD,QAAQ,CAACK,MAAM,IAAI;IAAEC,MAAM,EAAE,IAAAC,wBAAe,EAACP,QAAQ,CAACK,MAAM,EAAEJ,OAAO;EAAC,CAAE;AAE/E,CAAC"}
1
+ {"version":3,"file":"schedules.js","names":["_lodash","_interopRequireDefault","require","_constraints2","_configurations2","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","_default","exports","schedule","options","meta","structure","division","_","pick","divisions","_constraints","events","output","_configurations"],"sources":["../../../../src/RS/v2/to/schedules.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAQA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAmE,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA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AC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAAA,IAAAU,QAAA,GAAAC,OAAA,CAAAzC,OAAA,GAEpD,SAAAwC,SAACE,QAA0C,EAA8B;EAAA,IAA5BC,OAAA,GAAA5B,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAoB,SAAA,GAAApB,SAAA,MAAsB,EAAE;EAElF,OAAAD,aAAA;IACE8B,IAAI,EAAE;MACJC,SAAS,EAAE,oBAAoB;MAC/BC,QAAQ,EAAEC,eAAC,CAACC,IAAI,CAACN,QAAQ,CAACO,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK;KACnE;IACDnB,KAAK,EAAM,IAAAoB,qBAAY,EAACR,QAAQ,EAAEC,OAAO;EAAC,GACvCD,QAAQ,CAACS,MAAM,IAAI;IAAEC,MAAM,EAAE,IAAAC,wBAAe,EAACX,QAAQ,CAACS,MAAM,EAAER,OAAO;EAAC,CAAE;AAE/E,CAAC"}
@@ -1,9 +1,11 @@
1
+ import { Division } from '../../../core/v2/types/divisions';
1
2
  import { Configuration } from './configurations';
2
3
  import { Constraint } from './constraints';
3
4
  type Structure = 'RS/algorithm-2.0.0';
4
5
  export interface Schedule {
5
6
  meta?: {
6
7
  structure?: Structure;
8
+ division: Pick<Division, 'displayName' | 'start' | 'end'>;
7
9
  };
8
10
  score?: [number, number, number, number];
9
11
  input?: Constraint;
@@ -16,14 +16,14 @@ declare const _default: (courses: ReturnType<typeof transform>) => {
16
16
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
17
17
  updatedAt?: string | undefined;
18
18
  displayName?: string | undefined;
19
- density?: number | undefined;
20
- weight?: number | undefined;
21
19
  ids?: string | undefined;
22
- subject?: string | undefined;
23
20
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
21
+ weight?: number | undefined;
22
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
23
+ density?: number | undefined;
24
+ subject?: string | undefined;
24
25
  eventDurationVariance?: number | undefined;
25
26
  totalTime?: string | undefined;
26
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
27
27
  centerOfAttraction?: string | null | undefined;
28
28
  minutesPerWeek?: number | undefined;
29
29
  expectedTotalHours?: number | undefined;
@@ -21,11 +21,11 @@ declare const _default: (events: ReturnType<typeof transform>) => {
21
21
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
22
22
  updatedAt?: string | undefined;
23
23
  displayName?: string | undefined;
24
- density?: number | undefined;
25
- weight?: number | undefined;
26
24
  ids?: string | undefined;
27
25
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
26
+ weight?: number | undefined;
28
27
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
28
+ density?: number | undefined;
29
29
  centerOfAttraction?: string | null | undefined;
30
30
  parked?: boolean | undefined;
31
31
  fixedStart?: boolean | undefined;
@@ -4,14 +4,14 @@ declare const _default: (groups: ReturnType<typeof transform>) => {
4
4
  days?: import("../types/days").Day[] | undefined;
5
5
  updatedAt?: string | undefined;
6
6
  displayName?: string | undefined;
7
- weight?: number | undefined;
8
7
  ids?: string | undefined;
9
8
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
10
- intervals?: import("../types/intervals").Interval[] | undefined;
11
9
  maxNumWorkingHours?: number | boolean | undefined;
12
10
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
13
11
  forbidOverlappingEvents?: boolean | undefined;
14
12
  disableDayLengthPunishment?: boolean | undefined;
13
+ weight?: number | undefined;
15
14
  rank?: number | undefined;
15
+ intervals?: import("../types/intervals").Interval[] | undefined;
16
16
  }[];
17
17
  export default _default;
@@ -30,9 +30,9 @@ declare const _default: (overlapGroups: ReturnType<typeof transform>) => {
30
30
  createdAt?: string | undefined;
31
31
  updatedAt?: string | undefined;
32
32
  ids?: string | undefined;
33
- coalesced?: import("../types/common/coalesced").Coalesced<import("../types/courses").Course>[] | undefined;
34
33
  species?: (import("../types/common/coalesced").Coalesced<import("../types/events").Event> & {
35
34
  id?: string | undefined;
36
35
  })[] | undefined;
36
+ coalesced?: import("../types/common/coalesced").Coalesced<import("../types/courses").Course>[] | undefined;
37
37
  }[];
38
38
  export default _default;
@@ -47,11 +47,11 @@ export default function (schedule: ReturnType<typeof transform>): {
47
47
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
48
48
  updatedAt?: string | undefined;
49
49
  displayName?: string | undefined;
50
- density?: number | undefined;
51
- weight?: number | undefined;
52
50
  ids?: string | undefined;
53
51
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
52
+ weight?: number | undefined;
54
53
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
54
+ density?: number | undefined;
55
55
  centerOfAttraction?: string | null | undefined;
56
56
  parked?: boolean | undefined;
57
57
  fixedStart?: boolean | undefined;
@@ -78,14 +78,14 @@ export default function (schedule: ReturnType<typeof transform>): {
78
78
  days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
79
79
  updatedAt?: string | undefined;
80
80
  displayName?: string | undefined;
81
- density?: number | undefined;
82
- weight?: number | undefined;
83
81
  ids?: string | undefined;
84
- subject?: string | undefined;
85
82
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
83
+ weight?: number | undefined;
84
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
85
+ density?: number | undefined;
86
+ subject?: string | undefined;
86
87
  eventDurationVariance?: number | undefined;
87
88
  totalTime?: string | undefined;
88
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
89
89
  centerOfAttraction?: string | null | undefined;
90
90
  minutesPerWeek?: number | undefined;
91
91
  expectedTotalHours?: number | undefined;
@@ -95,15 +95,15 @@ export default function (schedule: ReturnType<typeof transform>): {
95
95
  days?: import("../types/days").Day[] | undefined;
96
96
  updatedAt?: string | undefined;
97
97
  displayName?: string | undefined;
98
- weight?: number | undefined;
99
98
  ids?: string | undefined;
100
99
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
101
- intervals?: import("../types/intervals").Interval[] | undefined;
102
100
  maxNumWorkingHours?: number | boolean | undefined;
103
101
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
104
102
  forbidOverlappingEvents?: boolean | undefined;
105
103
  disableDayLengthPunishment?: boolean | undefined;
104
+ weight?: number | undefined;
106
105
  rank?: number | undefined;
106
+ intervals?: import("../types/intervals").Interval[] | undefined;
107
107
  }[] | undefined;
108
108
  teachers?: {
109
109
  _id?: import("mongoose").Types.ObjectId | undefined;
@@ -17,14 +17,14 @@ declare const _default: (courses: Deserialized<Course>[]) => {
17
17
  days?: Deserialized<import("../types/days").Day>[] | undefined;
18
18
  updatedAt?: string | undefined;
19
19
  displayName?: string | undefined;
20
- density?: number | undefined;
21
- weight?: number | undefined;
22
20
  ids?: string | undefined;
23
- subject?: string | undefined;
24
21
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
22
+ weight?: number | undefined;
23
+ intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
24
+ density?: number | undefined;
25
+ subject?: string | undefined;
25
26
  eventDurationVariance?: number | undefined;
26
27
  totalTime?: string | undefined;
27
- intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
28
28
  centerOfAttraction?: string | null | undefined;
29
29
  minutesPerWeek?: number | undefined;
30
30
  expectedTotalHours?: number | undefined;
@@ -22,11 +22,11 @@ declare const _default: (events: Deserialized<Event>[]) => {
22
22
  days?: Deserialized<import("../types/days").Day>[] | undefined;
23
23
  updatedAt?: string | undefined;
24
24
  displayName?: string | undefined;
25
- density?: number | undefined;
26
- weight?: number | undefined;
27
25
  ids?: string | undefined;
28
26
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
27
+ weight?: number | undefined;
29
28
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
29
+ density?: number | undefined;
30
30
  centerOfAttraction?: string | null | undefined;
31
31
  parked?: boolean | undefined;
32
32
  fixedStart?: boolean | undefined;
@@ -4,14 +4,14 @@ declare const _default: (groups: Group[]) => {
4
4
  days?: import("../types/days").Day[] | undefined;
5
5
  updatedAt?: string | undefined;
6
6
  displayName?: string | undefined;
7
- weight?: number | undefined;
8
7
  ids?: string | undefined;
9
8
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
10
- intervals?: import("../types/intervals").Interval[] | undefined;
11
9
  maxNumWorkingHours?: number | boolean | undefined;
12
10
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
13
11
  forbidOverlappingEvents?: boolean | undefined;
14
12
  disableDayLengthPunishment?: boolean | undefined;
13
+ weight?: number | undefined;
15
14
  rank?: number | undefined;
15
+ intervals?: import("../types/intervals").Interval[] | undefined;
16
16
  }[];
17
17
  export default _default;
@@ -51,11 +51,11 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
51
51
  days?: Deserialized<import("../types/days").Day>[] | undefined;
52
52
  updatedAt?: string | undefined;
53
53
  displayName?: string | undefined;
54
- density?: number | undefined;
55
- weight?: number | undefined;
56
54
  ids?: string | undefined;
57
55
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
56
+ weight?: number | undefined;
58
57
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
58
+ density?: number | undefined;
59
59
  centerOfAttraction?: string | null | undefined;
60
60
  parked?: boolean | undefined;
61
61
  fixedStart?: boolean | undefined;
@@ -80,14 +80,14 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
80
80
  days?: Deserialized<import("../types/days").Day>[] | undefined;
81
81
  updatedAt?: string | undefined;
82
82
  displayName?: string | undefined;
83
- density?: number | undefined;
84
- weight?: number | undefined;
85
83
  ids?: string | undefined;
86
- subject?: string | undefined;
87
84
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
85
+ weight?: number | undefined;
86
+ intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
87
+ density?: number | undefined;
88
+ subject?: string | undefined;
88
89
  eventDurationVariance?: number | undefined;
89
90
  totalTime?: string | undefined;
90
- intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
91
91
  centerOfAttraction?: string | null | undefined;
92
92
  minutesPerWeek?: number | undefined;
93
93
  expectedTotalHours?: number | undefined;
@@ -125,15 +125,15 @@ export default function (schedule: Deserialized<CoreTypes.division>): {
125
125
  days?: import("../types/days").Day[] | undefined;
126
126
  updatedAt?: string | undefined;
127
127
  displayName?: string | undefined;
128
- weight?: number | undefined;
129
128
  ids?: string | undefined;
130
129
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
131
- intervals?: import("../types/intervals").Interval[] | undefined;
132
130
  maxNumWorkingHours?: number | boolean | undefined;
133
131
  maxNumDailyWorkingHours?: number | boolean | number[] | undefined;
134
132
  forbidOverlappingEvents?: boolean | undefined;
135
133
  disableDayLengthPunishment?: boolean | undefined;
134
+ weight?: number | undefined;
136
135
  rank?: number | undefined;
136
+ intervals?: import("../types/intervals").Interval[] | undefined;
137
137
  }[] | undefined;
138
138
  teachers?: {
139
139
  _id?: import("mongoose").Types.ObjectId | undefined;
@@ -23,16 +23,17 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
- import transform from '../to/calendar-exceptions';
26
+ import transform from '../to/exceptions';
27
27
  declare const _default: (calendarExceptions: ReturnType<typeof transform>) => {
28
28
  _id?: import("mongoose").Types.ObjectId | undefined;
29
29
  id?: string | undefined;
30
30
  belongsTo?: string | import("mongoose").Types.ObjectId | import("../types/divisions").Division | undefined;
31
31
  reason?: string | undefined;
32
32
  description?: string | undefined;
33
- sources?: import("../types/common/coalesced").Coalesced<import("../types/courses").Course | import("../types/events").Event>[] | undefined;
33
+ 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;
34
34
  start?: Date | undefined;
35
35
  end?: Date | undefined;
36
+ type?: "calendar" | "absence" | undefined;
36
37
  action?: "add" | "cancel" | "remove" | "reschedule" | "substitute" | undefined;
37
38
  exception?: {
38
39
  to?: import("../../types").Edge<import("../types/groups").Group | import("../types/persons").Person | import("../types/teachers").Teacher | import("../types/locations").Location | import("../types/courses").Course> | undefined;
@@ -4,11 +4,55 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
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(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); }
7
+ function ownKeys(e, r) {
8
+ var t = Object.keys(e);
9
+ if (Object.getOwnPropertySymbols) {
10
+ var o = Object.getOwnPropertySymbols(e);
11
+ r && (o = o.filter(function (r) {
12
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
13
+ })), t.push.apply(t, o);
14
+ }
15
+ return t;
16
+ }
17
+ function _objectSpread(e) {
18
+ for (var r = 1; r < arguments.length; r++) {
19
+ var t = null != arguments[r] ? arguments[r] : {};
20
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
21
+ _defineProperty(e, r, t[r]);
22
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
23
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
24
+ });
25
+ }
26
+ return e;
27
+ }
28
+ function _defineProperty(obj, key, value) {
29
+ key = _toPropertyKey(key);
30
+ if (key in obj) {
31
+ Object.defineProperty(obj, key, {
32
+ value: value,
33
+ enumerable: true,
34
+ configurable: true,
35
+ writable: true
36
+ });
37
+ } else {
38
+ obj[key] = value;
39
+ }
40
+ return obj;
41
+ }
42
+ function _toPropertyKey(arg) {
43
+ var key = _toPrimitive(arg, "string");
44
+ return typeof key === "symbol" ? key : String(key);
45
+ }
46
+ function _toPrimitive(input, hint) {
47
+ if (typeof input !== "object" || input === null) return input;
48
+ var prim = input[Symbol.toPrimitive];
49
+ if (prim !== undefined) {
50
+ var res = prim.call(input, hint || "default");
51
+ if (typeof res !== "object") return res;
52
+ throw new TypeError("@@toPrimitive must return a primitive value.");
53
+ }
54
+ return (hint === "string" ? String : Number)(input);
55
+ }
12
56
  var _default = calendarExceptions => {
13
57
  calendarExceptions = calendarExceptions.filter(_ref => {
14
58
  var {
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-exceptions.js","names":["calendarExceptions","filter","_ref","id","undefined","length","Array","from","Set","map","_ref2","Error","calendarException","_objectSpread","exports","default","_default"],"sources":["../../../../src/core/v2/from/calendar-exceptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;eAGgBA,kBAAgD,IAAI;EAClEA,kBAAkB,GAAGA,kBAAkB,CAACC,MAAM,CAACC,IAAA;IAAA,IAAC;MAAEC;IAAE,CAAE,GAAAD,IAAA;IAAA,OAAKC,EAAE,IAAIC,SAAS;EAAA,EAAC;EAE3E,IAAIJ,kBAAkB,CAACK,MAAM,IAAIC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAA0BR,kBAAkB,CAACS,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEP;IAAE,CAAE,GAAAO,KAAA;IAAA,OAAKP,EAAE;EAAA,EAAC,CAAC,CAAC,CAACE,MAAM,EAC1H,MAAM,IAAIM,KAAK,CAAC,oHAAoH,CAAC;EAEvI,OAAOX,kBAAkB,CAACS,GAAG,CAACG,iBAAiB,IAAG;IAChD,IAAI,CAAEA,iBAAiB,CAACT,EAAE,EACxB,MAAM,IAAIQ,KAAK,CAAC,0EAA0E,CAAC;IAE7F,OAAAE,aAAA,KAAYD,iBAAiB;EAC/B,CAAC,EAAE,EAAE,CAA+B;AACtC,CAAC;AAAAE,OAAA,CAAAC,OAAA,GAAAC,QAAA"}
1
+ {"version":3,"file":"calendar-exceptions.js","names":["calendarExceptions","filter","_ref","id","undefined","length","Array","from","Set","map","_ref2","Error","calendarException","_objectSpread","exports","default","_default"],"sources":["../../../../src/core/v2/from/calendar-exceptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAGgBA,kBAAgD,IAAI;EAClEA,kBAAkB,GAAGA,kBAAkB,CAACC,MAAM,CAACC,IAAA;IAAA,IAAC;MAAEC;IAAE,CAAE,GAAAD,IAAA;IAAA,OAAKC,EAAE,IAAIC,SAAS;EAAA,EAAC;EAE3E,IAAIJ,kBAAkB,CAACK,MAAM,IAAIC,KAAK,CAACC,IAAI,CAAC,IAAIC,GAAG,CAA0BR,kBAAkB,CAACS,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEP;IAAE,CAAE,GAAAO,KAAA;IAAA,OAAKP,EAAE;EAAA,EAAC,CAAC,CAAC,CAACE,MAAM,EAC1H,MAAM,IAAIM,KAAK,CAAC,oHAAoH,CAAC;EAEvI,OAAOX,kBAAkB,CAACS,GAAG,CAACG,iBAAiB,IAAG;IAChD,IAAI,CAAEA,iBAAiB,CAACT,EAAE,EACxB,MAAM,IAAIQ,KAAK,CAAC,0EAA0E,CAAC;IAE7F,OAAAE,aAAA,KAAYD,iBAAiB;EAC/B,CAAC,EAAE,EAAE,CAA+B;AACtC,CAAC;AAAAE,OAAA,CAAAC,OAAA,GAAAC,QAAA"}
@@ -27,14 +27,15 @@ declare const _default: (courses: ReturnType<typeof transform>) => {
27
27
  comment?: string | undefined;
28
28
  updatedAt?: string | undefined;
29
29
  displayName?: string | undefined;
30
- density?: number | undefined;
31
- weight?: number | undefined;
32
30
  ids?: string | undefined;
33
- subject?: string | undefined;
34
31
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
32
+ weight?: number | undefined;
33
+ exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
34
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
35
+ density?: number | undefined;
36
+ subject?: string | undefined;
35
37
  eventDurationVariance?: number | undefined;
36
38
  totalTime?: string | undefined;
37
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
38
39
  centerOfAttraction?: string | null | undefined;
39
40
  minutesPerWeek?: number | undefined;
40
41
  expectedTotalHours?: number | undefined;
@@ -1,6 +1,32 @@
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" />
1
26
  import transform from '../to/events';
2
27
  declare const _default: (events: ReturnType<typeof transform>) => {
3
28
  period?: string | undefined;
29
+ exceptions?: string[] | undefined;
4
30
  inLocations?: string[] | undefined;
5
31
  locations?: {
6
32
  locations: string[];
@@ -21,26 +47,33 @@ declare const _default: (events: ReturnType<typeof transform>) => {
21
47
  to: string;
22
48
  }[] | undefined;
23
49
  course: string | undefined;
24
- type?: string | undefined;
50
+ _id?: import("mongoose").Types.ObjectId | undefined;
25
51
  id?: string | undefined;
26
- end?: string | Date | import("moment").Moment | undefined;
27
- start?: string | Date | import("moment").Moment | undefined;
28
- color?: string | undefined;
29
- visible?: boolean | undefined;
30
- weeks?: number[] | undefined;
31
- days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
32
- updatedAt?: string | undefined;
33
- displayName?: string | undefined;
52
+ belongsTo?: import("../../types").Deserialized<import("../types/divisions").Division> | undefined;
34
53
  density?: number | undefined;
35
54
  weight?: number | undefined;
36
- ids?: string | undefined;
37
- minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
38
- intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
39
- centerOfAttraction?: string | null | undefined;
40
55
  parked?: boolean | undefined;
56
+ color?: string | undefined;
41
57
  fixedStart?: boolean | undefined;
58
+ start?: string | Date | import("moment").Moment | undefined;
59
+ end?: string | Date | import("moment").Moment | undefined;
60
+ ids?: string | undefined;
61
+ minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
62
+ weeks?: number[] | undefined;
63
+ type?: string | undefined;
64
+ displayName?: string | undefined;
65
+ visible?: boolean | undefined;
42
66
  duration?: number | undefined;
43
67
  preferredDuration?: number | undefined;
44
68
  durationVariance?: number | undefined;
69
+ lockedTimes?: import("../../types").Deserialized<import("../types/locked-times").LockedTime>[] | undefined;
70
+ intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
71
+ centerOfAttraction?: string | null | undefined;
72
+ days?: import("../../types").Deserialized<import("../types/days").Day>[] | undefined;
73
+ overlapGroup?: import("../../types").Deserialized<import("../types/overlap-groups").OverlapGroup> | undefined;
74
+ overlapSpecies?: import("../../types").Deserialized<import("../types/overlap-groups").OverlapGroup> | undefined;
75
+ createdAt?: string | undefined;
76
+ updatedAt?: string | undefined;
77
+ lastModifiedBy?: unknown;
45
78
  }[];
46
79
  export default _default;
@@ -0,0 +1,47 @@
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 transform from '../to/exceptions';
27
+ declare const _default: (exceptions: ReturnType<typeof transform>) => {
28
+ _id?: import("mongoose").Types.ObjectId | undefined;
29
+ id?: string | undefined;
30
+ belongsTo?: string | import("mongoose").Types.ObjectId | import("../types/divisions").Division | undefined;
31
+ reason?: string | undefined;
32
+ description?: string | undefined;
33
+ 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;
34
+ start?: Date | undefined;
35
+ end?: Date | undefined;
36
+ type?: "calendar" | "absence" | undefined;
37
+ action?: "add" | "cancel" | "remove" | "reschedule" | "substitute" | undefined;
38
+ exception?: {
39
+ to?: import("../../types").Edge<import("../types/groups").Group | import("../types/persons").Person | import("../types/teachers").Teacher | import("../types/locations").Location | import("../types/courses").Course> | undefined;
40
+ toModel?: "groups" | "courses" | "teachers" | "locations" | "persons" | undefined;
41
+ include?: boolean | undefined;
42
+ start?: Date | undefined;
43
+ end?: Date | undefined;
44
+ } | undefined;
45
+ lastModifiedBy?: unknown;
46
+ }[];
47
+ 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(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 = exceptions => {
13
+ exceptions = exceptions.filter(_ref => {
14
+ var {
15
+ id
16
+ } = _ref;
17
+ return id != undefined;
18
+ });
19
+ if (exceptions.length != Array.from(new Set(exceptions.map(_ref2 => {
20
+ var {
21
+ id
22
+ } = _ref2;
23
+ return id;
24
+ }))).length) throw new Error('(Core::From::V2::exceptions) exceptions array have two or more exceptions with the same ID');
25
+ return exceptions.map(exception => {
26
+ if (!exception.id) throw new Error('(Core::From::V2::exceptions) Calendar exceptions id is undefined');
27
+ return _objectSpread({}, exception);
28
+ }, []);
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=exceptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exceptions.js","names":["exceptions","filter","_ref","id","undefined","length","Array","from","Set","map","_ref2","Error","exception","_objectSpread","exports","default","_default"],"sources":["../../../../src/core/v2/from/exceptions.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,CAAkBR,UAAU,CAACS,GAAG,CAACC,KAAA;IAAA,IAAC;MAAEP;IAAE,CAAE,GAAAO,KAAA;IAAA,OAAKP,EAAE;EAAA,EAAC,CAAC,CAAC,CAACE,MAAM,EAClG,MAAM,IAAIM,KAAK,CAAC,4FAA4F,CAAC;EAE/G,OAAOX,UAAU,CAACS,GAAG,CAACG,SAAS,IAAG;IAChC,IAAI,CAAEA,SAAS,CAACT,EAAE,EAChB,MAAM,IAAIQ,KAAK,CAAC,kEAAkE,CAAC;IAErF,OAAAE,aAAA,KAAYD,SAAS;EACvB,CAAC,EAAE,EAAE,CAAuB;AAC9B,CAAC;AAAAE,OAAA,CAAAC,OAAA,GAAAC,QAAA"}