@royalschedule/maps 4.0.1 → 4.0.3

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 (75) hide show
  1. package/dist/Excel/v1/from/index.js +2 -2
  2. package/dist/Excel/v1/from/index.js.map +1 -1
  3. package/dist/Excel/v2/from/index.js +2 -2
  4. package/dist/Excel/v2/from/index.js.map +1 -1
  5. package/dist/InfoMentor/to/schedules.js +2 -2
  6. package/dist/InfoMentor/to/schedules.js.map +1 -1
  7. package/dist/PlanDigital/index.d.ts +28 -28
  8. package/dist/RS/make-connected.js +2 -2
  9. package/dist/RS/make-connected.js.map +1 -1
  10. package/dist/SS12000/from/activities.js +36 -0
  11. package/dist/SS12000/from/activities.js.map +1 -0
  12. package/dist/SS12000/from/calendar-events.js +20 -0
  13. package/dist/SS12000/from/calendar-events.js.map +1 -0
  14. package/dist/SS12000/from/duties.js +21 -0
  15. package/dist/SS12000/from/duties.js.map +1 -0
  16. package/dist/SS12000/from/groups.js +23 -0
  17. package/dist/SS12000/from/groups.js.map +1 -0
  18. package/dist/SS12000/from/index.js +24 -0
  19. package/dist/SS12000/from/index.js.map +1 -0
  20. package/dist/SS12000/from/persons.js +43 -0
  21. package/dist/SS12000/from/persons.js.map +1 -0
  22. package/dist/SS12000/from/resources.js +9 -0
  23. package/dist/SS12000/from/resources.js.map +1 -0
  24. package/dist/SS12000/from/rooms.js +18 -0
  25. package/dist/SS12000/from/rooms.js.map +1 -0
  26. package/dist/SS12000/from/syllabuses.js +21 -0
  27. package/dist/SS12000/from/syllabuses.js.map +1 -0
  28. package/dist/SS12000/index.d.ts +36 -0
  29. package/dist/SS12000/index.js +12 -0
  30. package/dist/SS12000/index.js.map +1 -0
  31. package/dist/SS12000/to/activities.js +63 -0
  32. package/dist/SS12000/to/activities.js.map +1 -0
  33. package/dist/SS12000/to/calendar-events.js +53 -0
  34. package/dist/SS12000/to/calendar-events.js.map +1 -0
  35. package/dist/SS12000/to/common.js +25 -0
  36. package/dist/SS12000/to/common.js.map +1 -0
  37. package/dist/SS12000/to/duties.js +45 -0
  38. package/dist/SS12000/to/duties.js.map +1 -0
  39. package/dist/SS12000/to/groups.js +47 -0
  40. package/dist/SS12000/to/groups.js.map +1 -0
  41. package/dist/SS12000/to/index.d.ts +58 -0
  42. package/dist/SS12000/to/index.js +24 -0
  43. package/dist/SS12000/to/index.js.map +1 -0
  44. package/dist/SS12000/to/persons.js +40 -0
  45. package/dist/SS12000/to/persons.js.map +1 -0
  46. package/dist/SS12000/to/resources.js +27 -0
  47. package/dist/SS12000/to/resources.js.map +1 -0
  48. package/dist/SS12000/to/rooms.js +32 -0
  49. package/dist/SS12000/to/rooms.js.map +1 -0
  50. package/dist/SS12000/to/syllabuses.js +34 -0
  51. package/dist/SS12000/to/syllabuses.js.map +1 -0
  52. package/dist/SS12000/types/activities.d.ts +41 -0
  53. package/dist/SS12000/types/calendar-events.d.ts +23 -0
  54. package/dist/SS12000/types/codes.d.ts +9 -0
  55. package/dist/SS12000/types/duties.d.ts +23 -0
  56. package/dist/SS12000/types/duty-assignments.d.ts +13 -0
  57. package/dist/SS12000/types/groups.d.ts +23 -0
  58. package/dist/SS12000/types/index.d.ts +21 -0
  59. package/dist/SS12000/types/organisation.d.ts +20 -0
  60. package/dist/SS12000/types/persons.d.ts +30 -0
  61. package/dist/SS12000/types/resources.d.ts +13 -0
  62. package/dist/SS12000/types/rooms.d.ts +17 -0
  63. package/dist/SS12000/types/syllabus.d.ts +19 -0
  64. package/dist/core/to/exceptions.js +5 -3
  65. package/dist/core/to/exceptions.js.map +1 -1
  66. package/dist/core/to/groups.js +4 -1
  67. package/dist/core/to/groups.js.map +1 -1
  68. package/dist/core/to/locations.js +4 -1
  69. package/dist/core/to/locations.js.map +1 -1
  70. package/dist/core/to/settings.js +4 -1
  71. package/dist/core/to/settings.js.map +1 -1
  72. package/dist/core/types/exceptions.d.ts +1 -1
  73. package/dist/index.d.ts +9 -7
  74. package/dist/index.js +2 -1
  75. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","names":["edges: SerializedEdges<Types.group>","x"],"sources":["../../../src/core/to/groups.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { internalKeysOmitted } from './util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n groups: Types.mixed.group[],\n options: BaseOptions\n): OutTypes.group[] => {\n return groups\n .map(x => {\n const edges: SerializedEdges<Types.group> = {\n rootInterval: x.rootInterval ? getVertexId(x.rootInterval, options) : undefined,\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n lunch: x.lunch ?.map(x => getVertexId(x, options)),\n members: x.members ?.map(x => getVertexId(x, options)),\n parentGroups: x.parentGroups?.map(x => getVertexId(x, options)),\n subGroups: x.subGroups ?.map(x => getVertexId(x, options)),\n } satisfies SerializedEdgesShape<Types.group>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n throw new Error('ignore subgroups??');\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,sBACE,QACA,YACqB;AACrB,QAAO,OACJ,KAAI,MAAK;EACR,MAAMA,QAAsC;GAC1C,cAAc,EAAE,eAAe,YAAY,EAAE,cAAc,WAAW;GACtE,YAAc,EAAE,YAAc,KAAI,QAAK,YAAYC,KAAG;GACtD,aAAc,EAAE,aAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,OAAc,EAAE,OAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,SAAc,EAAE,SAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,cAAc,EAAE,cAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,WAAc,EAAE,WAAc,KAAI,QAAK,YAAYA,KAAG;;EAExD,MAAM,WAAW,oBAAoB,GAAG;AAExC,QAAM,IAAI,MAAM"}
