@royalschedule/maps 4.1.0-beta.0 → 4.1.2-beta.0

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 (1218) hide show
  1. package/dist/Additio/from/courses.js +28 -0
  2. package/dist/Additio/from/courses.js.map +1 -0
  3. package/dist/Additio/from/events.js +61 -0
  4. package/dist/Additio/from/events.js.map +1 -0
  5. package/dist/Additio/from/groups.js +14 -0
  6. package/dist/Additio/from/groups.js.map +1 -0
  7. package/dist/Additio/from/index.js +8 -0
  8. package/dist/Additio/from/index.js.map +1 -0
  9. package/dist/Additio/from/locations.js +13 -0
  10. package/dist/Additio/from/locations.js.map +1 -0
  11. package/dist/Additio/from/persons.js +30 -0
  12. package/dist/Additio/from/persons.js.map +1 -0
  13. package/dist/Additio/from/schedules.d.ts +38 -0
  14. package/dist/Additio/from/schedules.js +36 -0
  15. package/dist/Additio/from/schedules.js.map +1 -0
  16. package/dist/Additio/from/teachers.js +25 -0
  17. package/dist/Additio/from/teachers.js.map +1 -0
  18. package/dist/Additio/index.d.ts +14 -0
  19. package/dist/Additio/index.js +12 -0
  20. package/dist/Additio/index.js.map +1 -0
  21. package/dist/Additio/to/index.d.ts +21 -0
  22. package/dist/Additio/to/index.js +10 -0
  23. package/dist/Additio/to/index.js.map +1 -0
  24. package/dist/Additio/to/schedules.js +111 -0
  25. package/dist/Additio/to/schedules.js.map +1 -0
  26. package/dist/Additio/types/course-sections.d.ts +20 -0
  27. package/dist/Additio/types/courses.d.ts +17 -0
  28. package/dist/Additio/types/index.d.ts +27 -0
  29. package/dist/Additio/types/lessons.d.ts +27 -0
  30. package/dist/Additio/types/options.d.ts +16 -0
  31. package/dist/Additio/types/primary-groups.d.ts +30 -0
  32. package/dist/Additio/types/rooms.d.ts +12 -0
  33. package/dist/Additio/types/schedule-groups.d.ts +23 -0
  34. package/dist/Additio/types/schedules.d.ts +27 -0
  35. package/dist/Additio/types/schools.d.ts +11 -0
  36. package/dist/Additio/types/users.d.ts +20 -0
  37. package/dist/Admentum/from/courses.js +32 -0
  38. package/dist/Admentum/from/courses.js.map +1 -0
  39. package/dist/Admentum/from/events.js +62 -0
  40. package/dist/Admentum/from/events.js.map +1 -0
  41. package/dist/Admentum/from/groups.js +14 -0
  42. package/dist/Admentum/from/groups.js.map +1 -0
  43. package/dist/Admentum/from/index.js +8 -0
  44. package/dist/Admentum/from/index.js.map +1 -0
  45. package/dist/Admentum/from/locations.js +13 -0
  46. package/dist/Admentum/from/locations.js.map +1 -0
  47. package/dist/Admentum/from/persons.js +30 -0
  48. package/dist/Admentum/from/persons.js.map +1 -0
  49. package/dist/Admentum/from/schedules.d.ts +38 -0
  50. package/dist/Admentum/from/schedules.js +37 -0
  51. package/dist/Admentum/from/schedules.js.map +1 -0
  52. package/dist/Admentum/from/teachers.js +25 -0
  53. package/dist/Admentum/from/teachers.js.map +1 -0
  54. package/dist/Admentum/index.d.ts +14 -0
  55. package/dist/Admentum/index.js +12 -0
  56. package/dist/Admentum/index.js.map +1 -0
  57. package/dist/Admentum/to/index.d.ts +19 -0
  58. package/dist/Admentum/to/index.js +10 -0
  59. package/dist/Admentum/to/index.js.map +1 -0
  60. package/dist/Admentum/to/schedules.js +94 -0
  61. package/dist/Admentum/to/schedules.js.map +1 -0
  62. package/dist/Admentum/types/course-sections.d.ts +20 -0
  63. package/dist/Admentum/types/courses.d.ts +17 -0
  64. package/dist/Admentum/types/index.d.ts +25 -0
  65. package/dist/Admentum/types/lessons.d.ts +27 -0
  66. package/dist/Admentum/types/primary-groups.d.ts +30 -0
  67. package/dist/Admentum/types/rooms.d.ts +12 -0
  68. package/dist/Admentum/types/schedule-groups.d.ts +23 -0
  69. package/dist/Admentum/types/schedules.d.ts +27 -0
  70. package/dist/Admentum/types/schools.d.ts +11 -0
  71. package/dist/Admentum/types/users.d.ts +20 -0
  72. package/dist/Excel/index.d.ts +306 -0
  73. package/dist/Excel/index.js +13 -0
  74. package/dist/Excel/index.js.map +1 -0
  75. package/dist/Excel/v1/from/index.js +289 -0
  76. package/dist/Excel/v1/from/index.js.map +1 -0
  77. package/dist/Excel/v1/index.d.ts +239 -0
  78. package/dist/Excel/v1/index.js +10 -0
  79. package/dist/Excel/v1/index.js.map +1 -0
  80. package/dist/Excel/v1/types/index.d.ts +44 -0
  81. package/dist/Excel/v2/from/index.js +537 -0
  82. package/dist/Excel/v2/from/index.js.map +1 -0
  83. package/dist/Excel/v2/index.d.ts +301 -0
  84. package/dist/Excel/v2/index.js +10 -0
  85. package/dist/Excel/v2/index.js.map +1 -0
  86. package/dist/Excel/v2/types/index.d.ts +70 -0
  87. package/dist/IdunSoft/from/courses.js +16 -0
  88. package/dist/IdunSoft/from/courses.js.map +1 -0
  89. package/dist/IdunSoft/from/events.js +59 -0
  90. package/dist/IdunSoft/from/events.js.map +1 -0
  91. package/dist/IdunSoft/from/groups.js +17 -0
  92. package/dist/IdunSoft/from/groups.js.map +1 -0
  93. package/dist/IdunSoft/from/index.js +8 -0
  94. package/dist/IdunSoft/from/index.js.map +1 -0
  95. package/dist/IdunSoft/from/locations.js +16 -0
  96. package/dist/IdunSoft/from/locations.js.map +1 -0
  97. package/dist/IdunSoft/from/schedules.d.ts +23 -0
  98. package/dist/IdunSoft/from/schedules.js +20 -0
  99. package/dist/IdunSoft/from/schedules.js.map +1 -0
  100. package/dist/IdunSoft/from/teachers.js +16 -0
  101. package/dist/IdunSoft/from/teachers.js.map +1 -0
  102. package/dist/IdunSoft/index.d.ts +14 -0
  103. package/dist/IdunSoft/index.js +12 -0
  104. package/dist/IdunSoft/index.js.map +1 -0
  105. package/dist/IdunSoft/to/index.d.ts +9 -0
  106. package/dist/IdunSoft/to/index.js +10 -0
  107. package/dist/IdunSoft/to/index.js.map +1 -0
  108. package/dist/IdunSoft/to/schedules.js +58 -0
  109. package/dist/IdunSoft/to/schedules.js.map +1 -0
  110. package/dist/IdunSoft/types/courses.d.ts +8 -0
  111. package/dist/IdunSoft/types/events.d.ts +26 -0
  112. package/dist/IdunSoft/types/groups.d.ts +8 -0
  113. package/dist/IdunSoft/types/index.d.ts +20 -0
  114. package/dist/IdunSoft/types/locations.d.ts +8 -0
  115. package/dist/IdunSoft/types/schedules.d.ts +17 -0
  116. package/dist/IdunSoft/types/teachers.d.ts +8 -0
  117. package/dist/InfoMentor/index.d.ts +10 -0
  118. package/dist/InfoMentor/index.js +10 -0
  119. package/dist/InfoMentor/index.js.map +1 -0
  120. package/dist/InfoMentor/to/index.d.ts +9 -0
  121. package/dist/InfoMentor/to/index.js +10 -0
  122. package/dist/InfoMentor/to/index.js.map +1 -0
  123. package/dist/InfoMentor/to/schedules.js +58 -0
  124. package/dist/InfoMentor/to/schedules.js.map +1 -0
  125. package/dist/InfoMentor/types/events.d.ts +13 -0
  126. package/dist/InfoMentor/types/index.d.ts +9 -0
  127. package/dist/PlanDigital/from/index.js +8 -0
  128. package/dist/PlanDigital/from/index.js.map +1 -0
  129. package/dist/PlanDigital/from/schedules.js +72 -0
  130. package/dist/PlanDigital/from/schedules.js.map +1 -0
  131. package/dist/PlanDigital/index.d.ts +128 -0
  132. package/dist/PlanDigital/index.js +10 -0
  133. package/dist/PlanDigital/index.js.map +1 -0
  134. package/dist/PlanDigital/types/index.d.ts +34 -0
  135. package/dist/Quiculum/file/index.d.ts +9 -0
  136. package/dist/Quiculum/file/index.js +10 -0
  137. package/dist/Quiculum/file/index.js.map +1 -0
  138. package/dist/Quiculum/file/to/index.d.ts +20 -0
  139. package/dist/Quiculum/file/to/index.js +10 -0
  140. package/dist/Quiculum/file/to/index.js.map +1 -0
  141. package/dist/Quiculum/file/to/schedules.js +91 -0
  142. package/dist/Quiculum/file/to/schedules.js.map +1 -0
  143. package/dist/Quiculum/index.d.ts +11 -0
  144. package/dist/Quiculum/index.js +11 -0
  145. package/dist/Quiculum/index.js.map +1 -0
  146. package/dist/RS/from/division.d.ts +7 -0
  147. package/dist/RS/from/division.js +18 -0
  148. package/dist/RS/from/division.js.map +1 -0
  149. package/dist/RS/from/index.js +12 -0
  150. package/dist/RS/from/index.js.map +1 -0
  151. package/dist/RS/from/schedules.d.ts +8 -0
  152. package/dist/RS/from/schedules.js +37 -0
  153. package/dist/RS/from/schedules.js.map +1 -0
  154. package/dist/RS/index.d.ts +18 -0
  155. package/dist/RS/index.js +12 -0
  156. package/dist/RS/index.js.map +1 -0
  157. package/dist/RS/make-connected.d.ts +23 -0
  158. package/dist/RS/make-connected.js +216 -0
  159. package/dist/RS/make-connected.js.map +1 -0
  160. package/dist/RS/to/index.js +8 -0
  161. package/dist/RS/to/index.js.map +1 -0
  162. package/dist/RS/to/initial-configuration.js +43 -0
  163. package/dist/RS/to/initial-configuration.js.map +1 -0
  164. package/dist/RS/to/input/default.js +29 -0
  165. package/dist/RS/to/input/default.js.map +1 -0
  166. package/dist/RS/to/input/dependencies.js +32 -0
  167. package/dist/RS/to/input/dependencies.js.map +1 -0
  168. package/dist/RS/to/input/events.js +102 -0
  169. package/dist/RS/to/input/events.js.map +1 -0
  170. package/dist/RS/to/input/groups.js +32 -0
  171. package/dist/RS/to/input/groups.js.map +1 -0
  172. package/dist/RS/to/input/individuals.js +46 -0
  173. package/dist/RS/to/input/individuals.js.map +1 -0
  174. package/dist/RS/to/input/input.js +61 -0
  175. package/dist/RS/to/input/input.js.map +1 -0
  176. package/dist/RS/to/input/intervals.js +131 -0
  177. package/dist/RS/to/input/intervals.js.map +1 -0
  178. package/dist/RS/to/input/linked-events-sets.js +96 -0
  179. package/dist/RS/to/input/linked-events-sets.js.map +1 -0
  180. package/dist/RS/to/input/locked-times.js +91 -0
  181. package/dist/RS/to/input/locked-times.js.map +1 -0
  182. package/dist/RS/to/input/periods.js +58 -0
  183. package/dist/RS/to/input/periods.js.map +1 -0
  184. package/dist/RS/to/input/settings.js +13 -0
  185. package/dist/RS/to/input/settings.js.map +1 -0
  186. package/dist/RS/to/input/teachers.js +32 -0
  187. package/dist/RS/to/input/teachers.js.map +1 -0
  188. package/dist/RS/to/input/util/parse-days.js +10 -0
  189. package/dist/RS/to/input/util/parse-days.js.map +1 -0
  190. package/dist/RS/to/input/util/parse-group-references.js +50 -0
  191. package/dist/RS/to/input/util/parse-group-references.js.map +1 -0
  192. package/dist/RS/to/input/util/parse-location-references.js +24 -0
  193. package/dist/RS/to/input/util/parse-location-references.js.map +1 -0
  194. package/dist/RS/to/input/util/parse-max-working-hours.js +14 -0
  195. package/dist/RS/to/input/util/parse-max-working-hours.js.map +1 -0
  196. package/dist/RS/to/input/util/parse-minimum-break-length.js +19 -0
  197. package/dist/RS/to/input/util/parse-minimum-break-length.js.map +1 -0
  198. package/dist/RS/to/input/util/util.js +59 -0
  199. package/dist/RS/to/input/util/util.js.map +1 -0
  200. package/dist/RS/to/schedules.d.ts +7 -0
  201. package/dist/RS/to/schedules.js +51 -0
  202. package/dist/RS/to/schedules.js.map +1 -0
  203. package/dist/RS/types/algorithm-parameters.d.ts +17 -0
  204. package/dist/RS/types/configurations.d.ts +10 -0
  205. package/dist/RS/types/event-configuration.d.ts +20 -0
  206. package/dist/RS/types/index.d.ts +21 -0
  207. package/dist/RS/types/schedule-data.d.ts +20 -0
  208. package/dist/RS/types/to.d.ts +65 -0
  209. package/dist/RS/types/to.js +6 -0
  210. package/dist/RS/types/to.js.map +1 -0
  211. package/dist/SS12000/from/activities.js +36 -0
  212. package/dist/SS12000/from/activities.js.map +1 -0
  213. package/dist/SS12000/from/calendar-events.js +20 -0
  214. package/dist/SS12000/from/calendar-events.js.map +1 -0
  215. package/dist/SS12000/from/duties.js +31 -0
  216. package/dist/SS12000/from/duties.js.map +1 -0
  217. package/dist/SS12000/from/groups.js +23 -0
  218. package/dist/SS12000/from/groups.js.map +1 -0
  219. package/dist/SS12000/from/index.js +24 -0
  220. package/dist/SS12000/from/index.js.map +1 -0
  221. package/dist/SS12000/from/persons.js +43 -0
  222. package/dist/SS12000/from/persons.js.map +1 -0
  223. package/dist/SS12000/from/resources.js +9 -0
  224. package/dist/SS12000/from/resources.js.map +1 -0
  225. package/dist/SS12000/from/rooms.js +18 -0
  226. package/dist/SS12000/from/rooms.js.map +1 -0
  227. package/dist/SS12000/from/syllabuses.js +21 -0
  228. package/dist/SS12000/from/syllabuses.js.map +1 -0
  229. package/dist/SS12000/index.d.ts +36 -0
  230. package/dist/SS12000/index.js +12 -0
  231. package/dist/SS12000/index.js.map +1 -0
  232. package/dist/SS12000/to/activities.js +63 -0
  233. package/dist/SS12000/to/activities.js.map +1 -0
  234. package/dist/SS12000/to/calendar-events.js +53 -0
  235. package/dist/SS12000/to/calendar-events.js.map +1 -0
  236. package/dist/SS12000/to/common.js +25 -0
  237. package/dist/SS12000/to/common.js.map +1 -0
  238. package/dist/SS12000/to/duties.js +45 -0
  239. package/dist/SS12000/to/duties.js.map +1 -0
  240. package/dist/SS12000/to/groups.js +49 -0
  241. package/dist/SS12000/to/groups.js.map +1 -0
  242. package/dist/SS12000/to/index.d.ts +56 -0
  243. package/dist/SS12000/to/index.js +24 -0
  244. package/dist/SS12000/to/index.js.map +1 -0
  245. package/dist/SS12000/to/persons.js +40 -0
  246. package/dist/SS12000/to/persons.js.map +1 -0
  247. package/dist/SS12000/to/resources.js +27 -0
  248. package/dist/SS12000/to/resources.js.map +1 -0
  249. package/dist/SS12000/to/rooms.js +32 -0
  250. package/dist/SS12000/to/rooms.js.map +1 -0
  251. package/dist/SS12000/to/syllabuses.js +34 -0
  252. package/dist/SS12000/to/syllabuses.js.map +1 -0
  253. package/dist/SS12000/types/activities.d.ts +41 -0
  254. package/dist/SS12000/types/calendar-events.d.ts +23 -0
  255. package/dist/SS12000/types/codes.d.ts +9 -0
  256. package/dist/SS12000/types/duties.d.ts +23 -0
  257. package/dist/SS12000/types/duty-assignments.d.ts +13 -0
  258. package/dist/SS12000/types/groups.d.ts +23 -0
  259. package/dist/SS12000/types/index.d.ts +21 -0
  260. package/dist/SS12000/types/organisation.d.ts +20 -0
  261. package/dist/SS12000/types/persons.d.ts +30 -0
  262. package/dist/SS12000/types/resources.d.ts +13 -0
  263. package/dist/SS12000/types/rooms.d.ts +17 -0
  264. package/dist/SS12000/types/syllabus.d.ts +19 -0
  265. package/dist/SchoolSoft/api/from/index.js +8 -0
  266. package/dist/SchoolSoft/api/from/index.js.map +1 -0
  267. package/dist/SchoolSoft/api/from/schedules.js +167 -0
  268. package/dist/SchoolSoft/api/from/schedules.js.map +1 -0
  269. package/dist/SchoolSoft/api/index.d.ts +463 -0
  270. package/dist/SchoolSoft/api/index.js +10 -0
  271. package/dist/SchoolSoft/api/index.js.map +1 -0
  272. package/dist/SchoolSoft/api/types/group.d.ts +12 -0
  273. package/dist/SchoolSoft/api/types/index.d.ts +19 -0
  274. package/dist/SchoolSoft/api/types/lesson.d.ts +9 -0
  275. package/dist/SchoolSoft/api/types/location.d.ts +8 -0
  276. package/dist/SchoolSoft/api/types/persons.d.ts +31 -0
  277. package/dist/SchoolSoft/api/types/schedule.d.ts +17 -0
  278. package/dist/SchoolSoft/api/types/teacher.d.ts +13 -0
  279. package/dist/SchoolSoft/file/from/index.js +8 -0
  280. package/dist/SchoolSoft/file/from/index.js.map +1 -0
  281. package/dist/SchoolSoft/file/from/schedules.js +134 -0
  282. package/dist/SchoolSoft/file/from/schedules.js.map +1 -0
  283. package/dist/SchoolSoft/file/index.d.ts +15 -0
  284. package/dist/SchoolSoft/file/index.js +12 -0
  285. package/dist/SchoolSoft/file/index.js.map +1 -0
  286. package/dist/SchoolSoft/file/to/index.d.ts +13 -0
  287. package/dist/SchoolSoft/file/to/index.js +10 -0
  288. package/dist/SchoolSoft/file/to/index.js.map +1 -0
  289. package/dist/SchoolSoft/file/to/schedules.js +107 -0
  290. package/dist/SchoolSoft/file/to/schedules.js.map +1 -0
  291. package/dist/SchoolSoft/file/types/events.d.ts +27 -0
  292. package/dist/SchoolSoft/file/types/index.d.ts +17 -0
  293. package/dist/SchoolSoft/file/types/persons.d.ts +31 -0
  294. package/dist/SchoolSoft/index.d.ts +20 -0
  295. package/dist/SchoolSoft/index.js +14 -0
  296. package/dist/SchoolSoft/index.js.map +1 -0
  297. package/dist/Schoolity/index.d.ts +10 -0
  298. package/dist/Schoolity/index.js +10 -0
  299. package/dist/Schoolity/index.js.map +1 -0
  300. package/dist/Schoolity/txt/index.d.ts +10 -0
  301. package/dist/Schoolity/txt/index.js +10 -0
  302. package/dist/Schoolity/txt/index.js.map +1 -0
  303. package/dist/Schoolity/txt/to/index.d.ts +10 -0
  304. package/dist/Schoolity/txt/to/index.js +10 -0
  305. package/dist/Schoolity/txt/to/index.js.map +1 -0
  306. package/dist/Schoolity/txt/to/schedules.js +331 -0
  307. package/dist/Schoolity/txt/to/schedules.js.map +1 -0
  308. package/dist/Schoolity/txt/types/index.d.ts +119 -0
  309. package/dist/Skola24/index.d.ts +13 -0
  310. package/dist/Skola24/index.js +12 -0
  311. package/dist/Skola24/index.js.map +1 -0
  312. package/dist/Skola24/mdb/from/course-and-events.js +241 -0
  313. package/dist/Skola24/mdb/from/course-and-events.js.map +1 -0
  314. package/dist/Skola24/mdb/from/groups.js +12 -0
  315. package/dist/Skola24/mdb/from/groups.js.map +1 -0
  316. package/dist/Skola24/mdb/from/index.js +8 -0
  317. package/dist/Skola24/mdb/from/index.js.map +1 -0
  318. package/dist/Skola24/mdb/from/locations.js +11 -0
  319. package/dist/Skola24/mdb/from/locations.js.map +1 -0
  320. package/dist/Skola24/mdb/from/schedule.d.ts +27 -0
  321. package/dist/Skola24/mdb/from/schedule.js +97 -0
  322. package/dist/Skola24/mdb/from/schedule.js.map +1 -0
  323. package/dist/Skola24/mdb/from/teachers.js +11 -0
  324. package/dist/Skola24/mdb/from/teachers.js.map +1 -0
  325. package/dist/Skola24/mdb/index.d.ts +12 -0
  326. package/dist/Skola24/mdb/index.js +10 -0
  327. package/dist/Skola24/mdb/index.js.map +1 -0
  328. package/dist/Skola24/mdb/types/Course.d.ts +10 -0
  329. package/dist/Skola24/mdb/types/Group-group-link.d.ts +8 -0
  330. package/dist/Skola24/mdb/types/Group.d.ts +9 -0
  331. package/dist/Skola24/mdb/types/Lesson-group-link.d.ts +8 -0
  332. package/dist/Skola24/mdb/types/Lesson-period-link.d.ts +8 -0
  333. package/dist/Skola24/mdb/types/Lesson-room-link.d.ts +8 -0
  334. package/dist/Skola24/mdb/types/Lesson-teacher-link.d.ts +8 -0
  335. package/dist/Skola24/mdb/types/Lesson.d.ts +13 -0
  336. package/dist/Skola24/mdb/types/Options.d.ts +11 -0
  337. package/dist/Skola24/mdb/types/Period.d.ts +9 -0
  338. package/dist/Skola24/mdb/types/Plan-group-link.d.ts +8 -0
  339. package/dist/Skola24/mdb/types/Plan-period-link.d.ts +8 -0
  340. package/dist/Skola24/mdb/types/Plan-teacher-link.d.ts +10 -0
  341. package/dist/Skola24/mdb/types/Plan.d.ts +9 -0
  342. package/dist/Skola24/mdb/types/Room.d.ts +9 -0
  343. package/dist/Skola24/mdb/types/Schedule.d.ts +39 -0
  344. package/dist/Skola24/mdb/types/Subject.d.ts +8 -0
  345. package/dist/Skola24/mdb/types/Teacher.d.ts +10 -0
  346. package/dist/Skola24/mdb/types/index.d.ts +23 -0
  347. package/dist/Skola24/txt/from/calendar-exceptions.js +68 -0
  348. package/dist/Skola24/txt/from/calendar-exceptions.js.map +1 -0
  349. package/dist/Skola24/txt/from/division.js +44 -0
  350. package/dist/Skola24/txt/from/division.js.map +1 -0
  351. package/dist/Skola24/txt/from/index.js +12 -0
  352. package/dist/Skola24/txt/from/index.js.map +1 -0
  353. package/dist/Skola24/txt/from/period.js +98 -0
  354. package/dist/Skola24/txt/from/period.js.map +1 -0
  355. package/dist/Skola24/txt/from/schedules.d.ts +16 -0
  356. package/dist/Skola24/txt/from/schedules.js +277 -0
  357. package/dist/Skola24/txt/from/schedules.js.map +1 -0
  358. package/dist/Skola24/txt/from/util.js +17 -0
  359. package/dist/Skola24/txt/from/util.js.map +1 -0
  360. package/dist/Skola24/txt/index.d.ts +28 -0
  361. package/dist/Skola24/txt/index.js +12 -0
  362. package/dist/Skola24/txt/index.js.map +1 -0
  363. package/dist/Skola24/txt/to/index.d.ts +10 -0
  364. package/dist/Skola24/txt/to/index.js +10 -0
  365. package/dist/Skola24/txt/to/index.js.map +1 -0
  366. package/dist/Skola24/txt/to/schedules.js +297 -0
  367. package/dist/Skola24/txt/to/schedules.js.map +1 -0
  368. package/dist/Skola24/txt/types/index.d.ts +141 -0
  369. package/dist/common/constants.js +8 -0
  370. package/dist/common/constants.js.map +1 -0
  371. package/dist/common/functions.js +61 -0
  372. package/dist/common/functions.js.map +1 -0
  373. package/dist/common/get-date.js +15 -0
  374. package/dist/common/get-date.js.map +1 -0
  375. package/dist/common/make-chainable/index.js +36 -0
  376. package/dist/common/make-chainable/index.js.map +1 -0
  377. package/dist/common/types.d.ts +42 -0
  378. package/dist/core/from/configurations.js +12 -0
  379. package/dist/core/from/configurations.js.map +1 -0
  380. package/dist/core/from/courses.js +12 -0
  381. package/dist/core/from/courses.js.map +1 -0
  382. package/dist/core/from/events.js +13 -0
  383. package/dist/core/from/events.js.map +1 -0
  384. package/dist/core/from/exceptions.js +12 -0
  385. package/dist/core/from/exceptions.js.map +1 -0
  386. package/dist/core/from/groups.js +12 -0
  387. package/dist/core/from/groups.js.map +1 -0
  388. package/dist/core/from/index.js +23 -0
  389. package/dist/core/from/index.js.map +1 -0
  390. package/dist/core/from/locations.js +12 -0
  391. package/dist/core/from/locations.js.map +1 -0
  392. package/dist/core/from/locked-times.js +12 -0
  393. package/dist/core/from/locked-times.js.map +1 -0
  394. package/dist/core/from/overlap-groups.js +12 -0
  395. package/dist/core/from/overlap-groups.js.map +1 -0
  396. package/dist/core/from/periods.js +12 -0
  397. package/dist/core/from/periods.js.map +1 -0
  398. package/dist/core/from/persons.js +12 -0
  399. package/dist/core/from/persons.js.map +1 -0
  400. package/dist/core/from/root-intervals.js +12 -0
  401. package/dist/core/from/root-intervals.js.map +1 -0
  402. package/dist/core/from/schedules.d.ts +7 -0
  403. package/dist/core/from/schedules.js +38 -0
  404. package/dist/core/from/schedules.js.map +1 -0
  405. package/dist/core/from/settings.js +21 -0
  406. package/dist/core/from/settings.js.map +1 -0
  407. package/dist/core/from/syllabuses.js +13 -0
  408. package/dist/core/from/syllabuses.js.map +1 -0
  409. package/dist/core/from/teachers.js +12 -0
  410. package/dist/core/from/teachers.js.map +1 -0
  411. package/dist/core/index.d.ts +37 -0
  412. package/dist/core/index.js +16 -0
  413. package/dist/core/index.js.map +1 -0
  414. package/dist/core/interfaces/index.js +6 -0
  415. package/dist/core/interfaces/other/companies.d.ts +132 -0
  416. package/dist/core/interfaces/other/companies.js +9 -0
  417. package/dist/core/interfaces/other/companies.js.map +1 -0
  418. package/dist/core/interfaces/other/etc.d.ts +19 -0
  419. package/dist/core/interfaces/other/integrations.d.ts +17 -0
  420. package/dist/core/interfaces/other/operations.d.ts +35 -0
  421. package/dist/core/interfaces/other/policies.d.ts +31 -0
  422. package/dist/core/interfaces/other/sync-logs.d.ts +21 -0
  423. package/dist/core/interfaces/other/users.d.ts +35 -0
  424. package/dist/core/interfaces/vertices/companies.d.ts +7 -0
  425. package/dist/core/interfaces/vertices/configurations.d.ts +57 -0
  426. package/dist/core/interfaces/vertices/courses.d.ts +67 -0
  427. package/dist/core/interfaces/vertices/division-settings.d.ts +56 -0
  428. package/dist/core/interfaces/vertices/divisions.d.ts +30 -0
  429. package/dist/core/interfaces/vertices/events.d.ts +104 -0
  430. package/dist/core/interfaces/vertices/exceptions.d.ts +73 -0
  431. package/dist/core/interfaces/vertices/generations.d.ts +21 -0
  432. package/dist/core/interfaces/vertices/groups.d.ts +52 -0
  433. package/dist/core/interfaces/vertices/index.d.ts +230 -0
  434. package/dist/core/interfaces/vertices/index.js +3 -0
  435. package/dist/core/interfaces/vertices/linked-events-sets.d.ts +18 -0
  436. package/dist/core/interfaces/vertices/locations.d.ts +21 -0
  437. package/dist/core/interfaces/vertices/locked-times.d.ts +35 -0
  438. package/dist/core/interfaces/vertices/overlap-groups.d.ts +16 -0
  439. package/dist/core/interfaces/vertices/periods.d.ts +13 -0
  440. package/dist/core/interfaces/vertices/persons.d.ts +31 -0
  441. package/dist/core/interfaces/vertices/properties/belongs-to.d.ts +10 -0
  442. package/dist/core/interfaces/vertices/properties/coalesced.d.ts +7 -0
  443. package/dist/core/interfaces/vertices/properties/days.d.ts +9 -0
  444. package/dist/core/interfaces/vertices/properties/index.d.ts +15 -0
  445. package/dist/core/interfaces/vertices/properties/intervals.d.ts +10 -0
  446. package/dist/core/interfaces/vertices/properties/maximum-schedule-span.d.ts +19 -0
  447. package/dist/core/interfaces/vertices/properties/min-break-length.d.ts +5 -0
  448. package/dist/core/interfaces/vertices/properties/planned-scheduled-duration.d.ts +13 -0
  449. package/dist/core/interfaces/vertices/properties/species.d.ts +9 -0
  450. package/dist/core/interfaces/vertices/properties/tags.d.ts +9 -0
  451. package/dist/core/interfaces/vertices/properties/week.d.ts +22 -0
  452. package/dist/core/interfaces/vertices/properties/week.js +6 -0
  453. package/dist/core/interfaces/vertices/properties/week.js.map +1 -0
  454. package/dist/core/interfaces/vertices/root-intervals.d.ts +12 -0
  455. package/dist/core/interfaces/vertices/syllabuses.d.ts +17 -0
  456. package/dist/core/interfaces/vertices/teachers.d.ts +42 -0
  457. package/dist/core/interfaces/vertices/threads.d.ts +32 -0
  458. package/dist/core/interfaces/vertices/users.d.ts +10 -0
  459. package/dist/core/interfaces/vertices/util/common.d.ts +28 -0
  460. package/dist/core/interfaces/vertices/util/custom-vertex-export/assert-no-invalid-expand-keys.d.ts +16 -0
  461. package/dist/core/interfaces/vertices/util/custom-vertex-export/index.d.ts +34 -0
  462. package/dist/core/interfaces/vertices/util/custom-vertex-export/util.d.ts +53 -0
  463. package/dist/core/interfaces/vertices/util/deep-vertex-export/index.d.ts +65 -0
  464. package/dist/core/interfaces/vertices/util/edges.d.ts +123 -0
  465. package/dist/core/interfaces/vertices/util/keys-of.d.ts +27 -0
  466. package/dist/core/interfaces/vertices/util/serialized-vertex-export.d.ts +12 -0
  467. package/dist/core/interfaces/vertices/util/util.d.ts +84 -0
  468. package/dist/core/interfaces/vertices/util/vertex-query/index.d.ts +51 -0
  469. package/dist/core/interfaces/vertices/util/vertex-query/util.d.ts +13 -0
  470. package/dist/core/interfaces/vertices/util/vertex.d.ts +71 -0
  471. package/dist/core/interfaces/vertices/vertex-query.d.ts +111 -0
  472. package/dist/core/interfaces/vertices/vertex-query.js +114 -0
  473. package/dist/core/interfaces/vertices/vertex-query.js.map +1 -0
  474. package/dist/core/to/configurations.js +17 -0
  475. package/dist/core/to/configurations.js.map +1 -0
  476. package/dist/core/to/courses.js +42 -0
  477. package/dist/core/to/courses.js.map +1 -0
  478. package/dist/core/to/division.js +10 -0
  479. package/dist/core/to/division.js.map +1 -0
  480. package/dist/core/to/events.js +44 -0
  481. package/dist/core/to/events.js.map +1 -0
  482. package/dist/core/to/exceptions.js +30 -0
  483. package/dist/core/to/exceptions.js.map +1 -0
  484. package/dist/core/to/groups.js +26 -0
  485. package/dist/core/to/groups.js.map +1 -0
  486. package/dist/core/to/index.d.ts +9 -0
  487. package/dist/core/to/index.js +10 -0
  488. package/dist/core/to/index.js.map +1 -0
  489. package/dist/core/to/linked-events-sets.js +18 -0
  490. package/dist/core/to/linked-events-sets.js.map +1 -0
  491. package/dist/core/to/locations.js +22 -0
  492. package/dist/core/to/locations.js.map +1 -0
  493. package/dist/core/to/locked-times.js +21 -0
  494. package/dist/core/to/locked-times.js.map +1 -0
  495. package/dist/core/to/overlap-groups.js +28 -0
  496. package/dist/core/to/overlap-groups.js.map +1 -0
  497. package/dist/core/to/periods.js +17 -0
  498. package/dist/core/to/periods.js.map +1 -0
  499. package/dist/core/to/persons.js +18 -0
  500. package/dist/core/to/persons.js.map +1 -0
  501. package/dist/core/to/root-intervals.js +17 -0
  502. package/dist/core/to/root-intervals.js.map +1 -0
  503. package/dist/core/to/schedules.d.ts +48 -0
  504. package/dist/core/to/schedules.js +44 -0
  505. package/dist/core/to/schedules.js.map +1 -0
  506. package/dist/core/to/settings.js +19 -0
  507. package/dist/core/to/settings.js.map +1 -0
  508. package/dist/core/to/syllabuses.js +17 -0
  509. package/dist/core/to/syllabuses.js.map +1 -0
  510. package/dist/core/to/teachers.js +25 -0
  511. package/dist/core/to/teachers.js.map +1 -0
  512. package/dist/core/to/util.d.ts +8 -0
  513. package/dist/core/to/util.js +25 -0
  514. package/dist/core/to/util.js.map +1 -0
  515. package/dist/core/types/common/index.d.ts +8 -0
  516. package/dist/core/types/common/meta.d.ts +15 -0
  517. package/dist/core/types/index.d.ts +136 -0
  518. package/dist/core/util.js +47 -0
  519. package/dist/core/util.js.map +1 -0
  520. package/dist/identify/constants/index.d.ts +144 -0
  521. package/dist/identify/constants/index.js +317 -0
  522. package/dist/identify/constants/index.js.map +1 -0
  523. package/dist/identify/index.d.ts +8 -0
  524. package/dist/identify/index.js +94 -0
  525. package/dist/identify/index.js.map +1 -0
  526. package/dist/identify/types/index.d.ts +15 -0
  527. package/dist/index.d.ts +57 -0
  528. package/dist/index.js +22 -0
  529. package/dist/sdui/from/classes.js +8 -0
  530. package/dist/sdui/from/classes.js.map +1 -0
  531. package/dist/sdui/from/courses.js +14 -0
  532. package/dist/sdui/from/courses.js.map +1 -0
  533. package/dist/sdui/from/holidays.js +8 -0
  534. package/dist/sdui/from/holidays.js.map +1 -0
  535. package/dist/sdui/from/hours.js +6 -0
  536. package/dist/sdui/from/hours.js.map +1 -0
  537. package/dist/sdui/from/index.js +30 -0
  538. package/dist/sdui/from/index.js.map +1 -0
  539. package/dist/sdui/from/lessons.js +23 -0
  540. package/dist/sdui/from/lessons.js.map +1 -0
  541. package/dist/sdui/from/rooms.js +11 -0
  542. package/dist/sdui/from/rooms.js.map +1 -0
  543. package/dist/sdui/from/schedules.d.ts +19 -0
  544. package/dist/sdui/from/schedules.js +24 -0
  545. package/dist/sdui/from/schedules.js.map +1 -0
  546. package/dist/sdui/from/school-years.js +11 -0
  547. package/dist/sdui/from/school-years.js.map +1 -0
  548. package/dist/sdui/from/subjects.js +6 -0
  549. package/dist/sdui/from/subjects.js.map +1 -0
  550. package/dist/sdui/from/substitution-plans.js +10 -0
  551. package/dist/sdui/from/substitution-plans.js.map +1 -0
  552. package/dist/sdui/from/teachers.js +15 -0
  553. package/dist/sdui/from/teachers.js.map +1 -0
  554. package/dist/sdui/index.d.ts +32 -0
  555. package/dist/sdui/index.js +12 -0
  556. package/dist/sdui/index.js.map +1 -0
  557. package/dist/sdui/to/classes.js +10 -0
  558. package/dist/sdui/to/classes.js.map +1 -0
  559. package/dist/sdui/to/courses.js +16 -0
  560. package/dist/sdui/to/courses.js.map +1 -0
  561. package/dist/sdui/to/holidays.js +16 -0
  562. package/dist/sdui/to/holidays.js.map +1 -0
  563. package/dist/sdui/to/hours.js +15 -0
  564. package/dist/sdui/to/hours.js.map +1 -0
  565. package/dist/sdui/to/index.d.ts +20 -0
  566. package/dist/sdui/to/index.js +30 -0
  567. package/dist/sdui/to/index.js.map +1 -0
  568. package/dist/sdui/to/lessons.js +24 -0
  569. package/dist/sdui/to/lessons.js.map +1 -0
  570. package/dist/sdui/to/rooms.js +13 -0
  571. package/dist/sdui/to/rooms.js.map +1 -0
  572. package/dist/sdui/to/schedules.js +26 -0
  573. package/dist/sdui/to/schedules.js.map +1 -0
  574. package/dist/sdui/to/school-years.js +18 -0
  575. package/dist/sdui/to/school-years.js.map +1 -0
  576. package/dist/sdui/to/subjects.js +8 -0
  577. package/dist/sdui/to/subjects.js.map +1 -0
  578. package/dist/sdui/to/substitution-plans.js +49 -0
  579. package/dist/sdui/to/substitution-plans.js.map +1 -0
  580. package/dist/sdui/to/teachers.js +20 -0
  581. package/dist/sdui/to/teachers.js.map +1 -0
  582. package/dist/sdui/types/classes.d.ts +8 -0
  583. package/dist/sdui/types/courses.d.ts +12 -0
  584. package/dist/sdui/types/holidays.d.ts +10 -0
  585. package/dist/sdui/types/hours.d.ts +10 -0
  586. package/dist/sdui/types/index.d.ts +31 -0
  587. package/dist/sdui/types/lessons.d.ts +13 -0
  588. package/dist/sdui/types/rooms.d.ts +9 -0
  589. package/dist/sdui/types/schedules.d.ts +27 -0
  590. package/dist/sdui/types/school-years.d.ts +9 -0
  591. package/dist/sdui/types/subjects.d.ts +9 -0
  592. package/dist/sdui/types/substitution-plans.d.ts +30 -0
  593. package/dist/sdui/types/teachers.d.ts +10 -0
  594. package/dist/vKlass/from/index.js +8 -0
  595. package/dist/vKlass/from/index.js.map +1 -0
  596. package/dist/vKlass/from/schedule.d.ts +23 -0
  597. package/dist/vKlass/from/schedule.js +71 -0
  598. package/dist/vKlass/from/schedule.js.map +1 -0
  599. package/dist/vKlass/index.d.ts +13 -0
  600. package/dist/vKlass/index.js +12 -0
  601. package/dist/vKlass/index.js.map +1 -0
  602. package/dist/vKlass/to/index.d.ts +9 -0
  603. package/dist/vKlass/to/index.js +10 -0
  604. package/dist/vKlass/to/index.js.map +1 -0
  605. package/dist/vKlass/to/schedules.d.ts +14 -0
  606. package/dist/vKlass/to/schedules.js +93 -0
  607. package/dist/vKlass/to/schedules.js.map +1 -0
  608. package/dist/vKlass/types/index.d.ts +53 -0
  609. package/package.json +3 -3
  610. package/dist/Additio/from/courses.mjs +0 -28
  611. package/dist/Additio/from/courses.mjs.map +0 -1
  612. package/dist/Additio/from/events.mjs +0 -61
  613. package/dist/Additio/from/events.mjs.map +0 -1
  614. package/dist/Additio/from/groups.mjs +0 -14
  615. package/dist/Additio/from/groups.mjs.map +0 -1
  616. package/dist/Additio/from/index.mjs +0 -8
  617. package/dist/Additio/from/index.mjs.map +0 -1
  618. package/dist/Additio/from/locations.mjs +0 -13
  619. package/dist/Additio/from/locations.mjs.map +0 -1
  620. package/dist/Additio/from/persons.mjs +0 -30
  621. package/dist/Additio/from/persons.mjs.map +0 -1
  622. package/dist/Additio/from/schedules.d.mts +0 -39
  623. package/dist/Additio/from/schedules.mjs +0 -34
  624. package/dist/Additio/from/schedules.mjs.map +0 -1
  625. package/dist/Additio/from/teachers.mjs +0 -25
  626. package/dist/Additio/from/teachers.mjs.map +0 -1
  627. package/dist/Additio/index.d.mts +0 -14
  628. package/dist/Additio/index.mjs +0 -12
  629. package/dist/Additio/index.mjs.map +0 -1
  630. package/dist/Additio/to/index.d.mts +0 -23
  631. package/dist/Additio/to/index.mjs +0 -10
  632. package/dist/Additio/to/index.mjs.map +0 -1
  633. package/dist/Additio/to/schedules.mjs +0 -109
  634. package/dist/Additio/to/schedules.mjs.map +0 -1
  635. package/dist/Additio/types/course-sections.d.mts +0 -20
  636. package/dist/Additio/types/courses.d.mts +0 -17
  637. package/dist/Additio/types/index.d.mts +0 -27
  638. package/dist/Additio/types/lessons.d.mts +0 -27
  639. package/dist/Additio/types/options.d.mts +0 -16
  640. package/dist/Additio/types/primary-groups.d.mts +0 -30
  641. package/dist/Additio/types/rooms.d.mts +0 -12
  642. package/dist/Additio/types/schedule-groups.d.mts +0 -23
  643. package/dist/Additio/types/schedules.d.mts +0 -27
  644. package/dist/Additio/types/schools.d.mts +0 -11
  645. package/dist/Additio/types/users.d.mts +0 -20
  646. package/dist/Admentum/from/courses.mjs +0 -32
  647. package/dist/Admentum/from/courses.mjs.map +0 -1
  648. package/dist/Admentum/from/events.mjs +0 -62
  649. package/dist/Admentum/from/events.mjs.map +0 -1
  650. package/dist/Admentum/from/groups.mjs +0 -14
  651. package/dist/Admentum/from/groups.mjs.map +0 -1
  652. package/dist/Admentum/from/index.mjs +0 -8
  653. package/dist/Admentum/from/index.mjs.map +0 -1
  654. package/dist/Admentum/from/locations.mjs +0 -13
  655. package/dist/Admentum/from/locations.mjs.map +0 -1
  656. package/dist/Admentum/from/persons.mjs +0 -30
  657. package/dist/Admentum/from/persons.mjs.map +0 -1
  658. package/dist/Admentum/from/schedules.d.mts +0 -39
  659. package/dist/Admentum/from/schedules.mjs +0 -34
  660. package/dist/Admentum/from/schedules.mjs.map +0 -1
  661. package/dist/Admentum/from/teachers.mjs +0 -25
  662. package/dist/Admentum/from/teachers.mjs.map +0 -1
  663. package/dist/Admentum/index.d.mts +0 -14
  664. package/dist/Admentum/index.mjs +0 -12
  665. package/dist/Admentum/index.mjs.map +0 -1
  666. package/dist/Admentum/to/index.d.mts +0 -20
  667. package/dist/Admentum/to/index.mjs +0 -10
  668. package/dist/Admentum/to/index.mjs.map +0 -1
  669. package/dist/Admentum/to/schedules.mjs +0 -91
  670. package/dist/Admentum/to/schedules.mjs.map +0 -1
  671. package/dist/Admentum/types/course-sections.d.mts +0 -20
  672. package/dist/Admentum/types/courses.d.mts +0 -17
  673. package/dist/Admentum/types/index.d.mts +0 -25
  674. package/dist/Admentum/types/lessons.d.mts +0 -27
  675. package/dist/Admentum/types/primary-groups.d.mts +0 -30
  676. package/dist/Admentum/types/rooms.d.mts +0 -12
  677. package/dist/Admentum/types/schedule-groups.d.mts +0 -23
  678. package/dist/Admentum/types/schedules.d.mts +0 -27
  679. package/dist/Admentum/types/schools.d.mts +0 -11
  680. package/dist/Admentum/types/users.d.mts +0 -20
  681. package/dist/Excel/index.d.mts +0 -307
  682. package/dist/Excel/index.mjs +0 -13
  683. package/dist/Excel/index.mjs.map +0 -1
  684. package/dist/Excel/v1/from/index.mjs +0 -289
  685. package/dist/Excel/v1/from/index.mjs.map +0 -1
  686. package/dist/Excel/v1/index.d.mts +0 -240
  687. package/dist/Excel/v1/index.mjs +0 -10
  688. package/dist/Excel/v1/index.mjs.map +0 -1
  689. package/dist/Excel/v1/types/index.d.mts +0 -44
  690. package/dist/Excel/v2/from/index.mjs +0 -528
  691. package/dist/Excel/v2/from/index.mjs.map +0 -1
  692. package/dist/Excel/v2/index.d.mts +0 -302
  693. package/dist/Excel/v2/index.mjs +0 -10
  694. package/dist/Excel/v2/index.mjs.map +0 -1
  695. package/dist/Excel/v2/types/index.d.mts +0 -70
  696. package/dist/IdunSoft/from/courses.mjs +0 -16
  697. package/dist/IdunSoft/from/courses.mjs.map +0 -1
  698. package/dist/IdunSoft/from/events.mjs +0 -58
  699. package/dist/IdunSoft/from/events.mjs.map +0 -1
  700. package/dist/IdunSoft/from/groups.mjs +0 -17
  701. package/dist/IdunSoft/from/groups.mjs.map +0 -1
  702. package/dist/IdunSoft/from/index.mjs +0 -8
  703. package/dist/IdunSoft/from/index.mjs.map +0 -1
  704. package/dist/IdunSoft/from/locations.mjs +0 -16
  705. package/dist/IdunSoft/from/locations.mjs.map +0 -1
  706. package/dist/IdunSoft/from/schedules.d.mts +0 -24
  707. package/dist/IdunSoft/from/schedules.mjs +0 -20
  708. package/dist/IdunSoft/from/schedules.mjs.map +0 -1
  709. package/dist/IdunSoft/from/teachers.mjs +0 -16
  710. package/dist/IdunSoft/from/teachers.mjs.map +0 -1
  711. package/dist/IdunSoft/index.d.mts +0 -14
  712. package/dist/IdunSoft/index.mjs +0 -12
  713. package/dist/IdunSoft/index.mjs.map +0 -1
  714. package/dist/IdunSoft/to/index.d.mts +0 -10
  715. package/dist/IdunSoft/to/index.mjs +0 -10
  716. package/dist/IdunSoft/to/index.mjs.map +0 -1
  717. package/dist/IdunSoft/to/schedules.mjs +0 -55
  718. package/dist/IdunSoft/to/schedules.mjs.map +0 -1
  719. package/dist/IdunSoft/types/courses.d.mts +0 -8
  720. package/dist/IdunSoft/types/events.d.mts +0 -26
  721. package/dist/IdunSoft/types/groups.d.mts +0 -8
  722. package/dist/IdunSoft/types/index.d.mts +0 -20
  723. package/dist/IdunSoft/types/locations.d.mts +0 -8
  724. package/dist/IdunSoft/types/schedules.d.mts +0 -17
  725. package/dist/IdunSoft/types/teachers.d.mts +0 -8
  726. package/dist/InfoMentor/index.d.mts +0 -10
  727. package/dist/InfoMentor/index.mjs +0 -10
  728. package/dist/InfoMentor/index.mjs.map +0 -1
  729. package/dist/InfoMentor/to/index.d.mts +0 -10
  730. package/dist/InfoMentor/to/index.mjs +0 -10
  731. package/dist/InfoMentor/to/index.mjs.map +0 -1
  732. package/dist/InfoMentor/to/schedules.mjs +0 -57
  733. package/dist/InfoMentor/to/schedules.mjs.map +0 -1
  734. package/dist/InfoMentor/types/events.d.mts +0 -13
  735. package/dist/InfoMentor/types/index.d.mts +0 -9
  736. package/dist/PlanDigital/from/index.mjs +0 -8
  737. package/dist/PlanDigital/from/index.mjs.map +0 -1
  738. package/dist/PlanDigital/from/schedules.mjs +0 -70
  739. package/dist/PlanDigital/from/schedules.mjs.map +0 -1
  740. package/dist/PlanDigital/index.d.mts +0 -129
  741. package/dist/PlanDigital/index.mjs +0 -10
  742. package/dist/PlanDigital/index.mjs.map +0 -1
  743. package/dist/PlanDigital/types/index.d.mts +0 -34
  744. package/dist/Quiculum/file/index.d.mts +0 -9
  745. package/dist/Quiculum/file/index.mjs +0 -10
  746. package/dist/Quiculum/file/index.mjs.map +0 -1
  747. package/dist/Quiculum/file/to/index.d.mts +0 -21
  748. package/dist/Quiculum/file/to/index.mjs +0 -10
  749. package/dist/Quiculum/file/to/index.mjs.map +0 -1
  750. package/dist/Quiculum/file/to/schedules.mjs +0 -87
  751. package/dist/Quiculum/file/to/schedules.mjs.map +0 -1
  752. package/dist/Quiculum/index.d.mts +0 -11
  753. package/dist/Quiculum/index.mjs +0 -11
  754. package/dist/Quiculum/index.mjs.map +0 -1
  755. package/dist/RS/from/division.d.mts +0 -8
  756. package/dist/RS/from/division.mjs +0 -17
  757. package/dist/RS/from/division.mjs.map +0 -1
  758. package/dist/RS/from/index.mjs +0 -12
  759. package/dist/RS/from/index.mjs.map +0 -1
  760. package/dist/RS/from/schedules.d.mts +0 -9
  761. package/dist/RS/from/schedules.mjs +0 -37
  762. package/dist/RS/from/schedules.mjs.map +0 -1
  763. package/dist/RS/index.d.mts +0 -18
  764. package/dist/RS/index.mjs +0 -12
  765. package/dist/RS/index.mjs.map +0 -1
  766. package/dist/RS/make-connected.d.mts +0 -25
  767. package/dist/RS/make-connected.mjs +0 -207
  768. package/dist/RS/make-connected.mjs.map +0 -1
  769. package/dist/RS/to/index.mjs +0 -8
  770. package/dist/RS/to/index.mjs.map +0 -1
  771. package/dist/RS/to/initial-configuration.mjs +0 -41
  772. package/dist/RS/to/initial-configuration.mjs.map +0 -1
  773. package/dist/RS/to/input/default.mjs +0 -28
  774. package/dist/RS/to/input/default.mjs.map +0 -1
  775. package/dist/RS/to/input/dependencies.mjs +0 -31
  776. package/dist/RS/to/input/dependencies.mjs.map +0 -1
  777. package/dist/RS/to/input/events.mjs +0 -101
  778. package/dist/RS/to/input/events.mjs.map +0 -1
  779. package/dist/RS/to/input/groups.mjs +0 -32
  780. package/dist/RS/to/input/groups.mjs.map +0 -1
  781. package/dist/RS/to/input/individuals.mjs +0 -45
  782. package/dist/RS/to/input/individuals.mjs.map +0 -1
  783. package/dist/RS/to/input/input.mjs +0 -59
  784. package/dist/RS/to/input/input.mjs.map +0 -1
  785. package/dist/RS/to/input/intervals.mjs +0 -129
  786. package/dist/RS/to/input/intervals.mjs.map +0 -1
  787. package/dist/RS/to/input/linked-events-sets.mjs +0 -96
  788. package/dist/RS/to/input/linked-events-sets.mjs.map +0 -1
  789. package/dist/RS/to/input/locked-times.mjs +0 -88
  790. package/dist/RS/to/input/locked-times.mjs.map +0 -1
  791. package/dist/RS/to/input/periods.mjs +0 -57
  792. package/dist/RS/to/input/periods.mjs.map +0 -1
  793. package/dist/RS/to/input/settings.mjs +0 -13
  794. package/dist/RS/to/input/settings.mjs.map +0 -1
  795. package/dist/RS/to/input/teachers.mjs +0 -32
  796. package/dist/RS/to/input/teachers.mjs.map +0 -1
  797. package/dist/RS/to/input/util/parse-days.mjs +0 -10
  798. package/dist/RS/to/input/util/parse-days.mjs.map +0 -1
  799. package/dist/RS/to/input/util/parse-group-references.mjs +0 -50
  800. package/dist/RS/to/input/util/parse-group-references.mjs.map +0 -1
  801. package/dist/RS/to/input/util/parse-location-references.mjs +0 -24
  802. package/dist/RS/to/input/util/parse-location-references.mjs.map +0 -1
  803. package/dist/RS/to/input/util/parse-max-working-hours.mjs +0 -14
  804. package/dist/RS/to/input/util/parse-max-working-hours.mjs.map +0 -1
  805. package/dist/RS/to/input/util/parse-minimum-break-length.mjs +0 -19
  806. package/dist/RS/to/input/util/parse-minimum-break-length.mjs.map +0 -1
  807. package/dist/RS/to/input/util/util.mjs +0 -58
  808. package/dist/RS/to/input/util/util.mjs.map +0 -1
  809. package/dist/RS/to/schedules.d.mts +0 -7
  810. package/dist/RS/to/schedules.mjs +0 -51
  811. package/dist/RS/to/schedules.mjs.map +0 -1
  812. package/dist/RS/types/algorithm-parameters.d.mts +0 -17
  813. package/dist/RS/types/configurations.d.mts +0 -10
  814. package/dist/RS/types/event-configuration.d.mts +0 -20
  815. package/dist/RS/types/index.d.mts +0 -21
  816. package/dist/RS/types/schedule-data.d.mts +0 -20
  817. package/dist/RS/types/to.d.mts +0 -64
  818. package/dist/RS/types/to.mjs +0 -6
  819. package/dist/RS/types/to.mjs.map +0 -1
  820. package/dist/SS12000/from/activities.mjs +0 -35
  821. package/dist/SS12000/from/activities.mjs.map +0 -1
  822. package/dist/SS12000/from/calendar-events.mjs +0 -20
  823. package/dist/SS12000/from/calendar-events.mjs.map +0 -1
  824. package/dist/SS12000/from/duties.mjs +0 -31
  825. package/dist/SS12000/from/duties.mjs.map +0 -1
  826. package/dist/SS12000/from/groups.mjs +0 -23
  827. package/dist/SS12000/from/groups.mjs.map +0 -1
  828. package/dist/SS12000/from/index.mjs +0 -24
  829. package/dist/SS12000/from/index.mjs.map +0 -1
  830. package/dist/SS12000/from/persons.mjs +0 -43
  831. package/dist/SS12000/from/persons.mjs.map +0 -1
  832. package/dist/SS12000/from/resources.mjs +0 -9
  833. package/dist/SS12000/from/resources.mjs.map +0 -1
  834. package/dist/SS12000/from/rooms.mjs +0 -18
  835. package/dist/SS12000/from/rooms.mjs.map +0 -1
  836. package/dist/SS12000/from/syllabuses.mjs +0 -21
  837. package/dist/SS12000/from/syllabuses.mjs.map +0 -1
  838. package/dist/SS12000/index.d.mts +0 -37
  839. package/dist/SS12000/index.mjs +0 -12
  840. package/dist/SS12000/index.mjs.map +0 -1
  841. package/dist/SS12000/to/activities.mjs +0 -63
  842. package/dist/SS12000/to/activities.mjs.map +0 -1
  843. package/dist/SS12000/to/calendar-events.mjs +0 -53
  844. package/dist/SS12000/to/calendar-events.mjs.map +0 -1
  845. package/dist/SS12000/to/common.mjs +0 -25
  846. package/dist/SS12000/to/common.mjs.map +0 -1
  847. package/dist/SS12000/to/duties.mjs +0 -45
  848. package/dist/SS12000/to/duties.mjs.map +0 -1
  849. package/dist/SS12000/to/groups.mjs +0 -49
  850. package/dist/SS12000/to/groups.mjs.map +0 -1
  851. package/dist/SS12000/to/index.d.mts +0 -57
  852. package/dist/SS12000/to/index.mjs +0 -24
  853. package/dist/SS12000/to/index.mjs.map +0 -1
  854. package/dist/SS12000/to/persons.mjs +0 -40
  855. package/dist/SS12000/to/persons.mjs.map +0 -1
  856. package/dist/SS12000/to/resources.mjs +0 -27
  857. package/dist/SS12000/to/resources.mjs.map +0 -1
  858. package/dist/SS12000/to/rooms.mjs +0 -32
  859. package/dist/SS12000/to/rooms.mjs.map +0 -1
  860. package/dist/SS12000/to/syllabuses.mjs +0 -34
  861. package/dist/SS12000/to/syllabuses.mjs.map +0 -1
  862. package/dist/SS12000/types/activities.d.mts +0 -41
  863. package/dist/SS12000/types/calendar-events.d.mts +0 -23
  864. package/dist/SS12000/types/codes.d.mts +0 -9
  865. package/dist/SS12000/types/duties.d.mts +0 -23
  866. package/dist/SS12000/types/duty-assignments.d.mts +0 -13
  867. package/dist/SS12000/types/groups.d.mts +0 -23
  868. package/dist/SS12000/types/index.d.mts +0 -21
  869. package/dist/SS12000/types/organisation.d.mts +0 -20
  870. package/dist/SS12000/types/persons.d.mts +0 -30
  871. package/dist/SS12000/types/resources.d.mts +0 -13
  872. package/dist/SS12000/types/rooms.d.mts +0 -17
  873. package/dist/SS12000/types/syllabus.d.mts +0 -19
  874. package/dist/SchoolSoft/api/from/index.mjs +0 -8
  875. package/dist/SchoolSoft/api/from/index.mjs.map +0 -1
  876. package/dist/SchoolSoft/api/from/schedules.mjs +0 -163
  877. package/dist/SchoolSoft/api/from/schedules.mjs.map +0 -1
  878. package/dist/SchoolSoft/api/index.d.mts +0 -464
  879. package/dist/SchoolSoft/api/index.mjs +0 -10
  880. package/dist/SchoolSoft/api/index.mjs.map +0 -1
  881. package/dist/SchoolSoft/api/types/group.d.mts +0 -12
  882. package/dist/SchoolSoft/api/types/index.d.mts +0 -19
  883. package/dist/SchoolSoft/api/types/lesson.d.mts +0 -9
  884. package/dist/SchoolSoft/api/types/location.d.mts +0 -8
  885. package/dist/SchoolSoft/api/types/persons.d.mts +0 -31
  886. package/dist/SchoolSoft/api/types/schedule.d.mts +0 -17
  887. package/dist/SchoolSoft/api/types/teacher.d.mts +0 -13
  888. package/dist/SchoolSoft/file/from/index.mjs +0 -8
  889. package/dist/SchoolSoft/file/from/index.mjs.map +0 -1
  890. package/dist/SchoolSoft/file/from/schedules.mjs +0 -130
  891. package/dist/SchoolSoft/file/from/schedules.mjs.map +0 -1
  892. package/dist/SchoolSoft/file/index.d.mts +0 -16
  893. package/dist/SchoolSoft/file/index.mjs +0 -12
  894. package/dist/SchoolSoft/file/index.mjs.map +0 -1
  895. package/dist/SchoolSoft/file/to/index.d.mts +0 -14
  896. package/dist/SchoolSoft/file/to/index.mjs +0 -10
  897. package/dist/SchoolSoft/file/to/index.mjs.map +0 -1
  898. package/dist/SchoolSoft/file/to/schedules.mjs +0 -106
  899. package/dist/SchoolSoft/file/to/schedules.mjs.map +0 -1
  900. package/dist/SchoolSoft/file/types/events.d.mts +0 -27
  901. package/dist/SchoolSoft/file/types/index.d.mts +0 -17
  902. package/dist/SchoolSoft/file/types/persons.d.mts +0 -31
  903. package/dist/SchoolSoft/index.d.mts +0 -21
  904. package/dist/SchoolSoft/index.mjs +0 -14
  905. package/dist/SchoolSoft/index.mjs.map +0 -1
  906. package/dist/Schoolity/index.d.mts +0 -10
  907. package/dist/Schoolity/index.mjs +0 -10
  908. package/dist/Schoolity/index.mjs.map +0 -1
  909. package/dist/Schoolity/txt/index.d.mts +0 -10
  910. package/dist/Schoolity/txt/index.mjs +0 -10
  911. package/dist/Schoolity/txt/index.mjs.map +0 -1
  912. package/dist/Schoolity/txt/to/index.d.mts +0 -11
  913. package/dist/Schoolity/txt/to/index.mjs +0 -10
  914. package/dist/Schoolity/txt/to/index.mjs.map +0 -1
  915. package/dist/Schoolity/txt/to/schedules.mjs +0 -324
  916. package/dist/Schoolity/txt/to/schedules.mjs.map +0 -1
  917. package/dist/Schoolity/txt/types/index.d.mts +0 -119
  918. package/dist/Skola24/index.d.mts +0 -13
  919. package/dist/Skola24/index.mjs +0 -12
  920. package/dist/Skola24/index.mjs.map +0 -1
  921. package/dist/Skola24/mdb/from/course-and-events.mjs +0 -239
  922. package/dist/Skola24/mdb/from/course-and-events.mjs.map +0 -1
  923. package/dist/Skola24/mdb/from/groups.mjs +0 -12
  924. package/dist/Skola24/mdb/from/groups.mjs.map +0 -1
  925. package/dist/Skola24/mdb/from/index.mjs +0 -8
  926. package/dist/Skola24/mdb/from/index.mjs.map +0 -1
  927. package/dist/Skola24/mdb/from/locations.mjs +0 -11
  928. package/dist/Skola24/mdb/from/locations.mjs.map +0 -1
  929. package/dist/Skola24/mdb/from/schedule.d.mts +0 -28
  930. package/dist/Skola24/mdb/from/schedule.mjs +0 -97
  931. package/dist/Skola24/mdb/from/schedule.mjs.map +0 -1
  932. package/dist/Skola24/mdb/from/teachers.mjs +0 -11
  933. package/dist/Skola24/mdb/from/teachers.mjs.map +0 -1
  934. package/dist/Skola24/mdb/index.d.mts +0 -12
  935. package/dist/Skola24/mdb/index.mjs +0 -10
  936. package/dist/Skola24/mdb/index.mjs.map +0 -1
  937. package/dist/Skola24/mdb/types/Course.d.mts +0 -10
  938. package/dist/Skola24/mdb/types/Group-group-link.d.mts +0 -8
  939. package/dist/Skola24/mdb/types/Group.d.mts +0 -9
  940. package/dist/Skola24/mdb/types/Lesson-group-link.d.mts +0 -8
  941. package/dist/Skola24/mdb/types/Lesson-period-link.d.mts +0 -8
  942. package/dist/Skola24/mdb/types/Lesson-room-link.d.mts +0 -8
  943. package/dist/Skola24/mdb/types/Lesson-teacher-link.d.mts +0 -8
  944. package/dist/Skola24/mdb/types/Lesson.d.mts +0 -13
  945. package/dist/Skola24/mdb/types/Options.d.mts +0 -11
  946. package/dist/Skola24/mdb/types/Period.d.mts +0 -9
  947. package/dist/Skola24/mdb/types/Plan-group-link.d.mts +0 -8
  948. package/dist/Skola24/mdb/types/Plan-period-link.d.mts +0 -8
  949. package/dist/Skola24/mdb/types/Plan-teacher-link.d.mts +0 -10
  950. package/dist/Skola24/mdb/types/Plan.d.mts +0 -9
  951. package/dist/Skola24/mdb/types/Room.d.mts +0 -9
  952. package/dist/Skola24/mdb/types/Schedule.d.mts +0 -39
  953. package/dist/Skola24/mdb/types/Subject.d.mts +0 -8
  954. package/dist/Skola24/mdb/types/Teacher.d.mts +0 -10
  955. package/dist/Skola24/mdb/types/index.d.mts +0 -23
  956. package/dist/Skola24/txt/from/calendar-exceptions.mjs +0 -67
  957. package/dist/Skola24/txt/from/calendar-exceptions.mjs.map +0 -1
  958. package/dist/Skola24/txt/from/division.mjs +0 -44
  959. package/dist/Skola24/txt/from/division.mjs.map +0 -1
  960. package/dist/Skola24/txt/from/index.mjs +0 -12
  961. package/dist/Skola24/txt/from/index.mjs.map +0 -1
  962. package/dist/Skola24/txt/from/period.mjs +0 -95
  963. package/dist/Skola24/txt/from/period.mjs.map +0 -1
  964. package/dist/Skola24/txt/from/schedules.d.mts +0 -17
  965. package/dist/Skola24/txt/from/schedules.mjs +0 -273
  966. package/dist/Skola24/txt/from/schedules.mjs.map +0 -1
  967. package/dist/Skola24/txt/from/util.mjs +0 -17
  968. package/dist/Skola24/txt/from/util.mjs.map +0 -1
  969. package/dist/Skola24/txt/index.d.mts +0 -29
  970. package/dist/Skola24/txt/index.mjs +0 -12
  971. package/dist/Skola24/txt/index.mjs.map +0 -1
  972. package/dist/Skola24/txt/to/index.d.mts +0 -11
  973. package/dist/Skola24/txt/to/index.mjs +0 -10
  974. package/dist/Skola24/txt/to/index.mjs.map +0 -1
  975. package/dist/Skola24/txt/to/schedules.mjs +0 -290
  976. package/dist/Skola24/txt/to/schedules.mjs.map +0 -1
  977. package/dist/Skola24/txt/types/index.d.mts +0 -141
  978. package/dist/common/constants.mjs +0 -8
  979. package/dist/common/constants.mjs.map +0 -1
  980. package/dist/common/functions.mjs +0 -61
  981. package/dist/common/functions.mjs.map +0 -1
  982. package/dist/common/get-date.mjs +0 -15
  983. package/dist/common/get-date.mjs.map +0 -1
  984. package/dist/common/make-chainable/index.mjs +0 -36
  985. package/dist/common/make-chainable/index.mjs.map +0 -1
  986. package/dist/common/types.d.mts +0 -38
  987. package/dist/core/from/configurations.mjs +0 -12
  988. package/dist/core/from/configurations.mjs.map +0 -1
  989. package/dist/core/from/courses.mjs +0 -12
  990. package/dist/core/from/courses.mjs.map +0 -1
  991. package/dist/core/from/events.mjs +0 -13
  992. package/dist/core/from/events.mjs.map +0 -1
  993. package/dist/core/from/exceptions.mjs +0 -12
  994. package/dist/core/from/exceptions.mjs.map +0 -1
  995. package/dist/core/from/groups.mjs +0 -12
  996. package/dist/core/from/groups.mjs.map +0 -1
  997. package/dist/core/from/index.mjs +0 -23
  998. package/dist/core/from/index.mjs.map +0 -1
  999. package/dist/core/from/locations.mjs +0 -12
  1000. package/dist/core/from/locations.mjs.map +0 -1
  1001. package/dist/core/from/locked-times.mjs +0 -12
  1002. package/dist/core/from/locked-times.mjs.map +0 -1
  1003. package/dist/core/from/overlap-groups.mjs +0 -12
  1004. package/dist/core/from/overlap-groups.mjs.map +0 -1
  1005. package/dist/core/from/periods.mjs +0 -12
  1006. package/dist/core/from/periods.mjs.map +0 -1
  1007. package/dist/core/from/persons.mjs +0 -12
  1008. package/dist/core/from/persons.mjs.map +0 -1
  1009. package/dist/core/from/root-intervals.mjs +0 -12
  1010. package/dist/core/from/root-intervals.mjs.map +0 -1
  1011. package/dist/core/from/schedules.d.mts +0 -7
  1012. package/dist/core/from/schedules.mjs +0 -38
  1013. package/dist/core/from/schedules.mjs.map +0 -1
  1014. package/dist/core/from/settings.mjs +0 -21
  1015. package/dist/core/from/settings.mjs.map +0 -1
  1016. package/dist/core/from/syllabuses.mjs +0 -13
  1017. package/dist/core/from/syllabuses.mjs.map +0 -1
  1018. package/dist/core/from/teachers.mjs +0 -12
  1019. package/dist/core/from/teachers.mjs.map +0 -1
  1020. package/dist/core/index.d.mts +0 -38
  1021. package/dist/core/index.mjs +0 -16
  1022. package/dist/core/index.mjs.map +0 -1
  1023. package/dist/core/interfaces/index.d.mts +0 -23
  1024. package/dist/core/interfaces/index.mjs +0 -6
  1025. package/dist/core/interfaces/other/companies.d.mts +0 -132
  1026. package/dist/core/interfaces/other/companies.mjs +0 -9
  1027. package/dist/core/interfaces/other/companies.mjs.map +0 -1
  1028. package/dist/core/interfaces/other/etc.d.mts +0 -19
  1029. package/dist/core/interfaces/other/index.d.mts +0 -6
  1030. package/dist/core/interfaces/other/integrations.d.mts +0 -17
  1031. package/dist/core/interfaces/other/operations.d.mts +0 -36
  1032. package/dist/core/interfaces/other/policies.d.mts +0 -31
  1033. package/dist/core/interfaces/other/sync-logs.d.mts +0 -21
  1034. package/dist/core/interfaces/other/users.d.mts +0 -35
  1035. package/dist/core/interfaces/vertices/companies.d.mts +0 -8
  1036. package/dist/core/interfaces/vertices/configurations.d.mts +0 -58
  1037. package/dist/core/interfaces/vertices/courses.d.mts +0 -66
  1038. package/dist/core/interfaces/vertices/division-settings.d.mts +0 -54
  1039. package/dist/core/interfaces/vertices/divisions.d.mts +0 -31
  1040. package/dist/core/interfaces/vertices/events.d.mts +0 -104
  1041. package/dist/core/interfaces/vertices/exceptions.d.mts +0 -74
  1042. package/dist/core/interfaces/vertices/generations.d.mts +0 -23
  1043. package/dist/core/interfaces/vertices/groups.d.mts +0 -51
  1044. package/dist/core/interfaces/vertices/index.d.mts +0 -231
  1045. package/dist/core/interfaces/vertices/index.mjs +0 -3
  1046. package/dist/core/interfaces/vertices/linked-events-sets.d.mts +0 -19
  1047. package/dist/core/interfaces/vertices/locations.d.mts +0 -22
  1048. package/dist/core/interfaces/vertices/locked-times.d.mts +0 -37
  1049. package/dist/core/interfaces/vertices/overlap-groups.d.mts +0 -17
  1050. package/dist/core/interfaces/vertices/periods.d.mts +0 -15
  1051. package/dist/core/interfaces/vertices/persons.d.mts +0 -32
  1052. package/dist/core/interfaces/vertices/properties/belongs-to.d.mts +0 -11
  1053. package/dist/core/interfaces/vertices/properties/coalesced.d.mts +0 -8
  1054. package/dist/core/interfaces/vertices/properties/days.d.mts +0 -9
  1055. package/dist/core/interfaces/vertices/properties/index.d.mts +0 -15
  1056. package/dist/core/interfaces/vertices/properties/intervals.d.mts +0 -10
  1057. package/dist/core/interfaces/vertices/properties/maximum-schedule-span.d.mts +0 -19
  1058. package/dist/core/interfaces/vertices/properties/min-break-length.d.mts +0 -5
  1059. package/dist/core/interfaces/vertices/properties/planned-scheduled-duration.d.mts +0 -13
  1060. package/dist/core/interfaces/vertices/properties/species.d.mts +0 -9
  1061. package/dist/core/interfaces/vertices/properties/tags.d.mts +0 -9
  1062. package/dist/core/interfaces/vertices/properties/week.d.mts +0 -22
  1063. package/dist/core/interfaces/vertices/properties/week.mjs +0 -6
  1064. package/dist/core/interfaces/vertices/properties/week.mjs.map +0 -1
  1065. package/dist/core/interfaces/vertices/root-intervals.d.mts +0 -14
  1066. package/dist/core/interfaces/vertices/syllabuses.d.mts +0 -18
  1067. package/dist/core/interfaces/vertices/teachers.d.mts +0 -41
  1068. package/dist/core/interfaces/vertices/threads.d.mts +0 -33
  1069. package/dist/core/interfaces/vertices/users.d.mts +0 -11
  1070. package/dist/core/interfaces/vertices/util/common.d.mts +0 -28
  1071. package/dist/core/interfaces/vertices/util/custom-vertex-export/assert-no-invalid-expand-keys.d.mts +0 -16
  1072. package/dist/core/interfaces/vertices/util/custom-vertex-export/index.d.mts +0 -34
  1073. package/dist/core/interfaces/vertices/util/custom-vertex-export/util.d.mts +0 -52
  1074. package/dist/core/interfaces/vertices/util/deep-vertex-export/index.d.mts +0 -65
  1075. package/dist/core/interfaces/vertices/util/edges.d.mts +0 -123
  1076. package/dist/core/interfaces/vertices/util/index.d.mts +0 -6
  1077. package/dist/core/interfaces/vertices/util/keys-of.d.mts +0 -26
  1078. package/dist/core/interfaces/vertices/util/serialized-vertex-export.d.mts +0 -11
  1079. package/dist/core/interfaces/vertices/util/util.d.mts +0 -79
  1080. package/dist/core/interfaces/vertices/util/vertex-query/index.d.mts +0 -50
  1081. package/dist/core/interfaces/vertices/util/vertex-query/util.d.mts +0 -13
  1082. package/dist/core/interfaces/vertices/util/vertex.d.mts +0 -69
  1083. package/dist/core/interfaces/vertices/vertex-query.d.mts +0 -112
  1084. package/dist/core/interfaces/vertices/vertex-query.mjs +0 -114
  1085. package/dist/core/interfaces/vertices/vertex-query.mjs.map +0 -1
  1086. package/dist/core/to/configurations.mjs +0 -16
  1087. package/dist/core/to/configurations.mjs.map +0 -1
  1088. package/dist/core/to/courses.mjs +0 -41
  1089. package/dist/core/to/courses.mjs.map +0 -1
  1090. package/dist/core/to/division.mjs +0 -10
  1091. package/dist/core/to/division.mjs.map +0 -1
  1092. package/dist/core/to/events.mjs +0 -43
  1093. package/dist/core/to/events.mjs.map +0 -1
  1094. package/dist/core/to/exceptions.mjs +0 -29
  1095. package/dist/core/to/exceptions.mjs.map +0 -1
  1096. package/dist/core/to/groups.mjs +0 -25
  1097. package/dist/core/to/groups.mjs.map +0 -1
  1098. package/dist/core/to/index.d.mts +0 -9
  1099. package/dist/core/to/index.mjs +0 -10
  1100. package/dist/core/to/index.mjs.map +0 -1
  1101. package/dist/core/to/locations.mjs +0 -21
  1102. package/dist/core/to/locations.mjs.map +0 -1
  1103. package/dist/core/to/locked-times.mjs +0 -20
  1104. package/dist/core/to/locked-times.mjs.map +0 -1
  1105. package/dist/core/to/overlap-groups.mjs +0 -27
  1106. package/dist/core/to/overlap-groups.mjs.map +0 -1
  1107. package/dist/core/to/periods.mjs +0 -16
  1108. package/dist/core/to/periods.mjs.map +0 -1
  1109. package/dist/core/to/persons.mjs +0 -17
  1110. package/dist/core/to/persons.mjs.map +0 -1
  1111. package/dist/core/to/root-intervals.mjs +0 -16
  1112. package/dist/core/to/root-intervals.mjs.map +0 -1
  1113. package/dist/core/to/schedules.d.mts +0 -47
  1114. package/dist/core/to/schedules.mjs +0 -42
  1115. package/dist/core/to/schedules.mjs.map +0 -1
  1116. package/dist/core/to/settings.mjs +0 -18
  1117. package/dist/core/to/settings.mjs.map +0 -1
  1118. package/dist/core/to/syllabuses.mjs +0 -16
  1119. package/dist/core/to/syllabuses.mjs.map +0 -1
  1120. package/dist/core/to/teachers.mjs +0 -24
  1121. package/dist/core/to/teachers.mjs.map +0 -1
  1122. package/dist/core/to/util.d.mts +0 -10
  1123. package/dist/core/to/util.mjs +0 -24
  1124. package/dist/core/to/util.mjs.map +0 -1
  1125. package/dist/core/types/common/index.d.mts +0 -8
  1126. package/dist/core/types/common/meta.d.mts +0 -15
  1127. package/dist/core/types/index.d.mts +0 -137
  1128. package/dist/core/util.mjs +0 -46
  1129. package/dist/core/util.mjs.map +0 -1
  1130. package/dist/identify/constants/index.d.mts +0 -144
  1131. package/dist/identify/constants/index.mjs +0 -317
  1132. package/dist/identify/constants/index.mjs.map +0 -1
  1133. package/dist/identify/index.d.mts +0 -8
  1134. package/dist/identify/index.mjs +0 -93
  1135. package/dist/identify/index.mjs.map +0 -1
  1136. package/dist/identify/types/index.d.mts +0 -15
  1137. package/dist/index.d.mts +0 -57
  1138. package/dist/index.mjs +0 -22
  1139. package/dist/sdui/from/classes.mjs +0 -8
  1140. package/dist/sdui/from/classes.mjs.map +0 -1
  1141. package/dist/sdui/from/courses.mjs +0 -14
  1142. package/dist/sdui/from/courses.mjs.map +0 -1
  1143. package/dist/sdui/from/holidays.mjs +0 -8
  1144. package/dist/sdui/from/holidays.mjs.map +0 -1
  1145. package/dist/sdui/from/hours.mjs +0 -6
  1146. package/dist/sdui/from/hours.mjs.map +0 -1
  1147. package/dist/sdui/from/index.mjs +0 -30
  1148. package/dist/sdui/from/index.mjs.map +0 -1
  1149. package/dist/sdui/from/lessons.mjs +0 -23
  1150. package/dist/sdui/from/lessons.mjs.map +0 -1
  1151. package/dist/sdui/from/rooms.mjs +0 -11
  1152. package/dist/sdui/from/rooms.mjs.map +0 -1
  1153. package/dist/sdui/from/schedules.d.mts +0 -21
  1154. package/dist/sdui/from/schedules.mjs +0 -24
  1155. package/dist/sdui/from/schedules.mjs.map +0 -1
  1156. package/dist/sdui/from/school-years.mjs +0 -11
  1157. package/dist/sdui/from/school-years.mjs.map +0 -1
  1158. package/dist/sdui/from/subjects.mjs +0 -6
  1159. package/dist/sdui/from/subjects.mjs.map +0 -1
  1160. package/dist/sdui/from/substitution-plans.mjs +0 -10
  1161. package/dist/sdui/from/substitution-plans.mjs.map +0 -1
  1162. package/dist/sdui/from/teachers.mjs +0 -15
  1163. package/dist/sdui/from/teachers.mjs.map +0 -1
  1164. package/dist/sdui/index.d.mts +0 -32
  1165. package/dist/sdui/index.mjs +0 -12
  1166. package/dist/sdui/index.mjs.map +0 -1
  1167. package/dist/sdui/to/classes.mjs +0 -10
  1168. package/dist/sdui/to/classes.mjs.map +0 -1
  1169. package/dist/sdui/to/courses.mjs +0 -16
  1170. package/dist/sdui/to/courses.mjs.map +0 -1
  1171. package/dist/sdui/to/holidays.mjs +0 -16
  1172. package/dist/sdui/to/holidays.mjs.map +0 -1
  1173. package/dist/sdui/to/hours.mjs +0 -15
  1174. package/dist/sdui/to/hours.mjs.map +0 -1
  1175. package/dist/sdui/to/index.d.mts +0 -22
  1176. package/dist/sdui/to/index.mjs +0 -30
  1177. package/dist/sdui/to/index.mjs.map +0 -1
  1178. package/dist/sdui/to/lessons.mjs +0 -24
  1179. package/dist/sdui/to/lessons.mjs.map +0 -1
  1180. package/dist/sdui/to/rooms.mjs +0 -13
  1181. package/dist/sdui/to/rooms.mjs.map +0 -1
  1182. package/dist/sdui/to/schedules.mjs +0 -26
  1183. package/dist/sdui/to/schedules.mjs.map +0 -1
  1184. package/dist/sdui/to/school-years.mjs +0 -18
  1185. package/dist/sdui/to/school-years.mjs.map +0 -1
  1186. package/dist/sdui/to/subjects.mjs +0 -8
  1187. package/dist/sdui/to/subjects.mjs.map +0 -1
  1188. package/dist/sdui/to/substitution-plans.mjs +0 -46
  1189. package/dist/sdui/to/substitution-plans.mjs.map +0 -1
  1190. package/dist/sdui/to/teachers.mjs +0 -20
  1191. package/dist/sdui/to/teachers.mjs.map +0 -1
  1192. package/dist/sdui/types/classes.d.mts +0 -8
  1193. package/dist/sdui/types/courses.d.mts +0 -12
  1194. package/dist/sdui/types/holidays.d.mts +0 -10
  1195. package/dist/sdui/types/hours.d.mts +0 -10
  1196. package/dist/sdui/types/index.d.mts +0 -31
  1197. package/dist/sdui/types/lessons.d.mts +0 -13
  1198. package/dist/sdui/types/rooms.d.mts +0 -9
  1199. package/dist/sdui/types/schedules.d.mts +0 -27
  1200. package/dist/sdui/types/school-years.d.mts +0 -9
  1201. package/dist/sdui/types/subjects.d.mts +0 -9
  1202. package/dist/sdui/types/substitution-plans.d.mts +0 -30
  1203. package/dist/sdui/types/teachers.d.mts +0 -10
  1204. package/dist/vKlass/from/index.mjs +0 -8
  1205. package/dist/vKlass/from/index.mjs.map +0 -1
  1206. package/dist/vKlass/from/schedule.d.mts +0 -24
  1207. package/dist/vKlass/from/schedule.mjs +0 -71
  1208. package/dist/vKlass/from/schedule.mjs.map +0 -1
  1209. package/dist/vKlass/index.d.mts +0 -13
  1210. package/dist/vKlass/index.mjs +0 -12
  1211. package/dist/vKlass/index.mjs.map +0 -1
  1212. package/dist/vKlass/to/index.d.mts +0 -9
  1213. package/dist/vKlass/to/index.mjs +0 -10
  1214. package/dist/vKlass/to/index.mjs.map +0 -1
  1215. package/dist/vKlass/to/schedules.d.mts +0 -14
  1216. package/dist/vKlass/to/schedules.mjs +0 -82
  1217. package/dist/vKlass/to/schedules.mjs.map +0 -1
  1218. package/dist/vKlass/types/index.d.mts +0 -53
