@mtgame/core 0.1.41 → 0.1.42

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.
Files changed (37) hide show
  1. package/api/game-base-api.d.ts +1 -0
  2. package/api/rugby-game-api.d.ts +3 -0
  3. package/bundles/mtgame-core.umd.js +191 -99
  4. package/bundles/mtgame-core.umd.js.map +1 -1
  5. package/bundles/mtgame-core.umd.min.js +1 -1
  6. package/bundles/mtgame-core.umd.min.js.map +1 -1
  7. package/esm2015/api/game-base-api.js +10 -2
  8. package/esm2015/api/rugby-game-api.js +16 -2
  9. package/esm2015/localization/public-api.js +2 -1
  10. package/esm2015/localization/rugby-foul-sanction.js +10 -0
  11. package/esm2015/localization/rugby-game-log-types.js +4 -1
  12. package/esm2015/models/public-api.js +2 -1
  13. package/esm2015/models/rugby-foul-type.js +35 -0
  14. package/esm2015/models/rugby-game-log.js +32 -24
  15. package/esm2015/models/rugby-game-statistic.js +7 -1
  16. package/esm5/api/game-base-api.js +12 -2
  17. package/esm5/api/rugby-game-api.js +20 -2
  18. package/esm5/localization/public-api.js +2 -1
  19. package/esm5/localization/rugby-foul-sanction.js +11 -0
  20. package/esm5/localization/rugby-game-log-types.js +4 -1
  21. package/esm5/models/public-api.js +2 -1
  22. package/esm5/models/rugby-foul-type.js +40 -0
  23. package/esm5/models/rugby-game-log.js +32 -24
  24. package/esm5/models/rugby-game-statistic.js +7 -1
  25. package/fesm2015/mtgame-core.js +103 -25
  26. package/fesm2015/mtgame-core.js.map +1 -1
  27. package/fesm5/mtgame-core.js +191 -101
  28. package/fesm5/mtgame-core.js.map +1 -1
  29. package/localization/public-api.d.ts +1 -0
  30. package/localization/rugby-foul-sanction.d.ts +9 -0
  31. package/localization/rugby-game-log-types.d.ts +3 -0
  32. package/models/public-api.d.ts +1 -0
  33. package/models/rugby-foul-type.d.ts +16 -0
  34. package/models/rugby-game-log.d.ts +27 -21
  35. package/models/rugby-game-statistic.d.ts +6 -0
  36. package/mtgame-core.metadata.json +1 -1
  37. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { __values, __extends, __decorate, __spread, __assign, __param, __awaiter, __generator } from 'tslib';
2
2
  import { ɵɵdefineInjectable, Injectable, Optional, Inject, ɵɵinject, Injector, PLATFORM_ID } from '@angular/core';
3
- import { HttpClient, HttpParams } from '@angular/common/http';
3
+ import { HttpParams, HttpClient } from '@angular/common/http';
4
4
  import { filter, map, delay, switchMap } from 'rxjs/operators';
5
5
  import { BehaviorSubject, Observable, of } from 'rxjs';
6
6
  import { Subject } from 'rxjs/internal/Subject';
@@ -2957,6 +2957,16 @@ var GameBaseApi = /** @class */ (function () {
2957
2957
  });
2958
2958
  });
2959
2959
  };
