@smartico/public-api 0.0.199 → 0.0.201

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.
@@ -24,3 +24,4 @@ export * from './SAWEventSawPush';
24
24
  export * from './SAWAcknowledgeSpinPushRequest';
25
25
  export * from './SAWWinningHistoryRequest';
26
26
  export * from './SAWWinningHistoryResponse';
27
+ export * from './SAWGameLayout';
@@ -10,6 +10,8 @@ export declare class WSAPI {
10
10
  private jackpotGetSignature;
11
11
  /** @private */
12
12
  constructor(api: SmarticoAPI);
13
+ /** @private */
14
+ clearCaches(): void;
13
15
  /** Returns information about current user
14
16
  *
15
17
  * **Example**:
package/dist/index.js CHANGED
@@ -488,6 +488,12 @@ var SAWHistoryTransform = function SAWHistoryTransform(items) {
488
488
  });
489
489
  };
490
490
 
491
+ exports.SAWGameLayout = void 0;
492
+ (function (SAWGameLayout) {
493
+ SAWGameLayout[SAWGameLayout["Horizontal"] = 1] = "Horizontal";
494
+ SAWGameLayout[SAWGameLayout["VerticalMap"] = 2] = "VerticalMap";
495
+ })(exports.SAWGameLayout || (exports.SAWGameLayout = {}));
496
+
491
497
  var NodeCache = /*#__PURE__*/function () {
492
498
  function NodeCache() {
493
499
  if (NodeCache.ttlChecker === undefined) {
@@ -1335,6 +1341,13 @@ var WSAPI = /*#__PURE__*/function () {
1335
1341
  });
1336
1342
  }
1337
1343
  }
1344
+ /** @private */
1345
+ // AA: this method is used from the _smartico script to clear cache when the context is changed,
1346
+ // e.g. when user is changed or language is changed
1347
+ var _proto = WSAPI.prototype;
1348
+ _proto.clearCaches = function clearCaches() {
1349
+ OCache.clearAll();
1350
+ }
1338
1351
  /** Returns information about current user
1339
1352
  *
1340
1353
  * **Example**:
@@ -1344,8 +1357,7 @@ var WSAPI = /*#__PURE__*/function () {
1344
1357
  * });
1345
1358
  * ```
1346
1359
  * **Visitor mode: not supported**
1347
- * */
1348
- var _proto = WSAPI.prototype;
1360
+ * */;
1349
1361
  _proto.getUserProfile = function getUserProfile() {
1350
1362
  if (this.api.tracker) {
1351
1363
  var o = Object.assign({}, this.api.tracker.userPublicProps);