@royalschedule/maps 2.1.16 → 2.1.19

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 (43) hide show
  1. package/dist/Admentum/from/courses.d.ts +2 -2
  2. package/dist/Admentum/from/events.d.ts +1 -1
  3. package/dist/Admentum/from/groups.d.ts +1 -1
  4. package/dist/Admentum/from/locations.d.ts +1 -1
  5. package/dist/Admentum/from/schedules.d.ts +1 -1
  6. package/dist/Admentum/from/teachers.d.ts +2 -2
  7. package/dist/Admentum/index.d.ts +2 -0
  8. package/dist/Admentum/index.js.map +1 -1
  9. package/dist/Admentum/types/course-sections.d.ts +15 -0
  10. package/dist/Admentum/types/course-sections.js +6 -0
  11. package/dist/Admentum/types/course-sections.js.map +1 -0
  12. package/dist/Admentum/types/courses.d.ts +12 -0
  13. package/dist/Admentum/types/courses.js +6 -0
  14. package/dist/Admentum/types/courses.js.map +1 -0
  15. package/dist/Admentum/types/index.d.ts +20 -0
  16. package/dist/Admentum/types/index.js +6 -0
  17. package/dist/Admentum/types/index.js.map +1 -0
  18. package/dist/Admentum/types/lessons.d.ts +22 -0
  19. package/dist/Admentum/types/lessons.js +6 -0
  20. package/dist/Admentum/types/lessons.js.map +1 -0
  21. package/dist/Admentum/types/primary-groups.d.ts +28 -0
  22. package/dist/Admentum/types/primary-groups.js +6 -0
  23. package/dist/Admentum/types/primary-groups.js.map +1 -0
  24. package/dist/Admentum/types/rooms.d.ts +8 -0
  25. package/dist/Admentum/types/rooms.js +6 -0
  26. package/dist/Admentum/types/rooms.js.map +1 -0
  27. package/dist/Admentum/types/schedule-groups.d.ts +19 -0
  28. package/dist/Admentum/types/schedule-groups.js +6 -0
  29. package/dist/Admentum/types/schedule-groups.js.map +1 -0
  30. package/dist/Admentum/types/schedules.d.ts +20 -0
  31. package/dist/Admentum/types/schedules.js +6 -0
  32. package/dist/Admentum/types/schedules.js.map +1 -0
  33. package/dist/Admentum/types/schools.d.ts +7 -0
  34. package/dist/Admentum/types/schools.js +6 -0
  35. package/dist/Admentum/types/schools.js.map +1 -0
  36. package/dist/Admentum/types/users.d.ts +12 -0
  37. package/dist/Admentum/types/users.js +6 -0
  38. package/dist/Admentum/types/users.js.map +1 -0
  39. package/dist/SS12000/from/activities.js.map +1 -1
  40. package/dist/SS12000/from/duties.js +2 -3
  41. package/dist/SS12000/from/duties.js.map +1 -1
  42. package/dist/core/index.d.ts +2 -0
  43. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ScheduleGroup } from '../types/schedule-group';
2
- import { School } from '../types/school';
1
+ import { ScheduleGroup } from '../types/schedule-groups';
2
+ import { School } from '../types/schools';
3
3
  import { Types } from '../../core/types';
4
4
  export default function (scheduledGroups: ScheduleGroup[], school: School, importErrors: string[], importWarnings: string[]): Types.course[];
@@ -1,3 +1,3 @@
1
1
  import { Types } from '../../core/types';
2
- import { Lesson } from '../types/lesson';
2
+ import { Lesson } from '../types/lessons';
3
3
  export default function (lessons: Lesson[], courses: Types.course[], teachers: Types.course[], importErrors: string[], importWarnings: string[]): Types.courseEvent[];
@@ -1,3 +1,3 @@
1
- import { PrimaryGroup } from '../types/primary-group';
1
+ import { PrimaryGroup } from '../types/primary-groups';
2
2
  import { Types } from '../../core/types';
3
3
  export default function (primaryGroups: PrimaryGroup[], importErrors: string[], importWarnings: string[]): Types.group[];
@@ -1,3 +1,3 @@
1
- import { Room } from '../types/room';
1
+ import { Room } from '../types/rooms';
2
2
  import { Types } from '../../core/types';
3
3
  export default function (rooms: Room[], importErrors: string[], importWarnings: string[]): Types.location[];