2960
+ GameBaseApi.prototype.downloadApplication = function (gameId, format, type) {
2961
+ return __awaiter(this, void 0, void 0, function () {
2962
+ return __generator(this, function (_a) {
2963
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/game_application/", {
2964
+ params: new HttpParams().set('file_type', format).set('application_type', type),
2965
+ responseType: 'blob'
2966
+ }).toPromise()];
2967
+ });
2968
+ });
2969
+ };
2960
2970
  GameBaseApi.ctorParameters = function () { return [
2961
2971
  { type: HttpClient },
2962
2972
  { type: ConfigService }
@@ -7028,11 +7038,17 @@ var RugbyGameStatistic = /** @class */ (function (_super) {
7028
7038
  penalty_tries: 'penaltyTries',
7029
7039
  conversion_goals: 'conversionGoals',
7030
7040
  conversion_misses: 'conversionMisses',
7041
+ conversion_shots: 'conversionShots',
7042
+ conversion_goals_percent: 'conversionGoalsPercent',
7031
7043
  drawing_ball: 'drawingBall',
7032
7044
  penalty_misses: 'penaltyMisses',
7033
7045
  penalty_goals: 'penaltyGoals',
7046
+ penalty_shots: 'penaltyShots',
7047
+ penalty_goals_percent: 'penaltyGoalsPercent',
7034
7048
  drop_goals: 'dropGoals',
7035
7049
  drop_goal_misses: 'dropGoalMisses',
7050
+ drop_goal_shots: 'dropGoalShots',
7051
+ drop_goals_percent: 'dropGoalsPercent',
7036
7052
  free_kicks: 'freeKicks',
7037
7053
  yellow_cards: 'yellowCards',
7038
7054
  red_cards: 'redCards',
@@ -7052,6 +7068,43 @@ var RugbyGameStatistic = /** @class */ (function (_super) {
7052
7068
  return RugbyGameStatistic;
7053
7069
  }(BaseModel));
7054
7070
 
7071
+ var RugbyFoulSanctions;
7072
+ (function (RugbyFoulSanctions) {
7073
+ RugbyFoulSanctions[RugbyFoulSanctions["scrum"] = 1] = "scrum";
7074
+ RugbyFoulSanctions[RugbyFoulSanctions["lineout"] = 2] = "lineout";
7075
+ RugbyFoulSanctions[RugbyFoulSanctions["free_kick"] = 3] = "free_kick";
7076
+ RugbyFoulSanctions[RugbyFoulSanctions["penalty_shot"] = 4] = "penalty_shot";
7077
+ RugbyFoulSanctions[RugbyFoulSanctions["yellow_card"] = 5] = "yellow_card";
7078
+ RugbyFoulSanctions[RugbyFoulSanctions["red_card"] = 6] = "red_card";
7079
+ })(RugbyFoulSanctions || (RugbyFoulSanctions = {}));
7080
+ var RugbyFoulType = /** @class */ (function (_super) {
7081
+ __extends(RugbyFoulType, _super);
7082
+ function RugbyFoulType() {
7083
+ return _super !== null && _super.apply(this, arguments) || this;
7084
+ }
7085
+ RugbyFoulType.toFront = function (data) { };
7086
+ RugbyFoulType.toBack = function (data) { };
7087
+ __decorate([
7088
+ ToFrontHook
7089
+ ], RugbyFoulType, "toFront", null);
7090
+ __decorate([
7091
+ ToBackHook
7092
+ ], RugbyFoulType, "toBack", null);
7093
+ RugbyFoulType = __decorate([
7094
+ ModelInstance({
7095
+ mappingFields: {
7096
+ id: 'id',
7097
+ name: 'name',
7098
+ sanction: 'sanction',
7099
+ },
7100
+ relation: {
7101
+ sanction: listField(enumField(RugbyFoulSanctions))
7102
+ }
7103
+ })
7104
+ ], RugbyFoulType);
7105
+ return RugbyFoulType;
7106
+ }(BaseModel));
7107
+
7055
7108
  var _a$1;
7056
7109
  var RugbyGameLogTypes;
7057
7110
  (function (RugbyGameLogTypes) {
@@ -7067,27 +7120,30 @@ var RugbyGameLogTypes;
7067
7120
  RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 10] = "drop_goal";
7068
7121
  RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 11] = "drop_goal_miss";
7069
7122
  RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 12] = "free_kick";
7070
- RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 13] = "yellow_card";
7071
- RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 14] = "red_card";
7072
- RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 15] = "offload";
7073
- RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 16] = "tackle";
7074
- RugbyGameLogTypes[RugbyGameLogTypes["out"] = 17] = "out";
7075
- RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 18] = "handling_error";
7076
- RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 19] = "carries_other_gainline";
7123
+ RugbyGameLogTypes[RugbyGameLogTypes["foul"] = 13] = "foul";
7124
+ RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 14] = "yellow_card";
7125
+ RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 15] = "red_card";
7126
+ RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 16] = "offload";
7127
+ RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 17] = "tackle";
7128
+ RugbyGameLogTypes[RugbyGameLogTypes["out"] = 18] = "out";
7129
+ RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 19] = "handling_error";
7130
+ RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 20] = "carries_other_gainline";
7131
+ RugbyGameLogTypes[RugbyGameLogTypes["bleeding_injury"] = 21] = "bleeding_injury";
7132
+ RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 22] = "head_injury";
7077
7133
  // team actions
