@smartico/public-api 0.0.76 → 0.0.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,4 +14,5 @@ export interface InboxMessage {
14
14
  engagement_uid: string;
15
15
  is_read: boolean;
16
16
  is_starred: boolean;
17
+ additional_buttons?: { inbox_cta_text: string, action: string }
17
18
  }
@@ -449,7 +449,8 @@ class SmarticoAPI {
449
449
  if (!tournamentInstanceId) {
450
450
  throw new Error('Missing tournament instance id');
451
451
  }
452
- return tournamentInfoItemTransform((await this.tournamentsGetInfo(user_ext_id, tournamentInstanceId)));
452
+ const response = await this.tournamentsGetInfo(user_ext_id, tournamentInstanceId);
453
+ return tournamentInfoItemTransform(response);
453
454
  }
454
455
 
455
456
  public async leaderboardGet(user_ext_id: string, period_type_id?: LeaderBoardPeriodType, prevPeriod: boolean = false): Promise<LeaderBoardDetails> {