@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 CHANGED
@@ -9932,7 +9932,7 @@ var WSAPI = /*#__PURE__*/function (_WSAPIInbox) {
9932
9932
  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) {
9933
9933
  _this.updateInboxUnreadCount(data.props.core_inbox_unread_count);
9934
9934
  }
9935
- 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) {
9935
+ 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, exports.ECacheContext.WSAPI)) {
9936
9936
  _this.notifyActivityLogUpdate();
9937
9937
  }
9938
9938
  OCache.clear(exports.ECacheContext.WSAPI, onUpdateContextKey.CurrentLevel);
@@ -10810,6 +10810,9 @@ var SmarticoAPI = /*#__PURE__*/function () {
10810
10810
  _proto.getSawWinningHistoryT = function getSawWinningHistoryT(user_ext_id, limit, offset, saw_template_id) {
10811
10811
  try {
10812
10812
  var _this21 = this;
10813
+ if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
10814
+ limit = 50;
10815
+ }
10813
10816
  return Promise.resolve(_this21.getSawWinningHistory(user_ext_id, limit, offset, saw_template_id)).then(function (_this21$getSawWinning) {
10814
10817
  return SAWHistoryTransform(_this21$getSawWinning.prizes);
10815
10818
  });
@@ -10951,6 +10954,9 @@ var SmarticoAPI = /*#__PURE__*/function () {
10951
10954
  _proto.storeGetPurchasedItemsT = function storeGetPurchasedItemsT(user_ext_id, limit, offset) {
10952
10955
  try {
10953
10956
  var _this32 = this;
10957
+ if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
10958
+ limit = 50;
10959
+ }
10954
10960
  return Promise.resolve(_this32.storeGetPurchasedItems(user_ext_id, limit, offset)).then(function (_this32$storeGetPurch) {
10955
10961
  return StoreItemPurchasedTransform(_this32$storeGetPurch.items);
10956
10962
  });