@mtgame/core 0.1.2 → 0.1.4
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/league-api.d.ts +2 -0
- package/api/public-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +49 -22
- 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/league-api.js +7 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/models/base-statistic.js +1 -3
- package/esm2015/models/basketball-game-team-statistic.js +1 -1
- package/esm2015/models/basketball-statistic.js +4 -4
- package/esm2015/models/football-game-team-statistic.js +1 -1
- package/esm2015/models/football-statistic.js +5 -5
- package/esm2015/models/game-team-statistic-base.js +1 -0
- package/esm2015/models/handball-game-team-statistic.js +1 -1
- package/esm2015/models/handball-statistic.js +5 -5
- package/esm2015/models/hockey-game-team-statistic.js +1 -1
- package/esm2015/models/hockey-statistic.js +4 -4
- package/esm2015/models/league-document.js +26 -0
- package/esm2015/models/league.js +2 -8
- package/esm2015/models/public-api.js +2 -2
- package/esm2015/models/tournament-team-user.js +1 -3
- package/esm2015/models/volleyball-game-team-statistic.js +1 -1
- package/esm2015/models/volleyball-statistic.js +4 -4
- package/esm2015/mtgame-core.js +1 -3
- package/esm5/api/league-api.js +9 -1
- package/esm5/api/public-api.js +2 -1
- package/esm5/models/base-statistic.js +1 -7
- package/esm5/models/basketball-game-team-statistic.js +1 -1
- package/esm5/models/basketball-statistic.js +4 -4
- package/esm5/models/football-game-team-statistic.js +1 -1
- package/esm5/models/football-statistic.js +5 -5
- package/esm5/models/game-team-statistic-base.js +1 -0
- package/esm5/models/handball-game-team-statistic.js +1 -1
- package/esm5/models/handball-statistic.js +5 -5
- package/esm5/models/hockey-game-team-statistic.js +1 -1
- package/esm5/models/hockey-statistic.js +4 -4
- package/esm5/models/league-document.js +31 -0
- package/esm5/models/league.js +3 -7
- package/esm5/models/public-api.js +2 -2
- package/esm5/models/tournament-team-user.js +1 -3
- package/esm5/models/volleyball-game-team-statistic.js +1 -1
- package/esm5/models/volleyball-statistic.js +4 -4
- package/esm5/mtgame-core.js +1 -3
- package/fesm2015/mtgame-core.js +40 -18
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +48 -20
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/base-statistic.d.ts +1 -1
- package/models/basketball-game-team-statistic.d.ts +2 -1
- package/models/basketball-statistic.d.ts +3 -1
- package/models/football-game-team-statistic.d.ts +2 -1
- package/models/football-statistic.d.ts +3 -1
- package/models/game-team-statistic-base.d.ts +5 -0
- package/models/handball-game-team-statistic.d.ts +2 -1
- package/models/handball-statistic.d.ts +3 -1
- package/models/hockey-game-team-statistic.d.ts +2 -1
- package/models/hockey-statistic.d.ts +3 -1
- package/models/league-document.d.ts +8 -0
- package/models/league.d.ts +0 -1
- package/models/public-api.d.ts +3 -0
- package/models/volleyball-game-team-statistic.d.ts +2 -1
- package/models/volleyball-statistic.d.ts +19 -2
- package/mtgame-core.d.ts +0 -2
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/league-api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Game } from '../models/game';
|
|
|
10
10
|
import { LeaguePartner } from '../models/league-partner';
|
|
11
11
|
import { LeagueCourt } from '../models/league-court';
|
|
12
12
|
import { BannerLocation, LeagueBanner } from '../models/league-banner';
|
|
13
|
+
import { LeagueDocument } from '../models/league-document';
|
|
13
14
|
export interface TournamentListFilters {
|
|
14
15
|
statuses: TournamentStatuses[];
|
|
15
16
|
}
|
|
@@ -28,4 +29,5 @@ export declare class LeagueApi {
|
|
|
28
29
|
getBanners(leagueId: number, location?: BannerLocation): Promise<LeagueBanner[]>;
|
|
29
30
|
getCourts(leagueId: number): Promise<LeagueCourt[]>;
|
|
30
31
|
getGraphicSettings(leagueId: number): Promise<any>;
|
|
32
|
+
getDocuments(leagueId: number): Promise<LeagueDocument[]>;
|
|
31
33
|
}
|
package/api/public-api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { BasketballGameApi } from './basketball-game-api';
|
|
2
2
|
export * from './feedback-api';
|
|
3
3
|
export * from './file-api';
|
|
4
|
+
export * from './game-base-api';
|
|
4
5
|
export * from './hockey-game-api';
|
|
5
6
|
export * from './football-game-api';
|
|
6
7
|
export * from './handball-game-api';
|
|
@@ -1170,9 +1170,7 @@
|
|
|
1170
1170
|
var League = /** @class */ (function (_super) {
|
|
1171
1171
|
__extends(League, _super);
|
|
1172
1172
|
function League() {
|
|
1173
|
-
|
|
1174
|
-
_this.documents = [];
|
|
1175
|
-
return _this;
|
|
1173
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1176
1174
|
}
|
|
1177
1175
|
League.toFront = function (data) { };
|
|
1178
1176
|
League.toBack = function (data) { };
|
|
@@ -1221,14 +1219,12 @@
|
|
|
1221
1219
|
closest_game_datetime: 'closestGameDatetime',
|
|
1222
1220
|
cover: 'cover',
|
|
1223
1221
|
about: 'about',
|
|
1224
|
-
documents: 'documents',
|
|
1225
1222
|
},
|
|
1226
1223
|
relation: {
|
|
1227
1224
|
organization: Organization,
|
|
1228
1225
|
logo: File,
|
|
1229
1226
|
cover: File,
|
|
1230
1227
|
sport: Sport,
|
|
1231
|
-
documents: listField(File),
|
|
1232
1228
|
}
|
|
1233
1229
|
})
|
|
1234
1230
|
], League);
|
|
@@ -2355,7 +2351,6 @@
|
|
|
2355
2351
|
relation: {
|
|
2356
2352
|
tournamentTeam: TournamentTeam,
|
|
2357
2353
|
teamUser: TeamUser,
|
|
2358
|
-
photo: File,
|
|
2359
2354
|
disqualification: TournamentDisqualification,
|
|
2360
2355
|
leaguePlayer: LeaguePlayer,
|
|
2361
2356
|
}
|
|
@@ -2364,12 +2359,6 @@
|
|
|
2364
2359
|
return TournamentTeamUser;
|
|
2365
2360
|
}(BaseModel));
|
|
2366
2361
|
|
|
2367
|
-
var BaseStatistic = /** @class */ (function () {
|
|
2368
|
-
function BaseStatistic() {
|
|
2369
|
-
}
|
|
2370
|
-
return BaseStatistic;
|
|
2371
|
-
}());
|
|
2372
|
-
|
|
2373
2362
|
var BasketballStatistic = /** @class */ (function (_super) {
|
|
2374
2363
|
__extends(BasketballStatistic, _super);
|
|
2375
2364
|
function BasketballStatistic() {
|
|
@@ -2434,6 +2423,7 @@
|
|
|
2434
2423
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
2435
2424
|
game_time: 'gameTime',
|
|
2436
2425
|
newbie: 'newbie',
|
|
2426
|
+
rank: 'rank',
|
|
2437
2427
|
},
|
|
2438
2428
|
relation: {
|
|
2439
2429
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -2446,7 +2436,7 @@
|
|
|
2446
2436
|
})
|
|
2447
2437
|
], BasketballStatistic);
|
|
2448
2438
|
return BasketballStatistic;
|
|
2449
|
-
}(
|
|
2439
|
+
}(BaseModel));
|
|
2450
2440
|
|
|
2451
2441
|
var BasketballGameTeamStatistic = /** @class */ (function (_super) {
|
|
2452
2442
|
__extends(BasketballGameTeamStatistic, _super);
|
|
@@ -3291,6 +3281,7 @@
|
|
|
3291
3281
|
game_time: 'gameTime',
|
|
3292
3282
|
plus_minus: 'plusMinus',
|
|
3293
3283
|
newbie: 'newbie',
|
|
3284
|
+
rank: 'rank',
|
|
3294
3285
|
},
|
|
3295
3286
|
relation: {
|
|
3296
3287
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3303,7 +3294,7 @@
|
|
|
3303
3294
|
})
|
|
3304
3295
|
], HockeyStatistic);
|
|
3305
3296
|
return HockeyStatistic;
|
|
3306
|
-
}(
|
|
3297
|
+
}(BaseModel));
|
|
3307
3298
|
|
|
3308
3299
|
var HockeyGameTeamStatistic = /** @class */ (function (_super) {
|
|
3309
3300
|
__extends(HockeyGameTeamStatistic, _super);
|
|
@@ -3781,7 +3772,8 @@
|
|
|
3781
3772
|
free_kicks: 'freeKicks',
|
|
3782
3773
|
game_time: 'gameTime',
|
|
3783
3774
|
plus_minus: 'plusMinus',
|
|
3784
|
-
newbie: 'newbie'
|
|
3775
|
+
newbie: 'newbie',
|
|
3776
|
+
rank: 'rank',
|
|
3785
3777
|
},
|
|
3786
3778
|
relation: {
|
|
3787
3779
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3794,7 +3786,7 @@
|
|
|
3794
3786
|
})
|
|
3795
3787
|
], FootballStatistic);
|
|
3796
3788
|
return FootballStatistic;
|
|
3797
|
-
}(
|
|
3789
|
+
}(BaseModel));
|
|
3798
3790
|
|
|
3799
3791
|
var FootballGameTeamStatistic = /** @class */ (function (_super) {
|
|
3800
3792
|
__extends(FootballGameTeamStatistic, _super);
|
|
@@ -4217,7 +4209,8 @@
|
|
|
4217
4209
|
total_goals: 'totalGoals',
|
|
4218
4210
|
total_saves: 'totalSaves',
|
|
4219
4211
|
total_goals_against: 'totalGoalsAgainst',
|
|
4220
|
-
newbie: 'newbie'
|
|
4212
|
+
newbie: 'newbie',
|
|
4213
|
+
rank: 'rank',
|
|
4221
4214
|
},
|
|
4222
4215
|
relation: {
|
|
4223
4216
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -4230,7 +4223,7 @@
|
|
|
4230
4223
|
})
|
|
4231
4224
|
], HandballStatistic);
|
|
4232
4225
|
return HandballStatistic;
|
|
4233
|
-
}(
|
|
4226
|
+
}(BaseModel));
|
|
4234
4227
|
|
|
4235
4228
|
var HandballGameTeamStatistic = /** @class */ (function (_super) {
|
|
4236
4229
|
__extends(HandballGameTeamStatistic, _super);
|
|
@@ -4612,6 +4605,7 @@
|
|
|
4612
4605
|
points: 'points',
|
|
4613
4606
|
faults: 'faults',
|
|
4614
4607
|
newbie: 'newbie',
|
|
4608
|
+
rank: 'rank',
|
|
4615
4609
|
},
|
|
4616
4610
|
relation: {
|
|
4617
4611
|
team: Team,
|
|
@@ -4624,7 +4618,7 @@
|
|
|
4624
4618
|
})
|
|
4625
4619
|
], VolleyballStatistic);
|
|
4626
4620
|
return VolleyballStatistic;
|
|
4627
|
-
}(
|
|
4621
|
+
}(BaseModel));
|
|
4628
4622
|
|
|
4629
4623
|
var TournamentStageTeam = /** @class */ (function (_super) {
|
|
4630
4624
|
__extends(TournamentStageTeam, _super);
|
|
@@ -5482,6 +5476,33 @@
|
|
|
5482
5476
|
return LeagueBanner;
|
|
5483
5477
|
}(BaseModel));
|
|
5484
5478
|
|
|
5479
|
+
var LeagueDocument = /** @class */ (function (_super) {
|
|
5480
|
+
__extends(LeagueDocument, _super);
|
|
5481
|
+
function LeagueDocument() {
|
|
5482
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
5483
|
+
}
|
|
5484
|
+
LeagueDocument.toFront = function (data) { };
|
|
5485
|
+
LeagueDocument.toBack = function (data) { };
|
|
5486
|
+
__decorate([
|
|
5487
|
+
ToFrontHook
|
|
5488
|
+
], LeagueDocument, "toFront", null);
|
|
5489
|
+
__decorate([
|
|
5490
|
+
ToBackHook
|
|
5491
|
+
], LeagueDocument, "toBack", null);
|
|
5492
|
+
LeagueDocument = __decorate([
|
|
5493
|
+
ModelInstance({
|
|
5494
|
+
mappingFields: {
|
|
5495
|
+
id: 'id',
|
|
5496
|
+
file: 'file',
|
|
5497
|
+
},
|
|
5498
|
+
relation: {
|
|
5499
|
+
file: File,
|
|
5500
|
+
}
|
|
5501
|
+
})
|
|
5502
|
+
], LeagueDocument);
|
|
5503
|
+
return LeagueDocument;
|
|
5504
|
+
}(BaseModel));
|
|
5505
|
+
|
|
5485
5506
|
var LeagueApi = /** @class */ (function () {
|
|
5486
5507
|
function LeagueApi(httpClient, configService) {
|
|
5487
5508
|
this.httpClient = httpClient;
|
|
@@ -5613,6 +5634,13 @@
|
|
|
5613
5634
|
});
|
|
5614
5635
|
});
|
|
5615
5636
|
};
|
|
5637
|
+
LeagueApi.prototype.getDocuments = function (leagueId) {
|
|
5638
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5639
|
+
return __generator(this, function (_a) {
|
|
5640
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/documents/").pipe(operators.map(function (result) { return LeagueDocument.toFront(result); })).toPromise()];
|
|
5641
|
+
});
|
|
5642
|
+
});
|
|
5643
|
+
};
|
|
5616
5644
|
LeagueApi.ctorParameters = function () { return [
|
|
5617
5645
|
{ type: http.HttpClient },
|
|
5618
5646
|
{ type: ConfigService }
|
|
@@ -8891,7 +8919,6 @@
|
|
|
8891
8919
|
|
|
8892
8920
|
exports.BaseModel = BaseModel;
|
|
8893
8921
|
exports.BaseService = BaseService;
|
|
8894
|
-
exports.BaseStatistic = BaseStatistic;
|
|
8895
8922
|
exports.BasketballGameApi = BasketballGameApi;
|
|
8896
8923
|
exports.BasketballGameConfig = BasketballGameConfig;
|
|
8897
8924
|
exports.BasketballGameLog = BasketballGameLog;
|
|
@@ -8921,6 +8948,7 @@
|
|
|
8921
8948
|
exports.FootballStatistic = FootballStatistic;
|
|
8922
8949
|
exports.FootballWorkFootLocalization = FootballWorkFootLocalization;
|
|
8923
8950
|
exports.Game = Game;
|
|
8951
|
+
exports.GameBaseApi = GameBaseApi;
|
|
8924
8952
|
exports.GameBasketballPositionLocalization = GameBasketballPositionLocalization;
|
|
8925
8953
|
exports.GameBasketballPositionShortLocalization = GameBasketballPositionShortLocalization;
|
|
8926
8954
|
exports.GameFootballPositionLocalization = GameFootballPositionLocalization;
|
|
@@ -8958,6 +8986,7 @@
|
|
|
8958
8986
|
exports.LeagueNews = LeagueNews;
|
|
8959
8987
|
exports.LeagueNewsApi = LeagueNewsApi;
|
|
8960
8988
|
exports.LeaguePartner = LeaguePartner;
|
|
8989
|
+
exports.LeaguePlayer = LeaguePlayer;
|
|
8961
8990
|
exports.LeaguePlaylist = LeaguePlaylist;
|
|
8962
8991
|
exports.LocalStorageEngine = LocalStorageEngine;
|
|
8963
8992
|
exports.MODEL_MAPPING_FIELDS_KEY = MODEL_MAPPING_FIELDS_KEY;
|
|
@@ -9061,8 +9090,6 @@
|
|
|
9061
9090
|
exports.validateEmail = validateEmail;
|
|
9062
9091
|
exports.validatePhone = validatePhone;
|
|
9063
9092
|
exports.validateUrl = validateUrl;
|
|
9064
|
-
exports.ɵa = GameBaseApi;
|
|
9065
|
-
exports.ɵb = LeaguePlayer;
|
|
9066
9093
|
|
|
9067
9094
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9068
9095
|
|