@smartico/public-api 0.0.144 → 0.0.145
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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6 -2
- 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 +2 -0
- package/src/MiniGames/SAWPrize.ts +2 -0
- package/src/MiniGames/SAWTemplate.ts +2 -1
- package/src/WSAPI/WSAPITypes.ts +12 -3
|
@@ -26,6 +26,8 @@ export interface TMiniGamePrize {
|
|
|
26
26
|
aknowledge_message: string;
|
|
27
27
|
acknowledge_dp: string;
|
|
28
28
|
acknowledge_action_title: string;
|
|
29
|
+
pool?: number;
|
|
30
|
+
wins_count?: number;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
@@ -79,6 +81,7 @@ export interface TMiniGameTemplate {
|
|
|
79
81
|
custom_data: any;
|
|
80
82
|
/** List of prizes for mini-games */
|
|
81
83
|
prizes: TMiniGamePrize[];
|
|
84
|
+
expose_game_stat_on_api?: boolean;
|
|
82
85
|
}
|
|
83
86
|
/**
|
|
84
87
|
* TUser describes the information of the user
|
package/dist/index.js
CHANGED
|
@@ -336,9 +336,10 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
336
336
|
promo_image: r.saw_template_ui_definition.promo_image,
|
|
337
337
|
promo_text: r.saw_template_ui_definition.promo_text,
|
|
338
338
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
339
|
+
expose_game_stat_on_api: r.expose_game_stat_on_api,
|
|
339
340
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
340
341
|
prizes: r.prizes.map(function (p) {
|
|
341
|
-
var y = {
|
|
342
|
+
var y = _extends({
|
|
342
343
|
id: p.saw_prize_id,
|
|
343
344
|
name: p.saw_prize_ui_definition.name,
|
|
344
345
|
prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
|
|
@@ -350,7 +351,10 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
350
351
|
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
351
352
|
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
352
353
|
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
|
|
353
|
-
}
|
|
354
|
+
}, r.expose_game_stat_on_api && {
|
|
355
|
+
pool: p.pool,
|
|
356
|
+
wins_count: p.wins_count
|
|
357
|
+
});
|
|
354
358
|
return y;
|
|
355
359
|
})
|
|
356
360
|
};
|