@mtgame/core 0.0.53 → 0.0.55
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/football-game-api.d.ts +19 -0
- package/api/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +734 -45
- 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/football-game-api.js +70 -0
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +18 -1
- package/esm2015/localization/football-game-log-types.js +29 -0
- package/esm2015/localization/overtime-types.js +4 -2
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/user-profile.js +13 -1
- package/esm2015/models/football-game-config.js +34 -0
- package/esm2015/models/football-game-log.js +94 -0
- package/esm2015/models/football-game-statistic.js +129 -0
- package/esm2015/models/football-game-team-statistic.js +27 -0
- package/esm2015/models/football-profile.js +43 -0
- package/esm2015/models/football-statistic.js +92 -0
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/hockey-statistic.js +8 -1
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/team.js +4 -1
- package/esm2015/models/tournament.js +6 -1
- package/esm2015/models/user.js +4 -1
- package/esm5/api/football-game-api.js +85 -0
- package/esm5/api/public-api.js +2 -1
- package/esm5/api/tournament-api.js +32 -1
- package/esm5/localization/football-game-log-types.js +30 -0
- package/esm5/localization/overtime-types.js +3 -1
- package/esm5/localization/public-api.js +2 -1
- package/esm5/localization/user-profile.js +14 -2
- package/esm5/models/football-game-config.js +39 -0
- package/esm5/models/football-game-log.js +101 -0
- package/esm5/models/football-game-statistic.js +206 -0
- package/esm5/models/football-game-team-statistic.js +32 -0
- package/esm5/models/football-profile.js +48 -0
- package/esm5/models/football-statistic.js +101 -0
- package/esm5/models/game.js +4 -1
- package/esm5/models/hockey-statistic.js +12 -1
- package/esm5/models/public-api.js +7 -1
- package/esm5/models/sport.js +13 -1
- package/esm5/models/team.js +4 -1
- package/esm5/models/tournament.js +6 -1
- package/esm5/models/user.js +4 -1
- package/fesm2015/mtgame-core.js +539 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +724 -45
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/football-game-log-types.d.ts +28 -0
- package/localization/overtime-types.d.ts +2 -0
- package/localization/public-api.d.ts +1 -0
- package/localization/user-profile.d.ts +12 -0
- package/models/football-game-config.d.ts +15 -0
- package/models/football-game-log.d.ts +53 -0
- package/models/football-game-statistic.d.ts +55 -0
- package/models/football-game-team-statistic.d.ts +8 -0
- package/models/football-profile.d.ts +20 -0
- package/models/football-statistic.d.ts +64 -0
- package/models/game.d.ts +2 -0
- package/models/hockey-statistic.d.ts +2 -0
- package/models/public-api.d.ts +6 -0
- package/models/sport.d.ts +7 -1
- package/models/tournament.d.ts +3 -1
- package/models/user.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
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 { FootballGameLog } from '../models/football-game-log';
|
|
6
|
+
import { FootballGameStatistic } from '../models/football-game-statistic';
|
|
7
|
+
import { FootballGameTeamStatistic } from '../models/football-game-team-statistic';
|
|
8
|
+
export declare class FootballGameApi {
|
|
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<FootballGameTeamStatistic>;
|
|
15
|
+
getUserStatistic(gameId: number): Promise<FootballGameStatistic[]>;
|
|
16
|
+
getLogs(gameId: number): Promise<FootballGameLog[]>;
|
|
17
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
18
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
19
|
+
}
|
package/api/public-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { BasketballGameApi } from './basketball-game-api';
|
|
|
2
2
|
export * from './feedback-api';
|
|
3
3
|
export * from './file-api';
|
|
4
4
|
export * from './hockey-game-api';
|
|
5
|
+
export * from './football-game-api';
|
|
5
6
|
export { LeagueApi } from './league-api';
|
|
6
7
|
export * from './league-news-api';
|
|
7
8
|
export { MediaApi, GameMediaFilters } from './media-api';
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ 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
16
|
import { HockeyStatistic } from '../models/hockey-statistic';
|
|
17
|
+
import { FootballStatistic } from '../models/football-statistic';
|
|
17
18
|
import { LeagueUserPermissions } from '../models/league-user';
|
|
18
19
|
export interface TournamentGamesFilters {
|
|
19
20
|
tournamentStageId?: number;
|
|
@@ -69,6 +70,7 @@ export declare class TournamentApi {
|
|
|
69
70
|
getBasketballStatistic(filters?: StatisticFilters): Promise<BasketballStatistic[]>;
|
|
70
71
|
getVolleyballStatistic(filters?: StatisticFilters): Promise<VolleyballStatistic[]>;
|
|
71
72
|
getHockeyStatistic(filters?: StatisticFilters): Promise<HockeyStatistic[]>;
|
|
73
|
+
getFootballStatistic(filters?: StatisticFilters): Promise<FootballStatistic[]>;
|
|
72
74
|
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
73
75
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
74
76
|
}
|