@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.
Files changed (46) hide show
  1. package/api/basketball-game-api.d.ts +1 -0
  2. package/api/league-api.d.ts +6 -1
  3. package/api/league-news-api.d.ts +2 -1
  4. package/api/media-api.d.ts +5 -0
  5. package/api/public-api.d.ts +1 -0
  6. package/api/tournament-api.d.ts +4 -1
  7. package/api/tournament-season-api.d.ts +23 -0
  8. package/bundles/mtgame-core.umd.js +302 -7
  9. package/bundles/mtgame-core.umd.js.map +1 -1
  10. package/bundles/mtgame-core.umd.min.js +1 -1
  11. package/bundles/mtgame-core.umd.min.js.map +1 -1
  12. package/esm2015/api/basketball-game-api.js +7 -1
  13. package/esm2015/api/league-api.js +50 -1
  14. package/esm2015/api/league-news-api.js +13 -4
  15. package/esm2015/api/media-api.js +17 -1
  16. package/esm2015/api/public-api.js +2 -1
  17. package/esm2015/api/tournament-api.js +10 -3
  18. package/esm2015/api/tournament-season-api.js +138 -0
  19. package/esm2015/models/game.js +4 -1
  20. package/esm2015/models/public-api.js +2 -1
  21. package/esm2015/models/tournament-season.js +40 -0
  22. package/esm2015/models/tournament-team.js +2 -1
  23. package/esm2015/models/tournament.js +10 -3
  24. package/esm5/api/basketball-game-api.js +9 -1
  25. package/esm5/api/league-api.js +58 -1
  26. package/esm5/api/league-news-api.js +16 -4
  27. package/esm5/api/media-api.js +21 -1
  28. package/esm5/api/public-api.js +2 -1
  29. package/esm5/api/tournament-api.js +11 -4
  30. package/esm5/api/tournament-season-api.js +156 -0
  31. package/esm5/models/game.js +4 -1
  32. package/esm5/models/public-api.js +2 -1
  33. package/esm5/models/tournament-season.js +45 -0
  34. package/esm5/models/tournament-team.js +2 -1
  35. package/esm5/models/tournament.js +10 -3
  36. package/fesm2015/mtgame-core.js +260 -7
  37. package/fesm2015/mtgame-core.js.map +1 -1
  38. package/fesm5/mtgame-core.js +301 -8
  39. package/fesm5/mtgame-core.js.map +1 -1
  40. package/models/game.d.ts +2 -0
  41. package/models/public-api.d.ts +1 -0
  42. package/models/tournament-season.d.ts +18 -0
  43. package/models/tournament-team.d.ts +1 -0
  44. package/models/tournament.d.ts +4 -0
  45. package/mtgame-core.metadata.json +1 -1
  46. 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;
@@ -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
+ }
@@ -10,6 +10,7 @@ export declare class TournamentTeam extends BaseModel {
10
10
  tournament: Tournament;
11
11
  team: Team;
12
12
  group: TournamentGroup;
13
+ finalStanding: number;
13
14
  gamesCount: number;
14
15
  wonGamesCount: number;
15
16
  drawGamesCount: number;
@@ -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;