indigitall-web-sdk 4.6.0 → 4.7.0

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/src/Indigitall.js CHANGED
@@ -51,7 +51,7 @@ var Indigitall = /*#__PURE__*/function () {
51
51
  return _createClass(Indigitall, null, [{
52
52
  key: "init",
53
53
  value: function () {
54
- var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {
54
+ var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {
55
55
  return _regeneratorRuntime().wrap(function _callee$(_context) {
56
56
  while (1) switch (_context.prev = _context.next) {
57
57
  case 0:
@@ -140,16 +140,16 @@ var Indigitall = /*#__PURE__*/function () {
140
140
  }, {
141
141
  key: "inAppTopicList",
142
142
  value: function () {
143
- var _inAppTopicList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(pushTopics, success, error) {
143
+ var _inAppTopicList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(pushTopics, success, error) {
144
144
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
145
145
  while (1) switch (_context4.prev = _context4.next) {
146
146
  case 0:
147
- if (!new Repository().isInAppEnabled()) {
147
+ if (!(new Repository().isInAppEnabled() === "true")) {
148
148
  _context4.next = 4;
149
149
  break;
150
150
  }
151
- _indigitallWebInapp["default"].topicsList( /*#__PURE__*/function () {
152
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(inAppTopics) {
151
+ _indigitallWebInapp["default"].topicsList(/*#__PURE__*/function () {
152
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(inAppTopics) {
153
153
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
154
154
  while (1) switch (_context2.prev = _context2.next) {
155
155
  case 0:
@@ -181,7 +181,7 @@ var Indigitall = /*#__PURE__*/function () {
181
181
  return _ref.apply(this, arguments);
182
182
  };
183
183
  }(), /*#__PURE__*/function () {
184
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(onError) {
184
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(onError) {
185
185
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
186
186
  while (1) switch (_context3.prev = _context3.next) {
187
187
  case 0:
@@ -246,11 +246,11 @@ var Indigitall = /*#__PURE__*/function () {
246
246
  key: "topicsSubscribe",
247
247
  value: function topicsSubscribe(topicsCodes, success, error) {
248
248
  var _this2 = this;
249
- if (new Repository().isInAppEnabled()) {
249
+ if (new Repository().isInAppEnabled() === "true") {
250
250
  _indigitallWebInapp["default"].topicsSubscribe(topicsCodes, function (inAppTopics) {
251
251
  _this2.pushTopicsSubscribe(topicsCodes, inAppTopics, success, error);
252
252
  }, /*#__PURE__*/function () {
253
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(onError) {
253
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(onError) {
254
254
  var log;
255
255
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
256
256
  while (1) switch (_context5.prev = _context5.next) {
@@ -277,7 +277,7 @@ var Indigitall = /*#__PURE__*/function () {
277
277
  value: function pushTopicsSubscribe(topicsCodes, inAppTopics, success, error) {
278
278
  var _this3 = this;
279
279
  _indigitallWebNotification["default"].topicsSubscribe(topicsCodes, /*#__PURE__*/function () {
280
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(pushTopics) {
280
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(pushTopics) {
281
281
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
282
282
  while (1) switch (_context6.prev = _context6.next) {
283
283
  case 0:
@@ -292,7 +292,7 @@ var Indigitall = /*#__PURE__*/function () {
292
292
  return _ref4.apply(this, arguments);
293
293
  };
294
294
  }(), /*#__PURE__*/function () {
295
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(onError) {
295
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(onError) {
296
296
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
297
297
  while (1) switch (_context7.prev = _context7.next) {
298
298
  case 0:
@@ -322,16 +322,16 @@ var Indigitall = /*#__PURE__*/function () {
322
322
  }, {
323
323
  key: "topicsUnsubscribe",
324
324
  value: (function () {
325
- var _topicsUnsubscribe = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(topicsCodes, success, error) {
325
+ var _topicsUnsubscribe = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(topicsCodes, success, error) {
326
326
  var _this4 = this;
327
327
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
328
328
  while (1) switch (_context9.prev = _context9.next) {
329
329
  case 0:
330
- if (new Repository().isInAppEnabled()) {
330
+ if (new Repository().isInAppEnabled() === "true") {
331
331
  _indigitallWebInapp["default"].topicsUnsubscribe(topicsCodes, function (inAppTopics) {
332
332
  _this4.pushTopicsUnsubscribe(topicsCodes, inAppTopics, success, error);
333
333
  }, /*#__PURE__*/function () {
334
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(onError) {
334
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(onError) {
335
335
  var log;
336
336
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
337
337
  while (1) switch (_context8.prev = _context8.next) {
@@ -368,7 +368,7 @@ var Indigitall = /*#__PURE__*/function () {
368
368
  value: function pushTopicsUnsubscribe(topicsCodes, inAppTopics, success, error) {
369
369
  var _this5 = this;
370
370
  _indigitallWebNotification["default"].topicsUnsubscribe(topicsCodes, /*#__PURE__*/function () {
371
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(pushTopics) {
371
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(pushTopics) {
372
372
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
373
373
  while (1) switch (_context10.prev = _context10.next) {
374
374
  case 0:
@@ -383,7 +383,7 @@ var Indigitall = /*#__PURE__*/function () {
383
383
  return _ref7.apply(this, arguments);
384
384
  };
385
385
  }(), /*#__PURE__*/function () {
386
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(onError) {
386
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(onError) {
387
387
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
388
388
  while (1) switch (_context11.prev = _context11.next) {
389
389
  case 0:
@@ -402,7 +402,7 @@ var Indigitall = /*#__PURE__*/function () {
402
402
  }, {
403
403
  key: "topicActionOnSuccess",
404
404
  value: function () {
405
- var _topicActionOnSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(inAppTopics, pushTopics, success) {
405
+ var _topicActionOnSuccess = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(inAppTopics, pushTopics, success) {
406
406
  var topics;
407
407
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
408
408
  while (1) switch (_context12.prev = _context12.next) {
@@ -438,7 +438,7 @@ var Indigitall = /*#__PURE__*/function () {
438
438
  }, {
439
439
  key: "topicActionOnError",
440
440
  value: function () {
441
- var _topicActionOnError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(inAppTopics, onError, success, error) {
441
+ var _topicActionOnError = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(inAppTopics, onError, success, error) {
442
442
  var log;
443
443
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
444
444
  while (1) switch (_context13.prev = _context13.next) {
@@ -481,7 +481,7 @@ var Indigitall = /*#__PURE__*/function () {
481
481
  }, {
482
482
  key: "setExternalId",
483
483
  value: (function () {
484
- var _setExternalId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(externalId, success, error) {
484
+ var _setExternalId = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(externalId, success, error) {
485
485
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
486
486
  while (1) switch (_context14.prev = _context14.next) {
487
487
  case 0:
@@ -646,7 +646,7 @@ var Indigitall = /*#__PURE__*/function () {
646
646
  }, {
647
647
  key: "showInApp",
648
648
  value: function () {
649
- var _showInApp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(inAppCode, viewId, success, error) {
649
+ var _showInApp = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(inAppCode, viewId, success, error) {
650
650
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
651
651
  while (1) switch (_context15.prev = _context15.next) {
652
652
  case 0:
@@ -679,7 +679,7 @@ var Indigitall = /*#__PURE__*/function () {
679
679
  }, {
680
680
  key: "showInAppWithConfig",
681
681
  value: (function () {
682
- var _showInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
682
+ var _showInAppWithConfig = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
683
683
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
684
684
  while (1) switch (_context16.prev = _context16.next) {
685
685
  case 0:
@@ -730,7 +730,7 @@ var Indigitall = /*#__PURE__*/function () {
730
730
  }, {
731
731
  key: "showMultipleInAppWithConfig",
732
732
  value: (function () {
733
- var _showMultipleInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
733
+ var _showMultipleInAppWithConfig = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
734
734
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
735
735
  while (1) switch (_context17.prev = _context17.next) {
736
736
  case 0: