@smartico/public-api 0.0.277 → 0.0.278

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.
@@ -26,6 +26,7 @@ export interface SAWTemplate {
26
26
  skin_folder: string;
27
27
  skin_css: string;
28
28
  use_new_popups?: boolean;
29
+ lottie_animation_speed?: number;
29
30
  };
30
31
  expose_game_stat_on_api?: boolean;
31
32
  requires_prize_claim?: boolean;
@@ -126,7 +126,12 @@ export interface TMiniGameTemplate {
126
126
  buyin_cost_diamonds?: number;
127
127
  /** in case of charging type 'Spin attempts', shows the current number of spin attempts that user has */
128
128
  spin_count?: number;
129
- /** if the game is limit to the number of spins that user can do during period of time, this property shows the epoch time in UTC when the next attempt will be available */
129
+ /**
130
+ * if the game is limit to the number of spins that user can do during period of time,
131
+ * this property shows the epoch time in UTC when the next attempt will be available.
132
+ * Note that you need to enable 'Show time to the next available spin' setting on mini-game template in the backoffice
133
+ * Important: this field will not be populated if “Max number of attempts a user can do” is set to value different from 1
134
+ * */
130
135
  next_available_spin_ts: number;
131
136
  /** The message that should be shown to the user when he cannot play the game, server rejected attempt with error code SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED */
132
137
  over_limit_message: string;
package/dist/index.js CHANGED
@@ -4290,7 +4290,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
4290
4290
  });
4291
4291
  return Promise.resolve(_this50.send(message, exports.ClassId.GET_LEADERS_BOARD_RESPONSE, force_language)).then(function (response) {
4292
4292
  var _response$map$boardKe, _response$map$boardKe2;
4293
- var boardKey = Object.keys(response.map).find(function (k) {
4293
+ var boardKey = Object.keys(response.map || {}).find(function (k) {
4294
4294
  return period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString());
4295
4295
  });
4296
4296
  if (boardKey === undefined) {