@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.
- package/dist/MiniGames/SAWPrizeDropAknowledgeCancelRequest.d.ts +5 -0
- package/dist/MiniGames/SAWPrizeDropAknowledgeCancelResponse.d.ts +4 -0
- package/dist/MiniGames/index.d.ts +2 -0
- package/dist/WSAPI/WSAPIJackpots.d.ts +3 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/interfaces/SAWTemplate.md +8 -0
- package/docs/ui/jackpots/UIGuide_getJackpotWinners.md +3 -2
- package/package.json +1 -1
- package/src/MiniGames/SAWPrizeDropAknowledgeCancelRequest.ts +6 -0
- package/src/MiniGames/SAWPrizeDropAknowledgeCancelResponse.ts +5 -0
- package/src/MiniGames/index.ts +2 -0
- package/src/WSAPI/WSAPIJackpots.ts +7 -2
|
@@ -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`
|
|
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`
|
|
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
|
-
|
|
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) {
|