@royalschedule/maps 4.0.12 → 4.0.13

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.
@@ -1,6 +1,6 @@
1
1
  import { Types } from "../../core/types/index.js";
2
2
  import { Types as Types$1 } from "../types/index.js";
3
- import * as xlsx1 from "xlsx";
3
+ import * as xlsx0 from "xlsx";
4
4
 
5
5
  //#region src/Additio/to/index.d.ts
6
6
  declare class export_default {
@@ -14,7 +14,7 @@ declare class export_default {
14
14
  courses: Types.mixed.course[];
15
15
  events: Types.mixed.event[];
16
16
  lockedTimes: Types.mixed.lockedTime[];
17
- }, _options?: Types$1.options) => xlsx1.WorkBook;
17
+ }, _options?: Types$1.options) => xlsx0.WorkBook;
18
18
  }
19
19
  //#endregion
20
20
  export { export_default };
@@ -15,55 +15,55 @@ declare class PlanDigitalMap {
15
15
  groups?: {
16
16
  exceptions?: string[] | undefined;
17
17
  lockedTimes?: string[] | undefined;
18
+ ids?: ID | undefined;
18
19
  createdAt?: DateType | undefined;
19
20
  updatedAt?: DateType | undefined;
20
21
  lastModifiedBy?: unknown;
21
- ids?: ID | undefined;
22
22
  belongsTo?: string | undefined;
23
23
  rank?: number | undefined;
24
- days?: Day[] | undefined;
25
24
  displayName?: string | undefined;
25
+ lunch?: string[] | undefined;
26
26
  intervals?: AllowedInterval[] | undefined;
27
+ days?: Day[] | undefined;
27
28
  minBreakLength?: BreakLength | undefined;
29
+ tags?: Tag[] | undefined;
28
30
  maximumScheduleSpan?: MaximumScheduleSpan | undefined;
29
31
  forbidOverlappingEvents?: boolean | undefined;
30
32
  disableDayLengthPunishment?: boolean | undefined;
31
33
  weight?: number | undefined;
34
+ rootInterval?: string | undefined;
35
+ maxNumWorkingHours?: number | boolean | undefined;
36
+ maxNumDailyWorkingHours?: number | number[] | boolean | undefined;
32
37
  species?: "class" | undefined;
33
38
  parentGroups?: string[] | undefined;
34
39
  subGroups?: string[] | undefined;
35
- lunch?: string[] | undefined;
36
40
  members?: string[] | undefined;
37
- rootInterval?: string | undefined;
38
- tags?: Tag[] | undefined;
39
- maxNumWorkingHours?: number | boolean | undefined;
40
- maxNumDailyWorkingHours?: number | number[] | boolean | undefined;
41
41
  }[];
42
42
  teachers?: {
43
43
  exceptions?: string[] | undefined;
44
44
  lockedTimes?: string[] | undefined;
45
+ ids?: ID | undefined;
45
46
  createdAt?: DateType | undefined;
46
47
  updatedAt?: DateType | undefined;
47
48
  lastModifiedBy?: unknown;
48
- ids?: ID | undefined;
49
49
  belongsTo?: string | undefined;
50
50
  rank?: number | undefined;
51
- days?: Day[] | undefined;
52
51
  displayName?: string | undefined;
52
+ lunch?: string[] | undefined;
53
53
  intervals?: AllowedInterval[] | undefined;
54
+ days?: Day[] | undefined;
54
55
  minBreakLength?: BreakLength | undefined;
56
+ tags?: Tag[] | undefined;
57
+ plannedScheduledDuration?: PlannedScheduledDuration | undefined;
55
58
  maximumScheduleSpan?: MaximumScheduleSpan | undefined;
56
59
  forbidOverlappingEvents?: boolean | undefined;
57
60
  disableDayLengthPunishment?: boolean | undefined;
58
61
  weight?: number | undefined;
59
- lunch?: string[] | undefined;
62
+ person?: string | undefined;
60
63
  rootInterval?: string | undefined;
61
- tags?: Tag[] | undefined;
64
+ signature?: string | undefined;
62
65
  maxNumWorkingHours?: number | boolean | undefined;
63
66
  maxNumDailyWorkingHours?: number | number[] | boolean | undefined;
64
- plannedScheduledDuration?: PlannedScheduledDuration | undefined;
65
- person?: string | undefined;
66
- signature?: string | undefined;
67
67
  }[];
68
68
  courses?: {
69
69
  exceptions?: string[] | undefined;
@@ -72,26 +72,26 @@ declare class PlanDigitalMap {
72
72
  locations?: AvailableLocation<string>[] | undefined;
73
73
  events?: string[] | undefined;
74
74
  lockedTimes?: string[] | undefined;
75
+ ids?: ID | undefined;
75
76
  createdAt?: DateType | undefined;
76
77
  updatedAt?: DateType | undefined;
77
78
  lastModifiedBy?: unknown;
78
- ids?: ID | undefined;
79
79
  belongsTo?: string | undefined;
80
- type?: string | undefined;
81
- days?: Day[] | undefined;
82
- weeks?: number[] | undefined;
83
80
  displayName?: string | undefined;
84
- period?: string | undefined;
85
81
  intervals?: AllowedInterval[] | undefined;
82
+ days?: Day[] | undefined;
86
83
  minBreakLength?: BreakLength | undefined;
87
- weight?: number | undefined;
88
84
  tags?: Tag[] | undefined;
89
- color?: string | undefined;
85
+ weeks?: number[] | undefined;
86
+ weight?: number | undefined;
87
+ period?: string | undefined;
90
88
  participants?: PersonReference<string>[] | undefined;
91
89
  density?: number | undefined;
92
90
  subject?: string | undefined;
91
+ color?: string | undefined;
93
92
  eventDurationVariance?: number | undefined;
94
93
  totalTime?: string | undefined;
94
+ type?: string | undefined;
95
95
  comment?: string | undefined;
96
96
  startDate?: DateType | undefined;
97
97
  endDate?: DateType | undefined;
@@ -1,12 +1,12 @@
1
1
  import { BaseOptions } from "../../../common/types.js";
2
2
  import { Types } from "../../../core/types/index.js";
3
- import * as xlsx0 from "xlsx";
3
+ import * as xlsx1 from "xlsx";
4
4
 
5
5
  //#region src/SchoolSoft/file/to/index.d.ts
6
6
  declare class export_default {
7
7
  static schedules: (schedule: Types.mixed.schedule & {
8
8
  division?: Types.mixed.division;
9
- }, options?: BaseOptions) => xlsx0.WorkBook;
9
+ }, options?: BaseOptions) => xlsx1.WorkBook;
10
10
  }
11
11
  //#endregion
12
12
  export { export_default };
@@ -0,0 +1,12 @@
1
+ //#region src/core/from/configurations.ts
2
+ var configurations_default = (configurations) => {
3
+ if (configurations.length != new Set(configurations.map((x) => x.id)).size) throw new Error("(Core::From::V2::Configurations) Configuration array have two or more configurations with the same ID");
4
+ return configurations.map((x) => {
5
+ if (!x.id) throw new Error("(Core::From::V2::Configurations) Configuration id is undefined");
6
+ return { ...x };
7
+ });
8
+ };
9
+
10
+ //#endregion
11
+ export { configurations_default as default };
12
+ //# sourceMappingURL=configurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurations.js","names":[],"sources":["../../../src/core/from/configurations.ts"],"sourcesContent":["import type transform from '../to/configurations';\n\nexport default (configurations: ReturnType<typeof transform>) => {\n if (configurations.length != new Set(configurations.map(x => x.id)).size)\n throw new Error('(Core::From::V2::Configurations) Configuration array have two or more configurations with the same ID');\n\n return configurations\n .map(x => {\n if (!x.id)\n throw new Error('(Core::From::V2::Configurations) Configuration id is undefined');\n\n return { ...x };\n });\n};\n"],"mappings":";AAEA,8BAAgB,mBAAiD;AAC/D,KAAI,eAAe,UAAU,IAAI,IAAI,eAAe,KAAI,MAAK,EAAE,KAAK,KAClE,OAAM,IAAI,MAAM;AAElB,QAAO,eACJ,KAAI,MAAK;AACR,MAAI,CAAC,EAAE,GACL,OAAM,IAAI,MAAM;AAElB,SAAO,EAAE,GAAG"}
@@ -10,6 +10,7 @@ import locked_times_default from "./locked-times.js";
10
10
  import root_intervals_default from "./root-intervals.js";
11
11
  import events_default from "./events.js";
12
12
  import syllabuses_default from "./syllabuses.js";
13
+ import configurations_default from "./configurations.js";
13
14
 
14
15
  //#region src/core/from/schedules.ts
15
16
  function schedules_default(schedule) {
@@ -26,7 +27,8 @@ function schedules_default(schedule) {
26
27
  ...schedule.lockedTimes && { lockedTimes: locked_times_default(schedule.lockedTimes) },
27
28
  ...schedule.rootIntervals && { rootIntervals: root_intervals_default(schedule.rootIntervals) },
28
29
  ...schedule.exceptions && { exceptions: exceptions_default(schedule.exceptions) },
29
- ...schedule.syllabuses && { syllabuses: syllabuses_default(schedule.syllabuses) }
30
+ ...schedule.syllabuses && { syllabuses: syllabuses_default(schedule.syllabuses) },
31
+ ...schedule.configurations && { configurations: configurations_default(schedule.configurations) }
30
32
  };
31
33
  }
32
34
 
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","names":["_periods","_groups","_teachers","_persons","_locations","_courses","_events","_overlapGroups","_lockedTimes","_rootIntervals","_exceptions","_syllabuses"],"sources":["../../../src/core/from/schedules.ts"],"sourcesContent":["import _exceptions from './exceptions';\nimport _periods from './periods';\nimport _locations from './locations';\nimport _teachers from './teachers';\nimport _groups from './groups';\nimport _persons from './persons';\nimport _courses from './courses';\nimport _overlapGroups from './overlap-groups';\nimport _lockedTimes from './locked-times';\nimport _rootIntervals from './root-intervals';\nimport _events from './events';\nimport _syllabuses from './syllabuses';\nimport type transform from '../to/schedules';\n\nexport default function (schedule: ReturnType<typeof transform>): Omit<ReturnType<typeof transform>, 'meta'> {\n return {\n ...schedule.settings && { settings: schedule.settings },\n ...schedule.periods && { periods: _periods (schedule.periods ) },\n ...schedule.groups && { groups: _groups (schedule.groups ) },\n ...schedule.teachers && { teachers: _teachers (schedule.teachers ) },\n ...schedule.persons && { persons: _persons (schedule.persons ) },\n ...schedule.locations && { locations: _locations (schedule.locations ) },\n ...schedule.courses && { courses: _courses (schedule.courses ) },\n ...schedule.events && { events: _events (schedule.events ) },\n ...schedule.overlapGroups && { overlapGroups: _overlapGroups(schedule.overlapGroups) },\n ...schedule.lockedTimes && { lockedTimes: _lockedTimes (schedule.lockedTimes ) },\n ...schedule.rootIntervals && { rootIntervals: _rootIntervals(schedule.rootIntervals) },\n ...schedule.exceptions && { exceptions: _exceptions (schedule.exceptions ) },\n ...schedule.syllabuses && { syllabuses: _syllabuses (schedule.syllabuses ) }\n };\n}"],"mappings":";;;;;;;;;;;;;;AAcA,2BAAyB,UAAoF;AAC3G,QAAO;EACL,GAAG,SAAS,YAAiB,EAAE,UAA8B,SAAS;EACtE,GAAG,SAAS,WAAiB,EAAE,SAAeA,gBAAe,SAAS;EACtE,GAAG,SAAS,UAAiB,EAAE,QAAeC,eAAe,SAAS;EACtE,GAAG,SAAS,YAAiB,EAAE,UAAeC,iBAAe,SAAS;EACtE,GAAG,SAAS,WAAiB,EAAE,SAAeC,gBAAe,SAAS;EACtE,GAAG,SAAS,aAAiB,EAAE,WAAeC,kBAAe,SAAS;EACtE,GAAG,SAAS,WAAiB,EAAE,SAAeC,gBAAe,SAAS;EACtE,GAAG,SAAS,UAAiB,EAAE,QAAeC,eAAe,SAAS;EACtE,GAAG,SAAS,iBAAiB,EAAE,eAAeC,uBAAe,SAAS;EACtE,GAAG,SAAS,eAAiB,EAAE,aAAeC,qBAAe,SAAS;EACtE,GAAG,SAAS,iBAAiB,EAAE,eAAeC,uBAAe,SAAS;EACtE,GAAG,SAAS,cAAiB,EAAE,YAAeC,mBAAe,SAAS;EACtE,GAAG,SAAS,cAAiB,EAAE,YAAeC,mBAAe,SAAS"}
1
+ {"version":3,"file":"schedules.js","names":["_periods","_groups","_teachers","_persons","_locations","_courses","_events","_overlapGroups","_lockedTimes","_rootIntervals","_exceptions","_syllabuses","_configurations"],"sources":["../../../src/core/from/schedules.ts"],"sourcesContent":["import _exceptions from './exceptions';\nimport _periods from './periods';\nimport _locations from './locations';\nimport _teachers from './teachers';\nimport _groups from './groups';\nimport _persons from './persons';\nimport _courses from './courses';\nimport _overlapGroups from './overlap-groups';\nimport _lockedTimes from './locked-times';\nimport _rootIntervals from './root-intervals';\nimport _events from './events';\nimport _syllabuses from './syllabuses';\nimport _configurations from './configurations';\nimport type transform from '../to/schedules';\n\nexport default function (schedule: ReturnType<typeof transform>): Omit<ReturnType<typeof transform>, 'meta'> {\n return {\n ...schedule.settings && { settings: schedule.settings },\n ...schedule.periods && { periods: _periods (schedule.periods ) },\n ...schedule.groups && { groups: _groups (schedule.groups ) },\n ...schedule.teachers && { teachers: _teachers (schedule.teachers ) },\n ...schedule.persons && { persons: _persons (schedule.persons ) },\n ...schedule.locations && { locations: _locations (schedule.locations ) },\n ...schedule.courses && { courses: _courses (schedule.courses ) },\n ...schedule.events && { events: _events (schedule.events ) },\n ...schedule.overlapGroups && { overlapGroups: _overlapGroups (schedule.overlapGroups ) },\n ...schedule.lockedTimes && { lockedTimes: _lockedTimes (schedule.lockedTimes ) },\n ...schedule.rootIntervals && { rootIntervals: _rootIntervals (schedule.rootIntervals ) },\n ...schedule.exceptions && { exceptions: _exceptions (schedule.exceptions ) },\n ...schedule.syllabuses && { syllabuses: _syllabuses (schedule.syllabuses ) },\n ...schedule.configurations && { configurations: _configurations(schedule.configurations) }\n };\n}"],"mappings":";;;;;;;;;;;;;;;AAeA,2BAAyB,UAAoF;AAC3G,QAAO;EACL,GAAG,SAAS,YAAkB,EAAE,UAA+B,SAAS;EACxE,GAAG,SAAS,WAAkB,EAAE,SAAgBA,gBAAgB,SAAS;EACzE,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS;EACzE,GAAG,SAAS,YAAkB,EAAE,UAAgBC,iBAAgB,SAAS;EACzE,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS;EACzE,GAAG,SAAS,aAAkB,EAAE,WAAgBC,kBAAgB,SAAS;EACzE,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS;EACzE,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS;EACzE,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS;EACzE,GAAG,SAAS,eAAkB,EAAE,aAAgBC,qBAAgB,SAAS;EACzE,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS;EACzE,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS;EACzE,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS;EACzE,GAAG,SAAS,kBAAkB,EAAE,gBAAgBC,uBAAgB,SAAS"}
@@ -0,0 +1,17 @@
1
+ import { internalKeysOmitted } from "./util.js";
2
+
3
+ //#region src/core/to/configurations.ts
4
+ var configurations_default = (configurations, _options) => {
5
+ return configurations.map((x) => {
6
+ const edges = {};
7
+ const nonEdges = internalKeysOmitted(x, edges);
8
+ return {
9
+ ...nonEdges,
10
+ ...edges
11
+ };
12
+ });
13
+ };
14
+
15
+ //#endregion
16
+ export { configurations_default as default };
17
+ //# sourceMappingURL=configurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurations.js","names":["edges: SerializedEdges<Types.period>"],"sources":["../../../src/core/to/configurations.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { internalKeysOmitted } from './util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n configurations: Types.mixed.configuration[],\n _options: BaseOptions\n): OutTypes.configuration[] => {\n return configurations\n .map(x => {\n const edges: SerializedEdges<Types.period> = {\n } satisfies SerializedEdgesShape<Types.period>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;AAMA,8BACE,gBACA,aAC6B;AAC7B,QAAO,eACJ,KAAI,MAAK;EACR,MAAMA,QAAuC;EAE7C,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
@@ -7,7 +7,6 @@ var courses_default = (courses, options) => {
7
7
  const edges = {
8
8
  period: x.period ? getVertexId(x.period, options) : void 0,
9
9
  overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : void 0,
10
- overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : void 0,
11
10
  syllabus: x.syllabus ? getVertexId(x.syllabus, options) : void 0,
12
11
  events: x.events?.map((x$1) => getVertexId(x$1, options)),
13
12
  lockedTimes: x.lockedTimes?.map((x$1) => getVertexId(x$1, options)),
@@ -1 +1 @@
1
- {"version":3,"file":"courses.js","names":["edges: SerializedEdges<Types.course>","x"],"sources":["../../../src/core/to/courses.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\n\nexport default (\n courses: Types.mixed.course[],\n options: BaseOptions\n): OutTypes.course[] => {\n return courses\n .map(x => {\n const edges: SerializedEdges<Types.course> = {\n period: x.period ? getVertexId(x.period, options) : undefined,\n overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : undefined,\n overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : undefined,\n syllabus: x.syllabus ? getVertexId(x.syllabus, options) : undefined,\n events: x.events ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n teachers: x.teachers ?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n participants: x.participants?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n groups: x.groups ?.map(x => ({ ...x, to: getVertexId(x.to, options), exclude: x.exclude?.map(y => getVertexId(y, options)) })),\n locations: x.locations ?.map(x => ({ ...x, locations: [getVertexId(x.locations[0], options)] as [string] })),\n } satisfies SerializedEdgesShape<Types.course>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAQA,uBACE,SACA,YACsB;AACtB,QAAO,QACJ,KAAI,MAAK;EACR,MAAMA,QAAuC;GAC3C,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAC5E,cAAgB,EAAE,eAAiB,YAAY,EAAE,cAAgB,WAAW;GAC5E,gBAAgB,EAAE,iBAAiB,YAAY,EAAE,gBAAgB,WAAW;GAC5E,UAAgB,EAAE,WAAiB,YAAY,EAAE,UAAgB,WAAW;GAC5E,QAAgB,EAAE,QAAc,KAAI,QAAK,YAAYC,KAAG;GACxD,aAAgB,EAAE,aAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,YAAgB,EAAE,YAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,UAAgB,EAAE,UAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,cAAgB,EAAE,cAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,QAAgB,EAAE,QAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;IAAU,SAASA,IAAE,SAAS,KAAI,MAAK,YAAY,GAAG;;GAC9H,WAAgB,EAAE,WAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,WAAW,CAAC,YAAYA,IAAE,UAAU,IAAI;;;EAE5F,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
1
+ {"version":3,"file":"courses.js","names":["edges: SerializedEdges<Types.course>","x"],"sources":["../../../src/core/to/courses.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\n\nexport default (\n courses: Types.mixed.course[],\n options: BaseOptions\n): OutTypes.course[] => {\n return courses\n .map(x => {\n const edges: SerializedEdges<Types.course> = {\n period: x.period ? getVertexId(x.period, options) : undefined,\n overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : undefined,\n // overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : undefined,\n syllabus: x.syllabus ? getVertexId(x.syllabus, options) : undefined,\n events: x.events ?.map(x => getVertexId(x, options)),\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n teachers: x.teachers ?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n participants: x.participants?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n groups: x.groups ?.map(x => ({ ...x, to: getVertexId(x.to, options), exclude: x.exclude?.map(y => getVertexId(y, options)) })),\n locations: x.locations ?.map(x => ({ ...x, locations: [getVertexId(x.locations[0], options)] as [string] })),\n } satisfies SerializedEdgesShape<Types.course>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAQA,uBACE,SACA,YACsB;AACtB,QAAO,QACJ,KAAI,MAAK;EACR,MAAMA,QAAuC;GAC3C,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAC5E,cAAgB,EAAE,eAAiB,YAAY,EAAE,cAAgB,WAAW;GAE5E,UAAgB,EAAE,WAAiB,YAAY,EAAE,UAAgB,WAAW;GAC5E,QAAgB,EAAE,QAAc,KAAI,QAAK,YAAYC,KAAG;GACxD,aAAgB,EAAE,aAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,YAAgB,EAAE,YAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,UAAgB,EAAE,UAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,cAAgB,EAAE,cAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,QAAgB,EAAE,QAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;IAAU,SAASA,IAAE,SAAS,KAAI,MAAK,YAAY,GAAG;;GAC9H,WAAgB,EAAE,WAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,WAAW,CAAC,YAAYA,IAAE,UAAU,IAAI;;;EAE5F,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
@@ -6,7 +6,6 @@ var events_default = (events, options) => {
6
6
  return events.map((x) => {
7
7
  const edges = {
8
8
  period: x.period ? getVertexId(x.period, options) : void 0,
9
- overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : void 0,
10
9
  overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : void 0,
11
10
  course: x.course ? getVertexId(x.course, options) : void 0,
12
11
  lockedTimes: x.lockedTimes?.map((x$1) => getVertexId(x$1, options)),
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","names":["edges: SerializedEdges<Types.event>","x"],"sources":["../../../src/core/to/events.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport { internalKeysOmitted } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n events: Types.mixed.event[],\n options: BaseOptions\n): OutTypes.event[] => {\n return events\n .map(x => {\n const edges: SerializedEdges<Types.event> = {\n period: x.period ? getVertexId(x.period, options) : undefined,\n overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : undefined,\n overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : undefined,\n course: x.course ? getVertexId(x.course, options) : undefined,\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n teachers: x.teachers ?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n participants: x.participants?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n groups: x.groups ?.map(x => ({ ...x, to: getVertexId(x.to, options), exclude: x.exclude?.map(y => getVertexId(y, options)) })),\n locations: x.locations ?.map(x => ({ ...x, locations: [getVertexId(x.locations[0], options)] as [string] })),\n inLocations: x.inLocations ?.map(x => x ? getVertexId(x, options) : null)\n } satisfies SerializedEdgesShape<Types.event>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n\n"],"mappings":";;;;AAOA,sBACE,QACA,YACqB;AACrB,QAAO,OACJ,KAAI,MAAK;EACR,MAAMA,QAAsC;GAC1C,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAC5E,cAAgB,EAAE,eAAiB,YAAY,EAAE,cAAgB,WAAW;GAC5E,gBAAgB,EAAE,iBAAiB,YAAY,EAAE,gBAAgB,WAAW;GAC5E,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAC5E,aAAgB,EAAE,aAAc,KAAI,QAAK,YAAYC,KAAG;GACxD,YAAgB,EAAE,YAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,UAAgB,EAAE,UAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,cAAgB,EAAE,cAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,QAAgB,EAAE,QAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;IAAU,SAASA,IAAE,SAAS,KAAI,MAAK,YAAY,GAAG;;GAC9H,WAAgB,EAAE,WAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,WAAW,CAAC,YAAYA,IAAE,UAAU,IAAI;;GAC1F,aAAgB,EAAE,aAAc,KAAI,QAAKA,MAAI,YAAYA,KAAG,WAAW;;EAEzE,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
1
+ {"version":3,"file":"events.js","names":["edges: SerializedEdges<Types.event>","x"],"sources":["../../../src/core/to/events.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport type { SerializedEdges, SerializedEdgesShape } from './util';\nimport { internalKeysOmitted } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport default (\n events: Types.mixed.event[],\n options: BaseOptions\n): OutTypes.event[] => {\n return events\n .map(x => {\n const edges: SerializedEdges<Types.event> = {\n period: x.period ? getVertexId(x.period, options) : undefined,\n // overlapGroup: x.overlapGroup ? getVertexId(x.overlapGroup, options) : undefined,\n overlapSpecies: x.overlapSpecies ? getVertexId(x.overlapSpecies, options) : undefined,\n course: x.course ? getVertexId(x.course, options) : undefined,\n lockedTimes: x.lockedTimes ?.map(x => getVertexId(x, options)),\n exceptions: x.exceptions ?.map(x => getVertexId(x, options)),\n teachers: x.teachers ?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n participants: x.participants?.map(x => ({ ...x, to: getVertexId(x.to, options) })),\n groups: x.groups ?.map(x => ({ ...x, to: getVertexId(x.to, options), exclude: x.exclude?.map(y => getVertexId(y, options)) })),\n locations: x.locations ?.map(x => ({ ...x, locations: [getVertexId(x.locations[0], options)] as [string] })),\n inLocations: x.inLocations ?.map(x => x ? getVertexId(x, options) : null)\n } satisfies SerializedEdgesShape<Types.event>;\n const nonEdges = internalKeysOmitted(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n\n"],"mappings":";;;;AAOA,sBACE,QACA,YACqB;AACrB,QAAO,OACJ,KAAI,MAAK;EACR,MAAMA,QAAsC;GAC1C,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAE5E,gBAAgB,EAAE,iBAAiB,YAAY,EAAE,gBAAgB,WAAW;GAC5E,QAAgB,EAAE,SAAiB,YAAY,EAAE,QAAgB,WAAW;GAC5E,aAAgB,EAAE,aAAc,KAAI,QAAK,YAAYC,KAAG;GACxD,YAAgB,EAAE,YAAc,KAAI,QAAK,YAAYA,KAAG;GACxD,UAAgB,EAAE,UAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,cAAgB,EAAE,cAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;;GACxE,QAAgB,EAAE,QAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,IAAI,YAAYA,IAAE,IAAI;IAAU,SAASA,IAAE,SAAS,KAAI,MAAK,YAAY,GAAG;;GAC9H,WAAgB,EAAE,WAAc,KAAI,SAAM;IAAE,GAAGA;IAAG,WAAW,CAAC,YAAYA,IAAE,UAAU,IAAI;;GAC1F,aAAgB,EAAE,aAAc,KAAI,QAAKA,MAAI,YAAYA,KAAG,WAAW;;EAEzE,MAAM,WAAW,oBAAoB,GAAG;AAExC,SAAO;GAAE,GAAG;GAAU,GAAG"}
@@ -6,6 +6,7 @@ import { Types } from "../types/index.js";
6
6
  declare namespace OutTypes {
7
7
  type division = Omit<InternalKeysOmitted<Types.serialized.division>, InternalIdKey>;
8
8
  type settings = InternalKeysOmitted<Types.serialized.divisionSettings>;
9
+ type configuration = InternalKeysOmitted<Types.serialized.configuration>;
9
10
  type exception = InternalKeysOmitted<Types.serialized.exception>;
10
11
  type period = InternalKeysOmitted<Types.serialized.period>;
11
12
  type location = InternalKeysOmitted<Types.serialized.location>;
@@ -34,6 +35,7 @@ type Out = {
34
35
  overlapGroups?: OutTypes.overlapGroup[];
35
36
  rootIntervals?: OutTypes.rootInterval[];
36
37
  syllabuses?: OutTypes.syllabus[];
38
+ configurations?: OutTypes.configuration[];
37
39
  meta: {
38
40
  structure: string;
39
41
  };
@@ -12,6 +12,7 @@ import root_intervals_default from "./root-intervals.js";
12
12
  import settings_default from "./settings.js";
13
13
  import division_default from "./division.js";
14
14
  import syllabuses_default from "./syllabuses.js";
15
+ import configurations_default from "./configurations.js";
15
16
 
16
17
  //#region src/core/to/schedules.ts
17
18
  function schedules_default(schedule) {
@@ -31,7 +32,8 @@ function schedules_default(schedule) {
31
32
  ...schedule.lockedTimes && { lockedTimes: locked_times_default(schedule.lockedTimes, options) },
32
33
  ...schedule.overlapGroups && { overlapGroups: overlap_groups_default(schedule.overlapGroups, options) },
33
34
  ...schedule.rootIntervals && { rootIntervals: root_intervals_default(schedule.rootIntervals, options) },
34
- ...schedule.syllabuses && { syllabuses: syllabuses_default(schedule.syllabuses, options) }
35
+ ...schedule.syllabuses && { syllabuses: syllabuses_default(schedule.syllabuses, options) },
36
+ ...schedule.configurations && { configurations: configurations_default(schedule.configurations, options) }
35
37
  };
36
38
  }
37
39
 
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.js","names":["options: BaseOptions","_division","_settings","_exceptions","_periods","_locations","_teachers","_groups","_persons","_courses","_events","_lockedTimes","_overlapGroups","_rootIntervals","_syllabuses"],"sources":["../../../src/core/to/schedules.ts"],"sourcesContent":["import type { CoreTypes } from '../';\nimport _exceptions from './exceptions';\nimport _periods from './periods';\nimport _locations from './locations';\nimport _teachers from './teachers';\nimport _groups from './groups';\nimport _persons from './persons';\nimport _courses from './courses';\nimport _events from './events';\nimport _lockedTimes from './locked-times';\nimport _overlapGroups from './overlap-groups';\nimport _rootIntervals from './root-intervals';\nimport _settings from './settings';\nimport _division from './division';\nimport _syllabuses from './syllabuses';\nimport type { InternalIdKey } from '../types/common';\nimport type { InternalKeysOmitted } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport namespace OutTypes {\n export type division = Omit<InternalKeysOmitted<CoreTypes.serialized.division>, InternalIdKey>;\n export type settings = InternalKeysOmitted<CoreTypes.serialized.divisionSettings>;\n export type exception = InternalKeysOmitted<CoreTypes.serialized.exception >;\n export type period = InternalKeysOmitted<CoreTypes.serialized.period >;\n export type location = InternalKeysOmitted<CoreTypes.serialized.location >;\n export type teacher = InternalKeysOmitted<CoreTypes.serialized.teacher >;\n export type group = InternalKeysOmitted<CoreTypes.serialized.group >;\n export type person = InternalKeysOmitted<CoreTypes.serialized.person >;\n export type course = InternalKeysOmitted<CoreTypes.serialized.course >;\n export type event = InternalKeysOmitted<CoreTypes.serialized.event >;\n export type lockedTime = InternalKeysOmitted<CoreTypes.serialized.lockedTime >;\n export type overlapGroup = InternalKeysOmitted<CoreTypes.serialized.overlapGroup >;\n export type rootInterval = InternalKeysOmitted<CoreTypes.serialized.rootInterval >;\n export type syllabus = InternalKeysOmitted<CoreTypes.serialized.syllabus >;\n}\n\ntype Out = {\n division?: OutTypes.division;\n settings?: OutTypes.settings;\n exceptions?: OutTypes.exception[];\n periods?: OutTypes.period[];\n locations?: OutTypes.location[];\n teachers?: OutTypes.teacher[];\n groups?: OutTypes.group[];\n persons?: OutTypes.person[];\n courses?: OutTypes.course[];\n events?: OutTypes.event[];\n lockedTimes?: OutTypes.lockedTime[];\n overlapGroups?: OutTypes.overlapGroup[];\n rootIntervals?: OutTypes.rootInterval[];\n syllabuses?: OutTypes.syllabus[];\n\n meta: { structure: string };\n};\n\nexport default function (\n schedule: Partial<CoreTypes.mixed.schedule>\n): Out {\n const options: BaseOptions = {};\n\n return {\n meta: { structure: 'RS/core-2.0.0' },\n ...schedule.divisions && { division: _division (schedule.divisions, options) },\n ...schedule.settings && { settings: _settings (schedule.settings, options) },\n ...schedule.exceptions && { exceptions: _exceptions (schedule.exceptions, options) },\n ...schedule.periods && { periods: _periods (schedule.periods, options) },\n ...schedule.locations && { locations: _locations (schedule.locations, options) },\n ...schedule.teachers && { teachers: _teachers (schedule.teachers, options) },\n ...schedule.groups && { groups: _groups (schedule.groups, options) },\n ...schedule.persons && { persons: _persons (schedule.persons, options) },\n ...schedule.courses && { courses: _courses (schedule.courses, options) },\n ...schedule.events && { events: _events (schedule.events, options) },\n ...schedule.lockedTimes && { lockedTimes: _lockedTimes (schedule.lockedTimes, options) },\n ...schedule.overlapGroups && { overlapGroups: _overlapGroups(schedule.overlapGroups, options) },\n ...schedule.rootIntervals && { rootIntervals: _rootIntervals(schedule.rootIntervals, options) },\n ...schedule.syllabuses && { syllabuses: _syllabuses (schedule.syllabuses, options) },\n };\n}"],"mappings":";;;;;;;;;;;;;;;;AAuDA,2BACE,UACK;CACL,MAAMA,UAAuB;AAE7B,QAAO;EACL,MAAM,EAAE,WAAW;EACnB,GAAG,SAAS,aAAiB,EAAE,UAAeC,iBAAe,SAAS,WAAe;EACrF,GAAG,SAAS,YAAiB,EAAE,UAAeC,iBAAe,SAAS,UAAe;EACrF,GAAG,SAAS,cAAiB,EAAE,YAAeC,mBAAe,SAAS,YAAe;EACrF,GAAG,SAAS,WAAiB,EAAE,SAAeC,gBAAe,SAAS,SAAe;EACrF,GAAG,SAAS,aAAiB,EAAE,WAAeC,kBAAe,SAAS,WAAe;EACrF,GAAG,SAAS,YAAiB,EAAE,UAAeC,iBAAe,SAAS,UAAe;EACrF,GAAG,SAAS,UAAiB,EAAE,QAAeC,eAAe,SAAS,QAAe;EACrF,GAAG,SAAS,WAAiB,EAAE,SAAeC,gBAAe,SAAS,SAAe;EACrF,GAAG,SAAS,WAAiB,EAAE,SAAeC,gBAAe,SAAS,SAAe;EACrF,GAAG,SAAS,UAAiB,EAAE,QAAeC,eAAe,SAAS,QAAe;EACrF,GAAG,SAAS,eAAiB,EAAE,aAAeC,qBAAe,SAAS,aAAe;EACrF,GAAG,SAAS,iBAAiB,EAAE,eAAeC,uBAAe,SAAS,eAAe;EACrF,GAAG,SAAS,iBAAiB,EAAE,eAAeC,uBAAe,SAAS,eAAe;EACrF,GAAG,SAAS,cAAiB,EAAE,YAAeC,mBAAe,SAAS,YAAe"}
1
+ {"version":3,"file":"schedules.js","names":["options: BaseOptions","_division","_settings","_exceptions","_periods","_locations","_teachers","_groups","_persons","_courses","_events","_lockedTimes","_overlapGroups","_rootIntervals","_syllabuses","_configurations"],"sources":["../../../src/core/to/schedules.ts"],"sourcesContent":["import type { CoreTypes } from '../';\nimport _exceptions from './exceptions';\nimport _periods from './periods';\nimport _locations from './locations';\nimport _teachers from './teachers';\nimport _groups from './groups';\nimport _persons from './persons';\nimport _courses from './courses';\nimport _events from './events';\nimport _lockedTimes from './locked-times';\nimport _overlapGroups from './overlap-groups';\nimport _rootIntervals from './root-intervals';\nimport _settings from './settings';\nimport _division from './division';\nimport _syllabuses from './syllabuses';\nimport _configurations from './configurations';\nimport type { InternalIdKey } from '../types/common';\nimport type { InternalKeysOmitted } from './util';\nimport type { BaseOptions } from '../../common/types';\n\nexport namespace OutTypes {\n export type division = Omit<InternalKeysOmitted<CoreTypes.serialized.division>, InternalIdKey>;\n export type settings = InternalKeysOmitted<CoreTypes.serialized.divisionSettings>;\n export type configuration = InternalKeysOmitted<CoreTypes.serialized.configuration >;\n export type exception = InternalKeysOmitted<CoreTypes.serialized.exception >;\n export type period = InternalKeysOmitted<CoreTypes.serialized.period >;\n export type location = InternalKeysOmitted<CoreTypes.serialized.location >;\n export type teacher = InternalKeysOmitted<CoreTypes.serialized.teacher >;\n export type group = InternalKeysOmitted<CoreTypes.serialized.group >;\n export type person = InternalKeysOmitted<CoreTypes.serialized.person >;\n export type course = InternalKeysOmitted<CoreTypes.serialized.course >;\n export type event = InternalKeysOmitted<CoreTypes.serialized.event >;\n export type lockedTime = InternalKeysOmitted<CoreTypes.serialized.lockedTime >;\n export type overlapGroup = InternalKeysOmitted<CoreTypes.serialized.overlapGroup >;\n export type rootInterval = InternalKeysOmitted<CoreTypes.serialized.rootInterval >;\n export type syllabus = InternalKeysOmitted<CoreTypes.serialized.syllabus >;\n}\n\ntype Out = {\n division?: OutTypes.division;\n settings?: OutTypes.settings;\n exceptions?: OutTypes.exception[];\n periods?: OutTypes.period[];\n locations?: OutTypes.location[];\n teachers?: OutTypes.teacher[];\n groups?: OutTypes.group[];\n persons?: OutTypes.person[];\n courses?: OutTypes.course[];\n events?: OutTypes.event[];\n lockedTimes?: OutTypes.lockedTime[];\n overlapGroups?: OutTypes.overlapGroup[];\n rootIntervals?: OutTypes.rootInterval[];\n syllabuses?: OutTypes.syllabus[];\n configurations?: OutTypes.configuration[];\n\n meta: { structure: string };\n};\n\nexport default function (\n schedule: Partial<CoreTypes.mixed.schedule>\n): Out {\n const options: BaseOptions = {};\n\n return {\n meta: { structure: 'RS/core-2.0.0' },\n ...schedule.divisions && { division: _division (schedule.divisions, options) },\n ...schedule.settings && { settings: _settings (schedule.settings, options) },\n ...schedule.exceptions && { exceptions: _exceptions (schedule.exceptions, options) },\n ...schedule.periods && { periods: _periods (schedule.periods, options) },\n ...schedule.locations && { locations: _locations (schedule.locations, options) },\n ...schedule.teachers && { teachers: _teachers (schedule.teachers, options) },\n ...schedule.groups && { groups: _groups (schedule.groups, options) },\n ...schedule.persons && { persons: _persons (schedule.persons, options) },\n ...schedule.courses && { courses: _courses (schedule.courses, options) },\n ...schedule.events && { events: _events (schedule.events, options) },\n ...schedule.lockedTimes && { lockedTimes: _lockedTimes (schedule.lockedTimes, options) },\n ...schedule.overlapGroups && { overlapGroups: _overlapGroups (schedule.overlapGroups, options) },\n ...schedule.rootIntervals && { rootIntervals: _rootIntervals (schedule.rootIntervals, options) },\n ...schedule.syllabuses && { syllabuses: _syllabuses (schedule.syllabuses, options) },\n ...schedule.configurations && { configurations: _configurations(schedule.configurations, options) },\n };\n}"],"mappings":";;;;;;;;;;;;;;;;;AA0DA,2BACE,UACK;CACL,MAAMA,UAAuB;AAE7B,QAAO;EACL,MAAM,EAAE,WAAW;EACnB,GAAG,SAAS,aAAkB,EAAE,UAAgBC,iBAAgB,SAAS,WAAgB;EACzF,GAAG,SAAS,YAAkB,EAAE,UAAgBC,iBAAgB,SAAS,UAAgB;EACzF,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS,YAAgB;EACzF,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB;EACzF,GAAG,SAAS,aAAkB,EAAE,WAAgBC,kBAAgB,SAAS,WAAgB;EACzF,GAAG,SAAS,YAAkB,EAAE,UAAgBC,iBAAgB,SAAS,UAAgB;EACzF,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS,QAAgB;EACzF,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB;EACzF,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB;EACzF,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS,QAAgB;EACzF,GAAG,SAAS,eAAkB,EAAE,aAAgBC,qBAAgB,SAAS,aAAgB;EACzF,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS,eAAgB;EACzF,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS,eAAgB;EACzF,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS,YAAgB;EACzF,GAAG,SAAS,kBAAkB,EAAE,gBAAgBC,uBAAgB,SAAS,gBAAgB"}
@@ -0,0 +1,31 @@
1
+ import { Vertex } from "./common/index.js";
2
+ import { Division } from "./divisions.js";
3
+
4
+ //#region src/core/types/configurations.d.ts
5
+ type ConfigurationType = 'filter' | 'template' | 'rule';
6
+ interface ConfigurationDomain {
7
+ to: Division | Vertex;
8
+ toModel: 'companies' | 'divisions';
9
+ }
10
+ interface ConfigurationMetadata {
11
+ active: boolean;
12
+ version: string;
13
+ tags: {
14
+ value: string;
15
+ type?: string;
16
+ }[];
17
+ }
18
+ type Configuration = Vertex & {
19
+ domain: ConfigurationDomain[];
20
+ type: ConfigurationType;
21
+ metadata: ConfigurationMetadata;
22
+ lastModifiedBy?: Vertex;
23
+ data?: any;
24
+ displayName?: string;
25
+ description?: string;
26
+ category?: string;
27
+ enabled?: boolean;
28
+ };
29
+ //#endregion
30
+ export { Configuration };
31
+ //# sourceMappingURL=configurations.d.ts.map
@@ -19,11 +19,13 @@ import { DivisionSettings } from "./division-settings.js";
19
19
  import { Meta } from "./common/meta.js";
20
20
  import { Division } from "./divisions.js";
21
21
  import { Area } from "./areas.js";
22
+ import { Configuration } from "./configurations.js";
22
23
  import { MixedSchedule, MixedScheduleWithoutInternalId, Schedule, SerializedSchedule, SerializedScheduleWithoutInternalId } from "./schedules.js";
23
24
 
24
25
  //#region src/core/types/index.d.ts
25
26
  declare namespace Types {
26
27
  type area = Area;
28
+ type configuration = Configuration;
27
29
  type event = Event;
28
30
  type exception = Exception;
29
31
  type course = Course;
@@ -45,6 +47,7 @@ declare namespace Types {
45
47
  type meta = Meta;
46
48
  namespace serialized {
47
49
  type area = Serialized<Area>;
50
+ type configuration = Serialized<Configuration>;
48
51
  type event = Serialized<Event>;
49
52
  type exception = Serialized<Exception>;
50
53
  type course = Serialized<Course>;
@@ -63,6 +66,7 @@ declare namespace Types {
63
66
  }
64
67
  namespace mixed {
65
68
  type area = Mixed<Area>;
69
+ type configuration = Mixed<Configuration>;
66
70
  type event = Mixed<Event>;
67
71
  type exception = Mixed<Exception>;
68
72
  type course = Mixed<Course>;
@@ -81,6 +85,7 @@ declare namespace Types {
81
85
  }
82
86
  namespace mixedWithoutInternalId {
83
87
  type area = MixedWithoutInternalId<Area>;
88
+ type configuration = MixedWithoutInternalId<Configuration>;
84
89
  type event = MixedWithoutInternalId<Event>;
85
90
  type exception = MixedWithoutInternalId<Exception>;
86
91
  type course = MixedWithoutInternalId<Course>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
3
  "description": "",
4
- "version": "4.0.12",
4
+ "version": "4.0.13",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",