@smartico/public-api 0.0.99 → 0.0.100
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/SAWTemplateUI.d.ts +1 -0
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +10 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +8 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGamePrize.md +24 -0
- package/docs/interfaces/TMiniGameTemplate.md +24 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +9 -1
- package/src/MiniGames/SAWTemplateUI.ts +2 -0
- package/src/Missions/UserAchievement.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +14 -0
|
@@ -18,6 +18,10 @@ export interface TMiniGamePrize {
|
|
|
18
18
|
font_size?: number;
|
|
19
19
|
/** The URL of the icon of the prize */
|
|
20
20
|
icon?: string;
|
|
21
|
+
position: number;
|
|
22
|
+
aknowledge_message: string;
|
|
23
|
+
acknowledge_dp: string;
|
|
24
|
+
acknowledge_action_title: string;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
@@ -63,6 +67,12 @@ export interface TMiniGameTemplate {
|
|
|
63
67
|
/** The symbol of jackpot that is giving the sense to the 'amount' E.g. the symbol could be EUR and connected to the amount it can indicate that amount is monetary, e.g. '100 EUR'. Or the symbol can be 'Free spins' and connected to the amount it can indicate that amount is number of free spins, e.g. '100 Free spins'.
|
|
64
68
|
*/
|
|
65
69
|
jackpot_symbol: string;
|
|
70
|
+
/** The promo image */
|
|
71
|
+
promo_image: string;
|
|
72
|
+
/** The promo text */
|
|
73
|
+
promo_text: string;
|
|
74
|
+
/** The custom data of the mini-game defined by operator. Can be a JSON object, string or number */
|
|
75
|
+
custom_data: any;
|
|
66
76
|
prizes: TMiniGamePrize[];
|
|
67
77
|
}
|
|
68
78
|
/**
|
package/dist/index.js
CHANGED
|
@@ -291,6 +291,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
291
291
|
jackpot_add_on_attempt: r.jackpot_add_on_attempt,
|
|
292
292
|
jackpot_current: r.jackpot_current,
|
|
293
293
|
spin_count: r.spin_count,
|
|
294
|
+
promo_image: r.saw_template_ui_definition.promo_image,
|
|
295
|
+
promo_text: r.saw_template_ui_definition.promo_text,
|
|
296
|
+
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
294
297
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
295
298
|
prizes: r.prizes.map(function (p) {
|
|
296
299
|
var y = {
|
|
@@ -299,7 +302,11 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
299
302
|
prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
|
|
300
303
|
prize_value: p.prize_value,
|
|
301
304
|
font_size: p.saw_prize_ui_definition.font_size,
|
|
302
|
-
icon: p.saw_prize_ui_definition.icon
|
|
305
|
+
icon: p.saw_prize_ui_definition.icon,
|
|
306
|
+
position: p.saw_prize_ui_definition.position,
|
|
307
|
+
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
308
|
+
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
309
|
+
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
|
|
303
310
|
};
|
|
304
311
|
return y;
|
|
305
312
|
})
|