@mtgame/core 0.1.0 → 0.1.1
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/media-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +7 -4
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/media-api.js +4 -1
- package/esm2015/api/tournament-api.js +5 -5
- package/esm5/api/media-api.js +4 -1
- package/esm5/api/tournament-api.js +5 -5
- package/fesm2015/mtgame-core.js +7 -4
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +7 -4
- package/fesm5/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -4928,7 +4928,7 @@ var TournamentApi = /** @class */ (function () {
|
|
|
4928
4928
|
}
|
|
4929
4929
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/volleyball_statistic/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
4930
4930
|
total: +result.headers.get('X-Page-Count'),
|
|
4931
|
-
data: VolleyballStatistic.toFront(result)
|
|
4931
|
+
data: VolleyballStatistic.toFront(result.body)
|
|
4932
4932
|
}); })).toPromise()];
|
|
4933
4933
|
});
|
|
4934
4934
|
});
|
|
@@ -4964,7 +4964,7 @@ var TournamentApi = /** @class */ (function () {
|
|
|
4964
4964
|
}
|
|
4965
4965
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/hockey_statistic/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
4966
4966
|
total: +result.headers.get('X-Page-Count'),
|
|
4967
|
-
data: HockeyStatistic.toFront(result)
|
|
4967
|
+
data: HockeyStatistic.toFront(result.body)
|
|
4968
4968
|
}); })).toPromise()];
|
|
4969
4969
|
});
|
|
4970
4970
|
});
|
|
@@ -5000,7 +5000,7 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/football_statistic/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
5002
5002
|
total: +result.headers.get('X-Page-Count'),
|
|
5003
|
-
data: FootballStatistic.toFront(result)
|
|
5003
|
+
data: FootballStatistic.toFront(result.body)
|
|
5004
5004
|
}); })).toPromise()];
|
|
5005
5005
|
});
|
|
5006
5006
|
});
|
|
@@ -5036,7 +5036,7 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/handball_statistic/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
5038
5038
|
total: +result.headers.get('X-Page-Count'),
|
|
5039
|
-
data: HandballStatistic.toFront(result)
|
|
5039
|
+
data: HandballStatistic.toFront(result.body)
|
|
5040
5040
|
}); })).toPromise()];
|
|
5041
5041
|
});
|
|
5042
5042
|
});
|
|
@@ -5505,6 +5505,9 @@ var MediaApi = /** @class */ (function () {
|
|
|
5505
5505
|
if (filters.sort) {
|
|
5506
5506
|
params = params.set('sort', filters.sort);
|
|
5507
5507
|
}
|
|
5508
|
+
if (filters.teamId) {
|
|
5509
|
+
params = params.set('team_id', filters.teamId.toString());
|
|
5510
|
+
}
|
|
5508
5511
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/media/", { params: params, observe: 'response' })
|
|
5509
5512
|
.pipe(map(function (response) { return ({
|
|
5510
5513
|
total: +response.headers.get('X-Page-Count'),
|