@smartico/public-api 0.0.58 → 0.0.60
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/SAWPrizeUI.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -2
- 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/TMiniGamePlayResult.md +2 -2
- package/package.json +1 -1
- package/src/MiniGames/SAWPrizeUI.ts +1 -0
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +2 -2
|
@@ -22,9 +22,9 @@ export interface TMiniGamePrize {
|
|
|
22
22
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
23
23
|
*/
|
|
24
24
|
export interface TMiniGamePlayResult {
|
|
25
|
-
/**
|
|
25
|
+
/** Error code that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0 */
|
|
26
26
|
err_code: SAWSpinErrorCode;
|
|
27
|
-
/**
|
|
27
|
+
/** Optional error message */
|
|
28
28
|
err_message: string;
|
|
29
29
|
/** The prize_id that user won, details of the prize can be found in the mini-game definition */
|
|
30
30
|
prize_id: number;
|
package/dist/index.js
CHANGED
|
@@ -1374,7 +1374,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
1374
1374
|
var message = _this21.buildMessage(user_ext_id, exports.ClassId.GET_TOURNAMENT_INFO_REQUEST, {
|
|
1375
1375
|
tournamentInstanceId: tournamentInstanceId
|
|
1376
1376
|
});
|
|
1377
|
-
return Promise.resolve(_this21.send(message, exports.ClassId.
|
|
1377
|
+
return Promise.resolve(_this21.send(message, exports.ClassId.GET_TOURNAMENT_INFO_RESPONSE)).then(function (response) {
|
|
1378
1378
|
var _response$userPositio, _response$tournamentI;
|
|
1379
1379
|
if ((_response$userPositio = response.userPosition) != null && _response$userPositio.avatar_id) {
|
|
1380
1380
|
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, _this21.avatarDomain);
|