@mtgame/core 0.0.1

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 (293) hide show
  1. package/README.md +24 -0
  2. package/api/basketball-game-api.d.ts +17 -0
  3. package/api/league-api.d.ts +16 -0
  4. package/api/media-api.d.ts +24 -0
  5. package/api/notification-api.d.ts +4 -0
  6. package/api/notification-base-api.d.ts +22 -0
  7. package/api/org-notification-api.d.ts +4 -0
  8. package/api/paginated-response.interface.d.ts +4 -0
  9. package/api/public-api.d.ts +12 -0
  10. package/api/reference-api.d.ts +11 -0
  11. package/api/tournament-api.d.ts +64 -0
  12. package/api/tournament-join-api.d.ts +14 -0
  13. package/api/tournament-stage-api.d.ts +15 -0
  14. package/api/volleyball-game-api.d.ts +17 -0
  15. package/bundles/mtgame-core.umd.js +4785 -0
  16. package/bundles/mtgame-core.umd.js.map +1 -0
  17. package/bundles/mtgame-core.umd.min.js +16 -0
  18. package/bundles/mtgame-core.umd.min.js.map +1 -0
  19. package/esm2015/api/basketball-game-api.js +54 -0
  20. package/esm2015/api/league-api.js +60 -0
  21. package/esm2015/api/media-api.js +110 -0
  22. package/esm2015/api/notification-api.js +18 -0
  23. package/esm2015/api/notification-base-api.js +83 -0
  24. package/esm2015/api/org-notification-api.js +18 -0
  25. package/esm2015/api/paginated-response.interface.js +1 -0
  26. package/esm2015/api/public-api.js +12 -0
  27. package/esm2015/api/reference-api.js +40 -0
  28. package/esm2015/api/tournament-api.js +187 -0
  29. package/esm2015/api/tournament-join-api.js +51 -0
  30. package/esm2015/api/tournament-stage-api.js +56 -0
  31. package/esm2015/api/volleyball-game-api.js +54 -0
  32. package/esm2015/http-cookie.interceptor.js +34 -0
  33. package/esm2015/localization/basketball-game-log-types.js +26 -0
  34. package/esm2015/localization/overtime-types.js +7 -0
  35. package/esm2015/localization/public-api.js +7 -0
  36. package/esm2015/localization/team-event-type.js +6 -0
  37. package/esm2015/localization/team-user-role.js +7 -0
  38. package/esm2015/localization/user-profile.js +46 -0
  39. package/esm2015/localization/volleyball-game-log-types.js +25 -0
  40. package/esm2015/models/basketball-game-config.js +42 -0
  41. package/esm2015/models/basketball-game-log.js +109 -0
  42. package/esm2015/models/basketball-game-statistic.js +50 -0
  43. package/esm2015/models/basketball-game-team-statistic.js +27 -0
  44. package/esm2015/models/basketball-profile.js +43 -0
  45. package/esm2015/models/basketball-statistic.js +69 -0
  46. package/esm2015/models/city.js +22 -0
  47. package/esm2015/models/file.js +38 -0
  48. package/esm2015/models/game-invite.js +37 -0
  49. package/esm2015/models/game-log-base.js +1 -0
  50. package/esm2015/models/game-statistic-base.js +1 -0
  51. package/esm2015/models/game-timeline-stages.js +49 -0
  52. package/esm2015/models/game-user.js +32 -0
  53. package/esm2015/models/game.js +108 -0
  54. package/esm2015/models/league-court.js +24 -0
  55. package/esm2015/models/league.js +52 -0
  56. package/esm2015/models/media-item.js +40 -0
  57. package/esm2015/models/notification-settings.js +35 -0
  58. package/esm2015/models/notification.js +134 -0
  59. package/esm2015/models/organization.js +27 -0
  60. package/esm2015/models/playoff.js +78 -0
  61. package/esm2015/models/poll.js +132 -0
  62. package/esm2015/models/public-api.js +50 -0
  63. package/esm2015/models/sport.js +47 -0
  64. package/esm2015/models/team-event-invite.js +32 -0
  65. package/esm2015/models/team-event-type.js +6 -0
  66. package/esm2015/models/team-event.js +45 -0
  67. package/esm2015/models/team-invite-external.js +25 -0
  68. package/esm2015/models/team-invite.js +41 -0
  69. package/esm2015/models/team-user.js +39 -0
  70. package/esm2015/models/team.js +56 -0
  71. package/esm2015/models/tournament-disqualification.js +29 -0
  72. package/esm2015/models/tournament-event.js +38 -0
  73. package/esm2015/models/tournament-group.js +23 -0
  74. package/esm2015/models/tournament-invite.js +39 -0
  75. package/esm2015/models/tournament-join-team.js +55 -0
  76. package/esm2015/models/tournament-news.js +33 -0
  77. package/esm2015/models/tournament-stage-team.js +45 -0
  78. package/esm2015/models/tournament-stage.js +35 -0
  79. package/esm2015/models/tournament-team-user-invite.js +29 -0
  80. package/esm2015/models/tournament-team-user.js +49 -0
  81. package/esm2015/models/tournament-team.js +54 -0
  82. package/esm2015/models/tournament.js +161 -0
  83. package/esm2015/models/user-profile.js +24 -0
  84. package/esm2015/models/user.js +74 -0
  85. package/esm2015/models/util.js +208 -0
  86. package/esm2015/models/volleyball-game-config.js +40 -0
  87. package/esm2015/models/volleyball-game-log.js +139 -0
  88. package/esm2015/models/volleyball-game-statistic.js +50 -0
  89. package/esm2015/models/volleyball-game-team-statistic.js +27 -0
  90. package/esm2015/models/volleyball-profile.js +43 -0
  91. package/esm2015/models/volleyball-statistic.js +66 -0
  92. package/esm2015/mtgame-core.js +5 -0
  93. package/esm2015/public-api.js +8 -0
  94. package/esm2015/services/base.service.js +18 -0
  95. package/esm2015/services/centrifugo.service.js +107 -0
  96. package/esm2015/services/config.service.js +40 -0
  97. package/esm2015/services/public-api.js +4 -0
  98. package/esm2015/storage/local-storage-engine.js +18 -0
  99. package/esm2015/storage/public-api.js +4 -0
  100. package/esm2015/storage/storage-engine.js +61 -0
  101. package/esm2015/storage/store.js +63 -0
  102. package/esm2015/utils/array.js +18 -0
  103. package/esm2015/utils/component-destroyed.js +21 -0
  104. package/esm2015/utils/cookie.js +9 -0
  105. package/esm2015/utils/data.js +75 -0
  106. package/esm2015/utils/device.js +14 -0
  107. package/esm2015/utils/enum.js +7 -0
  108. package/esm2015/utils/errors.js +10 -0
  109. package/esm2015/utils/favicon.js +25 -0
  110. package/esm2015/utils/form.js +22 -0
  111. package/esm2015/utils/public-api.js +11 -0
  112. package/esm2015/utils/validators.js +47 -0
  113. package/esm5/api/basketball-game-api.js +65 -0
  114. package/esm5/api/league-api.js +70 -0
  115. package/esm5/api/media-api.js +125 -0
  116. package/esm5/api/notification-api.js +21 -0
  117. package/esm5/api/notification-base-api.js +109 -0
  118. package/esm5/api/org-notification-api.js +21 -0
  119. package/esm5/api/paginated-response.interface.js +1 -0
  120. package/esm5/api/public-api.js +12 -0
  121. package/esm5/api/reference-api.js +45 -0
  122. package/esm5/api/tournament-api.js +245 -0
  123. package/esm5/api/tournament-join-api.js +59 -0
  124. package/esm5/api/tournament-stage-api.js +65 -0
  125. package/esm5/api/volleyball-game-api.js +65 -0
  126. package/esm5/http-cookie.interceptor.js +35 -0
  127. package/esm5/localization/basketball-game-log-types.js +27 -0
  128. package/esm5/localization/overtime-types.js +8 -0
  129. package/esm5/localization/public-api.js +7 -0
  130. package/esm5/localization/team-event-type.js +7 -0
  131. package/esm5/localization/team-user-role.js +8 -0
  132. package/esm5/localization/user-profile.js +47 -0
  133. package/esm5/localization/volleyball-game-log-types.js +26 -0
  134. package/esm5/models/basketball-game-config.js +47 -0
  135. package/esm5/models/basketball-game-log.js +117 -0
  136. package/esm5/models/basketball-game-statistic.js +63 -0
  137. package/esm5/models/basketball-game-team-statistic.js +32 -0
  138. package/esm5/models/basketball-profile.js +48 -0
  139. package/esm5/models/basketball-statistic.js +78 -0
  140. package/esm5/models/city.js +27 -0
  141. package/esm5/models/file.js +41 -0
  142. package/esm5/models/game-invite.js +42 -0
  143. package/esm5/models/game-log-base.js +1 -0
  144. package/esm5/models/game-statistic-base.js +1 -0
  145. package/esm5/models/game-timeline-stages.js +57 -0
  146. package/esm5/models/game-user.js +37 -0
  147. package/esm5/models/game.js +134 -0
  148. package/esm5/models/league-court.js +29 -0
  149. package/esm5/models/league.js +69 -0
  150. package/esm5/models/media-item.js +49 -0
  151. package/esm5/models/notification-settings.js +40 -0
  152. package/esm5/models/notification.js +143 -0
  153. package/esm5/models/organization.js +32 -0
  154. package/esm5/models/playoff.js +91 -0
  155. package/esm5/models/poll.js +154 -0
  156. package/esm5/models/public-api.js +50 -0
  157. package/esm5/models/sport.js +52 -0
  158. package/esm5/models/team-event-invite.js +35 -0
  159. package/esm5/models/team-event-type.js +6 -0
  160. package/esm5/models/team-event.js +58 -0
  161. package/esm5/models/team-invite-external.js +30 -0
  162. package/esm5/models/team-invite.js +46 -0
  163. package/esm5/models/team-user.js +44 -0
  164. package/esm5/models/team.js +61 -0
  165. package/esm5/models/tournament-disqualification.js +34 -0
  166. package/esm5/models/tournament-event.js +43 -0
  167. package/esm5/models/tournament-group.js +28 -0
  168. package/esm5/models/tournament-invite.js +48 -0
  169. package/esm5/models/tournament-join-team.js +73 -0
  170. package/esm5/models/tournament-news.js +38 -0
  171. package/esm5/models/tournament-stage-team.js +54 -0
  172. package/esm5/models/tournament-stage.js +40 -0
  173. package/esm5/models/tournament-team-user-invite.js +34 -0
  174. package/esm5/models/tournament-team-user.js +66 -0
  175. package/esm5/models/tournament-team.js +63 -0
  176. package/esm5/models/tournament.js +176 -0
  177. package/esm5/models/user-profile.js +27 -0
  178. package/esm5/models/user.js +95 -0
  179. package/esm5/models/util.js +275 -0
  180. package/esm5/models/volleyball-game-config.js +49 -0
  181. package/esm5/models/volleyball-game-log.js +142 -0
  182. package/esm5/models/volleyball-game-statistic.js +71 -0
  183. package/esm5/models/volleyball-game-team-statistic.js +32 -0
  184. package/esm5/models/volleyball-profile.js +48 -0
  185. package/esm5/models/volleyball-statistic.js +71 -0
  186. package/esm5/mtgame-core.js +5 -0
  187. package/esm5/public-api.js +8 -0
  188. package/esm5/services/base.service.js +19 -0
  189. package/esm5/services/centrifugo.service.js +111 -0
  190. package/esm5/services/config.service.js +52 -0
  191. package/esm5/services/public-api.js +4 -0
  192. package/esm5/storage/local-storage-engine.js +25 -0
  193. package/esm5/storage/public-api.js +4 -0
  194. package/esm5/storage/storage-engine.js +77 -0
  195. package/esm5/storage/store.js +77 -0
  196. package/esm5/utils/array.js +18 -0
  197. package/esm5/utils/component-destroyed.js +21 -0
  198. package/esm5/utils/cookie.js +9 -0
  199. package/esm5/utils/data.js +79 -0
  200. package/esm5/utils/device.js +14 -0
  201. package/esm5/utils/enum.js +7 -0
  202. package/esm5/utils/errors.js +12 -0
  203. package/esm5/utils/favicon.js +47 -0
  204. package/esm5/utils/form.js +22 -0
  205. package/esm5/utils/public-api.js +11 -0
  206. package/esm5/utils/validators.js +49 -0
  207. package/fesm2015/mtgame-core.js +3749 -0
  208. package/fesm2015/mtgame-core.js.map +1 -0
  209. package/fesm5/mtgame-core.js +4455 -0
  210. package/fesm5/mtgame-core.js.map +1 -0
  211. package/http-cookie.interceptor.d.ts +10 -0
  212. package/localization/basketball-game-log-types.d.ts +25 -0
  213. package/localization/overtime-types.d.ts +6 -0
  214. package/localization/public-api.d.ts +6 -0
  215. package/localization/team-event-type.d.ts +5 -0
  216. package/localization/team-user-role.d.ts +6 -0
  217. package/localization/user-profile.d.ts +45 -0
  218. package/localization/volleyball-game-log-types.d.ts +24 -0
  219. package/models/basketball-game-config.d.ts +22 -0
  220. package/models/basketball-game-log.d.ts +52 -0
  221. package/models/basketball-game-statistic.d.ts +29 -0
  222. package/models/basketball-game-team-statistic.d.ts +8 -0
  223. package/models/basketball-profile.d.ts +20 -0
  224. package/models/basketball-statistic.d.ts +44 -0
  225. package/models/city.d.ts +7 -0
  226. package/models/file.d.ts +14 -0
  227. package/models/game-invite.d.ts +16 -0
  228. package/models/game-log-base.d.ts +10 -0
  229. package/models/game-statistic-base.d.ts +3 -0
  230. package/models/game-timeline-stages.d.ts +18 -0
  231. package/models/game-user.d.ts +12 -0
  232. package/models/game.d.ts +56 -0
  233. package/models/league-court.d.ts +9 -0
  234. package/models/league.d.ts +25 -0
  235. package/models/media-item.d.ts +15 -0
  236. package/models/notification-settings.d.ts +15 -0
  237. package/models/notification.d.ts +98 -0
  238. package/models/organization.d.ts +9 -0
  239. package/models/playoff.d.ts +25 -0
  240. package/models/poll.d.ts +46 -0
  241. package/models/public-api.d.ts +50 -0
  242. package/models/sport.d.ts +19 -0
  243. package/models/team-event-invite.d.ts +12 -0
  244. package/models/team-event-type.d.ts +4 -0
  245. package/models/team-event.d.ts +17 -0
  246. package/models/team-invite-external.d.ts +10 -0
  247. package/models/team-invite.d.ts +20 -0
  248. package/models/team-user.d.ts +18 -0
  249. package/models/team.d.ts +21 -0
  250. package/models/tournament-disqualification.d.ts +10 -0
  251. package/models/tournament-event.d.ts +16 -0
  252. package/models/tournament-group.d.ts +10 -0
  253. package/models/tournament-invite.d.ts +17 -0
  254. package/models/tournament-join-team.d.ts +19 -0
  255. package/models/tournament-news.d.ts +13 -0
  256. package/models/tournament-stage-team.d.ts +21 -0
  257. package/models/tournament-stage.d.ts +15 -0
  258. package/models/tournament-team-user-invite.d.ts +11 -0
  259. package/models/tournament-team-user.d.ts +22 -0
  260. package/models/tournament-team.d.ts +28 -0
  261. package/models/tournament.d.ts +87 -0
  262. package/models/user-profile.d.ts +8 -0
  263. package/models/user.d.ts +33 -0
  264. package/models/util.d.ts +49 -0
  265. package/models/volleyball-game-config.d.ts +17 -0
  266. package/models/volleyball-game-log.d.ts +54 -0
  267. package/models/volleyball-game-statistic.d.ts +28 -0
  268. package/models/volleyball-game-team-statistic.d.ts +8 -0
  269. package/models/volleyball-profile.d.ts +20 -0
  270. package/models/volleyball-statistic.d.ts +43 -0
  271. package/mtgame-core.d.ts +4 -0
  272. package/mtgame-core.metadata.json +1 -0
  273. package/package.json +23 -0
  274. package/public-api.d.ts +7 -0
  275. package/services/base.service.d.ts +5 -0
  276. package/services/centrifugo.service.d.ts +20 -0
  277. package/services/config.service.d.ts +11 -0
  278. package/services/public-api.d.ts +3 -0
  279. package/storage/local-storage-engine.d.ts +6 -0
  280. package/storage/public-api.d.ts +3 -0
  281. package/storage/storage-engine.d.ts +24 -0
  282. package/storage/store.d.ts +21 -0
  283. package/utils/array.d.ts +2 -0
  284. package/utils/component-destroyed.d.ts +7 -0
  285. package/utils/cookie.d.ts +1 -0
  286. package/utils/data.d.ts +6 -0
  287. package/utils/device.d.ts +1 -0
  288. package/utils/enum.d.ts +1 -0
  289. package/utils/errors.d.ts +1 -0
  290. package/utils/favicon.d.ts +9 -0
  291. package/utils/form.d.ts +2 -0
  292. package/utils/public-api.d.ts +10 -0
  293. package/utils/validators.d.ts +25 -0
