@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.
@@ -81,3 +81,15 @@ ___
81
81
  ### acknowledge\_action\_title
82
82
 
83
83
  • **acknowledge\_action\_title**: `string`
84
+
85
+ ___
86
+
87
+ ### pool
88
+
89
+ • `Optional` **pool**: `number`
90
+
91
+ ___
92
+
93
+ ### wins\_count
94
+
95
+ • `Optional` **wins\_count**: `number`
@@ -145,3 +145,9 @@ ___
145
145
  • **prizes**: [`TMiniGamePrize`](TMiniGamePrize.md)[]
146
146
 
147
147
  List of prizes for mini-games
148
+
149
+ ___
150
+
151
+ ### expose\_game\_stat\_on\_api
152
+
153
+ • `Optional` **expose\_game\_stat\_on\_api**: `boolean`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.144",
3
+ "version": "0.0.146",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,6 +41,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
41
41
  promo_image: r.saw_template_ui_definition.promo_image,
42
42
  promo_text: r.saw_template_ui_definition.promo_text,
43
43
  custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
44
+ expose_game_stat_on_api: r.expose_game_stat_on_api,
44
45
 
45
46
  next_available_spin_ts: r.next_available_spin_ts,
46
47
 
@@ -57,6 +58,8 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
57
58
  aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
58
59
  acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
59
60
  acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title,
61
+ pool: p.pool,
62
+ wins_count: p.wins_count,
60
63
  }
61
64
  return y;
62
65
  })
@@ -10,4 +10,6 @@ export interface SAWPrize {
10
10
  place_from?: number;
11
11
  place_to?: number;
12
12
  sawUniqueWinId?: string;
13
+ pool?: number;
14
+ wins_count?: number;
13
15
  }
@@ -34,7 +34,8 @@ export interface SAWTemplate {
34
34
  skin_css: string;
35
35
  };
36
36
 
37
-
37
+ expose_game_stat_on_api?: boolean;
38
+
38
39
  // AA: releavnt only in the context of the SAWPrizeDropWinPush
39
40
  requires_prize_claim?: boolean;
40
41
  }
@@ -27,11 +27,17 @@ export interface TMiniGamePrize {
27
27
  /** The URL of the icon of the prize */
28
28
  icon?: string;
29
29
  /* for scratch card defines position of prize in the list */
30
- position: number;
30
+ position: number;
31
+ /* Message that will be shown to user in modal pop-up */
31
32
  aknowledge_message: string;
33
+ /* Deep link that will trigger some action in modal pop-up */
32
34
  acknowledge_dp: string;
33
- acknowledge_action_title: string;
34
-
35
+ /* The name of the action button in modal pop-up */
36
+ acknowledge_action_title: string;
37
+ /* Number of items in stock */
38
+ pool?: number;
39
+ /* Number of wins in game */
40
+ wins_count?: number;
35
41
  }
36
42
 
37
43
 
@@ -97,6 +103,9 @@ export interface TMiniGameTemplate {
97
103
 
98
104
  /** List of prizes for mini-games */
99
105
  prizes: TMiniGamePrize[];
106
+
107
+ /* When enabled, the number of items in the pool and number of won items will be exposed in the Retention API and in the UI Widgets */
108
+ expose_game_stat_on_api?: boolean;
100
109
  }
101
110
 
102
111