@one-commerce/sdk-core 1.17.1 → 1.18.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/lib/bundles/bundle.esm.js +154 -133
- 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 +154 -133
- 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/backofficeServices.js +40 -66
- package/lib/cjs/backofficeServices.js.map +1 -1
- package/lib/cjs/index.js +7 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shopServices.js +113 -70
- package/lib/cjs/shopServices.js.map +1 -1
- package/lib/esm/backofficeServices.js +0 -8
- package/lib/esm/backofficeServices.js.map +1 -1
- package/lib/esm/index.js +10 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shopServices.js +20 -0
- package/lib/esm/shopServices.js.map +1 -1
- package/lib/types/backofficeServices.d.ts +0 -3
- package/lib/types/backofficeServices.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/shopServices.d.ts +6 -0
- package/lib/types/shopServices.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -385,15 +385,15 @@ var BackofficeTenant = /*#__PURE__*/function (_BaseCallClass3) {
|
|
|
385
385
|
|
|
386
386
|
return _createClass(BackofficeTenant);
|
|
387
387
|
}(BaseCallClass);
|
|
388
|
-
var
|
|
389
|
-
_inherits(
|
|
388
|
+
var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass4) {
|
|
389
|
+
_inherits(BackofficeLayout, _BaseCallClass4);
|
|
390
390
|
|
|
391
|
-
var _super4 = _createSuper(
|
|
391
|
+
var _super4 = _createSuper(BackofficeLayout);
|
|
392
392
|
|
|
393
|
-
function
|
|
393
|
+
function BackofficeLayout() {
|
|
394
394
|
var _this4;
|
|
395
395
|
|
|
396
|
-
_classCallCheck(this,
|
|
396
|
+
_classCallCheck(this, BackofficeLayout);
|
|
397
397
|
|
|
398
398
|
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
399
399
|
args[_key4] = arguments[_key4];
|
|
@@ -401,22 +401,24 @@ var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass4) {
|
|
|
401
401
|
|
|
402
402
|
_this4 = _super4.call.apply(_super4, [this].concat(args));
|
|
403
403
|
|
|
404
|
-
_defineProperty(_assertThisInitialized(_this4), "serviceName", '
|
|
404
|
+
_defineProperty(_assertThisInitialized(_this4), "serviceName", 'layout');
|
|
405
|
+
|
|
406
|
+
_defineProperty(_assertThisInitialized(_this4), "isAsideOpened", void 0);
|
|
405
407
|
|
|
406
408
|
return _this4;
|
|
407
409
|
}
|
|
408
410
|
|
|
409
|
-
return _createClass(
|
|
411
|
+
return _createClass(BackofficeLayout);
|
|
410
412
|
}(BaseCallClass);
|
|
411
|
-
var
|
|
412
|
-
_inherits(
|
|
413
|
+
var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
|
|
414
|
+
_inherits(BackofficeAuthorization, _BaseCallClass5);
|
|
413
415
|
|
|
414
|
-
var _super5 = _createSuper(
|
|
416
|
+
var _super5 = _createSuper(BackofficeAuthorization);
|
|
415
417
|
|
|
416
|
-
function
|
|
418
|
+
function BackofficeAuthorization() {
|
|
417
419
|
var _this5;
|
|
418
420
|
|
|
419
|
-
_classCallCheck(this,
|
|
421
|
+
_classCallCheck(this, BackofficeAuthorization);
|
|
420
422
|
|
|
421
423
|
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
422
424
|
args[_key5] = arguments[_key5];
|
|
@@ -424,36 +426,11 @@ var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass5) {
|
|
|
424
426
|
|
|
425
427
|
_this5 = _super5.call.apply(_super5, [this].concat(args));
|
|
426
428
|
|
|
427
|
-
_defineProperty(_assertThisInitialized(_this5), "serviceName", '
|
|
428
|
-
|
|
429
|
-
_defineProperty(_assertThisInitialized(_this5), "isAsideOpened", void 0);
|
|
429
|
+
_defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
|
|
430
430
|
|
|
431
431
|
return _this5;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
return _createClass(BackofficeLayout);
|
|
435
|
-
}(BaseCallClass);
|
|
436
|
-
var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass6) {
|
|
437
|
-
_inherits(BackofficeAuthorization, _BaseCallClass6);
|
|
438
|
-
|
|
439
|
-
var _super6 = _createSuper(BackofficeAuthorization);
|
|
440
|
-
|
|
441
|
-
function BackofficeAuthorization() {
|
|
442
|
-
var _this6;
|
|
443
|
-
|
|
444
|
-
_classCallCheck(this, BackofficeAuthorization);
|
|
445
|
-
|
|
446
|
-
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
447
|
-
args[_key6] = arguments[_key6];
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
_this6 = _super6.call.apply(_super6, [this].concat(args));
|
|
451
|
-
|
|
452
|
-
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'authorization');
|
|
453
|
-
|
|
454
|
-
return _this6;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
434
|
_createClass(BackofficeAuthorization, [{
|
|
458
435
|
key: "getAuthToken",
|
|
459
436
|
value: function getAuthToken() {
|
|
@@ -463,58 +440,58 @@ var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass6) {
|
|
|
463
440
|
|
|
464
441
|
return BackofficeAuthorization;
|
|
465
442
|
}(BaseCallClass);
|
|
466
|
-
var BackofficeCustomer = /*#__PURE__*/function (
|
|
467
|
-
_inherits(BackofficeCustomer,
|
|
443
|
+
var BackofficeCustomer = /*#__PURE__*/function (_BaseCallClass6) {
|
|
444
|
+
_inherits(BackofficeCustomer, _BaseCallClass6);
|
|
468
445
|
|
|
469
|
-
var
|
|
446
|
+
var _super6 = _createSuper(BackofficeCustomer);
|
|
470
447
|
|
|
471
448
|
function BackofficeCustomer() {
|
|
472
|
-
var
|
|
449
|
+
var _this6;
|
|
473
450
|
|
|
474
451
|
_classCallCheck(this, BackofficeCustomer);
|
|
475
452
|
|
|
476
|
-
for (var
|
|
477
|
-
args[
|
|
453
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
454
|
+
args[_key6] = arguments[_key6];
|
|
478
455
|
}
|
|
479
456
|
|
|
480
|
-
|
|
457
|
+
_this6 = _super6.call.apply(_super6, [this].concat(args));
|
|
481
458
|
|
|
482
|
-
_defineProperty(_assertThisInitialized(
|
|
459
|
+
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'customer');
|
|
483
460
|
|
|
484
|
-
_defineProperty(_assertThisInitialized(
|
|
461
|
+
_defineProperty(_assertThisInitialized(_this6), "id", void 0);
|
|
485
462
|
|
|
486
|
-
_defineProperty(_assertThisInitialized(
|
|
463
|
+
_defineProperty(_assertThisInitialized(_this6), "name", void 0);
|
|
487
464
|
|
|
488
|
-
return
|
|
465
|
+
return _this6;
|
|
489
466
|
}
|
|
490
467
|
|
|
491
468
|
return _createClass(BackofficeCustomer);
|
|
492
469
|
}(BaseCallClass);
|
|
493
|
-
var BackofficePlugin = /*#__PURE__*/function (
|
|
494
|
-
_inherits(BackofficePlugin,
|
|
470
|
+
var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
|
|
471
|
+
_inherits(BackofficePlugin, _BaseCallClass7);
|
|
495
472
|
|
|
496
|
-
var
|
|
473
|
+
var _super7 = _createSuper(BackofficePlugin);
|
|
497
474
|
|
|
498
475
|
function BackofficePlugin() {
|
|
499
|
-
var
|
|
476
|
+
var _this7;
|
|
500
477
|
|
|
501
478
|
_classCallCheck(this, BackofficePlugin);
|
|
502
479
|
|
|
503
|
-
for (var
|
|
504
|
-
args[
|
|
480
|
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
481
|
+
args[_key7] = arguments[_key7];
|
|
505
482
|
}
|
|
506
483
|
|
|
507
|
-
|
|
484
|
+
_this7 = _super7.call.apply(_super7, [this].concat(args));
|
|
508
485
|
|
|
509
|
-
_defineProperty(_assertThisInitialized(
|
|
486
|
+
_defineProperty(_assertThisInitialized(_this7), "serviceName", 'plugin');
|
|
510
487
|
|
|
511
|
-
_defineProperty(_assertThisInitialized(
|
|
488
|
+
_defineProperty(_assertThisInitialized(_this7), "id", void 0);
|
|
512
489
|
|
|
513
|
-
_defineProperty(_assertThisInitialized(
|
|
490
|
+
_defineProperty(_assertThisInitialized(_this7), "srcUrl", void 0);
|
|
514
491
|
|
|
515
|
-
_defineProperty(_assertThisInitialized(
|
|
492
|
+
_defineProperty(_assertThisInitialized(_this7), "name", void 0);
|
|
516
493
|
|
|
517
|
-
return
|
|
494
|
+
return _this7;
|
|
518
495
|
}
|
|
519
496
|
|
|
520
497
|
return _createClass(BackofficePlugin);
|
|
@@ -602,15 +579,15 @@ var ShopCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
|
602
579
|
|
|
603
580
|
return ShopCatalog;
|
|
604
581
|
}(BaseCallClass);
|
|
605
|
-
var
|
|
606
|
-
_inherits(
|
|
582
|
+
var ShopWishlist = /*#__PURE__*/function (_BaseCallClass2) {
|
|
583
|
+
_inherits(ShopWishlist, _BaseCallClass2);
|
|
607
584
|
|
|
608
|
-
var _super2 = _createSuper(
|
|
585
|
+
var _super2 = _createSuper(ShopWishlist);
|
|
609
586
|
|
|
610
|
-
function
|
|
587
|
+
function ShopWishlist() {
|
|
611
588
|
var _this2;
|
|
612
589
|
|
|
613
|
-
_classCallCheck(this,
|
|
590
|
+
_classCallCheck(this, ShopWishlist);
|
|
614
591
|
|
|
615
592
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
616
593
|
args[_key2] = arguments[_key2];
|
|
@@ -618,17 +595,57 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
|
|
|
618
595
|
|
|
619
596
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
620
597
|
|
|
621
|
-
_defineProperty(_assertThisInitialized(_this2), "serviceName", '
|
|
598
|
+
_defineProperty(_assertThisInitialized(_this2), "serviceName", 'wishlist');
|
|
622
599
|
|
|
623
|
-
|
|
600
|
+
return _this2;
|
|
601
|
+
}
|
|
624
602
|
|
|
625
|
-
|
|
603
|
+
_createClass(ShopWishlist, [{
|
|
604
|
+
key: "addProductsToWishlist",
|
|
605
|
+
value: function addProductsToWishlist(wishlistId, newProduct) {
|
|
606
|
+
return this.call('addProductsToWishlist', wishlistId, newProduct);
|
|
607
|
+
}
|
|
608
|
+
}, {
|
|
609
|
+
key: "getWishlists",
|
|
610
|
+
value: function getWishlists() {
|
|
611
|
+
return this.call('getWishlists');
|
|
612
|
+
}
|
|
613
|
+
}, {
|
|
614
|
+
key: "createWishlist",
|
|
615
|
+
value: function createWishlist(name) {
|
|
616
|
+
return this.call('createWishlist', name);
|
|
617
|
+
}
|
|
618
|
+
}]);
|
|
626
619
|
|
|
627
|
-
|
|
620
|
+
return ShopWishlist;
|
|
621
|
+
}(BaseCallClass);
|
|
622
|
+
var ShopAccount = /*#__PURE__*/function (_BaseCallClass3) {
|
|
623
|
+
_inherits(ShopAccount, _BaseCallClass3);
|
|
628
624
|
|
|
629
|
-
|
|
625
|
+
var _super3 = _createSuper(ShopAccount);
|
|
630
626
|
|
|
631
|
-
|
|
627
|
+
function ShopAccount() {
|
|
628
|
+
var _this3;
|
|
629
|
+
|
|
630
|
+
_classCallCheck(this, ShopAccount);
|
|
631
|
+
|
|
632
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
633
|
+
args[_key3] = arguments[_key3];
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
_this3 = _super3.call.apply(_super3, [this].concat(args));
|
|
637
|
+
|
|
638
|
+
_defineProperty(_assertThisInitialized(_this3), "serviceName", 'account');
|
|
639
|
+
|
|
640
|
+
_defineProperty(_assertThisInitialized(_this3), "client", void 0);
|
|
641
|
+
|
|
642
|
+
_defineProperty(_assertThisInitialized(_this3), "isAuthenticated", void 0);
|
|
643
|
+
|
|
644
|
+
_defineProperty(_assertThisInitialized(_this3), "user", void 0);
|
|
645
|
+
|
|
646
|
+
_defineProperty(_assertThisInitialized(_this3), "manager", void 0);
|
|
647
|
+
|
|
648
|
+
return _this3;
|
|
632
649
|
}
|
|
633
650
|
|
|
634
651
|
_createClass(ShopAccount, [{
|
|
@@ -644,31 +661,31 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
|
|
|
644
661
|
|
|
645
662
|
return ShopAccount;
|
|
646
663
|
}(BaseCallClass);
|
|
647
|
-
var ShopCart = /*#__PURE__*/function (
|
|
648
|
-
_inherits(ShopCart,
|
|
664
|
+
var ShopCart = /*#__PURE__*/function (_BaseCallClass4) {
|
|
665
|
+
_inherits(ShopCart, _BaseCallClass4);
|
|
649
666
|
|
|
650
|
-
var
|
|
667
|
+
var _super4 = _createSuper(ShopCart);
|
|
651
668
|
|
|
652
669
|
function ShopCart() {
|
|
653
|
-
var
|
|
670
|
+
var _this4;
|
|
654
671
|
|
|
655
672
|
_classCallCheck(this, ShopCart);
|
|
656
673
|
|
|
657
|
-
for (var
|
|
658
|
-
args[
|
|
674
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
675
|
+
args[_key4] = arguments[_key4];
|
|
659
676
|
}
|
|
660
677
|
|
|
661
|
-
|
|
678
|
+
_this4 = _super4.call.apply(_super4, [this].concat(args));
|
|
662
679
|
|
|
663
|
-
_defineProperty(_assertThisInitialized(
|
|
680
|
+
_defineProperty(_assertThisInitialized(_this4), "serviceName", 'cart');
|
|
664
681
|
|
|
665
|
-
_defineProperty(_assertThisInitialized(
|
|
682
|
+
_defineProperty(_assertThisInitialized(_this4), "carts", void 0);
|
|
666
683
|
|
|
667
|
-
_defineProperty(_assertThisInitialized(
|
|
684
|
+
_defineProperty(_assertThisInitialized(_this4), "currentCart", void 0);
|
|
668
685
|
|
|
669
|
-
_defineProperty(_assertThisInitialized(
|
|
686
|
+
_defineProperty(_assertThisInitialized(_this4), "totalCartPrice", void 0);
|
|
670
687
|
|
|
671
|
-
return
|
|
688
|
+
return _this4;
|
|
672
689
|
}
|
|
673
690
|
|
|
674
691
|
_createClass(ShopCart, [{
|
|
@@ -680,25 +697,25 @@ var ShopCart = /*#__PURE__*/function (_BaseCallClass3) {
|
|
|
680
697
|
|
|
681
698
|
return ShopCart;
|
|
682
699
|
}(BaseCallClass);
|
|
683
|
-
var ShopAuthorization = /*#__PURE__*/function (
|
|
684
|
-
_inherits(ShopAuthorization,
|
|
700
|
+
var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
|
|
701
|
+
_inherits(ShopAuthorization, _BaseCallClass5);
|
|
685
702
|
|
|
686
|
-
var
|
|
703
|
+
var _super5 = _createSuper(ShopAuthorization);
|
|
687
704
|
|
|
688
705
|
function ShopAuthorization() {
|
|
689
|
-
var
|
|
706
|
+
var _this5;
|
|
690
707
|
|
|
691
708
|
_classCallCheck(this, ShopAuthorization);
|
|
692
709
|
|
|
693
|
-
for (var
|
|
694
|
-
args[
|
|
710
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
711
|
+
args[_key5] = arguments[_key5];
|
|
695
712
|
}
|
|
696
713
|
|
|
697
|
-
|
|
714
|
+
_this5 = _super5.call.apply(_super5, [this].concat(args));
|
|
698
715
|
|
|
699
|
-
_defineProperty(_assertThisInitialized(
|
|
716
|
+
_defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
|
|
700
717
|
|
|
701
|
-
return
|
|
718
|
+
return _this5;
|
|
702
719
|
}
|
|
703
720
|
|
|
704
721
|
_createClass(ShopAuthorization, [{
|
|
@@ -710,41 +727,41 @@ var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass4) {
|
|
|
710
727
|
|
|
711
728
|
return ShopAuthorization;
|
|
712
729
|
}(BaseCallClass);
|
|
713
|
-
var ShopUtils = /*#__PURE__*/function (
|
|
714
|
-
_inherits(ShopUtils,
|
|
730
|
+
var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
|
|
731
|
+
_inherits(ShopUtils, _BaseCallClass6);
|
|
715
732
|
|
|
716
|
-
var
|
|
733
|
+
var _super6 = _createSuper(ShopUtils);
|
|
717
734
|
|
|
718
735
|
function ShopUtils(call) {
|
|
719
|
-
var
|
|
736
|
+
var _this6;
|
|
720
737
|
|
|
721
738
|
_classCallCheck(this, ShopUtils);
|
|
722
739
|
|
|
723
|
-
|
|
740
|
+
_this6 = _super6.call(this, call);
|
|
724
741
|
|
|
725
|
-
_defineProperty(_assertThisInitialized(
|
|
742
|
+
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'utils');
|
|
726
743
|
|
|
727
|
-
_defineProperty(_assertThisInitialized(
|
|
744
|
+
_defineProperty(_assertThisInitialized(_this6), "currency", void 0);
|
|
728
745
|
|
|
729
|
-
_defineProperty(_assertThisInitialized(
|
|
746
|
+
_defineProperty(_assertThisInitialized(_this6), "isAnonymousAndPurchaseDisabled", void 0);
|
|
730
747
|
|
|
731
|
-
_defineProperty(_assertThisInitialized(
|
|
748
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2B", void 0);
|
|
732
749
|
|
|
733
|
-
_defineProperty(_assertThisInitialized(
|
|
750
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2BAndPlatformIsNotOpened", void 0);
|
|
734
751
|
|
|
735
|
-
_defineProperty(_assertThisInitialized(
|
|
752
|
+
_defineProperty(_assertThisInitialized(_this6), "isIndexPage", void 0);
|
|
736
753
|
|
|
737
|
-
_defineProperty(_assertThisInitialized(
|
|
754
|
+
_defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabledOrAuthenticated", void 0);
|
|
738
755
|
|
|
739
|
-
_defineProperty(_assertThisInitialized(
|
|
756
|
+
_defineProperty(_assertThisInitialized(_this6), "routes", void 0);
|
|
740
757
|
|
|
741
|
-
|
|
742
|
-
getCategoryPath:
|
|
743
|
-
getManufacturerSearchUrl:
|
|
744
|
-
getProductUrl:
|
|
745
|
-
isExternalUrl:
|
|
758
|
+
_this6.routes = {
|
|
759
|
+
getCategoryPath: _this6.getCategoryPath,
|
|
760
|
+
getManufacturerSearchUrl: _this6.getManufacturerSearchUrl,
|
|
761
|
+
getProductUrl: _this6.getProductUrl,
|
|
762
|
+
isExternalUrl: _this6.isExternalUrl
|
|
746
763
|
};
|
|
747
|
-
return
|
|
764
|
+
return _this6;
|
|
748
765
|
}
|
|
749
766
|
|
|
750
767
|
_createClass(ShopUtils, [{
|
|
@@ -771,43 +788,43 @@ var ShopUtils = /*#__PURE__*/function (_BaseCallClass5) {
|
|
|
771
788
|
|
|
772
789
|
return ShopUtils;
|
|
773
790
|
}(BaseCallClass);
|
|
774
|
-
var ShopConfig = /*#__PURE__*/function (
|
|
775
|
-
_inherits(ShopConfig,
|
|
791
|
+
var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
|
|
792
|
+
_inherits(ShopConfig, _BaseCallClass7);
|
|
776
793
|
|
|
777
|
-
var
|
|
794
|
+
var _super7 = _createSuper(ShopConfig);
|
|
778
795
|
|
|
779
796
|
function ShopConfig() {
|
|
780
|
-
var
|
|
797
|
+
var _this7;
|
|
781
798
|
|
|
782
799
|
_classCallCheck(this, ShopConfig);
|
|
783
800
|
|
|
784
|
-
for (var
|
|
785
|
-
args[
|
|
801
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
802
|
+
args[_key6] = arguments[_key6];
|
|
786
803
|
}
|
|
787
804
|
|
|
788
|
-
|
|
805
|
+
_this7 = _super7.call.apply(_super7, [this].concat(args));
|
|
789
806
|
|
|
790
|
-
_defineProperty(_assertThisInitialized(
|
|
807
|
+
_defineProperty(_assertThisInitialized(_this7), "serviceName", 'config');
|
|
791
808
|
|
|
792
|
-
_defineProperty(_assertThisInitialized(
|
|
809
|
+
_defineProperty(_assertThisInitialized(_this7), "accessMode", void 0);
|
|
793
810
|
|
|
794
|
-
_defineProperty(_assertThisInitialized(
|
|
811
|
+
_defineProperty(_assertThisInitialized(_this7), "isB2CRegistrationEnabled", void 0);
|
|
795
812
|
|
|
796
|
-
_defineProperty(_assertThisInitialized(
|
|
813
|
+
_defineProperty(_assertThisInitialized(_this7), "isCatalogOpened", void 0);
|
|
797
814
|
|
|
798
|
-
_defineProperty(_assertThisInitialized(
|
|
815
|
+
_defineProperty(_assertThisInitialized(_this7), "isGrossSelected", void 0);
|
|
799
816
|
|
|
800
|
-
_defineProperty(_assertThisInitialized(
|
|
817
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformClosed", void 0);
|
|
801
818
|
|
|
802
|
-
_defineProperty(_assertThisInitialized(
|
|
819
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformOpened", void 0);
|
|
803
820
|
|
|
804
|
-
_defineProperty(_assertThisInitialized(
|
|
821
|
+
_defineProperty(_assertThisInitialized(_this7), "isPurchaseEnabled", void 0);
|
|
805
822
|
|
|
806
|
-
_defineProperty(_assertThisInitialized(
|
|
823
|
+
_defineProperty(_assertThisInitialized(_this7), "isRegistrationEnabled", void 0);
|
|
807
824
|
|
|
808
|
-
_defineProperty(_assertThisInitialized(
|
|
825
|
+
_defineProperty(_assertThisInitialized(_this7), "currency", void 0);
|
|
809
826
|
|
|
810
|
-
return
|
|
827
|
+
return _this7;
|
|
811
828
|
}
|
|
812
829
|
|
|
813
830
|
return _createClass(ShopConfig);
|
|
@@ -994,11 +1011,15 @@ var Sdk = /*#__PURE__*/function (_Events) {
|
|
|
994
1011
|
method: fun,
|
|
995
1012
|
payload: payload
|
|
996
1013
|
});
|
|
997
|
-
return new Promise(function (resolve) {
|
|
1014
|
+
return new Promise(function (resolve, reject) {
|
|
998
1015
|
var onChannelMessage = function onChannelMessage(response) {
|
|
999
1016
|
if (response.callId === callId) {
|
|
1000
1017
|
_this4.channel.unsubscribe(main.Message.METHOD_RESULT, onChannelMessage);
|
|
1001
1018
|
|
|
1019
|
+
if (response.isException) {
|
|
1020
|
+
return reject(response.result);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1002
1023
|
return resolve(response.result);
|
|
1003
1024
|
}
|
|
1004
1025
|
};
|
|
@@ -1065,7 +1086,6 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
|
|
|
1065
1086
|
hash: '',
|
|
1066
1087
|
query: {}
|
|
1067
1088
|
},
|
|
1068
|
-
orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1069
1089
|
catalog: new BackofficeCatalog(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1070
1090
|
user: new BackofficeUser(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1071
1091
|
tenant: new BackofficeTenant(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
@@ -1106,7 +1126,8 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1106
1126
|
catalog: new ShopCatalog(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1107
1127
|
account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1108
1128
|
utils: new ShopUtils(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1109
|
-
config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6)))
|
|
1129
|
+
config: new ShopConfig(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1130
|
+
wishlist: new ShopWishlist(_this6.callFunction.bind(_assertThisInitialized(_this6)))
|
|
1110
1131
|
});
|
|
1111
1132
|
|
|
1112
1133
|
return _this6;
|