@smartico/public-api 0.0.334 → 0.0.336

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.
@@ -91,6 +91,10 @@ interface RaffleDraw {
91
91
  * If true, the user needs to opt-in to the raffle before they can participate.
92
92
  */
93
93
  requires_optin: boolean;
94
+ /**
95
+ * If true, the draw is active and can be participated in.
96
+ */
97
+ is_active: boolean;
94
98
  /**
95
99
  * The number of winners to return
96
100
  */
@@ -117,6 +117,8 @@ export interface TMiniGameTemplate {
117
117
  description: string;
118
118
  /** URL of the icon of the mini-game template */
119
119
  thumbnail: string;
120
+ /** Indicates if the mini-game is visible when the user have attempts/points/gems/diamonds to play */
121
+ visibile_when_can_spin?: boolean;
120
122
  /** The type of the game, e.g. Spin the Wheel, Gift Box, Scratch card, MatchX etc */
121
123
  saw_game_type: SAWGameTypeName;
122
124
  /** How the user is charged for each game attempt e.g. Free, Points or Spin attempts */
@@ -1144,6 +1146,10 @@ export interface TRaffleDraw {
1144
1146
  * If true, the user needs to opt-in to the raffle before they can participate.
1145
1147
  */
1146
1148
  requires_optin: boolean;
1149
+ /**
1150
+ * If true, the draw is active and can be participated in.
1151
+ */
1152
+ is_active: boolean;
1147
1153
  /**
1148
1154
  * The number of winners to return
1149
1155
  */
package/dist/index.js CHANGED
@@ -431,6 +431,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
431
431
  name: r.saw_template_ui_definition.name,
432
432
  description: r.saw_template_ui_definition.description,
433
433
  thumbnail: r.saw_template_ui_definition.thumbnail ? r.saw_template_ui_definition.thumbnail : (_r$saw_skin_ui_defini = r.saw_skin_ui_definition) != null && _r$saw_skin_ui_defini.skin_folder ? r.saw_skin_ui_definition.skin_folder + "/ico.png" : "https://d312ucx3huj7iy.cloudfront.net/gf/images/saw/" + r.saw_skin_key + "/ico.png",
434
+ visibile_when_can_spin: r.visibile_when_can_spin,
434
435
  over_limit_message: r.saw_template_ui_definition.over_limit_message,
435
436
  no_attempts_message: r.saw_template_ui_definition.no_attempts_message,
436
437
  jackpot_symbol: r.saw_template_ui_definition.jackpot_symbol,
@@ -1979,6 +1980,7 @@ var drawTransform = function drawTransform(items) {
1979
1980
  my_last_tickets: ticketsTransform(item.my_last_tickets),
1980
1981
  user_opted_in: Boolean(item.user_opted_in),
1981
1982
  requires_optin: Boolean(item.requires_optin),
1983
+ is_active: Boolean(item.is_active),
1982
1984
  winners_limit: item.winners_limit,
1983
1985
  winners_offset: item.winners_offset,
1984
1986
  winners_total: item.winners_total
@@ -2032,6 +2034,7 @@ var drawRunTransform = function drawRunTransform(res) {
2032
2034
  my_last_tickets: ticketsTransform(res.draw.my_last_tickets),
2033
2035
  user_opted_in: Boolean(res.draw.user_opted_in),
2034
2036
  requires_optin: Boolean(res.draw.requires_optin),
2037
+ is_active: Boolean(res.draw.is_active),
2035
2038
  winners_limit: res.draw.winners_limit,
2036
2039
  winners_offset: res.draw.winners_offset,
2037
2040
  winners_total: res.draw.winners_total