@@ -0,0 +1,6 @@
1
+ export * from './basketball-game-log-types';
2
+ export * from './overtime-types';
3
+ export * from './team-event-type';
4
+ export * from './team-user-role';
5
+ export * from './user-profile';
6
+ export * from './volleyball-game-log-types';
@@ -0,0 +1,5 @@
1
+ import { TeamEventTypes } from '../models/team-event-type';
2
+ export declare const TeamEventTypeLocalization: {
3
+ 1: string;
4
+ 2: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ import { TeamUserRole } from '../models/team-user';
2
+ export declare const TeamUserRoleLocalization: {
3
+ 2: string;
4
+ 1: string;
5
+ 3: string;
6
+ };
@@ -0,0 +1,45 @@
1
+ import { GameBasketballPosition, WorkHand } from '../models/basketball-profile';
2
+ import { GameVolleyballPosition, VolleyballWorkHand } from '../models/volleyball-profile';
3
+ export declare const GameBasketballPositionLocalization: {
4
+ 1: string;
5
+ 2: string;
6
+ 3: string;
7
+ 4: string;
8
+ 5: string;
9
+ };
10
+ export declare const GameBasketballPositionShortLocalization: {
11
+ 1: string;
12
+ 2: string;
13
+ 3: string;
14
+ 4: string;
15
+ 5: string;
16
+ };
17
+ export declare const WorkHandLocalization: {
18
+ 1: string;
19
+ 2: string;
20
+ };
21
+ export declare const GameVolleyballPositionLocalization: {
22
+ 1: string;
23
+ 2: string;
24
+ 3: string;
25
+ 4: string;
26
+ 5: string;
27
+ };
28
+ export declare const GameVolleyballPositionShortLocalization: {
29
+ 1: string;
30
+ 2: string;
31
+ 3: string;
32
+ 4: string;
33
+ 5: string;
34
+ };
35
+ export declare const GameVolleyballPositionShortRuLocalization: {
36
+ 1: string;
37
+ 2: string;
38
+ 3: string;
39
+ 4: string;
40
+ 5: string;
41
+ };
42
+ export declare const VolleyballWorkHandLocalization: {
43
+ 1: string;
44
+ 2: string;
45
+ };
@@ -0,0 +1,24 @@
1
+ import { VolleyballGameLogType } from '../models/volleyball-game-log';
2
+ export declare const VolleyballGameLogTypeLocalization: {
3
+ 1: string;
4
+ 2: string;
5
+ 3: string;
6
+ 6: string;
7
+ 4: string;
8
+ 5: string;
9
+ 10: string;
10
+ 12: string;
11
+ 11: string;
12
+ 7: string;
13
+ 9: string;
14
+ 8: string;
15
+ 15: string;
16
+ 13: string;
17
+ 14: string;
18
+ 18: string;
19
+ 20: string;
20
+ 19: string;
21
+ 16: string;
22
+ 17: string;
23
+ 21: string;
24
+ };
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './util';
2
+ import { BasketballStatisticTypes } from './tournament';
3
+ export declare enum OvertimeTypes {
4
+ to_score_total = 0,
5
+ to_score_diff = 1,
6
+ time = 2
7
+ }
8
+ export declare class BasketballGameConfig extends BaseModel {
9
+ periodsCount: number;
10
+ periodTime: number;
11
+ gameUpToScore: number;
12
+ overtimeType: OvertimeTypes;
13
+ overtimeTime: number;
14
+ overtimeScore: number;
15
+ maxGamePlayers: number;
16
+ timeoutCount: number;
17
+ overtimeTimeoutCount: number;
18
+ timeoutTime: number;
19
+ statisticType: BasketballStatisticTypes;
20
+ static toFront(data: any): any;
21
+ static toBack(data: any): any;
22
+ }
@@ -0,0 +1,52 @@
1
+ import { BaseModel } from './util';
2
+ import { GameUser } from './game-user';
3
+ import { GameLogBase } from './game-log-base';
4
+ export declare enum BasketballGameLogTypes {
5
+ enter_game = 1,
6
+ exit_game = 2,
7
+ remove_game = 3,
8
+ two_point_made = 4,
9
+ three_point_made = 5,
10
+ free_throw_made = 6,
11
+ two_point_attempt = 7,
12
+ three_point_attempt = 8,
13
+ free_throw_attempt = 9,
14
+ assist = 10,
15
+ block = 11,
16
+ rebound = 12,
17
+ offensive_rebound = 13,
18
+ defensive_rebound = 14,
19
+ steal = 15,
20
+ turnover = 16,
21
+ personal_foul = 17,
22
+ technical_foul = 18,
23
+ unsportsmanlike_foul = 19,
24
+ one_point_attempt = 20,
25
+ one_point_made = 21,
26
+ timeout = 22
27
+ }
28
+ export declare class BasketballGameLog extends BaseModel implements GameLogBase {
29
+ id: number;
30
+ uniqueId: string;
31
+ gameId: number;
32
+ gameUserId: number;
33
+ gameUser: GameUser;
34
+ teamId: number;
35
+ logType: BasketballGameLogTypes;
36
+ datetime: Date;
37
+ time: number;
38
+ period: number;
39
+ active: boolean;
40
+ combined: BasketballGameLog;
41
+ teamScore: number;
42
+ competitorTeamScore: number;
43
+ isHighlight: boolean;
44
+ isPointsType(): boolean;
45
+ isReboundType(): boolean;
46
+ isFoulType(): boolean;
47
+ getScore(): any;
48
+ compare(model: BasketballGameLog): number;
49
+ get timeFormatted(): string;
50
+ static toFront(value: any): any;
51
+ static toBack(value: any): any;
52
+ }
@@ -0,0 +1,29 @@
1
+ import { BaseModel } from './util';
2
+ import { GameStatisticBase } from './game-statistic-base';
3
+ export declare class BasketballGameStatistic extends BaseModel implements GameStatisticBase {
4
+ gameUserId: number;
5
+ points: number;
6
+ freeThrowsMade: number;
7
+ twoPointsMade: number;
8
+ threePointsMade: number;
9
+ onePointsMade: number;
10
+ twoPointAttempts: number;
11
+ threePointAttempts: number;
12
+ freeThrowAttempts: number;
13
+ onePointAttempts: number;
14
+ assists: number;
15
+ blocks: number;
16
+ rebounds: number;
17
+ offensiveRebounds: number;
18
+ defensiveRebounds: number;
19
+ steals: number;
20
+ turnovers: number;
21
+ personalFouls: number;
22
+ technicalFouls: number;
23
+ unsportsmanlikeFouls: number;
24
+ updatedAt: Date;
25
+ get id(): number;
26
+ static toFront(data: any): any;
27
+ static toBack(data: any): any;
28
+ get totalFouls(): number;
29
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './util';
2
+ import { BasketballStatistic } from './basketball-statistic';
3
+ export declare class BasketballGameTeamStatistic extends BaseModel {
4
+ team: BasketballStatistic;
5
+ competitorTeam: BasketballStatistic;
6
+ static toFront(data: any): any;
7
+ static toBack(data: any): any;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum GameBasketballPosition {
3
+ point_guard = 1,
4
+ shooting_guard = 2,
5
+ small_forward = 3,
6
+ power_forward = 4,
7
+ center = 5
8
+ }
9
+ export declare enum WorkHand {
10
+ left = 1,
11
+ right = 2
12
+ }
13
+ export declare class BasketballProfile extends BaseModel {
14
+ id: number;
15
+ userId: number;
16
+ position: GameBasketballPosition;
17
+ workHand: WorkHand;
18
+ static toFront(value: any): any;
19
+ static toBack(value: any): any;
20
+ }
@@ -0,0 +1,44 @@
1
+ import { BaseModel } from './util';
2
+ import { TournamentTeamUser } from './tournament-team-user';
3
+ import { Team } from './team';
4
+ import { TeamUser } from './team-user';
5
+ import { User } from './user';
6
+ import { TournamentTeam } from './tournament-team';
7
+ export declare class BasketballStatistic extends BaseModel {
8
+ tournamentTeamUser: TournamentTeamUser;
9
+ team: Team;
10
+ teamUser: TeamUser;
11
+ user: User;
12
+ tournamentTeam: TournamentTeam;
13
+ month: Date;
14
+ winLose: boolean;
15
+ gamesCount: number;
16
+ wonGamesCount: number;
17
+ points: number;
18
+ twoPointsMade: number;
19
+ threePointsMade: number;
20
+ freeThrowsMade: number;
21
+ onePointsMade: number;
22
+ twoPointAttempts: number;
23
+ threePointAttempts: number;
24
+ freeThrowAttempts: number;
25
+ onePointAttempts: number;
26
+ twoPointPercent: number;
27
+ threePointPercent: number;
28
+ freeThrowPercent: number;
29
+ onePointPercent: number;
30
+ assists: number;
31
+ blocks: number;
32
+ rebounds: number;
33
+ offensiveRebounds: number;
34
+ defensiveRebounds: number;
35
+ steals: number;
36
+ turnovers: number;
37
+ personalFouls: number;
38
+ technicalFouls: number;
39
+ unsportsmanlikeFouls: number;
40
+ newbie: boolean;
41
+ get totalFouls(): number;
42
+ static toFront(data: any): any;
43
+ static toBack(data: any): any;
44
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './util';
2
+ export declare class City extends BaseModel {
3
+ id: number;
4
+ name: string;
5
+ static toFront(value: any): any;
6
+ static toBack(value: any): any;
7
+ }
@@ -0,0 +1,14 @@
1
+ export declare enum FileEngine {
2
+ django = 1,
3
+ s3 = 2
4
+ }
5
+ export declare class File {
6
+ id: number;
7
+ name: string;
8
+ path: string;
9
+ mimeType: string;
10
+ size: string;
11
+ engine: FileEngine;
12
+ static toFront(data: any): File;
13
+ static toBack(file: File): any;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from './util';
2
+ import { TeamUser } from './team-user';
3
+ import { Game } from './game';
4
+ export declare enum GameInviteStatus {
5
+ accepted = 1,
6
+ declined = 2
7
+ }
8
+ export declare class GameInvite extends BaseModel {
9
+ id: number;
10
+ teamUser: TeamUser;
11
+ gameId: number;
12
+ game: Game;
13
+ status: GameInviteStatus;
14
+ static toFront(data: any): any;
15
+ static toBack(data: any): any;
16
+ }
@@ -0,0 +1,10 @@
1
+ export interface GameLogBase {
2
+ id: number;
3
+ uniqueId: string;
4
+ active: boolean;
5
+ gameId: number;
6
+ teamId: number;
7
+ gameUserId: number;
8
+ logType: any;
9
+ compare(model: GameLogBase): number;
10
+ }
@@ -0,0 +1,3 @@
1
+ export interface GameStatisticBase {
2
+ gameUserId: number;
3
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './util';
2
+ export declare class GameTimelineStageItem {
3
+ stageId: number;
4
+ toursCount: number;
5
+ playoffStagesCount: number;
6
+ static toFront(data: any): any;
7
+ static toBack(data: any): any;
8
+ }
9
+ export declare class GameTimelineStages extends BaseModel {
10
+ toursCount: number;
11
+ playoffStagesCount: number;
12
+ currentTour: number;
13
+ currentPlayoffStage: number;
14
+ stages: GameTimelineStageItem[];
15
+ tournamentStageId: number;
16
+ static toFront(data: any): any;
17
+ static toBack(data: any): any;
18
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from './util';
2
+ import { TeamUser } from './team-user';
3
+ import { TournamentTeamUser } from './tournament-team-user';
4
+ export declare class GameUser extends BaseModel {
5
+ id: number;
6
+ gameId: number;
7
+ teamUser: TeamUser;
8
+ tournamentTeamUser: TournamentTeamUser;
9
+ updatedAt: Date;
10
+ static toFront(data: any): any;
11
+ static toBack(data: any): any;
12
+ }
@@ -0,0 +1,56 @@
1
+ import { BaseModel } from './util';
2
+ import { Team } from './team';
3
+ import { BasketballGameConfig } from './basketball-game-config';
4
+ import { VolleyballGameConfig } from './volleyball-game-config';
5
+ import { LeagueCourt } from './league-court';
6
+ import { MediaItem } from './media-item';
7
+ export declare enum GameStatuses {
8
+ open = 1,
9
+ in_progress = 2,
10
+ closed = 3,
11
+ archived = 4,
12
+ draft = 5
13
+ }
14
+ export declare enum GameResultTypes {
15
+ team_won = 1,
16
+ competitor_team_won = 2,
17
+ team_technical_defeat = 3,
18
+ competitor_team_technical_defeat = 4
19
+ }
20
+ export declare class Game extends BaseModel {
21
+ id: number;
22
+ status: GameStatuses;
23
+ team: Team;
24
+ teamId: number;
25
+ competitorTeam: Team;
26
+ competitorTeamId: number;
27
+ competitorTeamName: string;
28
+ datetime: Date;
29
+ location: string;
30
+ teamScore: number;
31
+ competitorTeamScore: number;
32
+ archive: boolean;
33
+ playoffNumber: string;
34
+ tournamentId: number;
35
+ tournamentTour: number;
36
+ basketballGameConfig: BasketballGameConfig;
37
+ volleyballGameConfig: VolleyballGameConfig;
38
+ scoreByPeriod: any;
39
+ playoffStage: string;
40
+ tournamentStageId: number;
41
+ tournamentPlayoffId: number;
42
+ tournamentCourt: LeagueCourt;
43
+ mediaCount: number;
44
+ media: MediaItem[];
45
+ get scoreByPeriodList(): {
46
+ period: number;
47
+ teamScore: number;
48
+ competitorTeamScore: number;
49
+ }[];
50
+ get isClosed(): boolean;
51
+ get isTeamWon(): boolean;
52
+ get isCompetitorTeamWon(): boolean;
53
+ get teamWinnerId(): number;
54
+ static toFront(data: any): any;
55
+ static toBack(data: any): any;
56
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from './util';
2
+ export declare class LeagueCourt extends BaseModel {
3
+ id: number;
4
+ name: string;
5
+ address: string;
6
+ leagueId: number;
7
+ static toFront(data: any): any;
8
+ static toBack(data: any): any;
9
+ }
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from './util';
2
+ import { Organization } from './organization';
3
+ import { File } from './file';
4
+ import { Sport } from './sport';
5
+ export declare class League extends BaseModel {
6
+ id: number;
7
+ logo: File;
8
+ contactEmail: string;
9
+ contactPhone: string;
10
+ name: string;
11
+ alias: string;
12
+ sport: Sport;
13
+ description: string;
14
+ socialLinks: string[];
15
+ links: string[];
16
+ organization: Organization;
17
+ tournamentsCount: number;
18
+ closestGameDatetime: string;
19
+ cover: File;
20
+ static toFront(data: any): any;
21
+ static toBack(data: any): any;
22
+ get vkLink(): string;
23
+ get fbLink(): string;
24
+ get instaLink(): string;
25
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ import { File } from './file';
3
+ export declare class MediaItem extends BaseModel {
4
+ id: number;
5
+ originalPhoto: File;
6
+ listPhoto: File;
7
+ detailPhoto: File;
8
+ gameId: number;
9
+ tournamentId: number;
10
+ videoUrl: string;
11
+ videoPreview: File;
12
+ get isVideo(): boolean;
13
+ static toFront(data: any): any;
14
+ static toBack(data: any): any;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum NotificationAllowTypes {
3
+ all = 1,
4
+ important = 2,
5
+ none = 3
6
+ }
7
+ export declare class NotificationSettings extends BaseModel {
8
+ userId: number;
9
+ popup: boolean;
10
+ sound: NotificationAllowTypes;
11
+ browser: NotificationAllowTypes;
12
+ email: boolean;
13
+ static toFront(data: any): any;
14
+ static toBack(data: any): any;
15
+ }
@@ -0,0 +1,98 @@
1
+ import { BaseModel } from './util';
2
+ import { Team } from './team';
3
+ import { Poll } from './poll';
4
+ import { Game } from './game';
5
+ import { TeamInvite } from './team-invite';
6
+ import { TeamUser } from './team-user';
7
+ import { GameInvite } from './game-invite';
8
+ import { TeamEvent } from './team-event';
9
+ import { TeamEventInvite } from './team-event-invite';
10
+ import { Tournament } from './tournament';
11
+ import { TournamentInvite } from './tournament-invite';
12
+ import { TournamentTeam } from './tournament-team';
13
+ import { User } from './user';
14
+ export declare enum NotificationType {
15
+ team_updated = 1,
16
+ team_invited = 2,
17
+ team_join_request = 3,
18
+ team_join_declined_by_team = 4,
19
+ team_join_declined_by_user = 5,
20
+ team_join_canceled_by_team = 6,
21
+ team_join_canceled_by_user = 7,
22
+ team_joined_for_user = 8,
23
+ team_joined_for_team = 9,
24
+ team_user_role_changed_for_user = 10,
25
+ team_user_role_changed_for_team = 11,
26
+ team_user_number_changed = 12,
27
+ team_user_deleted_for_user = 13,
28
+ team_user_deleted_for_team = 14,
29
+ team_user_left = 15,
30
+ game_updated = 16,
31
+ game_invited = 17,
32
+ game_invite_accepted = 18,
33
+ game_invite_declined = 19,
34
+ game_remind = 20,
35
+ game_won = 21,
36
+ game_losing = 22,
37
+ game_tech_defeat = 23,
38
+ game_tech_victory = 24,
39
+ poll_created = 25,
40
+ poll_closed = 26,
41
+ team_event_invited = 27,
42
+ team_event_accepted = 28,
43
+ team_event_declined = 29,
44
+ team_event_remind = 30,
45
+ tournament_invited = 31,
46
+ tournament_joined = 32,
47
+ tournament_join_declined = 33,
48
+ tournament_join_canceled = 34,
49
+ tournament_user_invited = 35,
50
+ tournament_user_accepted_for_team = 36,
51
+ tournament_user_accepted_for_user = 37,
52
+ tournament_user_added = 38,
53
+ tournament_user_declined_for_team = 39,
54
+ tournament_user_declined_for_user = 40,
55
+ tournament_user_invite_deleted = 41,
56
+ tournament_user_deleted = 42,
57
+ tournament_user_disqualified_for_team = 43,
58
+ tournament_user_disqualified_for_user = 44,
59
+ tournament_user_disqualification_updated_for_team = 45,
60
+ tournament_user_disqualification_updated_for_user = 46,
61
+ tournament_team_deleted = 47,
62
+ org_tournament_invite_created = 48,
63
+ org_tournament_invite_declined = 49,
64
+ org_tournament_invite_deleted = 50,
65
+ org_tournament_invite_changed = 51,
66
+ org_tournament_user_deleted = 52,
67
+ org_tournament_user_invited = 53,
68
+ org_tournament_user_has_changes = 54,
69
+ org_tournament_team_leave = 55
70
+ }
71
+ export declare enum NotificationServiceEnum {
72
+ public = 1,
73
+ org = 2
74
+ }
75
+ export declare class Notification extends BaseModel {
76
+ id: number;
77
+ event: NotificationType;
78
+ data: any;
79
+ initiator: User;
80
+ team: Team;
81
+ teamInvite: TeamInvite;
82
+ teamUser: TeamUser;
83
+ poll: Poll;
84
+ game: Game;
85
+ gameInvite: GameInvite;
86
+ teamEvent: TeamEvent;
87
+ teamEventInvite: TeamEventInvite;
88
+ tournament: Tournament;
89
+ tournamentInvite: TournamentInvite;
90
+ tournamentTeam: TournamentTeam;
91
+ viewed: boolean;
92
+ protected: boolean;
93
+ service: NotificationServiceEnum;
94
+ createdAt: Date;
95
+ get important(): boolean;
96
+ static toFront(value: any): any;
97
+ static toBack(value: any): any;
98
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from './util';
2
+ import { User } from './user';
3
+ export declare class Organization extends BaseModel {
4
+ id: number;
5
+ ownerId: number;
6
+ owner: User;
7
+ static toFront(data: any): any;
8
+ static toBack(data: any): any;
9
+ }
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from './util';
2
+ export declare class PlayoffSettings extends BaseModel {
3
+ rounds: number;
4
+ finalRounds: number;
5
+ thirdPlaceRounds: number;
6
+ teamsCount: number;
7
+ static toFront(data: any): any;
8
+ static toBack(data: any): any;
9
+ }
10
+ export declare class Playoff extends BaseModel {
11
+ id: number;
12
+ name: string;
13
+ settings: PlayoffSettings;
14
+ tournamentId: number;
15
+ tournamentStageId: number;
16
+ isOfficial: boolean;
17
+ private stages;
18
+ static toFront(data: any): any;
19
+ static toBack(data: any): any;
20
+ get stagesCount(): number;
21
+ getPlayoffStages(): {
22
+ title: string;
23
+ value: number;
24
+ }[];
25
+ }
@@ -0,0 +1,46 @@
1
+ import { BaseModel } from './util';
2
+ import { User } from './user';
3
+ export declare enum PollStatuses {
4
+ open = 1,
5
+ closed = 2,
6
+ archived = 3
7
+ }
8
+ export declare class PollVariant extends BaseModel {
9
+ uuid: string;
10
+ name: string;
11
+ static toFront(data: any): any;
12
+ static toBack(data: any): any;
13
+ }
14
+ export declare class PollAnswer extends BaseModel {
15
+ id: number;
16
+ answerUuid: string;
17
+ user: User;
18
+ pollId: number;
19
+ static toFront(data: any): any;
20
+ static toBack(data: any): any;
21
+ }
22
+ export declare class Poll extends BaseModel {
23
+ id: number;
24
+ active: boolean;
25
+ teamId: number;
26
+ status: PollStatuses;
27
+ name: string;
28
+ description: string;
29
+ _variants: PollVariant[];
30
+ author: User;
31
+ _answers: PollAnswer[];
32
+ multipleAnswer: boolean;
33
+ anonymous: boolean;
34
+ createdAt: Date;
35
+ variantsWithAnswers: {
36
+ variant: PollVariant;
37
+ percent: number;
38
+ }[];
39
+ set variants(value: PollVariant[]);
40
+ get variants(): PollVariant[];
41
+ set answers(value: PollAnswer[]);
42
+ get answers(): PollAnswer[];
43
+ calculateAnswersPercentage(): void;
44
+ static toFront(data: any): any;
45
+ static toBack(data: any): any;
46
+ }