@smartico/public-api 0.0.136 → 0.0.137

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.
Files changed (53) hide show
  1. package/dist/Jackpots/JackpotDetails.d.ts +16 -0
  2. package/dist/Jackpots/JackpotPot.d.ts +6 -0
  3. package/dist/Jackpots/JackpotPublicMeta.d.ts +7 -0
  4. package/dist/MiniGames/SAWTemplateUI.d.ts +2 -2
  5. package/dist/SmarticoAPI.d.ts +2 -2
  6. package/dist/SmarticoLib/index.d.ts +4 -2
  7. package/dist/WSAPI/WSAPI.d.ts +38 -13
  8. package/dist/WSAPI/WSAPITypes.d.ts +1 -0
  9. package/dist/index.js +70 -59
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.modern.mjs +43 -25
  12. package/dist/index.modern.mjs.map +1 -1
  13. package/docs/README.md +19 -1
  14. package/docs/classes/WSAPI.md +91 -11
  15. package/docs/enums/JackpotContributionType.md +13 -0
  16. package/docs/enums/JackpotType.md +7 -0
  17. package/docs/enums/LeaderBoardPeriodType.md +19 -0
  18. package/docs/enums/SAWGameTypeName.md +6 -0
  19. package/docs/interfaces/AchRelatedGame-1.md +28 -0
  20. package/docs/interfaces/AchRelatedGame.md +14 -12
  21. package/docs/interfaces/GetJackpotsPotsRequest.md +43 -0
  22. package/docs/interfaces/GetJackpotsPotsResponse.md +63 -0
  23. package/docs/interfaces/GetJackpotsRequest.md +49 -0
  24. package/docs/interfaces/GetJackpotsResponse.md +63 -0
  25. package/docs/interfaces/JackPotWinner.md +31 -0
  26. package/docs/interfaces/JackpotDetails.md +85 -0
  27. package/docs/interfaces/JackpotHtmlTemplate.md +13 -0
  28. package/docs/interfaces/JackpotPot.md +41 -0
  29. package/docs/interfaces/JackpotPublicMeta.md +57 -0
  30. package/docs/interfaces/JackpotWinPush.md +49 -0
  31. package/docs/interfaces/JackpotsOptinRequest.md +43 -0
  32. package/docs/interfaces/JackpotsOptinResponse.md +57 -0
  33. package/docs/interfaces/JackpotsOptoutRequest.md +43 -0
  34. package/docs/interfaces/JackpotsOptoutResponse.md +57 -0
  35. package/docs/interfaces/LeaderBoardDetailsT.md +1 -1
  36. package/docs/interfaces/TAchCategory.md +6 -0
  37. package/docs/interfaces/TMiniGameTemplate.md +2 -0
  38. package/docs/interfaces/TMissionOrBadge.md +6 -7
  39. package/docs/interfaces/TStoreCategory.md +6 -0
  40. package/docs/interfaces/TTournament.md +6 -0
  41. package/docs/interfaces/TTournamentDetailed.md +11 -1
  42. package/package.json +1 -1
  43. package/src/Base/AchRelatedGame.ts +3 -1
  44. package/src/Jackpots/JackpotDetails.ts +16 -0
  45. package/src/Jackpots/JackpotPot.ts +7 -1
  46. package/src/Jackpots/JackpotPublicMeta.ts +7 -0
  47. package/src/MiniGames/SAWTemplateUI.ts +2 -2
  48. package/src/SmarticoAPI.ts +6 -11
  49. package/src/SmarticoLib/index.ts +4 -2
  50. package/src/Tournaments/Tournament.ts +1 -0
  51. package/src/WSAPI/WSAPI.ts +38 -13
  52. package/src/WSAPI/WSAPITypes.ts +2 -0
  53. package/tsconfig.json +3 -0
@@ -3,15 +3,31 @@ import { JackpotContributionType } from "./JackpotContributionType";
3
3
  import { JackpotPot } from "./JackpotPot";
4
4
  import { JackpotPublicMeta } from "./JackpotPublicMeta";
5
5
  import { JackpotType } from "./JackpotType";
