@mtgame/core 0.0.5 → 0.0.7

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.
@@ -325,6 +325,8 @@ var SportTypes;
325
325
  SportTypes[SportTypes["volleyball"] = 2] = "volleyball";
326
326
  SportTypes[SportTypes["classic_basketball"] = 3] = "classic_basketball";
327
327
  SportTypes[SportTypes["streetball"] = 4] = "streetball";
328
+ SportTypes[SportTypes["classic_volleyball"] = 5] = "classic_volleyball";
329
+ SportTypes[SportTypes["beach_volleyball"] = 6] = "beach_volleyball";
328
330
  })(SportTypes || (SportTypes = {}));
329
331
  var Sport = /** @class */ (function (_super) {
330
332
  __extends(Sport, _super);
@@ -337,11 +339,17 @@ var Sport = /** @class */ (function (_super) {
337
339
  Sport.prototype.isClassicBasketball = function () {
338
340
  return this.id === SportTypes.classic_basketball;
339
341
  };
342
+ Sport.prototype.isStreetball = function () {
343
+ return this.id === SportTypes.streetball;
344
+ };
340
345
  Sport.prototype.isVolleyball = function () {
341
346
  return this.id === SportTypes.volleyball || this.parentId === SportTypes.volleyball;
342
347
  };
343
- Sport.prototype.isStreetball = function () {
344
- return this.id === SportTypes.streetball;
348
+ Sport.prototype.isClassicVolleyball = function () {
349
+ return this.id === SportTypes.classic_volleyball;
350
+ };
351
+ Sport.prototype.isBeachVolleyball = function () {
352
+ return this.id === SportTypes.beach_volleyball;
345
353
  };
346
354
  Sport.toFront = function (data) {
347
355
  return null;
@@ -726,6 +734,7 @@ var League = /** @class */ (function (_super) {
726
734
  tournaments_count: 'tournamentsCount',
727
735
  closest_game_datetime: 'closestGameDatetime',
728
736
  cover: 'cover',
737
+ about: 'about',
729
738
  },
730
739
  relation: {
731
740
  organization: Organization,
@@ -898,6 +907,7 @@ var Tournament = /** @class */ (function (_super) {
898
907
  relation: {
899
908
  logo: File,
900
909
  cover: File,
910
+ previewImage: File,
901
911
  city: City,
902
912
  sport: Sport,
903
913
  regulationFile: File,
@@ -3982,6 +3992,11 @@ function getArrayChunks(array, length) {
3982
3992
  return chunks;
3983
3993
  }
3984
3994
 
3995
+ var PlayoffTypes;
3996
+ (function (PlayoffTypes) {
3997
+ PlayoffTypes["double_elimination"] = "double_elimination";
3998
+ PlayoffTypes["elimination"] = "elimination";
3999
+ })(PlayoffTypes || (PlayoffTypes = {}));
3985
4000
  var PlayoffSettings = /** @class */ (function (_super) {
3986
4001
  __extends(PlayoffSettings, _super);
3987
4002
  function PlayoffSettings() {
@@ -4001,7 +4016,11 @@ var PlayoffSettings = /** @class */ (function (_super) {
4001
4016
  rounds: 'rounds',
4002
4017
  final_rounds: 'finalRounds',
4003
4018
  third_place_rounds: 'thirdPlaceRounds',
4004
- teams_count: 'teamsCount'
4019
+ teams_count: 'teamsCount',
4020
+ type: 'type',
4021
+ },
4022
+ relation: {
4023
+ type: enumField(PlayoffTypes)
4005
4024
  }
4006
4025
  })
4007
4026
  ], PlayoffSettings);
@@ -5700,5 +5719,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
5700
5719
  * Generated bundle index. Do not edit.
5701
5720
  */
5702
5721
 
5703
- export { 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, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, 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, 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, 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 };
5722
+ export { 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, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, 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, 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, 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 };
5704
5723
  //# sourceMappingURL=mtgame-core.js.map