@mtgame/core 0.0.7 → 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 +11 -1
- 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/esm2015/models/tournament.js +2 -2
- package/esm5/api/media-api.js +9 -1
- package/esm5/models/game.js +3 -1
- package/esm5/models/tournament.js +2 -2
- package/fesm2015/mtgame-core.js +9 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +2 -0
- package/models/tournament.d.ts +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -769,7 +769,7 @@ var BasketballStatisticTypes;
|
|
|
769
769
|
(function (BasketballStatisticTypes) {
|
|
770
770
|
BasketballStatisticTypes[BasketballStatisticTypes["standard"] = 1] = "standard";
|
|
771
771
|
BasketballStatisticTypes[BasketballStatisticTypes["light"] = 2] = "light";
|
|
772
|
-
BasketballStatisticTypes[BasketballStatisticTypes["
|
|
772
|
+
BasketballStatisticTypes[BasketballStatisticTypes["advanced"] = 3] = "advanced";
|
|
773
773
|
})(BasketballStatisticTypes || (BasketballStatisticTypes = {}));
|
|
774
774
|
var GameTimeTypes;
|
|
775
775
|
(function (GameTimeTypes) {
|
|
@@ -1173,8 +1173,10 @@ var Game = /** @class */ (function (_super) {
|
|
|
1173
1173
|
id: 'id',
|
|
1174
1174
|
status: 'status',
|
|
1175
1175
|
team: 'team',
|
|
1176
|
+
tournament_team_id: 'tournamentTeamId',
|
|
1176
1177
|
team_id: 'teamId',
|
|
1177
1178
|
competitor_team: 'competitorTeam',
|
|
1179
|
+
competitor_tournament_team_id: 'competitorTournamentTeamId',
|
|
1178
1180
|
competitor_team_id: 'competitorTeamId',
|
|
1179
1181
|
competitor_team_name: 'competitorTeamName',
|
|
1180
1182
|
datetime: 'datetime',
|
|
@@ -2398,6 +2400,14 @@ var MediaApi = /** @class */ (function () {
|
|
|
2398
2400
|
});
|
|
2399
2401
|
});
|
|
2400
2402
|
};
|
|
2403
|
+
MediaApi.prototype.downloadMedia = function (mediaId) {
|
|
2404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2405
|
+
return __generator(this, function (_a) {
|
|
2406
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/media/" + mediaId + "/download/", { responseType: 'blob' })
|
|
2407
|
+
.toPromise()];
|
|
2408
|
+
});
|
|
2409
|
+
});
|
|
2410
|
+
};
|
|
2401
2411
|
MediaApi.ctorParameters = function () { return [
|
|
2402
2412
|
{ type: HttpClient },
|
|
2403
2413
|
{ type: ConfigService }
|