@mtgame/core 0.2.26 → 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
@@ -2,6 +2,7 @@ import { Injector } from '@angular/core';
2
2
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ConfigService } from './services/config.service';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class HttpCookieInterceptor implements HttpInterceptor {
6
7
  private injector;
7
8
  private configService;
@@ -9,4 +10,6 @@ export declare class HttpCookieInterceptor implements HttpInterceptor {
9
10
  private isBrowser;
10
11
  constructor(injector: Injector, configService: ConfigService, platformId: string);
11
12
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpCookieInterceptor, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpCookieInterceptor>;
12
15
  }
@@ -22,7 +22,4 @@ export declare const BasketballGameSubLogTypesLocalization: {
22
22
  21: string;
23
23
  22: string;
24
24
  23: string;
25
- 24: string;
26
- 25: string;
27
- 26: string;
28
25
  };
@@ -1,31 +1,31 @@
1
1
  export declare const FootballGameLogTypeLocalization: {
2
- 1: string;
3
- 2: string;
4
- 3: string;
5
- 4: string;
6
- 5: string;
7
- 6: string;
8
- 13: string;
9
- 7: string;
10
- 8: string;
11
- 10: string;
12
- 11: string;
13
- 14: string;
14
- 15: string;
15
- 16: string;
16
- 18: string;
17
- 9: string;
18
- 12: string;
19
- 17: string;
20
- 19: string;
21
- 20: string;
22
- 21: string;
23
- 22: string;
24
- 23: string;
25
- 24: string;
26
- 25: string;
27
- 26: string;
28
- 28: string;
29
- 27: string;
30
- 29: string;
2
+ enter_game: string;
3
+ exit_game: string;
4
+ shot_miss: string;
5
+ shot_on_goal: string;
6
+ shot_blocked: string;
7
+ goal: string;
8
+ assist: string;
9
+ penalty_attempt: string;
10
+ penalty_goal: string;
11
+ small_penalty_attempt: string;
12
+ small_penalty_goal: string;
13
+ block_shot: string;
14
+ corner: string;
15
+ free_kick: string;
16
+ save: string;
17
+ penalty_save: string;
18
+ small_penalty_save: string;
19
+ foul: string;
20
+ yellow_card: string;
21
+ red_card: string;
22
+ perfect_pass: string;
23
+ loss: string;
24
+ steal: string;
25
+ out: string;
26
+ timeout: string;
27
+ auto_goal: string;
28
+ end_game_penalty_goal: string;
29
+ end_game_penalty_miss: string;
30
+ end_game_penalty_save: string;
31
31
  };
@@ -25,7 +25,4 @@ export declare const HockeyGameLogTypeLocalization: {
25
25
  20: string;
26
26
  21: string;
27
27
  22: string;
28
- 27: string;
29
- 28: string;
30
- 29: string;
31
28
  };
@@ -1,5 +1,2 @@
1
- export declare const HockeyPenaltyTypes: {
2
- id: number;
3
- code: string;
4
- title: string;
5
- }[];
1
+ import { HockeyPenaltyType } from '../models/hockey-penalty-types';
2
+ export declare const HockeyPenaltyTypes: HockeyPenaltyType[];
@@ -9,6 +9,4 @@ export declare class Achievement extends BaseModel {
9
9
  alias: string;
10
10
  type: AchievementTypes;
11
11
  value: number;
12
- static toFront(data: any): any;
13
- static toBack(data: any): any;
14
12
  }
@@ -4,8 +4,9 @@ import { TeamUser } from './team-user';
4
4
  import { User } from './user';
5
5
  import { TournamentTeam } from './tournament-team';
6
6
  import { LeaguePlayer } from './league-player';
7
+ import { BaseModel } from './util';
7
8
  export declare type WinLoseType = 'win' | 'lose' | 'draw';
8
- export interface BaseStatistic {
9
+ export declare abstract class BaseStatistic extends BaseModel {
9
10
  leaguePlayer: LeaguePlayer;
10
11
  tournamentTeamUser: TournamentTeamUser;
11
12
  team: Team;
@@ -1,6 +1,6 @@
1
- import { BaseModel } from './util';
2
1
  import { BasketballStatisticTypes, GameTimeTypes, OvertimeTypes, TimerTypes } from './tournament';
3
- export declare class BasketballGameConfig extends BaseModel {
2
+ import { GameConfigBase } from './game-config-base';
3
+ export declare class BasketballGameConfig extends GameConfigBase {
4
4
  periodsCount: number;
5
5
  periodTime: number;
6
6
  gameUpToScore: number;
@@ -15,6 +15,4 @@ export declare class BasketballGameConfig extends BaseModel {
15
15
  shotClockEnabled: boolean;
16
16
  gameTimeType: GameTimeTypes;
17
17
  timerType: TimerTypes;
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 { GameUser } from './game-user';
3
2
  import { GameLogBase } from './game-log-base';
4
3
  export declare enum BasketballGameLogTypes {
@@ -50,10 +49,7 @@ export declare enum BasketballSubLogTypes {
50
49
  three_seconds = 20,
51
50
  five_seconds = 21,
52
51
  eight_seconds = 22,
53
- twenty_four_seconds = 23,
54
- back_court = 24,
55
- offensive_goal_tending = 25,
56
- other_turnover = 26
52
+ twenty_four_seconds = 23
57
53
  }
58
54
  export declare enum BasketballCourtZones {
59
55
  paint = 1,
@@ -81,7 +77,7 @@ export declare enum BasketballPenaltyTypes {
81
77
  two_shots_and_possession = 6,
82
78
  three_shots_and_possession = 7
83
79
  }
84
- export declare class BasketballGameLog extends BaseModel implements GameLogBase {
80
+ export declare class BasketballGameLog extends GameLogBase {
85
81
  id: number;
86
82
  uniqueId: string;
87
83
  gameId: number;
@@ -108,13 +104,10 @@ export declare class BasketballGameLog extends BaseModel implements GameLogBase
108
104
  isBench: boolean;
109
105
  group: string;
110
106
  marked: boolean;
111
- coords: [number, number];
112
107
  isPointsType(): boolean;
113
108
  isReboundType(): boolean;
114
109
  isFoulType(): boolean;
115
110
  getScore(): any;
116
111
  compare(model: BasketballGameLog): number;
117
112
  get timeFormatted(): string;
118
- static toFront(value: any): any;
119
- static toBack(value: any): any;
120
113
  }
@@ -1,6 +1,5 @@
1
- import { BaseModel } from './util';
2
1
  import { GameStatisticBase } from './game-statistic-base';
3
- export declare class BasketballGameStatistic extends BaseModel implements GameStatisticBase {
2
+ export declare class BasketballGameStatistic extends GameStatisticBase {
4
3
  gameUserId: number;
5
4
  points: number;
6
5
  freeThrowsMade: number;
@@ -27,8 +26,6 @@ export declare class BasketballGameStatistic extends BaseModel implements GameSt
27
26
  shotsBlocked: number;
28
27
  updatedAt: Date;
29
28
  get id(): number;
30
- static toFront(data: any): any;
31
- static toBack(data: any): any;
32
29
  get totalFouls(): number;
33
30
  get onePointsPercent(): number;
34
31
  get twoPointsPercent(): number;
@@ -4,6 +4,4 @@ import { GameTeamStatisticBase } from './game-team-statistic-base';
4
4
  export declare class BasketballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
5
5
  team: BasketballStatistic;
6
6
  competitorTeam: BasketballStatistic;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
@@ -15,6 +15,4 @@ export declare class BasketballProfile extends BaseModel {
15
15
  userId: number;
16
16
  position: GameBasketballPosition;
17
17
  workHand: WorkHand;
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 { 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 BasketballStatistic extends BaseModel implements BaseStatistic {
8
+ export declare class BasketballStatistic extends BaseStatistic {
10
9
  leaguePlayer: LeaguePlayer;
11
10
  tournamentTeamUser: TournamentTeamUser;
12
11
  team: Team;
@@ -58,6 +57,4 @@ export declare class BasketballStatistic extends BaseModel implements BaseStatis
58
57
  get threePointsPercent(): number;
59
58
  get freeThrowsPercent(): number;
60
59
  get totalRebounds(): number;
61
- static toFront(data: any): any;
62
- static toBack(data: any): any;
63
60
  }
package/models/city.d.ts CHANGED
@@ -2,6 +2,4 @@ import { BaseModel } from './util';
2
2
  export declare class City extends BaseModel {
3
3
  id: number;
4
4
  name: string;
5
- static toFront(value: any): any;
6
- static toBack(value: any): any;
7
5
  }
@@ -1,11 +1,10 @@
1
+ import { BaseModel } from './util';
1
2
  import { File } from './file';
2
- export declare class Feedback {
3
+ export declare class Feedback extends BaseModel {
3
4
  id: number;
4
5
  theme: string;
5
6
  message: string;
6
7
  email: string;
7
8
  captcha: string;
8
9
  files: File[];
9
- static toFront(data: any): any;
10
- static toBack(value: any): any;
11
10
  }
package/models/file.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { BaseModel } from './util';
1
2
  export declare enum FileEngine {
2
3
  django = 1,
3
4
  s3 = 2
4
5
  }
5
- export declare class File {
6
+ export declare class File extends BaseModel {
6
7
  id: number;
7
8
  name: string;
8
9
  _originalName: string;
@@ -16,6 +17,4 @@ export declare class File {
16
17
  get originalName(): string;
17
18
  set path(filePath: string);
18
19
  get path(): string;
19
- static toFront(data: any): File;
20
- static toBack(file: File): any;
21
20
  }
@@ -1,6 +1,6 @@
1
- import { BaseModel } from './util';
2
1
  import { GameTimeTypes, OvertimeTypes } from './tournament';
3
- export declare class FootballGameConfig extends BaseModel {
2
+ import { GameConfigBase } from './game-config-base';
3
+ export declare class FootballGameConfig extends GameConfigBase {
4
4
  periodsCount: number;
5
5
  periodTime: number;
6
6
  overtimeType: OvertimeTypes;
@@ -15,6 +15,4 @@ export declare class FootballGameConfig extends BaseModel {
15
15
  freeSubstituteEnabled: boolean;
16
16
  substituteManageEnabled: boolean;
17
17
  get penaltyPeriod(): number;
18
- static toFront(data: any): any;
19
- static toBack(data: any): any;
20
18
  }
@@ -1,38 +1,37 @@
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 FootballGameLogTypes {
5
- enter_game = 1,
6
- exit_game = 2,
7
- shot_miss = 3,
8
- shot_on_goal = 4,
9
- shot_blocked = 5,
10
- goal = 6,
11
- penalty_attempt = 7,
12
- penalty_goal = 8,
13
- penalty_save = 9,
14
- small_penalty_attempt = 10,
15
- small_penalty_goal = 11,
16
- small_penalty_save = 12,
17
- assist = 13,
18
- block_shot = 14,
19
- corner = 15,
20
- free_kick = 16,
21
- foul = 17,
22
- save = 18,
23
- yellow_card = 19,
24
- red_card = 20,
25
- perfect_pass = 21,
26
- loss = 22,
27
- steal = 23,
28
- out = 24,
29
- timeout = 25,
30
- auto_goal = 26,
31
- end_game_penalty_miss = 27,
32
- end_game_penalty_goal = 28,
33
- end_game_penalty_save = 29
4
+ enter_game = "enter_game",
5
+ exit_game = "exit_game",
6
+ shot_miss = "shot_miss",
7
+ shot_on_goal = "shot_on_goal",
8
+ shot_blocked = "shot_blocked",
9
+ goal = "goal",
10
+ penalty_attempt = "penalty_attempt",
11
+ penalty_goal = "penalty_goal",
12
+ penalty_save = "penalty_save",
13
+ small_penalty_attempt = "small_penalty_attempt",
14
+ small_penalty_goal = "small_penalty_goal",
15
+ small_penalty_save = "small_penalty_save",
16
+ assist = "assist",
17
+ block_shot = "block_shot",
18
+ corner = "corner",
19
+ free_kick = "free_kick",
20
+ foul = "foul",
21
+ save = "save",
22
+ yellow_card = "yellow_card",
23
+ red_card = "red_card",
24
+ perfect_pass = "perfect_pass",
25
+ loss = "loss",
26
+ steal = "steal",
27
+ out = "out",
28
+ timeout = "timeout",
29
+ auto_goal = "auto_goal",
30
+ end_game_penalty_miss = "end_game_penalty_miss",
31
+ end_game_penalty_goal = "end_game_penalty_goal",
32
+ end_game_penalty_save = "end_game_penalty_save"
34
33
  }
35
- export declare class FootballGameLog extends BaseModel implements GameLogBase {
34
+ export declare class FootballGameLog extends GameLogBase {
36
35
  id: number;
37
36
  uniqueId: string;
38
37
  gameId: number;
@@ -52,6 +51,4 @@ export declare class FootballGameLog extends BaseModel implements GameLogBase {
52
51
  get timeFormatted(): string;
53
52
  isScoreType(): boolean;
54
53
  isAfter(log: FootballGameLog): boolean;
55
- static toFront(value: any): any;
56
- static toBack(value: any): any;
57
54
  }
@@ -1,6 +1,5 @@
1
- import { BaseModel } from './util';
2
1
  import { GameStatisticBase } from './game-statistic-base';
3
- export declare class FootballGameStatistic extends BaseModel implements GameStatisticBase {
2
+ export declare class FootballGameStatistic extends GameStatisticBase {
4
3
  gameUserId: number;
5
4
  points: number;
6
5
  shotMisses: number;
@@ -56,6 +55,4 @@ export declare class FootballGameStatistic extends BaseModel implements GameStat
56
55
  get smallPenaltySavesPercent(): number;
57
56
  get goalpass(): number;
58
57
  get gameMinutes(): number;
59
- static toFront(data: any): any;
60
- static toBack(data: any): any;
61
58
  }
@@ -4,6 +4,4 @@ import { GameTeamStatisticBase } from './game-team-statistic-base';
4
4
  export declare class FootballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
5
5
  team: FootballStatistic;
6
6
  competitorTeam: FootballStatistic;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
@@ -15,6 +15,4 @@ export declare class FootballProfile extends BaseModel {
15
15
  userId: number;
16
16
  position: GameFootballPosition;
17
17
  workFoot: FootballWorkFoot;
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 { 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 FootballStatistic extends BaseModel implements BaseStatistic {
8
+ export declare class FootballStatistic extends BaseStatistic {
10
9
  leaguePlayer: LeaguePlayer;
11
10
  tournamentTeamUser: TournamentTeamUser;
12
11
  team: Team;
@@ -85,6 +84,4 @@ export declare class FootballStatistic extends BaseModel implements BaseStatisti
85
84
  get tournamentTeamScoreSum(): number;
86
85
  get tournamentTeamMissedSum(): number;
87
86
  get tournamentTeamPlusMinus(): number;
88
- static toFront(data: any): any;
89
- static toBack(data: any): any;
90
87
  }
@@ -19,6 +19,4 @@ export declare class GameBill extends BaseModel {
19
19
  price: number;
20
20
  paidDate: Date;
21
21
  createdAt: Date;
22
- static toFront(data: any): any;
23
- static toBack(data: any): any;
24
22
  }
@@ -0,0 +1,3 @@
1
+ import { BaseModel } from './util';
2
+ export declare abstract class GameConfigBase extends BaseModel {
3
+ }
@@ -11,6 +11,4 @@ export declare class GameInvite extends BaseModel {
11
11
  gameId: number;
12
12
  game: Game;
13
13
  status: GameInviteStatus;
14
- static toFront(data: any): any;
15
- static toBack(data: any): any;
16
14
  }
@@ -1,4 +1,5 @@
1
- export interface GameLogBase {
1
+ import { BaseModel } from './util';
2
+ export declare abstract class GameLogBase extends BaseModel {
2
3
  id: number;
3
4
  uniqueId: string;
4
5
  active: boolean;
@@ -6,5 +7,5 @@ export interface GameLogBase {
6
7
  teamId: number;
7
8
  gameUserId: number;
8
9
  logType: any;
9
- compare(model: GameLogBase): number;
10
+ abstract compare(model: GameLogBase): number;
10
11
  }
@@ -1,3 +1,5 @@
1
- export interface GameStatisticBase {
1
+ import { BaseModel } from './util';
2
+ export declare abstract class GameStatisticBase extends BaseModel {
2
3
  gameUserId: number;
4
+ get id(): number;
3
5
  }
@@ -1,11 +1,9 @@
1
1
  import { BaseModel } from './util';
2
- export declare class GameTimelineStageItem {
2
+ export declare class GameTimelineStageItem extends BaseModel {
3
3
  stageId: number;
4
4
  toursCount: number;
5
5
  playoffStagesCount: number;
6
6
  playoffTeamsCount: number;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }
10
8
  export declare class GameTimelineStages extends BaseModel {
11
9
  toursCount: number;
@@ -17,6 +15,4 @@ export declare class GameTimelineStages extends BaseModel {
17
15
  stages: GameTimelineStageItem[];
18
16
  tournamentStageId: number;
19
17
  tournamentRoundId: number;
20
- static toFront(data: any): any;
21
- static toBack(data: any): any;
22
18
  }
@@ -3,6 +3,4 @@ import { TournamentDisqualification } from './tournament-disqualification';
3
3
  export declare class GameUserDisqualification extends BaseModel {
4
4
  tournamentTeamUserId: number;
5
5
  disqualification: TournamentDisqualification;
6
- static toFront(data: any): any;
7
- static toBack(data: any): any;
8
6
  }
@@ -9,13 +9,9 @@ export declare class GameUserLimitationTypes extends BaseModel {
9
9
  minGoalkeeperUserGamesCount: LimitationValue;
10
10
  minGoalkeeperUserTime: LimitationValue;
11
11
  manual: boolean;
12
- static toFront(data: any): any;
13
- static toBack(data: any): any;
14
12
  }
15
13
  export declare class GameUserLimitations extends BaseModel {
16
14
  tournamentTeamUserId: number;
17
15
  limitations: GameUserLimitationTypes;
18
- static toFront(data: any): any;
19
- static toBack(data: any): any;
20
16
  }
21
17
  export {};
@@ -10,6 +10,4 @@ export declare class GameUser extends BaseModel {
10
10
  number: number;
11
11
  updatedAt: Date;
12
12
  get gameUserNumber(): number;
13
- static toFront(data: any): any;
14
- static toBack(data: any): any;
15
13
  }
package/models/game.d.ts CHANGED
@@ -10,9 +10,9 @@ import { FootballGameConfig } from './football-game-config';
10
10
  import { HandballGameConfig } from './handball-game-config';
11
11
  import { Playoff } from './playoff';
12
12
  import { TournamentGroup } from './tournament-group';
13
- import { File } from './file';
14
13
  import { RugbyGameConfig } from './rugby-game-config';
15
14
  import { WaterpoloGameConfig } from './waterpolo-game-config';
15
+ import { TournamentTeam } from './tournament-team';
16
16
  export declare enum GameStatuses {
17
17
  open = 1,
18
18
  in_progress = 2,
@@ -27,20 +27,9 @@ export declare enum GameResultTypes {
27
27
  competitor_team_technical_defeat = 4,
28
28
  draw = 5
29
29
  }
30
- export declare class GameTeamAdditionalData {
31
- nickname: string;
32
- color: string;
33
- static toFront(data: any): any;
34
- static toBack(data: any): any;
35
- }
36
- export declare class TournamentTeamShort extends BaseModel {
37
- id: number;
38
- name: string;
39
- logo: File;
40
- additionalData: GameTeamAdditionalData;
41
- static toFront(data: any): any;
42
- static toBack(data: any): any;
43
- }
30
+ export declare type ScoreByPeriod = {
31
+ [key: string]: [number, number];
32
+ };
44
33
  export declare class Game extends BaseModel {
45
34
  private _basketballGameConfig;
46
35
  private _volleyballGameConfig;
@@ -52,15 +41,17 @@ export declare class Game extends BaseModel {
52
41
  id: number;
53
42
  status: GameStatuses;
54
43
  team: Team;
55
- tournamentTeam: TournamentTeamShort;
44
+ tournamentTeam: TournamentTeam;
56
45
  teamId: number;
57
46
  tournamentTeamId: number;
58
47
  competitorTeam: Team;
59
- competitorTournamentTeam: TournamentTeamShort;
48
+ competitorTournamentTeam: TournamentTeam;
60
49
  competitorTeamId: number;
61
50
  competitorTournamentTeamId: number;
62
51
  competitorTeamName: string;
63
- gameConfig: any;
52
+ gameConfig: {
53
+ [key: string]: any;
54
+ };
64
55
  datetime: Date;
65
56
  location: string;
66
57
  teamScore: number;
@@ -69,7 +60,7 @@ export declare class Game extends BaseModel {
69
60
  playoffNumber: string;
70
61
  tournamentId: number;
71
62
  tournamentTour: number;
72
- scoreByPeriod: any;
63
+ scoreByPeriod: ScoreByPeriod;
73
64
  playoffStage: string;
74
65
  playoffRound: number;
75
66
  tournamentStageId: number;
@@ -105,6 +96,4 @@ export declare class Game extends BaseModel {
105
96
  get isCompetitorTeamWon(): boolean;
106
97
  get teamWinnerId(): number;
107
98
  get teamLoserId(): number;
108
- static toFront(data: any): any;
109
- static toBack(data: any): any;
110
99
  }
@@ -1,6 +1,6 @@
1
- import { BaseModel } from './util';
2
1
  import { GameTimeTypes, OvertimeTypes } from './tournament';
3
- export declare class HandballGameConfig extends BaseModel {
2
+ import { GameConfigBase } from './game-config-base';
3
+ export declare class HandballGameConfig extends GameConfigBase {
4
4
  periodsCount: number;
5
5
  periodTime: number;
6
6
  overtimeType: OvertimeTypes;
@@ -10,6 +10,4 @@ export declare class HandballGameConfig extends BaseModel {
10
10
  overtimeTimeoutCount: number;
11
11
  timeoutTime: number;
12
12
  gameTimeType: GameTimeTypes;
13
- static toFront(data: any): any;
14
- static toBack(data: any): any;
15
13
  }
@@ -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 HandballGameLogTypes {
@@ -23,7 +22,7 @@ export declare enum HandballGameLogTypes {
23
22
  block_shot = 19,
24
23
  timeout = 20
25
24
  }
26
- export declare class HandballGameLog extends BaseModel implements GameLogBase {
25
+ export declare class HandballGameLog extends GameLogBase {
27
26
  id: number;
28
27
  uniqueId: string;
29
28
  gameId: number;
@@ -44,6 +43,4 @@ export declare class HandballGameLog extends BaseModel implements GameLogBase {
44
43
  isScoreType(): boolean;
45
44
  isAfter(log: HandballGameLog): boolean;
46
45
  isFoulType(): boolean;
47
- static toFront(value: any): any;
48
- static toBack(value: any): any;
49
46
  }
@@ -1,6 +1,5 @@
1
- import { BaseModel } from './util';
2
1
  import { GameStatisticBase } from './game-statistic-base';
3
- export declare class HandballGameStatistic extends BaseModel implements GameStatisticBase {
2
+ export declare class HandballGameStatistic extends GameStatisticBase {
4
3
  gameUserId: number;
5
4
  points: number;
6
5
  shotMisses: number;
@@ -39,6 +38,4 @@ export declare class HandballGameStatistic extends BaseModel implements GameStat
39
38
  get savesPercent(): number;
40
39
  get penaltySavesPercent(): number;
41
40
  get gameMinutes(): number;
42
- static toFront(data: any): any;
43
- static toBack(data: any): any;
44
41
  }
@@ -4,6 +4,4 @@ import { GameTeamStatisticBase } from './game-team-statistic-base';
4
4
  export declare class HandballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
5
5
  team: HandballStatistic;
6
6
  competitorTeam: HandballStatistic;
7
- static toFront(data: any): any;
8
- static toBack(data: any): any;
9
7
  }