@smartico/public-api 0.0.273 → 0.0.275

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.
@@ -63,3 +63,19 @@ ___
63
63
  • **SHOP\_FAILED\_POOL\_EMPTY** = ``11009``
64
64
 
65
65
  Failed to buy item because no more items are available
66
+
67
+ ___
68
+
69
+ ### SHOP\_NO\_BALANCE\_GEMS
70
+
71
+ • **SHOP\_NO\_BALANCE\_GEMS** = ``11011``
72
+
73
+ Not enough gems to purchase this item.
74
+
75
+ ___
76
+
77
+ ### SHOP\_NO\_BALANCE\_DIAMONDS
78
+
79
+ • **SHOP\_NO\_BALANCE\_DIAMONDS** = ``11012``
80
+
81
+ Not enough diamonds to purchase this item.
@@ -56,6 +56,12 @@ ___
56
56
 
57
57
  ___
58
58
 
59
+ ### Voyager
60
+
61
+ • **Voyager** = ``"voyager"``
62
+
63
+ ___
64
+
59
65
  ### Unknown
60
66
 
61
67
  • **Unknown** = ``"unknown"``
@@ -63,3 +63,19 @@ ___
63
63
  • **SAW\_NOT\_IN\_SEGMENT** = ``40009``
64
64
 
65
65
  User is not in the segment
66
+
67
+ ___
68
+
69
+ ### SAW\_NO\_BALANCE\_GEMS
70
+
71
+ • **SAW\_NO\_BALANCE\_GEMS** = ``40011``
72
+
73
+ Not enough gems to spin
74
+
75
+ ___
76
+
77
+ ### SAW\_NO\_BALANCE\_DIAMONDS
78
+
79
+ • **SAW\_NO\_BALANCE\_DIAMONDS** = ``40012``
80
+
81
+ Not enough diamonds to spin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.273",
3
+ "version": "0.0.275",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@ export enum SAWGameType {
10
10
  LootboxWeekdays = 7,
11
11
  LootboxCalendarDays = 8,
12
12
  TreasureHunt = 9,
13
- Mario = 10
13
+ Voyager = 10
14
14
  }
15
15
 
16
16
  export enum SAWGameTypeName {
@@ -23,7 +23,7 @@ export enum SAWGameTypeName {
23
23
  LootboxWeekdays = 'lootbox_weekdays',
24
24
  LootboxCalendarDays = 'lootbox_calendar_days',
25
25
  TreasureHunt = 'treasure_hunt',
26
- Mario = 'mario',
26
+ Voyager = 'voyager',
27
27
  Unknown = 'unknown',
28
28
  }
29
29
 
@@ -40,7 +40,7 @@ export const SAWGameTypeNamed = (type: SAWGameType): SAWGameTypeName => {
40
40
  [SAWGameType.LootboxWeekdays]: SAWGameTypeName.LootboxWeekdays,
41
41
  [SAWGameType.LootboxCalendarDays]: SAWGameTypeName.LootboxCalendarDays,
42
42
  [SAWGameType.TreasureHunt]: SAWGameTypeName.TreasureHunt,
43
- [SAWGameType.Mario]: SAWGameTypeName.Mario,
43
+ [SAWGameType.Voyager]: SAWGameTypeName.Voyager,
44
44
  }[type] || SAWGameTypeName.Unknown
45
45
  );
46
46
  };
@@ -18,4 +18,8 @@ export enum SAWSpinErrorCode {
18
18
  SAW_VISITOR_STOP_SPIN_REQUEST = -40001,
19
19
  /** User is not in the segment */
20
20
  SAW_NOT_IN_SEGMENT = 40009,
21
+ /** User doesn't have enough gems to play. In case buy in type for the game is 'gems' based */
22
+ SAW_NO_BALANCE_GEMS = 40011,
23
+ /** User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based */
24
+ SAW_NO_BALANCE_DIAMONDS = 40012,
21
25
  }
@@ -15,4 +15,8 @@ export enum BuyStoreItemErrorCode {
15
15
  SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
16
16
  /** Failed to buy item because no more items are available */
17
17
  SHOP_FAILED_POOL_EMPTY = 11009,
18
+ /** User doesn't have enough gems on balance */
19
+ SHOP_NO_BALANCE_GEMS = 11011,
20
+ /** User doesn't have enough diamonds on balance */
21
+ SHOP_NO_BALANCE_DIAMONDS = 11012,
18
22
  }