@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.
@@ -1,4 +1,5 @@
1
1
  declare enum JackpotType {
2
- Main = 1
2
+ Main = 1,
3
+ Personal = 2
3
4
  }
4
5
  export { JackpotType };
@@ -1,5 +1,4 @@
1
1
  import { ProtocolMessage } from '../Base/ProtocolMessage';
2
2
  export interface GetRelatedAchTourRequest extends ProtocolMessage {
3
3
  related_game_id?: string;
4
- force_language?: string;
5
4
  }
@@ -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, force_language?: string): Promise<GetRelatedAchTourResponse>;
129
+ getRelatedItemsForGame(user_ext_id: string, related_game_id: string): Promise<GetRelatedAchTourResponse>;
130
130
  }
131
131
  export { SmarticoAPI, MessageSender };
@@ -531,5 +531,5 @@ export declare class WSAPI {
531
531
  * });
532
532
  * ```
533
533
  */
534
- getRelatedItemsForGame(related_game_id: string, force_language?: string): Promise<GetAchievementMapResponse>;
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, force_language) {
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, force_language));
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, force_language) {
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, force_language));
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;