@mtgame/core 0.2.65 → 0.2.67
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 +7 -0
- package/bundles/mtgame-core.umd.js +14 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +17 -2
- package/esm2015/models/handball-game-config.js +2 -1
- package/fesm2015/mtgame-core.js +14 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/handball-game-config.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ import { GameHockeyPosition } from '../models/hockey-profile';
|
|
|
29
29
|
import { GameFootballPosition } from '../models/football-profile';
|
|
30
30
|
import { GameHandballPosition } from '../models/handball-profile';
|
|
31
31
|
import { GameWaterpoloPosition } from '../models/waterpolo-profile';
|
|
32
|
+
import { GameBasketballPosition } from '../models/basketball-profile';
|
|
33
|
+
import { GameVolleyballPosition } from '../models/volleyball-profile';
|
|
34
|
+
import { GameRugbyPosition } from '../models/rugby-profile';
|
|
32
35
|
export interface TournamentGamesFilters {
|
|
33
36
|
tournamentIds?: number[];
|
|
34
37
|
tournamentSeasonId?: number;
|
|
@@ -57,6 +60,7 @@ export interface StatisticFilters {
|
|
|
57
60
|
tournament_id?: number;
|
|
58
61
|
tournament_ids?: number[];
|
|
59
62
|
tournament_season_id?: number;
|
|
63
|
+
tournament_season_ids?: number[];
|
|
60
64
|
tournament_team_id?: number;
|
|
61
65
|
league_player_id?: number;
|
|
62
66
|
tournament_team_user_id?: number;
|
|
@@ -76,10 +80,13 @@ export interface StatisticFilters {
|
|
|
76
80
|
date_to?: string;
|
|
77
81
|
query?: string;
|
|
78
82
|
gender?: UserGender;
|
|
83
|
+
basketball_position?: GameBasketballPosition;
|
|
84
|
+
volleyball_position?: GameVolleyballPosition;
|
|
79
85
|
hockey_position?: GameHockeyPosition;
|
|
80
86
|
football_position?: GameFootballPosition;
|
|
81
87
|
handball_position?: GameHandballPosition;
|
|
82
88
|
waterpolo_position?: GameWaterpoloPosition;
|
|
89
|
+
rugby_position?: GameRugbyPosition;
|
|
83
90
|
per_game?: boolean;
|
|
84
91
|
group_by: StatisticGroupByTypes;
|
|
85
92
|
order_by?: string;
|
|
@@ -2164,6 +2164,7 @@
|
|
|
2164
2164
|
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
2165
2165
|
timeout_time: 'timeoutTime',
|
|
2166
2166
|
game_time_type: 'gameTimeType',
|
|
2167
|
+
substitute_manage_enabled: 'substituteManageEnabled',
|
|
2167
2168
|
},
|
|
2168
2169
|
relation: {
|
|
2169
2170
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -7943,7 +7944,13 @@
|
|
|
7943
7944
|
for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7944
7945
|
var key = _c.value;
|
|
7945
7946
|
if (filters[key]) {
|
|
7946
|
-
if (key === '
|
|
7947
|
+
if (key === 'basketball_position') {
|
|
7948
|
+
params = params.set(key, exports.GameBasketballPosition[filters[key]]);
|
|
7949
|
+
}
|
|
7950
|
+
else if (key === 'volleyball_position') {
|
|
7951
|
+
params = params.set(key, exports.GameVolleyballPosition[filters[key]]);
|
|
7952
|
+
}
|
|
7953
|
+
else if (key === 'hockey_position') {
|
|
7947
7954
|
params = params.set(key, exports.GameHockeyPosition[filters[key]]);
|
|
7948
7955
|
}
|
|
7949
7956
|
else if (key === 'football_position') {
|
|
@@ -7955,6 +7962,9 @@
|
|
|
7955
7962
|
else if (key === 'waterpolo_position') {
|
|
7956
7963
|
params = params.set(key, exports.GameWaterpoloPosition[filters[key]]);
|
|
7957
7964
|
}
|
|
7965
|
+
else if (key === 'rugby_position') {
|
|
7966
|
+
params = params.set(key, exports.GameRugbyPosition[filters[key]]);
|
|
7967
|
+
}
|
|
7958
7968
|
else {
|
|
7959
7969
|
params = params.set(key, filters[key]);
|
|
7960
7970
|
}
|
|
@@ -7974,6 +7984,9 @@
|
|
|
7974
7984
|
if (filters.tournament_ids) {
|
|
7975
7985
|
params = params.set('tournament_ids', filters.tournament_ids.join(','));
|
|
7976
7986
|
}
|
|
7987
|
+
if (filters.tournament_season_ids) {
|
|
7988
|
+
params = params.set('tournament_season_ids', filters.tournament_season_ids.join(','));
|
|
7989
|
+
}
|
|
7977
7990
|
if (filters.is_playoff !== undefined && filters.is_playoff !== null) {
|
|
7978
7991
|
params = params.set('is_playoff', filters.is_playoff ? '1' : '0');
|
|
7979
7992
|
}
|