@royalschedule/maps 2.2.22 → 2.2.25

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 (70) hide show
  1. package/dist/RS/index.d.ts +2 -2
  2. package/dist/RS/index.js +2 -2
  3. package/dist/RS/index.js.map +1 -1
  4. package/dist/RS/v2/to/collections.js +4 -5
  5. package/dist/RS/v2/to/collections.js.map +1 -1
  6. package/dist/RS/v2/to/course-events/index.js +3 -4
  7. package/dist/RS/v2/to/course-events/index.js.map +1 -1
  8. package/dist/RS/v2/types/collections.d.ts +2 -2
  9. package/dist/RS/v2/types/constraints.d.ts +2 -1
  10. package/dist/RS/v2/types/course-events.d.ts +2 -2
  11. package/dist/RS/v2/types/out-options.d.ts +1 -1
  12. package/dist/SchoolSoft/api/from/index.d.ts +3 -0
  13. package/dist/SchoolSoft/api/from/index.js +16 -0
  14. package/dist/SchoolSoft/api/from/index.js.map +1 -0
  15. package/dist/SchoolSoft/api/from/schedules.d.ts +4 -0
  16. package/dist/SchoolSoft/api/from/schedules.js +92 -0
  17. package/dist/SchoolSoft/api/from/schedules.js.map +1 -0
  18. package/dist/SchoolSoft/api/index.d.ts +6 -0
  19. package/dist/SchoolSoft/api/index.js +16 -0
  20. package/dist/SchoolSoft/api/index.js.map +1 -0
  21. package/dist/SchoolSoft/api/types/group.d.ts +8 -0
  22. package/dist/SchoolSoft/api/types/group.js +6 -0
  23. package/dist/SchoolSoft/api/types/group.js.map +1 -0
  24. package/dist/SchoolSoft/api/types/index.d.ts +8 -0
  25. package/dist/SchoolSoft/api/types/index.js +6 -0
  26. package/dist/SchoolSoft/api/types/index.js.map +1 -0
  27. package/dist/SchoolSoft/api/types/schedule.d.ts +6 -0
  28. package/dist/SchoolSoft/api/types/schedule.js +6 -0
  29. package/dist/SchoolSoft/api/types/schedule.js.map +1 -0
  30. package/dist/SchoolSoft/api/types/teacher.d.ts +9 -0
  31. package/dist/SchoolSoft/api/types/teacher.js +6 -0
  32. package/dist/SchoolSoft/api/types/teacher.js.map +1 -0
  33. package/dist/SchoolSoft/file/from/index.d.ts +8 -0
  34. package/dist/SchoolSoft/file/from/index.js +16 -0
  35. package/dist/SchoolSoft/file/from/index.js.map +1 -0
  36. package/dist/SchoolSoft/file/from/schedules.d.ts +9 -0
  37. package/dist/SchoolSoft/file/from/schedules.js +227 -0
  38. package/dist/SchoolSoft/file/from/schedules.js.map +1 -0
  39. package/dist/SchoolSoft/file/index.d.ts +8 -0
  40. package/dist/SchoolSoft/file/index.js +19 -0
  41. package/dist/SchoolSoft/file/index.js.map +1 -0
  42. package/dist/SchoolSoft/file/to/index.d.ts +3 -0
  43. package/dist/SchoolSoft/file/to/index.js +16 -0
  44. package/dist/SchoolSoft/file/to/index.js.map +1 -0
  45. package/dist/SchoolSoft/file/to/schedules.d.ts +4 -0
  46. package/dist/SchoolSoft/file/to/schedules.js +40 -0
  47. package/dist/SchoolSoft/file/to/schedules.js.map +1 -0
  48. package/dist/SchoolSoft/file/types/events.d.ts +19 -0
  49. package/dist/SchoolSoft/file/types/events.js +6 -0
  50. package/dist/SchoolSoft/file/types/events.js.map +1 -0
  51. package/dist/SchoolSoft/file/types/index.d.ts +4 -0
  52. package/dist/SchoolSoft/file/types/index.js +6 -0
  53. package/dist/SchoolSoft/file/types/index.js.map +1 -0
  54. package/dist/SchoolSoft/from/index.js +5 -1
  55. package/dist/SchoolSoft/from/index.js.map +1 -1
  56. package/dist/SchoolSoft/from/schedules.js +43 -4
  57. package/dist/SchoolSoft/from/schedules.js.map +1 -1
  58. package/dist/SchoolSoft/index.d.ts +10 -6
  59. package/dist/SchoolSoft/index.js +5 -7
  60. package/dist/SchoolSoft/index.js.map +1 -1
  61. package/dist/SchoolSoft/to/index.js +5 -1
  62. package/dist/SchoolSoft/to/index.js.map +1 -1
  63. package/dist/SchoolSoft/to/schedules.js +5 -1
  64. package/dist/SchoolSoft/to/schedules.js.map +1 -1
  65. package/dist/core/from/events.js +1 -0
  66. package/dist/core/from/events.js.map +1 -1
  67. package/dist/core/identify/index.js +2 -2
  68. package/dist/index.d.ts +1 -1
  69. package/dist/index.js +4 -4
  70. package/package.json +3 -2
