@smartico/public-api 0.0.390 → 0.0.392
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/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SmarticoAPI.ts +6 -0
- package/src/WSAPI/WSAPI.ts +6 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -9217,7 +9217,7 @@ class WSAPI extends WSAPIInbox {
|
|
|
9217
9217
|
if ((data == null || (_data$props = data.props) == null ? void 0 : _data$props.core_inbox_unread_count) !== undefined && (data == null || (_data$props2 = data.props) == null ? void 0 : _data$props2.core_inbox_unread_count) !== null) {
|
|
9218
9218
|
this.updateInboxUnreadCount(data.props.core_inbox_unread_count);
|
|
9219
9219
|
}
|
|
9220
|
-
if ((data == null || (_data$props3 = data.props) == null ? void 0 : _data$props3.ach_points_balance) !== undefined || (data == null || (_data$props4 = data.props) == null ? void 0 : _data$props4.ach_gems_balance) !== undefined || (data == null || (_data$props5 = data.props) == null ? void 0 : _data$props5.ach_diamonds_balance) !== undefined) {
|
|
9220
|
+
if (((data == null || (_data$props3 = data.props) == null ? void 0 : _data$props3.ach_points_balance) !== undefined || (data == null || (_data$props4 = data.props) == null ? void 0 : _data$props4.ach_gems_balance) !== undefined || (data == null || (_data$props5 = data.props) == null ? void 0 : _data$props5.ach_diamonds_balance) !== undefined) && OCache.get(onUpdateContextKey.ActivityLog, ECacheContext.WSAPI)) {
|
|
9221
9221
|
this.notifyActivityLogUpdate();
|
|
9222
9222
|
}
|
|
9223
9223
|
OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.CurrentLevel);
|
|
@@ -9895,6 +9895,9 @@ class SmarticoAPI {
|
|
|
9895
9895
|
return await this.send(message, ClassId.GET_SAW_HISTORY_RESPONSE);
|
|
9896
9896
|
}
|
|
9897
9897
|
async getSawWinningHistoryT(user_ext_id, limit, offset, saw_template_id) {
|
|
9898
|
+
if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
|
|
9899
|
+
limit = 50;
|
|
9900
|
+
}
|
|
9898
9901
|
return SAWHistoryTransform((await this.getSawWinningHistory(user_ext_id, limit, offset, saw_template_id)).prizes);
|
|
9899
9902
|
}
|
|
9900
9903
|
async missionOptIn(user_ext_id, mission_id) {
|
|
@@ -9967,6 +9970,9 @@ class SmarticoAPI {
|
|
|
9967
9970
|
return await this.send(message, ClassId.ACH_SHOP_ITEM_HISTORY_RESPONSE);
|
|
9968
9971
|
}
|
|
9969
9972
|
async storeGetPurchasedItemsT(user_ext_id, limit, offset) {
|
|
9973
|
+
if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
|
|
9974
|
+
limit = 50;
|
|
9975
|
+
}
|
|
9970
9976
|
return StoreItemPurchasedTransform((await this.storeGetPurchasedItems(user_ext_id, limit, offset)).items);
|
|
9971
9977
|
}
|
|
9972
9978
|
async missionsGetItems(user_ext_id, force_language) {
|