@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/api/media-api.d.ts
CHANGED
|
@@ -5141,7 +5141,7 @@
|
|
|
5141
5141
|
}
|
|
5142
5142
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/volleyball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
5143
5143
|
total: +result.headers.get('X-Page-Count'),
|
|
5144
|
-
data: VolleyballStatistic.toFront(result)
|
|
5144
|
+
data: VolleyballStatistic.toFront(result.body)
|
|
5145
5145
|
}); })).toPromise()];
|
|
5146
5146
|
});
|
|
5147
5147
|
});
|
|
@@ -5177,7 +5177,7 @@
|
|
|
5177
5177
|
}
|
|
5178
5178
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/hockey_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
5179
5179
|
total: +result.headers.get('X-Page-Count'),
|
|
5180
|
-
data: HockeyStatistic.toFront(result)
|
|
5180
|
+
data: HockeyStatistic.toFront(result.body)
|
|
5181
5181
|
}); })).toPromise()];
|
|
5182
5182
|
});
|
|
5183
5183
|
});
|
|
@@ -5213,7 +5213,7 @@
|
|
|
5213
5213
|
}
|
|
5214
5214
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/football_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
5215
5215
|
total: +result.headers.get('X-Page-Count'),
|
|
5216
|
-
data: FootballStatistic.toFront(result)
|
|
5216
|
+
data: FootballStatistic.toFront(result.body)
|
|
5217
5217
|
}); })).toPromise()];
|
|
5218
5218
|
});
|
|
5219
5219
|
});
|
|
@@ -5249,7 +5249,7 @@
|
|
|
5249
5249
|
}
|
|
5250
5250
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/handball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
5251
5251
|
total: +result.headers.get('X-Page-Count'),
|
|
5252
|
-
data: HandballStatistic.toFront(result)
|
|
5252
|
+
data: HandballStatistic.toFront(result.body)
|
|
5253
5253
|
}); })).toPromise()];
|
|
5254
5254
|
});
|
|
5255
5255
|
});
|
|
@@ -5718,6 +5718,9 @@
|
|
|
5718
5718
|
if (filters.sort) {
|
|
5719
5719
|
params = params.set('sort', filters.sort);
|
|
5720
5720
|
}
|
|
5721
|
+
if (filters.teamId) {
|
|
5722
|
+
params = params.set('team_id', filters.teamId.toString());
|
|
5723
|
+
}
|
|
5721
5724
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/media/", { params: params, observe: 'response' })
|
|
5722
5725
|
.pipe(operators.map(function (response) { return ({
|
|
5723
5726
|
total: +response.headers.get('X-Page-Count'),
|