@smartico/public-api 0.0.427 → 0.0.428

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.
@@ -42,6 +42,7 @@ interface Tracker {
42
42
  getLabelSetting: (key: PublicLabelSettings) => any;
43
43
  triggerExternalCallBack: (callBackKey: string, payload: any) => void;
44
44
  getExtUserId: () => string;
45
+ getHash?: () => string;
45
46
  }
46
47
  interface IOptions {
47
48
  logger?: ILogger;
package/dist/index.js CHANGED
@@ -11986,12 +11986,16 @@ var SmarticoAPI = /*#__PURE__*/function () {
11986
11986
  }
11987
11987
  };
11988
11988
  _proto.buildGamesApiParams = function buildGamesApiParams() {
11989
- var _this$tracker$userPub2, _this$tracker$userPub3;
11989
+ var _this$tracker$userPub2, _this$tracker$userPub3, _this$tracker$getHash, _this$tracker;
11990
11990
  var params = Object.assign({}, this.baseRgApiParams, {
11991
11991
  ext_user_id: (_this$tracker$userPub2 = this.tracker.userPublicProps) == null ? void 0 : _this$tracker$userPub2.user_id,
11992
11992
  smartico_ext_user_id: this.tracker.getExtUserId(),
11993
11993
  lang: (_this$tracker$userPub3 = this.tracker.userPublicProps) == null ? void 0 : _this$tracker$userPub3.core_user_language
11994
11994
  });
11995
+ var user_hash = (_this$tracker$getHash = (_this$tracker = this.tracker).getHash) == null ? void 0 : _this$tracker$getHash.call(_this$tracker);
11996
+ if (user_hash) {
11997
+ params.user_hash = user_hash;
11998
+ }
11995
11999
  return params;
11996
12000
  };
11997
12001
  _proto.sendGamesApi = function sendGamesApi(_ref3) {