@mtgame/core 0.2.61 → 0.2.63
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
CHANGED
|
@@ -150,7 +150,7 @@ export declare class TournamentApi {
|
|
|
150
150
|
getHandballStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<HandballStatistic[]>>;
|
|
151
151
|
getRugbyStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<RugbyStatistic[]>>;
|
|
152
152
|
getWaterpoloStatistic(filters?: StatisticFilters): Promise<PaginatedResponse<WaterpoloStatistic[]>>;
|
|
153
|
-
getTournamentTeamUsers(tournamentTeamId: number): Promise<TournamentTeamUser[]>;
|
|
153
|
+
getTournamentTeamUsers(tournamentTeamId: number, includes?: string[]): Promise<TournamentTeamUser[]>;
|
|
154
154
|
myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
|
|
155
155
|
getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
|
|
156
156
|
getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
|
|
@@ -7817,10 +7817,27 @@
|
|
|
7817
7817
|
});
|
|
7818
7818
|
});
|
|
7819
7819
|
};
|
|
7820
|
-
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId) {
|
|
7820
|
+
TournamentApi.prototype.getTournamentTeamUsers = function (tournamentTeamId, includes) {
|
|
7821
|
+
if (includes === void 0) { includes = []; }
|
|
7821
7822
|
return __awaiter(this, void 0, void 0, function () {
|
|
7822
|
-
|
|
7823
|
-
|
|
7823
|
+
var params, includes_1, includes_1_1, include;
|
|
7824
|
+
var e_7, _a;
|
|
7825
|
+
return __generator(this, function (_b) {
|
|
7826
|
+
params = new i1.HttpParams();
|
|
7827
|
+
try {
|
|
7828
|
+
for (includes_1 = __values(includes), includes_1_1 = includes_1.next(); !includes_1_1.done; includes_1_1 = includes_1.next()) {
|
|
7829
|
+
include = includes_1_1.value;
|
|
7830
|
+
params = params.append('include', include);
|
|
7831
|
+
}
|
|
7832
|
+
}
|
|
7833
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
7834
|
+
finally {
|
|
7835
|
+
try {
|
|
7836
|
+
if (includes_1_1 && !includes_1_1.done && (_a = includes_1.return)) _a.call(includes_1);
|
|
7837
|
+
}
|
|
7838
|
+
finally { if (e_7) throw e_7.error; }
|
|
7839
|
+
}
|
|
7840
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users/", { params: params }).pipe(operators.map(function (result) { return exports.TournamentTeamUser.toFront(result); })).toPromise()];
|
|
7824
7841
|
});
|
|
7825
7842
|
});
|
|
7826
7843
|
};
|
|
@@ -7921,7 +7938,7 @@
|
|
|
7921
7938
|
return params;
|
|
7922
7939
|
}
|
|
7923
7940
|
function applyStatisticFilters(filters, params) {
|
|
7924
|
-
var
|
|
7941
|
+
var e_8, _a;
|
|
7925
7942
|
try {
|
|
7926
7943
|
for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7927
7944
|
var key = _c.value;
|
|
@@ -7930,12 +7947,12 @@
|
|
|
7930
7947
|
}
|
|
7931
7948
|
}
|
|
7932
7949
|
}
|
|
7933
|
-
catch (
|
|
7950
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
7934
7951
|
finally {
|
|
7935
7952
|
try {
|
|
7936
7953
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7937
7954
|
}
|
|
7938
|
-
finally { if (
|
|
7955
|
+
finally { if (e_8) throw e_8.error; }
|
|
7939
7956
|
}
|
|
7940
7957
|
if (filters.per_game !== undefined) {
|
|
7941
7958
|
params = params.set('per_game', filters.per_game ? '1' : '0');
|
|
@@ -7949,7 +7966,7 @@
|
|
|
7949
7966
|
return params;
|
|
7950
7967
|
}
|
|
7951
7968
|
function applyStatisticLeadersFilters(filters, params) {
|
|
7952
|
-
var
|
|
7969
|
+
var e_9, _a;
|
|
7953
7970
|
try {
|
|
7954
7971
|
for (var _b = __values(Object.keys(filters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7955
7972
|
var key = _c.value;
|
|
@@ -7958,12 +7975,12 @@
|
|
|
7958
7975
|
}
|
|
7959
7976
|
}
|
|
7960
7977
|
}
|
|
7961
|
-
catch (
|
|
7978
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
7962
7979
|
finally {
|
|
7963
7980
|
try {
|
|
7964
7981
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7965
7982
|
}
|
|
7966
|
-
finally { if (
|
|
7983
|
+
finally { if (e_9) throw e_9.error; }
|
|
7967
7984
|
}
|
|
7968
7985
|
if (filters.per_game !== undefined) {
|
|
7969
7986
|
params = params.set('per_game', filters.per_game ? '1' : '0');
|