@smartico/public-api 0.0.277 → 0.0.278
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/SAWTemplate.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGameTemplate.md +4 -1
- package/package.json +1 -1
- package/src/MiniGames/SAWTemplate.ts +1 -0
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +6 -1
|
@@ -126,7 +126,12 @@ export interface TMiniGameTemplate {
|
|
|
126
126
|
buyin_cost_diamonds?: number;
|
|
127
127
|
/** in case of charging type 'Spin attempts', shows the current number of spin attempts that user has */
|
|
128
128
|
spin_count?: number;
|
|
129
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* if the game is limit to the number of spins that user can do during period of time,
|
|
131
|
+
* this property shows the epoch time in UTC when the next attempt will be available.
|
|
132
|
+
* Note that you need to enable 'Show time to the next available spin' setting on mini-game template in the backoffice
|
|
133
|
+
* Important: this field will not be populated if “Max number of attempts a user can do” is set to value different from 1
|
|
134
|
+
* */
|
|
130
135
|
next_available_spin_ts: number;
|
|
131
136
|
/** The message that should be shown to the user when he cannot play the game, server rejected attempt with error code SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED */
|
|
132
137
|
over_limit_message: string;
|
package/dist/index.js
CHANGED
|
@@ -4290,7 +4290,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
4290
4290
|
});
|
|
4291
4291
|
return Promise.resolve(_this50.send(message, exports.ClassId.GET_LEADERS_BOARD_RESPONSE, force_language)).then(function (response) {
|
|
4292
4292
|
var _response$map$boardKe, _response$map$boardKe2;
|
|
4293
|
-
var boardKey = Object.keys(response.map).find(function (k) {
|
|
4293
|
+
var boardKey = Object.keys(response.map || {}).find(function (k) {
|
|
4294
4294
|
return period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString());
|
|
4295
4295
|
});
|
|
4296
4296
|
if (boardKey === undefined) {
|