@mtgame/core 0.0.43 → 0.0.45

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