@smartico/public-api 0.0.174 → 0.0.175
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/Jackpots/JackpotType.d.ts +2 -1
- package/dist/Missions/GetRelatedAchTourRequest.d.ts +0 -1
- package/dist/SmarticoAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +2 -3
- package/docs/enums/JackpotType.md +6 -0
- package/docs/interfaces/JackpotDetails.md +1 -1
- package/docs/interfaces/TMiniGamePrize.md +18 -0
- package/docs/interfaces/TSawHistory.md +16 -20
- package/package.json +1 -1
- package/src/Jackpots/JackpotType.ts +1 -0
- package/src/Missions/GetRelatedAchTourRequest.ts +0 -1
- package/src/SmarticoAPI.ts +2 -2
- package/src/WSAPI/WSAPI.ts +3 -2
package/dist/SmarticoAPI.d.ts
CHANGED
|
@@ -126,6 +126,6 @@ declare class SmarticoAPI {
|
|
|
126
126
|
deleteInboxMessage(user_ext_id: string, messageGuid: string): Promise<MarkInboxMessageDeletedResponse>;
|
|
127
127
|
deleteAllInboxMessages(user_ext_id: string): Promise<MarkInboxMessageDeletedResponse>;
|
|
128
128
|
getWSCalls(): WSAPI;
|
|
129
|
-
getRelatedItemsForGame(user_ext_id: string, related_game_id: string
|
|
129
|
+
getRelatedItemsForGame(user_ext_id: string, related_game_id: string): Promise<GetRelatedAchTourResponse>;
|
|
130
130
|
}
|
|
131
131
|
export { SmarticoAPI, MessageSender };
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -531,5 +531,5 @@ export declare class WSAPI {
|
|
|
531
531
|
* });
|
|
532
532
|
* ```
|
|
533
533
|
*/
|
|
534
|
-
getRelatedItemsForGame(related_game_id: string
|
|
534
|
+
getRelatedItemsForGame(related_game_id: string): Promise<GetAchievementMapResponse>;
|
|
535
535
|
}
|
package/dist/index.js
CHANGED
|
@@ -1267,6 +1267,9 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1267
1267
|
on(exports.ClassId.JP_OPTOUT_RESPONSE, function (data) {
|
|
1268
1268
|
return _this.jackpotClearCache();
|
|
1269
1269
|
});
|
|
1270
|
+
on(exports.ClassId.JP_OPTIN_RESPONSE, function (data) {
|
|
1271
|
+
return _this.jackpotClearCache();
|
|
1272
|
+
});
|
|
1270
1273
|
on(exports.ClassId.CLAIM_BONUS_RESPONSE, function () {
|
|
1271
1274
|
return _this.updateBonuses();
|
|
1272
1275
|
});
|
|
@@ -2375,10 +2378,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2375
2378
|
* ```
|
|
2376
2379
|
*/
|
|
2377
2380
|
;
|
|
2378
|
-
_proto.getRelatedItemsForGame = function getRelatedItemsForGame(related_game_id
|
|
2381
|
+
_proto.getRelatedItemsForGame = function getRelatedItemsForGame(related_game_id) {
|
|
2379
2382
|
try {
|
|
2380
2383
|
var _this45 = this;
|
|
2381
|
-
return Promise.resolve(_this45.api.getRelatedItemsForGame(null, related_game_id
|
|
2384
|
+
return Promise.resolve(_this45.api.getRelatedItemsForGame(null, related_game_id));
|
|
2382
2385
|
} catch (e) {
|
|
2383
2386
|
return Promise.reject(e);
|
|
2384
2387
|
}
|
|
@@ -3539,13 +3542,13 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
3539
3542
|
_proto.getWSCalls = function getWSCalls() {
|
|
3540
3543
|
return new WSAPI(this);
|
|
3541
3544
|
};
|
|
3542
|
-
_proto.getRelatedItemsForGame = function getRelatedItemsForGame(user_ext_id, related_game_id
|
|
3545
|
+
_proto.getRelatedItemsForGame = function getRelatedItemsForGame(user_ext_id, related_game_id) {
|
|
3543
3546
|
try {
|
|
3544
3547
|
var _this62 = this;
|
|
3545
3548
|
var message = _this62.buildMessage(user_ext_id, exports.ClassId.GET_RELATED_ACH_N_TOURNAMENTS_REQUEST, {
|
|
3546
3549
|
related_game_id: related_game_id
|
|
3547
3550
|
});
|
|
3548
|
-
return Promise.resolve(_this62.send(message, exports.ClassId.GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE
|
|
3551
|
+
return Promise.resolve(_this62.send(message, exports.ClassId.GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE));
|
|
3549
3552
|
} catch (e) {
|
|
3550
3553
|
return Promise.reject(e);
|
|
3551
3554
|
}
|
|
@@ -3947,6 +3950,7 @@ var JackPotTemparature;
|
|
|
3947
3950
|
exports.JackpotType = void 0;
|
|
3948
3951
|
(function (JackpotType) {
|
|
3949
3952
|
JackpotType[JackpotType["Main"] = 1] = "Main";
|
|
3953
|
+
JackpotType[JackpotType["Personal"] = 2] = "Personal";
|
|
3950
3954
|
})(exports.JackpotType || (exports.JackpotType = {}));
|
|
3951
3955
|
|
|
3952
3956
|
exports.AchCategoryTransform = AchCategoryTransform;
|