@one-commerce/sdk-core 1.15.0 → 1.17.1

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.
@@ -496,6 +496,35 @@
496
496
 
497
497
  return _createClass(BackofficeCustomer);
498
498
  }(BaseCallClass);
499
+ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass8) {
500
+ _inherits(BackofficePlugin, _BaseCallClass8);
501
+
502
+ var _super8 = _createSuper(BackofficePlugin);
503
+
504
+ function BackofficePlugin() {
505
+ var _this8;
506
+
507
+ _classCallCheck(this, BackofficePlugin);
508
+
509
+ for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
510
+ args[_key8] = arguments[_key8];
511
+ }
512
+
513
+ _this8 = _super8.call.apply(_super8, [this].concat(args));
514
+
515
+ _defineProperty(_assertThisInitialized(_this8), "serviceName", 'plugin');
516
+
517
+ _defineProperty(_assertThisInitialized(_this8), "id", void 0);
518
+
519
+ _defineProperty(_assertThisInitialized(_this8), "srcUrl", void 0);
520
+
521
+ _defineProperty(_assertThisInitialized(_this8), "name", void 0);
522
+
523
+ return _this8;
524
+ }
525
+
526
+ return _createClass(BackofficePlugin);
527
+ }(BaseCallClass);
499
528
 
500
529
  var Events = /*#__PURE__*/function () {
501
530
  function Events() {
@@ -657,41 +686,71 @@
657
686
 
658
687
  return ShopCart;
659
688
  }(BaseCallClass);
660
- var ShopUtils = /*#__PURE__*/function (_BaseCallClass4) {
661
- _inherits(ShopUtils, _BaseCallClass4);
689
+ var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass4) {
690
+ _inherits(ShopAuthorization, _BaseCallClass4);
662
691
 
663
- var _super4 = _createSuper(ShopUtils);
692
+ var _super4 = _createSuper(ShopAuthorization);
664
693
 
665
- function ShopUtils(call) {
694
+ function ShopAuthorization() {
666
695
  var _this4;
667
696
 
697
+ _classCallCheck(this, ShopAuthorization);
698
+
699
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
700
+ args[_key4] = arguments[_key4];
701
+ }
702
+
703
+ _this4 = _super4.call.apply(_super4, [this].concat(args));
704
+
705
+ _defineProperty(_assertThisInitialized(_this4), "serviceName", 'authorization');
706
+
707
+ return _this4;
708
+ }
709
+
710
+ _createClass(ShopAuthorization, [{
711
+ key: "getAuthToken",
712
+ value: function getAuthToken() {
713
+ return this.call('getAuthToken');
714
+ }
715
+ }]);
716
+
717
+ return ShopAuthorization;
718
+ }(BaseCallClass);
719
+ var ShopUtils = /*#__PURE__*/function (_BaseCallClass5) {
720
+ _inherits(ShopUtils, _BaseCallClass5);
721
+
722
+ var _super5 = _createSuper(ShopUtils);
723
+
724
+ function ShopUtils(call) {
725
+ var _this5;
726
+
668
727
  _classCallCheck(this, ShopUtils);
669
728
 
670
- _this4 = _super4.call(this, call);
729
+ _this5 = _super5.call(this, call);
671
730
 
672
- _defineProperty(_assertThisInitialized(_this4), "serviceName", 'utils');
731
+ _defineProperty(_assertThisInitialized(_this5), "serviceName", 'utils');
673
732
 
674
- _defineProperty(_assertThisInitialized(_this4), "currency", void 0);
733
+ _defineProperty(_assertThisInitialized(_this5), "currency", void 0);
675
734
 
676
- _defineProperty(_assertThisInitialized(_this4), "isAnonymousAndPurchaseDisabled", void 0);
735
+ _defineProperty(_assertThisInitialized(_this5), "isAnonymousAndPurchaseDisabled", void 0);
677
736
 
678
- _defineProperty(_assertThisInitialized(_this4), "isB2B", void 0);
737
+ _defineProperty(_assertThisInitialized(_this5), "isB2B", void 0);
679
738
 
680
- _defineProperty(_assertThisInitialized(_this4), "isB2BAndPlatformIsNotOpened", void 0);
739
+ _defineProperty(_assertThisInitialized(_this5), "isB2BAndPlatformIsNotOpened", void 0);
681
740
 
682
- _defineProperty(_assertThisInitialized(_this4), "isIndexPage", void 0);
741
+ _defineProperty(_assertThisInitialized(_this5), "isIndexPage", void 0);
683
742
 
684
- _defineProperty(_assertThisInitialized(_this4), "isPurchaseEnabledOrAuthenticated", void 0);
743
+ _defineProperty(_assertThisInitialized(_this5), "isPurchaseEnabledOrAuthenticated", void 0);
685
744
 
686
- _defineProperty(_assertThisInitialized(_this4), "routes", void 0);
745
+ _defineProperty(_assertThisInitialized(_this5), "routes", void 0);
687
746
 
688
- _this4.routes = {
689
- getCategoryPath: _this4.getCategoryPath,
690
- getManufacturerSearchUrl: _this4.getManufacturerSearchUrl,
691
- getProductUrl: _this4.getProductUrl,
692
- isExternalUrl: _this4.isExternalUrl
747
+ _this5.routes = {
748
+ getCategoryPath: _this5.getCategoryPath,
749
+ getManufacturerSearchUrl: _this5.getManufacturerSearchUrl,
750
+ getProductUrl: _this5.getProductUrl,
751
+ isExternalUrl: _this5.isExternalUrl
693
752
  };
694
- return _this4;
753
+ return _this5;
695
754
  }
696
755
 
697
756
  _createClass(ShopUtils, [{
@@ -718,43 +777,43 @@
718
777
 
719
778
  return ShopUtils;
720
779
  }(BaseCallClass);
721
- var ShopConfig = /*#__PURE__*/function (_BaseCallClass5) {
722
- _inherits(ShopConfig, _BaseCallClass5);
780
+ var ShopConfig = /*#__PURE__*/function (_BaseCallClass6) {
781
+ _inherits(ShopConfig, _BaseCallClass6);
723
782
 
724
- var _super5 = _createSuper(ShopConfig);
783
+ var _super6 = _createSuper(ShopConfig);
725
784
 
726
785
  function ShopConfig() {
727
- var _this5;
786
+ var _this6;
728
787
 
729
788
  _classCallCheck(this, ShopConfig);
730
789
 
731
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
732
- args[_key4] = arguments[_key4];
790
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
791
+ args[_key5] = arguments[_key5];
733
792
  }
734
793
 
735
- _this5 = _super5.call.apply(_super5, [this].concat(args));
794
+ _this6 = _super6.call.apply(_super6, [this].concat(args));
736
795
 
737
- _defineProperty(_assertThisInitialized(_this5), "serviceName", 'config');
796
+ _defineProperty(_assertThisInitialized(_this6), "serviceName", 'config');
738
797
 
739
- _defineProperty(_assertThisInitialized(_this5), "accessMode", void 0);
798
+ _defineProperty(_assertThisInitialized(_this6), "accessMode", void 0);
740
799
 
741
- _defineProperty(_assertThisInitialized(_this5), "isB2CRegistrationEnabled", void 0);
800
+ _defineProperty(_assertThisInitialized(_this6), "isB2CRegistrationEnabled", void 0);
742
801
 
743
- _defineProperty(_assertThisInitialized(_this5), "isCatalogOpened", void 0);
802
+ _defineProperty(_assertThisInitialized(_this6), "isCatalogOpened", void 0);
744
803
 
745
- _defineProperty(_assertThisInitialized(_this5), "isGrossSelected", void 0);
804
+ _defineProperty(_assertThisInitialized(_this6), "isGrossSelected", void 0);
746
805
 
747
- _defineProperty(_assertThisInitialized(_this5), "isPlatformClosed", void 0);
806
+ _defineProperty(_assertThisInitialized(_this6), "isPlatformClosed", void 0);
748
807
 
749
- _defineProperty(_assertThisInitialized(_this5), "isPlatformOpened", void 0);
808
+ _defineProperty(_assertThisInitialized(_this6), "isPlatformOpened", void 0);
750
809
 
751
- _defineProperty(_assertThisInitialized(_this5), "isPurchaseEnabled", void 0);
810
+ _defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabled", void 0);
752
811
 
753
- _defineProperty(_assertThisInitialized(_this5), "isRegistrationEnabled", void 0);
812
+ _defineProperty(_assertThisInitialized(_this6), "isRegistrationEnabled", void 0);
754
813
 
755
- _defineProperty(_assertThisInitialized(_this5), "currency", void 0);
814
+ _defineProperty(_assertThisInitialized(_this6), "currency", void 0);
756
815
 
757
- return _this5;
816
+ return _this6;
758
817
  }
759
818
 
760
819
  return _createClass(ShopConfig);
@@ -1018,7 +1077,8 @@
1018
1077
  tenant: new BackofficeTenant(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1019
1078
  layout: new BackofficeLayout(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1020
1079
  authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1021
- customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5)))
1080
+ customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1081
+ plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5)))
1022
1082
  });
1023
1083
 
1024
1084
  return _this5;
@@ -1047,6 +1107,7 @@
1047
1107
  hash: '',
1048
1108
  query: {}
1049
1109
  },
1110
+ authorization: new ShopAuthorization(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1050
1111
  cart: new ShopCart(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1051
1112
  catalog: new ShopCatalog(_this6.callFunction.bind(_assertThisInitialized(_this6))),
1052
1113
  account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),