@mtgame/core 0.0.37 → 0.0.39
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/basketball-game-api.d.ts +1 -0
- package/api/league-api.d.ts +6 -1
- package/api/league-news-api.d.ts +2 -1
- package/api/media-api.d.ts +5 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +4 -1
- package/api/tournament-season-api.d.ts +23 -0
- package/bundles/mtgame-core.umd.js +302 -7
- 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/basketball-game-api.js +7 -1
- package/esm2015/api/league-api.js +50 -1
- package/esm2015/api/league-news-api.js +13 -4
- package/esm2015/api/media-api.js +17 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +10 -3
- package/esm2015/api/tournament-season-api.js +138 -0
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/tournament-season.js +40 -0
- package/esm2015/models/tournament-team.js +2 -1
- package/esm2015/models/tournament.js +10 -3
- package/esm5/api/basketball-game-api.js +9 -1
- package/esm5/api/league-api.js +58 -1
- package/esm5/api/league-news-api.js +16 -4
- package/esm5/api/media-api.js +21 -1
- package/esm5/api/public-api.js +2 -1
- package/esm5/api/tournament-api.js +11 -4
- package/esm5/api/tournament-season-api.js +156 -0
- package/esm5/models/game.js +4 -1
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/tournament-season.js +45 -0
- package/esm5/models/tournament-team.js +2 -1
- package/esm5/models/tournament.js +10 -3
- package/fesm2015/mtgame-core.js +260 -7
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +301 -8
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +2 -0
- package/models/public-api.d.ts +1 -0
- package/models/tournament-season.d.ts +18 -0
- package/models/tournament-team.d.ts +1 -0
- package/models/tournament.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/models/game.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { VolleyballGameConfig } from './volleyball-game-config';
|
|
|
5
5
|
import { LeagueCourt } from './league-court';
|
|
6
6
|
import { MediaItem } from './media-item';
|
|
7
7
|
import { HockeyGameConfig } from './hockey-game-config';
|
|
8
|
+
import { Tournament } from './tournament';
|
|
8
9
|
export declare enum GameStatuses {
|
|
9
10
|
open = 1,
|
|
10
11
|
in_progress = 2,
|
|
@@ -46,6 +47,7 @@ export declare class Game extends BaseModel {
|
|
|
46
47
|
tournamentCourt: LeagueCourt;
|
|
47
48
|
mediaCount: number;
|
|
48
49
|
media: MediaItem[];
|
|
50
|
+
tournament: Tournament;
|
|
49
51
|
get scoreByPeriodList(): {
|
|
50
52
|
period: number;
|
|
51
53
|
teamScore: number;
|
package/models/public-api.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { TournamentGroup } from './tournament-group';
|
|
|
45
45
|
export { TournamentInvite } from './tournament-invite';
|
|
46
46
|
export { TournamentJoinData, TournamentJoinTeam } from './tournament-join-team';
|
|
47
47
|
export { TournamentNews } from './tournament-news';
|
|
48
|
+
export * from './tournament-season';
|
|
48
49
|
export { TournamentStageStatuses, TournamentStage } from './tournament-stage';
|
|
49
50
|
export { TournamentStageTeam } from './tournament-stage-team';
|
|
50
51
|
export { TournamentTeam } from './tournament-team';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
export declare enum TournamentSeasonStatuses {
|
|
4
|
+
open = 0,
|
|
5
|
+
in_progress = 1,
|
|
6
|
+
closed = 2
|
|
7
|
+
}
|
|
8
|
+
export declare class TournamentSeason extends BaseModel {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
logo: File;
|
|
13
|
+
cover: File;
|
|
14
|
+
previewImage: File;
|
|
15
|
+
status: TournamentSeasonStatuses;
|
|
16
|
+
static toFront(data: any): any;
|
|
17
|
+
static toBack(data: any): any;
|
|
18
|
+
}
|
package/models/tournament.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { File } from './file';
|
|
|
4
4
|
import { League } from './league';
|
|
5
5
|
import { Sport } from './sport';
|
|
6
6
|
import { Team } from './team';
|
|
7
|
+
import { TournamentSeason } from './tournament-season';
|
|
7
8
|
export declare enum TournamentTypes {
|
|
8
9
|
group = "group",
|
|
9
10
|
elimination = "elimination",
|
|
@@ -102,6 +103,9 @@ export declare class Tournament extends BaseModel {
|
|
|
102
103
|
closestGameDatetime: string;
|
|
103
104
|
status: TournamentStatuses;
|
|
104
105
|
teamWinner: TournamentTeamWinner;
|
|
106
|
+
teamSecond: TournamentTeamWinner;
|
|
107
|
+
teamThird: TournamentTeamWinner;
|
|
108
|
+
season: TournamentSeason;
|
|
105
109
|
getEmptyLogoClass(): string;
|
|
106
110
|
static toFront(data: any): any;
|
|
107
111
|
static toBack(data: any): any;
|