@smartico/public-api 0.0.119 → 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;
@@ -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[];
@@ -74,7 +74,7 @@ export interface TMiniGameTemplate {
74
74
  promo_image: string;
75
75
  /** The promo text */
76
76
  promo_text: string;
77
- /** 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 */
78
78
  custom_data: any;
79
79
  prizes: TMiniGamePrize[];
80
80
  }
@@ -142,7 +142,7 @@ export interface TLevel {
142
142
  *
143
143
  */
144
144
  required_level_counter_2: number;
145
- /** 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 */
146
146
  custom_data: string;
147
147
  }
148
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";
@@ -1652,12 +1654,12 @@ var SmarticoAPI = /*#__PURE__*/function () {
1652
1654
  }
1653
1655
  });
1654
1656
  }, function (e) {
1655
- _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, {
1656
1658
  url: _this.publicUrl,
1657
1659
  request: message,
1658
1660
  error: e.message
1659
1661
  });
1660
- 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);
1661
1663
  });
1662
1664
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
1663
1665
  } catch (e) {