@mtgame/core 0.1.127 → 0.1.129
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/league-api.d.ts +2 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +13 -2
- package/api/tournament-round-api.d.ts +23 -0
- package/bundles/mtgame-core.umd.js +394 -9
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/league-api.js +7 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +36 -4
- package/esm2015/api/tournament-round-api.js +71 -0
- package/esm2015/models/base-statistic.js +1 -1
- package/esm2015/models/basketball-statistic.js +4 -1
- package/esm2015/models/football-statistic.js +9 -1
- package/esm2015/models/game-timeline-stages.js +2 -1
- package/esm2015/models/game.js +14 -1
- package/esm2015/models/handball-statistic.js +4 -1
- package/esm2015/models/hockey-statistic.js +4 -1
- package/esm2015/models/league-court.js +3 -2
- package/esm2015/models/playoff.js +4 -2
- package/esm2015/models/public-api.js +4 -1
- package/esm2015/models/rugby-game-statistic.js +6 -1
- package/esm2015/models/rugby-statistic.js +10 -1
- package/esm2015/models/season-tournament.js +22 -0
- package/esm2015/models/tournament-division.js +27 -0
- package/esm2015/models/tournament-group.js +4 -2
- package/esm2015/models/tournament-round-team.js +95 -0
- package/esm2015/models/tournament-round.js +36 -0
- package/esm2015/models/tournament-team.js +4 -1
- package/esm2015/models/tournament.js +2 -1
- package/esm2015/models/volleyball-statistic.js +4 -1
- package/esm2015/models/waterpolo-statistic.js +4 -1
- package/esm2015/storage/store.js +4 -4
- package/esm2015/utils/array.js +2 -2
- package/fesm2015/mtgame-core.js +323 -11
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/base-statistic.d.ts +3 -1
- package/models/basketball-statistic.d.ts +3 -0
- package/models/football-statistic.d.ts +6 -0
- package/models/game-timeline-stages.d.ts +1 -0
- package/models/game.d.ts +3 -1
- package/models/handball-statistic.d.ts +3 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/models/league-court.d.ts +1 -0
- package/models/playoff.d.ts +2 -0
- package/models/public-api.d.ts +3 -0
- package/models/rugby-game-statistic.d.ts +3 -0
- package/models/rugby-statistic.d.ts +4 -1
- package/models/season-tournament.d.ts +7 -0
- package/models/tournament-division.d.ts +9 -0
- package/models/tournament-group.d.ts +2 -0
- package/models/tournament-round-team.d.ts +51 -0
- package/models/tournament-round.d.ts +17 -0
- package/models/tournament-team.d.ts +2 -0
- package/models/tournament.d.ts +1 -0
- package/models/volleyball-statistic.d.ts +3 -0
- package/models/waterpolo-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
- package/storage/store.d.ts +1 -1
|
@@ -16,7 +16,9 @@ export interface BaseStatistic {
|
|
|
16
16
|
winLose: WinLoseType;
|
|
17
17
|
gamesCount: number;
|
|
18
18
|
wonGamesCount: number;
|
|
19
|
-
|
|
19
|
+
teamScoreSum: number;
|
|
20
|
+
teamMissedSum: number;
|
|
21
|
+
tournamentPoints: number;
|
|
20
22
|
newbie: boolean;
|
|
21
23
|
rank: number;
|
|
22
24
|
}
|
|
@@ -17,6 +17,9 @@ export declare class BasketballStatistic extends BaseModel implements BaseStatis
|
|
|
17
17
|
winLose: WinLoseType;
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
|
+
teamScoreSum: number;
|
|
21
|
+
teamMissedSum: number;
|
|
22
|
+
tournamentPoints: number;
|
|
20
23
|
points: number;
|
|
21
24
|
twoPointsMade: number;
|
|
22
25
|
threePointsMade: number;
|
|
@@ -17,6 +17,11 @@ export declare class FootballStatistic extends BaseModel implements BaseStatisti
|
|
|
17
17
|
winLose: WinLoseType;
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
|
+
loseGamesCount: number;
|
|
21
|
+
drawGamesCount: number;
|
|
22
|
+
teamScoreSum: number;
|
|
23
|
+
teamMissedSum: number;
|
|
24
|
+
tournamentPoints: number;
|
|
20
25
|
points: number;
|
|
21
26
|
shotMisses: number;
|
|
22
27
|
shotsOnGoal: number;
|
|
@@ -67,6 +72,7 @@ export declare class FootballStatistic extends BaseModel implements BaseStatisti
|
|
|
67
72
|
endGamePenaltyGoals: number;
|
|
68
73
|
endGamePenaltyMisses: number;
|
|
69
74
|
endGamePenaltySaves: number;
|
|
75
|
+
get teamPlusMinus(): number;
|
|
70
76
|
get userMinutes(): string;
|
|
71
77
|
get penalties(): number;
|
|
72
78
|
get smallPenalties(): number;
|
package/models/game.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export declare enum GameResultTypes {
|
|
|
24
24
|
team_won = 1,
|
|
25
25
|
competitor_team_won = 2,
|
|
26
26
|
team_technical_defeat = 3,
|
|
27
|
-
competitor_team_technical_defeat = 4
|
|
27
|
+
competitor_team_technical_defeat = 4,
|
|
28
|
+
draw = 5
|
|
28
29
|
}
|
|
29
30
|
export declare class TournamentTeamShort extends BaseModel {
|
|
30
31
|
id: number;
|
|
@@ -96,6 +97,7 @@ export declare class Game extends BaseModel {
|
|
|
96
97
|
get isTeamWon(): boolean;
|
|
97
98
|
get isCompetitorTeamWon(): boolean;
|
|
98
99
|
get teamWinnerId(): number;
|
|
100
|
+
get teamLoserId(): number;
|
|
99
101
|
static toFront(data: any): any;
|
|
100
102
|
static toBack(data: any): any;
|
|
101
103
|
}
|
|
@@ -17,6 +17,9 @@ export declare class HandballStatistic extends BaseModel implements BaseStatisti
|
|
|
17
17
|
winLose: WinLoseType;
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
|
+
teamScoreSum: number;
|
|
21
|
+
teamMissedSum: number;
|
|
22
|
+
tournamentPoints: number;
|
|
20
23
|
points: number;
|
|
21
24
|
shotMisses: number;
|
|
22
25
|
shotsOnGoal: number;
|
|
@@ -18,6 +18,9 @@ export declare class HockeyStatistic extends BaseModel implements BaseStatistic
|
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
20
|
loseGamesCount: number;
|
|
21
|
+
teamScoreSum: number;
|
|
22
|
+
teamMissedSum: number;
|
|
23
|
+
tournamentPoints: number;
|
|
21
24
|
points: number;
|
|
22
25
|
ppShots: number;
|
|
23
26
|
ppShotMisses: number;
|
package/models/league-court.d.ts
CHANGED
package/models/playoff.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export declare class Playoff extends BaseModel {
|
|
|
21
21
|
tournamentId: number;
|
|
22
22
|
tournamentStageId: number;
|
|
23
23
|
isOfficial: boolean;
|
|
24
|
+
tournamentRoundId: number;
|
|
25
|
+
divisionId: number;
|
|
24
26
|
private stages;
|
|
25
27
|
static toFront(data: any): any;
|
|
26
28
|
static toBack(data: any): any;
|
package/models/public-api.d.ts
CHANGED
|
@@ -70,12 +70,15 @@ export * from './team-permission';
|
|
|
70
70
|
export * from './team-user';
|
|
71
71
|
export * from './tournament';
|
|
72
72
|
export * from './tournament-disqualification';
|
|
73
|
+
export * from './tournament-division';
|
|
73
74
|
export * from './tournament-event';
|
|
74
75
|
export * from './tournament-group';
|
|
75
76
|
export * from './tournament-invite';
|
|
76
77
|
export * from './tournament-join-team';
|
|
77
78
|
export * from './tournament-join1x1-data';
|
|
78
79
|
export * from './tournament-news';
|
|
80
|
+
export * from './tournament-round';
|
|
81
|
+
export * from './tournament-round-team';
|
|
79
82
|
export * from './tournament-season';
|
|
80
83
|
export * from './tournament-stage';
|
|
81
84
|
export * from './tournament-stage-team';
|
|
@@ -26,6 +26,8 @@ export declare class RugbyGameStatistic extends BaseModel implements GameStatist
|
|
|
26
26
|
carriesOverGainline: number;
|
|
27
27
|
footFieldShots: number;
|
|
28
28
|
footOutShots: number;
|
|
29
|
+
fouls: number;
|
|
30
|
+
teamFouls: number;
|
|
29
31
|
gameTime: number;
|
|
30
32
|
plusMinus: number;
|
|
31
33
|
updatedAt: Date;
|
|
@@ -33,6 +35,7 @@ export declare class RugbyGameStatistic extends BaseModel implements GameStatist
|
|
|
33
35
|
get gameMinutes(): number;
|
|
34
36
|
get totalGoals(): number;
|
|
35
37
|
get footShots(): number;
|
|
38
|
+
get totalFouls(): number;
|
|
36
39
|
static toFront(data: any): any;
|
|
37
40
|
static toBack(data: any): any;
|
|
38
41
|
}
|
|
@@ -19,7 +19,9 @@ export declare class RugbyStatistic extends BaseModel implements BaseStatistic {
|
|
|
19
19
|
wonGamesCount: number;
|
|
20
20
|
loseGamesCount: number;
|
|
21
21
|
drawGamesCount: number;
|
|
22
|
-
|
|
22
|
+
teamScoreSum: number;
|
|
23
|
+
teamMissedSum: number;
|
|
24
|
+
tournamentPoints: number;
|
|
23
25
|
newbie: boolean;
|
|
24
26
|
rank: number;
|
|
25
27
|
points: number;
|
|
@@ -82,6 +84,7 @@ export declare class RugbyStatistic extends BaseModel implements BaseStatistic {
|
|
|
82
84
|
fouls: number;
|
|
83
85
|
teamFouls: number;
|
|
84
86
|
get userMinutes(): string;
|
|
87
|
+
get totalFouls(): number;
|
|
85
88
|
static toFront(data: any): any;
|
|
86
89
|
static toBack(data: any): any;
|
|
87
90
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentGroup } from './tournament-group';
|
|
3
|
+
import { TournamentDivision } from './tournament-division';
|
|
4
|
+
import { TournamentTeam } from './tournament-team';
|
|
5
|
+
export declare class RoundTeamGame extends BaseModel {
|
|
6
|
+
id: number;
|
|
7
|
+
teamId: number;
|
|
8
|
+
competitorTeamId: number;
|
|
9
|
+
teamScore: number;
|
|
10
|
+
competitorTeamScore: number;
|
|
11
|
+
static toFront(data: any): any;
|
|
12
|
+
static toBack(data: any): any;
|
|
13
|
+
}
|
|
14
|
+
export declare class TournamentRoundTeam extends BaseModel {
|
|
15
|
+
private _games;
|
|
16
|
+
id: number;
|
|
17
|
+
tournamentTeam: TournamentTeam;
|
|
18
|
+
group: TournamentGroup;
|
|
19
|
+
division: TournamentDivision;
|
|
20
|
+
points: number;
|
|
21
|
+
handicap: number;
|
|
22
|
+
gamesCount: number;
|
|
23
|
+
wonGamesCount: number;
|
|
24
|
+
loseGamesCount: number;
|
|
25
|
+
drawGamesCount: number;
|
|
26
|
+
scoreSum: number;
|
|
27
|
+
missedSum: number;
|
|
28
|
+
scorePointsSum: number;
|
|
29
|
+
missedPointsSum: number;
|
|
30
|
+
winNormalTimeGamesCount: number;
|
|
31
|
+
loseNormalTimeGamesCount: number;
|
|
32
|
+
winOvertimeGamesCount: number;
|
|
33
|
+
loseOvertimeGamesCount: number;
|
|
34
|
+
gamesWonPercent: number;
|
|
35
|
+
lastGamesWon: number;
|
|
36
|
+
lastGamesCount: number;
|
|
37
|
+
triesScored: number;
|
|
38
|
+
triesMissed: number;
|
|
39
|
+
attackBonuses: number;
|
|
40
|
+
defenseBonuses: number;
|
|
41
|
+
gamesByScoreCount: {
|
|
42
|
+
[key: string]: number;
|
|
43
|
+
};
|
|
44
|
+
gamesMapping: {
|
|
45
|
+
[key: number]: RoundTeamGame[];
|
|
46
|
+
};
|
|
47
|
+
set games(value: RoundTeamGame[]);
|
|
48
|
+
get games(): RoundTeamGame[];
|
|
49
|
+
static toFront(data: any): any;
|
|
50
|
+
static toBack(data: any): any;
|
|
51
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentDivision } from './tournament-division';
|
|
3
|
+
export declare enum TournamentRoundTypes {
|
|
4
|
+
group = 1,
|
|
5
|
+
playoff = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class TournamentRoundSettings extends BaseModel {
|
|
8
|
+
toursCount: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class TournamentRound extends BaseModel {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
type: TournamentRoundTypes;
|
|
14
|
+
divisions: TournamentDivision[];
|
|
15
|
+
static toFront(data: any): any;
|
|
16
|
+
static toBack(data: any): any;
|
|
17
|
+
}
|
|
@@ -4,6 +4,7 @@ import { TournamentGroup } from './tournament-group';
|
|
|
4
4
|
import { Game } from './game';
|
|
5
5
|
import { Tournament } from './tournament';
|
|
6
6
|
import { File } from './file';
|
|
7
|
+
import { TournamentDivision } from './tournament-division';
|
|
7
8
|
export declare class TournamentTeam extends BaseModel {
|
|
8
9
|
id: number;
|
|
9
10
|
name: string;
|
|
@@ -13,6 +14,7 @@ export declare class TournamentTeam extends BaseModel {
|
|
|
13
14
|
tournament: Tournament;
|
|
14
15
|
team: Team;
|
|
15
16
|
group: TournamentGroup;
|
|
17
|
+
division: TournamentDivision;
|
|
16
18
|
finalStanding: number;
|
|
17
19
|
gamesCount: number;
|
|
18
20
|
wonGamesCount: number;
|
package/models/tournament.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export declare class Tournament extends BaseModel {
|
|
|
122
122
|
season: TournamentSeason;
|
|
123
123
|
seasonId: number;
|
|
124
124
|
gamePrice: number;
|
|
125
|
+
seasonTournamentId: number;
|
|
125
126
|
getEmptyLogoClass(): string;
|
|
126
127
|
static toFront(data: any): any;
|
|
127
128
|
static toBack(data: any): any;
|
|
@@ -17,6 +17,9 @@ export declare class VolleyballStatistic extends BaseModel implements BaseStatis
|
|
|
17
17
|
winLose: WinLoseType;
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
|
+
teamScoreSum: number;
|
|
21
|
+
teamMissedSum: number;
|
|
22
|
+
tournamentPoints: number;
|
|
20
23
|
newbie: boolean;
|
|
21
24
|
rank: number;
|
|
22
25
|
serveHits: number;
|
|
@@ -18,6 +18,9 @@ export declare class WaterpoloStatistic extends BaseModel implements BaseStatist
|
|
|
18
18
|
gamesCount: number;
|
|
19
19
|
wonGamesCount: number;
|
|
20
20
|
loseGamesCount: number;
|
|
21
|
+
teamScoreSum: number;
|
|
22
|
+
teamMissedSum: number;
|
|
23
|
+
tournamentPoints: number;
|
|
21
24
|
points: number;
|
|
22
25
|
ppShots: number;
|
|
23
26
|
ppShotMisses: number;
|