@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
|
@@ -8,7 +8,7 @@ TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame
|
|
|
8
8
|
|
|
9
9
|
• **err\_code**: [`SAWSpinErrorCode`](../enums/SAWSpinErrorCode.md)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Error code that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0
|
|
12
12
|
|
|
13
13
|
___
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ ___
|
|
|
16
16
|
|
|
17
17
|
• **err\_message**: `string`
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Optional error message
|
|
20
20
|
|
|
21
21
|
___
|
|
22
22
|
|
package/package.json
CHANGED
package/src/SmarticoAPI.ts
CHANGED
|
@@ -402,7 +402,7 @@ class SmarticoAPI {
|
|
|
402
402
|
tournamentInstanceId
|
|
403
403
|
}
|
|
404
404
|
);
|
|
405
|
-
const response = await this.send<GetTournamentInfoResponse>(message, ClassId.
|
|
405
|
+
const response = await this.send<GetTournamentInfoResponse>(message, ClassId.GET_TOURNAMENT_INFO_RESPONSE);
|
|
406
406
|
|
|
407
407
|
if (response.userPosition?.avatar_id) {
|
|
408
408
|
response.userPosition.avatar_url = CoreUtils.avatarUrl(response.userPosition.avatar_id, this.avatarDomain);
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -27,9 +27,9 @@ export interface TMiniGamePrize {
|
|
|
27
27
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
28
28
|
*/
|
|
29
29
|
export interface TMiniGamePlayResult {
|
|
30
|
-
/**
|
|
30
|
+
/** Error code that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0 */
|
|
31
31
|
err_code: SAWSpinErrorCode;
|
|
32
|
-
/**
|
|
32
|
+
/** Optional error message */
|
|
33
33
|
err_message: string;
|
|
34
34
|
/** The prize_id that user won, details of the prize can be found in the mini-game definition */
|
|
35
35
|
prize_id: number;
|