@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
|
@@ -9,7 +9,7 @@ export declare enum SAWGameType {
|
|
|
9
9
|
LootboxWeekdays = 7,
|
|
10
10
|
LootboxCalendarDays = 8,
|
|
11
11
|
TreasureHunt = 9,
|
|
12
|
-
|
|
12
|
+
Voyager = 10
|
|
13
13
|
}
|
|
14
14
|
export declare enum SAWGameTypeName {
|
|
15
15
|
SpinAWheel = "wheel",
|
|
@@ -21,7 +21,7 @@ export declare enum SAWGameTypeName {
|
|
|
21
21
|
LootboxWeekdays = "lootbox_weekdays",
|
|
22
22
|
LootboxCalendarDays = "lootbox_calendar_days",
|
|
23
23
|
TreasureHunt = "treasure_hunt",
|
|
24
|
-
|
|
24
|
+
Voyager = "voyager",
|
|
25
25
|
Unknown = "unknown"
|
|
26
26
|
}
|
|
27
27
|
/** @hidden */
|
|
@@ -14,5 +14,9 @@ export declare enum SAWSpinErrorCode {
|
|
|
14
14
|
/** Special code for the 'visitor' mode */
|
|
15
15
|
SAW_VISITOR_STOP_SPIN_REQUEST = -40001,
|
|
16
16
|
/** User is not in the segment */
|
|
17
|
-
SAW_NOT_IN_SEGMENT = 40009
|
|
17
|
+
SAW_NOT_IN_SEGMENT = 40009,
|
|
18
|
+
/** User doesn't have enough gems to play. In case buy in type for the game is 'gems' based */
|
|
19
|
+
SAW_NO_BALANCE_GEMS = 40011,
|
|
20
|
+
/** User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based */
|
|
21
|
+
SAW_NO_BALANCE_DIAMONDS = 40012
|
|
18
22
|
}
|
|
@@ -14,5 +14,9 @@ export declare enum BuyStoreItemErrorCode {
|
|
|
14
14
|
/** Failed to buy item because of limit of max items is reached */
|
|
15
15
|
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
|
|
16
16
|
/** Failed to buy item because no more items are available */
|
|
17
|
-
SHOP_FAILED_POOL_EMPTY = 11009
|
|
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
|
}
|
package/dist/index.js
CHANGED
|
@@ -362,7 +362,7 @@ exports.SAWGameType = void 0;
|
|
|
362
362
|
SAWGameType[SAWGameType["LootboxWeekdays"] = 7] = "LootboxWeekdays";
|
|
363
363
|
SAWGameType[SAWGameType["LootboxCalendarDays"] = 8] = "LootboxCalendarDays";
|
|
364
364
|
SAWGameType[SAWGameType["TreasureHunt"] = 9] = "TreasureHunt";
|
|
365
|
-
SAWGameType[SAWGameType["
|
|
365
|
+
SAWGameType[SAWGameType["Voyager"] = 10] = "Voyager";
|
|
366
366
|
})(exports.SAWGameType || (exports.SAWGameType = {}));
|
|
367
367
|
exports.SAWGameTypeName = void 0;
|
|
368
368
|
(function (SAWGameTypeName) {
|
|
@@ -375,13 +375,13 @@ exports.SAWGameTypeName = void 0;
|
|
|
375
375
|
SAWGameTypeName["LootboxWeekdays"] = "lootbox_weekdays";
|
|
376
376
|
SAWGameTypeName["LootboxCalendarDays"] = "lootbox_calendar_days";
|
|
377
377
|
SAWGameTypeName["TreasureHunt"] = "treasure_hunt";
|
|
378
|
-
SAWGameTypeName["
|
|
378
|
+
SAWGameTypeName["Voyager"] = "voyager";
|
|
379
379
|
SAWGameTypeName["Unknown"] = "unknown";
|
|
380
380
|
})(exports.SAWGameTypeName || (exports.SAWGameTypeName = {}));
|
|
381
381
|
/** @hidden */
|
|
382
382
|
var SAWGameTypeNamed = function SAWGameTypeNamed(type) {
|
|
383
383
|
var _SAWGameType$SpinAWhe;
|
|
384
|
-
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.
|
|
384
|
+
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
|
|
385
385
|
};
|
|
386
386
|
|
|
387
387
|
/** @hidden */
|
|
@@ -515,6 +515,10 @@ exports.SAWSpinErrorCode = void 0;
|
|
|
515
515
|
SAWSpinErrorCode[SAWSpinErrorCode["SAW_VISITOR_STOP_SPIN_REQUEST"] = -40001] = "SAW_VISITOR_STOP_SPIN_REQUEST";
|
|
516
516
|
/** User is not in the segment */
|
|
517
517
|
SAWSpinErrorCode[SAWSpinErrorCode["SAW_NOT_IN_SEGMENT"] = 40009] = "SAW_NOT_IN_SEGMENT";
|
|
518
|
+
/** User doesn't have enough gems to play. In case buy in type for the game is 'gems' based */
|
|
519
|
+
SAWSpinErrorCode[SAWSpinErrorCode["SAW_NO_BALANCE_GEMS"] = 40011] = "SAW_NO_BALANCE_GEMS";
|
|
520
|
+
/** User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based */
|
|
521
|
+
SAWSpinErrorCode[SAWSpinErrorCode["SAW_NO_BALANCE_DIAMONDS"] = 40012] = "SAW_NO_BALANCE_DIAMONDS";
|
|
518
522
|
})(exports.SAWSpinErrorCode || (exports.SAWSpinErrorCode = {}));
|
|
519
523
|
|
|
520
524
|
var _SAWWinSoundFiles;
|
|
@@ -879,6 +883,10 @@ exports.BuyStoreItemErrorCode = void 0;
|
|
|
879
883
|
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED"] = 11006] = "SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED";
|
|
880
884
|
/** Failed to buy item because no more items are available */
|
|
881
885
|
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_POOL_EMPTY"] = 11009] = "SHOP_FAILED_POOL_EMPTY";
|
|
886
|
+
/** User doesn't have enough gems on balance */
|
|
887
|
+
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_NO_BALANCE_GEMS"] = 11011] = "SHOP_NO_BALANCE_GEMS";
|
|
888
|
+
/** User doesn't have enough diamonds on balance */
|
|
889
|
+
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_NO_BALANCE_DIAMONDS"] = 11012] = "SHOP_NO_BALANCE_DIAMONDS";
|
|
882
890
|
})(exports.BuyStoreItemErrorCode || (exports.BuyStoreItemErrorCode = {}));
|
|
883
891
|
|
|
884
892
|
var StoreCategoryTransform = function StoreCategoryTransform(items) {
|