7078
- RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 20] = "timeout";
7079
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 21] = "scrum_won";
7080
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 22] = "scrum_lose";
7081
- RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 23] = "scrum_won_free";
7082
- RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 24] = "lineout_success";
7083
- RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 25] = "lineout_loss";
7084
- RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 26] = "lineout_steal";
7085
- RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 27] = "quick_throw";
7086
- RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 28] = "ruck_won";
7087
- RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 29] = "ruck_lose";
7088
- RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 30] = "maul_won";
7089
- RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 31] = "maul_lose";
7090
- RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 32] = "team_foul";
7134
+ RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 23] = "timeout";
7135
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 24] = "scrum_won";
7136
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 25] = "scrum_lose";
7137
+ RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 26] = "scrum_won_free";
7138
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 27] = "lineout_success";
7139
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 28] = "lineout_loss";
7140
+ RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 29] = "lineout_steal";
7141
+ RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 30] = "quick_throw";
7142
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 31] = "ruck_won";
7143
+ RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 32] = "ruck_lose";
7144
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 33] = "maul_won";
7145
+ RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 34] = "maul_lose";
7146
+ RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 35] = "team_foul";
7091
7147
  })(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
7092
7148
  var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
7093
7149
  _a$1[RugbyGameLogTypes.penalty_try] = 7,
@@ -7143,7 +7199,7 @@ var RugbyGameLog = /** @class */ (function (_super) {
7143
7199
  return this.period > log.period;
7144
7200
  };
7145
7201
  RugbyGameLog.prototype.isFoulType = function () {
7146
- return [RugbyGameLogTypes.team_foul, RugbyGameLogTypes.yellow_card, RugbyGameLogTypes.red_card].indexOf(this.logType) > -1;
7202
+ return [RugbyGameLogTypes.team_foul, RugbyGameLogTypes.foul].indexOf(this.logType) > -1;
7147
7203
  };
7148
7204
  RugbyGameLog.prototype.isTeamType = function () {
7149
7205
  return RUGBY_TEAM_LOG_TYPES.includes(this.logType);
@@ -7161,6 +7217,7 @@ var RugbyGameLog = /** @class */ (function (_super) {
7161
7217
  mappingFields: {
7162
7218
  id: 'id',
7163
7219
  unique_id: 'uniqueId',
7220
+ group: 'group',
7164
7221
  game_id: 'gameId',
7165
7222
  game_user_id: 'gameUserId',
7166
7223
  team_id: 'teamId',
@@ -7170,11 +7227,14 @@ var RugbyGameLog = /** @class */ (function (_super) {
7170
7227
  period: 'period',
7171
7228
  active: 'active',
7172
7229
  is_highlight: 'isHighlight',
7173
- penalty_type: 'penaltyType',
7230
+ foul_type: 'foulType',
7231
+ foul_sanction: 'foulSanction',
7174
7232
  },
7175
7233
  relation: {
7176
7234
  datetime: DateTimeField,
7177
- logType: enumField(RugbyGameLogTypes)
7235
+ logType: enumField(RugbyGameLogTypes),
7236
+ foulType: RugbyFoulType,
7237
+ foulSanction: enumField(RugbyFoulSanctions),
7178
7238
  }
7179
7239
  })
7180
7240
  ], RugbyGameLog);
@@ -7217,6 +7277,23 @@ var RugbyGameApi = /** @class */ (function (_super) {
7217
7277
  });
7218
7278
  });
7219
7279
  };
