@mtgame/core 0.2.57 → 0.2.59
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 +9 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +7 -1
- package/esm2015/models/hockey-game-config.js +2 -1
- package/esm2015/models/tournament.js +2 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/hockey-game-config.d.ts +1 -0
- package/models/tournament.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { WaterpoloStatistic } from '../models/waterpolo-statistic';
|
|
|
24
24
|
import { TournamentRound } from '../models/tournament-round';
|
|
25
25
|
import { TournamentDivision } from '../models/tournament-division';
|
|
26
26
|
import { UserGender } from '../models/user';
|
|
27
|
+
import { GameUserLimitations } from '../models/game-user-limitation';
|
|
27
28
|
export interface TournamentGamesFilters {
|
|
28
29
|
tournamentIds?: number[];
|
|
29
30
|
tournamentSeasonId?: number;
|
|
@@ -153,6 +154,7 @@ export declare class TournamentApi {
|
|
|
153
154
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
154
155
|
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|
|
155
156
|
getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
|
|
157
|
+
getTournamentTeamUsersLimitation(tournamentTeamId: number): Promise<GameUserLimitations[]>;
|
|
156
158
|
}
|
|
157
159
|
export declare function applyGamesFilters(filters: TournamentGamesFilters, params: HttpParams): HttpParams;
|
|
158
160
|
export declare function applyStatisticFilters(filters: StatisticFilters, params: HttpParams): HttpParams;
|
|
@@ -1723,6 +1723,7 @@
|
|
|
1723
1723
|
major_penalty_time: 'majorPenaltyTime',
|
|
1724
1724
|
misconduct_penalty_time: 'misconductPenaltyTime',
|
|
1725
1725
|
game_misconduct_penalty_time: 'gameMisconductPenaltyTime',
|
|
1726
|
+
match_penalty_time: 'matchPenaltyTime',
|
|
1726
1727
|
timer_type: 'timerType',
|
|
1727
1728
|
hide_on_league_main_page: 'hideOnLeagueMainPage',
|
|
1728
1729
|
},
|
|
@@ -2078,6 +2079,7 @@
|
|
|
2078
2079
|
major_penalty_time: 'majorPenaltyTime',
|
|
2079
2080
|
misconduct_penalty_time: 'misconductPenaltyTime',
|
|
2080
2081
|
game_misconduct_penalty_time: 'gameMisconductPenaltyTime',
|
|
2082
|
+
match_penalty_time: 'matchPenaltyTime',
|
|
2081
2083
|
},
|
|
2082
2084
|
relation: {
|
|
2083
2085
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -7839,6 +7841,13 @@
|
|
|
7839
7841
|
});
|
|
7840
7842
|
});
|
|
7841
7843
|
};
|
|
7844
|
+
TournamentApi.prototype.getTournamentTeamUsersLimitation = function (tournamentTeamId) {
|
|
7845
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7846
|
+
return __generator(this, function (_a) {
|
|
7847
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users_limitation/").pipe(operators.map(function (result) { return exports.GameUserLimitations.toFront(result); })).toPromise()];
|
|
7848
|
+
});
|
|
7849
|
+
});
|
|
7850
|
+
};
|
|
7842
7851
|
return TournamentApi;
|
|
7843
7852
|
}());
|
|
7844
7853
|
TournamentApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TournamentApi_Factory() { return new TournamentApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: TournamentApi, providedIn: "root" });
|