@smartico/public-api 0.0.98 → 0.0.100

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.
@@ -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';
@@ -35,4 +35,5 @@ export interface SAWTemplateUI {
35
35
  disable_background_music?: boolean;
36
36
  custom_section_id?: number;
37
37
  only_in_custom_section?: boolean;
38
+ custom_data: any;
38
39
  }
@@ -19,6 +19,7 @@ export interface UserAchievement {
19
19
  progress?: number;
20
20
  complete_date?: string;
21
21
  unlock_date?: string;
22
+ milliseconds_till_available?: number;
22
23
  completed_tasks?: number;
23
24
  achievementTasks?: UserAchievementTask[];
24
25
  ach_status_id?: AchievementStatus;
@@ -18,6 +18,10 @@ export interface TMiniGamePrize {
18
18
  font_size?: number;
19
19
  /** The URL of the icon of the prize */
20
20
  icon?: string;
21
+ position: number;
22
+ aknowledge_message: string;
23
+ acknowledge_dp: string;
24
+ acknowledge_action_title: string;
21
25
  }
22
26
  /**
23
27
  * TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
@@ -63,6 +67,12 @@ export interface TMiniGameTemplate {
63
67
  /** The symbol of jackpot that is giving the sense to the 'amount' E.g. the symbol could be EUR and connected to the amount it can indicate that amount is monetary, e.g. '100 EUR'. Or the symbol can be 'Free spins' and connected to the amount it can indicate that amount is number of free spins, e.g. '100 Free spins'.
64
68
  */
65
69
  jackpot_symbol: string;
70
+ /** The promo image */
71
+ promo_image: string;
72
+ /** The promo text */
73
+ promo_text: string;
74
+ /** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
75
+ custom_data: any;
66
76
  prizes: TMiniGamePrize[];
67
77
  }
68
78
  /**
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";
@@ -289,6 +291,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
289
291
  jackpot_add_on_attempt: r.jackpot_add_on_attempt,
290
292
  jackpot_current: r.jackpot_current,
291
293
  spin_count: r.spin_count,
294
+ promo_image: r.saw_template_ui_definition.promo_image,
295
+ promo_text: r.saw_template_ui_definition.promo_text,
296
+ custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
292
297
  next_available_spin_ts: r.next_available_spin_ts,
293
298
  prizes: r.prizes.map(function (p) {
294
299
  var y = {
@@ -297,7 +302,11 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
297
302
  prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
298
303
  prize_value: p.prize_value,
299
304
  font_size: p.saw_prize_ui_definition.font_size,
300
- icon: p.saw_prize_ui_definition.icon
305
+ icon: p.saw_prize_ui_definition.icon,
306
+ position: p.saw_prize_ui_definition.position,
307
+ aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
308
+ acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
309
+ acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
301
310
  };
302
311
  return y;
303
312
  })