@mtgame/core 0.1.1 → 0.1.3
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/public-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +58 -28
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/models/base-statistic.js +1 -3
- package/esm2015/models/basketball-game-team-statistic.js +1 -1
- package/esm2015/models/basketball-statistic.js +4 -4
- package/esm2015/models/football-game-team-statistic.js +1 -1
- package/esm2015/models/football-statistic.js +5 -5
- package/esm2015/models/game-team-statistic-base.js +1 -0
- package/esm2015/models/handball-game-team-statistic.js +1 -1
- package/esm2015/models/handball-statistic.js +5 -5
- package/esm2015/models/hockey-game-team-statistic.js +1 -1
- package/esm2015/models/hockey-statistic.js +4 -4
- package/esm2015/models/league-player.js +44 -0
- package/esm2015/models/public-api.js +2 -2
- package/esm2015/models/tournament-team-user.js +4 -18
- package/esm2015/models/volleyball-game-team-statistic.js +1 -1
- package/esm2015/models/volleyball-statistic.js +4 -4
- package/esm2015/mtgame-core.js +1 -2
- package/esm5/api/public-api.js +2 -1
- package/esm5/models/base-statistic.js +1 -7
- package/esm5/models/basketball-game-team-statistic.js +1 -1
- package/esm5/models/basketball-statistic.js +4 -4
- package/esm5/models/football-game-team-statistic.js +1 -1
- package/esm5/models/football-statistic.js +5 -5
- package/esm5/models/game-team-statistic-base.js +1 -0
- package/esm5/models/handball-game-team-statistic.js +1 -1
- package/esm5/models/handball-statistic.js +5 -5
- package/esm5/models/hockey-game-team-statistic.js +1 -1
- package/esm5/models/hockey-statistic.js +4 -4
- package/esm5/models/league-player.js +61 -0
- package/esm5/models/public-api.js +2 -2
- package/esm5/models/tournament-team-user.js +4 -30
- package/esm5/models/volleyball-game-team-statistic.js +1 -1
- package/esm5/models/volleyball-statistic.js +4 -4
- package/esm5/mtgame-core.js +1 -2
- package/fesm2015/mtgame-core.js +47 -19
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +57 -27
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/base-statistic.d.ts +1 -1
- package/models/basketball-game-team-statistic.d.ts +2 -1
- package/models/basketball-statistic.d.ts +3 -1
- package/models/football-game-team-statistic.d.ts +2 -1
- package/models/football-statistic.d.ts +3 -1
- package/models/game-team-statistic-base.d.ts +5 -0
- package/models/handball-game-team-statistic.d.ts +2 -1
- package/models/handball-statistic.d.ts +3 -1
- package/models/hockey-game-team-statistic.d.ts +2 -1
- package/models/hockey-statistic.d.ts +3 -1
- package/models/league-player.d.ts +18 -0
- package/models/public-api.d.ts +3 -0
- package/models/tournament-team-user.d.ts +2 -10
- package/models/volleyball-game-team-statistic.d.ts +2 -1
- package/models/volleyball-statistic.d.ts +19 -2
- package/mtgame-core.d.ts +0 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { TeamUser } from './team-user';
|
|
|
4
4
|
import { User } from './user';
|
|
5
5
|
import { TournamentTeam } from './tournament-team';
|
|
6
6
|
export declare type WinLoseType = 'win' | 'lose' | 'draw';
|
|
7
|
-
export
|
|
7
|
+
export interface BaseStatistic {
|
|
8
8
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
9
|
team: Team;
|
|
10
10
|
teamUser: TeamUser;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { BasketballStatistic } from './basketball-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class BasketballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: BasketballStatistic;
|
|
5
6
|
competitorTeam: BasketballStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
1
2
|
import { TournamentTeamUser } from './tournament-team-user';
|
|
2
3
|
import { Team } from './team';
|
|
3
4
|
import { TeamUser } from './team-user';
|
|
4
5
|
import { User } from './user';
|
|
5
6
|
import { TournamentTeam } from './tournament-team';
|
|
6
7
|
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
7
|
-
export declare class BasketballStatistic extends BaseStatistic {
|
|
8
|
+
export declare class BasketballStatistic extends BaseModel implements BaseStatistic {
|
|
8
9
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
10
|
team: Team;
|
|
10
11
|
teamUser: TeamUser;
|
|
@@ -39,6 +40,7 @@ export declare class BasketballStatistic extends BaseStatistic {
|
|
|
39
40
|
unsportsmanlikeFouls: number;
|
|
40
41
|
gameTime: number;
|
|
41
42
|
newbie: boolean;
|
|
43
|
+
rank: number;
|
|
42
44
|
get totalFouls(): number;
|
|
43
45
|
get gameMinutes(): number;
|
|
44
46
|
static toFront(data: any): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { FootballStatistic } from './football-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class FootballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: FootballStatistic;
|
|
5
6
|
competitorTeam: FootballStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
1
2
|
import { TournamentTeamUser } from './tournament-team-user';
|
|
2
3
|
import { Team } from './team';
|
|
3
4
|
import { TeamUser } from './team-user';
|
|
4
5
|
import { User } from './user';
|
|
5
6
|
import { TournamentTeam } from './tournament-team';
|
|
6
7
|
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
7
|
-
export declare class FootballStatistic extends BaseStatistic {
|
|
8
|
+
export declare class FootballStatistic extends BaseModel implements BaseStatistic {
|
|
8
9
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
10
|
team: Team;
|
|
10
11
|
teamUser: TeamUser;
|
|
@@ -58,6 +59,7 @@ export declare class FootballStatistic extends BaseStatistic {
|
|
|
58
59
|
corners: number;
|
|
59
60
|
freeKicks: number;
|
|
60
61
|
newbie: boolean;
|
|
62
|
+
rank: number;
|
|
61
63
|
get userMinutes(): string;
|
|
62
64
|
static toFront(data: any): any;
|
|
63
65
|
static toBack(data: any): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { HandballStatistic } from './handball-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class HandballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: HandballStatistic;
|
|
5
6
|
competitorTeam: HandballStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
1
2
|
import { TournamentTeamUser } from './tournament-team-user';
|
|
2
3
|
import { Team } from './team';
|
|
3
4
|
import { TeamUser } from './team-user';
|
|
4
5
|
import { User } from './user';
|
|
5
6
|
import { TournamentTeam } from './tournament-team';
|
|
6
7
|
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
7
|
-
export declare class HandballStatistic extends BaseStatistic {
|
|
8
|
+
export declare class HandballStatistic extends BaseModel implements BaseStatistic {
|
|
8
9
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
10
|
team: Team;
|
|
10
11
|
teamUser: TeamUser;
|
|
@@ -49,6 +50,7 @@ export declare class HandballStatistic extends BaseStatistic {
|
|
|
49
50
|
totalSaves: number;
|
|
50
51
|
totalGoalsAgainst: number;
|
|
51
52
|
newbie: boolean;
|
|
53
|
+
rank: number;
|
|
52
54
|
get userMinutes(): string;
|
|
53
55
|
static toFront(data: any): any;
|
|
54
56
|
static toBack(data: any): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { HockeyStatistic } from './hockey-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class HockeyGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: HockeyStatistic;
|
|
5
6
|
competitorTeam: HockeyStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
1
2
|
import { TournamentTeamUser } from './tournament-team-user';
|
|
2
3
|
import { Team } from './team';
|
|
3
4
|
import { TeamUser } from './team-user';
|
|
4
5
|
import { User } from './user';
|
|
5
6
|
import { TournamentTeam } from './tournament-team';
|
|
6
7
|
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
7
|
-
export declare class HockeyStatistic extends BaseStatistic {
|
|
8
|
+
export declare class HockeyStatistic extends BaseModel implements BaseStatistic {
|
|
8
9
|
tournamentTeamUser: TournamentTeamUser;
|
|
9
10
|
team: Team;
|
|
10
11
|
teamUser: TeamUser;
|
|
@@ -59,6 +60,7 @@ export declare class HockeyStatistic extends BaseStatistic {
|
|
|
59
60
|
gameTime: number;
|
|
60
61
|
plusMinus: number;
|
|
61
62
|
newbie: boolean;
|
|
63
|
+
rank: number;
|
|
62
64
|
get assists(): number;
|
|
63
65
|
get userMinutes(): string;
|
|
64
66
|
get gamesWonPercent(): number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
export declare class LeaguePlayer extends BaseModel {
|
|
4
|
+
id: number;
|
|
5
|
+
userId: number;
|
|
6
|
+
leagueId: number;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
middleName: string;
|
|
10
|
+
photo: File;
|
|
11
|
+
hasChanges: boolean;
|
|
12
|
+
rating: number;
|
|
13
|
+
get fullName(): string;
|
|
14
|
+
get shortName(): string;
|
|
15
|
+
get initials(): string;
|
|
16
|
+
static toFront(data: any): any;
|
|
17
|
+
static toBack(data: any): any;
|
|
18
|
+
}
|
package/models/public-api.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './city';
|
|
|
9
9
|
export * from './feedback';
|
|
10
10
|
export * from './file';
|
|
11
11
|
export * from './game';
|
|
12
|
+
export * from './game-statistic-base';
|
|
13
|
+
export * from './game-team-statistic-base';
|
|
12
14
|
export * from './game-invite';
|
|
13
15
|
export * from './game-log-base';
|
|
14
16
|
export * from './game-timeline-stages';
|
|
@@ -37,6 +39,7 @@ export * from './league-news';
|
|
|
37
39
|
export * from './league-partner';
|
|
38
40
|
export * from './league-banner';
|
|
39
41
|
export * from './league-playlist';
|
|
42
|
+
export * from './league-player';
|
|
40
43
|
export * from './media-item';
|
|
41
44
|
export * from './notification';
|
|
42
45
|
export * from './notification-settings';
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { TournamentTeam } from './tournament-team';
|
|
3
3
|
import { TeamUser } from './team-user';
|
|
4
|
-
import { File } from './file';
|
|
5
4
|
import { TournamentDisqualification } from './tournament-disqualification';
|
|
5
|
+
import { LeaguePlayer } from './league-player';
|
|
6
6
|
export declare class TournamentTeamUser extends BaseModel {
|
|
7
7
|
id: number;
|
|
8
8
|
tournamentTeam: TournamentTeam;
|
|
9
9
|
teamUser: TeamUser;
|
|
10
10
|
disqualified: boolean;
|
|
11
|
-
firstName: string;
|
|
12
|
-
lastName: string;
|
|
13
|
-
middleName: string;
|
|
14
|
-
photo: File;
|
|
15
11
|
disqualification: TournamentDisqualification;
|
|
16
|
-
|
|
17
|
-
rating: number;
|
|
18
|
-
get fullName(): string;
|
|
19
|
-
get shortName(): string;
|
|
20
|
-
get initials(): string;
|
|
12
|
+
leaguePlayer: LeaguePlayer;
|
|
21
13
|
static toFront(data: any): any;
|
|
22
14
|
static toBack(data: any): any;
|
|
23
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './util';
|
|
2
2
|
import { VolleyballStatistic } from './volleyball-statistic';
|
|
3
|
-
|
|
3
|
+
import { GameTeamStatisticBase } from './game-team-statistic-base';
|
|
4
|
+
export declare class VolleyballGameTeamStatistic extends BaseModel implements GameTeamStatisticBase {
|
|
4
5
|
team: VolleyballStatistic;
|
|
5
6
|
competitorTeam: VolleyballStatistic;
|
|
6
7
|
static toFront(data: any): any;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { TournamentTeamUser } from './tournament-team-user';
|
|
4
|
+
import { TeamUser } from './team-user';
|
|
5
|
+
import { TournamentTeam } from './tournament-team';
|
|
6
|
+
import { User } from './user';
|
|
7
|
+
import { BaseStatistic, WinLoseType } from './base-statistic';
|
|
8
|
+
export declare class VolleyballStatistic extends BaseModel implements BaseStatistic {
|
|
9
|
+
tournamentTeamUser: TournamentTeamUser;
|
|
10
|
+
team: Team;
|
|
11
|
+
teamUser: TeamUser;
|
|
12
|
+
user: User;
|
|
13
|
+
tournamentTeam: TournamentTeam;
|
|
14
|
+
month: Date;
|
|
15
|
+
winLose: WinLoseType;
|
|
16
|
+
gamesCount: number;
|
|
17
|
+
wonGamesCount: number;
|
|
18
|
+
newbie: boolean;
|
|
19
|
+
rank: number;
|
|
3
20
|
serveHits: number;
|
|
4
21
|
serveFaults: number;
|
|
5
22
|
serveAces: number;
|
package/mtgame-core.d.ts
CHANGED