7280
+ RugbyGameApi.prototype.getFoulTypes = function () {
7281
+ return __awaiter(this, void 0, void 0, function () {
7282
+ return __generator(this, function (_a) {
7283
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/foul_types/").pipe(map(function (result) { return RugbyFoulType.toFront(result); })).toPromise()];
7284
+ });
7285
+ });
7286
+ };
7287
+ RugbyGameApi.prototype.downloadProtocol = function (gameId) {
7288
+ return __awaiter(this, void 0, void 0, function () {
7289
+ return __generator(this, function (_a) {
7290
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/game_protocol/", {
7291
+ params: new HttpParams().set('file_type', 'pdf'),
7292
+ responseType: 'blob'
7293
+ }).toPromise()];
7294
+ });
7295
+ });
7296
+ };
7220
7297
  RugbyGameApi.ctorParameters = function () { return [
7221
7298
  { type: HttpClient },
7222
7299
  { type: ConfigService }
@@ -9048,63 +9125,76 @@ var OvertimeTypeLocalization = (_a$6 = {},
9048
9125
  _a$6);
9049
9126
 
9050
9127
  var _a$7;
9051
- var RugbyGameLogTypeLocalization = (_a$7 = {},
9052
- _a$7[RugbyGameLogTypes.enter_game] = 'Выход на площадку',
9053
- _a$7[RugbyGameLogTypes.exit_game] = 'Ушел с площадки',
9054
- _a$7[RugbyGameLogTypes.try] = 'Попытка',
9055
- _a$7[RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
9056
- _a$7[RugbyGameLogTypes.conversion_goal] = 'Реализация',
9057
- _a$7[RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
9058
- _a$7[RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
9059
- _a$7[RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
9060
- _a$7[RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
9061
- _a$7[RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
9062
- _a$7[RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
9063
- _a$7[RugbyGameLogTypes.free_kick] = 'Свободный удар',
9064
- _a$7[RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
9065
- _a$7[RugbyGameLogTypes.red_card] = 'Красная карточка',
9066
- _a$7[RugbyGameLogTypes.offload] = 'Скидка при завхвате',
9067
- _a$7[RugbyGameLogTypes.tackle] = 'Успешный захват',
9068
- _a$7[RugbyGameLogTypes.out] = 'Аут',
9069
- _a$7[RugbyGameLogTypes.handling_error] = 'Ошибка приема',
9070
- _a$7[RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
9071
- _a$7[RugbyGameLogTypes.timeout] = 'Таймаут',
9072
- _a$7[RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
9073
- _a$7[RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
9074
- _a$7[RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
9075
- _a$7[RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
9076
- _a$7[RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
9077
- _a$7[RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
9078
- _a$7[RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
9079
- _a$7[RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
9080
- _a$7[RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
9081
- _a$7[RugbyGameLogTypes.maul_won] = 'Мол выиграно',
9082
- _a$7[RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
9083
- _a$7[RugbyGameLogTypes.team_foul] = 'Фол',
9128
+ var RugbyFoulSanctionLocalization = (_a$7 = {},
9129
+ _a$7[RugbyFoulSanctions.scrum] = 'Схватка',
9130
+ _a$7[RugbyFoulSanctions.lineout] = 'Корридор',
9131
+ _a$7[RugbyFoulSanctions.free_kick] = 'Свободный удар',
9132
+ _a$7[RugbyFoulSanctions.penalty_shot] = 'Штрафной удар',
9133
+ _a$7[RugbyFoulSanctions.yellow_card] = 'Желтая карточка',
9134
+ _a$7[RugbyFoulSanctions.red_card] = 'Красная карточка',
9084
9135
  _a$7);
9085
9136
 
9086
9137
  var _a$8;
9087
- var TeamUserRoleLocalization = (_a$8 = {},
9088
- _a$8[TeamUserRole.member] = 'Пользователь',
9089
- _a$8[TeamUserRole.moderator] = 'Модератор',
9090
- _a$8[TeamUserRole.admin] = 'Владелец',
9091
- _a$8[TeamUserRole.coach] = 'Тренер',
9092
- _a$8[TeamUserRole.head_coach] = 'Главный тренер',
9093
- _a$8[TeamUserRole.playing_coach] = 'Играющий тренер',
9094
- _a$8[TeamUserRole.manager] = 'Менеджер',
9095
- _a$8[TeamUserRole.head_manager] = 'Генеральный менеджер',
9096
- _a$8[TeamUserRole.captain] = 'Капитан',
9097
- _a$8[TeamUserRole.assistant] = 'Ассистент',
9138
+ var RugbyGameLogTypeLocalization = (_a$8 = {},
9139
+ _a$8[RugbyGameLogTypes.enter_game] = 'Выход на площадку',
9140
+ _a$8[RugbyGameLogTypes.exit_game] = 'Ушел с площадки',
9141
+ _a$8[RugbyGameLogTypes.try] = 'Попытка',
9142
+ _a$8[RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
9143
+ _a$8[RugbyGameLogTypes.conversion_goal] = 'Реализация',
9144
+ _a$8[RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
9145
+ _a$8[RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
9146
+ _a$8[RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
9147
+ _a$8[RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
9148
+ _a$8[RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
9149
+ _a$8[RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
9150
+ _a$8[RugbyGameLogTypes.free_kick] = 'Свободный удар',
9151
+ _a$8[RugbyGameLogTypes.foul] = 'Фол',
9152
+ _a$8[RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
9153
+ _a$8[RugbyGameLogTypes.red_card] = 'Красная карточка',
9154
+ _a$8[RugbyGameLogTypes.offload] = 'Скидка при завхвате',
9155
+ _a$8[RugbyGameLogTypes.tackle] = 'Успешный захват',
9156
+ _a$8[RugbyGameLogTypes.out] = 'Аут',
9157
+ _a$8[RugbyGameLogTypes.handling_error] = 'Ошибка приема',
9158
+ _a$8[RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
9159
+ _a$8[RugbyGameLogTypes.bleeding_injury] = 'Кровоточащая травма',
9160
+ _a$8[RugbyGameLogTypes.head_injury] = 'Травма головы',
9161
+ _a$8[RugbyGameLogTypes.timeout] = 'Таймаут',
9162
+ _a$8[RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
9163
+ _a$8[RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
9164
+ _a$8[RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
9165
+ _a$8[RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
9166
+ _a$8[RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
9167
+ _a$8[RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
9168
+ _a$8[RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
9169
+ _a$8[RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
9170
+ _a$8[RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
9171
+ _a$8[RugbyGameLogTypes.maul_won] = 'Мол выиграно',
9172
+ _a$8[RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
9173
+ _a$8[RugbyGameLogTypes.team_foul] = 'Фол',
9098
9174
  _a$8);
9099
9175
 
9100
- var _a$9, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
9101
- var GameBasketballPositionLocalization = (_a$9 = {},
9102
- _a$9[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
9103
- _a$9[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
9104
- _a$9[GameBasketballPosition.small_forward] = 'Легкий форвард',
9105
- _a$9[GameBasketballPosition.power_forward] = 'Мощный форвард',
9106
- _a$9[GameBasketballPosition.center] = 'Центровой',
9176
+ var _a$9;
9177
+ var TeamUserRoleLocalization = (_a$9 = {},
9178
+ _a$9[TeamUserRole.member] = 'Пользователь',
9179
+ _a$9[TeamUserRole.moderator] = 'Модератор',
9180
+ _a$9[TeamUserRole.admin] = 'Владелец',
9181
+ _a$9[TeamUserRole.coach] = 'Тренер',
9182
+ _a$9[TeamUserRole.head_coach] = 'Главный тренер',
9183
+ _a$9[TeamUserRole.playing_coach] = 'Играющий тренер',
9184
+ _a$9[TeamUserRole.manager] = 'Менеджер',
9185
+ _a$9[TeamUserRole.head_manager] = 'Генеральный менеджер',
9186
+ _a$9[TeamUserRole.captain] = 'Капитан',
9187
+ _a$9[TeamUserRole.assistant] = 'Ассистент',
9107
9188
  _a$9);
9189
+
9190
+ var _a$a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
9191
+ var GameBasketballPositionLocalization = (_a$a = {},
9192
+ _a$a[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
9193
+ _a$a[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
9194
+ _a$a[GameBasketballPosition.small_forward] = 'Легкий форвард',
9195
+ _a$a[GameBasketballPosition.power_forward] = 'Мощный форвард',
9196
+ _a$a[GameBasketballPosition.center] = 'Центровой',
9197
+ _a$a);
9108
9198
  var GameBasketballPositionShortLocalization = (_b = {},
9109
9199
  _b[GameBasketballPosition.point_guard] = 'PG',
9110
9200
  _b[GameBasketballPosition.shooting_guard] = 'SG',
@@ -9173,31 +9263,31 @@ var GameRugbyPositionLocalization = (_m = {},
9173
9263
  _m[GameRugbyPosition.fullback] = 'Замыкающий',
9174
9264
  _m);
9175
9265
 
9176
- var _a$a;
9177
- var VolleyballGameLogTypeLocalization = (_a$a = {},
9178
- _a$a[VolleyballGameLogType.enter_game] = 'Выход на площадку',
9179
- _a$a[VolleyballGameLogType.exit_game] = 'Уход с площадки',
9180
- _a$a[VolleyballGameLogType.remove_game] = 'Удаление с площадки',
9181
- _a$a[VolleyballGameLogType.serve_ace] = 'Эйс',
9182
- _a$a[VolleyballGameLogType.serve_hit] = 'Подача',
9183
- _a$a[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
9184
- _a$a[VolleyballGameLogType.attack_spike] = 'Результативная атака',
9185
- _a$a[VolleyballGameLogType.attack_shot] = 'Атака',
9186
- _a$a[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
9187
- _a$a[VolleyballGameLogType.stuff_block] = 'Результативный блок',
9188
- _a$a[VolleyballGameLogType.block_rebound] = 'Блок',
9189
- _a$a[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
9190
- _a$a[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
9191
- _a$a[VolleyballGameLogType.receive] = 'Прием',
9192
- _a$a[VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
9193
- _a$a[VolleyballGameLogType.serve_receive] = 'Прием подачи',
9194
- _a$a[VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
9195
- _a$a[VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
9196
- _a$a[VolleyballGameLogType.point] = 'Очко',
9197
- _a$a[VolleyballGameLogType.fault] = 'Ошибка',
9198
- _a$a[VolleyballGameLogType.timeout] = 'Таймаут',
9199
- _a$a[VolleyballGameLogType.yellow_card] = 'Предупреждение',
9200
- _a$a);
9266
+ var _a$b;
9267
+ var VolleyballGameLogTypeLocalization = (_a$b = {},
9268
+ _a$b[VolleyballGameLogType.enter_game] = 'Выход на площадку',
9269
+ _a$b[VolleyballGameLogType.exit_game] = 'Уход с площадки',
9270
+ _a$b[VolleyballGameLogType.remove_game] = 'Удаление с площадки',
9271
+ _a$b[VolleyballGameLogType.serve_ace] = 'Эйс',
9272
+ _a$b[VolleyballGameLogType.serve_hit] = 'Подача',
9273
+ _a$b[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
9274
+ _a$b[VolleyballGameLogType.attack_spike] = 'Результативная атака',
9275
+ _a$b[VolleyballGameLogType.attack_shot] = 'Атака',
9276
+ _a$b[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
9277
+ _a$b[VolleyballGameLogType.stuff_block] = 'Результативный блок',
9278
+ _a$b[VolleyballGameLogType.block_rebound] = 'Блок',
9279
+ _a$b[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
9280
+ _a$b[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
9281
+ _a$b[VolleyballGameLogType.receive] = 'Прием',
9282
+ _a$b[VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
9283
+ _a$b[VolleyballGameLogType.serve_receive] = 'Прием подачи',
9284
+ _a$b[VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
9285
+ _a$b[VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
9286
+ _a$b[VolleyballGameLogType.point] = 'Очко',
9287
+ _a$b[VolleyballGameLogType.fault] = 'Ошибка',
9288
+ _a$b[VolleyballGameLogType.timeout] = 'Таймаут',
9289
+ _a$b[VolleyballGameLogType.yellow_card] = 'Предупреждение',
9290
+ _a$b);
9201
9291
 
9202
9292
  var LeaguePlaylist = /** @class */ (function (_super) {
9203
9293
  __extends(LeaguePlaylist, _super);
@@ -9648,5 +9738,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
9648
9738
  * Generated bundle index. Do not edit.
9649
9739
  */
9650
9740
 
9651
- export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
9741
+ export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyFoulSanctionLocalization, RugbyFoulSanctions, RugbyFoulType, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
9652
9742
  //# sourceMappingURL=mtgame-core.js.map