@mtgame/core 0.0.36 → 0.0.38
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 +5 -1
- package/api/media-api.d.ts +4 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-season-api.d.ts +21 -0
- package/bundles/mtgame-core.umd.js +229 -2
- 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 +35 -1
- package/esm2015/api/media-api.js +14 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-season-api.js +123 -0
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/hockey-game-log.js +2 -1
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/tournament-season.js +32 -0
- package/esm2015/models/tournament.js +6 -3
- package/esm5/api/basketball-game-api.js +9 -1
- package/esm5/api/league-api.js +40 -1
- package/esm5/api/media-api.js +18 -1
- package/esm5/api/public-api.js +2 -1
- package/esm5/api/tournament-season-api.js +139 -0
- package/esm5/models/game.js +4 -1
- package/esm5/models/hockey-game-log.js +2 -1
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/tournament-season.js +37 -0
- package/esm5/models/tournament.js +6 -3
- package/fesm2015/mtgame-core.js +196 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +228 -3
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +2 -0
- package/models/hockey-game-log.d.ts +1 -0
- package/models/public-api.d.ts +1 -0
- package/models/tournament-season.d.ts +12 -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;
|
|
@@ -55,6 +55,7 @@ export declare class HockeyGameLog extends BaseModel implements GameLogBase {
|
|
|
55
55
|
isGoalie: boolean;
|
|
56
56
|
penaltyType: PenaltyType;
|
|
57
57
|
_penalizedGameUserId: number;
|
|
58
|
+
mutualPenalty: boolean;
|
|
58
59
|
get penalizedGameUserId(): number;
|
|
59
60
|
set penalizedGameUserId(value: number);
|
|
60
61
|
compare(model: HockeyGameLog): 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,12 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
export declare class TournamentSeason extends BaseModel {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
alias: string;
|
|
7
|
+
logo: File;
|
|
8
|
+
cover: File;
|
|
9
|
+
previewImage: File;
|
|
10
|
+
static toFront(data: any): any;
|
|
11
|
+
static toBack(data: any): any;
|
|
12
|
+
}
|