@mtgame/core 2.0.12 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/api/tournament-api.d.ts +1 -0
  2. package/esm2020/api/basketball-game-api.mjs +3 -3
  3. package/esm2020/api/feedback-api.mjs +3 -3
  4. package/esm2020/api/file-api.mjs +3 -3
  5. package/esm2020/api/football-game-api.mjs +3 -3
  6. package/esm2020/api/game-base-api.mjs +3 -3
  7. package/esm2020/api/handball-game-api.mjs +3 -3
  8. package/esm2020/api/hockey-game-api.mjs +3 -3
  9. package/esm2020/api/league-api.mjs +3 -3
  10. package/esm2020/api/league-news-api.mjs +3 -3
  11. package/esm2020/api/league-player-api.mjs +3 -3
  12. package/esm2020/api/media-api.mjs +3 -3
  13. package/esm2020/api/notification-api.mjs +3 -3
  14. package/esm2020/api/notification-base-api.mjs +3 -3
  15. package/esm2020/api/org-notification-api.mjs +3 -3
  16. package/esm2020/api/public-team-api.mjs +3 -3
  17. package/esm2020/api/public-user-api.mjs +3 -3
  18. package/esm2020/api/reference-api.mjs +3 -3
  19. package/esm2020/api/rugby-game-api.mjs +3 -3
  20. package/esm2020/api/team-api.mjs +3 -3
  21. package/esm2020/api/team-event-api.mjs +3 -3
  22. package/esm2020/api/tournament-api.mjs +7 -4
  23. package/esm2020/api/tournament-join-api.mjs +3 -3
  24. package/esm2020/api/tournament-round-api.mjs +3 -3
  25. package/esm2020/api/tournament-season-api.mjs +3 -3
  26. package/esm2020/api/tournament-stage-api.mjs +3 -3
  27. package/esm2020/api/user-api.mjs +3 -3
  28. package/esm2020/api/volleyball-game-api.mjs +3 -3
  29. package/esm2020/api/waterpolo-game-api.mjs +3 -3
  30. package/esm2020/http-cookie.interceptor.mjs +3 -3
  31. package/esm2020/localization/basketball-game-log-types.mjs +8 -1
  32. package/esm2020/localization/rugby-foul-sanction.mjs +2 -2
  33. package/esm2020/localization/rugby-game-log-types.mjs +2 -1
  34. package/esm2020/models/basketball-game-log.mjs +18 -3
  35. package/esm2020/models/basketball-game-statistic.mjs +59 -1
  36. package/esm2020/models/basketball-statistic.mjs +1 -1
  37. package/esm2020/models/football-statistic.mjs +1 -1
  38. package/esm2020/models/game-user.mjs +2 -2
  39. package/esm2020/models/game.mjs +12 -1
  40. package/esm2020/models/hockey-statistic.mjs +1 -1
  41. package/esm2020/models/playoff.mjs +4 -1
  42. package/esm2020/models/rugby-game-log.mjs +19 -18
  43. package/esm2020/models/rugby-game-statistic.mjs +2 -2
  44. package/esm2020/models/rugby-statistic.mjs +1 -1
  45. package/esm2020/models/sport.mjs +5 -1
  46. package/esm2020/models/team.mjs +1 -1
  47. package/esm2020/services/base.service.mjs +3 -3
  48. package/esm2020/services/centrifugo.service.mjs +12 -8
  49. package/esm2020/services/config.service.mjs +3 -3
  50. package/esm2020/services/device-info.service.mjs +3 -3
  51. package/esm2020/websocket/game.websocket.mjs +3 -3
  52. package/fesm2015/mtgame-core.mjs +236 -128
  53. package/fesm2015/mtgame-core.mjs.map +1 -1
  54. package/fesm2020/mtgame-core.mjs +235 -128
  55. package/fesm2020/mtgame-core.mjs.map +1 -1
  56. package/localization/basketball-game-log-types.d.ts +7 -0
  57. package/localization/rugby-game-log-types.d.ts +3 -2
  58. package/models/basketball-game-log.d.ts +9 -1
  59. package/models/basketball-game-statistic.d.ts +32 -0
  60. package/models/basketball-statistic.d.ts +9 -0
  61. package/models/football-statistic.d.ts +2 -0
  62. package/models/game.d.ts +2 -0
  63. package/models/hockey-statistic.d.ts +3 -0
  64. package/models/playoff.d.ts +1 -0
  65. package/models/rugby-game-log.d.ts +18 -17
  66. package/models/rugby-game-statistic.d.ts +1 -0
  67. package/models/rugby-statistic.d.ts +1 -0
  68. package/models/sport.d.ts +3 -1
  69. package/models/team.d.ts +1 -0
  70. package/package.json +1 -1
@@ -22,4 +22,11 @@ export declare const BasketballGameLogTypeLocalization: {
22
22
  19: string;
23
23
  23: string;
24
24
  24: string;
25
+ 27: string;
26
+ 28: string;
27
+ 25: string;
28
+ 26: string;
29
+ 29: string;
30
+ 30: string;
31
+ 31: string;
25
32
  };
