@mtgame/core 0.1.103 → 0.1.106
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/game-base-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +38 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/game-base-api.js +7 -1
- package/esm2015/models/game-user-disqualification.js +28 -0
- package/esm2015/models/game-user-limitation.js +3 -1
- package/fesm2015/mtgame-core.js +31 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game-user-disqualification.d.ts +8 -0
- package/models/game-user-limitation.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/game-base-api.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { GameUser } from '../models/game-user';
|
|
3
3
|
import { ConfigService } from '../services/config.service';
|
|
4
4
|
import { GameUserLimitations } from '../models/game-user-limitation';
|
|
5
|
+
import { GameUserDisqualification } from '../models/game-user-disqualification';
|
|
5
6
|
export declare class GameBaseApi {
|
|
6
7
|
protected httpClient: HttpClient;
|
|
7
8
|
protected configService: ConfigService;
|
|
@@ -9,5 +10,6 @@ export declare class GameBaseApi {
|
|
|
9
10
|
getUsers(gameId: number): Promise<GameUser[]>;
|
|
10
11
|
getMvp(gameId: number): Promise<GameUser[]>;
|
|
11
12
|
getUsersLimitation(gameId: number): Promise<GameUserLimitations[]>;
|
|
13
|
+
getUsersDisqualification(gameId: number): Promise<GameUserDisqualification[]>;
|
|
12
14
|
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
13
15
|
}
|
|
@@ -3509,6 +3509,8 @@
|
|
|
3509
3509
|
mappingFields: {
|
|
3510
3510
|
min_user_games_count: 'minUserGamesCount',
|
|
3511
3511
|
min_user_time: 'minUserTime',
|
|
3512
|
+
min_goalkeeper_user_games_count: 'minGoalkeeperUserGamesCount',
|
|
3513
|
+
min_goalkeeper_user_time: 'minGoalkeeperUserTime',
|
|
3512
3514
|
manual: 'manual',
|
|
3513
3515
|
},
|
|
3514
3516
|
})
|
|
@@ -3542,6 +3544,35 @@
|
|
|
3542
3544
|
})
|
|
3543
3545
|
], exports.GameUserLimitations);
|
|
3544
3546
|
|
|
3547
|
+
var GameUserDisqualification = /** @class */ (function (_super) {
|
|
3548
|
+
__extends(GameUserDisqualification, _super);
|
|
3549
|
+
function GameUserDisqualification() {
|
|
3550
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3551
|
+
}
|
|
3552
|
+
GameUserDisqualification.toFront = function (data) {
|
|
3553
|
+
};
|
|
3554
|
+
GameUserDisqualification.toBack = function (data) {
|
|
3555
|
+
};
|
|
3556
|
+
return GameUserDisqualification;
|
|
3557
|
+
}(BaseModel));
|
|
3558
|
+
__decorate([
|
|
3559
|
+
ToFrontHook
|
|
3560
|
+
], GameUserDisqualification, "toFront", null);
|
|
3561
|
+
__decorate([
|
|
3562
|
+
ToBackHook
|
|
3563
|
+
], GameUserDisqualification, "toBack", null);
|
|
3564
|
+
GameUserDisqualification = __decorate([
|
|
3565
|
+
ModelInstance({
|
|
3566
|
+
mappingFields: {
|
|
3567
|
+
tournament_team_user_id: 'tournamentTeamUserId',
|
|
3568
|
+
disqualification: 'disqualification'
|
|
3569
|
+
},
|
|
3570
|
+
relation: {
|
|
3571
|
+
disqualification: exports.TournamentDisqualification
|
|
3572
|
+
}
|
|
3573
|
+
})
|
|
3574
|
+
], GameUserDisqualification);
|
|
3575
|
+
|
|
3545
3576
|
var GameBaseApi = /** @class */ (function () {
|
|
3546
3577
|
function GameBaseApi(httpClient, configService) {
|
|
3547
3578
|
this.httpClient = httpClient;
|
|
@@ -3568,6 +3599,13 @@
|
|
|
3568
3599
|
});
|
|
3569
3600
|
});
|
|
3570
3601
|
};
|
|
3602
|
+
GameBaseApi.prototype.getUsersDisqualification = function (gameId) {
|
|
3603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3604
|
+
return __generator(this, function (_a) {
|
|
3605
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/org/api/v1/tournament_game/" + gameId + "/users_disqualification/").pipe(operators.map(function (result) { return GameUserDisqualification.toFront(result); })).toPromise()];
|
|
3606
|
+
});
|
|
3607
|
+
});
|
|
3608
|
+
};
|
|
3571
3609
|
GameBaseApi.prototype.downloadApplication = function (gameId, format, type) {
|
|
3572
3610
|
return __awaiter(this, void 0, void 0, function () {
|
|
3573
3611
|
return __generator(this, function (_a) {
|