@smartico/public-api 0.0.299 → 0.0.301

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.299",
3
+ "version": "0.0.301",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,8 @@ export enum SAWGameType {
8
8
  LootboxWeekdays = 7,
9
9
  LootboxCalendarDays = 8,
10
10
  TreasureHunt = 9,
11
- Voyager = 10
11
+ Voyager = 10,
12
+ Plinko = 11,
12
13
  }
13
14
 
14
15
  export enum SAWGameTypeName {
@@ -22,6 +23,7 @@ export enum SAWGameTypeName {
22
23
  LootboxCalendarDays = 'lootbox_calendar_days',
23
24
  TreasureHunt = 'treasure_hunt',
24
25
  Voyager = 'voyager',
26
+ Plinko = 'plinko',
25
27
  Unknown = 'unknown',
26
28
  }
27
29
 
@@ -142,9 +142,9 @@ export class WSAPI {
142
142
  this.updateInboxUnreadCount(res.unread_count);
143
143
  }
144
144
  });
145
- on(ClassId.CLIENT_PUBLIC_PROPERTIES_CHANGED_EVENT, (data: { core_inbox_unread_count: number }) => {
146
- if (data.core_inbox_unread_count !== undefined && data.core_inbox_unread_count !== null) {
147
- this.updateInboxUnreadCount(data.core_inbox_unread_count);
145
+ on(ClassId.CLIENT_PUBLIC_PROPERTIES_CHANGED_EVENT, (data: { props: { core_inbox_unread_count: number } }) => {
146
+ if (data?.props?.core_inbox_unread_count !== undefined && data?.props?.core_inbox_unread_count !== null) {
147
+ this.updateInboxUnreadCount(data.props.core_inbox_unread_count);
148
148
  }
149
149
  });
150
150
  }