@smartico/public-api 0.0.97 → 0.0.99

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.
@@ -0,0 +1,13 @@
1
+ interface AchRelatedGame {
2
+ ach_game_id: number;
3
+ ext_game_id: string;
4
+ game_public_meta: {
5
+ name: string;
6
+ link: string;
7
+ image: string;
8
+ enabled: boolean;
9
+ game_categories?: string[];
10
+ game_provider?: string;
11
+ };
12
+ }
13
+ export { AchRelatedGame };
@@ -58,6 +58,8 @@ export declare enum ClassId {
58
58
  MARK_INBOX_READ_RESPONSE = 530,
59
59
  MARK_INBOX_STARRED_REQUEST = 531,
60
60
  MARK_INBOX_STARRED_RESPONSE = 532,
61
+ MARK_INBOX_DELETED_REQUEST = 535,
62
+ MARK_INBOX_DELETED_RESPONSE = 536,
61
63
  GET_BONUSES_REQUEST = 600,
62
64
  GET_BONUSES_RESPONSE = 601,
63
65
  CLAIM_BONUS_REQUEST = 602,
@@ -16,4 +16,5 @@ export interface InboxMessage {
16
16
  engagement_uid: string;
17
17
  is_read: boolean;
18
18
  is_starred: boolean;
19
+ is_deleted: boolean;
19
20
  }
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
3
+ engagement_uid?: string;
4
+ all_deleted?: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
3
+ errCode: number;
4
+ }
@@ -6,3 +6,5 @@ export * from "./MarkInboxMessageReadRequest";
6
6
  export * from "./MarkInboxMessageReadResponse";
7
7
  export * from "./MarkInboxMessageStarredRequest";
8
8
  export * from "./MarkInboxMessageStarredResponse";
9
+ export * from './MarkInboxMessageDeletedRequest';
10
+ export * from './MarkInboxMessageDeletedResponse';
@@ -1,3 +1,4 @@
1
+ import { AchRelatedGame } from "../Base/AchRelatedGame";
1
2
  import { TMissionOrBadge } from "../WSAPI/WSAPITypes";
2
3
  import { AchievementPublicMeta } from "./AchievementPublicMeta";
3
4
  import { AchievementStatus } from "./AchievementStatus";
@@ -22,5 +23,6 @@ export interface UserAchievement {
22
23
  achievementTasks?: UserAchievementTask[];
23
24
  ach_status_id?: AchievementStatus;
24
25
  scheduledMissionType?: ScheduledMissionType;
26
+ related_games?: AchRelatedGame[];
25
27
  }
26
28
  export declare const UserAchievementTransform: (items: UserAchievement[]) => TMissionOrBadge[];
@@ -4,6 +4,7 @@ import { TournamentRegistrationStatus } from "./TournamentRegistrationStatus";
4
4
  import { TournamentType } from "./TournamentType";
5
5
  import { TournamentPublicMeta } from "./TournamentPublicMeta";
6
6
  import { TTournament } from "../WSAPI/WSAPITypes";
7
+ import { AchRelatedGame } from "../Base/AchRelatedGame";
7
8
  export interface Tournament {
8
9
  /** ID of tournament template */
9
10
  tournamentId?: number;
@@ -45,5 +46,7 @@ export interface Tournament {
45
46
  playersMaxCount?: number;
46
47
  /** Tournament duration in millisecnnds */
47
48
  durationMs?: number;
49
+ /** List of casino games (or other types of entities) related to the tournament */
50
+ related_games?: AchRelatedGame[];
48
51
  }
49
52
  export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
package/dist/index.js CHANGED
@@ -62,6 +62,8 @@ exports.ClassId = void 0;
62
62
  ClassId[ClassId["MARK_INBOX_READ_RESPONSE"] = 530] = "MARK_INBOX_READ_RESPONSE";
63
63
  ClassId[ClassId["MARK_INBOX_STARRED_REQUEST"] = 531] = "MARK_INBOX_STARRED_REQUEST";
64
64
  ClassId[ClassId["MARK_INBOX_STARRED_RESPONSE"] = 532] = "MARK_INBOX_STARRED_RESPONSE";
65
+ ClassId[ClassId["MARK_INBOX_DELETED_REQUEST"] = 535] = "MARK_INBOX_DELETED_REQUEST";
66
+ ClassId[ClassId["MARK_INBOX_DELETED_RESPONSE"] = 536] = "MARK_INBOX_DELETED_RESPONSE";
65
67
  ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
66
68
  ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
67
69
  ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
@@ -463,7 +465,7 @@ exports.ActivityTypeLimited = void 0;
463
465
 
464
466
  var CoreUtils = function CoreUtils() {};
465
467
  CoreUtils.avatarUrl = function (avatar_id, avatarDomain) {
466
- if (avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
468
+ if (avatarDomain && avatar_id !== null && avatar_id !== undefined && !(avatar_id.startsWith && avatar_id.startsWith('http'))) {
467
469
  if (avatarDomain.endsWith('/')) {
468
470
  return avatarDomain.slice(0, -1) + '/avatar/' + avatar_id;
469
471
  } else {