@smartico/public-api 0.0.412 → 0.0.414

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.
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+ export interface SAWPrizeDropAknowledgeCancelRequest extends ProtocolMessage {
3
+ request_id: string;
4
+ pending_message_id: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+ export interface SAWPrizeDropAknowledgeCancelResponse extends ProtocolMessage {
3
+ request_id: string;
4
+ }
@@ -20,6 +20,8 @@ export * from './SAWSpinsCountPush';
20
20
  export * from './SAWPrizeDropWinPush';
21
21
  export * from './SAWPrizeDropAknowledgeRequest';
22
22
  export * from './SAWPrizeDropAknowledgeResponse';
23
+ export * from './SAWPrizeDropAknowledgeCancelRequest';
24
+ export * from './SAWPrizeDropAknowledgeCancelResponse';
23
25
  export * from './SAWEventSawPush';
24
26
  export * from './SAWAcknowledgeSpinPushRequest';
25
27
  export * from './SAWWinningHistoryRequest';
@@ -245,7 +245,9 @@ export declare class WSAPIJackpots extends WSAPIClans {
245
245
  * user-currency display is needed, the consumer must convert client-side.
246
246
  *
247
247
  * **Refresh**
248
- * - The SDK caches per `jp_template_id` for 30 seconds.
248
+ * - The SDK caches each page separately (per `jp_template_id` +
249
+ * `limit` + `offset`) for 30 seconds, so paging back and forth is
250
+ * served from cache and each page keeps its own fresh copy.
249
251
  * - Caches clear on jackpot-win push events and on opt-in / opt-out.
250
252
  *
251
253
  * **Error handling**
package/dist/index.js CHANGED
@@ -6340,7 +6340,9 @@ var WSAPIJackpots = /*#__PURE__*/function (_WSAPIClans) {
6340
6340
  * user-currency display is needed, the consumer must convert client-side.
6341
6341
  *
6342
6342
  * **Refresh**
6343
- * - The SDK caches per `jp_template_id` for 30 seconds.
6343
+ * - The SDK caches each page separately (per `jp_template_id` +
6344
+ * `limit` + `offset`) for 30 seconds, so paging back and forth is
6345
+ * served from cache and each page keeps its own fresh copy.
6344
6346
  * - Caches clear on jackpot-win push events and on opt-in / opt-out.
6345
6347
  *
6346
6348
  * **Error handling**
@@ -6378,7 +6380,10 @@ var WSAPIJackpots = /*#__PURE__*/function (_WSAPIClans) {
6378
6380
  jp_template_id = _ref.jp_template_id;
6379
6381
  try {
6380
6382
  var _this5 = this;
6381
- return Promise.resolve(OCache.use(onUpdateContextKey.JackpotWinners + jp_template_id, exports.ECacheContext.WSAPI, function () {
6383
+ // Cache per (jp_template_id, limit, offset) so paging or switching
6384
+ // jackpot within the TTL doesn't return a colliding winners list.
6385
+ var cacheKey = "" + onUpdateContextKey.JackpotWinners + jp_template_id + ":" + limit + ":" + offset;
6386
+ return Promise.resolve(OCache.use(cacheKey, exports.ECacheContext.WSAPI, function () {
6382
6387
  return _this5.api.getJackpotWinnersT(_this5.userExtId, limit, offset, jp_template_id);
6383
6388
  }, JACKPOT_WINNERS_CACHE_SEC));
6384
6389
  } catch (e) {