@smartico/public-api 0.0.254 → 0.0.255
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/SmarticoAPI.d.ts +6 -2
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +12 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/JackpotEligibleGame.md +2 -0
- package/package.json +1 -1
- package/src/SmarticoAPI.ts +4 -4
- package/src/WSAPI/WSAPI.ts +3 -3
package/dist/index.modern.mjs
CHANGED
|
@@ -2650,7 +2650,9 @@ class WSAPI {
|
|
|
2650
2650
|
if (onUpdate) {
|
|
2651
2651
|
this.onUpdateCallback.set(onUpdateContextKey.JackpotEligibleGames, onUpdate);
|
|
2652
2652
|
}
|
|
2653
|
-
return OCache.use(onUpdateContextKey.JackpotEligibleGames, ECacheContext.WSAPI, () => this.api.getJackpotEligibleGamesT(null,
|
|
2653
|
+
return OCache.use(onUpdateContextKey.JackpotEligibleGames + jp_template_id, ECacheContext.WSAPI, () => this.api.getJackpotEligibleGamesT(null, {
|
|
2654
|
+
jp_template_id
|
|
2655
|
+
}), JACKPOT_ELIGIBLE_GAMES_CACHE_SEC);
|
|
2654
2656
|
}
|
|
2655
2657
|
/**
|
|
2656
2658
|
* Returns all the related tournaments and missions for the provided game id for the current user
|
|
@@ -3147,14 +3149,20 @@ class SmarticoAPI {
|
|
|
3147
3149
|
async getJackpotWinnersT(user_ext_id, limit = 20, offset = 0, jp_template_id) {
|
|
3148
3150
|
return GetJackpotWinnersResponseTransform((await this.getJackpotWinners(user_ext_id, limit, offset, jp_template_id)).winners);
|
|
3149
3151
|
}
|
|
3150
|
-
async getJackpotEligibleGames(user_ext_id,
|
|
3152
|
+
async getJackpotEligibleGames(user_ext_id, {
|
|
3153
|
+
jp_template_id
|
|
3154
|
+
}) {
|
|
3151
3155
|
const message = this.buildMessage(user_ext_id, ClassId.JP_GET_ELIGIBLE_GAMES_REQUEST, {
|
|
3152
3156
|
jp_template_id
|
|
3153
3157
|
});
|
|
3154
3158
|
return await this.send(message, ClassId.JP_GET_ELIGIBLE_GAMES_RESPONSE);
|
|
3155
3159
|
}
|
|
3156
|
-
async getJackpotEligibleGamesT(user_ext_id,
|
|
3157
|
-
|
|
3160
|
+
async getJackpotEligibleGamesT(user_ext_id, {
|
|
3161
|
+
jp_template_id
|
|
3162
|
+
}) {
|
|
3163
|
+
return GetJackpotEligibleGamesResponseTransform(await this.getJackpotEligibleGames(user_ext_id, {
|
|
3164
|
+
jp_template_id
|
|
3165
|
+
}));
|
|
3158
3166
|
}
|
|
3159
3167
|
async sawGetTemplates(user_ext_id, force_language, is_visitor_mode = false) {
|
|
3160
3168
|
const message = this.buildMessage(user_ext_id, ClassId.SAW_GET_SPINS_REQUEST, {
|