@mtgame/core 0.0.9 → 0.0.10
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/hockey-game-api.d.ts +17 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +565 -47
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +2 -2
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/hockey-game-api.js +54 -0
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +18 -1
- package/esm2015/localization/hockey-game-log-types.js +23 -0
- package/esm2015/localization/overtime-types.js +7 -3
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/models/base-statistic.js +3 -0
- package/esm2015/models/basketball-game-config.js +2 -8
- package/esm2015/models/basketball-statistic.js +4 -3
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/hockey-game-config.js +34 -0
- package/esm2015/models/hockey-game-log.js +87 -0
- package/esm2015/models/hockey-game-statistic.js +76 -0
- package/esm2015/models/hockey-game-team-statistic.js +27 -0
- package/esm2015/models/hockey-profile.js +41 -0
- package/esm2015/models/hockey-statistic.js +71 -0
- package/esm2015/models/public-api.js +9 -2
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/tournament.js +12 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/volleyball-statistic.js +4 -3
- package/esm5/api/hockey-game-api.js +65 -0
- package/esm5/api/public-api.js +2 -1
- package/esm5/api/tournament-api.js +32 -1
- package/esm5/localization/hockey-game-log-types.js +24 -0
- package/esm5/localization/overtime-types.js +6 -2
- package/esm5/localization/public-api.js +2 -1
- package/esm5/models/base-statistic.js +7 -0
- package/esm5/models/basketball-game-config.js +2 -8
- package/esm5/models/basketball-statistic.js +4 -3
- package/esm5/models/game.js +4 -1
- package/esm5/models/hockey-game-config.js +39 -0
- package/esm5/models/hockey-game-log.js +94 -0
- package/esm5/models/hockey-game-statistic.js +113 -0
- package/esm5/models/hockey-game-team-statistic.js +32 -0
- package/esm5/models/hockey-profile.js +46 -0
- package/esm5/models/hockey-statistic.js +76 -0
- package/esm5/models/public-api.js +9 -2
- package/esm5/models/sport.js +13 -1
- package/esm5/models/tournament.js +12 -1
- package/esm5/models/user.js +4 -1
- package/esm5/models/volleyball-statistic.js +4 -3
- package/fesm2015/mtgame-core.js +426 -10
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +557 -48
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/hockey-game-log-types.d.ts +22 -0
- package/localization/overtime-types.d.ts +5 -1
- package/localization/public-api.d.ts +1 -0
- package/models/base-statistic.d.ts +17 -0
- package/models/basketball-game-config.d.ts +1 -6
- package/models/basketball-statistic.d.ts +2 -2
- package/models/game.d.ts +2 -0
- package/models/hockey-game-config.d.ts +15 -0
- package/models/hockey-game-log.d.ts +52 -0
- package/models/hockey-game-statistic.d.ts +43 -0
- package/models/hockey-game-team-statistic.d.ts +8 -0
- package/models/hockey-profile.d.ts +18 -0
- package/models/hockey-statistic.d.ts +47 -0
- package/models/public-api.d.ts +8 -1
- package/models/sport.d.ts +7 -1
- package/models/tournament.d.ts +10 -1
- package/models/user.d.ts +2 -0
- package/models/volleyball-statistic.d.ts +2 -17
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Game } from '../models/game';
|
|
3
|
+
import { GameUser } from '../models/game-user';
|
|
4
|
+
import { ConfigService } from '../services/config.service';
|
|
5
|
+
import { HockeyGameLog } from '../models/hockey-game-log';
|
|
6
|
+
import { HockeyGameStatistic } from '../models/hockey-game-statistic';
|
|
7
|
+
import { HockeyGameTeamStatistic } from '../models/hockey-game-team-statistic';
|
|
8
|
+
export declare class HockeyGameApi {
|
|
9
|
+
private httpClient;
|
|
10
|
+
private configService;
|
|
11
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
|
+
getById(gameId: number): Promise<Game>;
|
|
13
|
+
getUsers(gameId: number): Promise<GameUser[]>;
|
|
14
|
+
getTeamStatistic(gameId: number): Promise<HockeyGameTeamStatistic>;
|
|
15
|
+
getUserStatistic(gameId: number): Promise<HockeyGameStatistic[]>;
|
|
16
|
+
getLogs(gameId: number): Promise<HockeyGameLog[]>;
|
|
17
|
+
}
|
package/api/public-api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { BasketballGameApi } from './basketball-game-api';
|
|
2
2
|
export * from './feedback-api';
|
|
3
3
|
export * from './file-api';
|
|
4
|
+
export * from './hockey-game-api';
|
|
4
5
|
export { LeagueApi } from './league-api';
|
|
5
6
|
export * from './league-news-api';
|
|
6
7
|
export { MediaApi, GameMediaFilters } from './media-api';
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { TournamentTeamUser } from '../models/tournament-team-user';
|
|
|
13
13
|
import { TournamentStageTeam } from '../models/tournament-stage-team';
|
|
14
14
|
import { TournamentEvent, TournamentEventTypes } from '../models/tournament-event';
|
|
15
15
|
import { ConfigService } from '../services/config.service';
|
|
16
|
+
import { HockeyStatistic } from '../models/hockey-statistic';
|
|
16
17
|
export interface TournamentGamesFilters {
|
|
17
18
|
tournamentStageId?: number;
|
|
18
19
|
tournamentTour?: number;
|
|
@@ -61,4 +62,5 @@ export declare class TournamentApi {
|
|
|
61
62
|
getUserGames(tournamentUserId: number): Promise<Game[]>;
|
|
62
63
|
getBasketballStatistic(filters?: StatisticFilters): Promise<BasketballStatistic[]>;
|
|
63
64
|
getVolleyballStatistic(filters?: StatisticFilters): Promise<VolleyballStatistic[]>;
|
|
65
|
+
getHockeyStatistic(filters?: StatisticFilters): Promise<HockeyStatistic[]>;
|
|
64
66
|
}
|