@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
package/dist/index.modern.mjs
CHANGED
|
@@ -318,9 +318,10 @@ const SAWTemplatesTransform = items => {
|
|
|
318
318
|
promo_image: r.saw_template_ui_definition.promo_image,
|
|
319
319
|
promo_text: r.saw_template_ui_definition.promo_text,
|
|
320
320
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
321
|
+
expose_game_stat_on_api: r.expose_game_stat_on_api,
|
|
321
322
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
322
323
|
prizes: r.prizes.map(p => {
|
|
323
|
-
const y = {
|
|
324
|
+
const y = _extends({
|
|
324
325
|
id: p.saw_prize_id,
|
|
325
326
|
name: p.saw_prize_ui_definition.name,
|
|
326
327
|
prize_type: MiniGamePrizeTypeNamed(p.prize_type_id),
|
|
@@ -332,7 +333,10 @@ const SAWTemplatesTransform = items => {
|
|
|
332
333
|
aknowledge_message: p.saw_prize_ui_definition.aknowledge_message,
|
|
333
334
|
acknowledge_dp: p.saw_prize_ui_definition.acknowledge_dp,
|
|
334
335
|
acknowledge_action_title: p.saw_prize_ui_definition.acknowledge_action_title
|
|
335
|
-
}
|
|
336
|
+
}, r.expose_game_stat_on_api && {
|
|
337
|
+
pool: p.pool,
|
|
338
|
+
wins_count: p.wins_count
|
|
339
|
+
});
|
|
336
340
|
return y;
|
|
337
341
|
})
|
|
338
342
|
};
|