1
+ {"version":3,"file":"groups.js","names":["edges: SerializedEdges<Types.group>","x"],"sources":["../../../src/core/to/groups.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { internalKeysOmitted } from './util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n groups: Types.mixed.group[],\n options: BaseOptions\n): OutTypes.group[] => {\n return groups\n .map(x => {\n const edges: SerializedEdges<Types.group> = {\n rootInterval: x.rootInterval ? getVertexId(x.rootInterval, options) : undefined,\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n lunch: x.lunch ?.map(x => getVertexId(x, options)),\n members: x.members ?.map(x => getVertexId(x, options)),\n parentGroups: x.parentGroups?.map(x => getVertexId(x, options)),\n subGroups: x.subGroups ?.map(x => getVertexId(x, options)),\n } satisfies SerializedEdgesShape<Types.group>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,sBACE,QACA,YACqB;AACrB,QAAO,OACJ,KAAI,MAAK;EACR,MAAMA,QAAsC;GAC1C,cAAc,EAAE,eAAe,YAAY,EAAE,cAAc,WAAW;GACtE,YAAc,EAAE,YAAc,KAAI,QAAK,YAAYC,KAAG;GACtD,aAAc,EAAE,aAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,OAAc,EAAE,OAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,SAAc,EAAE,SAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,cAAc,EAAE,cAAc,KAAI,QAAK,YAAYA,KAAG;GACtD,WAAc,EAAE,WAAc,KAAI,QAAK,YAAYA,KAAG;;EAExD,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
@@ -10,7 +10,10 @@ var locations_default = (locations, options) => {
10
10
  lunch: x.lunch?.map((x$1) => getVertexId(x$1, options))
11
11
  };
12
12
  const nonEdges = internalKeysOmitted(x, edges);
13
- throw new Error("previously we were deleting the these, why!?");
13
+ return {
14
+ ...nonEdges,
15
+ ...edges
16
+ };
14
17
  });
