@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.
- package/dist/Excel/v1/from/index.js +2 -2
- package/dist/Excel/v1/from/index.js.map +1 -1
- package/dist/Excel/v2/from/index.js +2 -2
- package/dist/Excel/v2/from/index.js.map +1 -1
- package/dist/InfoMentor/to/schedules.js +2 -2
- package/dist/InfoMentor/to/schedules.js.map +1 -1
- package/dist/PlanDigital/index.d.ts +28 -28
- package/dist/RS/make-connected.js +2 -2
- package/dist/RS/make-connected.js.map +1 -1
- package/dist/SS12000/from/activities.js +36 -0
- package/dist/SS12000/from/activities.js.map +1 -0
- package/dist/SS12000/from/calendar-events.js +20 -0
- package/dist/SS12000/from/calendar-events.js.map +1 -0
- package/dist/SS12000/from/duties.js +21 -0
- package/dist/SS12000/from/duties.js.map +1 -0
- package/dist/SS12000/from/groups.js +23 -0
- package/dist/SS12000/from/groups.js.map +1 -0
- package/dist/SS12000/from/index.js +24 -0
- package/dist/SS12000/from/index.js.map +1 -0
- package/dist/SS12000/from/persons.js +43 -0
- package/dist/SS12000/from/persons.js.map +1 -0
- package/dist/SS12000/from/resources.js +9 -0
- package/dist/SS12000/from/resources.js.map +1 -0
- package/dist/SS12000/from/rooms.js +18 -0
- package/dist/SS12000/from/rooms.js.map +1 -0
- package/dist/SS12000/from/syllabuses.js +21 -0
- package/dist/SS12000/from/syllabuses.js.map +1 -0
- package/dist/SS12000/index.d.ts +36 -0
- package/dist/SS12000/index.js +12 -0
- package/dist/SS12000/index.js.map +1 -0
- package/dist/SS12000/to/activities.js +63 -0
- package/dist/SS12000/to/activities.js.map +1 -0
- package/dist/SS12000/to/calendar-events.js +53 -0
- package/dist/SS12000/to/calendar-events.js.map +1 -0
- package/dist/SS12000/to/common.js +25 -0
- package/dist/SS12000/to/common.js.map +1 -0
- package/dist/SS12000/to/duties.js +45 -0
- package/dist/SS12000/to/duties.js.map +1 -0
- package/dist/SS12000/to/groups.js +47 -0
- package/dist/SS12000/to/groups.js.map +1 -0
- package/dist/SS12000/to/index.d.ts +58 -0
- package/dist/SS12000/to/index.js +24 -0
- package/dist/SS12000/to/index.js.map +1 -0
- package/dist/SS12000/to/persons.js +40 -0
- package/dist/SS12000/to/persons.js.map +1 -0
- package/dist/SS12000/to/resources.js +27 -0
- package/dist/SS12000/to/resources.js.map +1 -0
- package/dist/SS12000/to/rooms.js +32 -0
- package/dist/SS12000/to/rooms.js.map +1 -0
- package/dist/SS12000/to/syllabuses.js +34 -0
- package/dist/SS12000/to/syllabuses.js.map +1 -0
- package/dist/SS12000/types/activities.d.ts +41 -0
- package/dist/SS12000/types/calendar-events.d.ts +23 -0
- package/dist/SS12000/types/codes.d.ts +9 -0
- package/dist/SS12000/types/duties.d.ts +23 -0
- package/dist/SS12000/types/duty-assignments.d.ts +13 -0
- package/dist/SS12000/types/groups.d.ts +23 -0
- package/dist/SS12000/types/index.d.ts +21 -0
- package/dist/SS12000/types/organisation.d.ts +20 -0
- package/dist/SS12000/types/persons.d.ts +30 -0
- package/dist/SS12000/types/resources.d.ts +13 -0
- package/dist/SS12000/types/rooms.d.ts +17 -0
- package/dist/SS12000/types/syllabus.d.ts +19 -0
- package/dist/core/to/exceptions.js +5 -3
- package/dist/core/to/exceptions.js.map +1 -1
- package/dist/core/to/groups.js +4 -1
- package/dist/core/to/groups.js.map +1 -1
- package/dist/core/to/locations.js +4 -1
- package/dist/core/to/locations.js.map +1 -1
- package/dist/core/to/settings.js +4 -1
- package/dist/core/to/settings.js.map +1 -1
- package/dist/core/types/exceptions.d.ts +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.js +2 -1
- 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
|
|
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
|
-
|
|
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
|
|
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"}
|
package/dist/core/to/settings.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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$
|
|
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$
|
|
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$
|
|
8
|
-
import { Types as Types$
|
|
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$
|
|
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$
|
|
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
|
|
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 };
|