@mtgame/core 0.0.55 → 0.0.57
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 +4 -5
- package/api/football-game-api.d.ts +4 -5
- package/api/game-base-api.d.ts +10 -0
- package/api/hockey-game-api.d.ts +4 -5
- 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 +4 -5
- package/bundles/mtgame-core.umd.js +1467 -1404
- 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 +4 -8
- package/esm2015/api/football-game-api.js +4 -8
- package/esm2015/api/game-base-api.js +35 -0
- package/esm2015/api/hockey-game-api.js +4 -8
- 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 +4 -8
- package/esm2015/models/game-user.js +2 -1
- package/esm2015/models/tournament.js +2 -1
- package/esm2015/mtgame-core.js +2 -1
- package/esm5/api/basketball-game-api.js +10 -14
- package/esm5/api/football-game-api.js +10 -14
- package/esm5/api/game-base-api.js +40 -0
- package/esm5/api/hockey-game-api.js +10 -14
- 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 +10 -14
- package/esm5/models/game-user.js +2 -1
- package/esm5/models/tournament.js +2 -1
- package/esm5/mtgame-core.js +2 -1
- package/fesm2015/mtgame-core.js +1995 -1946
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +1466 -1406
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game-user.d.ts +1 -0
- package/models/tournament.d.ts +1 -0
- package/mtgame-core.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Game } from '../models/game';
|
|
3
|
-
import { GameUser } from '../models/game-user';
|
|
4
3
|
import { ConfigService } from '../services/config.service';
|
|
5
4
|
import { BasketballGameTeamStatistic } from '../models/basketball-game-team-statistic';
|
|
6
5
|
import { BasketballGameStatistic } from '../models/basketball-game-statistic';
|
|
7
6
|
import { BasketballGameLog } from '../models/basketball-game-log';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { GameBaseApi } from './game-base-api';
|
|
8
|
+
export declare class BasketballGameApi extends GameBaseApi {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected configService: ConfigService;
|
|
11
11
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
12
|
getById(gameId: number): Promise<Game>;
|
|
13
|
-
getUsers(gameId: number): Promise<GameUser[]>;
|
|
14
13
|
getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
|
|
15
14
|
getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
|
|
16
15
|
getLogs(gameId: number): Promise<BasketballGameLog[]>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Game } from '../models/game';
|
|
3
|
-
import { GameUser } from '../models/game-user';
|
|
4
3
|
import { ConfigService } from '../services/config.service';
|
|
5
4
|
import { FootballGameLog } from '../models/football-game-log';
|
|
6
5
|
import { FootballGameStatistic } from '../models/football-game-statistic';
|
|
7
6
|
import { FootballGameTeamStatistic } from '../models/football-game-team-statistic';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { GameBaseApi } from './game-base-api';
|
|
8
|
+
export declare class FootballGameApi extends GameBaseApi {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected configService: ConfigService;
|
|
11
11
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
12
|
getById(gameId: number): Promise<Game>;
|
|
13
|
-
getUsers(gameId: number): Promise<GameUser[]>;
|
|
14
13
|
getTeamStatistic(gameId: number): Promise<FootballGameTeamStatistic>;
|
|
15
14
|
getUserStatistic(gameId: number): Promise<FootballGameStatistic[]>;
|
|
16
15
|
getLogs(gameId: number): Promise<FootballGameLog[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { GameUser } from '../models/game-user';
|
|
3
|
+
import { ConfigService } from '../services/config.service';
|
|
4
|
+
export declare class GameBaseApi {
|
|
5
|
+
protected httpClient: HttpClient;
|
|
6
|
+
protected configService: ConfigService;
|
|
7
|
+
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
8
|
+
getUsers(gameId: number): Promise<GameUser[]>;
|
|
9
|
+
getMvp(gameId: number): Promise<GameUser[]>;
|
|
10
|
+
}
|
package/api/hockey-game-api.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Game } from '../models/game';
|
|
3
|
-
import { GameUser } from '../models/game-user';
|
|
4
3
|
import { ConfigService } from '../services/config.service';
|
|
5
4
|
import { HockeyGameLog } from '../models/hockey-game-log';
|
|
6
5
|
import { HockeyGameStatistic } from '../models/hockey-game-statistic';
|
|
7
6
|
import { HockeyGameTeamStatistic } from '../models/hockey-game-team-statistic';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { GameBaseApi } from './game-base-api';
|
|
8
|
+
export declare class HockeyGameApi extends GameBaseApi {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected configService: ConfigService;
|
|
11
11
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
12
|
getById(gameId: number): Promise<Game>;
|
|
13
|
-
getUsers(gameId: number): Promise<GameUser[]>;
|
|
14
13
|
getTeamStatistic(gameId: number): Promise<HockeyGameTeamStatistic>;
|
|
15
14
|
getUserStatistic(gameId: number): Promise<HockeyGameStatistic[]>;
|
|
16
15
|
getLogs(gameId: number): Promise<HockeyGameLog[]>;
|
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;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Game } from '../models/game';
|
|
3
|
-
import { GameUser } from '../models/game-user';
|
|
4
3
|
import { VolleyballGameTeamStatistic } from '../models/volleyball-game-team-statistic';
|
|
5
4
|
import { VolleyballGameStatistic } from '../models/volleyball-game-statistic';
|
|
6
5
|
import { VolleyballGameLog } from '../models/volleyball-game-log';
|
|
7
6
|
import { ConfigService } from '../services/config.service';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { GameBaseApi } from './game-base-api';
|
|
8
|
+
export declare class VolleyballGameApi extends GameBaseApi {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected configService: ConfigService;
|
|
11
11
|
constructor(httpClient: HttpClient, configService: ConfigService);
|
|
12
12
|
getById(gameId: number): Promise<Game>;
|
|
13
|
-
getUsers(gameId: number): Promise<GameUser[]>;
|
|
14
13
|
getTeamStatistic(gameId: number): Promise<VolleyballGameTeamStatistic>;
|
|
15
14
|
getUserStatistic(gameId: number): Promise<VolleyballGameStatistic[]>;
|
|
16
15
|
getLogs(gameId: number): Promise<VolleyballGameLog[]>;
|