@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.
- package/api/tournament-api.d.ts +1 -0
- package/esm2020/api/basketball-game-api.mjs +3 -3
- package/esm2020/api/feedback-api.mjs +3 -3
- package/esm2020/api/file-api.mjs +3 -3
- package/esm2020/api/football-game-api.mjs +3 -3
- package/esm2020/api/game-base-api.mjs +3 -3
- package/esm2020/api/handball-game-api.mjs +3 -3
- package/esm2020/api/hockey-game-api.mjs +3 -3
- package/esm2020/api/league-api.mjs +3 -3
- package/esm2020/api/league-news-api.mjs +3 -3
- package/esm2020/api/league-player-api.mjs +3 -3
- package/esm2020/api/media-api.mjs +3 -3
- package/esm2020/api/notification-api.mjs +3 -3
- package/esm2020/api/notification-base-api.mjs +3 -3
- package/esm2020/api/org-notification-api.mjs +3 -3
- package/esm2020/api/public-team-api.mjs +3 -3
- package/esm2020/api/public-user-api.mjs +3 -3
- package/esm2020/api/reference-api.mjs +3 -3
- package/esm2020/api/rugby-game-api.mjs +3 -3
- package/esm2020/api/team-api.mjs +3 -3
- package/esm2020/api/team-event-api.mjs +3 -3
- package/esm2020/api/tournament-api.mjs +7 -4
- package/esm2020/api/tournament-join-api.mjs +3 -3
- package/esm2020/api/tournament-round-api.mjs +3 -3
- package/esm2020/api/tournament-season-api.mjs +3 -3
- package/esm2020/api/tournament-stage-api.mjs +3 -3
- package/esm2020/api/user-api.mjs +3 -3
- package/esm2020/api/volleyball-game-api.mjs +3 -3
- package/esm2020/api/waterpolo-game-api.mjs +3 -3
- package/esm2020/http-cookie.interceptor.mjs +3 -3
- package/esm2020/localization/basketball-game-log-types.mjs +8 -1
- package/esm2020/localization/rugby-foul-sanction.mjs +2 -2
- package/esm2020/localization/rugby-game-log-types.mjs +2 -1
- package/esm2020/models/basketball-game-log.mjs +18 -3
- package/esm2020/models/basketball-game-statistic.mjs +59 -1
- package/esm2020/models/basketball-statistic.mjs +1 -1
- package/esm2020/models/football-statistic.mjs +1 -1
- package/esm2020/models/game-user.mjs +2 -2
- package/esm2020/models/game.mjs +12 -1
- package/esm2020/models/hockey-statistic.mjs +1 -1
- package/esm2020/models/playoff.mjs +4 -1
- package/esm2020/models/rugby-game-log.mjs +19 -18
- package/esm2020/models/rugby-game-statistic.mjs +2 -2
- package/esm2020/models/rugby-statistic.mjs +1 -1
- package/esm2020/models/sport.mjs +5 -1
- package/esm2020/models/team.mjs +1 -1
- package/esm2020/services/base.service.mjs +3 -3
- package/esm2020/services/centrifugo.service.mjs +12 -8
- package/esm2020/services/config.service.mjs +3 -3
- package/esm2020/services/device-info.service.mjs +3 -3
- package/esm2020/websocket/game.websocket.mjs +3 -3
- package/fesm2015/mtgame-core.mjs +236 -128
- package/fesm2015/mtgame-core.mjs.map +1 -1
- package/fesm2020/mtgame-core.mjs +235 -128
- package/fesm2020/mtgame-core.mjs.map +1 -1
- package/localization/basketball-game-log-types.d.ts +7 -0
- package/localization/rugby-game-log-types.d.ts +3 -2
- package/models/basketball-game-log.d.ts +9 -1
- package/models/basketball-game-statistic.d.ts +32 -0
- package/models/basketball-statistic.d.ts +9 -0
- package/models/football-statistic.d.ts +2 -0
- package/models/game.d.ts +2 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/models/playoff.d.ts +1 -0
- package/models/rugby-game-log.d.ts +18 -17
- package/models/rugby-game-statistic.d.ts +1 -0
- package/models/rugby-statistic.d.ts +1 -0
- package/models/sport.d.ts +3 -1
- package/models/team.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|
package/models/playoff.d.ts
CHANGED
|
@@ -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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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;
|
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