@mtgame/core 0.0.57 → 0.0.59
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/basketball-game-api.d.ts +2 -2
- package/api/football-game-api.d.ts +2 -2
- package/api/hockey-game-api.d.ts +2 -2
- package/api/volleyball-game-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +31 -5
- 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/basketball-game-api.js +1 -1
- package/esm2015/api/football-game-api.js +1 -1
- package/esm2015/api/hockey-game-api.js +1 -1
- package/esm2015/api/volleyball-game-api.js +10 -2
- package/esm2015/localization/team-user-role.js +9 -2
- package/esm2015/localization/volleyball-game-log-types.js +3 -3
- package/esm2015/models/team-user.js +12 -3
- package/esm5/api/basketball-game-api.js +1 -1
- package/esm5/api/football-game-api.js +1 -1
- package/esm5/api/hockey-game-api.js +1 -1
- package/esm5/api/volleyball-game-api.js +12 -2
- package/esm5/localization/team-user-role.js +9 -2
- package/esm5/localization/volleyball-game-log-types.js +3 -3
- package/esm5/models/team-user.js +12 -3
- package/fesm2015/mtgame-core.js +29 -5
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +31 -5
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/team-user-role.d.ts +8 -1
- package/models/team-user.d.ts +8 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -1864,14 +1864,23 @@ var TeamUserRole;
|
|
|
1864
1864
|
TeamUserRole[TeamUserRole["member"] = 1] = "member";
|
|
1865
1865
|
TeamUserRole[TeamUserRole["moderator"] = 2] = "moderator";
|
|
1866
1866
|
TeamUserRole[TeamUserRole["admin"] = 3] = "admin";
|
|
1867
|
+
TeamUserRole[TeamUserRole["coach"] = 4] = "coach";
|
|
1868
|
+
TeamUserRole[TeamUserRole["head_coach"] = 5] = "head_coach";
|
|
1869
|
+
TeamUserRole[TeamUserRole["playing_coach"] = 6] = "playing_coach";
|
|
1870
|
+
TeamUserRole[TeamUserRole["manager"] = 7] = "manager";
|
|
1871
|
+
TeamUserRole[TeamUserRole["head_manager"] = 8] = "head_manager";
|
|
1872
|
+
TeamUserRole[TeamUserRole["captain"] = 9] = "captain";
|
|
1873
|
+
TeamUserRole[TeamUserRole["assistant"] = 10] = "assistant";
|
|
1867
1874
|
})(TeamUserRole || (TeamUserRole = {}));
|
|
1868
1875
|
var TeamUser = /** @class */ (function (_super) {
|
|
1869
1876
|
__extends(TeamUser, _super);
|
|
1870
1877
|
function TeamUser() {
|
|
1871
1878
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1872
1879
|
}
|
|
1873
|
-
TeamUser.toFront = function (data) {
|
|
1874
|
-
|
|
1880
|
+
TeamUser.toFront = function (data) {
|
|
1881
|
+
};
|
|
1882
|
+
TeamUser.toBack = function (teamPlayer) {
|
|
1883
|
+
};
|
|
1875
1884
|
__decorate([
|
|
1876
1885
|
ToFrontHook
|
|
1877
1886
|
], TeamUser, "toFront", null);
|
|
@@ -7085,6 +7094,16 @@ var VolleyballGameApi = /** @class */ (function (_super) {
|
|
|
7085
7094
|
});
|
|
7086
7095
|
});
|
|
7087
7096
|
};
|
|
7097
|
+
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
7098
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7099
|
+
return __generator(this, function (_a) {
|
|
7100
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol/", {
|
|
7101
|
+
params: new HttpParams().set('file_type', format),
|
|
7102
|
+
responseType: 'blob'
|
|
7103
|
+
}).toPromise()];
|
|
7104
|
+
});
|
|
7105
|
+
});
|
|
7106
|
+
};
|
|
7088
7107
|
VolleyballGameApi.ctorParameters = function () { return [
|
|
7089
7108
|
{ type: HttpClient },
|
|
7090
7109
|
{ type: ConfigService }
|
|
@@ -7242,9 +7261,16 @@ var OvertimeTypeLocalization = (_a$4 = {},
|
|
|
7242
7261
|
|
|
7243
7262
|
var _a$5;
|
|
7244
7263
|
var TeamUserRoleLocalization = (_a$5 = {},
|
|
7245
|
-
_a$5[TeamUserRole.moderator] = 'Модератор',
|
|
7246
7264
|
_a$5[TeamUserRole.member] = 'Пользователь',
|
|
7265
|
+
_a$5[TeamUserRole.moderator] = 'Модератор',
|
|
7247
7266
|
_a$5[TeamUserRole.admin] = 'Владелец',
|
|
7267
|
+
_a$5[TeamUserRole.coach] = 'Тренер',
|
|
7268
|
+
_a$5[TeamUserRole.head_coach] = 'Главный тренер',
|
|
7269
|
+
_a$5[TeamUserRole.playing_coach] = 'Играющий тренер',
|
|
7270
|
+
_a$5[TeamUserRole.manager] = 'Менеджер',
|
|
7271
|
+
_a$5[TeamUserRole.head_manager] = 'Генеральный менеджер',
|
|
7272
|
+
_a$5[TeamUserRole.captain] = 'Капитан',
|
|
7273
|
+
_a$5[TeamUserRole.assistant] = 'Ассистент',
|
|
7248
7274
|
_a$5);
|
|
7249
7275
|
|
|
7250
7276
|
var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -7317,10 +7343,10 @@ var VolleyballGameLogTypeLocalization = (_a$7 = {},
|
|
|
7317
7343
|
_a$7[VolleyballGameLogType.serve_hit] = 'Подача',
|
|
7318
7344
|
_a$7[VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
|
|
7319
7345
|
_a$7[VolleyballGameLogType.attack_spike] = 'Результативная атака',
|
|
7320
|
-
_a$7[VolleyballGameLogType.attack_shot] = '
|
|
7346
|
+
_a$7[VolleyballGameLogType.attack_shot] = 'Атака',
|
|
7321
7347
|
_a$7[VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
|
|
7322
7348
|
_a$7[VolleyballGameLogType.stuff_block] = 'Результативный блок',
|
|
7323
|
-
_a$7[VolleyballGameLogType.block_rebound] = '
|
|
7349
|
+
_a$7[VolleyballGameLogType.block_rebound] = 'Блок',
|
|
7324
7350
|
_a$7[VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
|
|
7325
7351
|
_a$7[VolleyballGameLogType.excellent_receive] = 'Отличный прием',
|
|
7326
7352
|
_a$7[VolleyballGameLogType.receive] = 'Прием',
|