6
+ /**
7
+ * JackpotDetails the information about Jackpot template
8
+ * It also includes JackpotPot object that holds the current value of the jackpot
9
+ * Flag is_opted_in indicates if the current user is opted in to the jackpot
10
+ */
6
11
  interface JackpotDetails {
12
+ /** ID of the jackpot template */
7
13
  jp_template_id: number;
14
+ /** type of jackpot logic */
8
15
  jp_type_id: JackpotType;
16
+ /** UI information of jackpot, like name, description, etc. */
9
17
  jp_public_meta: JackpotPublicMeta;
18
+ /** base currency of the jackpot */
10
19
  jp_currency: string;
20
+ /** wallet currency of currently logged in user */
21
+ user_currency: string;
22
+ /** list of related games that are eligible for the jackpot */
11
23
  related_games?: AchRelatedGame[];
24
+ /** type of the user contribution to the jackpot */
12
25
  contribution_type: JackpotContributionType;
26
+ /** value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
13
27
  contribution_value: number;
28
+ /** information of current value of the jackpot */
14
29
  pot: JackpotPot;
30
+ /** indication if the current user is opted in to the jackpot */
15
31
  is_opted_in: boolean;
16
32
  }
17
33
  export { JackpotDetails };
@@ -1,7 +1,13 @@
1
1
  interface JackpotPot {
2
+ /** ID of the jackpot template */
2
3
  jp_template_id: number;
4
+ /** ID of the jackpot pot */
3
5
  jp_pot_id: number;
6
+ /** currency of the jackpot pot in the Jackput base currency */
4
7
  current_pot_amount: number;
8
+ /** currency of the jackpot pot in the user wallet currency */
9
+ current_pot_amount_user_currency: number;
10
+ /** the date/time when this pot exploded */
5
11
  explode_date_ts: number;
6
12
  }
7
13
  export { JackpotPot };
@@ -1,11 +1,18 @@
1
1
  import { JackpotHtmlTemplate } from './JackpotHtmlTemplate';
2
2
  interface JackpotPublicMeta {
3
+ /** name of the jackpot */
3
4
  name: string;
5
+ /** description/rules of the jackpot */
4
6
  description: string;
7
+ /** image url of the jackpot */
5
8
  image_url: string;
9
+ /** HTML template for the winner of the jackpt */
6
10
  winner_template: JackpotHtmlTemplate;
11
+ /** HTML template for the not winner of the jackpot */
7
12
  not_winner_template: JackpotHtmlTemplate;
13
+ /** custom value of placeholder1 defined by operator and can be used in the HTML templates */
8
14
  placeholder1: string;
15
+ /** custom value of placeholder2 defined by operator and can be used in the HTML templates */
9
16
  placeholder2: string;
10
17
  }
11
18
  export { JackpotPublicMeta };
