@mtgame/core 0.2.54 → 0.2.56
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/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +6 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +7 -1
- package/fesm2015/mtgame-core.js +6 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export interface TournamentGamesFilters {
|
|
|
43
43
|
leaguePlayerId?: number;
|
|
44
44
|
userId?: number;
|
|
45
45
|
query?: string;
|
|
46
|
+
date_from?: string;
|
|
47
|
+
date_to?: string;
|
|
46
48
|
}
|
|
47
49
|
export declare type StatisticGroupByTypes = 'team' | 'user' | 'team_user' | 'tournament_team' | 'league_player' | 'tournament_team_user' | 'month' | 'win_loses';
|
|
48
50
|
export interface StatisticFilters {
|
|
@@ -7896,6 +7896,12 @@
|
|
|
7896
7896
|
if (filters.query) {
|
|
7897
7897
|
params = params.set('query', filters.query);
|
|
7898
7898
|
}
|
|
7899
|
+
if (filters.date_from) {
|
|
7900
|
+
params = params.set('date_from', filters.date_from);
|
|
7901
|
+
}
|
|
7902
|
+
if (filters.date_to) {
|
|
7903
|
+
params = params.set('date_from', filters.date_to);
|
|
7904
|
+
}
|
|
7899
7905
|
if (filters.isPlayoff !== undefined && filters.isPlayoff !== null) {
|
|
7900
7906
|
params = params.set('is_playoff', filters.isPlayoff ? '1' : '0');
|
|
7901
7907
|
}
|