@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/fesm5/mtgame-core.js
CHANGED
|
@@ -957,9 +957,7 @@ var Organization = /** @class */ (function (_super) {
|
|
|
957
957
|
var League = /** @class */ (function (_super) {
|
|
958
958
|
__extends(League, _super);
|
|
959
959
|
function League() {
|
|
960
|
-
|
|
961
|
-
_this.documents = [];
|
|
962
|
-
return _this;
|
|
960
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
963
961
|
}
|
|
964
962
|
League.toFront = function (data) { };
|
|
965
963
|
League.toBack = function (data) { };
|
|
@@ -1008,14 +1006,12 @@ var League = /** @class */ (function (_super) {
|
|
|
1008
1006
|
closest_game_datetime: 'closestGameDatetime',
|
|
1009
1007
|
cover: 'cover',
|
|
1010
1008
|
about: 'about',
|
|
1011
|
-
documents: 'documents',
|
|
1012
1009
|
},
|
|
1013
1010
|
relation: {
|
|
1014
1011
|
organization: Organization,
|
|
1015
1012
|
logo: File,
|
|
1016
1013
|
cover: File,
|
|
1017
1014
|
sport: Sport,
|
|
1018
|
-
documents: listField(File),
|
|
1019
1015
|
}
|
|
1020
1016
|
})
|
|
1021
1017
|
], League);
|
|
@@ -2142,7 +2138,6 @@ var TournamentTeamUser = /** @class */ (function (_super) {
|
|
|
2142
2138
|
relation: {
|
|
2143
2139
|
tournamentTeam: TournamentTeam,
|
|
2144
2140
|
teamUser: TeamUser,
|
|
2145
|
-
photo: File,
|
|
2146
2141
|
disqualification: TournamentDisqualification,
|
|
2147
2142
|
leaguePlayer: LeaguePlayer,
|
|
2148
2143
|
}
|
|
@@ -2151,12 +2146,6 @@ var TournamentTeamUser = /** @class */ (function (_super) {
|
|
|
2151
2146
|
return TournamentTeamUser;
|
|
2152
2147
|
}(BaseModel));
|
|
2153
2148
|
|
|
2154
|
-
var BaseStatistic = /** @class */ (function () {
|
|
2155
|
-
function BaseStatistic() {
|
|
2156
|
-
}
|
|
2157
|
-
return BaseStatistic;
|
|
2158
|
-
}());
|
|
2159
|
-
|
|
2160
2149
|
var BasketballStatistic = /** @class */ (function (_super) {
|
|
2161
2150
|
__extends(BasketballStatistic, _super);
|
|
2162
2151
|
function BasketballStatistic() {
|
|
@@ -2221,6 +2210,7 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2221
2210
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
2222
2211
|
game_time: 'gameTime',
|
|
2223
2212
|
newbie: 'newbie',
|
|
2213
|
+
rank: 'rank',
|
|
2224
2214
|
},
|
|
2225
2215
|
relation: {
|
|
2226
2216
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -2233,7 +2223,7 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2233
2223
|
})
|
|
2234
2224
|
], BasketballStatistic);
|
|
2235
2225
|
return BasketballStatistic;
|
|
2236
|
-
}(
|
|
2226
|
+
}(BaseModel));
|
|
2237
2227
|
|
|
2238
2228
|
var BasketballGameTeamStatistic = /** @class */ (function (_super) {
|
|
2239
2229
|
__extends(BasketballGameTeamStatistic, _super);
|
|
@@ -3078,6 +3068,7 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
3078
3068
|
game_time: 'gameTime',
|
|
3079
3069
|
plus_minus: 'plusMinus',
|
|
3080
3070
|
newbie: 'newbie',
|
|
3071
|
+
rank: 'rank',
|
|
3081
3072
|
},
|
|
3082
3073
|
relation: {
|
|
3083
3074
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3090,7 +3081,7 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
3090
3081
|
})
|
|
3091
3082
|
], HockeyStatistic);
|
|
3092
3083
|
return HockeyStatistic;
|
|
3093
|
-
}(
|
|
3084
|
+
}(BaseModel));
|
|
3094
3085
|
|
|
3095
3086
|
var HockeyGameTeamStatistic = /** @class */ (function (_super) {
|
|
3096
3087
|
__extends(HockeyGameTeamStatistic, _super);
|
|
@@ -3568,7 +3559,8 @@ var FootballStatistic = /** @class */ (function (_super) {
|
|
|
3568
3559
|
free_kicks: 'freeKicks',
|
|
3569
3560
|
game_time: 'gameTime',
|
|
3570
3561
|
plus_minus: 'plusMinus',
|
|
3571
|
-
newbie: 'newbie'
|
|
3562
|
+
newbie: 'newbie',
|
|
3563
|
+
rank: 'rank',
|
|
3572
3564
|
},
|
|
3573
3565
|
relation: {
|
|
3574
3566
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -3581,7 +3573,7 @@ var FootballStatistic = /** @class */ (function (_super) {
|
|
|
3581
3573
|
})
|
|
3582
3574
|
], FootballStatistic);
|
|
3583
3575
|
return FootballStatistic;
|
|
3584
|
-
}(
|
|
3576
|
+
}(BaseModel));
|
|
3585
3577
|
|
|
3586
3578
|
var FootballGameTeamStatistic = /** @class */ (function (_super) {
|
|
3587
3579
|
__extends(FootballGameTeamStatistic, _super);
|
|
@@ -4004,7 +3996,8 @@ var HandballStatistic = /** @class */ (function (_super) {
|
|
|
4004
3996
|
total_goals: 'totalGoals',
|
|
4005
3997
|
total_saves: 'totalSaves',
|
|
4006
3998
|
total_goals_against: 'totalGoalsAgainst',
|
|
4007
|
-
newbie: 'newbie'
|
|
3999
|
+
newbie: 'newbie',
|
|
4000
|
+
rank: 'rank',
|
|
4008
4001
|
},
|
|
4009
4002
|
relation: {
|
|
4010
4003
|
tournamentTeamUser: TournamentTeamUser,
|
|
@@ -4017,7 +4010,7 @@ var HandballStatistic = /** @class */ (function (_super) {
|
|
|
4017
4010
|
})
|
|
4018
4011
|
], HandballStatistic);
|
|
4019
4012
|
return HandballStatistic;
|
|
4020
|
-
}(
|
|
4013
|
+
}(BaseModel));
|
|
4021
4014
|
|
|
4022
4015
|
var HandballGameTeamStatistic = /** @class */ (function (_super) {
|
|
4023
4016
|
__extends(HandballGameTeamStatistic, _super);
|
|
@@ -4399,6 +4392,7 @@ var VolleyballStatistic = /** @class */ (function (_super) {
|
|
|
4399
4392
|
points: 'points',
|
|
4400
4393
|
faults: 'faults',
|
|
4401
4394
|
newbie: 'newbie',
|
|
4395
|
+
rank: 'rank',
|
|
4402
4396
|
},
|
|
4403
4397
|
relation: {
|
|
4404
4398
|
team: Team,
|
|
@@ -4411,7 +4405,7 @@ var VolleyballStatistic = /** @class */ (function (_super) {
|
|
|
4411
4405
|
})
|
|
4412
4406
|
], VolleyballStatistic);
|
|
4413
4407
|
return VolleyballStatistic;
|
|
4414
|
-
}(
|
|
4408
|
+
}(BaseModel));
|
|
4415
4409
|
|
|
4416
4410
|
var TournamentStageTeam = /** @class */ (function (_super) {
|
|
4417
4411
|
__extends(TournamentStageTeam, _super);
|
|
@@ -5269,6 +5263,33 @@ var LeagueBanner = /** @class */ (function (_super) {
|
|
|
5269
5263
|
return LeagueBanner;
|
|
5270
5264
|
}(BaseModel));
|
|
5271
5265
|
|
|
5266
|
+
var LeagueDocument = /** @class */ (function (_super) {
|
|
5267
|
+
__extends(LeagueDocument, _super);
|
|
5268
|
+
function LeagueDocument() {
|
|
5269
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
5270
|
+
}
|
|
5271
|
+
LeagueDocument.toFront = function (data) { };
|
|
5272
|
+
LeagueDocument.toBack = function (data) { };
|
|
5273
|
+
__decorate([
|
|
5274
|
+
ToFrontHook
|
|
5275
|
+
], LeagueDocument, "toFront", null);
|
|
5276
|
+
__decorate([
|
|
5277
|
+
ToBackHook
|
|
5278
|
+
], LeagueDocument, "toBack", null);
|
|
5279
|
+
LeagueDocument = __decorate([
|
|
5280
|
+
ModelInstance({
|
|
5281
|
+
mappingFields: {
|
|
5282
|
+
id: 'id',
|
|
5283
|
+
file: 'file',
|
|
5284
|
+
},
|
|
5285
|
+
relation: {
|
|
5286
|
+
file: File,
|
|
5287
|
+
}
|
|
5288
|
+
})
|
|
5289
|
+
], LeagueDocument);
|
|
5290
|
+
return LeagueDocument;
|
|
5291
|
+
}(BaseModel));
|
|
5292
|
+
|
|
5272
5293
|
var LeagueApi = /** @class */ (function () {
|
|
5273
5294
|
function LeagueApi(httpClient, configService) {
|
|
5274
5295
|
this.httpClient = httpClient;
|
|
@@ -5400,6 +5421,13 @@ var LeagueApi = /** @class */ (function () {
|
|
|
5400
5421
|
});
|
|
5401
5422
|
});
|
|
5402
5423
|
};
|
|
5424
|
+
LeagueApi.prototype.getDocuments = function (leagueId) {
|
|
5425
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5426
|
+
return __generator(this, function (_a) {
|
|
5427
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/documents/").pipe(map(function (result) { return LeagueDocument.toFront(result); })).toPromise()];
|
|
5428
|
+
});
|
|
5429
|
+
});
|
|
5430
|
+
};
|
|
5403
5431
|
LeagueApi.ctorParameters = function () { return [
|
|
5404
5432
|
{ type: HttpClient },
|
|
5405
5433
|
{ type: ConfigService }
|
|
@@ -8680,5 +8708,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
|
|
|
8680
8708
|
* Generated bundle index. Do not edit.
|
|
8681
8709
|
*/
|
|
8682
8710
|
|
|
8683
|
-
export { BannerLocation, BaseModel, BaseService,
|
|
8711
|
+
export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
|
|
8684
8712
|
//# sourceMappingURL=mtgame-core.js.map
|