@royalschedule/maps 2.6.10 → 2.6.11

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.
@@ -60,7 +60,7 @@ export default function (schedule: ReturnType<typeof transform>): {
60
60
  durationVariance?: number | undefined;
61
61
  }[] | undefined;
62
62
  lockedTimes?: import("../types/locked-times").LockedTime[] | undefined;
63
- overlapGroups?: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "lastModifiedBy" | "belongsTo">>[] | undefined;
63
+ overlapGroups?: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[] | undefined;
64
64
  courses?: {
65
65
  period?: string | undefined;
66
66
  locations?: {
@@ -27,7 +27,7 @@ import { Types as CoreTypes } from '../types';
27
27
  import { Serialized, Deserialized } from '../../types';
28
28
  export default function (schedule: Deserialized<CoreTypes.division>): {
29
29
  settings?: import("../types/division-settings").DivisionSettings | undefined;
30
- overlapGroups?: Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "lastModifiedBy" | "belongsTo">>[] | undefined;
30
+ overlapGroups?: Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[] | undefined;
31
31
  lockedTimes?: import("../types/locked-times").LockedTime[] | undefined;
32
32
  events?: {
33
33
  period?: string | undefined;
@@ -27,10 +27,10 @@ declare const _default: (courses: ReturnType<typeof transform>) => {
27
27
  comment?: string | undefined;
28
28
  updatedAt?: string | undefined;
29
29
  displayName?: string | undefined;
30
+ exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
30
31
  ids?: string | undefined;
31
32
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
32
33
  weight?: number | undefined;
33
- exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
34
34
  intervals?: import("../../types").Deserialized<import("../types/intervals").Interval>[] | undefined;
35
35
  density?: number | undefined;
36
36
  subject?: string | undefined;
@@ -23,6 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
+ import { Exception } from '../types/exceptions';
26
27
  import transform from '../to/exceptions';
27
28
  declare const _default: (exceptions: ReturnType<typeof transform>) => {
28
29
  _id?: import("mongoose").Types.ObjectId | undefined;
@@ -31,6 +32,8 @@ declare const _default: (exceptions: ReturnType<typeof transform>) => {
31
32
  reason?: string | undefined;
32
33
  description?: string | undefined;
33
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;
35
+ exceptions?: import("mongoose").Types.ObjectId[] | Exception[] | string[] | undefined;
36
+ parentExceptions?: import("mongoose").Types.ObjectId[] | Exception[] | string[] | undefined;
34
37
  start?: Date | undefined;
35
38
  end?: Date | undefined;
36
39
  type?: "calendar" | "absence" | undefined;
@@ -79,7 +79,7 @@ export default function (schedule: ReturnType<typeof transform>): {
79
79
  }[];
80
80
  lockedTimes: import("../types/locked-times").LockedTime[];
81
81
  rootIntervals: import("../types/root-intervals").RootInterval[];
82
- overlapGroups: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "lastModifiedBy" | "belongsTo">>[];
82
+ overlapGroups: import("../../types").Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[];
83
83
  courses: {
84
84
  period?: string | undefined;
85
85
  locations?: {
@@ -108,10 +108,10 @@ export default function (schedule: ReturnType<typeof transform>): {
108
108
  comment?: string | undefined;
109
109
  updatedAt?: string | undefined;
110
110
  displayName?: string | undefined;
111
+ exceptions?: import("../../types").Deserialized<import("../types/exceptions").Exception>[] | undefined;
111
112
  ids?: string | undefined;
112
113
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
113
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
  density?: number | undefined;
117
117
  subject?: string | undefined;
@@ -28,10 +28,10 @@ declare const _default: (courses: Deserialized<Course>[]) => {
28
28
  comment?: string | undefined;
29
29
  updatedAt?: string | undefined;
30
30
  displayName?: string | undefined;
31
+ exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
31
32
  ids?: string | undefined;
32
33
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
33
34
  weight?: number | undefined;
34
- exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
35
35
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
36
36
  density?: number | undefined;
37
37
  subject?: string | undefined;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _lodash = _interopRequireDefault(require("lodash"));
8
- var _excluded = ["sources"];
8
+ var _excluded = ["sources", "exceptions", "parentExceptions"];
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  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; }
11
11
  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; }
@@ -17,11 +17,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
17
17
  var _default = exceptions => {
18
18
  return exceptions.reduce((acc, _ref) => {
19
19
  var {
20
- sources
20
+ sources,
21
+ exceptions,
22
+ parentExceptions
21
23
  } = _ref,
22
- lockedTime = _objectWithoutProperties(_ref, _excluded);
24
+ exception = _objectWithoutProperties(_ref, _excluded);
23
25
  if (!(sources !== null && sources !== void 0 && sources.length)) return acc;
24
- return acc.concat(_objectSpread(_objectSpread({}, _lodash.default.omit(lockedTime, ['_id', 'belongsTo', 'lastModifiedBy', 'createdAt', 'updatedAt'])), sources && {
26
+ return acc.concat(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _lodash.default.omit(exception, ['_id', 'belongsTo', 'parentExceptions', 'exceptions', 'lastModifiedBy', 'createdAt', 'updatedAt'])), sources && {
25
27
  sources: sources === null || sources === void 0 ? void 0 : sources.filter(x => _lodash.default.isObject(x === null || x === void 0 ? void 0 : x.to)).map(_ref2 => {
26
28
  var {
27
29
  to: {
@@ -34,6 +36,20 @@ var _default = exceptions => {
34
36
  toModel
35
37
  };
36
38
  })
39
+ }), parentExceptions && {
40
+ parentExceptions: parentExceptions.filter(_lodash.default.isObject).filter(x => 'id' in x).map(_ref3 => {
41
+ var {
42
+ id
43
+ } = _ref3;
44
+ return id;
45
+ }).filter(_lodash.default.isString)
46
+ }), exceptions && {
47
+ exceptions: exceptions.map(_ref4 => {
48
+ var {
49
+ id
50
+ } = _ref4;
51
+ return id;
52
+ }).filter(Boolean).filter(_lodash.default.isString)
37
53
  }));
38
54
  }, []).filter(x => {
39
55
  var _x$sources;
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.js","names":["_lodash","_interopRequireDefault","require","_excluded","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","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","i","sourceSymbolKeys","indexOf","prototype","propertyIsEnumerable","sourceKeys","_default","exceptions","reduce","acc","_ref","sources","lockedTime","concat","_","omit","x","isObject","to","map","_ref2","id","toModel","toString","_x$sources","exports"],"sources":["../../../../src/core/v2/to/exceptions.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyD,IAAAC,SAAA;AAAA,SAAAF,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,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,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CAAC,CAACC,GAAG,CAACC,KAAA;QAAA,IAAC;UAAEF,EAAE,EAAE;YAAEG;UAAE,CAAE;UAAEC;QAAO,CAAE,GAAAF,KAAA;QAAA,OAAM;UAAEF,EAAE,EAAEG,EAAG,CAACE,QAAQ,EAAE;UAAED;QAAO,CAAE;MAAA,CAAC;IAAC,CAAE,CACvI,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC,CAAC1D,MAAM,CAACoD,CAAC;IAAA,IAAAQ,UAAA;IAAA,QAAAA,UAAA,GAAIR,CAAC,CAACL,OAAO,cAAAa,UAAA,uBAATA,UAAA,CAAWrD,MAAM;EAAA,EAAyE;AAC/G,CAAC;AAAAsD,OAAA,CAAAtE,OAAA,GAAAmD,QAAA"}
1
+ {"version":3,"file":"exceptions.js","names":["_lodash","_interopRequireDefault","require","_excluded","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","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","i","sourceSymbolKeys","indexOf","prototype","propertyIsEnumerable","sourceKeys","_default","exceptions","reduce","acc","_ref","sources","parentExceptions","exception","concat","_","omit","x","isObject","to","map","_ref2","id","toModel","toString","_ref3","isString","_ref4","Boolean","_x$sources","exports"],"sources":["../../../../src/core/v2/to/exceptions.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyD,IAAAC,SAAA;AAAA,SAAAF,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GA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CAAC,IAA2B,IAAI,IAAIA,CAAC,CAAC,CAACG,GAAG,CAACK,KAAA;QAAA,IAAC;UAAEH;QAAE,CAAE,GAAAG,KAAA;QAAA,OAAKH,EAAE;MAAA,EAAC,CAAC1D,MAAM,CAACmD,eAAC,CAACW,QAAQ;IAAC,CAAE,GACpKnB,UAAU,IAAW;MAAEA,UAAU,EAAIA,UAAU,CAACa,GAAG,CAACO,KAAA;QAAA,IAAC;UAAEL;QAAE,CAAE,GAAAK,KAAA;QAAA,OAAKL,EAAG;MAAA,EAAC,CAAC1D,MAAM,CAACgE,OAAO,CAAC,CAAChE,MAAM,CAACmD,eAAC,CAACW,QAAQ;IAAC,CAAE,CAC7G,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC,CAAC9D,MAAM,CAACqD,CAAC;IAAA,IAAAY,UAAA;IAAA,QAAAA,UAAA,GAAIZ,CAAC,CAACN,OAAO,cAAAkB,UAAA,uBAATA,UAAA,CAAW1D,MAAM;EAAA,EAAuB;AAC7D,CAAC;AAAA2D,OAAA,CAAA3E,OAAA,GAAAmD,QAAA"}
@@ -28,7 +28,7 @@ import { Serialized, Deserialized } from '../../types';
28
28
  export default function (schedule: Deserialized<CoreTypes.schedule>): {
29
29
  settings: import("../types/division-settings").DivisionSettings;
30
30
  rootIntervals: import("../types/root-intervals").RootInterval[];
31
- overlapGroups: Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "lastModifiedBy" | "belongsTo">>[];
31
+ overlapGroups: Serialized<Omit<import("../types/overlap-groups").OverlapGroup, "belongsTo" | "lastModifiedBy">>[];
32
32
  lockedTimes: import("../types/locked-times").LockedTime[];
33
33
  events: {
34
34
  period?: string | undefined;
@@ -110,10 +110,10 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
110
110
  comment?: string | undefined;
111
111
  updatedAt?: string | undefined;
112
112
  displayName?: string | undefined;
113
+ exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
113
114
  ids?: string | undefined;
114
115
  minBreakLength?: import("../types/break-lengths").BreakLength | undefined;
115
116
  weight?: number | undefined;
116
- exceptions?: Deserialized<import("../types/exceptions").Exception>[] | undefined;
117
117
  intervals?: Deserialized<import("../types/intervals").Interval>[] | undefined;
118
118
  density?: number | undefined;
119
119
  subject?: string | undefined;
@@ -13,6 +13,8 @@ export interface ExceptionBare {
13
13
  reason?: string;
14
14
  description?: string;
15
15
  sources?: Coalesced<Event | Course | Group | Teacher | Location | Person>[];
16
+ exceptions?: Edge<Exception[]>;
17
+ parentExceptions?: Edge<Exception[]>;
16
18
  start?: Date;
17
19
  end?: Date;
18
20
  type?: 'absence' | 'calendar';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
3
  "description": "",
4
- "version": "2.6.10",
4
+ "version": "2.6.11",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "engines": {