@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.
@@ -3,6 +3,7 @@ import { ConfigService } from '../services/config.service';
3
3
  import { User } from '../models/user';
4
4
  import { Tournament } from '../models/tournament';
5
5
  import { TournamentTeamUser } from '../models/tournament-team-user';
6
+ import { LeaguePlayer } from '../models/league-player';
6
7
  export declare class PublicUserApi {
7
8
  private httpClient;
8
9
  private configService;
@@ -10,4 +11,5 @@ export declare class PublicUserApi {
10
11
  getById(userId: number): Promise<User>;
11
12
  getTournaments(userId: number, leagueId: number): Promise<Tournament[]>;
12
13
  getTournamentUser(userId: number, seasonId: number): Promise<TournamentTeamUser>;
14
+ getLeaguePlayer(userId: number, leagueId: number): Promise<LeaguePlayer>;
13
15
  }
@@ -3646,6 +3646,7 @@
3646
3646
  FootballGameLogTypes[FootballGameLogTypes["steal"] = 23] = "steal";
3647
3647
  FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
3648
3648
  FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
3649
+ FootballGameLogTypes[FootballGameLogTypes["auto_goal"] = 26] = "auto_goal";
3649
3650
  })(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
3650
3651
  var FootballGameLog = /** @class */ (function (_super) {
3651
3652
  __extends(FootballGameLog, _super);
@@ -3820,7 +3821,7 @@
3820
3821
  });
3821
3822
  Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
3822
3823
  get: function () {
3823
- return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0);
3824
+ return (this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0) + (this.autoGoalsAgainst || 0);
3824
3825
  },
3825
3826
  enumerable: true,
3826
3827
  configurable: true
@@ -3910,7 +3911,9 @@
3910
3911
  losses: 'losses',
3911
3912
  steals: 'steals',
3912
3913
  outs: 'outs',
3913
- block_shots: 'blockShots'
3914
+ block_shots: 'blockShots',
3915
+ auto_goals: 'autoGoals',
3916
+ auto_goals_against: 'autoGoalsAgainst'
3914
3917
  },
3915
3918
  relation: {
3916
3919
  updatedAt: DateTimeField,
@@ -4002,6 +4005,8 @@
4002
4005
  plus_minus: 'plusMinus',
4003
4006
  newbie: 'newbie',
4004
4007
  rank: 'rank',
4008
+ auto_goals: 'autoGoals',
4009
+ auto_goals_against: 'autoGoalsAgainst',
4005
4010
  },
4006
4011
  relation: {
4007
4012
  tournamentTeamUser: TournamentTeamUser,
@@ -8263,6 +8268,10 @@
8263
8268
  var params = new http.HttpParams().set('season_id', seasonId.toString());
8264
8269
  return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/tournament_user/", { params: params }).pipe(operators.map(function (result) { return TournamentTeamUser.toFront(result); })).toPromise();
8265
8270
  };
8271
+ PublicUserApi.prototype.getLeaguePlayer = function (userId, leagueId) {
8272
+ var params = new http.HttpParams().set('league_id', leagueId.toString());
8273
+ return this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/public_user/" + userId + "/league_player/", { params: params }).pipe(operators.map(function (result) { return LeaguePlayer.toFront(result); })).toPromise();
8274
+ };
8266
8275
  PublicUserApi.ctorParameters = function () { return [
8267
8276
  { type: http.HttpClient },
8268
8277
  { type: ConfigService }