@mtgame/core 0.0.44 → 0.0.46

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.
@@ -1008,6 +1008,7 @@ var TournamentSettings = /** @class */ (function (_super) {
1008
1008
  volleyball_statistic_type: 'volleyballStatisticType',
1009
1009
  shot_clock_enabled: 'shotClockEnabled',
1010
1010
  game_time_type: 'gameTimeType',
1011
+ with_result_table: 'withResultTable'
1011
1012
  },
1012
1013
  relation: {
1013
1014
  type: enumField(TournamentTypes),
@@ -1429,6 +1430,7 @@ var Game = /** @class */ (function (_super) {
1429
1430
  tournament_playoff_id: 'tournamentPlayoffId',
1430
1431
  tournament_court: 'tournamentCourt',
1431
1432
  media_count: 'mediaCount',
1433
+ media_live_count: 'mediaLiveCount',
1432
1434
  media: 'media',
1433
1435
  tournament: 'tournament',
1434
1436
  },
@@ -2856,6 +2858,11 @@ var HockeyGameApi = /** @class */ (function () {
2856
2858
  return HockeyGameApi;
2857
2859
  }());
2858
2860
 
2861
+ var LeagueNewsType;
2862
+ (function (LeagueNewsType) {
2863
+ LeagueNewsType[LeagueNewsType["text"] = 1] = "text";
2864
+ LeagueNewsType[LeagueNewsType["video"] = 2] = "video";
2865
+ })(LeagueNewsType || (LeagueNewsType = {}));
2859
2866
  var LeagueNews = /** @class */ (function (_super) {
2860
2867
  __extends(LeagueNews, _super);
2861
2868
  function LeagueNews() {
@@ -2884,13 +2891,17 @@ var LeagueNews = /** @class */ (function (_super) {
2884
2891
  mobile_picture: 'mobilePicture',
2885
2892
  is_main: 'isMain',
2886
2893
  tournaments: 'tournaments',
2894
+ type: 'type',
2895
+ video_link: 'videoLink',
2896
+ tag: 'tag',
2887
2897
  },
2888
2898
  relation: {
2889
2899
  datetime: DateTimeField,
2890
2900
  picture: File,
2891
2901
  cover: File,
2892
2902
  mobilePicture: File,
2893
- tournaments: listField(Tournament)
2903
+ tournaments: listField(Tournament),
2904
+ type: enumField(LeagueNewsType),
2894
2905
  }
2895
2906
  })
2896
2907
  ], LeagueNews);
@@ -3095,12 +3106,14 @@ var LeagueNewsApi = /** @class */ (function () {
3095
3106
  this.httpClient = httpClient;
3096
3107
  this.configService = configService;
3097
3108
  }
3098
- LeagueNewsApi.prototype.getLeagueNewsList = function (leagueId, page, size) {
3109
+ LeagueNewsApi.prototype.getLeagueNewsList = function (leagueId, page, size, type) {
3110
+ if (type === void 0) { type = LeagueNewsType.text; }
3099
3111
  return __awaiter(this, void 0, void 0, function () {
3100
3112
  var params;
3101
3113
  return __generator(this, function (_a) {
3102
3114
  params = new HttpParams().set('page', page.toString())
3103
- .set('size', size.toString());
3115
+ .set('size', size.toString())
3116
+ .set('type', LeagueNewsType[type]);
3104
3117
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/news/", { params: params, observe: 'response' })
3105
3118
  .pipe(map(function (response) { return ({
3106
3119
  total: +response.headers.get('X-Page-Count'),
@@ -6899,5 +6912,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
6899
6912
  * Generated bundle index. Do not edit.
6900
6913
  */
6901
6914
 
6902
- 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, 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 };
6915
+ 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 };
6903
6916
  //# sourceMappingURL=mtgame-core.js.map