@smartico/public-api 0.0.144 → 0.0.146

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.
@@ -8,4 +8,6 @@ export interface SAWPrize {
8
8
  place_from?: number;
9
9
  place_to?: number;
10
10
  sawUniqueWinId?: string;
11
+ pool?: number;
12
+ wins_count?: number;
11
13
  }
@@ -24,5 +24,6 @@ export interface SAWTemplate {
24
24
  skin_folder: string;
25
25
  skin_css: string;
26
26
  };
27
+ expose_game_stat_on_api?: boolean;
27
28
  requires_prize_claim?: boolean;
28
29
  }
@@ -26,6 +26,8 @@ export interface TMiniGamePrize {
26
26
  aknowledge_message: string;
27
27
  acknowledge_dp: string;
28
28
  acknowledge_action_title: string;
29
+ pool?: number;
30
+ wins_count?: number;
29
31
  }
30
32
  /**
31
33
  * TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
@@ -79,6 +81,7 @@ export interface TMiniGameTemplate {
79
81
  custom_data: any;
80
82
  /** List of prizes for mini-games */
81
83
  prizes: TMiniGamePrize[];
84
+ expose_game_stat_on_api?: boolean;
82
85
  }
83
86
  /**
84
87
  * TUser describes the information of the user
package/dist/index.js CHANGED
@@ -336,6 +336,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
336
336
  promo_image: r.saw_template_ui_definition.promo_image,
337
337
  promo_text: r.saw_template_ui_definition.promo_text,
338
338
  custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
339
+ expose_game_stat_on_api: r.expose_game_stat_on_api,
339
340
  next_available_spin_ts: r.next_available_spin_ts,
340
341
  prizes: r.prizes.map(function (p) {
341
342
  var y = {
@@ -349,7 +350,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
349
350
  position: p.saw_prize_ui_definition.position,
350
351
  aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
351
352
  acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
352
- acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
353
+ acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
354
+ pool: p.pool,
355
+ wins_count: p.wins_count
353
356
  };
354
357
  return y;
355
358
  })