@smartico/public-api 0.0.390 → 0.0.391

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.390",
3
+ "version": "0.0.391",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -766,6 +766,9 @@ class SmarticoAPI {
766
766
  }
767
767
 
768
768
  public async getSawWinningHistoryT(user_ext_id: string, limit?: number, offset?: number, saw_template_id?: number): Promise<SAWPrizesHistory[]> {
769
+ if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
770
+ limit = 50;
771
+ }
769
772
  return SAWHistoryTransform((await this.getSawWinningHistory(user_ext_id, limit, offset, saw_template_id)).prizes);
770
773
  }
771
774
 
@@ -888,6 +891,9 @@ class SmarticoAPI {
888
891
  }
889
892
 
890
893
  public async storeGetPurchasedItemsT(user_ext_id: string, limit?: number, offset?: number): Promise<TStoreItem[]> {
894
+ if (IntUtils.isNotNull(limit) && IntUtils.isNotNull(offset) && limit > 50) {
895
+ limit = 50;
896
+ }
891
897
  return StoreItemPurchasedTransform((await this.storeGetPurchasedItems(user_ext_id, limit, offset)).items);
892
898
  }
893
899