@smartico/public-api 0.0.118 → 0.0.120

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.
@@ -62,6 +62,8 @@ export declare enum ClassId {
62
62
  MARK_INBOX_DELETED_RESPONSE = 536,
63
63
  GET_ACH_CATEGORIES_REQUEST = 537,
64
64
  GET_ACH_CATEGORIES_RESPONSE = 538,
65
+ ACHIEVEMENT_CLAIM_PRIZE_REQUEST = 539,
66
+ ACHIEVEMENT_CLAIM_PRIZE_RESPONSE = 540,
65
67
  GET_BONUSES_REQUEST = 600,
66
68
  GET_BONUSES_RESPONSE = 601,
67
69
  CLAIM_BONUS_REQUEST = 602,
@@ -18,6 +18,6 @@ export interface InboxMessage {
18
18
  engagement_uid: string;
19
19
  is_read: boolean;
20
20
  is_starred: boolean;
21
- is_deleted: boolean;
21
+ is_deleted?: boolean;
22
22
  }
23
23
  export declare const InboxMessageBodyTransform: (item: InboxMessageBody) => TInboxMessageBody;
@@ -9,6 +9,7 @@ export interface SAWPrizeUI {
9
9
  acknowledge_type: SAWAcknowledgeType;
10
10
  acknowledge_dp?: string;
11
11
  font_size?: number;
12
+ font_size_mobile?: number;
12
13
  sound_type: SAWWinSoundType;
13
14
  icon?: string;
14
15
  replace_name_with_image?: boolean;
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface AchClaimPrizeRequest extends ProtocolMessage {
3
+ ach_id: number;
4
+ ach_completed_id: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface AchClaimPrizeRequest extends ProtocolMessage {
3
+ }
@@ -27,5 +27,8 @@ export interface UserAchievement {
27
27
  related_games?: AchRelatedGame[];
28
28
  active_from_ts?: number;
29
29
  ach_categories?: number[];
30
+ ach_completed_id?: number;
31
+ requires_prize_claim?: boolean;
32
+ prize_claimed_date_ts?: number;
30
33
  }
31
34
  export declare const UserAchievementTransform: (items: UserAchievement[]) => TMissionOrBadge[];
@@ -15,8 +15,10 @@ export interface TMiniGamePrize {
15
15
  prize_type: MiniGamePrizeTypeName;
16
16
  /** Numeric value of the prize in case it's pints or spin type */
17
17
  prize_value?: number;
18
- /** Custom font size for the prize */
18
+ /** Custom font size for the prize (desktop) */
19
19
  font_size?: number;
20
+ /** Custom font size for the prize (mobile) */
21
+ font_size_mobile?: number;
20
22
  /** The URL of the icon of the prize */
21
23
  icon?: string;
22
24
  position: number;
@@ -72,7 +74,7 @@ export interface TMiniGameTemplate {
72
74
  promo_image: string;
73
75
  /** The promo text */
74
76
  promo_text: string;
75
- /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
77
+ /** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
76
78
  custom_data: any;
77
79
  prizes: TMiniGamePrize[];
78
80
  }
@@ -140,7 +142,7 @@ export interface TLevel {
140
142
  *
141
143
  */
142
144
  required_level_counter_2: number;
143
- /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
145
+ /** The custom data of the Level defined by operator in the BackOffice. Can be a JSON object, string or number */
144
146
  custom_data: string;
145
147
  }
146
148
  /**
package/dist/index.js CHANGED
@@ -66,6 +66,8 @@ exports.ClassId = void 0;
66
66
  ClassId[ClassId["MARK_INBOX_DELETED_RESPONSE"] = 536] = "MARK_INBOX_DELETED_RESPONSE";
67
67
  ClassId[ClassId["GET_ACH_CATEGORIES_REQUEST"] = 537] = "GET_ACH_CATEGORIES_REQUEST";
68
68
  ClassId[ClassId["GET_ACH_CATEGORIES_RESPONSE"] = 538] = "GET_ACH_CATEGORIES_RESPONSE";
69
+ ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_REQUEST"] = 539] = "ACHIEVEMENT_CLAIM_PRIZE_REQUEST";
70
+ ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
69
71
  ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
70
72
  ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
71
73
  ClassId[ClassId["CLAIM_BONUS_REQUEST"] = 602] = "CLAIM_BONUS_REQUEST";
@@ -304,6 +306,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
304
306
  prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
305
307
  prize_value: p.prize_value,
306
308
  font_size: p.saw_prize_ui_definition.font_size,
309
+ font_size_mobile: p.saw_prize_ui_definition.font_size_mobile,
307
310
  icon: p.saw_prize_ui_definition.icon,
308
311
  position: p.saw_prize_ui_definition.position,
309
312
  aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
@@ -1651,12 +1654,12 @@ var SmarticoAPI = /*#__PURE__*/function () {
1651
1654
  }
1652
1655
  });
1653
1656
  }, function (e) {
1654
- _this.logger.error("Failed to make request to smartico channel. " + e.message, {
1657
+ _this.logger.error("Failed to make request to smartico channel, L2. " + e.message, {
1655
1658
  url: _this.publicUrl,
1656
1659
  request: message,
1657
1660
  error: e.message
1658
1661
  });
1659
- throw new Error("Failed to make request to smartico channel. " + e.message);
1662
+ throw new Error("Failed to make request to smartico channel, L1. " + e.message);
1660
1663
  });
1661
1664
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
1662
1665
  } catch (e) {