15
18
  };
16
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"locations.js","names":["edges: SerializedEdges<Types.location>","x"],"sources":["../../../src/core/to/locations.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { internalKeysOmitted } from './util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n locations: Types.mixed.location[],\n options: BaseOptions\n): OutTypes.location[] => {\n return locations\n .map(x => {\n const edges: SerializedEdges<Types.location> = {\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes?.map(x => getVertexId(x, options)),\n lunch: x.lunch ?.map(x => getVertexId(x, options)),\n } satisfies SerializedEdgesShape<Types.location>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n throw new Error('previously we were deleting the these, why!?');\n // delete location.lunch;\n // delete location.lockedTimes;\n\n throw new Error('what are these used for!?');\n // if (location.days) location.days = _days (location.days!);\n // if (location.intervals) location.intervals = _intervals(location.intervals!);\n\n // return {\n // ..._.omit(location, ['_id', 'parentGroups', 'exceptions', 'members', 'subGroups', 'lunch', 'lockedTimes', 'belongsTo', 'createdAt', 'lastModifiedBy']),\n // ...location.exceptions && { exceptions: location.exceptions.map(({ id }) => id!).filter(Boolean) },\n // };\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,yBACE,WACA,YACwB;AACxB,QAAO,UACJ,KAAI,MAAK;EACR,MAAMA,QAAyC;GAC7C,YAAa,EAAE,YAAa,KAAI,QAAK,YAAYC,KAAG;GACpD,aAAa,EAAE,aAAa,KAAI,QAAK,YAAYA,KAAG;GACpD,OAAa,EAAE,OAAa,KAAI,QAAK,YAAYA,KAAG;;EAEtD,MAAM,WAAW,oBAAoB,GAAG;AAExC,QAAM,IAAI,MAAM"}
1
+ {"version":3,"file":"locations.js","names":["edges: SerializedEdges<Types.location>","x"],"sources":["../../../src/core/to/locations.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { internalKeysOmitted } from './util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n locations: Types.mixed.location[],\n options: BaseOptions\n): OutTypes.location[] => {\n return locations\n .map(x => {\n const edges: SerializedEdges<Types.location> = {\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes?.map(x => getVertexId(x, options)),\n lunch: x.lunch ?.map(x => getVertexId(x, options)),\n } satisfies SerializedEdgesShape<Types.location>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,yBACE,WACA,YACwB;AACxB,QAAO,UACJ,KAAI,MAAK;EACR,MAAMA,QAAyC;GAC7C,YAAa,EAAE,YAAa,KAAI,QAAK,YAAYC,KAAG;GACpD,aAAa,EAAE,aAAa,KAAI,QAAK,YAAYA,KAAG;GACpD,OAAa,EAAE,OAAa,KAAI,QAAK,YAAYA,KAAG;;EAEtD,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
@@ -8,7 +8,10 @@ var settings_default = (settings, options) => {
8
8
  defaultRootInterval: settings.defaultRootInterval ? getVertexId(settings.defaultRootInterval, options) : void 0
9
9
  };
10
10
  const nonEdges = internalKeysOmitted(settings, edges);
11
- throw new Error("previously we were deleting the id, why!?");
11
+ return {
12
+ ...nonEdges,
13
+ ...edges
14
+ };
12
15
  };
13
16
 
14
17
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","names":["edges: SerializedEdges<Types.divisionSettings>"],"sources":["../../../src/core/to/settings.ts"],"sourcesContent":["import type { BaseOptions } from '../../common/types';\nimport type { Types } from '../types';\nimport { getVertexId } from '../util';\nimport type { OutTypes } from './schedules';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport { internalKeysOmitted } from './util';\n\nexport default (\n settings: Types.mixed.divisionSettings,\n options: BaseOptions\n): OutTypes.settings => {\n const edges: SerializedEdges<Types.divisionSettings> = {\n period: settings.period ? getVertexId(settings.period, options) : undefined,\n defaultRootInterval: settings.defaultRootInterval ? getVertexId(settings.defaultRootInterval, options) : undefined,\n } satisfies SerializedEdgesShape<Types.divisionSettings>;\n const nonEdges = internalKeysOmitted(settings, edges);\n\n throw new Error('previously we were deleting the id, why!?');\n // delete settings.id;\n\n return { ...nonEdges, ...edges };\n};\n"],"mappings":";;;;AAOA,wBACE,UACA,YACsB;CACtB,MAAMA,QAAiD;EACrD,QAAqB,SAAS,SAAsB,YAAY,SAAS,QAAqB,WAAW;EACzG,qBAAqB,SAAS,sBAAsB,YAAY,SAAS,qBAAqB,WAAW;;CAE3G,MAAM,WAAW,oBAAoB,UAAU;AAE/C,OAAM,IAAI,MAAM"}
1
+ {"version":3,"file":"settings.js","names":["edges: SerializedEdges<Types.divisionSettings>"],"sources":["../../../src/core/to/settings.ts"],"sourcesContent":["import type { BaseOptions } from '../../common/types';\nimport type { Types } from '../types';\nimport { getVertexId } from '../util';\nimport type { OutTypes } from './schedules';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport { internalKeysOmitted } from './util';\n\nexport default (\n settings: Types.mixed.divisionSettings,\n options: BaseOptions\n): OutTypes.settings => {\n const edges: SerializedEdges<Types.divisionSettings> = {\n period: settings.period ? getVertexId(settings.period, options) : undefined,\n defaultRootInterval: settings.defaultRootInterval ? getVertexId(settings.defaultRootInterval, options) : undefined,\n } satisfies SerializedEdgesShape<Types.divisionSettings>;\n const nonEdges = internalKeysOmitted(settings, edges);\n\n return { ...nonEdges, ...edges };\n};\n"],"mappings":";;;;AAOA,wBACE,UACA,YACsB;CACtB,MAAMA,QAAiD;EACrD,QAAqB,SAAS,SAAsB,YAAY,SAAS,QAAqB,WAAW;EACzG,qBAAqB,SAAS,sBAAsB,YAAY,SAAS,qBAAqB,WAAW;;CAE3G,MAAM,WAAW,oBAAoB,UAAU;AAE/C,QAAO;EAAE,GAAG;EAAU,GAAG"}
@@ -24,7 +24,7 @@ type Exception = Vertex & {
24
24
  type?: 'absence' | 'calendar';
25
25
  action?: 'cancel' | 'remove' | 'reschedule' | 'add' | 'substitute';
26
26
  handleStatus?: ExceptionStatus;
27
- exception?: _Exception & {
27
+ exception?: Partial<_Exception> & {
28
28
  include?: boolean;
29
29
  start?: DateType;
30
30
  end?: DateType;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Types as Types$14 } from "./Skola24/txt/types/index.js";
1
+ import { Types as Types$15 } from "./Skola24/txt/types/index.js";
2
2
  import { Types as Types$2 } from "./core/types/index.js";
3
3
  import { CoreMap } from "./core/index.js";
4
- import { Types as Types$13 } from "./Skola24/mdb/types/index.js";
4
+ import { Types as Types$14 } from "./Skola24/mdb/types/index.js";
5
5
  import { Types as Types$3 } from "./Excel/v1/types/index.js";
6
6
  import { Types as Types$4 } from "./Excel/v2/types/index.js";
7
- import { Types as Types$10 } from "./SchoolSoft/file/types/index.js";
8
- import { Types as Types$9 } from "./SchoolSoft/api/types/index.js";
7
+ import { Types as Types$11 } from "./SchoolSoft/file/types/index.js";
8
+ import { Types as Types$10 } from "./SchoolSoft/api/types/index.js";
9
9
  import { SchoolSoftMap } from "./SchoolSoft/index.js";
10
10
  import { Types as Types$7 } from "./PlanDigital/types/index.js";
11
11
  import { PlanDigitalMap } from "./PlanDigital/index.js";
@@ -21,13 +21,15 @@ import { identify } from "./identify/index.js";
21
21
  import { Types as Types$6 } from "./InfoMentor/types/index.js";
22
22
  import { InfoMentorMap } from "./InfoMentor/index.js";
23
23
  import { Skola24Map } from "./Skola24/index.js";
24
- import { Types as Types$12 } from "./sdui/types/index.js";
24
+ import { Types as Types$13 } from "./sdui/types/index.js";
25
25
  import { SduiMap } from "./sdui/index.js";
26
+ import { Types as Types$9 } from "./SS12000/types/index.js";
27
+ import { SS12000Map } from "./SS12000/index.js";
26
28
  import { vKlassMap } from "./vKlass/index.js";
27
29
  import { ExcelMap } from "./Excel/index.js";
28
- import { Types as Types$11 } from "./Schoolity/txt/types/index.js";
30
+ import { Types as Types$12 } from "./Schoolity/txt/types/index.js";
29
31
  import { SchoolityMap } from "./Schoolity/index.js";
30
32
  import { QuiculumMap } from "./Quiculum/index.js";
31
33
  import { Types } from "./Additio/types/index.js";
32
34
  import { AdditioMap } from "./Additio/index.js";
33
- export { AdditioMap, Types as AdditioTypes, AdmentumMap, Types$1 as AdmentumTypes, CoreMap, Types$2 as CoreTypes, ExcelMap, Types$3 as ExcelV1Types, Types$4 as ExcelV2Types, IdentifiedMaps, IdunSoftMap, Types$5 as IdunSoftTypes, InfoMentorMap, Types$6 as InfoMentorTypes, MapInstance, MapName, PlanDigitalMap, Types$7 as PlanDigitalTypes, QuiculumMap, RSMap, Types$8 as RSTypes, Types$9 as SchoolSoftApiTypes, Types$10 as SchoolSoftFileTypes, SchoolSoftMap, SchoolityMap, Types$11 as SchoolityTXTTypes, SduiMap, Types$12 as SduiTypes, Types$13 as Skola24MDBTypes, Skola24Map, Types$14 as Skola24TXTTypes, identify, maps, vKlassMap };
35
+ export { AdditioMap, Types as AdditioTypes, AdmentumMap, Types$1 as AdmentumTypes, CoreMap, Types$2 as CoreTypes, ExcelMap, Types$3 as ExcelV1Types, Types$4 as ExcelV2Types, IdentifiedMaps, IdunSoftMap, Types$5 as IdunSoftTypes, InfoMentorMap, Types$6 as InfoMentorTypes, MapInstance, MapName, PlanDigitalMap, Types$7 as PlanDigitalTypes, QuiculumMap, RSMap, Types$8 as RSTypes, SS12000Map, Types$9 as SS12000Types, Types$10 as SchoolSoftApiTypes, Types$11 as SchoolSoftFileTypes, SchoolSoftMap, SchoolityMap, Types$12 as SchoolityTXTTypes, SduiMap, Types$13 as SduiTypes, Types$14 as Skola24MDBTypes, Skola24Map, Types$15 as Skola24TXTTypes, identify, maps, vKlassMap };
package/dist/index.js CHANGED
@@ -10,9 +10,10 @@ import { maps } from "./identify/constants/index.js";
10
10
  import { identify } from "./identify/index.js";
11
11
  import { InfoMentorMap } from "./InfoMentor/index.js";
12
12
  import { SduiMap } from "./sdui/index.js";
13
+ import { SS12000Map } from "./SS12000/index.js";
13
14
  import { vKlassMap } from "./vKlass/index.js";
14
15
  import { SchoolityMap } from "./Schoolity/index.js";
15
16
  import { QuiculumMap } from "./Quiculum/index.js";
16
17
  import { AdditioMap } from "./Additio/index.js";
17
18
 
18
- export { AdditioMap, AdmentumMap, CoreMap, ExcelMap, IdunSoftMap, InfoMentorMap, PlanDigitalMap, QuiculumMap, RSMap, SchoolSoftMap, SchoolityMap, SduiMap, Skola24Map, identify, maps, vKlassMap };
19
+ export { AdditioMap, AdmentumMap, CoreMap, ExcelMap, IdunSoftMap, InfoMentorMap, PlanDigitalMap, QuiculumMap, RSMap, SS12000Map, SchoolSoftMap, SchoolityMap, SduiMap, Skola24Map, identify, maps, vKlassMap };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
3
  "description": "",
4
- "version": "4.0.1",
4
+ "version": "4.0.3",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",