@@ -1,3 +1,3 @@
1
- import { Schedule } from '../types/schedule';
1
+ import { Schedule } from '../types/schedules';
2
2
  import { Types as CoreTypes } from '../../core/types';
3
3
  export default function (schedule: Schedule): CoreTypes.division;
@@ -1,4 +1,4 @@
1
1
  import { Types } from '../../core/types';
2
- import { ScheduleGroup } from '../types/schedule-group';
3
- import { Lesson } from '../types/lesson';
2
+ import { ScheduleGroup } from '../types/schedule-groups';
3
+ import { Lesson } from '../types/lessons';
4
4
  export default function (scheduleGroups: ScheduleGroup[], lessons: Lesson[], importErrors: string[], importWarnings: string[]): Types.teacher[];
@@ -1,6 +1,8 @@
1
1
  import _from from './from';
2
2
  import _to from './to';
3
+ import { Types } from './types';
3
4
  export declare class AdmentumMap {
4
5
  static to: typeof _to;
5
6
  static from: typeof _from;
6
7
  }
8
+ export { Types as AdmentumTypes };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";;;;;;;AAAA;;AACA;;;;AAEM,MAAOA,WAAP,CAAkB;;;AACfA,iBAAOC,YAAP;AACAD,mBAAOE,cAAP","names":["AdmentumMap","_to","_from"],"sourceRoot":"","sources":["../../src/Admentum/index.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;AAAA;;AACA;;;;AAGM,MAAOA,WAAP,CAAkB;;;AACfA,iBAAOC,YAAP;AACAD,mBAAOE,cAAP","names":["AdmentumMap","_to","_from"],"sourceRoot":"","sources":["../../src/Admentum/index.ts"],"sourcesContent":[null]}
@@ -0,0 +1,15 @@
1
+ import { Course } from './courses';
2
+ import { ScheduleGroup } from './schedule-groups';
3
+ export declare type CourseSection = {
4
+ id: number;
5
+ school_id: number;
6
+ course: Partial<Course>;
7
+ schedule_group: Partial<ScheduleGroup>;
8
+ section: {
9
+ id: number;
10
+ sis_id: string | null;
11
+ name: string;
12
+ start_date: string;
13
+ end_date: string;
14
+ };
15
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=course-sections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course-sections.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,12 @@
1
+ import { User } from './users';
2
+ export declare type Course = {
3
+ url: string;
4
+ id: number;
5
+ school_id: number;
6
+ schedule_id: number;
7
+ name: string;
8
+ subject_code: string;
9
+ start_date: string | null;
10
+ end_date: string | null;
11
+ teachers: User[];
12
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=courses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"courses.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,20 @@
1
+ import { CourseSection } from './course-sections';
2
+ import { Course } from './courses';
3
+ import { Lesson } from './lessons';
4
+ import { PrimaryGroup } from './primary-groups';
5
+ import { Room } from './rooms';
6
+ import { ScheduleGroup } from './schedule-groups';
7
+ import { Schedule } from './schedules';
8
+ import { School } from './schools';
9
+ import { User } from './users';
10
+ export declare module Types {
11
+ type courseSection = CourseSection;
12
+ type course = Course;
13
+ type lesson = Lesson;
14
+ type primaryGroup = PrimaryGroup;
15
+ type room = Room;
16
+ type scheduleGroup = ScheduleGroup;
17
+ type schedule = Schedule;
18
+ type school = School;
19
+ type user = User;
20
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,22 @@
1
+ import { User } from './users';
2
+ export declare type LessonInfo = {
3
+ start: string;
4
+ end: string;
5
+ duration: number;
6
+ room?: {
7
+ id: number;
8
+ };
9
+ teachers: {
10
+ id: number;
11
+ }[];
12
+ groups: {
13
+ id: number;
14
+ }[];
15
+ };
16
+ export declare type Lesson = {
17
+ id: number;
18
+ weekday: number;
19
+ date: string;
20
+ info: LessonInfo;
21
+ teachers: User[];
22
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=lessons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lessons.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,28 @@
1
+ export declare type PrimaryGroup = {
2
+ url: string;
3
+ id: number;
4
+ eid: null;
5
+ school_id: number;
6
+ schedule: {
7
+ url: string;
8
+ id: number;
9
+ school_year: string;
10
+ };
11
+ grade: number;
12
+ name: string;
13
+ guid: number | null;
14
+ teachers: [
15
+ {
16
+ url: string;
17
+ id: number;
18
+ email: string;
19
+ first_name: string;
20
+ last_name: string;
21
+ role: number;
22
+ }
23
+ ];
24
+ start_date: null;
25
+ end_date: null;
26
+ start_date_display: string;
27
+ end_date_display: string;
28
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=primary-groups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primary-groups.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,8 @@
1
+ export declare type Room = {
2
+ url: string;
3
+ id: number;
4
+ school_id: number;
5
+ name: string;
6
+ category: string | null;
7
+ capacity: string | null;
8
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=rooms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rooms.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,19 @@
1
+ import { User } from "./users";
2
+ import { Course } from "./courses";
3
+ import { Schedule } from "./schedules";
4
+ declare type Subject = {
5
+ id: number;
6
+ name: string;
7
+ };
8
+ export declare type ScheduleGroup = {
9
+ id: number;
10
+ eid: number | null;
11
+ school_id: number;
12
+ name: string;
13
+ teachers: User[];
14
+ users_primary_groups: number[];
15
+ subjects: Subject[];
16
+ courses: Course[];
17
+ schedule: Schedule;
18
+ };
19
+ export {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=schedule-groups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule-groups.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,20 @@
1
+ import { School } from './schools';
2
+ import { Room } from './rooms';
3
+ import { PrimaryGroup } from './primary-groups';
4
+ import { ScheduleGroup } from './schedule-groups';
5
+ import { Lesson } from './lessons';
6
+ export declare type Schedule = {
7
+ start_date: Date;
8
+ end_date: Date;
9
+ school_year: {
10
+ short_desc: string;
11
+ };
12
+ schedule: {
13
+ id: number;
14
+ };
15
+ schools: School[];
16
+ rooms: Room[];
17
+ primary_groups: PrimaryGroup[];
18
+ schedule_groups: ScheduleGroup[];
19
+ lessons: Lesson[];
20
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=schedules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedules.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,7 @@
1
+ export declare type School = {
2
+ url: string;
3
+ id: number;
4
+ school_type: 'GR' | 'GY';
5
+ school_code: Date;
6
+ name: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=schools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schools.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -0,0 +1,12 @@
1
+ export declare type User = {
2
+ url: string;
3
+ id: number;
4
+ school_id: number;
5
+ email: string;
6
+ first_name: string;
7
+ last_name: string;
8
+ role: number;
9
+ current_primary_group_id: number | null;
10
+ current_primary_group_name: number | null;
11
+ account_id: number;
12
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"activities.js","mappings":";;;;;;;;;;;;;eAMe,CAACA,UAAD,EAAyBC,OAAzB,KAAwG;AACrH,MAAI,CAAEC,KAAK,CAACC,OAAN,CAAcH,UAAd,CAAN,EACE,MAAM,IAAII,KAAJ,CAAU,mEAAV,CAAN;AAEF,SAAOJ,UAAU,CAACK,GAAX,CAAgBC,QAAD;AAAA;;AAAA,WACpB;AACEC,QAAE,EAAsBD,QAAQ,CAACC,EADnC;AAIEC,iBAAW,EAAaF,QAAQ,CAACE,WAJnC;AAKEC,UAAI,EAAoBH,QAAQ,CAACI,YALnC;AAMEC,YAAM,sBAAkBL,QAAQ,CAACK,MAA3B,qDAAkB,iBAAiBN,GAAjB,CAAsBO,KAAD;AACnBL,UAAE,EAAqCK,KAAK,CAACL;AAD1B,SAEhBK,KAAK,CAACJ,WAAN,IAAqB;AAAEA,mBAAW,EAAEI,KAAK,CAACJ;AAArB,OAFL,CAArB,CAN1B;AAUEK,cAAQ,wBAAgBP,QAAQ,CAACO,QAAzB,uDAAgB,mBAAmBR,GAAnB,CAAuB;AAAA,YAAC;AAAES;AAAF,SAAD;AAAA;AACrBP,YAAE,EAAqCO,IAAI,CAACP;AADvB,WAElBO,IAAI,CAACN,WAAL,IAAoB;AAAEA,qBAAW,EAAGM,IAAI,CAACN;AAArB,SAFF;AAAA,OAAvB;AAV1B,KADoB;AAAA,GAAf,CAAP;AAkBD,C","names":["activities","options","Array","isArray","Error","map","activity","id","displayName","type","activityType","groups","group","teachers","duty"],"sourceRoot":"","sources":["../../../src/SS12000/from/activities.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"activities.js","mappings":";;;;;;;;;;;;;eAMe,CAACA,UAAD,EAAyBC,OAAzB,KAAwG;AACrH,MAAI,CAAEC,KAAK,CAACC,OAAN,CAAcH,UAAd,CAAN,EACE,MAAM,IAAII,KAAJ,CAAU,mEAAV,CAAN;AAEF,SAAOJ,UAAU,CAACK,GAAX,CAAgBC,QAAD;AAAA;;AAAA,WACpB;AACEC,QAAE,EAAsBD,QAAQ,CAACC,EADnC;AAEEC,iBAAW,EAAaF,QAAQ,CAACE,WAFnC;AAGEC,UAAI,EAAoBH,QAAQ,CAACI,YAHnC;AAIEC,YAAM,sBAAkBL,QAAQ,CAACK,MAA3B,qDAAkB,iBAAiBN,GAAjB,CAAsBO,KAAD;AACnBL,UAAE,EAAqCK,KAAK,CAACL;AAD1B,SAEhBK,KAAK,CAACJ,WAAN,IAAqB;AAAEA,mBAAW,EAAEI,KAAK,CAACJ;AAArB,OAFL,CAArB,CAJ1B;AAQEK,cAAQ,wBAAgBP,QAAQ,CAACO,QAAzB,uDAAgB,mBAAmBR,GAAnB,CAAuB;AAAA,YAAC;AAAES;AAAF,SAAD;AAAA;AACrBP,YAAE,EAAqCO,IAAI,CAACP;AADvB,WAElBO,IAAI,CAACN,WAAL,IAAoB;AAAEA,qBAAW,EAAGM,IAAI,CAACN;AAArB,SAFF;AAAA,OAAvB;AAR1B,KADoB;AAAA,GAAf,CAAP;AAgBD,C","names":["activities","options","Array","isArray","Error","map","activity","id","displayName","type","activityType","groups","group","teachers","duty"],"sourceRoot":"","sources":["../../../src/SS12000/from/activities.ts"],"sourcesContent":[null]}
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
 
8
8
  var _default = duties => {
9
- if (!Array.isArray(duties)) throw new Error('(SS12000::From::Teacher) Teacher input is not of array type');
9
+ if (!Array.isArray(duties)) throw new Error('(SS12000::From::Duties) Teacher input is not of array type');
10
10
  return duties.map(duty => ({
11
11
  id: duty.id,
12
- displayName: duty.displayName,
13
- dutyRole: "Lärare"
12
+ displayName: duty.displayName
14
13
  }));
15
14
  };
16
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"duties.js","mappings":";;;;;;;eAIgBA,MAAD,IAAwC;AACrD,MAAI,CAAEC,KAAK,CAACC,OAAN,CAAcF,MAAd,CAAN,EACE,MAAM,IAAIG,KAAJ,CAAU,6DAAV,CAAN;AAEF,SAAOH,MAAM,CAACI,GAAP,CAAYC,IAAD,KAAW;AAC3BC,MAAE,EAAED,IAAI,CAACC,EADkB;AAE3BC,eAAW,EAAEF,IAAI,CAACE,WAFS;AAG3BC,YAAQ,EAAE;AAHiB,GAAX,CAAX,CAAP;AAKD,C","names":["duties","Array","isArray","Error","map","duty","id","displayName","dutyRole"],"sourceRoot":"","sources":["../../../src/SS12000/from/duties.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"duties.js","mappings":";;;;;;;eAIgBA,MAAD,IAAwC;AACrD,MAAI,CAAEC,KAAK,CAACC,OAAN,CAAcF,MAAd,CAAN,EACE,MAAM,IAAIG,KAAJ,CAAU,4DAAV,CAAN;AAEF,SAAOH,MAAM,CAACI,GAAP,CAAYC,IAAD,KAAW;AAC3BC,MAAE,EAAWD,IAAI,CAACC,EADS;AAE3BC,eAAW,EAAEF,IAAI,CAACE;AAFS,GAAX,CAAX,CAAP;AAID,C","names":["duties","Array","isArray","Error","map","duty","id","displayName"],"sourceRoot":"","sources":["../../../src/SS12000/from/duties.ts"],"sourcesContent":[null]}
@@ -1,6 +1,8 @@
1
1
  import _from from './from';
2
2
  import _to from './to';
3
+ import { Types } from './types';
3
4
  export declare class CoreMap {
4
5
  static from: typeof _from;
5
6
  static to: typeof _to;
6
7
  }
8
+ export { Types as CoreTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
- "version": "2.1.16",
3
+ "version": "2.1.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",