@mtgame/core 0.2.25 → 2.0.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 (522) hide show
  1. package/api/basketball-game-api.d.ts +3 -0
  2. package/api/feedback-api.d.ts +5 -2
  3. package/api/file-api.d.ts +3 -0
  4. package/api/football-game-api.d.ts +3 -0
  5. package/api/game-base-api.d.ts +3 -0
  6. package/api/handball-game-api.d.ts +3 -0
  7. package/api/hockey-game-api.d.ts +3 -0
  8. package/api/league-api.d.ts +3 -0
  9. package/api/league-news-api.d.ts +3 -0
  10. package/api/league-player-api.d.ts +3 -0
  11. package/api/media-api.d.ts +5 -2
  12. package/api/notification-api.d.ts +3 -0
  13. package/api/notification-base-api.d.ts +3 -0
  14. package/api/org-notification-api.d.ts +3 -0
  15. package/api/public-team-api.d.ts +3 -2
  16. package/api/public-user-api.d.ts +3 -0
  17. package/api/reference-api.d.ts +3 -0
  18. package/api/rugby-game-api.d.ts +3 -0
  19. package/api/team-api.d.ts +4 -1
  20. package/api/team-event-api.d.ts +3 -0
  21. package/api/tournament-api.d.ts +3 -2
  22. package/api/tournament-join-api.d.ts +3 -0
  23. package/api/tournament-round-api.d.ts +3 -0
  24. package/api/tournament-season-api.d.ts +3 -0
  25. package/api/tournament-stage-api.d.ts +3 -0
  26. package/api/user-api.d.ts +5 -2
  27. package/api/volleyball-game-api.d.ts +3 -1
  28. package/api/waterpolo-game-api.d.ts +3 -0
  29. package/esm2020/api/basketball-game-api.mjs +44 -0
  30. package/esm2020/api/feedback-api.mjs +29 -0
  31. package/esm2020/api/file-api.mjs +41 -0
  32. package/esm2020/api/football-game-api.mjs +49 -0
  33. package/esm2020/api/game-base-api.mjs +40 -0
  34. package/esm2020/api/handball-game-api.mjs +49 -0
  35. package/esm2020/api/hockey-game-api.mjs +49 -0
  36. package/esm2020/api/league-api.mjs +119 -0
  37. package/esm2020/api/league-news-api.mjs +57 -0
  38. package/esm2020/api/league-player-api.mjs +31 -0
  39. package/esm2020/api/media-api.mjs +124 -0
  40. package/esm2020/api/notification-api.mjs +16 -0
  41. package/esm2020/api/notification-base-api.mjs +62 -0
  42. package/esm2020/api/org-notification-api.mjs +16 -0
  43. package/{esm2015/api/paginated-response.interface.js → esm2020/api/paginated-response.interface.mjs} +0 -0
  44. package/{esm2015/api/public-api.js → esm2020/api/public-api.mjs} +0 -0
  45. package/esm2020/api/public-team-api.mjs +28 -0
  46. package/esm2020/api/public-user-api.mjs +38 -0
  47. package/esm2020/api/reference-api.mjs +30 -0
  48. package/esm2020/api/rugby-game-api.mjs +47 -0
  49. package/esm2020/api/team-api.mjs +302 -0
  50. package/esm2020/api/team-event-api.mjs +61 -0
  51. package/esm2020/api/tournament-api.mjs +391 -0
  52. package/esm2020/api/tournament-join-api.mjs +55 -0
  53. package/esm2020/api/tournament-round-api.mjs +57 -0
  54. package/esm2020/api/tournament-season-api.mjs +92 -0
  55. package/esm2020/api/tournament-stage-api.mjs +48 -0
  56. package/esm2020/api/user-api.mjs +219 -0
  57. package/esm2020/api/volleyball-game-api.mjs +49 -0
  58. package/esm2020/api/waterpolo-game-api.mjs +49 -0
  59. package/esm2020/http-cookie.interceptor.mjs +38 -0
  60. package/{esm2015/localization/basketball-game-log-types.js → esm2020/localization/basketball-game-log-types.mjs} +0 -0
  61. package/{esm2015/localization/basketball-game-sub-log-types.js → esm2020/localization/basketball-game-sub-log-types.mjs} +2 -5
  62. package/{esm2015/localization/football-game-log-types.js → esm2020/localization/football-game-log-types.mjs} +0 -0
  63. package/{esm2015/localization/handball-game-log-types.js → esm2020/localization/handball-game-log-types.mjs} +0 -0
  64. package/{esm2015/localization/hockey-game-log-types.js → esm2020/localization/hockey-game-log-types.mjs} +2 -5
  65. package/esm2020/localization/hockey-penalty-types.mjs +50 -0
  66. package/{esm2015/localization/organization-statuses.js → esm2020/localization/organization-statuses.mjs} +0 -0
  67. package/{esm2015/localization/overtime-types.js → esm2020/localization/overtime-types.mjs} +0 -0
  68. package/{esm2015/localization/public-api.js → esm2020/localization/public-api.mjs} +0 -0
  69. package/{esm2015/localization/rugby-foul-game-stage.js → esm2020/localization/rugby-foul-game-stage.mjs} +0 -0
  70. package/{esm2015/localization/rugby-foul-sanction.js → esm2020/localization/rugby-foul-sanction.mjs} +0 -0
  71. package/{esm2015/localization/rugby-game-log-types.js → esm2020/localization/rugby-game-log-types.mjs} +0 -0
  72. package/{esm2015/localization/team-event-type.js → esm2020/localization/team-event-type.mjs} +0 -0
  73. package/{esm2015/localization/team-user-role.js → esm2020/localization/team-user-role.mjs} +0 -0
  74. package/{esm2015/localization/user-profile.js → esm2020/localization/user-profile.mjs} +0 -0
  75. package/{esm2015/localization/volleyball-game-log-types.js → esm2020/localization/volleyball-game-log-types.mjs} +0 -0
  76. package/{esm2015/localization/waterpolo-game-log-types.js → esm2020/localization/waterpolo-game-log-types.mjs} +3 -3
  77. package/esm2020/models/achievement.mjs +18 -0
  78. package/esm2020/models/base-statistic.mjs +4 -0
  79. package/esm2020/models/basketball-game-config.mjs +18 -0
  80. package/esm2020/models/basketball-game-log.mjs +158 -0
  81. package/esm2020/models/basketball-game-statistic.mjs +47 -0
  82. package/esm2020/models/basketball-game-team-statistic.mjs +15 -0
  83. package/esm2020/models/basketball-profile.mjs +27 -0
  84. package/esm2020/models/basketball-statistic.mjs +62 -0
  85. package/esm2020/models/city.mjs +9 -0
  86. package/esm2020/models/feedback.mjs +14 -0
  87. package/esm2020/models/file.mjs +31 -0
  88. package/esm2020/models/football-game-config.mjs +22 -0
  89. package/esm2020/models/football-game-log.mjs +83 -0
  90. package/esm2020/models/football-game-statistic.mjs +93 -0
  91. package/esm2020/models/football-game-team-statistic.mjs +15 -0
  92. package/esm2020/models/football-profile.mjs +27 -0
  93. package/esm2020/models/football-statistic.mjs +76 -0
  94. package/esm2020/models/game-bill.mjs +30 -0
  95. package/esm2020/models/game-config-base.mjs +4 -0
  96. package/esm2020/models/game-invite.mjs +22 -0
  97. package/esm2020/models/game-log-base.mjs +4 -0
  98. package/esm2020/models/game-statistic-base.mjs +7 -0
  99. package/{esm2015/models/game-team-statistic-base.js → esm2020/models/game-team-statistic-base.mjs} +0 -0
  100. package/esm2020/models/game-timeline-stages.mjs +19 -0
  101. package/esm2020/models/game-user-disqualification.mjs +14 -0
  102. package/esm2020/models/game-user-limitation.mjs +19 -0
  103. package/esm2020/models/game-user.mjs +20 -0
  104. package/esm2020/models/game.mjs +188 -0
  105. package/esm2020/models/handball-game-config.mjs +16 -0
  106. package/esm2020/models/handball-game-log.mjs +71 -0
  107. package/esm2020/models/handball-game-statistic.mjs +67 -0
  108. package/esm2020/models/handball-game-team-statistic.mjs +15 -0
  109. package/esm2020/models/handball-profile.mjs +23 -0
  110. package/esm2020/models/handball-statistic.mjs +37 -0
  111. package/esm2020/models/hockey-game-config.mjs +25 -0
  112. package/esm2020/models/hockey-game-log.mjs +102 -0
  113. package/esm2020/models/hockey-game-statistic.mjs +101 -0
  114. package/esm2020/models/hockey-game-team-statistic.mjs +15 -0
  115. package/esm2020/models/hockey-penalty-types.mjs +6 -0
  116. package/esm2020/models/hockey-profile.mjs +25 -0
  117. package/esm2020/models/hockey-statistic.mjs +49 -0
  118. package/esm2020/models/league-banner.mjs +21 -0
  119. package/esm2020/models/league-court.mjs +9 -0
  120. package/esm2020/models/league-document.mjs +14 -0
  121. package/esm2020/models/league-news.mjs +25 -0
  122. package/esm2020/models/league-partner.mjs +14 -0
  123. package/esm2020/models/league-player.mjs +81 -0
  124. package/esm2020/models/league-playlist.mjs +14 -0
  125. package/esm2020/models/league-user.mjs +38 -0
  126. package/esm2020/models/league.mjs +38 -0
  127. package/esm2020/models/media-item.mjs +20 -0
  128. package/esm2020/models/notification-settings.mjs +20 -0
  129. package/esm2020/models/notification.mjs +105 -0
  130. package/esm2020/models/organization-bill.mjs +31 -0
  131. package/esm2020/models/organization-statistic.mjs +9 -0
  132. package/esm2020/models/organization-tariff.mjs +16 -0
  133. package/esm2020/models/organization.mjs +21 -0
  134. package/esm2020/models/playoff.mjs +56 -0
  135. package/esm2020/models/poll.mjs +83 -0
  136. package/esm2020/models/public-api.mjs +110 -0
  137. package/esm2020/models/rugby-foul-type.mjs +39 -0
  138. package/esm2020/models/rugby-game-config.mjs +23 -0
  139. package/esm2020/models/rugby-game-log.mjs +120 -0
  140. package/esm2020/models/rugby-game-statistic.mjs +29 -0
  141. package/esm2020/models/rugby-game-team-statistic.mjs +15 -0
  142. package/esm2020/models/rugby-profile.mjs +22 -0
  143. package/esm2020/models/rugby-statistic.mjs +37 -0
  144. package/esm2020/models/season-tournament.mjs +9 -0
  145. package/esm2020/models/sport.mjs +96 -0
  146. package/esm2020/models/team-access.mjs +14 -0
  147. package/esm2020/models/team-achievement.mjs +18 -0
  148. package/esm2020/models/team-event-invite.mjs +18 -0
  149. package/{esm2015/models/team-event-type.js → esm2020/models/team-event-type.mjs} +0 -0
  150. package/esm2020/models/team-event.mjs +27 -0
  151. package/esm2020/models/team-invite-external.mjs +9 -0
  152. package/esm2020/models/team-invite.mjs +18 -0
  153. package/esm2020/models/team-permission.mjs +23 -0
  154. package/esm2020/models/team-user.mjs +30 -0
  155. package/esm2020/models/team.mjs +46 -0
  156. package/esm2020/models/teams-and-users.mjs +20 -0
  157. package/esm2020/models/tournament-disqualification.mjs +14 -0
  158. package/esm2020/models/tournament-division.mjs +14 -0
  159. package/esm2020/models/tournament-event.mjs +28 -0
  160. package/esm2020/models/tournament-group.mjs +9 -0
  161. package/esm2020/models/tournament-invite.mjs +21 -0
  162. package/esm2020/models/tournament-join-team.mjs +27 -0
  163. package/esm2020/models/tournament-join1x1-data.mjs +15 -0
  164. package/esm2020/models/tournament-news.mjs +17 -0
  165. package/esm2020/models/tournament-round-team.mjs +40 -0
  166. package/esm2020/models/tournament-round.mjs +22 -0
  167. package/esm2020/models/tournament-season.mjs +25 -0
  168. package/esm2020/models/tournament-stage-team.mjs +22 -0
  169. package/esm2020/models/tournament-stage.mjs +20 -0
  170. package/esm2020/models/tournament-team-user-invite.mjs +14 -0
  171. package/esm2020/models/tournament-team-user.mjs +20 -0
  172. package/esm2020/models/tournament-team.mjs +28 -0
  173. package/esm2020/models/tournament.mjs +153 -0
  174. package/esm2020/models/user-access.mjs +9 -0
  175. package/esm2020/models/user-permission.mjs +23 -0
  176. package/esm2020/models/user-profile.mjs +9 -0
  177. package/esm2020/models/user.mjs +55 -0
  178. package/esm2020/models/util.mjs +143 -0
  179. package/esm2020/models/volleyball-game-config.mjs +27 -0
  180. package/esm2020/models/volleyball-game-log.mjs +124 -0
  181. package/esm2020/models/volleyball-game-statistic.mjs +34 -0
  182. package/esm2020/models/volleyball-game-team-statistic.mjs +15 -0
  183. package/esm2020/models/volleyball-profile.mjs +27 -0
  184. package/esm2020/models/volleyball-statistic.mjs +44 -0
  185. package/esm2020/models/waterpolo-game-config.mjs +25 -0
  186. package/esm2020/models/waterpolo-game-log.mjs +142 -0
  187. package/esm2020/models/waterpolo-game-statistic.mjs +472 -0
  188. package/esm2020/models/waterpolo-game-team-statistic.mjs +15 -0
  189. package/esm2020/models/waterpolo-profile.mjs +26 -0
  190. package/esm2020/models/waterpolo-statistic.mjs +57 -0
  191. package/{esm2015/mtgame-core.js → esm2020/mtgame-core.mjs} +0 -0
  192. package/{esm2015/public-api.js → esm2020/public-api.mjs} +2 -1
  193. package/esm2020/services/base.controller.mjs +19 -0
  194. package/esm2020/services/base.service.mjs +18 -0
  195. package/esm2020/services/centrifugo.service.mjs +105 -0
  196. package/esm2020/services/config.service.mjs +44 -0
  197. package/{esm2015/services/public-api.js → esm2020/services/public-api.mjs} +2 -1
  198. package/esm2020/storage/local-storage-engine.mjs +18 -0
  199. package/esm2020/storage/new.mjs +46 -0
  200. package/esm2020/storage/old-local-storage-engine.mjs +18 -0
  201. package/esm2020/storage/old-storage-engine.mjs +49 -0
  202. package/esm2020/storage/public-api.mjs +7 -0
  203. package/esm2020/storage/storage-engine.mjs +47 -0
  204. package/{esm2015/storage/store.js → esm2020/storage/store.mjs} +1 -1
  205. package/{esm2015/utils/array.js → esm2020/utils/array.mjs} +0 -0
  206. package/esm2020/utils/component-destroyed.mjs +27 -0
  207. package/{esm2015/utils/cookie.js → esm2020/utils/cookie.mjs} +0 -0
  208. package/esm2020/utils/data.mjs +164 -0
  209. package/{esm2015/utils/date.js → esm2020/utils/date.mjs} +0 -0
  210. package/{esm2015/utils/device.js → esm2020/utils/device.mjs} +0 -0
  211. package/{esm2015/utils/enum.js → esm2020/utils/enum.mjs} +0 -0
  212. package/{esm2015/utils/errors.js → esm2020/utils/errors.mjs} +2 -4
  213. package/{esm2015/utils/favicon.js → esm2020/utils/favicon.mjs} +0 -0
  214. package/{esm2015/utils/form.js → esm2020/utils/form.mjs} +0 -0
  215. package/{esm2015/utils/public-api.js → esm2020/utils/public-api.mjs} +0 -0
  216. package/{esm2015/utils/validators.js → esm2020/utils/validators.mjs} +0 -0
  217. package/esm2020/websocket/game.websocket.mjs +61 -0
  218. package/esm2020/websocket/public-api.mjs +2 -0
  219. package/fesm2015/{mtgame-core.js → mtgame-core.mjs} +1665 -4848
  220. package/fesm2015/mtgame-core.mjs.map +1 -0
  221. package/fesm2020/mtgame-core.mjs +7270 -0
  222. package/fesm2020/mtgame-core.mjs.map +1 -0
  223. package/http-cookie.interceptor.d.ts +3 -0
  224. package/localization/basketball-game-sub-log-types.d.ts +0 -3
  225. package/localization/football-game-log-types.d.ts +29 -29
  226. package/localization/hockey-game-log-types.d.ts +0 -3
  227. package/localization/hockey-penalty-types.d.ts +2 -5
  228. package/models/achievement.d.ts +0 -2
  229. package/models/base-statistic.d.ts +2 -1
  230. package/models/basketball-game-config.d.ts +2 -4
  231. package/models/basketball-game-log.d.ts +2 -9
  232. package/models/basketball-game-statistic.d.ts +1 -4
  233. package/models/basketball-game-team-statistic.d.ts +0 -2
  234. package/models/basketball-profile.d.ts +0 -2
  235. package/models/basketball-statistic.d.ts +1 -4
  236. package/models/city.d.ts +0 -2
  237. package/models/feedback.d.ts +2 -3
  238. package/models/file.d.ts +2 -3
  239. package/models/football-game-config.d.ts +2 -4
  240. package/models/football-game-log.d.ts +30 -33
  241. package/models/football-game-statistic.d.ts +1 -4
  242. package/models/football-game-team-statistic.d.ts +0 -2
  243. package/models/football-profile.d.ts +0 -2
  244. package/models/football-statistic.d.ts +1 -4
  245. package/models/game-bill.d.ts +0 -2
  246. package/models/game-config-base.d.ts +3 -0
  247. package/models/game-invite.d.ts +0 -2
  248. package/models/game-log-base.d.ts +3 -2
  249. package/models/game-statistic-base.d.ts +3 -1
  250. package/models/game-timeline-stages.d.ts +1 -5
  251. package/models/game-user-disqualification.d.ts +0 -2
  252. package/models/game-user-limitation.d.ts +0 -4
  253. package/models/game-user.d.ts +0 -2
  254. package/models/game.d.ts +10 -21
  255. package/models/handball-game-config.d.ts +2 -4
  256. package/models/handball-game-log.d.ts +1 -4
  257. package/models/handball-game-statistic.d.ts +1 -4
  258. package/models/handball-game-team-statistic.d.ts +0 -2
  259. package/models/handball-profile.d.ts +0 -2
  260. package/models/handball-statistic.d.ts +1 -4
  261. package/models/hockey-game-config.d.ts +2 -4
  262. package/models/hockey-game-log.d.ts +4 -15
  263. package/models/hockey-game-statistic.d.ts +1 -18
  264. package/models/hockey-game-team-statistic.d.ts +0 -2
  265. package/models/hockey-penalty-types.d.ts +7 -0
  266. package/models/hockey-profile.d.ts +0 -2
  267. package/models/hockey-statistic.d.ts +1 -18
  268. package/models/league-banner.d.ts +0 -2
  269. package/models/league-court.d.ts +0 -2
  270. package/models/league-document.d.ts +0 -2
  271. package/models/league-news.d.ts +0 -2
  272. package/models/league-partner.d.ts +0 -2
  273. package/models/league-player.d.ts +2 -13
  274. package/models/league-playlist.d.ts +0 -2
  275. package/models/league-user.d.ts +0 -2
  276. package/models/league.d.ts +1 -6
  277. package/models/media-item.d.ts +0 -2
  278. package/models/notification-settings.d.ts +0 -2
  279. package/models/notification.d.ts +0 -2
  280. package/models/organization-bill.d.ts +0 -2
  281. package/models/organization-statistic.d.ts +0 -2
  282. package/models/organization-tariff.d.ts +0 -2
  283. package/models/organization.d.ts +0 -2
  284. package/models/playoff.d.ts +0 -4
  285. package/models/poll.d.ts +0 -6
  286. package/models/public-api.d.ts +0 -6
  287. package/models/rugby-foul-type.d.ts +0 -2
  288. package/models/rugby-game-config.d.ts +2 -4
  289. package/models/rugby-game-log.d.ts +1 -4
  290. package/models/rugby-game-statistic.d.ts +7 -10
  291. package/models/rugby-game-team-statistic.d.ts +0 -2
  292. package/models/rugby-profile.d.ts +0 -2
  293. package/models/rugby-statistic.d.ts +1 -4
  294. package/models/season-tournament.d.ts +0 -2
  295. package/models/sport.d.ts +0 -2
  296. package/models/team-access.d.ts +0 -2
  297. package/models/team-achievement.d.ts +0 -2
  298. package/models/team-event-invite.d.ts +2 -3
  299. package/models/team-event.d.ts +0 -2
  300. package/models/team-invite-external.d.ts +0 -2
  301. package/models/team-invite.d.ts +0 -2
  302. package/models/team-permission.d.ts +0 -2
  303. package/models/team-user.d.ts +0 -2
  304. package/models/team.d.ts +0 -2
  305. package/models/teams-and-users.d.ts +0 -2
  306. package/models/tournament-disqualification.d.ts +0 -2
  307. package/models/tournament-division.d.ts +0 -2
  308. package/models/tournament-event.d.ts +0 -2
  309. package/models/tournament-group.d.ts +0 -2
  310. package/models/tournament-invite.d.ts +0 -2
  311. package/models/tournament-join-team.d.ts +0 -4
  312. package/models/tournament-join1x1-data.d.ts +0 -2
  313. package/models/tournament-news.d.ts +0 -2
  314. package/models/tournament-round-team.d.ts +4 -14
  315. package/models/tournament-round.d.ts +0 -2
  316. package/models/tournament-season.d.ts +0 -2
  317. package/models/tournament-stage-team.d.ts +0 -2
  318. package/models/tournament-stage.d.ts +0 -2
  319. package/models/tournament-team-user-invite.d.ts +0 -2
  320. package/models/tournament-team-user.d.ts +0 -5
  321. package/models/tournament-team.d.ts +0 -16
  322. package/models/tournament.d.ts +5 -21
  323. package/models/user-access.d.ts +0 -2
  324. package/models/user-permission.d.ts +0 -2
  325. package/models/user-profile.d.ts +2 -3
  326. package/models/user.d.ts +2 -6
  327. package/models/util.d.ts +22 -46
  328. package/models/volleyball-game-config.d.ts +2 -4
  329. package/models/volleyball-game-log.d.ts +1 -4
  330. package/models/volleyball-game-statistic.d.ts +1 -4
  331. package/models/volleyball-game-team-statistic.d.ts +0 -2
  332. package/models/volleyball-profile.d.ts +0 -2
  333. package/models/volleyball-statistic.d.ts +1 -4
  334. package/models/waterpolo-game-config.d.ts +2 -4
  335. package/models/waterpolo-game-log.d.ts +1 -4
  336. package/models/waterpolo-game-statistic.d.ts +1 -4
  337. package/models/waterpolo-game-team-statistic.d.ts +0 -2
  338. package/models/waterpolo-profile.d.ts +0 -2
  339. package/models/waterpolo-statistic.d.ts +1 -4
  340. package/mtgame-core.d.ts +1 -0
  341. package/package.json +23 -10
  342. package/public-api.d.ts +1 -0
  343. package/services/base.controller.d.ts +12 -0
  344. package/services/base.service.d.ts +3 -0
  345. package/services/centrifugo.service.d.ts +6 -4
  346. package/services/config.service.d.ts +3 -0
  347. package/services/public-api.d.ts +1 -0
  348. package/storage/local-storage-engine.d.ts +2 -2
  349. package/storage/new.d.ts +17 -0
  350. package/storage/old-local-storage-engine.d.ts +6 -0
  351. package/storage/old-storage-engine.d.ts +24 -0
  352. package/storage/public-api.d.ts +5 -2
  353. package/storage/storage-engine.d.ts +25 -18
  354. package/storage/store.d.ts +3 -3
  355. package/utils/component-destroyed.d.ts +1 -1
  356. package/utils/data.d.ts +36 -6
  357. package/websocket/game.websocket.d.ts +24 -0
  358. package/websocket/public-api.d.ts +1 -0
  359. package/bundles/mtgame-core.umd.js +0 -14010
  360. package/bundles/mtgame-core.umd.js.map +0 -1
  361. package/esm2015/api/basketball-game-api.js +0 -61
  362. package/esm2015/api/feedback-api.js +0 -38
  363. package/esm2015/api/file-api.js +0 -49
  364. package/esm2015/api/football-game-api.js +0 -65
  365. package/esm2015/api/game-base-api.js +0 -54
  366. package/esm2015/api/handball-game-api.js +0 -65
  367. package/esm2015/api/hockey-game-api.js +0 -65
  368. package/esm2015/api/league-api.js +0 -151
  369. package/esm2015/api/league-news-api.js +0 -71
  370. package/esm2015/api/league-player-api.js +0 -34
  371. package/esm2015/api/media-api.js +0 -131
  372. package/esm2015/api/notification-api.js +0 -16
  373. package/esm2015/api/notification-base-api.js +0 -82
  374. package/esm2015/api/org-notification-api.js +0 -16
  375. package/esm2015/api/public-team-api.js +0 -41
  376. package/esm2015/api/public-user-api.js +0 -41
  377. package/esm2015/api/reference-api.js +0 -39
  378. package/esm2015/api/rugby-game-api.js +0 -63
  379. package/esm2015/api/team-api.js +0 -393
  380. package/esm2015/api/team-event-api.js +0 -80
  381. package/esm2015/api/tournament-api.js +0 -471
  382. package/esm2015/api/tournament-join-api.js +0 -72
  383. package/esm2015/api/tournament-round-api.js +0 -71
  384. package/esm2015/api/tournament-season-api.js +0 -112
  385. package/esm2015/api/tournament-stage-api.js +0 -63
  386. package/esm2015/api/user-api.js +0 -283
  387. package/esm2015/api/volleyball-game-api.js +0 -73
  388. package/esm2015/api/waterpolo-game-api.js +0 -65
  389. package/esm2015/http-cookie.interceptor.js +0 -37
  390. package/esm2015/localization/hockey-penalty-types.js +0 -50
  391. package/esm2015/models/achievement.js +0 -33
  392. package/esm2015/models/base-statistic.js +0 -2
  393. package/esm2015/models/basketball-game-config.js +0 -41
  394. package/esm2015/models/basketball-game-log.js +0 -192
  395. package/esm2015/models/basketball-game-statistic.js +0 -81
  396. package/esm2015/models/basketball-game-team-statistic.js +0 -27
  397. package/esm2015/models/basketball-profile.js +0 -43
  398. package/esm2015/models/basketball-statistic.js +0 -114
  399. package/esm2015/models/city.js +0 -22
  400. package/esm2015/models/feedback.js +0 -34
  401. package/esm2015/models/file.js +0 -54
  402. package/esm2015/models/football-game-config.js +0 -44
  403. package/esm2015/models/football-game-log.js +0 -104
  404. package/esm2015/models/football-game-statistic.js +0 -137
  405. package/esm2015/models/football-game-team-statistic.js +0 -27
  406. package/esm2015/models/football-profile.js +0 -43
  407. package/esm2015/models/football-statistic.js +0 -150
  408. package/esm2015/models/game-bill.js +0 -47
  409. package/esm2015/models/game-invite.js +0 -37
  410. package/esm2015/models/game-log-base.js +0 -2
  411. package/esm2015/models/game-statistic-base.js +0 -2
  412. package/esm2015/models/game-timeline-stages.js +0 -53
  413. package/esm2015/models/game-user-disqualification.js +0 -28
  414. package/esm2015/models/game-user-limitation.js +0 -51
  415. package/esm2015/models/game-user.js +0 -37
  416. package/esm2015/models/game.js +0 -281
  417. package/esm2015/models/handball-game-config.js +0 -34
  418. package/esm2015/models/handball-game-log.js +0 -92
  419. package/esm2015/models/handball-game-statistic.js +0 -101
  420. package/esm2015/models/handball-game-team-statistic.js +0 -27
  421. package/esm2015/models/handball-profile.js +0 -39
  422. package/esm2015/models/handball-statistic.js +0 -95
  423. package/esm2015/models/hockey-game-config.js +0 -48
  424. package/esm2015/models/hockey-game-log.js +0 -128
  425. package/esm2015/models/hockey-game-statistic.js +0 -159
  426. package/esm2015/models/hockey-game-team-statistic.js +0 -27
  427. package/esm2015/models/hockey-profile.js +0 -41
  428. package/esm2015/models/hockey-statistic.js +0 -143
  429. package/esm2015/models/league-banner.js +0 -39
  430. package/esm2015/models/league-court.js +0 -25
  431. package/esm2015/models/league-document.js +0 -26
  432. package/esm2015/models/league-field-base-value.js +0 -4
  433. package/esm2015/models/league-field-base.js +0 -25
  434. package/esm2015/models/league-news.js +0 -50
  435. package/esm2015/models/league-partner.js +0 -29
  436. package/esm2015/models/league-player-field-value.js +0 -32
  437. package/esm2015/models/league-player-field.js +0 -30
  438. package/esm2015/models/league-player.js +0 -116
  439. package/esm2015/models/league-playlist.js +0 -28
  440. package/esm2015/models/league-team-field.js +0 -30
  441. package/esm2015/models/league-user.js +0 -52
  442. package/esm2015/models/league.js +0 -71
  443. package/esm2015/models/media-item.js +0 -41
  444. package/esm2015/models/notification-settings.js +0 -35
  445. package/esm2015/models/notification.js +0 -134
  446. package/esm2015/models/organization-bill.js +0 -50
  447. package/esm2015/models/organization-statistic.js +0 -26
  448. package/esm2015/models/organization-tariff.js +0 -30
  449. package/esm2015/models/organization.js +0 -40
  450. package/esm2015/models/playoff.js +0 -91
  451. package/esm2015/models/poll.js +0 -132
  452. package/esm2015/models/public-api.js +0 -116
  453. package/esm2015/models/rugby-foul-type.js +0 -53
  454. package/esm2015/models/rugby-game-config.js +0 -42
  455. package/esm2015/models/rugby-game-log.js +0 -144
  456. package/esm2015/models/rugby-game-statistic.js +0 -89
  457. package/esm2015/models/rugby-game-team-statistic.js +0 -27
  458. package/esm2015/models/rugby-profile.js +0 -37
  459. package/esm2015/models/rugby-statistic.js +0 -123
  460. package/esm2015/models/season-tournament.js +0 -22
  461. package/esm2015/models/sport.js +0 -115
  462. package/esm2015/models/team-access.js +0 -45
  463. package/esm2015/models/team-achievement.js +0 -34
  464. package/esm2015/models/team-event-invite.js +0 -32
  465. package/esm2015/models/team-event.js +0 -45
  466. package/esm2015/models/team-invite-external.js +0 -25
  467. package/esm2015/models/team-invite.js +0 -41
  468. package/esm2015/models/team-permission.js +0 -38
  469. package/esm2015/models/team-user.js +0 -48
  470. package/esm2015/models/team.js +0 -71
  471. package/esm2015/models/teams-and-users.js +0 -32
  472. package/esm2015/models/tournament-disqualification.js +0 -30
  473. package/esm2015/models/tournament-division.js +0 -27
  474. package/esm2015/models/tournament-event.js +0 -45
  475. package/esm2015/models/tournament-group.js +0 -26
  476. package/esm2015/models/tournament-invite.js +0 -39
  477. package/esm2015/models/tournament-join-team.js +0 -55
  478. package/esm2015/models/tournament-join1x1-data.js +0 -32
  479. package/esm2015/models/tournament-news.js +0 -33
  480. package/esm2015/models/tournament-round-team.js +0 -95
  481. package/esm2015/models/tournament-round.js +0 -36
  482. package/esm2015/models/tournament-season.js +0 -45
  483. package/esm2015/models/tournament-stage-team.js +0 -47
  484. package/esm2015/models/tournament-stage.js +0 -35
  485. package/esm2015/models/tournament-team-field-value.js +0 -32
  486. package/esm2015/models/tournament-team-user-invite.js +0 -29
  487. package/esm2015/models/tournament-team-user.js +0 -39
  488. package/esm2015/models/tournament-team.js +0 -103
  489. package/esm2015/models/tournament.js +0 -266
  490. package/esm2015/models/user-access.js +0 -25
  491. package/esm2015/models/user-permission.js +0 -38
  492. package/esm2015/models/user-profile.js +0 -24
  493. package/esm2015/models/user.js +0 -91
  494. package/esm2015/models/util.js +0 -237
  495. package/esm2015/models/volleyball-game-config.js +0 -44
  496. package/esm2015/models/volleyball-game-log.js +0 -145
  497. package/esm2015/models/volleyball-game-statistic.js +0 -64
  498. package/esm2015/models/volleyball-game-team-statistic.js +0 -27
  499. package/esm2015/models/volleyball-profile.js +0 -43
  500. package/esm2015/models/volleyball-statistic.js +0 -92
  501. package/esm2015/models/waterpolo-game-config.js +0 -45
  502. package/esm2015/models/waterpolo-game-log.js +0 -167
  503. package/esm2015/models/waterpolo-game-statistic.js +0 -641
  504. package/esm2015/models/waterpolo-game-team-statistic.js +0 -27
  505. package/esm2015/models/waterpolo-profile.js +0 -42
  506. package/esm2015/models/waterpolo-statistic.js +0 -336
  507. package/esm2015/services/base.service.js +0 -16
  508. package/esm2015/services/centrifugo.service.js +0 -123
  509. package/esm2015/services/config.service.js +0 -37
  510. package/esm2015/storage/local-storage-engine.js +0 -18
  511. package/esm2015/storage/public-api.js +0 -4
  512. package/esm2015/storage/storage-engine.js +0 -61
  513. package/esm2015/utils/component-destroyed.js +0 -26
  514. package/esm2015/utils/data.js +0 -75
  515. package/fesm2015/mtgame-core.js.map +0 -1
  516. package/models/league-field-base-value.d.ts +0 -7
  517. package/models/league-field-base.d.ts +0 -24
  518. package/models/league-player-field-value.d.ts +0 -8
  519. package/models/league-player-field.d.ts +0 -5
  520. package/models/league-team-field.d.ts +0 -5
  521. package/models/tournament-team-field-value.d.ts +0 -8
  522. package/mtgame-core.metadata.json +0 -1