@@ -19,6 +19,7 @@ var _default = events => {
19
19
  return id != undefined;
20
20
  });
21
21
  return events.map(event => {
22
+ if (event.preferredDuration == undefined) event.preferredDuration = event.duration;
22
23
  return _objectSpread({}, event);
23
24
  }, []);
24
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","mappings":";;;;;;;;;;;;;eAEgBA,MAAD,IAAmD;AAChEA,QAAM,GAAGA,MAAM,CAACC,MAAP,CAAc;AAAA,QAAC;AAAEC;AAAF,KAAD;AAAA,WAAiBA,EAAE,IAAIC,SAAvB;AAAA,GAAd,CAAT;AAEA,SAAOH,MAAM,CAACI,GAAP,CAAYC,KAAD,IAAuB;AAEvC,6BAAYA,KAAZ;AACD,GAHM,EAGJ,EAHI,CAAP;AAID,C","names":["events","filter","id","undefined","map","event"],"sourceRoot":"","sources":["../../../src/core/from/events.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"events.js","mappings":";;;;;;;;;;;;;eAEgBA,MAAD,IAAmD;AAChEA,QAAM,GAAGA,MAAM,CAACC,MAAP,CAAc;AAAA,QAAC;AAAEC;AAAF,KAAD;AAAA,WAAiBA,EAAE,IAAIC,SAAvB;AAAA,GAAd,CAAT;AAEA,SAAOH,MAAM,CAACI,GAAP,CAAYC,KAAD,IAAuB;AAIvC,QAAIA,KAAK,CAACC,iBAAN,IAA2BH,SAA/B,EACEE,KAAK,CAACC,iBAAN,GAA0BD,KAAK,CAACE,QAAhC;AAEF,6BAAYF,KAAZ;AACD,GARM,EAQJ,EARI,CAAP;AASD,C","names":["events","filter","id","undefined","map","event","preferredDuration","duration"],"sourceRoot":"","sources":["../../../src/core/from/events.ts"],"sourcesContent":[null]}
@@ -7,7 +7,7 @@ exports.identify = identify;
7
7
 
8
8
  var _lodash = _interopRequireDefault(require("lodash"));
9
9
 
10
- var _SchoolSoft = require("../../SchoolSoft");
10
+ var _file = require("../../SchoolSoft/file");
11
11
 
12
12
  var _PlanDigital = require("../../PlanDigital");
13
13
 
@@ -51,7 +51,7 @@ var SchoolSoft = ['id', 'group', 'dayid', 'day', 'starttime', 'length', 'teacher
51
51
  var maps = [{
52
52
  structure: SchoolSoft,
53
53
  name: 'SchoolSoft',
54
- map: _SchoolSoft.SchoolSoftMap
54
+ map: _file.SchoolSoftMap
55
55
  }, {
56
56
  structure: PlanDigital,
57
57
  name: 'Plan Digital',
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export * from './core';
2
2
  export * from './core/identify';
3
3
  export * from './Admentum';
4
4
  export * from './RS';
5
- export * from './SchoolSoft';
5
+ export * from './SchoolSoft/file';
6
6
  export * from './IdunSoft';
7
7
  export * from './InfoMentor';
8
8
  export * from './Skola24';
package/dist/index.js CHANGED
@@ -56,15 +56,15 @@ Object.keys(_RS).forEach(function (key) {
56
56
  });
57
57
  });
58
58
 
59
- var _SchoolSoft = require("./SchoolSoft");
59
+ var _file = require("./SchoolSoft/file");
60
60
 
61
- Object.keys(_SchoolSoft).forEach(function (key) {
61
+ Object.keys(_file).forEach(function (key) {
62
62
  if (key === "default" || key === "__esModule") return;
63
- if (key in exports && exports[key] === _SchoolSoft[key]) return;
63
+ if (key in exports && exports[key] === _file[key]) return;
64
64
  Object.defineProperty(exports, key, {
65
65
  enumerable: true,
66
66
  get: function get() {
67
- return _SchoolSoft[key];
67
+ return _file[key];
68
68
  }
69
69
  });
70
70
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
- "version": "2.2.22",
3
+ "version": "2.2.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,8 @@
13
13
  "compile": "tsc && babel --source-maps -d dist/ dist/",
14
14
  "prepublish": "npm run compile",
15
15
  "dev_Admentum": "ts-node tests/Admentum/index.ts",
16
- "dev_schoolsoft": "ts-node tests/SchoolSoft/index.ts",
16
+ "dev_schoolsoft_api": "ts-node tests/SchoolSoft/api/index.ts",
17
+ "dev_schoolsoft_file": "ts-node tests/SchoolSoft/file/index.ts",
17
18
  "dev_Skola24": "ts-node tests/Skola24/index.ts",
18
19
  "dev_plandigital": "ts-node tests/PlanDigital/index.ts",
19
20
  "dev_ss12000": "ts-node tests/SS12000/index.ts",