@@ -1 +0,0 @@
1
- {"version":3,"file":"overlap-groups.mjs","names":[],"sources":["../../../src/core/to/overlap-groups.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\nimport type { OverlapGroupVertex } from '../interfaces/vertices/overlap-groups';\n\nexport default (\n overlapGroups: Types.Mixed.OverlapGroup[],\n options: BaseOptions\n): OutTypes.overlapGroup[] => {\n return overlapGroups\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<OverlapGroupVertex> = {\n coalesced: x.coalesced?.map(x => ({ toModel: x.toModel, to: getVertexId(x.to, options) })),\n species: x.species ?.map(x => ({ toModel: x.toModel, id: x.id, to: getVertexId(x.to, options) })),\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<OverlapGroupVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,8BACE,eACA,YAC4B;AAC5B,QAAO,cACJ,KAAI,MAAK;EACR,MAAM,QAA6D;GACjE,WAAW,EAAE,WAAW,KAAI,OAAM;IAAE,SAAS,EAAE;IAAmB,IAAI,YAAY,EAAE,IAAI,QAAQ;IAAE,EAAE;GACpG,SAAW,EAAE,SAAW,KAAI,OAAM;IAAE,SAAS,EAAE;IAAS,IAAI,EAAE;IAAI,IAAI,YAAY,EAAE,IAAI,QAAQ;IAAE,EAAE;GACrG;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,16 +0,0 @@
1
- import { omitEdgesAndInternalProperties } from "./util.mjs";
2
-
3
- //#region src/core/to/periods.ts
4
- var periods_default = (periods, options) => {
5
- return periods.map((x) => {
6
- const edges = {};
7
- return {
8
- ...omitEdgesAndInternalProperties(x, edges),
9
- ...edges
10
- };
11
- });
12
- };
13
-
14
- //#endregion
15
- export { periods_default as default };
16
- //# sourceMappingURL=periods.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"periods.mjs","names":[],"sources":["../../../src/core/to/periods.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\nimport type { PeriodVertex } from '../interfaces/vertices/periods';\n\nexport default (\n periods: Types.Mixed.Period[],\n options: BaseOptions\n): OutTypes.period[] => {\n return periods\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<PeriodVertex> = {\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<PeriodVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;AAMA,uBACE,SACA,YACsB;AACtB,QAAO,QACJ,KAAI,MAAK;EACR,MAAM,QAAuD,EAC5D;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,17 +0,0 @@
1
- import { getVertexId } from "../util.mjs";
2
- import { omitEdgesAndInternalProperties } from "./util.mjs";
3
-
4
- //#region src/core/to/persons.ts
5
- var persons_default = (persons, options) => {
6
- return persons.map((x) => {
7
- const edges = { group: x.group ? getVertexId(x.group, options) : void 0 };
8
- return {
9
- ...omitEdgesAndInternalProperties(x, edges),
10
- ...edges
11
- };
12
- });
13
- };
14
-
15
- //#endregion
16
- export { persons_default as default };
17
- //# sourceMappingURL=persons.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"persons.mjs","names":[],"sources":["../../../src/core/to/persons.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\nimport type { PersonVertex } from '../interfaces/vertices/persons';\n\nexport default (\n persons: Types.Mixed.Person[],\n options: BaseOptions\n): OutTypes.person[] => {\n return persons\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<PersonVertex> = {\n group: x.group ? getVertexId(x.group, options) : undefined,\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<PersonVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,uBACE,SACA,YACsB;AACtB,QAAO,QACJ,KAAI,MAAK;EACR,MAAM,QAAuD,EAC3D,OAAO,EAAE,QAAQ,YAAY,EAAE,OAAO,QAAQ,GAAG,QAClD;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,16 +0,0 @@
1
- import { omitEdgesAndInternalProperties } from "./util.mjs";
2
-
3
- //#region src/core/to/root-intervals.ts
4
- var root_intervals_default = (rootIntervals, options) => {
5
- return rootIntervals.map((x) => {
6
- const edges = {};
7
- return {
8
- ...omitEdgesAndInternalProperties(x, edges),
9
- ...edges
10
- };
11
- });
12
- };
13
-
14
- //#endregion
15
- export { root_intervals_default as default };
16
- //# sourceMappingURL=root-intervals.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root-intervals.mjs","names":[],"sources":["../../../src/core/to/root-intervals.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\nimport type { RootIntervalVertex } from '../interfaces/vertices/root-intervals';\n\nexport default (\n rootIntervals: Types.Mixed.RootInterval[],\n options: BaseOptions\n): OutTypes.rootInterval[] => {\n return rootIntervals\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<RootIntervalVertex> = {\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<RootIntervalVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;AAMA,8BACE,eACA,YAC4B;AAC5B,QAAO,cACJ,KAAI,MAAK;EACR,MAAM,QAA6D,EAClE;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,47 +0,0 @@
1
- import { InternalIdKey } from "../types/common/index.mjs";
2
- import { InternalKeysOmitted } from "./util.mjs";
3
- import { Types } from "../types/index.mjs";
4
- import "../index.mjs";
5
-
6
- //#region src/core/to/schedules.d.ts
7
- declare namespace OutTypes {
8
- type division = Omit<InternalKeysOmitted<Types.Serialized.Division>, InternalIdKey>;
9
- type settings = InternalKeysOmitted<Types.Serialized.Settings>;
10
- type configuration = InternalKeysOmitted<Types.Serialized.Configuration>;
11
- type exception = InternalKeysOmitted<Types.Serialized.Exception>;
12
- type period = InternalKeysOmitted<Types.Serialized.Period>;
13
- type location = InternalKeysOmitted<Types.Serialized.Location>;
14
- type teacher = InternalKeysOmitted<Types.Serialized.Teacher>;
15
- type group = InternalKeysOmitted<Types.Serialized.Group>;
16
- type person = InternalKeysOmitted<Types.Serialized.Person>;
17
- type course = InternalKeysOmitted<Types.Serialized.Course>;
18
- type event = InternalKeysOmitted<Types.Serialized.Event>;
19
- type lockedTime = InternalKeysOmitted<Types.Serialized.LockedTime>;
20
- type overlapGroup = InternalKeysOmitted<Types.Serialized.OverlapGroup>;
21
- type rootInterval = InternalKeysOmitted<Types.Serialized.RootInterval>;
22
- type syllabus = InternalKeysOmitted<Types.Serialized.Syllabus>;
23
- }
24
- type Out = {
25
- division?: OutTypes.division;
26
- settings?: OutTypes.settings;
27
- exceptions?: OutTypes.exception[];
28
- periods?: OutTypes.period[];
29
- locations?: OutTypes.location[];
30
- teachers?: OutTypes.teacher[];
31
- groups?: OutTypes.group[];
32
- persons?: OutTypes.person[];
33
- courses?: OutTypes.course[];
34
- events?: OutTypes.event[];
35
- lockedTimes?: OutTypes.lockedTime[];
36
- overlapGroups?: OutTypes.overlapGroup[];
37
- rootIntervals?: OutTypes.rootInterval[];
38
- syllabuses?: OutTypes.syllabus[];
39
- configurations?: OutTypes.configuration[];
40
- meta: {
41
- structure: string;
42
- };
43
- };
44
- declare function export_default(schedule: Partial<Types.Mixed.Schedule>): Out;
45
- //#endregion
46
- export { export_default };
47
- //# sourceMappingURL=schedules.d.mts.map
@@ -1,42 +0,0 @@
1
- import exceptions_default from "./exceptions.mjs";
2
- import periods_default from "./periods.mjs";
3
- import locations_default from "./locations.mjs";
4
- import teachers_default from "./teachers.mjs";
5
- import groups_default from "./groups.mjs";
6
- import persons_default from "./persons.mjs";
7
- import courses_default from "./courses.mjs";
8
- import events_default from "./events.mjs";
9
- import locked_times_default from "./locked-times.mjs";
10
- import overlap_groups_default from "./overlap-groups.mjs";
11
- import root_intervals_default from "./root-intervals.mjs";
12
- import settings_default from "./settings.mjs";
13
- import division_default from "./division.mjs";
14
- import syllabuses_default from "./syllabuses.mjs";
15
- import configurations_default from "./configurations.mjs";
16
-
17
- //#region src/core/to/schedules.ts
18
- function schedules_default(schedule) {
19
- const options = {};
20
- return {
21
- meta: { structure: "RS/core-2.0.0" },
22
- ...schedule.divisions && { division: division_default(schedule.divisions, options) },
23
- ...schedule.settings && { settings: settings_default(schedule.settings, options) },
24
- ...schedule.exceptions && { exceptions: exceptions_default(schedule.exceptions, options) },
25
- ...schedule.periods && { periods: periods_default(schedule.periods, options) },
26
- ...schedule.locations && { locations: locations_default(schedule.locations, options) },
27
- ...schedule.teachers && { teachers: teachers_default(schedule.teachers, options) },
28
- ...schedule.groups && { groups: groups_default(schedule.groups, options) },
29
- ...schedule.persons && { persons: persons_default(schedule.persons, options) },
30
- ...schedule.courses && { courses: courses_default(schedule.courses, options) },
31
- ...schedule.events && { events: events_default(schedule.events, options) },
32
- ...schedule.lockedTimes && { lockedTimes: locked_times_default(schedule.lockedTimes, options) },
33
- ...schedule.overlapGroups && { overlapGroups: overlap_groups_default(schedule.overlapGroups, options) },
34
- ...schedule.rootIntervals && { rootIntervals: root_intervals_default(schedule.rootIntervals, options) },
35
- ...schedule.syllabuses && { syllabuses: syllabuses_default(schedule.syllabuses, options) },
36
- ...schedule.configurations && { configurations: configurations_default(schedule.configurations, options) }
37
- };
38
- }
39
-
40
- //#endregion
41
- export { schedules_default as default };
42
- //# sourceMappingURL=schedules.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedules.mjs","names":["_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.Settings>;\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,MAAM,UAAuB,EAAE;AAE/B,QAAO;EACL,MAAM,EAAE,WAAW,iBAAiB;EACpC,GAAG,SAAS,aAAkB,EAAE,UAAgBA,iBAAgB,SAAS,WAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,YAAkB,EAAE,UAAgBC,iBAAgB,SAAS,UAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS,YAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,aAAkB,EAAE,WAAgBC,kBAAgB,SAAS,WAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,YAAkB,EAAE,UAAgBC,iBAAgB,SAAS,UAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS,QAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,WAAkB,EAAE,SAAgBC,gBAAgB,SAAS,SAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,UAAkB,EAAE,QAAgBC,eAAgB,SAAS,QAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,eAAkB,EAAE,aAAgBC,qBAAgB,SAAS,aAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS,eAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,iBAAkB,EAAE,eAAgBC,uBAAgB,SAAS,eAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,cAAkB,EAAE,YAAgBC,mBAAgB,SAAS,YAAgB,QAAQ,EAAE;EACnG,GAAG,SAAS,kBAAkB,EAAE,gBAAgBC,uBAAgB,SAAS,gBAAgB,QAAQ,EAAE;EACpG"}
@@ -1,18 +0,0 @@
1
- import { getVertexId } from "../util.mjs";
2
- import { omitEdgesAndInternalProperties } from "./util.mjs";
3
-
4
- //#region src/core/to/settings.ts
5
- var settings_default = (settings, options) => {
6
- const edges = {
7
- period: settings.period ? getVertexId(settings.period, options) : void 0,
8
- defaultRootInterval: settings.defaultRootInterval ? getVertexId(settings.defaultRootInterval, options) : void 0
9
- };
10
- return {
11
- ...omitEdgesAndInternalProperties(settings, edges),
12
- ...edges
13
- };
14
- };
15
-
16
- //#endregion
17
- export { settings_default as default };
18
- //# sourceMappingURL=settings.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.mjs","names":[],"sources":["../../../src/core/to/settings.ts"],"sourcesContent":["import type { BaseOptions } from '../../common/types';\nimport type { DivisionSettingsVertex } from '../interfaces/vertices/division-settings';\nimport type { Types } from '../types';\nimport { getVertexId } from '../util';\nimport type { OutTypes } from './schedules';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\n\nexport default (\n settings: Types.Mixed.Settings,\n options: BaseOptions\n): OutTypes.settings => {\n const edges: SerializedEdgesOnlyVertexExport<DivisionSettingsVertex> = {\n period: settings.period ? getVertexId(settings.period, options) : undefined,\n defaultRootInterval: settings.defaultRootInterval ? getVertexId(settings.defaultRootInterval, options) : undefined,\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<DivisionSettingsVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(settings, edges);\n\n return { ...nonEdges, ...edges };\n};\n"],"mappings":";;;;AAOA,wBACE,UACA,YACsB;CACtB,MAAM,QAAiE;EACrE,QAAqB,SAAS,SAAsB,YAAY,SAAS,QAAqB,QAAQ,GAAG;EACzG,qBAAqB,SAAS,sBAAsB,YAAY,SAAS,qBAAqB,QAAQ,GAAG;EAC1G;AAGD,QAAO;EAAE,GAFQ,+BAA+B,UAAU,MAAM;EAE1C,GAAG;EAAO"}
@@ -1,16 +0,0 @@
1
- import { omitEdgesAndInternalProperties } from "./util.mjs";
2
-
3
- //#region src/core/to/syllabuses.ts
4
- var syllabuses_default = (syllabuses, options) => {
5
- return syllabuses.map((x) => {
6
- const edges = {};
7
- return {
8
- ...omitEdgesAndInternalProperties(x, edges),
9
- ...edges
10
- };
11
- });
12
- };
13
-
14
- //#endregion
15
- export { syllabuses_default as default };
16
- //# sourceMappingURL=syllabuses.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"syllabuses.mjs","names":[],"sources":["../../../src/core/to/syllabuses.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { BaseOptions } from '../../common/types';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { SyllabusVertex } from '../interfaces/vertices/syllabuses';\nimport type { OutTypes } from './schedules';\n\nexport default (\n syllabuses: Types.Mixed.Syllabus[],\n options: BaseOptions\n): OutTypes.syllabus[] => {\n return syllabuses\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<SyllabusVertex> = {\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<SyllabusVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;AAMA,0BACE,YACA,YACwB;AACxB,QAAO,WACJ,KAAI,MAAK;EACR,MAAM,QAAyD,EAC9D;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,24 +0,0 @@
1
- import { getVertexId } from "../util.mjs";
2
- import { omitEdgesAndInternalProperties } from "./util.mjs";
3
-
4
- //#region src/core/to/teachers.ts
5
- var teachers_default = (teachers, options) => {
6
- return teachers.map((x) => {
7
- const edges = {
8
- rootInterval: x.rootInterval ? getVertexId(x.rootInterval, options) : void 0,
9
- person: x.person ? getVertexId(x.person, options) : void 0,
10
- exceptions: x.exceptions?.map((x) => getVertexId(x, options)),
11
- lockedTimes: x.lockedTimes?.map((x) => getVertexId(x, options)),
12
- lunch: x.lunch?.map((x) => getVertexId(x, options)),
13
- complementaryTimes: x.complementaryTimes?.map((x) => getVertexId(x, options))
14
- };
15
- return {
16
- ...omitEdgesAndInternalProperties(x, edges),
17
- ...edges
18
- };
19
- });
20
- };
21
-
22
- //#endregion
23
- export { teachers_default as default };
24
- //# sourceMappingURL=teachers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teachers.mjs","names":[],"sources":["../../../src/core/to/teachers.ts"],"sourcesContent":["import type { Types } from '../types';\nimport type { OutTypes } from './schedules';\nimport { getVertexId } from '../util';\nimport { omitEdgesAndInternalProperties, type SerializedEdgesOnlyVertexExport, type SerializedEdgesShape } from './util';\nimport type { BaseOptions } from '../../common/types';\nimport type { TeacherVertex } from '../interfaces/vertices/teachers';\n\nexport default (\n teachers: Types.Mixed.Teacher[],\n options: BaseOptions\n): OutTypes.teacher[] => {\n return teachers\n .map(x => {\n const edges: SerializedEdgesOnlyVertexExport<TeacherVertex> = {\n rootInterval: x.rootInterval ? getVertexId(x.rootInterval, options) : undefined,\n person: x.person ? getVertexId(x.person, 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 complementaryTimes: x.complementaryTimes?.map(x => getVertexId(x, options)),\n } satisfies SerializedEdgesShape<SerializedEdgesOnlyVertexExport<TeacherVertex>>;\n const nonEdges = omitEdgesAndInternalProperties(x, edges);\n\n return { ...nonEdges, ...edges };\n });\n};\n"],"mappings":";;;;AAOA,wBACE,UACA,YACuB;AACvB,QAAO,SACJ,KAAI,MAAK;EACR,MAAM,QAAwD;GAC5D,cAAoB,EAAE,eAAe,YAAY,EAAE,cAAc,QAAQ,GAAG;GAC5E,QAAoB,EAAE,SAAe,YAAY,EAAE,QAAc,QAAQ,GAAG;GAC5E,YAAoB,EAAE,YAAoB,KAAI,MAAK,YAAY,GAAG,QAAQ,CAAC;GAC3E,aAAoB,EAAE,aAAoB,KAAI,MAAK,YAAY,GAAG,QAAQ,CAAC;GAC3E,OAAoB,EAAE,OAAoB,KAAI,MAAK,YAAY,GAAG,QAAQ,CAAC;GAC3E,oBAAoB,EAAE,oBAAoB,KAAI,MAAK,YAAY,GAAG,QAAQ,CAAC;GAC5E;AAGD,SAAO;GAAE,GAFQ,+BAA+B,GAAG,MAAM;GAEnC,GAAG;GAAO;GAChC"}
@@ -1,10 +0,0 @@
1
- import { Intersect } from "../../common/types.mjs";
2
- import "../interfaces/vertices/util/common.mjs";
3
- import "../interfaces/vertices/util/index.mjs";
4
-
5
- //#region src/core/to/util.d.ts
6
- declare const keys: readonly ["_id", "createdAt", "updatedAt", "lastModifiedBy", "CONTEXT", "belongsTo", "domain", "derivedParentGroups"];
7
- type InternalKeysOmitted<V extends object> = Omit<Intersect<V>, typeof keys[number]>;
8
- //#endregion
9
- export { InternalKeysOmitted };
10
- //# sourceMappingURL=util.d.mts.map
@@ -1,24 +0,0 @@
1
- import { omit } from "lodash-es";
2
-
3
- //#region src/core/to/util.ts
4
- const keys = [
5
- "_id",
6
- "createdAt",
7
- "updatedAt",
8
- "lastModifiedBy",
9
- "CONTEXT",
10
- "belongsTo",
11
- "domain",
12
- "derivedParentGroups"
13
- ];
14
- /**
15
- * Returns a copy of the vertex with internal keys omitted, such as `_id`, `createdAt`, `updatedAt`, etc.
16
- * The output type also omits all edges for ease of use.
17
- */
18
- function omitEdgesAndInternalProperties(v, edgesRecord) {
19
- return omit(omit(v, Object.keys(edgesRecord)), keys);
20
- }
21
-
22
- //#endregion
23
- export { omitEdgesAndInternalProperties };
24
- //# sourceMappingURL=util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.mjs","names":[],"sources":["../../../src/core/to/util.ts"],"sourcesContent":["import type { Intersect } from '../../common/types';\nimport type { Collection, SerializedVertexExport, Vertex } from '../interfaces/vertices/util';\nimport type { PickEdges } from '../interfaces/vertices/util/common';\nimport { omit } from 'lodash-es';\n\n\nconst keys = ['_id', 'createdAt', 'updatedAt', 'lastModifiedBy', 'CONTEXT', 'belongsTo', 'domain', 'derivedParentGroups'] as const;\nexport type InternalKeysOmitted<V extends object> = Omit<Intersect<V>, typeof keys[number]>;\n\nexport type SerializedEdgesOnlyVertexExport<\n V extends Vertex<Collection>\n> = {\n [K in keyof SerializedVertexExport<V> as K extends keyof InternalKeysOmitted<PickEdges<V>> ? K : never]: SerializedVertexExport<V>[K]\n};\n\n/**\n * Used only as `satisfies` to ensure that no edge property is missing.\n */\nexport type SerializedEdgesShape<V extends object> = Record<keyof Omit<V, 'belongsTo'>, unknown>;\n\n/**\n * Returns a copy of the vertex with internal keys omitted, such as `_id`, `createdAt`, `updatedAt`, etc.\n * The output type also omits all edges for ease of use.\n */\nexport function omitEdgesAndInternalProperties <\n V extends object,\n EdgesRecord extends object\n> (v: V, edgesRecord: EdgesRecord) {\n const a = omit(v, Object.keys(edgesRecord)) as unknown as Omit<V, keyof EdgesRecord>;\n return omit(a, keys) as unknown as InternalKeysOmitted<typeof a>;\n}\n"],"mappings":";;;AAMA,MAAM,OAAQ;CAAC;CAAQ;CAAa;CAAa;CAAkB;CAAW;CAAa;CAAU;CAAsB;;;;;AAkB3H,SAAgB,+BAGb,GAAM,aAA0B;AAEjC,QAAO,KADG,KAAK,GAAG,OAAO,KAAK,YAAY,CAAC,EAC5B,KAAK"}
@@ -1,8 +0,0 @@
1
- import { IDKey, PrivateIDKey, PublicIDKey } from "../../interfaces/vertices/util/vertex.mjs";
2
-
3
- //#region src/core/types/common/index.d.ts
4
- type IdKey = IDKey | PrivateIDKey | PublicIDKey;
5
- type InternalIdKey = Exclude<IdKey, PublicIDKey>;
6
- //#endregion
7
- export { IdKey, InternalIdKey };
8
- //# sourceMappingURL=index.d.mts.map
@@ -1,15 +0,0 @@
1
- //#region src/core/types/common/meta.d.ts
2
- interface Meta {
3
- structure?: `RS/core-${number}.${number}.${number}`;
4
- warnings?: (string | {
5
- code: string;
6
- context?: any;
7
- })[];
8
- errors?: (string | {
9
- code: string;
10
- context?: any;
11
- })[];
12
- }
13
- //#endregion
14
- export { Meta };
15
- //# sourceMappingURL=meta.d.mts.map
@@ -1,137 +0,0 @@
1
- import { Meta } from "./common/meta.mjs";
2
- import { Day } from "../interfaces/vertices/properties/days.mjs";
3
- import { Interval } from "../interfaces/vertices/properties/intervals.mjs";
4
- import { MinBreakLength } from "../interfaces/vertices/properties/min-break-length.mjs";
5
- import { Deep, Mixed, MixedWithOptionalId, Serialized, SerializedWithOptionalId } from "../interfaces/vertices/index.mjs";
6
- import "../interfaces/index.mjs";
7
-
8
- //#region src/core/types/index.d.ts
9
- declare namespace Types {
10
- type breakLength = MinBreakLength;
11
- type day = Day;
12
- type interval = Interval;
13
- type meta = Meta;
14
- namespace Deep {
15
- type Configuration = Deep.Configuration.Base;
16
- type Teacher = Deep.Teacher;
17
- type Exception = Deep.Exception;
18
- type Event = Deep.Event;
19
- type ScheduleEvent = Deep.ScheduleEvent;
20
- type CalendarEvent = Deep.CalendarEvent;
21
- type Course = Deep.Course;
22
- type Settings = Deep.Settings;
23
- type Division = Deep.Division;
24
- type Generation = Deep.Generation;
25
- type Group = Deep.Group;
26
- type Location = Deep.Location;
27
- type LockedTime = Deep.LockedTime;
28
- type OverlapGroup = Deep.OverlapGroup;
29
- type LinkedEventsSet = Deep.LinkedEventsSet;
30
- type Period = Deep.Period;
31
- type Person = Deep.Person;
32
- type RootInterval = Deep.RootInterval;
33
- type Syllabus = Deep.Syllabus;
34
- type User = Deep.User;
35
- type Thread = Deep.Thread;
36
- type Schedule = Deep.Schedule;
37
- }
38
- namespace Serialized {
39
- type Configuration = Serialized.Configuration.Base;
40
- type Teacher = Serialized.Teacher;
41
- type Exception = Serialized.Exception;
42
- type Event = Serialized.Event;
43
- type ScheduleEvent = Serialized.ScheduleEvent;
44
- type CalendarEvent = Serialized.CalendarEvent;
45
- type Course = Serialized.Course;
46
- type Settings = Serialized.Settings;
47
- type Division = Serialized.Division;
48
- type Generation = Serialized.Generation;
49
- type Group = Serialized.Group;
50
- type Location = Serialized.Location;
51
- type LockedTime = Serialized.LockedTime;
52
- type OverlapGroup = Serialized.OverlapGroup;
53
- type LinkedEventsSet = Serialized.LinkedEventsSet;
54
- type Period = Serialized.Period;
55
- type Person = Serialized.Person;
56
- type RootInterval = Serialized.RootInterval;
57
- type Syllabus = Serialized.Syllabus;
58
- type User = Serialized.User;
59
- type Thread = Serialized.Thread;
60
- type Schedule = Serialized.Schedule;
61
- }
62
- namespace Mixed {
63
- type Configuration = Mixed.Configuration.Base;
64
- type Teacher = Mixed.Teacher;
65
- type Exception = Mixed.Exception;
66
- type Event = Mixed.Event;
67
- type ScheduleEvent = Mixed.ScheduleEvent;
68
- type CalendarEvent = Mixed.CalendarEvent;
69
- type Course = Mixed.Course;
70
- type Settings = Mixed.Settings;
71
- type Division = Mixed.Division;
72
- type Generation = Mixed.Generation;
73
- type Group = Mixed.Group;
74
- type Location = Mixed.Location;
75
- type LockedTime = Mixed.LockedTime;
76
- type OverlapGroup = Mixed.OverlapGroup;
77
- type LinkedEventsSet = Mixed.LinkedEventsSet;
78
- type Period = Mixed.Period;
79
- type Person = Mixed.Person;
80
- type RootInterval = Mixed.RootInterval;
81
- type Syllabus = Mixed.Syllabus;
82
- type User = Mixed.User;
83
- type Thread = Mixed.Thread;
84
- type Schedule = Mixed.Schedule;
85
- }
86
- namespace MixedWithoutInternalId {
87
- type Configuration = MixedWithOptionalId.Configuration.Base;
88
- type Teacher = MixedWithOptionalId.Teacher;
89
- type Exception = MixedWithOptionalId.Exception;
90
- type Event = MixedWithOptionalId.Event;
91
- type ScheduleEvent = MixedWithOptionalId.ScheduleEvent;
92
- type CalendarEvent = MixedWithOptionalId.CalendarEvent;
93
- type Course = MixedWithOptionalId.Course;
94
- type Settings = MixedWithOptionalId.Settings;
95
- type Division = MixedWithOptionalId.Division;
96
- type Generation = MixedWithOptionalId.Generation;
97
- type Group = MixedWithOptionalId.Group;
98
- type Location = MixedWithOptionalId.Location;
99
- type LockedTime = MixedWithOptionalId.LockedTime;
100
- type OverlapGroup = MixedWithOptionalId.OverlapGroup;
101
- type LinkedEventsSet = MixedWithOptionalId.LinkedEventsSet;
102
- type Period = MixedWithOptionalId.Period;
103
- type Person = MixedWithOptionalId.Person;
104
- type RootInterval = MixedWithOptionalId.RootInterval;
105
- type Syllabus = MixedWithOptionalId.Syllabus;
106
- type User = MixedWithOptionalId.User;
107
- type Thread = MixedWithOptionalId.Thread;
108
- type Schedule = MixedWithOptionalId.Schedule;
109
- }
110
- namespace SerializedWithOptionalId {
111
- type Configuration = SerializedWithOptionalId.Configuration.Base;
112
- type Teacher = SerializedWithOptionalId.Teacher;
113
- type Exception = SerializedWithOptionalId.Exception;
114
- type Event = SerializedWithOptionalId.Event;
115
- type ScheduleEvent = SerializedWithOptionalId.ScheduleEvent;
116
- type CalendarEvent = SerializedWithOptionalId.CalendarEvent;
117
- type Course = SerializedWithOptionalId.Course;
118
- type Settings = SerializedWithOptionalId.Settings;
119
- type Division = SerializedWithOptionalId.Division;
120
- type Generation = SerializedWithOptionalId.Generation;
121
- type Group = SerializedWithOptionalId.Group;
122
- type Location = SerializedWithOptionalId.Location;
123
- type LockedTime = SerializedWithOptionalId.LockedTime;
124
- type OverlapGroup = SerializedWithOptionalId.OverlapGroup;
125
- type LinkedEventsSet = SerializedWithOptionalId.LinkedEventsSet;
126
- type Period = SerializedWithOptionalId.Period;
127
- type Person = SerializedWithOptionalId.Person;
128
- type RootInterval = SerializedWithOptionalId.RootInterval;
129
- type Syllabus = SerializedWithOptionalId.Syllabus;
130
- type User = SerializedWithOptionalId.User;
131
- type Thread = SerializedWithOptionalId.Thread;
132
- type Schedule = SerializedWithOptionalId.Schedule;
133
- }
134
- }
135
- //#endregion
136
- export { Types };
137
- //# sourceMappingURL=index.d.mts.map
@@ -1,46 +0,0 @@
1
- import { isMongooseObjectId } from "../common/functions.mjs";
2
- import moment from "moment";
3
-
4
- //#region src/core/util.ts
5
- /**
6
- * Returns the ID key to use for vertices, which can be either `id`, `_id`, or `ids`.
7
- */
8
- function getIdKey({ idKey }) {
9
- return idKey ?? "id";
10
- }
11
- /**
12
- * Returns the ID of a vertex, which can be either `_id`, `id`, or `ids`.
13
- */
14
- function getVertexId(edge, _idKey) {
15
- if (typeof edge === "string") return edge;
16
- if (isMongooseObjectId(edge)) return edge.toString();
17
- if (typeof edge !== "object" || edge === null) throw new Error(`Unable to get vertex ID from edge: ${JSON.stringify(edge)}`);
18
- const idKey = typeof _idKey === "string" ? _idKey : getIdKey(_idKey);
19
- if (idKey == "_id" && idKey in edge && edge[idKey]) return edge[idKey].toString();
20
- if (idKey == "id" && idKey in edge && edge[idKey]) return edge[idKey];
21
- if (idKey == "ids" && idKey in edge && edge[idKey]) return edge[idKey];
22
- throw new Error(`Unable to get vertex ID "${idKey}" from edge: ${JSON.stringify(edge)}`);
23
- }
24
- /**
25
- * Returns the day index in the range 0-6, where 0 is Monday and 6 is Sunday.
26
- */
27
- function getDayIndex(value) {
28
- return ((typeof value === "number" ? value : moment.utc(value).day()) + 6) % 7;
29
- }
30
- function parseDateInterval(interval, type) {
31
- if (!interval.start) throw new Error(`(RS::To::validateInterval) The interval ${type ? `"${type}"` : ""} is missing a start time`);
32
- if (!interval.end) throw new Error(`(RS::To::validateInterval) The interval ${type ? `"${type}"` : ""} is missing an end time`);
33
- const start = moment.utc(interval.start);
34
- const end = moment.utc(interval.end);
35
- if (!start.isValid()) throw new Error(`(RS::To::validateInterval) The interval ${type ? `"${type}"` : ""} has an invalid start time`);
36
- if (!end.isValid()) throw new Error(`(RS::To::validateInterval) The interval ${type ? `"${type}"` : ""} has an invalid end time`);
37
- if (end.isSameOrBefore(start)) throw new Error(`(RS::To::validateInterval) The interval ${type ? `"${type}"` : ""} is invalid: end time is before or equal to start time`);
38
- return {
39
- start,
40
- end
41
- };
42
- }
43
-
44
- //#endregion
45
- export { getDayIndex, getIdKey, getVertexId, parseDateInterval };
46
- //# sourceMappingURL=util.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.mjs","names":[],"sources":["../../src/core/util.ts"],"sourcesContent":["import moment from 'moment';\nimport { isMongooseObjectId } from '../common/functions';\nimport type { IdKey } from './types/common';\nimport type { Vertex, Collection } from './interfaces/vertices/util';\nimport type { DateType } from '../common/types';\nimport type { Interval } from './interfaces';\nimport type { IDType, OmitInternalVertexKeys, PrivateIDType } from './interfaces/vertices/util/vertex';\n\n/**\n * Returns the ID key to use for vertices, which can be either `id`, `_id`, or `ids`.\n */\nexport function getIdKey ({ idKey }: { idKey?: IdKey }) {\n return idKey ?? 'id';\n}\n\n/**\n * Returns the ID of a vertex, which can be either `_id`, `id`, or `ids`.\n */\nexport function getVertexId (\n edge: IDType | PrivateIDType | Partial<OmitInternalVertexKeys<Vertex<Collection>>>,\n _idKey: IdKey | { idKey?: IdKey }\n): string {\n if (typeof edge === 'string') return edge;\n if (isMongooseObjectId(edge)) return edge.toString();\n\n // the edge must be an object at this point\n if (typeof edge !== 'object' || edge === null) {\n throw new Error(`Unable to get vertex ID from edge: ${JSON.stringify(edge)}`);\n }\n\n const idKey = typeof _idKey === 'string' ? _idKey : getIdKey(_idKey);\n if (idKey == '_id' && idKey in edge && edge[idKey]) return edge[idKey].toString();\n if (idKey == 'id' && idKey in edge && edge[idKey]) return edge[idKey];\n if (idKey == 'ids' && idKey in edge && edge[idKey]) return edge[idKey];\n\n throw new Error(`Unable to get vertex ID \"${idKey}\" from edge: ${JSON.stringify(edge)}`);\n}\n\n\n/**\n * Returns the day index in the range 0-6, where 0 is Monday and 6 is Sunday.\n */\nexport function getDayIndex (value: DateType | number): number {\n const day = typeof value === 'number' ? value : moment.utc(value).day();\n return (day + 6) % 7;\n}\n\nexport function parseDateInterval (interval: Partial<Interval<DateType>>, type?: string): Interval<moment.Moment> {\n if (!interval.start) throw new Error(`(RS::To::validateInterval) The interval ${type ? `\"${type}\"` : ''} is missing a start time`);\n if (!interval.end ) throw new Error(`(RS::To::validateInterval) The interval ${type ? `\"${type}\"` : ''} is missing an end time`);\n\n const start = moment.utc(interval.start);\n const end = moment.utc(interval.end);\n if (!start.isValid()) throw new Error(`(RS::To::validateInterval) The interval ${type ? `\"${type}\"` : ''} has an invalid start time`);\n if (!end .isValid()) throw new Error(`(RS::To::validateInterval) The interval ${type ? `\"${type}\"` : ''} has an invalid end time`);\n\n if (end.isSameOrBefore(start)) throw new Error(`(RS::To::validateInterval) The interval ${type ? `\"${type}\"` : ''} is invalid: end time is before or equal to start time`);\n\n return { start, end };\n}"],"mappings":";;;;;;;AAWA,SAAgB,SAAU,EAAE,SAA4B;AACtD,QAAO,SAAS;;;;;AAMlB,SAAgB,YACd,MACA,QACQ;AACR,KAAI,OAAO,SAAS,SAAU,QAAO;AACrC,KAAI,mBAAmB,KAAK,CAAE,QAAO,KAAK,UAAU;AAGpD,KAAI,OAAO,SAAS,YAAY,SAAS,KACvC,OAAM,IAAI,MAAM,sCAAsC,KAAK,UAAU,KAAK,GAAG;CAG/E,MAAM,QAAQ,OAAO,WAAW,WAAW,SAAS,SAAS,OAAO;AACpE,KAAI,SAAS,SAAS,SAAS,QAAQ,KAAK,OAAQ,QAAO,KAAK,OAAO,UAAU;AACjF,KAAI,SAAS,QAAS,SAAS,QAAQ,KAAK,OAAQ,QAAO,KAAK;AAChE,KAAI,SAAS,SAAS,SAAS,QAAQ,KAAK,OAAQ,QAAO,KAAK;AAEhE,OAAM,IAAI,MAAM,4BAA4B,MAAM,eAAe,KAAK,UAAU,KAAK,GAAG;;;;;AAO1F,SAAgB,YAAa,OAAkC;AAE7D,UADY,OAAO,UAAU,WAAW,QAAQ,OAAO,IAAI,MAAM,CAAC,KAAK,IACzD,KAAK;;AAGrB,SAAgB,kBAAmB,UAAuC,MAAwC;AAChH,KAAI,CAAC,SAAS,MAAO,OAAM,IAAI,MAAM,2CAA2C,OAAO,IAAI,KAAK,KAAK,GAAG,0BAA0B;AAClI,KAAI,CAAC,SAAS,IAAO,OAAM,IAAI,MAAM,2CAA2C,OAAO,IAAI,KAAK,KAAK,GAAG,yBAAyB;CAEjI,MAAM,QAAQ,OAAO,IAAI,SAAS,MAAM;CACxC,MAAM,MAAQ,OAAO,IAAI,SAAS,IAAI;AACtC,KAAI,CAAC,MAAM,SAAS,CAAE,OAAM,IAAI,MAAM,2CAA2C,OAAO,IAAI,KAAK,KAAK,GAAG,4BAA4B;AACrI,KAAI,CAAC,IAAM,SAAS,CAAE,OAAM,IAAI,MAAM,2CAA2C,OAAO,IAAI,KAAK,KAAK,GAAG,0BAA0B;AAEnI,KAAI,IAAI,eAAe,MAAM,CAAE,OAAM,IAAI,MAAM,2CAA2C,OAAO,IAAI,KAAK,KAAK,GAAG,wDAAwD;AAE1K,QAAO;EAAE;EAAO;EAAK"}