@mtgame/core 0.2.57 → 0.2.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/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +7 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +7 -1
- package/fesm2015/mtgame-core.js +5 -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
|
@@ -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;
|
|
@@ -7839,6 +7839,13 @@
|
|
|
7839
7839
|
});
|
|
7840
7840
|
});
|
|
7841
7841
|
};
|
|
7842
|
+
TournamentApi.prototype.getTournamentTeamUsersLimitation = function (tournamentTeamId) {
|
|
7843
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7844
|
+
return __generator(this, function (_a) {
|
|
7845
|
+
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()];
|
|
7846
|
+
});
|
|
7847
|
+
});
|
|
7848
|
+
};
|
|
7842
7849
|
return TournamentApi;
|
|
7843
7850
|
}());
|
|
7844
7851
|
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" });
|