@mtgame/core 0.1.104 → 0.1.107

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.
@@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { GameUser } from '../models/game-user';
3
3
  import { ConfigService } from '../services/config.service';
4
4
  import { GameUserLimitations } from '../models/game-user-limitation';
5
+ import { GameUserDisqualification } from '../models/game-user-disqualification';
5
6
  export declare class GameBaseApi {
6
7
  protected httpClient: HttpClient;
7
8
  protected configService: ConfigService;
@@ -9,5 +10,6 @@ export declare class GameBaseApi {
9
10
  getUsers(gameId: number): Promise<GameUser[]>;
10
11
  getMvp(gameId: number): Promise<GameUser[]>;
11
12
  getUsersLimitation(gameId: number): Promise<GameUserLimitations[]>;
13
+ getUsersDisqualification(gameId: number): Promise<GameUserDisqualification[]>;
12
14
  downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
13
15
  }
@@ -3544,6 +3544,35 @@
3544
3544
  })
3545
3545
  ], exports.GameUserLimitations);
3546
3546
 
3547
+ exports.GameUserDisqualification = /** @class */ (function (_super) {
3548
+ __extends(GameUserDisqualification, _super);
3549
+ function GameUserDisqualification() {
3550
+ return _super !== null && _super.apply(this, arguments) || this;
3551
+ }
3552
+ GameUserDisqualification.toFront = function (data) {
3553
+ };
3554
+ GameUserDisqualification.toBack = function (data) {
3555
+ };
3556
+ return GameUserDisqualification;
3557
+ }(BaseModel));
3558
+ __decorate([
3559
+ ToFrontHook
3560
+ ], exports.GameUserDisqualification, "toFront", null);
3561
+ __decorate([
3562
+ ToBackHook
3563
+ ], exports.GameUserDisqualification, "toBack", null);
3564
+ exports.GameUserDisqualification = __decorate([
3565
+ ModelInstance({
3566
+ mappingFields: {
3567
+ tournament_team_user_id: 'tournamentTeamUserId',
3568
+ disqualification: 'disqualification'
3569
+ },
3570
+ relation: {
3571
+ disqualification: exports.TournamentDisqualification
3572
+ }
3573
+ })
3574
+ ], exports.GameUserDisqualification);
3575
+
3547
3576
  var GameBaseApi = /** @class */ (function () {
3548
3577
  function GameBaseApi(httpClient, configService) {
3549
3578
  this.httpClient = httpClient;
@@ -3570,6 +3599,13 @@
3570
3599
  });
3571
3600
  });
3572
3601
  };
3602
+ GameBaseApi.prototype.getUsersDisqualification = function (gameId) {
3603
+ return __awaiter(this, void 0, void 0, function () {
3604
+ return __generator(this, function (_a) {
3605
+ 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
+ });
3607
+ });
3608
+ };
3573
3609
  GameBaseApi.prototype.downloadApplication = function (gameId, format, type) {
3574
3610
  return __awaiter(this, void 0, void 0, function () {
3575
3611
  return __generator(this, function (_a) {