@smartico/public-api 0.0.99 → 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.
@@ -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
@@ -291,6 +291,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
291
291
  jackpot_add_on_attempt: r.jackpot_add_on_attempt,
292
292
  jackpot_current: r.jackpot_current,
293
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),
294
297
  next_available_spin_ts: r.next_available_spin_ts,
295
298
  prizes: r.prizes.map(function (p) {
296
299
  var y = {
@@ -299,7 +302,11 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
299
302
  prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
300
303
  prize_value: p.prize_value,
301
304
  font_size: p.saw_prize_ui_definition.font_size,
302
- 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
303
310
  };
304
311
  return y;
305
312
  })