@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
|
@@ -13,6 +13,6 @@ export declare class BasketballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<BasketballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, fileType: 'xlsx' | '
|
|
17
|
-
downloadFibaProtocol(gameId: number, fileType: 'xlsx' | '
|
|
16
|
+
downloadProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadFibaProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -13,6 +13,6 @@ export declare class FootballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<FootballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<FootballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<FootballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
package/api/hockey-game-api.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare class HockeyGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<HockeyGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<HockeyGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<HockeyGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -13,4 +13,5 @@ export declare class VolleyballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<VolleyballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<VolleyballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<VolleyballGameLog[]>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
16
17
|
}
|
|
@@ -2077,14 +2077,23 @@
|
|
|
2077
2077
|
TeamUserRole[TeamUserRole["member"] = 1] = "member";
|
|
2078
2078
|
TeamUserRole[TeamUserRole["moderator"] = 2] = "moderator";
|
|
2079
2079
|
TeamUserRole[TeamUserRole["admin"] = 3] = "admin";
|
|
2080
|
+
TeamUserRole[TeamUserRole["coach"] = 4] = "coach";
|
|
2081
|
+
TeamUserRole[TeamUserRole["head_coach"] = 5] = "head_coach";
|
|
2082
|
+
TeamUserRole[TeamUserRole["playing_coach"] = 6] = "playing_coach";
|
|
2083
|
+
TeamUserRole[TeamUserRole["manager"] = 7] = "manager";
|
|
2084
|
+
TeamUserRole[TeamUserRole["head_manager"] = 8] = "head_manager";
|
|
2085
|
+
TeamUserRole[TeamUserRole["captain"] = 9] = "captain";
|
|
2086
|
+
TeamUserRole[TeamUserRole["assistant"] = 10] = "assistant";
|
|
2080
2087
|
})(exports.TeamUserRole || (exports.TeamUserRole = {}));
|
|
2081
2088
|
var TeamUser = /** @class */ (function (_super) {
|
|
2082
2089
|
__extends(TeamUser, _super);
|
|
2083
2090
|
function TeamUser() {
|
|
2084
2091
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2085
2092
|
}
|
|
2086
|
-
TeamUser.toFront = function (data) {
|
|
2087
|
-
|
|
2093
|
+
TeamUser.toFront = function (data) {
|
|
2094
|
+
};
|
|
2095
|
+
TeamUser.toBack = function (teamPlayer) {
|
|
2096
|
+
};
|
|
2088
2097
|
__decorate([
|
|
2089
2098
|
ToFrontHook
|
|
2090
2099
|
], TeamUser, "toFront", null);
|
|
@@ -7298,6 +7307,16 @@
|
|
|
7298
7307
|
});
|
|
7299
7308
|
});
|
|
7300
7309
|
};
|
|
7310
|
+
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
7311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7312
|
+
return __generator(this, function (_a) {
|
|
7313
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol/", {
|
|
7314
|
+
params: new http.HttpParams().set('file_type', format),
|
|
7315
|
+
responseType: 'blob'
|
|
7316
|
+
}).toPromise()];
|
|
7317
|
+
});
|
|
7318
|
+
});
|
|
7319
|
+
};
|
|
7301
7320
|
VolleyballGameApi.ctorParameters = function () { return [
|
|
7302
7321
|
{ type: http.HttpClient },
|
|
7303
7322
|
{ type: ConfigService }
|
|
@@ -7455,9 +7474,16 @@
|
|
|
7455
7474
|
|
|
7456
7475
|
var _a$5;
|
|
7457
7476
|
var TeamUserRoleLocalization = (_a$5 = {},
|
|
7458
|
-
_a$5[exports.TeamUserRole.moderator] = 'Модератор',
|
|
7459
7477
|
_a$5[exports.TeamUserRole.member] = 'Пользователь',
|
|
7478
|
+
_a$5[exports.TeamUserRole.moderator] = 'Модератор',
|
|
7460
7479
|
_a$5[exports.TeamUserRole.admin] = 'Владелец',
|
|
7480
|
+
_a$5[exports.TeamUserRole.coach] = 'Тренер',
|
|
7481
|
+
_a$5[exports.TeamUserRole.head_coach] = 'Главный тренер',
|
|
7482
|
+
_a$5[exports.TeamUserRole.playing_coach] = 'Играющий тренер',
|
|
7483
|
+
_a$5[exports.TeamUserRole.manager] = 'Менеджер',
|
|
7484
|
+
_a$5[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
|
|
7485
|
+
_a$5[exports.TeamUserRole.captain] = 'Капитан',
|
|
7486
|
+
_a$5[exports.TeamUserRole.assistant] = 'Ассистент',
|
|
7461
7487
|
_a$5);
|
|
7462
7488
|
|
|
7463
7489
|
var _a$6, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -7530,10 +7556,10 @@
|
|
|
7530
7556
|
_a$7[exports.VolleyballGameLogType.serve_hit] = 'Подача',
|
|
7531
7557
|
_a$7[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
|
|
7532
7558
|
_a$7[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
|
|
7533
|
-
_a$7[exports.VolleyballGameLogType.attack_shot] = '
|
|
7559
|
+
_a$7[exports.VolleyballGameLogType.attack_shot] = 'Атака',
|
|
7534
7560
|
_a$7[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
|
|
7535
7561
|
_a$7[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
|
|
7536
|
-
_a$7[exports.VolleyballGameLogType.block_rebound] = '
|
|
7562
|
+
_a$7[exports.VolleyballGameLogType.block_rebound] = 'Блок',
|
|
7537
7563
|
_a$7[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
|
|
7538
7564
|
_a$7[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
|
|
7539
7565
|
_a$7[exports.VolleyballGameLogType.receive] = 'Прием',
|