@one-commerce/sdk-core 1.19.4-alpha.0 → 1.19.6

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.
@@ -57,17 +57,18 @@ function _inherits(subClass, superClass) {
57
57
  }
58
58
 
59
59
  function _getPrototypeOf(o) {
60
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
60
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
61
61
  return o.__proto__ || Object.getPrototypeOf(o);
62
62
  };
63
63
  return _getPrototypeOf(o);
64
64
  }
65
65
 
66
66
  function _setPrototypeOf(o, p) {
67
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
67
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
68
68
  o.__proto__ = p;
69
69
  return o;
70
70
  };
71
+
71
72
  return _setPrototypeOf(o, p);
72
73
  }
73
74
 
@@ -455,15 +456,15 @@ var BackofficeTenant = /*#__PURE__*/function (_BaseCallClass3) {
455
456
 
456
457
  return _createClass(BackofficeTenant);
457
458
  }(BaseCallClass);
458
- var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass4) {
459
- _inherits(BackofficeOrderpath, _BaseCallClass4);
459
+ var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass4) {
460
+ _inherits(BackofficeLayout, _BaseCallClass4);
460
461
 
461
- var _super4 = _createSuper(BackofficeOrderpath);
462
+ var _super4 = _createSuper(BackofficeLayout);
462
463
 
463
- function BackofficeOrderpath() {
464
+ function BackofficeLayout() {
464
465
  var _this4;
465
466
 
466
- _classCallCheck(this, BackofficeOrderpath);
467
+ _classCallCheck(this, BackofficeLayout);
467
468
 
468
469
  for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
469
470
  args[_key4] = arguments[_key4];
@@ -471,22 +472,24 @@ var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass4) {
471
472
 
472
473
  _this4 = _super4.call.apply(_super4, [this].concat(args));
473
474
 
474
- _defineProperty(_assertThisInitialized(_this4), "serviceName", 'orderpath');
475
+ _defineProperty(_assertThisInitialized(_this4), "serviceName", 'layout');
476
+
477
+ _defineProperty(_assertThisInitialized(_this4), "isAsideOpened", void 0);
475
478
 
476
479
  return _this4;
477
480
  }
478
481
 
479
- return _createClass(BackofficeOrderpath);
482
+ return _createClass(BackofficeLayout);
480
483
  }(BaseCallClass);
481
- var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass5) {
482
- _inherits(BackofficeLayout, _BaseCallClass5);
484
+ var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
485
+ _inherits(BackofficeAuthorization, _BaseCallClass5);
483
486
 
484
- var _super5 = _createSuper(BackofficeLayout);
487
+ var _super5 = _createSuper(BackofficeAuthorization);
485
488
 
486
- function BackofficeLayout() {
489
+ function BackofficeAuthorization() {
487
490
  var _this5;
488
491
 
489
- _classCallCheck(this, BackofficeLayout);
492
+ _classCallCheck(this, BackofficeAuthorization);
490
493
 
491
494
  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
492
495
  args[_key5] = arguments[_key5];
@@ -494,36 +497,11 @@ var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass5) {
494
497
 
495
498
  _this5 = _super5.call.apply(_super5, [this].concat(args));
496
499
 
497
- _defineProperty(_assertThisInitialized(_this5), "serviceName", 'layout');
498
-
499
- _defineProperty(_assertThisInitialized(_this5), "isAsideOpened", void 0);
500
+ _defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
500
501
 
501
502
  return _this5;
502
503
  }
503
504
 
504
- return _createClass(BackofficeLayout);
505
- }(BaseCallClass);
506
- var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass6) {
507
- _inherits(BackofficeAuthorization, _BaseCallClass6);
508
-
509
- var _super6 = _createSuper(BackofficeAuthorization);
510
-
511
- function BackofficeAuthorization() {
512
- var _this6;
513
-
514
- _classCallCheck(this, BackofficeAuthorization);
515
-
516
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
517
- args[_key6] = arguments[_key6];
518
- }
519
-
520
- _this6 = _super6.call.apply(_super6, [this].concat(args));
521
-
522
- _defineProperty(_assertThisInitialized(_this6), "serviceName", 'authorization');
523
-
524
- return _this6;
525
- }
526
-
527
505
  _createClass(BackofficeAuthorization, [{
528
506
  key: "getAuthToken",
529
507
  value: function getAuthToken() {
@@ -533,58 +511,58 @@ var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass6) {
533
511
 
534
512
  return BackofficeAuthorization;
535
513
  }(BaseCallClass);
536
- var BackofficeCustomer = /*#__PURE__*/function (_BaseCallClass7) {
537
- _inherits(BackofficeCustomer, _BaseCallClass7);
514
+ var BackofficeCustomer = /*#__PURE__*/function (_BaseCallClass6) {
515
+ _inherits(BackofficeCustomer, _BaseCallClass6);
538
516
 
539
- var _super7 = _createSuper(BackofficeCustomer);
517
+ var _super6 = _createSuper(BackofficeCustomer);
540
518
 
541
519
  function BackofficeCustomer() {
542
- var _this7;
520
+ var _this6;
543
521
 
544
522
  _classCallCheck(this, BackofficeCustomer);
545
523
 
546
- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
547
- args[_key7] = arguments[_key7];
524
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
525
+ args[_key6] = arguments[_key6];
548
526
  }
549
527
 
550
- _this7 = _super7.call.apply(_super7, [this].concat(args));
528
+ _this6 = _super6.call.apply(_super6, [this].concat(args));
551
529
 
552
- _defineProperty(_assertThisInitialized(_this7), "serviceName", 'customer');
530
+ _defineProperty(_assertThisInitialized(_this6), "serviceName", 'customer');
553
531
 
554
- _defineProperty(_assertThisInitialized(_this7), "id", void 0);
532
+ _defineProperty(_assertThisInitialized(_this6), "id", void 0);
555
533
 
556
- _defineProperty(_assertThisInitialized(_this7), "name", void 0);
534
+ _defineProperty(_assertThisInitialized(_this6), "name", void 0);
557
535
 
558
- return _this7;
536
+ return _this6;
559
537
  }
560
538
 
561
539
  return _createClass(BackofficeCustomer);
562
540
  }(BaseCallClass);
563
- var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass8) {
564
- _inherits(BackofficePlugin, _BaseCallClass8);
541
+ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
542
+ _inherits(BackofficePlugin, _BaseCallClass7);
565
543
 
566
- var _super8 = _createSuper(BackofficePlugin);
544
+ var _super7 = _createSuper(BackofficePlugin);
567
545
 
568
546
  function BackofficePlugin() {
569
- var _this8;
547
+ var _this7;
570
548
 
571
549
  _classCallCheck(this, BackofficePlugin);
572
550
 
573
- for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
574
- args[_key8] = arguments[_key8];
551
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
552
+ args[_key7] = arguments[_key7];
575
553
  }
576
554
 
577
- _this8 = _super8.call.apply(_super8, [this].concat(args));
555
+ _this7 = _super7.call.apply(_super7, [this].concat(args));
578
556
 
579
- _defineProperty(_assertThisInitialized(_this8), "serviceName", 'plugin');
557
+ _defineProperty(_assertThisInitialized(_this7), "serviceName", 'plugin');
580
558
 
581
- _defineProperty(_assertThisInitialized(_this8), "id", void 0);
559
+ _defineProperty(_assertThisInitialized(_this7), "id", void 0);
582
560
 
583
- _defineProperty(_assertThisInitialized(_this8), "srcUrl", void 0);
561
+ _defineProperty(_assertThisInitialized(_this7), "srcUrl", void 0);
584
562
 
585
- _defineProperty(_assertThisInitialized(_this8), "name", void 0);
563
+ _defineProperty(_assertThisInitialized(_this7), "name", void 0);
586
564
 
587
- return _this8;
565
+ return _this7;
588
566
  }
589
567
 
590
568
  return _createClass(BackofficePlugin);
@@ -672,15 +650,15 @@ var ShopCatalog = /*#__PURE__*/function (_BaseCallClass) {
672
650
 
673
651
  return ShopCatalog;
674
652
  }(BaseCallClass);
675
- var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
676
- _inherits(ShopAccount, _BaseCallClass2);
653
+ var ShopWishlist = /*#__PURE__*/function (_BaseCallClass2) {
654
+ _inherits(ShopWishlist, _BaseCallClass2);
677
655
 
678
- var _super2 = _createSuper(ShopAccount);
656
+ var _super2 = _createSuper(ShopWishlist);
679
657
 
680
- function ShopAccount() {
658
+ function ShopWishlist() {
681
659
  var _this2;
682
660
 
683
- _classCallCheck(this, ShopAccount);
661
+ _classCallCheck(this, ShopWishlist);
684
662
 
685
663
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
686
664
  args[_key2] = arguments[_key2];
@@ -688,17 +666,57 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
688
666
 
689
667
  _this2 = _super2.call.apply(_super2, [this].concat(args));
690
668
 
691
- _defineProperty(_assertThisInitialized(_this2), "serviceName", 'account');
669
+ _defineProperty(_assertThisInitialized(_this2), "serviceName", 'wishlist');
670
+
671
+ return _this2;
672
+ }
673
+
674
+ _createClass(ShopWishlist, [{
675
+ key: "addProductsToWishlist",
676
+ value: function addProductsToWishlist(wishlistId, newProduct) {
677
+ return this.call('addProductsToWishlist', wishlistId, newProduct);
678
+ }
679
+ }, {
680
+ key: "getWishlists",
681
+ value: function getWishlists() {
682
+ return this.call('getWishlists');
683
+ }
684
+ }, {
685
+ key: "createWishlist",
686
+ value: function createWishlist(name) {
687
+ return this.call('createWishlist', name);
688
+ }
689
+ }]);
690
+
691
+ return ShopWishlist;
692
+ }(BaseCallClass);
693
+ var ShopAccount = /*#__PURE__*/function (_BaseCallClass3) {
694
+ _inherits(ShopAccount, _BaseCallClass3);
692
695
 
693
- _defineProperty(_assertThisInitialized(_this2), "client", void 0);
696
+ var _super3 = _createSuper(ShopAccount);
694
697
 
695
- _defineProperty(_assertThisInitialized(_this2), "isAuthenticated", void 0);
698
+ function ShopAccount() {
699
+ var _this3;
696
700
 
697
- _defineProperty(_assertThisInitialized(_this2), "user", void 0);
701
+ _classCallCheck(this, ShopAccount);
698
702
 
699
- _defineProperty(_assertThisInitialized(_this2), "manager", void 0);
703
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
704
+ args[_key3] = arguments[_key3];
705
+ }
700
706
 
701
- return _this2;
707
+ _this3 = _super3.call.apply(_super3, [this].concat(args));
708
+
709
+ _defineProperty(_assertThisInitialized(_this3), "serviceName", 'account');
710
+
711
+ _defineProperty(_assertThisInitialized(_this3), "client", void 0);
712
+
713
+ _defineProperty(_assertThisInitialized(_this3), "isAuthenticated", void 0);
714
+
715
+ _defineProperty(_assertThisInitialized(_this3), "user", void 0);
716
+
717
+ _defineProperty(_assertThisInitialized(_this3), "manager", void 0);
718
+
719
+ return _this3;
702
720
  }
703
721
 
704
722
  _createClass(ShopAccount, [{
@@ -714,31 +732,31 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
714
732
 
715
733
  return ShopAccount;
716
734
  }(BaseCallClass);
717
- var ShopCart = /*#__PURE__*/function (_BaseCallClass3) {
718
- _inherits(ShopCart, _BaseCallClass3);
735
+ var ShopCart = /*#__PURE__*/function (_BaseCallClass4) {
736
+ _inherits(ShopCart, _BaseCallClass4);
719
737
 
720
- var _super3 = _createSuper(ShopCart);
738
+ var _super4 = _createSuper(ShopCart);
721
739
 
722
740
  function ShopCart() {
723
- var _this3;
741
+ var _this4;
724
742
 
725
743
  _classCallCheck(this, ShopCart);
726
744
 
727
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
728
- args[_key3] = arguments[_key3];
745
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
746
+ args[_key4] = arguments[_key4];
729
747
  }
730
748
 
731
- _this3 = _super3.call.apply(_super3, [this].concat(args));
749
+ _this4 = _super4.call.apply(_super4, [this].concat(args));
732
750
 
733
- _defineProperty(_assertThisInitialized(_this3), "serviceName", 'cart');
751
+ _defineProperty(_assertThisInitialized(_this4), "serviceName", 'cart');
734
752
 
735
- _defineProperty(_assertThisInitialized(_this3), "carts", void 0);
753
+ _defineProperty(_assertThisInitialized(_this4), "carts", void 0);
736
754
 
737
- _defineProperty(_assertThisInitialized(_this3), "currentCart", void 0);
755
+ _defineProperty(_assertThisInitialized(_this4), "currentCart", void 0);
738
756
 
739
- _defineProperty(_assertThisInitialized(_this3), "totalCartPrice", void 0);
757
+ _defineProperty(_assertThisInitialized(_this4), "totalCartPrice", void 0);
740
758
 
741
- return _this3;
759
+ return _this4;
742
760
  }
743
761
 
744
762
  _createClass(ShopCart, [{
@@ -750,25 +768,25 @@ var ShopCart = /*#__PURE__*/function (_BaseCallClass3) {
750
768
 
751
769
  return ShopCart;
752
770
  }(BaseCallClass);
753
- var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass4) {
754
- _inherits(ShopAuthorization, _BaseCallClass4);
771
+ var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
772
+ _inherits(ShopAuthorization, _BaseCallClass5);
755
773
 
756
- var _super4 = _createSuper(ShopAuthorization);
774
+ var _super5 = _createSuper(ShopAuthorization);
757
775
 
758
776
  function ShopAuthorization() {
759
- var _this4;
777
+ var _this5;
760
778
 
761
779
  _classCallCheck(this, ShopAuthorization);
762
780
 
763
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
764
- args[_key4] = arguments[_key4];
781
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
782
+ args[_key5] = arguments[_key5];
765
783
  }
766
784
 
767
- _this4 = _super4.call.apply(_super4, [this].concat(args));
785
+ _this5 = _super5.call.apply(_super5, [this].concat(args));
768
786
 
769
- _defineProperty(_assertThisInitialized(_this4), "serviceName", 'authorization');
787
+ _defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
770
788
 
771
- return _this4;
789
+ return _this5;
772
790
  }
773
791
 
774
792
  _createClass(ShopAuthorization, [{
@@ -780,41 +798,41 @@ var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass4) {
780
798
 
781
799
  return ShopAuthorization;
782
800
  }(BaseCallClass);
783
- var ShopUtils = /*#__PURE__*/function (_BaseCallClass5) {
784
- _inherits(ShopUtils, _BaseCallClass5);
801
+ var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
802
+ _inherits(ShopUtils, _BaseCallClass6);
785
803
 
786
- var _super5 = _createSuper(ShopUtils);
804
+ var _super6 = _createSuper(ShopUtils);
787
805
 
788
806
  function ShopUtils(call) {
789
- var _this5;
807
+ var _this6;
790
808
 
791
809
  _classCallCheck(this, ShopUtils);
792
810
 
793
- _this5 = _super5.call(this, call);
811
+ _this6 = _super6.call(this, call);
794
812
 
795
- _defineProperty(_assertThisInitialized(_this5), "serviceName", 'utils');
813
+ _defineProperty(_assertThisInitialized(_this6), "serviceName", 'utils');
796
814
 
797
- _defineProperty(_assertThisInitialized(_this5), "currency", void 0);
815
+ _defineProperty(_assertThisInitialized(_this6), "currency", void 0);
798
816
 
799
- _defineProperty(_assertThisInitialized(_this5), "isAnonymousAndPurchaseDisabled", void 0);
817
+ _defineProperty(_assertThisInitialized(_this6), "isAnonymousAndPurchaseDisabled", void 0);
800
818
 
801
- _defineProperty(_assertThisInitialized(_this5), "isB2B", void 0);
819
+ _defineProperty(_assertThisInitialized(_this6), "isB2B", void 0);
802
820
 
803
- _defineProperty(_assertThisInitialized(_this5), "isB2BAndPlatformIsNotOpened", void 0);
821
+ _defineProperty(_assertThisInitialized(_this6), "isB2BAndPlatformIsNotOpened", void 0);
804
822
 
805
- _defineProperty(_assertThisInitialized(_this5), "isIndexPage", void 0);
823
+ _defineProperty(_assertThisInitialized(_this6), "isIndexPage", void 0);
806
824
 
807
- _defineProperty(_assertThisInitialized(_this5), "isPurchaseEnabledOrAuthenticated", void 0);
825
+ _defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabledOrAuthenticated", void 0);
808
826
 
809
- _defineProperty(_assertThisInitialized(_this5), "routes", void 0);
827
+ _defineProperty(_assertThisInitialized(_this6), "routes", void 0);
810
828
 
811
- _this5.routes = {
812
- getCategoryPath: _this5.getCategoryPath,
813
- getManufacturerSearchUrl: _this5.getManufacturerSearchUrl,
814
- getProductUrl: _this5.getProductUrl,
815
- isExternalUrl: _this5.isExternalUrl
829
+ _this6.routes = {
830
+ getCategoryPath: _this6.getCategoryPath,
831
+ getManufacturerSearchUrl: _this6.getManufacturerSearchUrl,
832
+ getProductUrl: _this6.getProductUrl,
833
+ isExternalUrl: _this6.isExternalUrl
816
834
  };
817
- return _this5;
835
+ return _this6;
818
836
  }
819
837
 
820
838
  _createClass(ShopUtils, [{
@@ -841,43 +859,43 @@ var ShopUtils = /*#__PURE__*/function (_BaseCallClass5) {
841
859
 
842
860
  return ShopUtils;
843
861
  }(BaseCallClass);
844
- var ShopConfig = /*#__PURE__*/function (_BaseCallClass6) {
845
- _inherits(ShopConfig, _BaseCallClass6);
862
+ var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
863
+ _inherits(ShopConfig, _BaseCallClass7);
846
864
 
847
- var _super6 = _createSuper(ShopConfig);
865
+ var _super7 = _createSuper(ShopConfig);
848
866
 
849
867
  function ShopConfig() {
850
- var _this6;
868
+ var _this7;
851
869
 
852
870
  _classCallCheck(this, ShopConfig);
853
871
 
854
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
855
- args[_key5] = arguments[_key5];
872
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
873
+ args[_key6] = arguments[_key6];
856
874
  }
857
875
 
858
- _this6 = _super6.call.apply(_super6, [this].concat(args));
876
+ _this7 = _super7.call.apply(_super7, [this].concat(args));
859
877
 
860
- _defineProperty(_assertThisInitialized(_this6), "serviceName", 'config');
878
+ _defineProperty(_assertThisInitialized(_this7), "serviceName", 'config');
861
879
 
862
- _defineProperty(_assertThisInitialized(_this6), "accessMode", void 0);
880
+ _defineProperty(_assertThisInitialized(_this7), "accessMode", void 0);
863
881
 
864
- _defineProperty(_assertThisInitialized(_this6), "isB2CRegistrationEnabled", void 0);
882
+ _defineProperty(_assertThisInitialized(_this7), "isB2CRegistrationEnabled", void 0);
865
883
 
866
- _defineProperty(_assertThisInitialized(_this6), "isCatalogOpened", void 0);
884
+ _defineProperty(_assertThisInitialized(_this7), "isCatalogOpened", void 0);
867
885
 
868
- _defineProperty(_assertThisInitialized(_this6), "isGrossSelected", void 0);
886
+ _defineProperty(_assertThisInitialized(_this7), "isGrossSelected", void 0);
869
887
 
870
- _defineProperty(_assertThisInitialized(_this6), "isPlatformClosed", void 0);
888
+ _defineProperty(_assertThisInitialized(_this7), "isPlatformClosed", void 0);
871
889
 
872
- _defineProperty(_assertThisInitialized(_this6), "isPlatformOpened", void 0);
890
+ _defineProperty(_assertThisInitialized(_this7), "isPlatformOpened", void 0);
873
891
 
874
- _defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabled", void 0);
892
+ _defineProperty(_assertThisInitialized(_this7), "isPurchaseEnabled", void 0);
875
893
 
876
- _defineProperty(_assertThisInitialized(_this6), "isRegistrationEnabled", void 0);
894
+ _defineProperty(_assertThisInitialized(_this7), "isRegistrationEnabled", void 0);
877
895
 
878
- _defineProperty(_assertThisInitialized(_this6), "currency", void 0);
896
+ _defineProperty(_assertThisInitialized(_this7), "currency", void 0);
879
897
 
880
- return _this6;
898
+ return _this7;
881
899
  }
882
900
 
883
901
  return _createClass(ShopConfig);
@@ -1077,11 +1095,15 @@ var Sdk = /*#__PURE__*/function (_Events) {
1077
1095
  method: fun,
1078
1096
  payload: payload
1079
1097
  });
1080
- return new Promise(function (resolve) {
1098
+ return new Promise(function (resolve, reject) {
1081
1099
  var onChannelMessage = function onChannelMessage(response) {
1082
1100
  if (response.callId === callId) {
1083
1101
  _this4.channel.unsubscribe(main.Message.METHOD_RESULT, onChannelMessage);
1084
1102
 
1103
+ if (response !== null && response !== void 0 && response.isException) {
1104
+ return reject(response.result);
1105
+ }
1106
+
1085
1107
  return resolve(response.result);
1086
1108
  }
1087
1109
  };
@@ -1148,7 +1170,6 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
1148
1170
  hash: '',
1149
1171
  query: {}
1150
1172
  },
1151
- orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1152
1173
  catalog: new BackofficeCatalog(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1153
1174
  user: new BackofficeUser(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1154
1175
  tenant: new BackofficeTenant(_this5.callFunction.bind(_assertThisInitialized(_this5))),
@@ -1190,7 +1211,8 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
1190
1211
  catalog: new ShopCatalog(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1191
1212
  account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1192
1213
  utils: new ShopUtils(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1193
- config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6)))
1214
+ config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1215
+ wishlist: new ShopWishlist(_this6.callFunction.bind(_assertThisInitialized(_this6)))
1194
1216
  });
1195
1217
 
1196
1218
  return _this6;