@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.
- package/dist/MiniGames/SAWGameType.d.ts +2 -2
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +5 -1
- package/dist/Store/BuyStoreItemErrorCode.d.ts +5 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +11 -3
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/BuyStoreItemErrorCode.md +16 -0
- package/docs/enums/SAWGameTypeName.md +6 -0
- package/docs/enums/SAWSpinErrorCode.md +16 -0
- package/package.json +1 -1
- package/src/MiniGames/SAWGameType.ts +3 -3
- package/src/MiniGames/SAWSpinErrorCode.ts +4 -0
- package/src/Store/BuyStoreItemErrorCode.ts +4 -0
|
@@ -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.
|
|
@@ -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
|
@@ -10,7 +10,7 @@ export enum SAWGameType {
|
|
|
10
10
|
LootboxWeekdays = 7,
|
|
11
11
|
LootboxCalendarDays = 8,
|
|
12
12
|
TreasureHunt = 9,
|
|
13
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
}
|