@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/SmarticoAPI.d.ts
CHANGED
|
@@ -85,8 +85,12 @@ declare class SmarticoAPI {
|
|
|
85
85
|
}): Promise<JackpotsOptoutResponse>;
|
|
86
86
|
getJackpotWinners(user_ext_id: string, limit: number, offset: number, jp_template_id: number): Promise<GetJackpotWinnersResponse>;
|
|
87
87
|
getJackpotWinnersT(user_ext_id: string, limit: number, offset: number, jp_template_id: number): Promise<JackpotWinnerHistory[]>;
|
|
88
|
-
getJackpotEligibleGames(user_ext_id: string, jp_template_id
|
|
89
|
-
|
|
88
|
+
getJackpotEligibleGames(user_ext_id: string, { jp_template_id }: {
|
|
89
|
+
jp_template_id: number;
|
|
90
|
+
}): Promise<GetJackpotEligibleGamesResponse>;
|
|
91
|
+
getJackpotEligibleGamesT(user_ext_id: string, { jp_template_id }: {
|
|
92
|
+
jp_template_id: number;
|
|
93
|
+
}): Promise<TGetJackpotEligibleGamesResponse>;
|
|
90
94
|
sawGetTemplates(user_ext_id: string, force_language?: string, is_visitor_mode?: boolean): Promise<SAWGetTemplatesResponse>;
|
|
91
95
|
sawGetTemplatesT(user_ext_id: string): Promise<TMiniGameTemplate[]>;
|
|
92
96
|
doAcknowledgeRequest(user_ext_id: string, request_id: string): Promise<SAWDoAknowledgeResponse>;
|
package/dist/index.js
CHANGED
|
@@ -3043,8 +3043,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3043
3043
|
if (onUpdate) {
|
|
3044
3044
|
_this47.onUpdateCallback.set(onUpdateContextKey.JackpotEligibleGames, onUpdate);
|
|
3045
3045
|
}
|
|
3046
|
-
return Promise.resolve(OCache.use(onUpdateContextKey.JackpotEligibleGames, exports.ECacheContext.WSAPI, function () {
|
|
3047
|
-
return _this47.api.getJackpotEligibleGamesT(null,
|
|
3046
|
+
return Promise.resolve(OCache.use(onUpdateContextKey.JackpotEligibleGames + jp_template_id, exports.ECacheContext.WSAPI, function () {
|
|
3047
|
+
return _this47.api.getJackpotEligibleGamesT(null, {
|
|
3048
|
+
jp_template_id: jp_template_id
|
|
3049
|
+
});
|
|
3048
3050
|
}, JACKPOT_ELIGIBLE_GAMES_CACHE_SEC));
|
|
3049
3051
|
} catch (e) {
|
|
3050
3052
|
return Promise.reject(e);
|
|
@@ -3712,7 +3714,8 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
3712
3714
|
return Promise.reject(e);
|
|
3713
3715
|
}
|
|
3714
3716
|
};
|
|
3715
|
-
_proto.getJackpotEligibleGames = function getJackpotEligibleGames(user_ext_id,
|
|
3717
|
+
_proto.getJackpotEligibleGames = function getJackpotEligibleGames(user_ext_id, _ref) {
|
|
3718
|
+
var jp_template_id = _ref.jp_template_id;
|
|
3716
3719
|
try {
|
|
3717
3720
|
var _this14 = this;
|
|
3718
3721
|
var message = _this14.buildMessage(user_ext_id, exports.ClassId.JP_GET_ELIGIBLE_GAMES_REQUEST, {
|
|
@@ -3723,10 +3726,13 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
3723
3726
|
return Promise.reject(e);
|
|
3724
3727
|
}
|
|
3725
3728
|
};
|
|
3726
|
-
_proto.getJackpotEligibleGamesT = function getJackpotEligibleGamesT(user_ext_id,
|
|
3729
|
+
_proto.getJackpotEligibleGamesT = function getJackpotEligibleGamesT(user_ext_id, _ref2) {
|
|
3730
|
+
var jp_template_id = _ref2.jp_template_id;
|
|
3727
3731
|
try {
|
|
3728
3732
|
var _this15 = this;
|
|
3729
|
-
return Promise.resolve(_this15.getJackpotEligibleGames(user_ext_id,
|
|
3733
|
+
return Promise.resolve(_this15.getJackpotEligibleGames(user_ext_id, {
|
|
3734
|
+
jp_template_id: jp_template_id
|
|
3735
|
+
})).then(GetJackpotEligibleGamesResponseTransform);
|
|
3730
3736
|
} catch (e) {
|
|
3731
3737
|
return Promise.reject(e);
|
|
3732
3738
|
}
|