@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.
- package/dist/MiniGames/SAWPrize.d.ts +2 -0
- package/dist/MiniGames/SAWTemplate.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGamePrize.md +12 -0
- package/docs/interfaces/TMiniGameTemplate.md +6 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +3 -0
- package/src/MiniGames/SAWPrize.ts +2 -0
- package/src/MiniGames/SAWTemplate.ts +2 -1
- package/src/WSAPI/WSAPITypes.ts +12 -3
package/package.json
CHANGED
|
@@ -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
|
})
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|