@mtgame/core 0.0.56 → 0.0.58
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 +2 -2
- package/api/football-game-api.d.ts +2 -2
- package/api/hockey-game-api.d.ts +2 -2
- package/api/public-api.d.ts +2 -0
- package/api/public-team-api.d.ts +11 -0
- package/api/public-user-api.d.ts +13 -0
- package/api/tournament-api.d.ts +8 -1
- package/api/volleyball-game-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +1175 -1118
- 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 +1 -1
- package/esm2015/api/football-game-api.js +1 -1
- package/esm2015/api/hockey-game-api.js +1 -1
- package/esm2015/api/league-api.js +4 -24
- package/esm2015/api/public-api.js +3 -1
- package/esm2015/api/public-team-api.js +33 -0
- package/esm2015/api/public-user-api.js +38 -0
- package/esm2015/api/tournament-api.js +55 -23
- package/esm2015/api/tournament-season-api.js +3 -23
- package/esm2015/api/volleyball-game-api.js +10 -2
- package/esm2015/models/tournament.js +2 -1
- package/esm5/api/basketball-game-api.js +1 -1
- package/esm5/api/football-game-api.js +1 -1
- package/esm5/api/hockey-game-api.js +1 -1
- package/esm5/api/league-api.js +5 -25
- package/esm5/api/public-api.js +3 -1
- package/esm5/api/public-team-api.js +34 -0
- package/esm5/api/public-user-api.js +39 -0
- package/esm5/api/tournament-api.js +60 -24
- package/esm5/api/tournament-season-api.js +4 -24
- package/esm5/api/volleyball-game-api.js +12 -2
- package/esm5/models/tournament.js +2 -1
- package/fesm2015/mtgame-core.js +1648 -1601
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +1199 -1144
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/tournament.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,6 @@ export declare class BasketballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<BasketballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, fileType: 'xlsx' | '
|
|
17
|
-
downloadFibaProtocol(gameId: number, fileType: 'xlsx' | '
|
|
16
|
+
downloadProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadFibaProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -13,6 +13,6 @@ export declare class FootballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<FootballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<FootballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<FootballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
package/api/hockey-game-api.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare class HockeyGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<HockeyGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<HockeyGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<HockeyGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
package/api/public-api.d.ts
CHANGED
|
@@ -19,3 +19,5 @@ export * from './tournament-season-api';
|
|
|
19
19
|
export { TournamentStageApi } from './tournament-stage-api';
|
|
20
20
|
export * from './user-api';
|
|
21
21
|
export { VolleyballGameApi } from './volleyball-game-api';
|
|
22
|
+
export * from './public-team-api';
|
|
23
|
+
export * from './public-user-api';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ConfigService } from '../services/config.service';
|
|
3
|
+
import { Team } from '../models/team';
|
|
4
|
+
import { TournamentTeam } from '../models/tournament-team';
|
|
5
|
+
export declare class PublicTeamApi {
|
|
6
|
+
private httpClient;
|
|
7
|
+
private configService;
|
|
8
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
9
|
+
getById(teamId: number): Promise<Team>;
|
|
10
|
+
getTournamentTeams(teamId: number, leagueId: number): Promise<TournamentTeam[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ConfigService } from '../services/config.service';
|
|
3
|
+
import { User } from '../models/user';
|
|
4
|
+
import { Tournament } from '../models/tournament';
|
|
5
|
+
import { TournamentTeamUser } from '../models/tournament-team-user';
|
|
6
|
+
export declare class PublicUserApi {
|
|
7
|
+
private httpClient;
|
|
8
|
+
private configService;
|
|
9
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
10
|
+
getById(userId: number): Promise<User>;
|
|
11
|
+
getTournaments(userId: number, leagueId: number): Promise<Tournament[]>;
|
|
12
|
+
getTournamentUser(userId: number, seasonId: number): Promise<TournamentTeamUser>;
|
|
13
|
+
}
|
package/api/tournament-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
1
|
+
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
2
|
import { Tournament } from '../models/tournament';
|
|
3
3
|
import { TournamentNews } from '../models/tournament-news';
|
|
4
4
|
import { Game, GameStatuses } from '../models/game';
|
|
@@ -17,6 +17,8 @@ import { HockeyStatistic } from '../models/hockey-statistic';
|
|
|
17
17
|
import { FootballStatistic } from '../models/football-statistic';
|
|
18
18
|
import { LeagueUserPermissions } from '../models/league-user';
|
|
19
19
|
export interface TournamentGamesFilters {
|
|
20
|
+
tournamentIds?: number[];
|
|
21
|
+
tournamentSeasonId?: number;
|
|
20
22
|
tournamentStageId?: number;
|
|
21
23
|
tournamentTour?: number;
|
|
22
24
|
teamId?: number;
|
|
@@ -25,10 +27,12 @@ export interface TournamentGamesFilters {
|
|
|
25
27
|
status?: GameStatuses;
|
|
26
28
|
statuses?: GameStatuses[];
|
|
27
29
|
tournamentCourtId?: number;
|
|
30
|
+
userId?: number;
|
|
28
31
|
}
|
|
29
32
|
export declare type StatisticGroupByTypes = 'team' | 'user' | 'team_user' | 'tournament_team' | 'tournament_team_user' | 'month' | 'win_loses';
|
|
30
33
|
export interface StatisticFilters {
|
|
31
34
|
tournament_id?: number;
|
|
35
|
+
tournament_ids?: number[];
|
|
32
36
|
tournament_season_id?: number;
|
|
33
37
|
tournament_team_id?: number;
|
|
34
38
|
tournament_team_user_id?: number;
|
|
@@ -73,4 +77,7 @@ export declare class TournamentApi {
|
|
|
73
77
|
getFootballStatistic(filters?: StatisticFilters): Promise<FootballStatistic[]>;
|
|
74
78
|
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
75
79
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
80
|
+
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|
|
81
|
+
getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
|
|
76
82
|
}
|
|
83
|
+
export declare function applyGamesFilters(filters: TournamentGamesFilters, params: HttpParams): HttpParams;
|
|
@@ -13,4 +13,5 @@ export declare class VolleyballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<VolleyballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<VolleyballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<VolleyballGameLog[]>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
16
17
|
}
|