@smartico/public-api 0.0.213 → 0.0.215

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.
@@ -29,4 +29,5 @@ export interface SAWTemplate {
29
29
  expose_game_stat_on_api?: boolean;
30
30
  requires_prize_claim?: boolean;
31
31
  relative_period_timezone?: number;
32
+ show_prize_history?: boolean;
32
33
  }
@@ -3,6 +3,7 @@ import { TSawHistory } from "../WSAPI/WSAPITypes";
3
3
  import { SAWTemplate } from "./SAWTemplate";
4
4
  export interface SAWWinningHistoryResponse extends ProtocolResponse {
5
5
  prizes: SAWPrizesHistory[];
6
+ hasMore: boolean;
6
7
  }
7
8
  export interface SAWPrizesHistory {
8
9
  template: SAWTemplate;
@@ -266,8 +266,8 @@ export declare class WSAPI {
266
266
  * ```
267
267
  *
268
268
  * **Visitor mode: not supported**
269
- */
270
- getMiniGamesHistory({ limit, offset, saw_template_id }: {
269
+ */
270
+ getMiniGamesHistory({ limit, offset, saw_template_id, }: {
271
271
  limit?: number;
272
272
  offset?: number;
273
273
  saw_template_id?: number;
@@ -289,6 +289,16 @@ export declare class WSAPI {
289
289
  playMiniGame(template_id: number, { onUpdate }?: {
290
290
  onUpdate?: (data: TMiniGameTemplate[]) => void;
291
291
  }): Promise<TMiniGamePlayResult>;
292
+ /**
293
+ * Sends the acknowledge request with specific client_request_id from minigame history in order to claim prize
294
+ * **Example**:
295
+ * ```
296
+ * _smartico.api.miniGameWinAcknowledgeRequest('12dvq1r24b6h').then((result) => {
297
+ * console.log(result);
298
+ * });
299
+ * ```
300
+ */
301
+ miniGameWinAcknowledgeRequest(request_id: string): Promise<import("../MiniGames").SAWDoAknowledgeResponse>;
292
302
  /**
293
303
  * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
294
304
  * After playMiniGameBatch is called, you can call getMiniGames to get the list of mini-games. The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call playMiniGameBatch with a new onUpdate callback, the old one will be overwritten by the new one.
@@ -151,6 +151,7 @@ export interface TMiniGameTemplate {
151
151
  custom_section_id?: number;
152
152
  /** The UI definition of the mini-game */
153
153
  saw_template_ui_definition: SAWTemplateUI;
154
+ show_prize_history?: boolean;
154
155
  }
155
156
  /**
156
157
  * TUser describes the information of the user
package/dist/index.js CHANGED
@@ -411,6 +411,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
411
411
  steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
412
412
  custom_section_id: r.saw_template_ui_definition.custom_section_id,
413
413
  saw_template_ui_definition: r.saw_template_ui_definition,
414
+ show_prize_history: r.show_prize_history,
414
415
  prizes: r.prizes.map(function (p) {
415
416
  var y = {
416
417
  id: p.saw_prize_id,
@@ -2033,7 +2034,7 @@ var WSAPI = /*#__PURE__*/function () {
2033
2034
  * ```
2034
2035
  *
2035
2036
  * **Visitor mode: not supported**
2036
- */
2037
+ */
2037
2038
  ;
2038
2039
  _proto.getMiniGamesHistory = function getMiniGamesHistory(_ref5) {
2039
2040
  var limit = _ref5.limit,
@@ -2084,6 +2085,24 @@ var WSAPI = /*#__PURE__*/function () {
2084
2085
  return Promise.reject(e);
2085
2086
  }
2086
2087
  }
2088
+ /**
2089
+ * Sends the acknowledge request with specific client_request_id from minigame history in order to claim prize
2090
+ * **Example**:
2091
+ * ```
2092
+ * _smartico.api.miniGameWinAcknowledgeRequest('12dvq1r24b6h').then((result) => {
2093
+ * console.log(result);
2094
+ * });
2095
+ * ```
2096
+ */
2097
+ ;
2098
+ _proto.miniGameWinAcknowledgeRequest = function miniGameWinAcknowledgeRequest(request_id) {
2099
+ try {
2100
+ var _this19 = this;
2101
+ return Promise.resolve(_this19.api.doAcknowledgeRequest(null, request_id));
2102
+ } catch (e) {
2103
+ return Promise.reject(e);
2104
+ }
2105
+ }
2087
2106
  /**
2088
2107
  * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
2089
2108
  * After playMiniGameBatch is called, you can call getMiniGames to get the list of mini-games. The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call playMiniGameBatch with a new onUpdate callback, the old one will be overwritten by the new one.
@@ -2102,15 +2121,15 @@ var WSAPI = /*#__PURE__*/function () {
2102
2121
  var _ref7 = _temp6 === void 0 ? {} : _temp6,
2103
2122
  onUpdate = _ref7.onUpdate;
2104
2123
  try {
2105
- var _this19 = this;
2124
+ var _this20 = this;
2106
2125
  if (onUpdate) {
2107
- _this19.onUpdateCallback.set(onUpdateContextKey.Saw, onUpdate);
2126
+ _this20.onUpdateCallback.set(onUpdateContextKey.Saw, onUpdate);
2108
2127
  }
2109
- return Promise.resolve(_this19.api.sawSpinBatchRequest(null, template_id, spin_count)).then(function (response) {
2128
+ return Promise.resolve(_this20.api.sawSpinBatchRequest(null, template_id, spin_count)).then(function (response) {
2110
2129
  var request_ids = response.results.map(function (result) {
2111
2130
  return result.request_id;
2112
2131
  });
2113
- _this19.api.doAcknowledgeBatchRequest(null, request_ids);
2132
+ _this20.api.doAcknowledgeBatchRequest(null, request_ids);
2114
2133
  var o = response.results.map(function (result) {
2115
2134
  return {
2116
2135
  errCode: result.errCode,
@@ -2134,8 +2153,8 @@ var WSAPI = /*#__PURE__*/function () {
2134
2153
  ;
2135
2154
  _proto.requestMissionOptIn = function requestMissionOptIn(mission_id) {
2136
2155
  try {
2137
- var _this20 = this;
2138
- return Promise.resolve(_this20.api.missionOptIn(null, mission_id)).then(function (r) {
2156
+ var _this21 = this;
2157
+ return Promise.resolve(_this21.api.missionOptIn(null, mission_id)).then(function (r) {
2139
2158
  var o = {
2140
2159
  err_code: r.errCode,
2141
2160
  err_message: r.errMsg
@@ -2154,8 +2173,8 @@ var WSAPI = /*#__PURE__*/function () {
2154
2173
  ;
2155
2174
  _proto.requestMissionClaimReward = function requestMissionClaimReward(mission_id, ach_completed_id) {
2156
2175
  try {
2157
- var _this21 = this;
2158
- return Promise.resolve(_this21.api.missionClaimPrize(null, mission_id, ach_completed_id)).then(function (r) {
2176
+ var _this22 = this;
2177
+ return Promise.resolve(_this22.api.missionClaimPrize(null, mission_id, ach_completed_id)).then(function (r) {
2159
2178
  var o = {
2160
2179
  err_code: r.errCode,
2161
2180
  err_message: r.errMsg
@@ -2189,12 +2208,12 @@ var WSAPI = /*#__PURE__*/function () {
2189
2208
  var _ref8 = _temp7 === void 0 ? {} : _temp7,
2190
2209
  onUpdate = _ref8.onUpdate;
2191
2210
  try {
2192
- var _this22 = this;
2211
+ var _this23 = this;
2193
2212
  if (onUpdate) {
2194
- _this22.onUpdateCallback.set(onUpdateContextKey.TournamentList, onUpdate);
2213
+ _this23.onUpdateCallback.set(onUpdateContextKey.TournamentList, onUpdate);
2195
2214
  }
2196
2215
  return Promise.resolve(OCache.use(onUpdateContextKey.TournamentList, exports.ECacheContext.WSAPI, function () {
2197
- return _this22.api.tournamentsGetLobbyT(null);
2216
+ return _this23.api.tournamentsGetLobbyT(null);
2198
2217
  }, CACHE_DATA_SEC));
2199
2218
  } catch (e) {
2200
2219
  return Promise.reject(e);
@@ -2228,8 +2247,8 @@ var WSAPI = /*#__PURE__*/function () {
2228
2247
  ;
2229
2248
  _proto.getTournamentInstanceInfo = function getTournamentInstanceInfo(tournamentInstanceId) {
2230
2249
  try {
2231
- var _this23 = this;
2232
- return Promise.resolve(_this23.api.tournamentsGetInfoT(null, tournamentInstanceId));
2250
+ var _this24 = this;
2251
+ return Promise.resolve(_this24.api.tournamentsGetInfoT(null, tournamentInstanceId));
2233
2252
  } catch (e) {
2234
2253
  return Promise.reject(e);
2235
2254
  }
@@ -2242,8 +2261,8 @@ var WSAPI = /*#__PURE__*/function () {
2242
2261
  ;
2243
2262
  _proto.registerInTournament = function registerInTournament(tournamentInstanceId) {
2244
2263
  try {
2245
- var _this24 = this;
2246
- return Promise.resolve(_this24.api.registerInTournament(null, tournamentInstanceId)).then(function (r) {
2264
+ var _this25 = this;
2265
+ return Promise.resolve(_this25.api.registerInTournament(null, tournamentInstanceId)).then(function (r) {
2247
2266
  var o = {
2248
2267
  err_code: r.errCode,
2249
2268
  err_message: r.errMsg
@@ -2275,9 +2294,9 @@ var WSAPI = /*#__PURE__*/function () {
2275
2294
  ;
2276
2295
  _proto.getLeaderBoard = function getLeaderBoard(periodType, getPreviousPeriod) {
2277
2296
  try {
2278
- var _this25 = this;
2297
+ var _this26 = this;
2279
2298
  return Promise.resolve(OCache.use(onUpdateContextKey.LeaderBoards, exports.ECacheContext.WSAPI, function () {
2280
- return _this25.api.leaderboardsGetT(null, periodType, getPreviousPeriod);
2299
+ return _this26.api.leaderboardsGetT(null, periodType, getPreviousPeriod);
2281
2300
  }, CACHE_DATA_SEC));
2282
2301
  } catch (e) {
2283
2302
  return Promise.reject(e);
@@ -2303,11 +2322,11 @@ var WSAPI = /*#__PURE__*/function () {
2303
2322
  onlyFavorite = _ref9.onlyFavorite,
2304
2323
  onUpdate = _ref9.onUpdate;
2305
2324
  try {
2306
- var _this26 = this;
2325
+ var _this27 = this;
2307
2326
  if (onUpdate) {
2308
- _this26.onUpdateCallback.set(onUpdateContextKey.InboxMessages, onUpdate);
2327
+ _this27.onUpdateCallback.set(onUpdateContextKey.InboxMessages, onUpdate);
2309
2328
  }
2310
- return Promise.resolve(_this26.api.getInboxMessagesT(null, from, to, onlyFavorite));
2329
+ return Promise.resolve(_this27.api.getInboxMessagesT(null, from, to, onlyFavorite));
2311
2330
  } catch (e) {
2312
2331
  return Promise.reject(e);
2313
2332
  }
@@ -2320,8 +2339,8 @@ var WSAPI = /*#__PURE__*/function () {
2320
2339
  ;
2321
2340
  _proto.getInboxMessageBody = function getInboxMessageBody(messageGuid) {
2322
2341
  try {
2323
- var _this27 = this;
2324
- return Promise.resolve(_this27.api.getInboxMessageBodyT(messageGuid));
2342
+ var _this28 = this;
2343
+ return Promise.resolve(_this28.api.getInboxMessageBodyT(messageGuid));
2325
2344
  } catch (e) {
2326
2345
  return Promise.reject(e);
2327
2346
  }
@@ -2334,8 +2353,8 @@ var WSAPI = /*#__PURE__*/function () {
2334
2353
  ;
2335
2354
  _proto.markInboxMessageAsRead = function markInboxMessageAsRead(messageGuid) {
2336
2355
  try {
2337
- var _this28 = this;
2338
- return Promise.resolve(_this28.api.markInboxMessageRead(null, messageGuid)).then(function (r) {
2356
+ var _this29 = this;
2357
+ return Promise.resolve(_this29.api.markInboxMessageRead(null, messageGuid)).then(function (r) {
2339
2358
  return {
2340
2359
  err_code: r.errCode,
2341
2360
  err_message: r.errMsg
@@ -2353,8 +2372,8 @@ var WSAPI = /*#__PURE__*/function () {
2353
2372
  ;
2354
2373
  _proto.markAllInboxMessagesAsRead = function markAllInboxMessagesAsRead() {
2355
2374
  try {
2356
- var _this29 = this;
2357
- return Promise.resolve(_this29.api.markAllInboxMessageRead(null)).then(function (r) {
2375
+ var _this30 = this;
2376
+ return Promise.resolve(_this30.api.markAllInboxMessageRead(null)).then(function (r) {
2358
2377
  return {
2359
2378
  err_code: r.errCode,
2360
2379
  err_message: r.errMsg
@@ -2372,8 +2391,8 @@ var WSAPI = /*#__PURE__*/function () {
2372
2391
  ;
2373
2392
  _proto.markUnmarkInboxMessageAsFavorite = function markUnmarkInboxMessageAsFavorite(messageGuid, mark) {
2374
2393
  try {
2375
- var _this30 = this;
2376
- return Promise.resolve(_this30.api.markUnmarkInboxMessageAsFavorite(null, messageGuid, mark)).then(function (r) {
2394
+ var _this31 = this;
2395
+ return Promise.resolve(_this31.api.markUnmarkInboxMessageAsFavorite(null, messageGuid, mark)).then(function (r) {
2377
2396
  return {
2378
2397
  err_code: r.errCode,
2379
2398
  err_message: r.errMsg
@@ -2391,8 +2410,8 @@ var WSAPI = /*#__PURE__*/function () {
2391
2410
  ;
2392
2411
  _proto.deleteInboxMessage = function deleteInboxMessage(messageGuid) {
2393
2412
  try {
2394
- var _this31 = this;
2395
- return Promise.resolve(_this31.api.deleteInboxMessage(null, messageGuid)).then(function (r) {
2413
+ var _this32 = this;
2414
+ return Promise.resolve(_this32.api.deleteInboxMessage(null, messageGuid)).then(function (r) {
2396
2415
  return {
2397
2416
  err_code: r.errCode,
2398
2417
  err_message: r.errMsg
@@ -2410,8 +2429,8 @@ var WSAPI = /*#__PURE__*/function () {
2410
2429
  ;
2411
2430
  _proto.deleteAllInboxMessages = function deleteAllInboxMessages() {
2412
2431
  try {
2413
- var _this32 = this;
2414
- return Promise.resolve(_this32.api.deleteAllInboxMessages(null)).then(function (r) {
2432
+ var _this33 = this;
2433
+ return Promise.resolve(_this33.api.deleteAllInboxMessages(null)).then(function (r) {
2415
2434
  return {
2416
2435
  err_code: r.errCode,
2417
2436
  err_message: r.errMsg
@@ -2427,8 +2446,8 @@ var WSAPI = /*#__PURE__*/function () {
2427
2446
  ;
2428
2447
  _proto.getTranslations = function getTranslations(lang_code) {
2429
2448
  try {
2430
- var _this33 = this;
2431
- return Promise.resolve(_this33.api.getTranslationsT(null, lang_code, [])).then(function (r) {
2449
+ var _this34 = this;
2450
+ return Promise.resolve(_this34.api.getTranslationsT(null, lang_code, [])).then(function (r) {
2432
2451
  return {
2433
2452
  translations: r.translations
2434
2453
  };
@@ -2439,15 +2458,15 @@ var WSAPI = /*#__PURE__*/function () {
2439
2458
  };
2440
2459
  _proto.updateOnSpin = function updateOnSpin(data) {
2441
2460
  try {
2442
- var _this34 = this;
2461
+ var _this35 = this;
2443
2462
  return Promise.resolve(OCache.use(onUpdateContextKey.Saw, exports.ECacheContext.WSAPI, function () {
2444
- return _this34.api.sawGetTemplatesT(null);
2463
+ return _this35.api.sawGetTemplatesT(null);
2445
2464
  }, CACHE_DATA_SEC)).then(function (templates) {
2446
2465
  var index = templates.findIndex(function (t) {
2447
2466
  return t.id === data.saw_template_id;
2448
2467
  });
2449
2468
  templates[index].spin_count = data.spin_count;
2450
- _this34.updateEntity(onUpdateContextKey.Saw, templates);
2469
+ _this35.updateEntity(onUpdateContextKey.Saw, templates);
2451
2470
  });
2452
2471
  } catch (e) {
2453
2472
  return Promise.reject(e);
@@ -2455,9 +2474,9 @@ var WSAPI = /*#__PURE__*/function () {
2455
2474
  };
2456
2475
  _proto.reloadMiniGameTemplate = function reloadMiniGameTemplate() {
2457
2476
  try {
2458
- var _this35 = this;
2459
- return Promise.resolve(_this35.api.sawGetTemplatesT(null)).then(function (updatedTemplates) {
2460
- _this35.updateEntity(onUpdateContextKey.Saw, updatedTemplates);
2477
+ var _this36 = this;
2478
+ return Promise.resolve(_this36.api.sawGetTemplatesT(null)).then(function (updatedTemplates) {
2479
+ _this36.updateEntity(onUpdateContextKey.Saw, updatedTemplates);
2461
2480
  });
2462
2481
  } catch (e) {
2463
2482
  return Promise.reject(e);
@@ -2465,9 +2484,9 @@ var WSAPI = /*#__PURE__*/function () {
2465
2484
  };
2466
2485
  _proto.updateMissions = function updateMissions() {
2467
2486
  try {
2468
- var _this36 = this;
2469
- return Promise.resolve(_this36.api.missionsGetItemsT(null)).then(function (payload) {
2470
- _this36.updateEntity(onUpdateContextKey.Missions, payload);
2487
+ var _this37 = this;
2488
+ return Promise.resolve(_this37.api.missionsGetItemsT(null)).then(function (payload) {
2489
+ _this37.updateEntity(onUpdateContextKey.Missions, payload);
2471
2490
  });
2472
2491
  } catch (e) {
2473
2492
  return Promise.reject(e);
@@ -2475,9 +2494,9 @@ var WSAPI = /*#__PURE__*/function () {
2475
2494
  };
2476
2495
  _proto.updateBonuses = function updateBonuses() {
2477
2496
  try {
2478
- var _this37 = this;
2479
- return Promise.resolve(_this37.api.bonusesGetItemsT(null)).then(function (payload) {
2480
- _this37.updateEntity(onUpdateContextKey.Bonuses, payload);
2497
+ var _this38 = this;
2498
+ return Promise.resolve(_this38.api.bonusesGetItemsT(null)).then(function (payload) {
2499
+ _this38.updateEntity(onUpdateContextKey.Bonuses, payload);
2481
2500
  });
2482
2501
  } catch (e) {
2483
2502
  return Promise.reject(e);
@@ -2485,9 +2504,9 @@ var WSAPI = /*#__PURE__*/function () {
2485
2504
  };
2486
2505
  _proto.updateTournaments = function updateTournaments() {
2487
2506
  try {
2488
- var _this38 = this;
2489
- return Promise.resolve(_this38.api.tournamentsGetLobbyT(null)).then(function (payload) {
2490
- _this38.updateEntity(onUpdateContextKey.TournamentList, payload);
2507
+ var _this39 = this;
2508
+ return Promise.resolve(_this39.api.tournamentsGetLobbyT(null)).then(function (payload) {
2509
+ _this39.updateEntity(onUpdateContextKey.TournamentList, payload);
2491
2510
  });
2492
2511
  } catch (e) {
2493
2512
  return Promise.reject(e);
@@ -2495,9 +2514,9 @@ var WSAPI = /*#__PURE__*/function () {
2495
2514
  };
2496
2515
  _proto.updateInboxMessages = function updateInboxMessages() {
2497
2516
  try {
2498
- var _this39 = this;
2499
- return Promise.resolve(_this39.api.getInboxMessagesT(null)).then(function (payload) {
2500
- _this39.updateEntity(onUpdateContextKey.InboxMessages, payload);
2517
+ var _this40 = this;
2518
+ return Promise.resolve(_this40.api.getInboxMessagesT(null)).then(function (payload) {
2519
+ _this40.updateEntity(onUpdateContextKey.InboxMessages, payload);
2501
2520
  });
2502
2521
  } catch (e) {
2503
2522
  return Promise.reject(e);
@@ -2505,9 +2524,9 @@ var WSAPI = /*#__PURE__*/function () {
2505
2524
  };
2506
2525
  _proto.updateEntity = function updateEntity(contextKey, payload) {
2507
2526
  try {
2508
- var _this40 = this;
2527
+ var _this41 = this;
2509
2528
  OCache.set(contextKey, payload, exports.ECacheContext.WSAPI);
2510
- var onUpdate = _this40.onUpdateCallback.get(contextKey);
2529
+ var onUpdate = _this41.onUpdateCallback.get(contextKey);
2511
2530
  if (onUpdate) {
2512
2531
  onUpdate(payload);
2513
2532
  }
@@ -2547,17 +2566,17 @@ var WSAPI = /*#__PURE__*/function () {
2547
2566
  ;
2548
2567
  _proto.jackpotGet = function jackpotGet(filter) {
2549
2568
  try {
2550
- var _this41 = this;
2569
+ var _this42 = this;
2551
2570
  var signature = (filter == null ? void 0 : filter.jp_template_id) + ":" + (filter == null ? void 0 : filter.related_game_id);
2552
- if (signature !== _this41.jackpotGetSignature) {
2553
- _this41.jackpotGetSignature = signature;
2554
- _this41.jackpotClearCache();
2571
+ if (signature !== _this42.jackpotGetSignature) {
2572
+ _this42.jackpotGetSignature = signature;
2573
+ _this42.jackpotClearCache();
2555
2574
  }
2556
2575
  var jackpots = [];
2557
2576
  var pots = [];
2558
2577
  return Promise.resolve(OCache.use(onUpdateContextKey.Jackpots, exports.ECacheContext.WSAPI, function () {
2559
2578
  try {
2560
- return Promise.resolve(_this41.api.jackpotGet(null, filter)).then(function (_jackpots) {
2579
+ return Promise.resolve(_this42.api.jackpotGet(null, filter)).then(function (_jackpots) {
2561
2580
  var _pots = _jackpots.items.map(function (jp) {
2562
2581
  return jp.pot;
2563
2582
  });
@@ -2586,10 +2605,10 @@ var WSAPI = /*#__PURE__*/function () {
2586
2605
  var jp_template_ids = jackpots.map(function (jp) {
2587
2606
  return jp.jp_template_id;
2588
2607
  });
2589
- return Promise.resolve(_this41.api.potGet(null, {
2608
+ return Promise.resolve(_this42.api.potGet(null, {
2590
2609
  jp_template_ids: jp_template_ids
2591
- })).then(function (_this41$api$potGet) {
2592
- return _this41$api$potGet.items;
2610
+ })).then(function (_this42$api$potGet) {
2611
+ return _this42$api$potGet.items;
2593
2612
  });
2594
2613
  } catch (e) {
2595
2614
  return Promise.reject(e);
@@ -2622,11 +2641,11 @@ var WSAPI = /*#__PURE__*/function () {
2622
2641
  ;
2623
2642
  _proto.jackpotOptIn = function jackpotOptIn(filter) {
2624
2643
  try {
2625
- var _this42 = this;
2644
+ var _this43 = this;
2626
2645
  if (!filter.jp_template_id) {
2627
2646
  throw new Error('jp_template_id is required in jackpotOptIn');
2628
2647
  }
2629
- return Promise.resolve(_this42.api.jackpotOptIn(null, filter));
2648
+ return Promise.resolve(_this43.api.jackpotOptIn(null, filter));
2630
2649
  } catch (e) {
2631
2650
  return Promise.reject(e);
2632
2651
  }
@@ -2648,11 +2667,11 @@ var WSAPI = /*#__PURE__*/function () {
2648
2667
  ;
2649
2668
  _proto.jackpotOptOut = function jackpotOptOut(filter) {
2650
2669
  try {
2651
- var _this43 = this;
2670
+ var _this44 = this;
2652
2671
  if (!filter.jp_template_id) {
2653
2672
  throw new Error('jp_template_id is required in jackpotOptOut');
2654
2673
  }
2655
- return Promise.resolve(_this43.api.jackpotOptOut(null, filter));
2674
+ return Promise.resolve(_this44.api.jackpotOptOut(null, filter));
2656
2675
  } catch (e) {
2657
2676
  return Promise.reject(e);
2658
2677
  }
@@ -2678,8 +2697,8 @@ var WSAPI = /*#__PURE__*/function () {
2678
2697
  ;
2679
2698
  _proto.getRelatedItemsForGame = function getRelatedItemsForGame(related_game_id) {
2680
2699
  try {
2681
- var _this44 = this;
2682
- return Promise.resolve(_this44.api.getRelatedItemsForGame(null, related_game_id));
2700
+ var _this45 = this;
2701
+ return Promise.resolve(_this45.api.getRelatedItemsForGame(null, related_game_id));
2683
2702
  } catch (e) {
2684
2703
  return Promise.reject(e);
2685
2704
  }