@mtgame/core 0.0.6 → 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;
@@ -899,6 +907,7 @@ var Tournament = /** @class */ (function (_super) {
899
907
  relation: {
900
908
  logo: File,
901
909
  cover: File,
910
+ previewImage: File,
902
911
  city: City,
903
912
  sport: Sport,
904
913
  regulationFile: File,
@@ -3983,6 +3992,11 @@ function getArrayChunks(array, length) {
3983
3992
  return chunks;
3984
3993
  }
3985
3994
 
3995
+ var PlayoffTypes;
3996
+ (function (PlayoffTypes) {
3997
+ PlayoffTypes["double_elimination"] = "double_elimination";
3998
+ PlayoffTypes["elimination"] = "elimination";
3999
+ })(PlayoffTypes || (PlayoffTypes = {}));
3986
4000
  var PlayoffSettings = /** @class */ (function (_super) {
3987
4001
  __extends(PlayoffSettings, _super);
3988
4002
  function PlayoffSettings() {
@@ -4002,7 +4016,11 @@ var PlayoffSettings = /** @class */ (function (_super) {
4002
4016
  rounds: 'rounds',
4003
4017
  final_rounds: 'finalRounds',
4004
4018
  third_place_rounds: 'thirdPlaceRounds',
4005
- teams_count: 'teamsCount'
4019
+ teams_count: 'teamsCount',
4020
+ type: 'type',
4021
+ },
4022
+ relation: {
4023
+ type: enumField(PlayoffTypes)
4006
4024
  }
4007
4025
  })
4008
4026
  ], PlayoffSettings);
@@ -5701,5 +5719,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
5701
5719
  * Generated bundle index. Do not edit.
5702
5720
  */
5703
5721
 
5704
- 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 };
5705
5723
  //# sourceMappingURL=mtgame-core.js.map