@smartico/public-api 0.0.106 → 0.0.107
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/Store/BuyStoreItemErrorCode.d.ts +2 -1
- package/dist/Store/StoreItem.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +26 -26
- package/docs/enums/BuyStoreItemErrorCode.md +6 -0
- package/docs/interfaces/TStoreItem.md +8 -0
- package/docs/interfaces/TTournament.md +1 -1
- package/docs/interfaces/TTournamentDetailed.md +2 -2
- package/package.json +1 -1
- package/src/Store/BuyStoreItemErrorCode.ts +2 -1
- package/src/Store/StoreItem.ts +3 -1
- package/src/WSAPI/WSAPITypes.ts +2 -0
|
@@ -6,5 +6,6 @@ export declare enum BuyStoreItemErrorCode {
|
|
|
6
6
|
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
7
|
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
8
|
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
-
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
9
|
+
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
|
|
10
|
+
SHOP_FAILED_POOL_EMPTY = 11009
|
|
10
11
|
}
|
|
@@ -319,6 +319,8 @@ export interface TStoreItem {
|
|
|
319
319
|
can_buy: boolean;
|
|
320
320
|
/** The list of IDs of the categories where the store item is assigned, information about categories can be retrievend with getStoreCategories method */
|
|
321
321
|
category_ids: number[];
|
|
322
|
+
/** Number of items in the pool avaliable for the purchase.*/
|
|
323
|
+
pool?: number;
|
|
322
324
|
}
|
|
323
325
|
/**
|
|
324
326
|
* TMissionOrBadge describes the information of mission or badge defined in the system
|
package/dist/index.js
CHANGED
|
@@ -535,6 +535,7 @@ exports.BuyStoreItemErrorCode = void 0;
|
|
|
535
535
|
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE"] = 11004] = "SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE";
|
|
536
536
|
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_TO_BUY_MATCHING_BONUS"] = 11005] = "SHOP_FAILED_TO_BUY_MATCHING_BONUS";
|
|
537
537
|
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED"] = 11006] = "SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED";
|
|
538
|
+
BuyStoreItemErrorCode[BuyStoreItemErrorCode["SHOP_FAILED_POOL_EMPTY"] = 11009] = "SHOP_FAILED_POOL_EMPTY";
|
|
538
539
|
})(exports.BuyStoreItemErrorCode || (exports.BuyStoreItemErrorCode = {}));
|
|
539
540
|
|
|
540
541
|
var StoreCategoryTransform = function StoreCategoryTransform(items) {
|
|
@@ -572,7 +573,8 @@ var StoreItemTransform = function StoreItemTransform(items) {
|
|
|
572
573
|
related_item_ids: r.itemPublicMeta.related_items,
|
|
573
574
|
type: (_StoreItemType$Bonus$ = {}, _StoreItemType$Bonus$[exports.StoreItemType.Bonus] = 'bonus', _StoreItemType$Bonus$[exports.StoreItemType.Manual] = 'manual', _StoreItemType$Bonus$)[r.itemTypeId],
|
|
574
575
|
can_buy: r.canBuy,
|
|
575
|
-
category_ids: (_r$categoryIds = r.categoryIds) != null ? _r$categoryIds : []
|
|
576
|
+
category_ids: (_r$categoryIds = r.categoryIds) != null ? _r$categoryIds : [],
|
|
577
|
+
pool: r.shopPool
|
|
576
578
|
};
|
|
577
579
|
return x;
|
|
578
580
|
});
|