@mtgame/core 0.1.1 → 0.1.3
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/public-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +58 -28
- 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/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-player.js +44 -0
- package/esm2015/models/public-api.js +2 -2
- package/esm2015/models/tournament-team-user.js +4 -18
- package/esm2015/models/volleyball-game-team-statistic.js +1 -1
- package/esm2015/models/volleyball-statistic.js +4 -4
- package/esm2015/mtgame-core.js +1 -2
- 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-player.js +61 -0
- package/esm5/models/public-api.js +2 -2
- package/esm5/models/tournament-team-user.js +4 -30
- package/esm5/models/volleyball-game-team-statistic.js +1 -1
- package/esm5/models/volleyball-statistic.js +4 -4
- package/esm5/mtgame-core.js +1 -2
- package/fesm2015/mtgame-core.js +47 -19
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +57 -27
- 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-player.d.ts +18 -0
- package/models/public-api.d.ts +3 -0
- package/models/tournament-team-user.d.ts +2 -10
- package/models/volleyball-game-team-statistic.d.ts +2 -1
- package/models/volleyball-statistic.d.ts +19 -2
- package/mtgame-core.d.ts +0 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
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';
|
|
@@ -2272,32 +2272,68 @@
|
|
|
2272
2272
|
return TournamentDisqualification;
|
|
2273
2273
|
}(BaseModel));
|
|
2274
2274
|
|
|
2275
|
-
var
|
|
2276
|
-
__extends(
|
|
2277
|
-
function
|
|
2275
|
+
var LeaguePlayer = /** @class */ (function (_super) {
|
|
2276
|
+
__extends(LeaguePlayer, _super);
|
|
2277
|
+
function LeaguePlayer() {
|
|
2278
2278
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2279
2279
|
}
|
|
2280
|
-
Object.defineProperty(
|
|
2280
|
+
Object.defineProperty(LeaguePlayer.prototype, "fullName", {
|
|
2281
2281
|
get: function () {
|
|
2282
2282
|
return [this.lastName, this.firstName, this.middleName].filter(function (s) { return s; }).join(' ');
|
|
2283
2283
|
},
|
|
2284
2284
|
enumerable: true,
|
|
2285
2285
|
configurable: true
|
|
2286
2286
|
});
|
|
2287
|
-
Object.defineProperty(
|
|
2287
|
+
Object.defineProperty(LeaguePlayer.prototype, "shortName", {
|
|
2288
2288
|
get: function () {
|
|
2289
2289
|
return [this.lastName, this.firstName].filter(function (s) { return s; }).join(' ');
|
|
2290
2290
|
},
|
|
2291
2291
|
enumerable: true,
|
|
2292
2292
|
configurable: true
|
|
2293
2293
|
});
|
|
2294
|
-
Object.defineProperty(
|
|
2294
|
+
Object.defineProperty(LeaguePlayer.prototype, "initials", {
|
|
2295
2295
|
get: function () {
|
|
2296
2296
|
return [this.lastName, this.firstName].filter(function (s) { return s; }).map(function (s) { return s.substr(0, 1); }).join('');
|
|
2297
2297
|
},
|
|
2298
2298
|
enumerable: true,
|
|
2299
2299
|
configurable: true
|
|
2300
2300
|
});
|
|
2301
|
+
LeaguePlayer.toFront = function (data) {
|
|
2302
|
+
};
|
|
2303
|
+
LeaguePlayer.toBack = function (data) {
|
|
2304
|
+
};
|
|
2305
|
+
__decorate([
|
|
2306
|
+
ToFrontHook
|
|
2307
|
+
], LeaguePlayer, "toFront", null);
|
|
2308
|
+
__decorate([
|
|
2309
|
+
ToBackHook
|
|
2310
|
+
], LeaguePlayer, "toBack", null);
|
|
2311
|
+
LeaguePlayer = __decorate([
|
|
2312
|
+
ModelInstance({
|
|
2313
|
+
mappingFields: {
|
|
2314
|
+
id: 'id',
|
|
2315
|
+
user_id: 'userId',
|
|
2316
|
+
league_id: 'leagueId',
|
|
2317
|
+
first_name: 'firstName',
|
|
2318
|
+
last_name: 'lastName',
|
|
2319
|
+
middle_name: 'middleName',
|
|
2320
|
+
photo: 'photo',
|
|
2321
|
+
has_changes: 'hasChanges',
|
|
2322
|
+
rating: 'rating'
|
|
2323
|
+
},
|
|
2324
|
+
relation: {
|
|
2325
|
+
photo: File,
|
|
2326
|
+
}
|
|
2327
|
+
})
|
|
2328
|
+
], LeaguePlayer);
|
|
2329
|
+
return LeaguePlayer;
|
|
2330
|
+
}(BaseModel));
|
|
2331
|
+
|
|
2332
|
+
var TournamentTeamUser = /** @class */ (function (_super) {
|
|
2333
|
+
__extends(TournamentTeamUser, _super);
|
|
2334
|
+
function TournamentTeamUser() {
|
|
2335
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2336
|
+
}
|
|
2301
2337
|
TournamentTeamUser.toFront = function (data) { };
|
|
2302
2338
|
TournamentTeamUser.toBack = function (data) { };
|
|
2303
2339
|
__decorate([
|
|
@@ -2313,31 +2349,20 @@
|
|
|
2313
2349
|
tournament_team: 'tournamentTeam',
|
|
2314
2350
|
team_user: 'teamUser',
|
|
2315
2351
|
disqualified: 'disqualified',
|
|
2316
|
-
first_name: 'firstName',
|
|
2317
|
-
last_name: 'lastName',
|
|
2318
|
-
middle_name: 'middleName',
|
|
2319
|
-
photo: 'photo',
|
|
2320
2352
|
disqualification: 'disqualification',
|
|
2321
|
-
|
|
2322
|
-
rating: 'rating'
|
|
2353
|
+
league_player: 'leaguePlayer',
|
|
2323
2354
|
},
|
|
2324
2355
|
relation: {
|
|
2325
2356
|
tournamentTeam: TournamentTeam,
|
|
2326
2357
|
teamUser: TeamUser,
|
|
2327
|
-
photo: File,
|
|
2328
2358
|
disqualification: TournamentDisqualification,
|
|
2359
|
+
leaguePlayer: LeaguePlayer,
|
|
2329
2360
|
}
|
|
2330
2361
|
})
|
|
2331
2362
|
], TournamentTeamUser);
|
|
2332
2363
|
return TournamentTeamUser;
|
|
2333
2364
|
}(BaseModel));
|
|
2334
2365
|
|
|
2335
|
-
var BaseStatistic = /** @class */ (function () {
|
|
2336
|
-
function BaseStatistic() {
|
|
2337
|
-
}
|
|
2338
|
-
return BaseStatistic;
|
|
2339
|
-
}());
|
|
2340
|
-
|
|
2341
2366
|
var BasketballStatistic = /** @class */ (function (_super) {
|
|
2342
2367
|
__extends(BasketballStatistic, _super);
|
|
2343
2368
|
function BasketballStatistic() {
|
|
@@ -2402,6 +2427,7 @@
|
|
|
2402
2427
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
2403
2428
|
game_time: 'gameTime',
|
|
2404
2429
|
newbie: 'newbie',
|
|
2430
|
+
rank: 'rank',
|
|
2405
2431
|
},
|
|
2406
2432
|
relation: {
|
|
2407
2433
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -2414,7 +2440,7 @@
|
|
|
2414
2440
|
})
|
|
2415
2441
|
], BasketballStatistic);
|
|
2416
2442
|
return BasketballStatistic;
|
|
2417
|
-
}(
|
|
2443
|
+
}(BaseModel));
|
|
2418
2444
|
|
|
2419
2445
|
var BasketballGameTeamStatistic = /** @class */ (function (_super) {
|
|
2420
2446
|
__extends(BasketballGameTeamStatistic, _super);
|
|
@@ -3259,6 +3285,7 @@
|
|
|
3259
3285
|
game_time: 'gameTime',
|
|
3260
3286
|
plus_minus: 'plusMinus',
|
|
3261
3287
|
newbie: 'newbie',
|
|
3288
|
+
rank: 'rank',
|
|
3262
3289
|
},
|
|
3263
3290
|
relation: {
|
|
3264
3291
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3271,7 +3298,7 @@
|
|
|
3271
3298
|
})
|
|
3272
3299
|
], HockeyStatistic);
|
|
3273
3300
|
return HockeyStatistic;
|
|
3274
|
-
}(
|
|
3301
|
+
}(BaseModel));
|
|
3275
3302
|
|
|
3276
3303
|
var HockeyGameTeamStatistic = /** @class */ (function (_super) {
|
|
3277
3304
|
__extends(HockeyGameTeamStatistic, _super);
|
|
@@ -3749,7 +3776,8 @@
|
|
|
3749
3776
|
free_kicks: 'freeKicks',
|
|
3750
3777
|
game_time: 'gameTime',
|
|
3751
3778
|
plus_minus: 'plusMinus',
|
|
3752
|
-
newbie: 'newbie'
|
|
3779
|
+
newbie: 'newbie',
|
|
3780
|
+
rank: 'rank',
|
|
3753
3781
|
},
|
|
3754
3782
|
relation: {
|
|
3755
3783
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3762,7 +3790,7 @@
|
|
|
3762
3790
|
})
|
|
3763
3791
|
], FootballStatistic);
|
|
3764
3792
|
return FootballStatistic;
|
|
3765
|
-
}(
|
|
3793
|
+
}(BaseModel));
|
|
3766
3794
|
|
|
3767
3795
|
var FootballGameTeamStatistic = /** @class */ (function (_super) {
|
|
3768
3796
|
__extends(FootballGameTeamStatistic, _super);
|
|
@@ -4185,7 +4213,8 @@
|
|
|
4185
4213
|
total_goals: 'totalGoals',
|
|
4186
4214
|
total_saves: 'totalSaves',
|
|
4187
4215
|
total_goals_against: 'totalGoalsAgainst',
|
|
4188
|
-
newbie: 'newbie'
|
|
4216
|
+
newbie: 'newbie',
|
|
4217
|
+
rank: 'rank',
|
|
4189
4218
|
},
|
|
4190
4219
|
relation: {
|
|
4191
4220
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -4198,7 +4227,7 @@
|
|
|
4198
4227
|
})
|
|
4199
4228
|
], HandballStatistic);
|
|
4200
4229
|
return HandballStatistic;
|
|
4201
|
-
}(
|
|
4230
|
+
}(BaseModel));
|
|
4202
4231
|
|
|
4203
4232
|
var HandballGameTeamStatistic = /** @class */ (function (_super) {
|
|
4204
4233
|
__extends(HandballGameTeamStatistic, _super);
|
|
@@ -4580,6 +4609,7 @@
|
|
|
4580
4609
|
points: 'points',
|
|
4581
4610
|
faults: 'faults',
|
|
4582
4611
|
newbie: 'newbie',
|
|
4612
|
+
rank: 'rank',
|
|
4583
4613
|
},
|
|
4584
4614
|
relation: {
|
|
4585
4615
|
team: Team,
|
|
@@ -4592,7 +4622,7 @@
|
|
|
4592
4622
|
})
|
|
4593
4623
|
], VolleyballStatistic);
|
|
4594
4624
|
return VolleyballStatistic;
|
|
4595
|
-
}(
|
|
4625
|
+
}(BaseModel));
|
|
4596
4626
|
|
|
4597
4627
|
var TournamentStageTeam = /** @class */ (function (_super) {
|
|
4598
4628
|
__extends(TournamentStageTeam, _super);
|
|
@@ -8859,7 +8889,6 @@
|
|
|
8859
8889
|
|
|
8860
8890
|
exports.BaseModel = BaseModel;
|
|
8861
8891
|
exports.BaseService = BaseService;
|
|
8862
|
-
exports.BaseStatistic = BaseStatistic;
|
|
8863
8892
|
exports.BasketballGameApi = BasketballGameApi;
|
|
8864
8893
|
exports.BasketballGameConfig = BasketballGameConfig;
|
|
8865
8894
|
exports.BasketballGameLog = BasketballGameLog;
|
|
@@ -8889,6 +8918,7 @@
|
|
|
8889
8918
|
exports.FootballStatistic = FootballStatistic;
|
|
8890
8919
|
exports.FootballWorkFootLocalization = FootballWorkFootLocalization;
|
|
8891
8920
|
exports.Game = Game;
|
|
8921
|
+
exports.GameBaseApi = GameBaseApi;
|
|
8892
8922
|
exports.GameBasketballPositionLocalization = GameBasketballPositionLocalization;
|
|
8893
8923
|
exports.GameBasketballPositionShortLocalization = GameBasketballPositionShortLocalization;
|
|
8894
8924
|
exports.GameFootballPositionLocalization = GameFootballPositionLocalization;
|
|
@@ -8926,6 +8956,7 @@
|
|
|
8926
8956
|
exports.LeagueNews = LeagueNews;
|
|
8927
8957
|
exports.LeagueNewsApi = LeagueNewsApi;
|
|
8928
8958
|
exports.LeaguePartner = LeaguePartner;
|
|
8959
|
+
exports.LeaguePlayer = LeaguePlayer;
|
|
8929
8960
|
exports.LeaguePlaylist = LeaguePlaylist;
|
|
8930
8961
|
exports.LocalStorageEngine = LocalStorageEngine;
|
|
8931
8962
|
exports.MODEL_MAPPING_FIELDS_KEY = MODEL_MAPPING_FIELDS_KEY;
|
|
@@ -9029,7 +9060,6 @@
|
|
|
9029
9060
|
exports.validateEmail = validateEmail;
|
|
9030
9061
|
exports.validatePhone = validatePhone;
|
|
9031
9062
|
exports.validateUrl = validateUrl;
|
|
9032
|
-
exports.ɵa = GameBaseApi;
|
|
9033
9063
|
|
|
9034
9064
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9035
9065
|
|