@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.
@@ -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
- Name of the mini-game template, translated to the user language
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
- Name of the mini-game template, translated to the user language
19
+ Optional error message
20
20
 
21
21
  ___
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,4 +12,5 @@ export interface SAWPrizeUI {
12
12
  sound_type: SAWWinSoundType;
13
13
  icon?: string;
14
14
  replace_name_with_image?: boolean;
15
+ acknowledge_action_title?: string;
15
16
  }
@@ -402,7 +402,7 @@ class SmarticoAPI {
402
402
  tournamentInstanceId
403
403
  }
404
404
  );
405
- const response = await this.send<GetTournamentInfoResponse>(message, ClassId.GET_TOURNAMENT_LOBBY_RESPONSE);
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);
@@ -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
- /** Name of the mini-game template, translated to the user language */
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
- /** Name of the mini-game template, translated to the user language */
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;