@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.
- package/api/volleyball-game-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +38 -26
- 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/volleyball-game-api.js +9 -1
- package/esm2015/models/game.js +4 -1
- package/esm5/api/volleyball-game-api.js +11 -1
- package/esm5/models/game.js +4 -1
- package/fesm2015/mtgame-core.js +31 -21
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +38 -26
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -13,5 +13,6 @@ 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
|
+
downloadProtocolLight(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
16
17
|
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
18
|
}
|
|
@@ -1892,6 +1892,32 @@
|
|
|
1892
1892
|
return Playoff;
|
|
1893
1893
|
}(BaseModel));
|
|
1894
1894
|
|
|
1895
|
+
var TournamentGroup = /** @class */ (function (_super) {
|
|
1896
|
+
__extends(TournamentGroup, _super);
|
|
1897
|
+
function TournamentGroup() {
|
|
1898
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1899
|
+
}
|
|
1900
|
+
TournamentGroup.toFront = function (data) { };
|
|
1901
|
+
TournamentGroup.toBack = function (data) { };
|
|
1902
|
+
__decorate([
|
|
1903
|
+
ToFrontHook
|
|
1904
|
+
], TournamentGroup, "toFront", null);
|
|
1905
|
+
__decorate([
|
|
1906
|
+
ToBackHook
|
|
1907
|
+
], TournamentGroup, "toBack", null);
|
|
1908
|
+
TournamentGroup = __decorate([
|
|
1909
|
+
ModelInstance({
|
|
1910
|
+
mappingFields: {
|
|
1911
|
+
id: 'id',
|
|
1912
|
+
name: 'name',
|
|
1913
|
+
sort: 'sort',
|
|
1914
|
+
tournament_stage_id: 'tournamentStageId'
|
|
1915
|
+
}
|
|
1916
|
+
})
|
|
1917
|
+
], TournamentGroup);
|
|
1918
|
+
return TournamentGroup;
|
|
1919
|
+
}(BaseModel));
|
|
1920
|
+
|
|
1895
1921
|
|
|
1896
1922
|
(function (GameStatuses) {
|
|
1897
1923
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -2009,6 +2035,7 @@
|
|
|
2009
2035
|
media_live_count: 'mediaLiveCount',
|
|
2010
2036
|
media: 'media',
|
|
2011
2037
|
tournament: 'tournament',
|
|
2038
|
+
tournament_group: 'tournamentGroup',
|
|
2012
2039
|
},
|
|
2013
2040
|
relation: {
|
|
2014
2041
|
status: enumField(exports.GameStatuses),
|
|
@@ -2025,6 +2052,7 @@
|
|
|
2025
2052
|
tournamentCourt: LeagueCourt,
|
|
2026
2053
|
media: listField(MediaItem),
|
|
2027
2054
|
tournament: Tournament,
|
|
2055
|
+
tournamentGroup: TournamentGroup,
|
|
2028
2056
|
}
|
|
2029
2057
|
})
|
|
2030
2058
|
], Game);
|
|
@@ -2242,32 +2270,6 @@
|
|
|
2242
2270
|
return ConfigService;
|
|
2243
2271
|
}(BaseService));
|
|
2244
2272
|
|
|
2245
|
-
var TournamentGroup = /** @class */ (function (_super) {
|
|
2246
|
-
__extends(TournamentGroup, _super);
|
|
2247
|
-
function TournamentGroup() {
|
|
2248
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2249
|
-
}
|
|
2250
|
-
TournamentGroup.toFront = function (data) { };
|
|
2251
|
-
TournamentGroup.toBack = function (data) { };
|
|
2252
|
-
__decorate([
|
|
2253
|
-
ToFrontHook
|
|
2254
|
-
], TournamentGroup, "toFront", null);
|
|
2255
|
-
__decorate([
|
|
2256
|
-
ToBackHook
|
|
2257
|
-
], TournamentGroup, "toBack", null);
|
|
2258
|
-
TournamentGroup = __decorate([
|
|
2259
|
-
ModelInstance({
|
|
2260
|
-
mappingFields: {
|
|
2261
|
-
id: 'id',
|
|
2262
|
-
name: 'name',
|
|
2263
|
-
sort: 'sort',
|
|
2264
|
-
tournament_stage_id: 'tournamentStageId'
|
|
2265
|
-
}
|
|
2266
|
-
})
|
|
2267
|
-
], TournamentGroup);
|
|
2268
|
-
return TournamentGroup;
|
|
2269
|
-
}(BaseModel));
|
|
2270
|
-
|
|
2271
2273
|
var TournamentTeam = /** @class */ (function (_super) {
|
|
2272
2274
|
__extends(TournamentTeam, _super);
|
|
2273
2275
|
function TournamentTeam() {
|
|
@@ -8273,6 +8275,16 @@
|
|
|
8273
8275
|
});
|
|
8274
8276
|
});
|
|
8275
8277
|
};
|
|
8278
|
+
VolleyballGameApi.prototype.downloadProtocolLight = function (gameId, format) {
|
|
8279
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8280
|
+
return __generator(this, function (_a) {
|
|
8281
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol_light/", {
|
|
8282
|
+
params: new http.HttpParams().set('file_type', format),
|
|
8283
|
+
responseType: 'blob'
|
|
8284
|
+
}).toPromise()];
|
|
8285
|
+
});
|
|
8286
|
+
});
|
|
8287
|
+
};
|
|
8276
8288
|
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
8277
8289
|
return __awaiter(this, void 0, void 0, function () {
|
|
8278
8290
|
return __generator(this, function (_a) {
|