@mtgame/core 0.0.8 → 0.0.9
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 +10 -0
- 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 +7 -1
- package/esm2015/models/game.js +3 -1
- package/esm5/api/media-api.js +9 -1
- package/esm5/models/game.js +3 -1
- package/fesm2015/mtgame-core.js +8 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +10 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/media-api.d.ts
CHANGED
|
@@ -1386,8 +1386,10 @@
|
|
|
1386
1386
|
id: 'id',
|
|
1387
1387
|
status: 'status',
|
|
1388
1388
|
team: 'team',
|
|
1389
|
+
tournament_team_id: 'tournamentTeamId',
|
|
1389
1390
|
team_id: 'teamId',
|
|
1390
1391
|
competitor_team: 'competitorTeam',
|
|
1392
|
+
competitor_tournament_team_id: 'competitorTournamentTeamId',
|
|
1391
1393
|
competitor_team_id: 'competitorTeamId',
|
|
1392
1394
|
competitor_team_name: 'competitorTeamName',
|
|
1393
1395
|
datetime: 'datetime',
|
|
@@ -2611,6 +2613,14 @@
|
|
|
2611
2613
|
});
|
|
2612
2614
|
});
|
|
2613
2615
|
};
|
|
2616
|
+
MediaApi.prototype.downloadMedia = function (mediaId) {
|
|
2617
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2618
|
+
return __generator(this, function (_a) {
|
|
2619
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/media/" + mediaId + "/download/", { responseType: 'blob' })
|
|
2620
|
+
.toPromise()];
|
|
2621
|
+
});
|
|
2622
|
+
});
|
|
2623
|
+
};
|
|
2614
2624
|
MediaApi.ctorParameters = function () { return [
|
|
2615
2625
|
{ type: http.HttpClient },
|
|
2616
2626
|
{ type: ConfigService }
|