@mtgame/core 0.1.13 → 0.1.15

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.
@@ -1679,6 +1679,32 @@ var Playoff = /** @class */ (function (_super) {
1679
1679
  return Playoff;
1680
1680
  }(BaseModel));
1681
1681
 
1682
+ var TournamentGroup = /** @class */ (function (_super) {
1683
+ __extends(TournamentGroup, _super);
1684
+ function TournamentGroup() {
1685
+ return _super !== null && _super.apply(this, arguments) || this;
1686
+ }
1687
+ TournamentGroup.toFront = function (data) { };
1688
+ TournamentGroup.toBack = function (data) { };
1689
+ __decorate([
1690
+ ToFrontHook
1691
+ ], TournamentGroup, "toFront", null);
1692
+ __decorate([
1693
+ ToBackHook
1694
+ ], TournamentGroup, "toBack", null);
1695
+ TournamentGroup = __decorate([
1696
+ ModelInstance({
1697
+ mappingFields: {
1698
+ id: 'id',
1699
+ name: 'name',
1700
+ sort: 'sort',
1701
+ tournament_stage_id: 'tournamentStageId'
1702
+ }
1703
+ })
1704
+ ], TournamentGroup);
1705
+ return TournamentGroup;
1706
+ }(BaseModel));
1707
+
1682
1708
  var GameStatuses;
1683
1709
  (function (GameStatuses) {
1684
1710
  GameStatuses[GameStatuses["open"] = 1] = "open";
@@ -1796,6 +1822,7 @@ var Game = /** @class */ (function (_super) {
1796
1822
  media_live_count: 'mediaLiveCount',
1797
1823
  media: 'media',
1798
1824
  tournament: 'tournament',
1825
+ tournament_group: 'tournamentGroup',
1799
1826
  },
1800
1827
  relation: {
1801
1828
  status: enumField(GameStatuses),
@@ -1812,6 +1839,7 @@ var Game = /** @class */ (function (_super) {
1812
1839
  tournamentCourt: LeagueCourt,
1813
1840
  media: listField(MediaItem),
1814
1841
  tournament: Tournament,
1842
+ tournamentGroup: TournamentGroup,
1815
1843
  }
1816
1844
  })
1817
1845
  ], Game);
@@ -2029,32 +2057,6 @@ var ConfigService = /** @class */ (function (_super) {
2029
2057
  return ConfigService;
2030
2058
  }(BaseService));
2031
2059
 
2032
- var TournamentGroup = /** @class */ (function (_super) {
2033
- __extends(TournamentGroup, _super);
2034
- function TournamentGroup() {
2035
- return _super !== null && _super.apply(this, arguments) || this;
2036
- }
2037
- TournamentGroup.toFront = function (data) { };
2038
- TournamentGroup.toBack = function (data) { };
2039
- __decorate([
2040
- ToFrontHook
2041
- ], TournamentGroup, "toFront", null);
2042
- __decorate([
2043
- ToBackHook
2044
- ], TournamentGroup, "toBack", null);
2045
- TournamentGroup = __decorate([
2046
- ModelInstance({
2047
- mappingFields: {
2048
- id: 'id',
2049
- name: 'name',
2050
- sort: 'sort',
2051
- tournament_stage_id: 'tournamentStageId'
2052
- }
2053
- })
2054
- ], TournamentGroup);
2055
- return TournamentGroup;
2056
- }(BaseModel));
2057
-
2058
2060
  var TournamentTeam = /** @class */ (function (_super) {
2059
2061
  __extends(TournamentTeam, _super);
2060
2062
  function TournamentTeam() {
@@ -8060,6 +8062,16 @@ var VolleyballGameApi = /** @class */ (function (_super) {
8060
8062
  });
8061
8063
  });
8062
8064
  };
8065
+ VolleyballGameApi.prototype.downloadProtocolLight = function (gameId, format) {
8066
+ return __awaiter(this, void 0, void 0, function () {
8067
+ return __generator(this, function (_a) {
8068
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol_light/", {
8069
+ params: new HttpParams().set('file_type', format),
8070
+ responseType: 'blob'
8071
+ }).toPromise()];
8072
+ });
8073
+ });
8074
+ };
8063
8075
  VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
8064
8076
  return __awaiter(this, void 0, void 0, function () {
8065
8077
  return __generator(this, function (_a) {