@mtgame/core 0.1.22 → 0.1.24
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/public-user-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +11 -2
- 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/public-user-api.js +6 -1
- package/esm2015/models/football-game-log.js +2 -1
- package/esm2015/models/football-game-statistic.js +5 -3
- package/esm2015/models/football-statistic.js +3 -1
- package/esm5/api/public-user-api.js +6 -1
- package/esm5/models/football-game-log.js +2 -1
- package/esm5/models/football-game-statistic.js +5 -3
- package/esm5/models/football-statistic.js +3 -1
- package/fesm2015/mtgame-core.js +11 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/football-game-log.d.ts +2 -1
- package/models/football-game-statistic.d.ts +2 -0
- package/models/football-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -3433,6 +3433,7 @@ var FootballGameLogTypes;
|
|
|
3433
3433
|
FootballGameLogTypes[FootballGameLogTypes["steal"] = 23] = "steal";
|
|
3434
3434
|
FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
|
|
3435
3435
|
FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
|
|
3436
|
+
FootballGameLogTypes[FootballGameLogTypes["auto_goal"] = 26] = "auto_goal";
|
|
3436
3437
|
})(FootballGameLogTypes || (FootballGameLogTypes = {}));
|
|
3437
3438
|
var FootballGameLog = /** @class */ (function (_super) {
|
|
3438
3439
|
__extends(FootballGameLog, _super);
|
|
@@ -3607,7 +3608,7 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3607
3608
|
});
|
|
3608
3609
|
Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
|
|
3609
3610
|
get: function () {
|
|
3610
|
-
return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0);
|
|
3611
|
+
return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0) + (this.autoGoalsAgainst || 0);
|
|
3611
3612
|
},
|
|
3612
3613
|
enumerable: true,
|
|
3613
3614
|
configurable: true
|
|
@@ -3697,7 +3698,9 @@ var FootballGameStatistic = /** @class */ (function (_super) {
|
|
|
3697
3698
|
losses: 'losses',
|
|
3698
3699
|
steals: 'steals',
|
|
3699
3700
|
outs: 'outs',
|
|
3700
|
-
block_shots: 'blockShots'
|
|
3701
|
+
block_shots: 'blockShots',
|
|
3702
|
+
auto_goals: 'autoGoals',
|
|
3703
|
+
auto_goals_against: 'autoGoalsAgainst'
|
|
3701
3704
|
},
|
|
3702
3705
|
relation: {
|
|
3703
3706
|
updatedAt: DateTimeField,
|
|
@@ -3789,6 +3792,8 @@ var FootballStatistic = /** @class */ (function (_super) {
|
|
|
3789
3792
|
plus_minus: 'plusMinus',
|
|
3790
3793
|
newbie: 'newbie',
|
|
3791
3794
|
rank: 'rank',
|
|
3795
|
+
auto_goals: 'autoGoals',
|
|
3796
|
+
auto_goals_against: 'autoGoalsAgainst',
|
|
3792
3797
|
},
|
|
3793
3798
|
relation: {
|
|
3794
3799
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -8050,6 +8055,10 @@ var PublicUserApi = /** @class */ (function () {
|
|
|
8050
8055
|
var params = new HttpParams().set('season_id', seasonId.toString());
|
|
8051
8056
|
return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/tournament_user/", { params: params }).pipe(map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise();
|
|
8052
8057
|
};
|
|
8058
|
+
PublicUserApi.prototype.getLeaguePlayer = function (userId, leagueId) {
|
|
8059
|
+
var params = new HttpParams().set('league_id', leagueId.toString());
|
|
8060
|
+
return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/league_player/", { params: params }).pipe(map(function (result) { return LeaguePlayer.toFront(result); })).toPromise();
|
|
8061
|
+
};
|
|
8053
8062
|
PublicUserApi.ctorParameters = function () { return [
|
|
8054
8063
|
{ type: HttpClient },
|
|
8055
8064
|
{ type: ConfigService }
|