package/models/team.d.ts CHANGED
@@ -16,6 +16,4 @@ export declare class Team extends BaseModel {
16
16
  scoreSum: number;
17
17
  closestGameDatetime: Date;
18
18
  getEmptyLogoClass(): string;
19
- static toFront(data: any): any;
20
- static toBack(team: Team): any;
21
19
  }
@@ -5,6 +5,4 @@ export declare class TeamsAndUsers extends BaseModel {
5
5
  teams: Team[];
6
6
  leaguePlayers: LeaguePlayer[];
7
7
  get isEmpty(): boolean;
8
- static toFront(data: any): any;
9
- static toBack(data: any): any;
10
8
  }
@@ -6,6 +6,4 @@ export declare class TournamentDisqualification extends BaseModel {
6
6
  dateTo: Date;
7
7
  matchesCount: number;
8
8
  reason: string;
9
- static toFront(data: any): any;
10
- static toBack(data: any): any;
11
9
  }
@@ -4,6 +4,4 @@ export declare class TournamentDivision extends BaseModel {
4
4
  id: number;
5
5
  name: string;
6
6
  cover: File;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
@@ -14,6 +14,4 @@ export declare class TournamentEvent extends BaseModel {
14
14
  tournaments: Tournament[];
15
15
  event: TournamentEventTypes;
16
16
  datetime: Date;
17
- static toFront(data: any): any;
18
- static toBack(data: any): any;
19
17
  }
@@ -8,6 +8,4 @@ export declare class TournamentGroup extends BaseModel {
8
8
  tournamentRoundId: number;
9
9
  divisionId: number;
10
10
  teams: TournamentTeam[];
11
- static toFront(data: any): any;
12
- static toBack(data: any): any;
13
11
  }
@@ -12,6 +12,4 @@ export declare class TournamentInvite extends BaseModel {
12
12
  userInvites: TournamentTeamUserInvite[];
13
13
  notificationsCount: number;
14
14
  get isOpen(): boolean;
15
- static toFront(data: any): any;
16
- static toBack(data: any): any;
17
15
  }
@@ -8,12 +8,8 @@ export declare class TournamentJoinData extends BaseModel {
8
8
  alreadyInTournament: boolean;
9
9
  get usersCount(): number;
10
10
  get valid(): boolean;
11
- static toFront(data: any): any;
12
- static toBack(data: any): any;
13
11
  }
14
12
  export declare class TournamentJoinTeam extends BaseModel {
15
13
  team: Team;
16
14
  joinData: TournamentJoinData;
17
- static toFront(data: any): any;
18
- static toBack(data: any): any;
19
15
  }
@@ -7,6 +7,4 @@ export declare class TournamentJoin1x1Data extends BaseModel {
7
7
  size: string;
8
8
  nickname: string;
9
9
  city: string;
10
- static toFront(data: any): any;
11
- static toBack(data: any): any;
12
10
  }
@@ -8,6 +8,4 @@ export declare class TournamentNews extends BaseModel {
8
8
  text: string;
9
9
  author: User;
10
10
  createdAt: Date;
11
- static toFront(data: any): any;
12
- static toBack(data: any): any;
13
11
  }
@@ -2,15 +2,7 @@ import { BaseModel } from './util';
2
2
  import { TournamentGroup } from './tournament-group';
3
3
  import { TournamentDivision } from './tournament-division';
4
4
  import { TournamentTeam } from './tournament-team';
5
- export declare class RoundTeamGame extends BaseModel {
6
- id: number;
7
- teamId: number;
8
- competitorTeamId: number;
9
- teamScore: number;
10
- competitorTeamScore: number;
11
- static toFront(data: any): any;
12
- static toBack(data: any): any;
13
- }
5
+ import { Game } from './game';
14
6
  export declare class TournamentRoundTeam extends BaseModel {
15
7
  private _games;
16
8
  id: number;
@@ -42,10 +34,8 @@ export declare class TournamentRoundTeam extends BaseModel {
42
34
  [key: string]: number;
43
35
  };
44
36
  gamesMapping: {
45
- [key: number]: RoundTeamGame[];
37
+ [key: number]: Game[];
46
38
  };
47
- set games(value: RoundTeamGame[]);
48
- get games(): RoundTeamGame[];
49
- static toFront(data: any): any;
50
- static toBack(data: any): any;
39
+ set games(value: Game[]);
40
+ get games(): Game[];
51
41
  }
@@ -12,6 +12,4 @@ export declare class TournamentRound extends BaseModel {
12
12
  name: string;
13
13
  type: TournamentRoundTypes;
14
14
  divisions: TournamentDivision[];
15
- static toFront(data: any): any;
16
- static toBack(data: any): any;
17
15
  }
@@ -15,6 +15,4 @@ export declare class TournamentSeason extends BaseModel {
15
15
  status: TournamentSeasonStatuses;
16
16
  startDate: Date;
17
17
  closedDate: Date;
18
- static toFront(data: any): any;
19
- static toBack(data: any): any;
20
18
  }
@@ -18,6 +18,4 @@ export declare class TournamentStageTeam extends BaseModel {
18
18
  receivedPoints: number;
19
19
  receivedMtPoints: number;
20
20
  get gamesWonPercent(): number;
21
- static toFront(data: any): any;
22
- static toBack(data: any): any;
23
21
  }
@@ -10,6 +10,4 @@ export declare class TournamentStage extends BaseModel {
10
10
  date: Date;
11
11
  tournamentId: number;
12
12
  status: TournamentStageStatuses;
13
- static toFront(data: any): any;
14
- static toBack(data: any): any;
15
13
  }
@@ -6,6 +6,4 @@ export declare class TournamentTeamUserInvite extends BaseModel {
6
6
  tournamentTeamId: number;
7
7
  teamUser: TeamUser;
8
8
  accepted: boolean;
9
- static toFront(data: any): any;
10
- static toBack(data: any): any;
11
9
  }
@@ -5,14 +5,9 @@ import { TournamentDisqualification } from './tournament-disqualification';
5
5
  import { LeaguePlayer } from './league-player';
6
6
  export declare class TournamentTeamUser extends BaseModel {
7
7
  id: number;
8
- active: boolean;
9
8
  tournamentTeam: TournamentTeam;
10
9
  teamUser: TeamUser;
11
10
  disqualified: boolean;
12
11
  disqualification: TournamentDisqualification;
13
12
  leaguePlayer: LeaguePlayer;
14
- gamesCount: number;
15
- mvpCount: number;
16
- static toFront(data: any): any;
17
- static toBack(data: any): any;
18
13
  }
@@ -1,17 +1,8 @@
1
1
  import { BaseModel } from './util';
2
2
  import { Team } from './team';
3
3
  import { TournamentGroup } from './tournament-group';
4
- import { Game } from './game';
5
- import { Tournament } from './tournament';
6
4
  import { File } from './file';
7
5
  import { TournamentDivision } from './tournament-division';
8
- import { TournamentTeamFieldValue } from './tournament-team-field-value';
9
- export declare class TeamAdditionalData {
10
- nickname: string;
11
- color: string;
12
- static toFront(data: any): any;
13
- static toBack(data: any): any;
14
- }
15
6
  export declare class TournamentTeam extends BaseModel {
16
7
  id: number;
17
8
  name: string;
@@ -20,11 +11,9 @@ export declare class TournamentTeam extends BaseModel {
20
11
  teamUniform: File;
21
12
  teamId: number;
22
13
  tournamentId: number;
23
- tournament: Tournament;
24
14
  team: Team;
25
15
  group: TournamentGroup;
26
16
  division: TournamentDivision;
27
- teamAdditionalData: TeamAdditionalData;
28
17
  finalStanding: number;
29
18
  gamesCount: number;
30
19
  wonGamesCount: number;
@@ -39,19 +28,14 @@ export declare class TournamentTeam extends BaseModel {
39
28
  points: number;
40
29
  mtPoints: number;
41
30
  usersCount: number;
42
- games: Game[];
43
31
  notificationsCount: number;
44
32
  winNormalTimeGamesCount: number;
45
33
  loseNormalTimeGamesCount: number;
46
34
  winOvertimeGamesCount: number;
47
35
  loseOvertimeGamesCount: number;
48
- lastFiveGames: Game[];
49
36
  triesScored: number;
50
37
  triesMissed: number;
51
38
  attackBonuses: number;
52
39
  defenseBonuses: number;
53
- fieldValues: TournamentTeamFieldValue[];
54
40
  get gamesWonPercent(): number;
55
- static toFront(data: any): any;
56
- static toBack(data: any): any;
57
41
  }
@@ -3,8 +3,8 @@ import { City } from './city';
3
3
  import { File } from './file';
4
4
  import { League } from './league';
5
5
  import { Sport } from './sport';
6
- import { Team } from './team';
7
6
  import { TournamentSeason } from './tournament-season';
7
+ import { TournamentTeam } from './tournament-team';
8
8
  export declare enum TournamentTypes {
9
9
  group = "group",
10
10
  elimination = "elimination",
@@ -91,21 +91,7 @@ export declare class TournamentSettings extends BaseModel {
91
91
  misconductPenaltyTime: number;
92
92
  gameMisconductPenaltyTime: number;
93
93
  timerType: TimerTypes;
94
- hideOnLeagueMainPage: boolean;
95
94
  get genderTitle(): string;
96
- static toFront(data: any): any;
97
- static toBack(data: any): any;
98
- }
99
- export declare class TournamentTeamWinner extends BaseModel {
100
- id: number;
101
- teamId: number;
102
- tournamentId: number;
103
- name: string;
104
- logo: File;
105
- team: Team;
106
- points: number;
107
- static toFront(data: any): any;
108
- static toBack(data: any): any;
109
95
  }
110
96
  export declare class Tournament extends BaseModel {
111
97
  id: number;
@@ -113,7 +99,6 @@ export declare class Tournament extends BaseModel {
113
99
  alias: string;
114
100
  logo: File;
115
101
  cover: File;
116
- coverMobile: File;
117
102
  previewImage: File;
118
103
  city: City;
119
104
  sport: Sport;
@@ -127,14 +112,13 @@ export declare class Tournament extends BaseModel {
127
112
  teamsCount: number;
128
113
  closestGameDatetime: string;
129
114
  status: TournamentStatuses;
130
- teamWinner: TournamentTeamWinner;
131
- teamSecond: TournamentTeamWinner;
132
- teamThird: TournamentTeamWinner;
115
+ teamWinner: TournamentTeam;
116
+ teamSecond: TournamentTeam;
117
+ teamThird: TournamentTeam;
133
118
  season: TournamentSeason;
134
119
  seasonId: number;
135
120
  gamePrice: number;
136
121
  seasonTournamentId: number;
122
+ leagueId: number;
137
123
  getEmptyLogoClass(): string;
138
- static toFront(data: any): any;
139
- static toBack(data: any): any;
140
124
  }
@@ -5,6 +5,4 @@ export declare class UserAccess extends BaseModel {
5
5
  teams: boolean;
6
6
  statistic: boolean;
7
7
  games: boolean;
8
- static toFront(data: any): any;
9
- static toBack(data: any): any;
10
8
  }
@@ -11,6 +11,4 @@ export declare class UserPermission extends BaseModel {
11
11
  games: UserPermissionTypes;
12
12
  teams: UserPermissionTypes;
13
13
  statistic: UserPermissionTypes;
14
- static toFront(data: any): any;
15
- static toBack(data: any): any;
16
14
  }
@@ -1,8 +1,7 @@
1
- export declare class UserProfile {
1
+ import { BaseModel } from './util';
2
+ export declare class UserProfile extends BaseModel {
2
3
  id: number;
3
4
  userId: number;
4
5
  height: number;
5
6
  weight: number;
6
- static toFront(value: any): any;
7
- static toBack(value: any): any;
8
7
  }
package/models/user.d.ts CHANGED
@@ -10,8 +10,8 @@ import { HandballProfile } from './handball-profile';
10
10
  import { RugbyProfile } from './rugby-profile';
11
11
  import { WaterpoloProfile } from './waterpolo-profile';
12
12
  export declare enum UserGender {
13
- male = 1,
14
- female = 2
13
+ male = "male",
14
+ female = "female"
15
15
  }
16
16
  export declare class User extends BaseModel {
17
17
  id: number;
@@ -34,10 +34,6 @@ export declare class User extends BaseModel {
34
34
  city: City;
35
35
  gender: UserGender;
36
36
  isActive: boolean;
37
- uniqueCode: string;
38
- createdByLeagueId: number;
39
- static toFront(data: any): any;
40
- static toBack(user: User): any;
41
37
  get fullName(): string;
42
38
  get shortName(): string;
43
39
  get initials(): string;
package/models/util.d.ts CHANGED
@@ -1,53 +1,29 @@
1
- export declare const MODEL_MAPPING_FIELDS_KEY = "_mapping_fields_";
2
- export declare const MODEL_RELATION_KEY = "_relation_";
3
- export declare const MODEL_TO_FRONT_KEY = "_to_front_";
4
- export declare const MODEL_TO_BACK_KEY = "_to_back_";
5
- interface ModelTypeInterface {
6
- new (data?: any): any;
7
- }
8
- export interface ModelInterface {
9
- toFront(dto: any): any;
10
- toBack(dto: any): any;
11
- }
12
1
  export declare abstract class BaseModel {
13
- constructor(data?: {
2
+ constructor(data?: any, fields?: string[]);
3
+ json(fields?: any[]): {
14
4
  [key: string]: any;
15
- });
16
- static toFront(dto: any): any;
17
- static toBack(dto: any): any;
5
+ };
6
+ update<T>(data: {
7
+ [Property in keyof T]?: T[Property];
8
+ }): T;
18
9
  }
10
+ export declare function toJson(data: any, fields?: any[]): object;
11
+ export interface ModelRelation<T> {
12
+ create(data: any): T;
13
+ json(data: T): any;
14
+ }
15
+ export declare function listField<R, T extends ModelRelation<R>>(relation: ModelRelation<R>): ModelRelation<R[]>;
16
+ export declare function nestedModel<T extends BaseModel>(model: new (data: any, fields: any) => T, fields?: string[]): ModelRelation<T>;
19
17
  export declare function enumField(enumClass: any): {
20
- toFront: (value: any) => any;
21
- toBack: (value: any) => any;
22
- };
23
- export declare function penaltyTypeField(): {
24
- toFront: (data: any) => any;
25
- toBack: (data: any) => any;
26
- };
27
- export declare function listField(modelClass: any): {
28
- toFront: (value: any) => any[];
29
- toBack: (value: any) => any[];
18
+ create: (value: any) => any;
19
+ json: (value: any) => any;
30
20
  };
31
- export declare class DateField extends BaseModel {
32
- static toFront(date: any): any;
33
- static toBack(date: Date): any;
34
- }
35
- export declare class DateTimeField extends BaseModel {
36
- static toFront(date: any): any;
37
- static toBack(date: Date): any;
38
- }
39
- export declare function ModelInstance(config: {
40
- mappingFields?: {
41
- [key: string]: string;
42
- };
21
+ export declare const dateTimeField: ModelRelation<Date>;
22
+ export declare const dateField: ModelRelation<Date>;
23
+ export declare function toCamelCase(key: string): string;
24
+ export declare function toUnderscore(key: string): string;
25
+ export declare function Model<T>(config?: {
43
26
  relation?: {
44
- [key: string]: BaseModel;
27
+ [key: string]: ModelRelation<any>;
45
28
  };
46
- }): (target: ModelTypeInterface) => void;
47
- export declare const ToFrontHook: (target: ModelTypeInterface, key: string | symbol, descriptor: TypedPropertyDescriptor<Function>) => {
48
- value: (...args: any[]) => any;
49
- };
50
- export declare const ToBackHook: (target: ModelTypeInterface, key: string | symbol, descriptor: TypedPropertyDescriptor<Function>) => {
51
- value: (...args: any[]) => any;
52
- };
53
- export {};
29
+ }): (target: typeof BaseModel) => any;
@@ -1,10 +1,10 @@
1
- import { BaseModel } from './util';
2
1
  import { VolleyballStatisticTypes } from './tournament';
2
+ import { GameConfigBase } from './game-config-base';
3
3
  export declare enum VolleyballGameTypes {
4
4
  best_of_five = 1,
5
5
  best_of_three = 2
6
6
  }
7
- export declare class VolleyballGameConfig extends BaseModel {
7
+ export declare class VolleyballGameConfig extends GameConfigBase {
8
8
  gameType: VolleyballGameTypes;
9
9
  timeoutCount: number;
10
10
  timeoutTime: number;
@@ -15,6 +15,4 @@ export declare class VolleyballGameConfig extends BaseModel {
15
15
  liberoUserIds: number[];
16
16
  get setsCount(): number;
17
17
  getSetMaxScore(set: number): number;
18
- static toFront(data: any): any;
19
- static toBack(data: any): any;
20
18
  }
@@ -1,4 +1,3 @@
1
- import { BaseModel } from './util';
2
1
  import { GameLogBase } from './game-log-base';
3
2
  import { GameUser } from './game-user';
4
3
  export declare enum VolleyballGameLogType {
@@ -29,7 +28,7 @@ export declare enum VolleyballGameLogType {
29
28
  }
30
29
  export declare const SCORE_LOG_TYPES: VolleyballGameLogType[];
31
30
  export declare const FAULT_LOG_TYPES: VolleyballGameLogType[];
32
- export declare class VolleyballGameLog extends BaseModel implements GameLogBase {
31
+ export declare class VolleyballGameLog extends GameLogBase {
33
32
  id: number;
34
33
  uniqueId: string;
35
34
  active: boolean;
@@ -54,6 +53,4 @@ export declare class VolleyballGameLog extends BaseModel implements GameLogBase
54
53
  isBlock(): boolean;
55
54
  isEnterExit(): boolean;
56
55
  isComboType(): boolean;
57
- static toFront(data: any): any;
58
- static toBack(data: any): any;
59
56
  }
@@ -1,6 +1,5 @@
1
- import { BaseModel } from './util';
2
1
  import { GameStatisticBase } from './game-statistic-base';
3
- export declare class VolleyballGameStatistic extends BaseModel implements GameStatisticBase {
2
+ export declare class VolleyballGameStatistic extends GameStatisticBase {
4
3
  gameUserId: number;
5
4
  serveHits: number;
6
5
  serveFaults: number;
@@ -29,6 +28,4 @@ export declare class VolleyballGameStatistic extends BaseModel implements GameSt
29
28
  get totalServes(): number;
30
29
  get totalAttacks(): number;
31
30
  get totalBlocks(): number;
32
- static toFront(data: any): any;
33
- static toBack(data: any): any;
34
31
  }
@@ -4,6 +4,4 @@ import { GameTeamStatisticBase } from './game-team-statistic-base';
4
4
  export declare class VolleyballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
5
5
  team: VolleyballStatistic;
6
6
  competitorTeam: VolleyballStatistic;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
@@ -15,6 +15,4 @@ export declare class VolleyballProfile extends BaseModel {
15
15
  userId: number;
16
16
  position: GameVolleyballPosition;
17
17
  workHand: VolleyballWorkHand;
18
- static toFront(value: any): any;
19
- static toBack(value: any): any;
20
18
  }
@@ -1,4 +1,3 @@
1
- import { BaseModel } from './util';
2
1
  import { Team } from './team';
3
2
  import { TournamentTeamUser } from './tournament-team-user';
4
3
  import { TeamUser } from './team-user';
@@ -6,7 +5,7 @@ import { TournamentTeam } from './tournament-team';
6
5
  import { User } from './user';
7
6
  import { BaseStatistic, WinLoseType } from './base-statistic';
8
7
  import { LeaguePlayer } from './league-player';
9
- export declare class VolleyballStatistic extends BaseModel implements BaseStatistic {
8
+ export declare class VolleyballStatistic extends BaseStatistic {
10
9
  leaguePlayer: LeaguePlayer;
11
10
  tournamentTeamUser: TournamentTeamUser;
12
11
  team: Team;
@@ -52,6 +51,4 @@ export declare class VolleyballStatistic extends BaseModel implements BaseStatis
52
51
  get totalServes(): number;
53
52
  get totalAttacks(): number;
54
53
  get totalBlocks(): number;
55
- static toFront(data: any): any;
56
- static toBack(data: any): any;
57
54
  }
@@ -1,6 +1,6 @@
1
- import { BaseModel } from './util';
2
1
  import { GameTimeTypes, OvertimeTypes } from './tournament';
3
- export declare class WaterpoloGameConfig extends BaseModel {
2
+ import { GameConfigBase } from './game-config-base';
3
+ export declare class WaterpoloGameConfig extends GameConfigBase {
4
4
  periodsCount: number;
5
5
  periodTime: number;
6
6
  overtimeType: OvertimeTypes;
@@ -12,8 +12,6 @@ export declare class WaterpoloGameConfig extends BaseModel {
12
12
  gameTimeType: GameTimeTypes;
13
13
  substituteManageEnabled: boolean;
14
14
  shotClockEnabled: boolean;
15
- static toFront(data: any): any;
16
- static toBack(data: any): any;
17
15
  get overtimePeriod(): number;
18
16
  get bullitsPeriod(): number;
19
17
  get playoffBullitsPeriod(): number;
@@ -1,4 +1,3 @@
1
- import { BaseModel } from './util';
2
1
  import { GameUser } from './game-user';
3
2
  import { GameLogBase } from './game-log-base';
4
3
  export declare enum WaterpoloGameLogTypes {
@@ -72,7 +71,7 @@ export declare enum WaterpoloAdvantageTypes {
72
71
  shorthanded = 2,
73
72
  even_strength = 3
74
73
  }
75
- export declare class WaterpoloGameLog extends BaseModel implements GameLogBase {
74
+ export declare class WaterpoloGameLog extends GameLogBase {
76
75
  id: number;
77
76
  uniqueId: string;
78
77
  gameId: number;
@@ -102,6 +101,4 @@ export declare class WaterpoloGameLog extends BaseModel implements GameLogBase {
102
101
  isPenaltyType(): boolean;
103
102
  isFoulType(): boolean;
104
103
  isAfter(log: WaterpoloGameLog): boolean;
105
- static toFront(value: any): any;
106
- static toBack(value: any): any;
107
104
  }
@@ -1,6 +1,5 @@
1
- import { BaseModel } from './util';
2
1
  import { GameStatisticBase } from './game-statistic-base';
3
- export declare class WaterpoloGameStatistic extends BaseModel implements GameStatisticBase {
2
+ export declare class WaterpoloGameStatistic extends GameStatisticBase {
4
3
  gameUserId: number;
5
4
  points: number;
6
5
  ppShotMisses: number;
@@ -278,6 +277,4 @@ export declare class WaterpoloGameStatistic extends BaseModel implements GameSta
278
277
  get totalEvGoalsAgainst(): number;
279
278
  get totalEvShotsAgainst(): number;
280
279
  get totalEvSavesPercent(): number;
281
- static toFront(data: any): any;
282
- static toBack(data: any): any;
283
280
  }
@@ -4,6 +4,4 @@ import { GameTeamStatisticBase } from './game-team-statistic-base';
4
4
  export declare class WaterpoloGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
5
5
  team: WaterpoloStatistic;
6
6
  competitorTeam: WaterpoloStatistic;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
@@ -14,6 +14,4 @@ export declare class WaterpoloProfile extends BaseModel {
14
14
  userId: number;
15
15
  position: GameWaterpoloPosition;
16
16
  workHand: WaterpoloWorkHand;
17
- static toFront(value: any): any;
18
- static toBack(value: any): any;
19
17
  }
@@ -1,4 +1,3 @@
1
- import { BaseModel } from './util';
2
1
  import { TournamentTeamUser } from './tournament-team-user';
3
2
  import { Team } from './team';
4
3
  import { TeamUser } from './team-user';
@@ -6,7 +5,7 @@ import { User } from './user';
6
5
  import { TournamentTeam } from './tournament-team';
7
6
  import { BaseStatistic, WinLoseType } from './base-statistic';
8
7
  import { LeaguePlayer } from './league-player';
9
- export declare class WaterpoloStatistic extends BaseModel implements BaseStatistic {
8
+ export declare class WaterpoloStatistic extends BaseStatistic {
10
9
  leaguePlayer: LeaguePlayer;
11
10
  tournamentTeamUser: TournamentTeamUser;
12
11
  team: Team;
@@ -282,6 +281,4 @@ export declare class WaterpoloStatistic extends BaseModel implements BaseStatist
282
281
  get penaltyTime(): string;
283
282
  get gamesWonPercent(): number;
284
283
  get tournamentTeamPoints(): number;
285
- static toFront(data: any): any;
286
- static toBack(data: any): any;
287
284
  }
package/mtgame-core.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@mtgame/core" />
4
5
  export * from './public-api';
package/package.json CHANGED
@@ -1,21 +1,34 @@
1
1
  {
2
2
  "name": "@mtgame/core",
3
- "version": "0.2.25",
3
+ "version": "2.0.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.2.0",
6
+ "@sentry/angular": "~7.9.0",
6
7
  "centrifuge": "^3.0.1"
7
8
  },
8
9
  "peerDependencies": {
9
- "@angular/common": "12 - 14",
10
- "@angular/core": "12 - 14",
11
- "@angular/cdk": "12 - 14"
10
+ "@angular/common": "12.x || 13.x || 14.x",
11
+ "@angular/core": "12.x || 13.x || 14.x",
12
+ "@angular/cdk": "12.x || 13.x || 14.x"
12
13
  },
13
- "main": "bundles/mtgame-core.umd.js",
14
- "module": "fesm2015/mtgame-core.js",
15
- "es2015": "fesm2015/mtgame-core.js",
16
- "esm2015": "esm2015/mtgame-core.js",
17
- "fesm2015": "fesm2015/mtgame-core.js",
14
+ "module": "fesm2015/mtgame-core.mjs",
15
+ "es2020": "fesm2020/mtgame-core.mjs",
16
+ "esm2020": "esm2020/mtgame-core.mjs",
17
+ "fesm2020": "fesm2020/mtgame-core.mjs",
18
+ "fesm2015": "fesm2015/mtgame-core.mjs",
18
19
  "typings": "mtgame-core.d.ts",
19
- "metadata": "mtgame-core.metadata.json",
20
+ "exports": {
21
+ "./package.json": {
22
+ "default": "./package.json"
23
+ },
24
+ ".": {
25
+ "types": "./mtgame-core.d.ts",
26
+ "esm2020": "./esm2020/mtgame-core.mjs",
27
+ "es2020": "./fesm2020/mtgame-core.mjs",
28
+ "es2015": "./fesm2015/mtgame-core.mjs",
29
+ "node": "./fesm2015/mtgame-core.mjs",
30
+ "default": "./fesm2020/mtgame-core.mjs"
31
+ }
32
+ },
20
33
  "sideEffects": false
21
34
  }
package/public-api.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './services/public-api';
5
5
  export * from './storage/public-api';
6
6
  export * from './utils/public-api';
7
7
  export { HttpCookieInterceptor } from './http-cookie.interceptor';
8
+ export * from './websocket/public-api';