@mtgame/core 0.1.106 → 0.1.108
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/bundles/mtgame-core.umd.js +10 -6
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/game-base-api.js +2 -2
- package/esm2015/models/basketball-game-statistic.js +3 -1
- package/esm2015/models/basketball-statistic.js +3 -1
- package/esm2015/models/public-api.js +2 -1
- package/fesm2015/mtgame-core.js +6 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +2 -0
- package/models/basketball-statistic.d.ts +2 -0
- package/models/public-api.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3109,6 +3109,8 @@
|
|
|
3109
3109
|
technical_fouls: 'technicalFouls',
|
|
3110
3110
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3111
3111
|
disqualification_fouls: 'disqualificationFouls',
|
|
3112
|
+
drawn_fouls: 'drawnFouls',
|
|
3113
|
+
player_efficiency: 'playerEfficiency',
|
|
3112
3114
|
game_time: 'gameTime',
|
|
3113
3115
|
newbie: 'newbie',
|
|
3114
3116
|
rank: 'rank',
|
|
@@ -3253,6 +3255,8 @@
|
|
|
3253
3255
|
technical_fouls: 'technicalFouls',
|
|
3254
3256
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3255
3257
|
disqualification_fouls: 'disqualificationFouls',
|
|
3258
|
+
drawn_fouls: 'drawnFouls',
|
|
3259
|
+
player_efficiency: 'playerEfficiency',
|
|
3256
3260
|
updated_at: 'updatedAt',
|
|
3257
3261
|
},
|
|
3258
3262
|
relation: {
|
|
@@ -3544,7 +3548,7 @@
|
|
|
3544
3548
|
})
|
|
3545
3549
|
], exports.GameUserLimitations);
|
|
3546
3550
|
|
|
3547
|
-
|
|
3551
|
+
exports.GameUserDisqualification = /** @class */ (function (_super) {
|
|
3548
3552
|
__extends(GameUserDisqualification, _super);
|
|
3549
3553
|
function GameUserDisqualification() {
|
|
3550
3554
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -3557,11 +3561,11 @@
|
|
|
3557
3561
|
}(BaseModel));
|
|
3558
3562
|
__decorate([
|
|
3559
3563
|
ToFrontHook
|
|
3560
|
-
], GameUserDisqualification, "toFront", null);
|
|
3564
|
+
], exports.GameUserDisqualification, "toFront", null);
|
|
3561
3565
|
__decorate([
|
|
3562
3566
|
ToBackHook
|
|
3563
|
-
], GameUserDisqualification, "toBack", null);
|
|
3564
|
-
GameUserDisqualification = __decorate([
|
|
3567
|
+
], exports.GameUserDisqualification, "toBack", null);
|
|
3568
|
+
exports.GameUserDisqualification = __decorate([
|
|
3565
3569
|
ModelInstance({
|
|
3566
3570
|
mappingFields: {
|
|
3567
3571
|
tournament_team_user_id: 'tournamentTeamUserId',
|
|
@@ -3571,7 +3575,7 @@
|
|
|
3571
3575
|
disqualification: exports.TournamentDisqualification
|
|
3572
3576
|
}
|
|
3573
3577
|
})
|
|
3574
|
-
], GameUserDisqualification);
|
|
3578
|
+
], exports.GameUserDisqualification);
|
|
3575
3579
|
|
|
3576
3580
|
var GameBaseApi = /** @class */ (function () {
|
|
3577
3581
|
function GameBaseApi(httpClient, configService) {
|
|
@@ -3602,7 +3606,7 @@
|
|
|
3602
3606
|
GameBaseApi.prototype.getUsersDisqualification = function (gameId) {
|
|
3603
3607
|
return __awaiter(this, void 0, void 0, function () {
|
|
3604
3608
|
return __generator(this, function (_a) {
|
|
3605
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/
|
|
3609
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/users_disqualification/").pipe(operators.map(function (result) { return exports.GameUserDisqualification.toFront(result); })).toPromise()];
|
|
3606
3610
|
});
|
|
3607
3611
|
});
|
|
3608
3612
|
};
|