@@ -7,8 +7,8 @@ export declare const RugbyGameLogTypeLocalization: {
7
7
  6: string;
8
8
  7: string;
9
9
  8: string;
10
+ 28: string;
10
11
  27: string;
11
- 26: string;
12
12
  9: string;
13
13
  10: string;
14
14
  11: string;
@@ -26,7 +26,7 @@ export declare const RugbyGameLogTypeLocalization: {
26
26
  23: string;
27
27
  24: string;
28
28
  25: string;
29
- 28: string;
29
+ 26: string;
30
30
  29: string;
31
31
  30: string;
32
32
  31: string;
@@ -40,4 +40,5 @@ export declare const RugbyGameLogTypeLocalization: {
40
40
  39: string;
41
41
  40: string;
42
42
  41: string;
43
+ 42: string;
43
44
  };
@@ -24,7 +24,14 @@ export declare enum BasketballGameLogTypes {
24
24
  one_point_attempt = 21,
25
25
  one_point_made = 22,
26
26
  timeout = 23,
27
- team_rebound = 24
27
+ team_rebound = 24,
28
+ four_point_attempt = 25,
29
+ four_point_made = 26,
30
+ dunk_attempt = 27,
31
+ dunk_made = 28,
32
+ shootout = 29,
33
+ shootout_won = 30,
34
+ shootout_lost = 31
28
35
  }
29
36
  export declare enum BasketballSubLogTypes {
30
37
  jump_shot = 1,
@@ -108,6 +115,7 @@ export declare class BasketballGameLog extends GameLogBase {
108
115
  group: string;
109
116
  marked: boolean;
110
117
  coords: [number, number];
118
+ shootoutPoints: number;
111
119
  isPointsType(): boolean;
112
120
  isReboundType(): boolean;
113
121
  isFoulType(): boolean;
@@ -24,12 +24,44 @@ export declare class BasketballGameStatistic extends GameStatisticBase {
24
24
  drawnFouls: number;
25
25
  playerEfficiency: number;
26
26
  shotsBlocked: number;
27
+ fourPointAttempts: number;
28
+ fourPointsMade: number;
29
+ dunkAttempts: number;
30
+ dunksMade: number;
31
+ shootoutsWon: number;
32
+ shootoutsLost: number;
27
33
  updatedAt: Date;
28
34
  get id(): number;
29
35
  get totalFouls(): number;
36
+ set onePointPercent(v: number);
37
+ get onePointPercent(): number;
38
+ /**
39
+ * @deprecated Use onePointPercent instead
40
+ */
30
41
  get onePointsPercent(): number;
42
+ set twoPointPercent(v: number);
43
+ get twoPointPercent(): number;
44
+ /**
45
+ * @deprecated Use twoPointPercent instead
46
+ */
31
47
  get twoPointsPercent(): number;
48
+ set threePointPercent(v: number);
49
+ get threePointPercent(): number;
50
+ /**
51
+ * @deprecated Use threePointPercent instead
52
+ */
32
53
  get threePointsPercent(): number;
54
+ set freeThrowPercent(v: number);
55
+ get freeThrowPercent(): number;
56
+ /**
57
+ * @deprecated Use freeThrowPercent instead
58
+ */
33
59
  get freeThrowsPercent(): number;
34
60
  get totalRebounds(): number;
61
+ set fourPointPercent(v: number);
62
+ get fourPointPercent(): number;
63
+ set shootoutsTotal(v: number);
64
+ get shootoutsTotal(): number;
65
+ set shootoutWonPercent(v: number);
66
+ get shootoutWonPercent(): number;
35
67
  }
@@ -46,6 +46,15 @@ export declare class BasketballStatistic extends BaseStatistic {
46
46
  drawnFouls: number;
47
47
  playerEfficiency: number;
48
48
  shotsBlocked: number;
49
+ fourPointAttempts: number;
50
+ fourPointsMade: number;
51
+ fourPointPercent: number;
52
+ dunkAttempts: number;
53
+ dunksMade: number;
54
+ shootoutsWon: number;
55
+ shootoutsLost: number;
56
+ shootoutsTotal: number;
57
+ shootoutWonPercent: number;
49
58
  gameTime: number;
50
59
  newbie: boolean;
51
60
  rank: number;
@@ -71,6 +71,8 @@ export declare class FootballStatistic extends BaseStatistic {
71
71
  endGamePenaltyGoals: number;
72
72
  endGamePenaltyMisses: number;
73
73
  endGamePenaltySaves: number;
74
+ shutout: number;
75
+ shutoutPercent: number;
74
76
  get teamPlusMinus(): number;
75
77
  get userMinutes(): string;
76
78
  get penalties(): number;
package/models/game.d.ts CHANGED
@@ -13,6 +13,7 @@ import { TournamentGroup } from './tournament-group';
13
13
  import { RugbyGameConfig } from './rugby-game-config';
14
14
  import { WaterpoloGameConfig } from './waterpolo-game-config';
15
15
  import { TournamentTeam } from './tournament-team';
16
+ import { Sport } from './sport';
16
17
  export declare enum GameStatuses {
17
18
  open = 1,
18
19
  in_progress = 2,
@@ -102,4 +103,5 @@ export declare class Game extends BaseModel {
102
103
  get isCompetitorTeamWon(): boolean;
103
104
  get teamWinnerId(): number;
104
105
  get teamLoserId(): number;
106
+ get sport(): Sport;
105
107
  }
@@ -91,6 +91,9 @@ export declare class HockeyStatistic extends BaseStatistic {
91
91
  efficiency: number;
92
92
  newbie: boolean;
93
93
  rank: number;
94
+ shutout: number;
95
+ shutoutPercent: number;
96
+ mvpCount: number;
94
97
  get assists(): number;
95
98
  get goalpass(): number;
96
99
  get userMinutes(): string;
@@ -21,6 +21,7 @@ export declare class Playoff extends BaseModel {
21
21
  isOfficial: boolean;
22
22
  tournamentRoundId: number;
23
23
  divisionId: number;
24
+ winnerPlace: number;
24
25
  private stages;
25
26
  get stagesCount(): number;
26
27
  getPlayoffStages(): {
@@ -26,23 +26,24 @@ export declare enum RugbyGameLogTypes {
26
26
  end_game_penalty_goal = 22,
27
27
  foot_field_shot = 23,
28
28
  foot_out_shot = 24,
29
- timeout = 25,
30
- tap_penalty = 26,
31
- penalty_kick_to_touch = 27,
32
- scrum_won = 28,
33
- scrum_lost = 29,
34
- scrum_won_free = 30,
35
- lineout_won = 31,
36
- lineout_lost = 32,
37
- quick_throw = 33,
38
- ruck_won = 34,
39
- ruck_lost = 35,
40
- maul_won = 36,
41
- maul_lost = 37,
42
- team_foul = 38,
43
- start_kick = 39,
44
- twenty_two_meters_kick = 40,
45
- goal_kick = 41
29
+ foot_kick_50_22 = 25,
30
+ timeout = 26,
31
+ tap_penalty = 27,
32
+ penalty_kick_to_touch = 28,
33
+ scrum_won = 29,
34
+ scrum_lost = 30,
35
+ scrum_won_free = 31,
36
+ lineout_won = 32,
37
+ lineout_lost = 33,
38
+ quick_throw = 34,
39
+ ruck_won = 35,
40
+ ruck_lost = 36,
41
+ maul_won = 37,
42
+ maul_lost = 38,
43
+ team_foul = 39,
44
+ start_kick = 40,
45
+ twenty_two_meters_kick = 41,
46
+ goal_kick = 42
46
47
  }
47
48
  export declare const RUGBY_GAME_LOG_TYPE_POINTS: {
48
49
  4: number;
@@ -19,6 +19,7 @@ export declare class RugbyGameStatistic extends GameStatisticBase {
19
19
  carriesOverGainline: number;
20
20
  footFieldShots: number;
21
21
  footOutShots: number;
22
+ footKicks5022: number;
22
23
  fouls: number;
23
24
  teamFouls: number;
24
25
  gameTime: number;
@@ -51,6 +51,7 @@ export declare class RugbyStatistic extends BaseStatistic {
51
51
  carriesOverGainline: number;
52
52
  footFieldShots: number;
53
53
  footOutShots: number;
54
+ footKicks5022: number;
54
55
  footShots: number;
55
56
  plusMinus: number;
56
57
  gameTime: number;
package/models/sport.d.ts CHANGED
@@ -20,7 +20,8 @@ export declare enum SportTypes {
20
20
  basketball_1x1 = 18,
21
21
  waterpolo = 19,
22
22
  classic_waterpolo = 20,
23
- mini_waterpolo = 21
23
+ mini_waterpolo = 21,
24
+ media_basket = 22
24
25
  }
25
26
  export declare class Sport extends BaseModel {
26
27
  id: number;
@@ -31,6 +32,7 @@ export declare class Sport extends BaseModel {
31
32
  isClassicBasketball(): boolean;
32
33
  isStreetball(): boolean;
33
34
  isBasketball1x1(): boolean;
35
+ isMediaBasket(): boolean;
34
36
  isVolleyball(): boolean;
35
37
  isClassicVolleyball(): boolean;
36
38
  isBeachVolleyball(): boolean;
package/models/team.d.ts CHANGED
@@ -15,5 +15,6 @@ export declare class Team extends BaseModel {
15
15
  gamesCount: number;
16
16
  scoreSum: number;
17
17
  closestGameDatetime: Date;
18
+ createdByLeagueId: number;
18
19
  getEmptyLogoClass(): string;
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtgame/core",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "dependencies": {
5
5
  "tslib": "^2.2.0",
6
6
  "@sentry/angular": "~7.36.0",