@mtgame/core 0.0.49 → 0.0.51
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/bundles/mtgame-core.umd.js +41 -0
- 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/models/hockey-game-statistic.js +4 -1
- package/esm2015/models/league-playlist.js +28 -0
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/tournament-season.js +6 -2
- package/esm5/models/hockey-game-statistic.js +8 -1
- package/esm5/models/league-playlist.js +33 -0
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/tournament-season.js +6 -2
- package/fesm2015/mtgame-core.js +32 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +41 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +1 -0
- package/models/league-playlist.d.ts +10 -0
- package/models/public-api.d.ts +1 -0
- package/models/tournament-season.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -908,12 +908,16 @@ var TournamentSeason = /** @class */ (function (_super) {
|
|
|
908
908
|
cover: 'cover',
|
|
909
909
|
preview_image: 'previewImage',
|
|
910
910
|
status: 'status',
|
|
911
|
+
start_date: 'startDate',
|
|
912
|
+
closed_date: 'closedDate',
|
|
911
913
|
},
|
|
912
914
|
relation: {
|
|
913
915
|
logo: File,
|
|
914
916
|
cover: File,
|
|
915
917
|
previewImage: File,
|
|
916
918
|
status: enumField(TournamentSeasonStatuses),
|
|
919
|
+
startDate: DateField,
|
|
920
|
+
closedDate: DateField,
|
|
917
921
|
}
|
|
918
922
|
})
|
|
919
923
|
], TournamentSeason);
|
|
@@ -2611,6 +2615,13 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2611
2615
|
enumerable: true,
|
|
2612
2616
|
configurable: true
|
|
2613
2617
|
});
|
|
2618
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "gameMinutes", {
|
|
2619
|
+
get: function () {
|
|
2620
|
+
return Math.floor(this.gameTime / 60);
|
|
2621
|
+
},
|
|
2622
|
+
enumerable: true,
|
|
2623
|
+
configurable: true
|
|
2624
|
+
});
|
|
2614
2625
|
HockeyGameStatistic.toFront = function (data) { };
|
|
2615
2626
|
HockeyGameStatistic.toBack = function (data) { };
|
|
2616
2627
|
__decorate([
|
|
@@ -6534,6 +6545,35 @@ var VolleyballGameLogTypeLocalization = (_a$6 = {},
|
|
|
6534
6545
|
_a$6[VolleyballGameLogType.yellow_card] = 'Предупреждение',
|
|
6535
6546
|
_a$6);
|
|
6536
6547
|
|
|
6548
|
+
var LeaguePlaylist = /** @class */ (function (_super) {
|
|
6549
|
+
__extends(LeaguePlaylist, _super);
|
|
6550
|
+
function LeaguePlaylist() {
|
|
6551
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6552
|
+
}
|
|
6553
|
+
LeaguePlaylist.toFront = function (data) { };
|
|
6554
|
+
LeaguePlaylist.toBack = function (data) { };
|
|
6555
|
+
__decorate([
|
|
6556
|
+
ToFrontHook
|
|
6557
|
+
], LeaguePlaylist, "toFront", null);
|
|
6558
|
+
__decorate([
|
|
6559
|
+
ToBackHook
|
|
6560
|
+
], LeaguePlaylist, "toBack", null);
|
|
6561
|
+
LeaguePlaylist = __decorate([
|
|
6562
|
+
ModelInstance({
|
|
6563
|
+
mappingFields: {
|
|
6564
|
+
id: 'id',
|
|
6565
|
+
name: 'name',
|
|
6566
|
+
files: 'files',
|
|
6567
|
+
key_code: 'keyCode',
|
|
6568
|
+
},
|
|
6569
|
+
relation: {
|
|
6570
|
+
files: listField(File)
|
|
6571
|
+
}
|
|
6572
|
+
})
|
|
6573
|
+
], LeaguePlaylist);
|
|
6574
|
+
return LeaguePlaylist;
|
|
6575
|
+
}(BaseModel));
|
|
6576
|
+
|
|
6537
6577
|
var CentrifugoService = /** @class */ (function () {
|
|
6538
6578
|
function CentrifugoService(httpClient, configService) {
|
|
6539
6579
|
this.httpClient = httpClient;
|
|
@@ -6949,5 +6989,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
|
|
|
6949
6989
|
* Generated bundle index. Do not edit.
|
|
6950
6990
|
*/
|
|
6951
6991
|
|
|
6952
|
-
export { BaseModel, BaseService, BaseStatistic, 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, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, 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, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa };
|
|
6992
|
+
export { BaseModel, BaseService, BaseStatistic, 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, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlaylist, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, 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, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl, penaltyTypeField as ɵa };
|
|
6953
6993
|
//# sourceMappingURL=mtgame-core.js.map
|