@one-commerce/sdk-core 1.19.4-alpha.0 → 1.19.4
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/lib/bundles/bundle.esm.js +157 -135
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +157 -135
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/backoffice/context.js +2 -2
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/backoffice/services.js +42 -68
- package/lib/cjs/backoffice/services.js.map +1 -1
- package/lib/cjs/events.js.map +1 -1
- package/lib/cjs/index.js +9 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/services.js +115 -72
- package/lib/cjs/shop/services.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/backoffice/services.js +0 -8
- package/lib/esm/backoffice/services.js.map +1 -1
- package/lib/esm/events.js.map +1 -1
- package/lib/esm/index.js +10 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shop/services.js +20 -0
- package/lib/esm/shop/services.js.map +1 -1
- package/lib/esm/utils.js.map +1 -1
- package/lib/types/backoffice/services.d.ts +0 -3
- package/lib/types/backoffice/services.d.ts.map +1 -1
- package/lib/types/index.d.ts +4 -4
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shop/services.d.ts +6 -0
- package/lib/types/shop/services.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -57,17 +57,18 @@ function _inherits(subClass, superClass) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function _getPrototypeOf(o) {
|
|
60
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
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
|
|
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
|
|
459
|
-
_inherits(
|
|
459
|
+
var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass4) {
|
|
460
|
+
_inherits(BackofficeLayout, _BaseCallClass4);
|
|
460
461
|
|
|
461
|
-
var _super4 = _createSuper(
|
|
462
|
+
var _super4 = _createSuper(BackofficeLayout);
|
|
462
463
|
|
|
463
|
-
function
|
|
464
|
+
function BackofficeLayout() {
|
|
464
465
|
var _this4;
|
|
465
466
|
|
|
466
|
-
_classCallCheck(this,
|
|
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", '
|
|
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(
|
|
482
|
+
return _createClass(BackofficeLayout);
|
|
480
483
|
}(BaseCallClass);
|
|
481
|
-
var
|
|
482
|
-
_inherits(
|
|
484
|
+
var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
|
|
485
|
+
_inherits(BackofficeAuthorization, _BaseCallClass5);
|
|
483
486
|
|
|
484
|
-
var _super5 = _createSuper(
|
|
487
|
+
var _super5 = _createSuper(BackofficeAuthorization);
|
|
485
488
|
|
|
486
|
-
function
|
|
489
|
+
function BackofficeAuthorization() {
|
|
487
490
|
var _this5;
|
|
488
491
|
|
|
489
|
-
_classCallCheck(this,
|
|
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", '
|
|
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 (
|
|
537
|
-
_inherits(BackofficeCustomer,
|
|
514
|
+
var BackofficeCustomer = /*#__PURE__*/function (_BaseCallClass6) {
|
|
515
|
+
_inherits(BackofficeCustomer, _BaseCallClass6);
|
|
538
516
|
|
|
539
|
-
var
|
|
517
|
+
var _super6 = _createSuper(BackofficeCustomer);
|
|
540
518
|
|
|
541
519
|
function BackofficeCustomer() {
|
|
542
|
-
var
|
|
520
|
+
var _this6;
|
|
543
521
|
|
|
544
522
|
_classCallCheck(this, BackofficeCustomer);
|
|
545
523
|
|
|
546
|
-
for (var
|
|
547
|
-
args[
|
|
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
|
-
|
|
528
|
+
_this6 = _super6.call.apply(_super6, [this].concat(args));
|
|
551
529
|
|
|
552
|
-
_defineProperty(_assertThisInitialized(
|
|
530
|
+
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'customer');
|
|
553
531
|
|
|
554
|
-
_defineProperty(_assertThisInitialized(
|
|
532
|
+
_defineProperty(_assertThisInitialized(_this6), "id", void 0);
|
|
555
533
|
|
|
556
|
-
_defineProperty(_assertThisInitialized(
|
|
534
|
+
_defineProperty(_assertThisInitialized(_this6), "name", void 0);
|
|
557
535
|
|
|
558
|
-
return
|
|
536
|
+
return _this6;
|
|
559
537
|
}
|
|
560
538
|
|
|
561
539
|
return _createClass(BackofficeCustomer);
|
|
562
540
|
}(BaseCallClass);
|
|
563
|
-
var BackofficePlugin = /*#__PURE__*/function (
|
|
564
|
-
_inherits(BackofficePlugin,
|
|
541
|
+
var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
|
|
542
|
+
_inherits(BackofficePlugin, _BaseCallClass7);
|
|
565
543
|
|
|
566
|
-
var
|
|
544
|
+
var _super7 = _createSuper(BackofficePlugin);
|
|
567
545
|
|
|
568
546
|
function BackofficePlugin() {
|
|
569
|
-
var
|
|
547
|
+
var _this7;
|
|
570
548
|
|
|
571
549
|
_classCallCheck(this, BackofficePlugin);
|
|
572
550
|
|
|
573
|
-
for (var
|
|
574
|
-
args[
|
|
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
|
-
|
|
555
|
+
_this7 = _super7.call.apply(_super7, [this].concat(args));
|
|
578
556
|
|
|
579
|
-
_defineProperty(_assertThisInitialized(
|
|
557
|
+
_defineProperty(_assertThisInitialized(_this7), "serviceName", 'plugin');
|
|
580
558
|
|
|
581
|
-
_defineProperty(_assertThisInitialized(
|
|
559
|
+
_defineProperty(_assertThisInitialized(_this7), "id", void 0);
|
|
582
560
|
|
|
583
|
-
_defineProperty(_assertThisInitialized(
|
|
561
|
+
_defineProperty(_assertThisInitialized(_this7), "srcUrl", void 0);
|
|
584
562
|
|
|
585
|
-
_defineProperty(_assertThisInitialized(
|
|
563
|
+
_defineProperty(_assertThisInitialized(_this7), "name", void 0);
|
|
586
564
|
|
|
587
|
-
return
|
|
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
|
|
676
|
-
_inherits(
|
|
653
|
+
var ShopWishlist = /*#__PURE__*/function (_BaseCallClass2) {
|
|
654
|
+
_inherits(ShopWishlist, _BaseCallClass2);
|
|
677
655
|
|
|
678
|
-
var _super2 = _createSuper(
|
|
656
|
+
var _super2 = _createSuper(ShopWishlist);
|
|
679
657
|
|
|
680
|
-
function
|
|
658
|
+
function ShopWishlist() {
|
|
681
659
|
var _this2;
|
|
682
660
|
|
|
683
|
-
_classCallCheck(this,
|
|
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", '
|
|
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
|
-
|
|
696
|
+
var _super3 = _createSuper(ShopAccount);
|
|
694
697
|
|
|
695
|
-
|
|
698
|
+
function ShopAccount() {
|
|
699
|
+
var _this3;
|
|
696
700
|
|
|
697
|
-
|
|
701
|
+
_classCallCheck(this, ShopAccount);
|
|
698
702
|
|
|
699
|
-
|
|
703
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
704
|
+
args[_key3] = arguments[_key3];
|
|
705
|
+
}
|
|
700
706
|
|
|
701
|
-
|
|
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 (
|
|
718
|
-
_inherits(ShopCart,
|
|
735
|
+
var ShopCart = /*#__PURE__*/function (_BaseCallClass4) {
|
|
736
|
+
_inherits(ShopCart, _BaseCallClass4);
|
|
719
737
|
|
|
720
|
-
var
|
|
738
|
+
var _super4 = _createSuper(ShopCart);
|
|
721
739
|
|
|
722
740
|
function ShopCart() {
|
|
723
|
-
var
|
|
741
|
+
var _this4;
|
|
724
742
|
|
|
725
743
|
_classCallCheck(this, ShopCart);
|
|
726
744
|
|
|
727
|
-
for (var
|
|
728
|
-
args[
|
|
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
|
-
|
|
749
|
+
_this4 = _super4.call.apply(_super4, [this].concat(args));
|
|
732
750
|
|
|
733
|
-
_defineProperty(_assertThisInitialized(
|
|
751
|
+
_defineProperty(_assertThisInitialized(_this4), "serviceName", 'cart');
|
|
734
752
|
|
|
735
|
-
_defineProperty(_assertThisInitialized(
|
|
753
|
+
_defineProperty(_assertThisInitialized(_this4), "carts", void 0);
|
|
736
754
|
|
|
737
|
-
_defineProperty(_assertThisInitialized(
|
|
755
|
+
_defineProperty(_assertThisInitialized(_this4), "currentCart", void 0);
|
|
738
756
|
|
|
739
|
-
_defineProperty(_assertThisInitialized(
|
|
757
|
+
_defineProperty(_assertThisInitialized(_this4), "totalCartPrice", void 0);
|
|
740
758
|
|
|
741
|
-
return
|
|
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 (
|
|
754
|
-
_inherits(ShopAuthorization,
|
|
771
|
+
var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
|
|
772
|
+
_inherits(ShopAuthorization, _BaseCallClass5);
|
|
755
773
|
|
|
756
|
-
var
|
|
774
|
+
var _super5 = _createSuper(ShopAuthorization);
|
|
757
775
|
|
|
758
776
|
function ShopAuthorization() {
|
|
759
|
-
var
|
|
777
|
+
var _this5;
|
|
760
778
|
|
|
761
779
|
_classCallCheck(this, ShopAuthorization);
|
|
762
780
|
|
|
763
|
-
for (var
|
|
764
|
-
args[
|
|
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
|
-
|
|
785
|
+
_this5 = _super5.call.apply(_super5, [this].concat(args));
|
|
768
786
|
|
|
769
|
-
_defineProperty(_assertThisInitialized(
|
|
787
|
+
_defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
|
|
770
788
|
|
|
771
|
-
return
|
|
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 (
|
|
784
|
-
_inherits(ShopUtils,
|
|
801
|
+
var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
|
|
802
|
+
_inherits(ShopUtils, _BaseCallClass6);
|
|
785
803
|
|
|
786
|
-
var
|
|
804
|
+
var _super6 = _createSuper(ShopUtils);
|
|
787
805
|
|
|
788
806
|
function ShopUtils(call) {
|
|
789
|
-
var
|
|
807
|
+
var _this6;
|
|
790
808
|
|
|
791
809
|
_classCallCheck(this, ShopUtils);
|
|
792
810
|
|
|
793
|
-
|
|
811
|
+
_this6 = _super6.call(this, call);
|
|
794
812
|
|
|
795
|
-
_defineProperty(_assertThisInitialized(
|
|
813
|
+
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'utils');
|
|
796
814
|
|
|
797
|
-
_defineProperty(_assertThisInitialized(
|
|
815
|
+
_defineProperty(_assertThisInitialized(_this6), "currency", void 0);
|
|
798
816
|
|
|
799
|
-
_defineProperty(_assertThisInitialized(
|
|
817
|
+
_defineProperty(_assertThisInitialized(_this6), "isAnonymousAndPurchaseDisabled", void 0);
|
|
800
818
|
|
|
801
|
-
_defineProperty(_assertThisInitialized(
|
|
819
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2B", void 0);
|
|
802
820
|
|
|
803
|
-
_defineProperty(_assertThisInitialized(
|
|
821
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2BAndPlatformIsNotOpened", void 0);
|
|
804
822
|
|
|
805
|
-
_defineProperty(_assertThisInitialized(
|
|
823
|
+
_defineProperty(_assertThisInitialized(_this6), "isIndexPage", void 0);
|
|
806
824
|
|
|
807
|
-
_defineProperty(_assertThisInitialized(
|
|
825
|
+
_defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabledOrAuthenticated", void 0);
|
|
808
826
|
|
|
809
|
-
_defineProperty(_assertThisInitialized(
|
|
827
|
+
_defineProperty(_assertThisInitialized(_this6), "routes", void 0);
|
|
810
828
|
|
|
811
|
-
|
|
812
|
-
getCategoryPath:
|
|
813
|
-
getManufacturerSearchUrl:
|
|
814
|
-
getProductUrl:
|
|
815
|
-
isExternalUrl:
|
|
829
|
+
_this6.routes = {
|
|
830
|
+
getCategoryPath: _this6.getCategoryPath,
|
|
831
|
+
getManufacturerSearchUrl: _this6.getManufacturerSearchUrl,
|
|
832
|
+
getProductUrl: _this6.getProductUrl,
|
|
833
|
+
isExternalUrl: _this6.isExternalUrl
|
|
816
834
|
};
|
|
817
|
-
return
|
|
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 (
|
|
845
|
-
_inherits(ShopConfig,
|
|
862
|
+
var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
|
|
863
|
+
_inherits(ShopConfig, _BaseCallClass7);
|
|
846
864
|
|
|
847
|
-
var
|
|
865
|
+
var _super7 = _createSuper(ShopConfig);
|
|
848
866
|
|
|
849
867
|
function ShopConfig() {
|
|
850
|
-
var
|
|
868
|
+
var _this7;
|
|
851
869
|
|
|
852
870
|
_classCallCheck(this, ShopConfig);
|
|
853
871
|
|
|
854
|
-
for (var
|
|
855
|
-
args[
|
|
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
|
-
|
|
876
|
+
_this7 = _super7.call.apply(_super7, [this].concat(args));
|
|
859
877
|
|
|
860
|
-
_defineProperty(_assertThisInitialized(
|
|
878
|
+
_defineProperty(_assertThisInitialized(_this7), "serviceName", 'config');
|
|
861
879
|
|
|
862
|
-
_defineProperty(_assertThisInitialized(
|
|
880
|
+
_defineProperty(_assertThisInitialized(_this7), "accessMode", void 0);
|
|
863
881
|
|
|
864
|
-
_defineProperty(_assertThisInitialized(
|
|
882
|
+
_defineProperty(_assertThisInitialized(_this7), "isB2CRegistrationEnabled", void 0);
|
|
865
883
|
|
|
866
|
-
_defineProperty(_assertThisInitialized(
|
|
884
|
+
_defineProperty(_assertThisInitialized(_this7), "isCatalogOpened", void 0);
|
|
867
885
|
|
|
868
|
-
_defineProperty(_assertThisInitialized(
|
|
886
|
+
_defineProperty(_assertThisInitialized(_this7), "isGrossSelected", void 0);
|
|
869
887
|
|
|
870
|
-
_defineProperty(_assertThisInitialized(
|
|
888
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformClosed", void 0);
|
|
871
889
|
|
|
872
|
-
_defineProperty(_assertThisInitialized(
|
|
890
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformOpened", void 0);
|
|
873
891
|
|
|
874
|
-
_defineProperty(_assertThisInitialized(
|
|
892
|
+
_defineProperty(_assertThisInitialized(_this7), "isPurchaseEnabled", void 0);
|
|
875
893
|
|
|
876
|
-
_defineProperty(_assertThisInitialized(
|
|
894
|
+
_defineProperty(_assertThisInitialized(_this7), "isRegistrationEnabled", void 0);
|
|
877
895
|
|
|
878
|
-
_defineProperty(_assertThisInitialized(
|
|
896
|
+
_defineProperty(_assertThisInitialized(_this7), "currency", void 0);
|
|
879
897
|
|
|
880
|
-
return
|
|
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;
|