@@ -36,8 +36,8 @@ export interface SAWTemplateUI {
36
36
  custom_section_id?: number;
37
37
  only_in_custom_section?: boolean;
38
38
  custom_data: any;
39
- placeholder_1?: string;
40
- placeholder_2?: string;
39
+ placeholder1?: string;
40
+ placeholder2?: string;
41
41
  prize_drop_template?: {
42
42
  id: string;
43
43
  content: string;
@@ -83,8 +83,8 @@ declare class SmarticoAPI {
83
83
  storeGetItemsT(user_ext_id: string): Promise<TStoreItem[]>;
84
84
  storeGetCategories(user_ext_id: string): Promise<GetCategoriesStoreResponse>;
85
85
  storeGetCategoriesT(user_ext_id: string): Promise<TStoreCategory[]>;
86
- storeGetPurchasedItems(user_ext_id: string, limit?: number, offset?: number): Promise<GetStoreHistoryResponse>;
87
- storeGetPurchasedItemsT(user_ext_id: string, from?: number, to?: number): Promise<TStoreItem[]>;
86
+ storeGetPurchasedItems(user_ext_id: string): Promise<GetStoreHistoryResponse>;
87
+ storeGetPurchasedItemsT(user_ext_id: string): Promise<TStoreItem[]>;
88
88
  missionsGetItems(user_ext_id: string): Promise<GetAchievementMapResponse>;
89
89
  missionsGetItemsT(user_ext_id: string): Promise<TMissionOrBadge[]>;
90
90
  getUserGamificationInfo(user_ext_id: string): Promise<GetAchievementsUserInfoResponse>;
@@ -408,8 +408,8 @@ export interface SAWTemplateUI {
408
408
  custom_section_id?: number;
409
409
  only_in_custom_section?: boolean;
410
410
  custom_data: any;
411
- placeholder_1?: string;
412
- placeholder_2?: string;
411
+ placeholder1?: string;
412
+ placeholder2?: string;
413
413
  prize_drop_template?: {
414
414
  id: string;
415
415
  content: string;
@@ -512,6 +512,8 @@ export interface TournamentPublicMeta {
512
512
  image_url?: string;
513
513
  /** 2nd image */
514
514
  image_url2?: string;
515
+ /** 2nd image for mobile */
516
+ image_url2_mobile?: string;
515
517
  /** Description, html capable */
516
518
  description?: string;
517
519
  /** Short explanation of prize pool */
@@ -93,19 +93,15 @@ export declare class WSAPI {
93
93
  buyStoreItem(item_id: number): Promise<TBuyStoreItemResult>;
94
94
  /** Returns store categories */
95
95
  getStoreCategories(): Promise<TStoreCategory[]>;
96
- /** Returns store purchased items based on the provided parameters. "From" and "to" indicate the range of items to be fetched.
97
- * The maximum number of messages per request is limited to 20.
98
- * You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
99
- * This functions return list of purchased items.
100
- * The "onUpdate" callback will be triggered when the user receives a new purchased item. It will provide an updated list of items, ranging from 0 to 20, to the onUpdate callback function. */
101
- /**
102
- * @param params
103
- */
104
- storeGetPurchasedItems({ from, to, onUpdate }?: {
105
- from?: number;
106
- to?: number;
107
- onUpdate?: (data: TStoreItem[]) => void;
108
- }): Promise<TStoreItem[]>;
96
+ /** Returns all the purchased store items available the current user
97
+ * Example usage:
98
+ * ```
99
+ * _smartico.api.getStorePurchasedItems().then((result) => {
100
+ * console.log(result);
101
+ * });
102
+ * ```
103
+ */
104
+ getStorePurchasedItems(): Promise<TStoreItem[]>;
109
105
  /** Returns missions & badges categories */
110
106
  getAchCategories(): Promise<TAchCategory[]>;
111
107
  /** Returns the list of mini-games available for user
@@ -179,13 +175,42 @@ export declare class WSAPI {
179
175
  private updateInboxMessages;
180
176
  private updateEntity;
181
177
  private jackpotClearCache;
178
+ /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
179
+ * If filter is not provided, all active jackpots will be returned.
180
+ * Filter can be used to get jackpots related to specific game or specific jackpot template.
181
+ * You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
182
+ * Example usage:
183
+ * ```
184
+ * _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
185
+ * console.log(result);
186
+ * });
187
+ * ```
188
+ */
182
189
  jackpotGet(filter?: {
183
190
  related_game_id?: string;
184
191
  jp_template_id?: number;
185
192
  }): Promise<JackpotDetails[]>;
193
+ /** Opt-in currently logged in user to the jackpot with the specified jp_template_id.
194
+ * You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
195
+ * Example usage:
196
+ * ```
197
+ * _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
198
+ * console.log('Opted in to the jackpot');
199
+ * });
200
+ * ```
201
+ */
186
202
  jackpotOptIn(filter: {
187
203
  jp_template_id: number;
188
204
  }): Promise<JackpotsOptinResponse>;
205
+ /** Opt-out currently logged in user from the jackpot with the specified jp_template_id.
206
+ * You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
207
+ * Example usage:
208
+ * ```
209
+ * _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
210
+ * console.log('Opted out from the jackpot');
211
+ * });
212
+ * ```
213
+ */
189
214
  jackpotOptOut(filter: {
190
215
  jp_template_id: number;
191
216
  }): Promise<JackpotsOptoutResponse>;
@@ -160,6 +160,7 @@ export interface TTournament {
160
160
  description: string;
161
161
  image1: string;
162
162
  image2: string;
163
+ image2_mobile: string;
163
164
  prize_pool_short: string;
164
165
  custom_price_text: string;
165
166
  /** The message that should be shown to the user when the user cannot register in tournament with error code TOURNAMENT_USER_DONT_MATCH_CONDITIONS */
package/dist/index.js CHANGED
@@ -900,6 +900,7 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
900
900
  segment_dont_match_message: r.publicMeta.segment_dont_match_message,
901
901
  image1: r.publicMeta.image_url,
902
902
  image2: r.publicMeta.image_url2,
903
+ image2_mobile: r.publicMeta.image_url2_mobile,
903
904
  prize_pool_short: r.publicMeta.prize_pool_short,
904
905
  custom_price_text: r.publicMeta.custom_price_text,
905
906
  custom_section_id: r.publicMeta.custom_section_id,
@@ -1346,26 +1347,21 @@ var WSAPI = /*#__PURE__*/function () {
1346
1347
  return Promise.reject(e);
1347
1348
  }
1348
1349
  }
1349
- /** Returns store purchased items based on the provided parameters. "From" and "to" indicate the range of items to be fetched.
1350
- * The maximum number of messages per request is limited to 20.
1351
- * You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
1352
- * This functions return list of purchased items.
1353
- * The "onUpdate" callback will be triggered when the user receives a new purchased item. It will provide an updated list of items, ranging from 0 to 20, to the onUpdate callback function. */
1354
- /**
1355
- * @param params
1350
+ /** Returns all the purchased store items available the current user
1351
+ * Example usage:
1352
+ * ```
1353
+ * _smartico.api.getStorePurchasedItems().then((result) => {
1354
+ * console.log(result);
1355
+ * });
1356
+ * ```
1356
1357
  */
1357
1358
  ;
1358
- _proto.storeGetPurchasedItems = function storeGetPurchasedItems(_temp2) {
1359
- var _ref2 = _temp2 === void 0 ? {} : _temp2,
1360
- from = _ref2.from,
1361
- to = _ref2.to,
1362
- onUpdate = _ref2.onUpdate;
1359
+ _proto.getStorePurchasedItems = function getStorePurchasedItems() {
1363
1360
  try {
1364
1361
  var _this11 = this;
1365
- if (onUpdate) {
1366
- _this11.onUpdateCallback.set(onUpdateContextKey.StoreHistory, onUpdate);
1367
- }
1368
- return Promise.resolve(_this11.api.storeGetPurchasedItemsT(null, from, to));
1362
+ return Promise.resolve(OCache.use(onUpdateContextKey.StoreItems, exports.ECacheContext.WSAPI, function () {
1363
+ return _this11.api.storeGetPurchasedItemsT(null);
1364
+ }, CACHE_DATA_SEC));
1369
1365
  } catch (e) {
1370
1366
  return Promise.reject(e);
1371
1367
  }
@@ -1388,9 +1384,9 @@ var WSAPI = /*#__PURE__*/function () {
1388
1384
  * @param params
1389
1385
  */
1390
1386
  ;
1391
- _proto.getMiniGames = function getMiniGames(_temp3) {
1392
- var _ref3 = _temp3 === void 0 ? {} : _temp3,
1393
- onUpdate = _ref3.onUpdate;
1387
+ _proto.getMiniGames = function getMiniGames(_temp2) {
1388
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
1389
+ onUpdate = _ref2.onUpdate;
1394
1390
  try {
1395
1391
  var _this13 = this;
1396
1392
  if (onUpdate) {
@@ -1454,9 +1450,9 @@ var WSAPI = /*#__PURE__*/function () {
1454
1450
  * @param params
1455
1451
  */
1456
1452
  ;
1457
- _proto.getTournamentsList = function getTournamentsList(_temp4) {
1458
- var _ref4 = _temp4 === void 0 ? {} : _temp4,
1459
- onUpdate = _ref4.onUpdate;
1453
+ _proto.getTournamentsList = function getTournamentsList(_temp3) {
1454
+ var _ref3 = _temp3 === void 0 ? {} : _temp3,
1455
+ onUpdate = _ref3.onUpdate;
1460
1456
  try {
1461
1457
  var _this17 = this;
1462
1458
  if (onUpdate) {
@@ -1516,12 +1512,12 @@ var WSAPI = /*#__PURE__*/function () {
1516
1512
  * @param params
1517
1513
  */
1518
1514
  ;
1519
- _proto.getInboxMessages = function getInboxMessages(_temp5) {
1520
- var _ref5 = _temp5 === void 0 ? {} : _temp5,
1521
- from = _ref5.from,
1522
- to = _ref5.to,
1523
- onlyFavorite = _ref5.onlyFavorite,
1524
- onUpdate = _ref5.onUpdate;
1515
+ _proto.getInboxMessages = function getInboxMessages(_temp4) {
1516
+ var _ref4 = _temp4 === void 0 ? {} : _temp4,
1517
+ from = _ref4.from,
1518
+ to = _ref4.to,
1519
+ onlyFavorite = _ref4.onlyFavorite,
1520
+ onUpdate = _ref4.onUpdate;
1525
1521
  try {
1526
1522
  var _this21 = this;
1527
1523
  if (onUpdate) {
@@ -1646,7 +1642,7 @@ var WSAPI = /*#__PURE__*/function () {
1646
1642
  _proto.updateOnPrizeWin = function updateOnPrizeWin(data) {
1647
1643
  try {
1648
1644
  var _this31 = this;
1649
- var _temp7 = function () {
1645
+ var _temp6 = function () {
1650
1646
  if (data.errCode === exports.SAWSpinErrorCode.SAW_OK) {
1651
1647
  return Promise.resolve(OCache.use(onUpdateContextKey.Saw, exports.ECacheContext.WSAPI, function () {
1652
1648
  return _this31.api.sawGetTemplatesT(null);
@@ -1660,18 +1656,18 @@ var WSAPI = /*#__PURE__*/function () {
1660
1656
  var prizeType = (_template$prizes$find = template.prizes.find(function (p) {
1661
1657
  return p.id === data.saw_prize_id;
1662
1658
  })) == null ? void 0 : _template$prizes$find.prize_type;
1663
- var _temp6 = function () {
1659
+ var _temp5 = function () {
1664
1660
  if (template.jackpot_add_on_attempt || template.spin_count === 1 || prizeType === exports.MiniGamePrizeTypeName.JACKPOT || prizeType === exports.MiniGamePrizeTypeName.SPIN) {
1665
1661
  return Promise.resolve(_this31.api.sawGetTemplatesT(null)).then(function (updatedTemplates) {
1666
1662
  _this31.updateEntity(onUpdateContextKey.Saw, updatedTemplates);
1667
1663
  });
1668
1664
  }
1669
1665
  }();
1670
- if (_temp6 && _temp6.then) return _temp6.then(function () {});
1666
+ if (_temp5 && _temp5.then) return _temp5.then(function () {});
1671
1667
  });
1672
1668
  }
1673
1669
  }();
1674
- return Promise.resolve(_temp7 && _temp7.then ? _temp7.then(function () {}) : void 0);
1670
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
1675
1671
  } catch (e) {
1676
1672
  return Promise.reject(e);
1677
1673
  }
@@ -1727,7 +1723,19 @@ var WSAPI = /*#__PURE__*/function () {
1727
1723
  } catch (e) {
1728
1724
  return Promise.reject(e);
1729
1725
  }
1730
- };
1726
+ }
1727
+ /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
1728
+ * If filter is not provided, all active jackpots will be returned.
1729
+ * Filter can be used to get jackpots related to specific game or specific jackpot template.
1730
+ * You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
1731
+ * Example usage:
1732
+ * ```
1733
+ * _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
1734
+ * console.log(result);
1735
+ * });
1736
+ * ```
1737
+ */
1738
+ ;
1731
1739
  _proto.jackpotGet = function jackpotGet(filter) {
1732
1740
  try {
1733
1741
  var _this36 = this;
@@ -1751,7 +1759,7 @@ var WSAPI = /*#__PURE__*/function () {
1751
1759
  return Promise.reject(e);
1752
1760
  }
1753
1761
  }, JACKPOT_TEMPLATE_CACHE_SEC)).then(function (_OCache$use) {
1754
- function _temp9() {
1762
+ function _temp8() {
1755
1763
  return jackpots.map(function (jp) {
1756
1764
  var _jp = _extends({}, jp, {
1757
1765
  pot: pots.find(function (p) {
@@ -1762,7 +1770,7 @@ var WSAPI = /*#__PURE__*/function () {
1762
1770
  });
1763
1771
  }
1764
1772
  jackpots = _OCache$use;
1765
- var _temp8 = function () {
1773
+ var _temp7 = function () {
1766
1774
  if (jackpots.length > 0) {
1767
1775
  return Promise.resolve(OCache.use(onUpdateContextKey.Pots, exports.ECacheContext.WSAPI, function () {
1768
1776
  try {
@@ -1780,12 +1788,22 @@ var WSAPI = /*#__PURE__*/function () {
1780
1788
  });
1781
1789
  }
1782
1790
  }();
1783
- return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
1791
+ return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
1784
1792
  });
1785
1793
  } catch (e) {
1786
1794
  return Promise.reject(e);
1787
1795
  }
1788
- };
1796
+ }
1797
+ /** Opt-in currently logged in user to the jackpot with the specified jp_template_id.
1798
+ * You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
1799
+ * Example usage:
1800
+ * ```
1801
+ * _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
1802
+ * console.log('Opted in to the jackpot');
1803
+ * });
1804
+ * ```
1805
+ */
1806
+ ;
1789
1807
  _proto.jackpotOptIn = function jackpotOptIn(filter) {
1790
1808
  try {
1791
1809
  var _this37 = this;
@@ -1800,7 +1818,17 @@ var WSAPI = /*#__PURE__*/function () {
1800
1818
  } catch (e) {
1801
1819
  return Promise.reject(e);
1802
1820
  }
1803
- };
1821
+ }
1822
+ /** Opt-out currently logged in user from the jackpot with the specified jp_template_id.
1823
+ * You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
1824
+ * Example usage:
1825
+ * ```
1826
+ * _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
1827
+ * console.log('Opted out from the jackpot');
1828
+ * });
1829
+ * ```
1830
+ */
1831
+ ;
1804
1832
  _proto.jackpotOptOut = function jackpotOptOut(filter) {
1805
1833
  try {
1806
1834
  var _this38 = this;
@@ -2381,36 +2409,19 @@ var SmarticoAPI = /*#__PURE__*/function () {
2381
2409
  return Promise.reject(e);
2382
2410
  }
2383
2411
  };
2384
- _proto.storeGetPurchasedItems = function storeGetPurchasedItems(user_ext_id, limit, offset) {
2385
- if (limit === void 0) {
2386
- limit = 20;
2387
- }
2388
- if (offset === void 0) {
2389
- offset = 0;
2390
- }
2412
+ _proto.storeGetPurchasedItems = function storeGetPurchasedItems(user_ext_id) {
2391
2413
  try {
2392
2414
  var _this25 = this;
2393
- var message = _this25.buildMessage(user_ext_id, exports.ClassId.ACH_SHOP_ITEM_HISTORY_REQUEST, {
2394
- limit: limit,
2395
- offset: offset
2396
- });
2415
+ var message = _this25.buildMessage(user_ext_id, exports.ClassId.ACH_SHOP_ITEM_HISTORY_REQUEST);
2397
2416
  return Promise.resolve(_this25.send(message, exports.ClassId.ACH_SHOP_ITEM_HISTORY_RESPONSE));
2398
2417
  } catch (e) {
2399
2418
  return Promise.reject(e);
2400
2419
  }
2401
2420
  };
2402
- _proto.storeGetPurchasedItemsT = function storeGetPurchasedItemsT(user_ext_id, from, to) {
2403
- if (from === void 0) {
2404
- from = 0;
2405
- }
2406
- if (to === void 0) {
2407
- to = 20;
2408
- }
2421
+ _proto.storeGetPurchasedItemsT = function storeGetPurchasedItemsT(user_ext_id) {
2409
2422
  try {
2410
2423
  var _this26 = this;
2411
- var limit = to - from > 20 ? 20 : to - from;
2412
- var offset = from;
2413
- return Promise.resolve(_this26.storeGetPurchasedItems(user_ext_id, limit, offset)).then(function (_this26$storeGetPurch) {
2424
+ return Promise.resolve(_this26.storeGetPurchasedItems(user_ext_id)).then(function (_this26$storeGetPurch) {
2414
2425
  return StoreItemPurchasedTransform(_this26$storeGetPurch.items);
2415
2426
  });
2416
2427
  } catch (e) {