@royalschedule/maps 3.1.8 → 3.1.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.
- package/dist/RS/v3/to/index.d.ts +2 -0
- package/dist/RS/v3/to/schedules.d.ts +2 -0
- package/dist/SS12000/to/persons.js +7 -5
- package/dist/SS12000/to/persons.js.map +1 -1
- package/dist/SS12000/types/index.d.ts +2 -0
- package/dist/core/v2/from/schedules.d.ts +2 -0
- package/dist/core/v2/from/teachers.d.ts +2 -0
- package/dist/core/v2/to/schedules.d.ts +2 -0
- package/dist/core/v2/to/teachers.d.ts +2 -0
- package/dist/core/v2/types/common/maximum-schedule-span.d.ts +4 -0
- package/dist/core/v2/types/common/maximum-schedule-span.js +6 -0
- package/dist/core/v2/types/common/maximum-schedule-span.js.map +1 -0
- package/dist/core/v2/types/common/planned-schedule-duration.d.ts +3 -0
- package/dist/core/v2/types/common/planned-schedule-duration.js +6 -0
- package/dist/core/v2/types/common/planned-schedule-duration.js.map +1 -0
- package/dist/core/v2/types/division-settings.d.ts +4 -0
- package/dist/core/v2/types/teachers.d.ts +4 -0
- package/package.json +1 -1
package/dist/RS/v3/to/index.d.ts
CHANGED
|
@@ -223,6 +223,8 @@ export default class {
|
|
|
223
223
|
type?: string | undefined;
|
|
224
224
|
value: string;
|
|
225
225
|
}>[] | undefined;
|
|
226
|
+
plannedScheduledDuration?: import("../../../core/v2/types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
227
|
+
maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
226
228
|
signature?: string | undefined;
|
|
227
229
|
}[];
|
|
228
230
|
locations: {
|
|
@@ -214,6 +214,8 @@ declare const _default: (schedule: Deserialized<CoreTypes.schedule>, options?: O
|
|
|
214
214
|
type?: string | undefined;
|
|
215
215
|
value: string;
|
|
216
216
|
}>[] | undefined;
|
|
217
|
+
plannedScheduledDuration?: import("../../../core/v2/types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
218
|
+
maximumScheduleSpan?: import("../../../core/v2/types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
217
219
|
signature?: string | undefined;
|
|
218
220
|
}[];
|
|
219
221
|
locations: {
|
|
@@ -31,7 +31,7 @@ var _default = (persons, belongsTo) => {
|
|
|
31
31
|
cause: 'invalid_input'
|
|
32
32
|
});
|
|
33
33
|
return persons.map(person => {
|
|
34
|
-
var _belongsTo$id;
|
|
34
|
+
var _belongsTo$id, _person$SSN;
|
|
35
35
|
return _objectSpread({
|
|
36
36
|
id: "".concat((_belongsTo$id = belongsTo === null || belongsTo === void 0 ? void 0 : belongsTo.id) !== null && _belongsTo$id !== void 0 ? _belongsTo$id : person.belongsTo.id, ".").concat(_lodash.default.isString(person) ? person : person.id)
|
|
37
37
|
}, !_lodash.default.isString(person) && _objectSpread({
|
|
@@ -40,15 +40,17 @@ var _default = (persons, belongsTo) => {
|
|
|
40
40
|
modified: (0, _moment.default)(person.updatedAt).toISOString()
|
|
41
41
|
},
|
|
42
42
|
sex: person.sex ? _lodash.default.get(SexMap, person.sex, 'Okänt') : 'Okänt'
|
|
43
|
-
}, _lodash.default.omitBy({
|
|
43
|
+
}, _lodash.default.omitBy(_objectSpread(_objectSpread({
|
|
44
44
|
foreignId: person.ids,
|
|
45
45
|
displayName: person.displayName,
|
|
46
46
|
givenName: person.firstName,
|
|
47
|
-
familyName: person.lastName
|
|
48
|
-
|
|
47
|
+
familyName: person.lastName
|
|
48
|
+
}, ((_person$SSN = person.SSN) === null || _person$SSN === void 0 ? void 0 : _person$SSN.value) && {
|
|
49
|
+
civicNo: person.SSN
|
|
50
|
+
}), {}, {
|
|
49
51
|
emails: person.emails,
|
|
50
52
|
phoneNumbers: person.phoneNumbers
|
|
51
|
-
}, _lodash.default.isNil)));
|
|
53
|
+
}), _lodash.default.isNil)));
|
|
52
54
|
});
|
|
53
55
|
};
|
|
54
56
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.js","names":["_lodash","_interopRequireDefault","require","_moment","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SexMap","Man","Woman","TypeMap","private","organization","_default","persons","belongsTo","Array","isArray","Error","cause","every","person","_","isString","get","has","map","_belongsTo$id","id","concat","meta","created","moment","createdAt","toISOString","modified","updatedAt","sex","omitBy","foreignId","ids","displayName","givenName","firstName","familyName","lastName","
|
|
1
|
+
{"version":3,"file":"persons.js","names":["_lodash","_interopRequireDefault","require","_moment","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SexMap","Man","Woman","TypeMap","private","organization","_default","persons","belongsTo","Array","isArray","Error","cause","every","person","_","isString","get","has","map","_belongsTo$id","_person$SSN","id","concat","meta","created","moment","createdAt","toISOString","modified","updatedAt","sex","omitBy","foreignId","ids","displayName","givenName","firstName","familyName","lastName","SSN","civicNo","emails","phoneNumbers","isNil","exports"],"sources":["../../../src/SS12000/to/persons.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAyD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,QAAAH,CAAA,EAAAI,CAAA,QAAAC,CAAA,GAAA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AC/CE,MAAM,EAAQ5B,MAAM,CAAC4B,MAAM;MAC3BC,YAAY,EAAE7B,MAAM,CAAC6B;IAAY,IAChC5B,eAAC,CAAC6B,KAAK,CAAC,CACZ;EAAA,CACD,CAAC;AACL,CAAC;AAAAC,OAAA,CAAA9E,OAAA,GAAAuC,QAAA","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { Group } from './groups';
|
|
|
4
4
|
import { Resource } from './resources';
|
|
5
5
|
import { Room } from './rooms';
|
|
6
6
|
import { Duty } from './duties';
|
|
7
|
+
import { Person } from './persons';
|
|
7
8
|
export declare namespace Types {
|
|
8
9
|
type activity = Activity;
|
|
9
10
|
type calendarEvent = CalendarEvent;
|
|
@@ -11,4 +12,5 @@ export declare namespace Types {
|
|
|
11
12
|
type resource = Resource;
|
|
12
13
|
type room = Room;
|
|
13
14
|
type duty = Duty;
|
|
15
|
+
type person = Person;
|
|
14
16
|
}
|
|
@@ -208,6 +208,8 @@ export default function (schedule: ReturnType<typeof transform>): {
|
|
|
208
208
|
type?: string | undefined;
|
|
209
209
|
value: string;
|
|
210
210
|
}>[] | undefined;
|
|
211
|
+
plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
212
|
+
maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
211
213
|
signature?: string | undefined;
|
|
212
214
|
}[];
|
|
213
215
|
locations: {
|
|
@@ -19,6 +19,8 @@ declare const _default: (teachers: ReturnType<typeof transform>) => {
|
|
|
19
19
|
type?: string | undefined;
|
|
20
20
|
value: string;
|
|
21
21
|
}>[] | undefined;
|
|
22
|
+
plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
23
|
+
maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
22
24
|
signature?: string | undefined;
|
|
23
25
|
}[];
|
|
24
26
|
export default _default;
|
|
@@ -210,6 +210,8 @@ export default function (schedule: Deserialized<CoreTypes.schedule>): {
|
|
|
210
210
|
type?: string | undefined;
|
|
211
211
|
value: string;
|
|
212
212
|
}>[] | undefined;
|
|
213
|
+
plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
214
|
+
maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
213
215
|
signature?: string | undefined;
|
|
214
216
|
}[];
|
|
215
217
|
locations: {
|
|
@@ -20,6 +20,8 @@ declare const _default: (teachers: Deserialized<Teacher>[]) => {
|
|
|
20
20
|
type?: string | undefined;
|
|
21
21
|
value: string;
|
|
22
22
|
}>[] | undefined;
|
|
23
|
+
plannedScheduledDuration?: import("../types/common/planned-schedule-duration").PlannedScheduledDuration | undefined;
|
|
24
|
+
maximumScheduleSpan?: import("../types/common/maximum-schedule-span").MaximumScheduleSpan | undefined;
|
|
23
25
|
signature?: string | undefined;
|
|
24
26
|
}[];
|
|
25
27
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maximum-schedule-span.js","names":[],"sources":["../../../../../src/core/v2/types/common/maximum-schedule-span.ts"],"sourcesContent":[null],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planned-schedule-duration.js","names":[],"sources":["../../../../../src/core/v2/types/common/planned-schedule-duration.ts"],"sourcesContent":[null],"mappings":"","ignoreList":[]}
|
|
@@ -27,6 +27,8 @@ import { Edge } from '../../types';
|
|
|
27
27
|
import { Division } from './divisions';
|
|
28
28
|
import { LockedTime } from './locked-times';
|
|
29
29
|
import { Period } from './periods';
|
|
30
|
+
import { PlannedScheduledDuration } from './common/planned-schedule-duration';
|
|
31
|
+
import { MaximumScheduleSpan } from './common/maximum-schedule-span';
|
|
30
32
|
interface CalendarException {
|
|
31
33
|
start: string;
|
|
32
34
|
end: string;
|
|
@@ -45,6 +47,8 @@ export interface DivisionSettingsBare {
|
|
|
45
47
|
defaultDependencyMinimumBreakLength?: number;
|
|
46
48
|
defaultMaxNumWorkingHours?: number | null;
|
|
47
49
|
defaultMaxNumDailyWorkingHours?: number | null;
|
|
50
|
+
defaultPlannedScheduledDuration?: PlannedScheduledDuration;
|
|
51
|
+
defaultMaximumScheduleSpan?: MaximumScheduleSpan;
|
|
48
52
|
defaultDayRank?: number;
|
|
49
53
|
defaultGroupRank?: number;
|
|
50
54
|
defaultDependencyRank?: number;
|
|
@@ -31,6 +31,8 @@ import { LockedTime } from './locked-times';
|
|
|
31
31
|
import { Interval } from './intervals';
|
|
32
32
|
import { Day } from './days';
|
|
33
33
|
import { Person } from './persons';
|
|
34
|
+
import { PlannedScheduledDuration } from './common/planned-schedule-duration';
|
|
35
|
+
import { MaximumScheduleSpan } from './common/maximum-schedule-span';
|
|
34
36
|
export interface TeacherBare {
|
|
35
37
|
belongsTo?: Edge<Division>;
|
|
36
38
|
ids?: string;
|
|
@@ -38,6 +40,8 @@ export interface TeacherBare {
|
|
|
38
40
|
minBreakLength?: BreakLength;
|
|
39
41
|
maxNumWorkingHours?: number | boolean;
|
|
40
42
|
maxNumDailyWorkingHours?: number | number[] | boolean;
|
|
43
|
+
plannedScheduledDuration?: PlannedScheduledDuration;
|
|
44
|
+
maximumScheduleSpan?: MaximumScheduleSpan;
|
|
41
45
|
forbidOverlappingEvents?: boolean;
|
|
42
46
|
disableDayLengthPunishment?: boolean;
|
|
43
47
|
weight?: number;
|