@one-commerce/sdk-core 1.18.0-alpha.0 → 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 +155 -181
- 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 +155 -181
- 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 -115
- package/lib/cjs/backofficeServices.js.map +1 -1
- package/lib/cjs/index.js +8 -5
- 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 -34
- package/lib/esm/backofficeServices.js.map +1 -1
- package/lib/esm/index.js +11 -7
- 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 -12
- package/lib/types/backofficeServices.d.ts.map +1 -1
- package/lib/types/index.d.ts +4 -6
- 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,108 +440,62 @@ 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);
|
|
521
498
|
}(BaseCallClass);
|
|
522
|
-
var BackofficeAddToCartContext = /*#__PURE__*/function (_BaseCallClass9) {
|
|
523
|
-
_inherits(BackofficeAddToCartContext, _BaseCallClass9);
|
|
524
|
-
|
|
525
|
-
var _super9 = _createSuper(BackofficeAddToCartContext);
|
|
526
|
-
|
|
527
|
-
function BackofficeAddToCartContext() {
|
|
528
|
-
var _this9;
|
|
529
|
-
|
|
530
|
-
_classCallCheck(this, BackofficeAddToCartContext);
|
|
531
|
-
|
|
532
|
-
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
533
|
-
args[_key9] = arguments[_key9];
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
_this9 = _super9.call.apply(_super9, [this].concat(args));
|
|
537
|
-
|
|
538
|
-
_defineProperty(_assertThisInitialized(_this9), "serviceName", 'addToCartContext');
|
|
539
|
-
|
|
540
|
-
_defineProperty(_assertThisInitialized(_this9), "productId", void 0);
|
|
541
|
-
|
|
542
|
-
_defineProperty(_assertThisInitialized(_this9), "cartId", void 0);
|
|
543
|
-
|
|
544
|
-
_defineProperty(_assertThisInitialized(_this9), "warehouses", void 0);
|
|
545
|
-
|
|
546
|
-
return _this9;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
_createClass(BackofficeAddToCartContext, [{
|
|
550
|
-
key: "closePlugin",
|
|
551
|
-
value: function closePlugin() {
|
|
552
|
-
this.call('closePlugin');
|
|
553
|
-
}
|
|
554
|
-
}, {
|
|
555
|
-
key: "closePluginAndAddToCart",
|
|
556
|
-
value: function closePluginAndAddToCart() {
|
|
557
|
-
this.call('closePluginAndAddToCart');
|
|
558
|
-
}
|
|
559
|
-
}, {
|
|
560
|
-
key: "closePluginAndRefreshCart",
|
|
561
|
-
value: function closePluginAndRefreshCart() {
|
|
562
|
-
this.call('closePluginAndRefreshCart');
|
|
563
|
-
}
|
|
564
|
-
}]);
|
|
565
|
-
|
|
566
|
-
return BackofficeAddToCartContext;
|
|
567
|
-
}(BaseCallClass);
|
|
568
499
|
|
|
569
500
|
var Events = /*#__PURE__*/function () {
|
|
570
501
|
function Events() {
|
|
@@ -648,15 +579,15 @@ var ShopCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
|
648
579
|
|
|
649
580
|
return ShopCatalog;
|
|
650
581
|
}(BaseCallClass);
|
|
651
|
-
var
|
|
652
|
-
_inherits(
|
|
582
|
+
var ShopWishlist = /*#__PURE__*/function (_BaseCallClass2) {
|
|
583
|
+
_inherits(ShopWishlist, _BaseCallClass2);
|
|
653
584
|
|
|
654
|
-
var _super2 = _createSuper(
|
|
585
|
+
var _super2 = _createSuper(ShopWishlist);
|
|
655
586
|
|
|
656
|
-
function
|
|
587
|
+
function ShopWishlist() {
|
|
657
588
|
var _this2;
|
|
658
589
|
|
|
659
|
-
_classCallCheck(this,
|
|
590
|
+
_classCallCheck(this, ShopWishlist);
|
|
660
591
|
|
|
661
592
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
662
593
|
args[_key2] = arguments[_key2];
|
|
@@ -664,17 +595,57 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
|
|
|
664
595
|
|
|
665
596
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
666
597
|
|
|
667
|
-
_defineProperty(_assertThisInitialized(_this2), "serviceName", '
|
|
598
|
+
_defineProperty(_assertThisInitialized(_this2), "serviceName", 'wishlist');
|
|
668
599
|
|
|
669
|
-
|
|
600
|
+
return _this2;
|
|
601
|
+
}
|
|
670
602
|
|
|
671
|
-
|
|
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
|
+
}]);
|
|
672
619
|
|
|
673
|
-
|
|
620
|
+
return ShopWishlist;
|
|
621
|
+
}(BaseCallClass);
|
|
622
|
+
var ShopAccount = /*#__PURE__*/function (_BaseCallClass3) {
|
|
623
|
+
_inherits(ShopAccount, _BaseCallClass3);
|
|
674
624
|
|
|
675
|
-
|
|
625
|
+
var _super3 = _createSuper(ShopAccount);
|
|
676
626
|
|
|
677
|
-
|
|
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;
|
|
678
649
|
}
|
|
679
650
|
|
|
680
651
|
_createClass(ShopAccount, [{
|
|
@@ -690,31 +661,31 @@ var ShopAccount = /*#__PURE__*/function (_BaseCallClass2) {
|
|
|
690
661
|
|
|
691
662
|
return ShopAccount;
|
|
692
663
|
}(BaseCallClass);
|
|
693
|
-
var ShopCart = /*#__PURE__*/function (
|
|
694
|
-
_inherits(ShopCart,
|
|
664
|
+
var ShopCart = /*#__PURE__*/function (_BaseCallClass4) {
|
|
665
|
+
_inherits(ShopCart, _BaseCallClass4);
|
|
695
666
|
|
|
696
|
-
var
|
|
667
|
+
var _super4 = _createSuper(ShopCart);
|
|
697
668
|
|
|
698
669
|
function ShopCart() {
|
|
699
|
-
var
|
|
670
|
+
var _this4;
|
|
700
671
|
|
|
701
672
|
_classCallCheck(this, ShopCart);
|
|
702
673
|
|
|
703
|
-
for (var
|
|
704
|
-
args[
|
|
674
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
675
|
+
args[_key4] = arguments[_key4];
|
|
705
676
|
}
|
|
706
677
|
|
|
707
|
-
|
|
678
|
+
_this4 = _super4.call.apply(_super4, [this].concat(args));
|
|
708
679
|
|
|
709
|
-
_defineProperty(_assertThisInitialized(
|
|
680
|
+
_defineProperty(_assertThisInitialized(_this4), "serviceName", 'cart');
|
|
710
681
|
|
|
711
|
-
_defineProperty(_assertThisInitialized(
|
|
682
|
+
_defineProperty(_assertThisInitialized(_this4), "carts", void 0);
|
|
712
683
|
|
|
713
|
-
_defineProperty(_assertThisInitialized(
|
|
684
|
+
_defineProperty(_assertThisInitialized(_this4), "currentCart", void 0);
|
|
714
685
|
|
|
715
|
-
_defineProperty(_assertThisInitialized(
|
|
686
|
+
_defineProperty(_assertThisInitialized(_this4), "totalCartPrice", void 0);
|
|
716
687
|
|
|
717
|
-
return
|
|
688
|
+
return _this4;
|
|
718
689
|
}
|
|
719
690
|
|
|
720
691
|
_createClass(ShopCart, [{
|
|
@@ -726,25 +697,25 @@ var ShopCart = /*#__PURE__*/function (_BaseCallClass3) {
|
|
|
726
697
|
|
|
727
698
|
return ShopCart;
|
|
728
699
|
}(BaseCallClass);
|
|
729
|
-
var ShopAuthorization = /*#__PURE__*/function (
|
|
730
|
-
_inherits(ShopAuthorization,
|
|
700
|
+
var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass5) {
|
|
701
|
+
_inherits(ShopAuthorization, _BaseCallClass5);
|
|
731
702
|
|
|
732
|
-
var
|
|
703
|
+
var _super5 = _createSuper(ShopAuthorization);
|
|
733
704
|
|
|
734
705
|
function ShopAuthorization() {
|
|
735
|
-
var
|
|
706
|
+
var _this5;
|
|
736
707
|
|
|
737
708
|
_classCallCheck(this, ShopAuthorization);
|
|
738
709
|
|
|
739
|
-
for (var
|
|
740
|
-
args[
|
|
710
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
711
|
+
args[_key5] = arguments[_key5];
|
|
741
712
|
}
|
|
742
713
|
|
|
743
|
-
|
|
714
|
+
_this5 = _super5.call.apply(_super5, [this].concat(args));
|
|
744
715
|
|
|
745
|
-
_defineProperty(_assertThisInitialized(
|
|
716
|
+
_defineProperty(_assertThisInitialized(_this5), "serviceName", 'authorization');
|
|
746
717
|
|
|
747
|
-
return
|
|
718
|
+
return _this5;
|
|
748
719
|
}
|
|
749
720
|
|
|
750
721
|
_createClass(ShopAuthorization, [{
|
|
@@ -756,41 +727,41 @@ var ShopAuthorization = /*#__PURE__*/function (_BaseCallClass4) {
|
|
|
756
727
|
|
|
757
728
|
return ShopAuthorization;
|
|
758
729
|
}(BaseCallClass);
|
|
759
|
-
var ShopUtils = /*#__PURE__*/function (
|
|
760
|
-
_inherits(ShopUtils,
|
|
730
|
+
var ShopUtils = /*#__PURE__*/function (_BaseCallClass6) {
|
|
731
|
+
_inherits(ShopUtils, _BaseCallClass6);
|
|
761
732
|
|
|
762
|
-
var
|
|
733
|
+
var _super6 = _createSuper(ShopUtils);
|
|
763
734
|
|
|
764
735
|
function ShopUtils(call) {
|
|
765
|
-
var
|
|
736
|
+
var _this6;
|
|
766
737
|
|
|
767
738
|
_classCallCheck(this, ShopUtils);
|
|
768
739
|
|
|
769
|
-
|
|
740
|
+
_this6 = _super6.call(this, call);
|
|
770
741
|
|
|
771
|
-
_defineProperty(_assertThisInitialized(
|
|
742
|
+
_defineProperty(_assertThisInitialized(_this6), "serviceName", 'utils');
|
|
772
743
|
|
|
773
|
-
_defineProperty(_assertThisInitialized(
|
|
744
|
+
_defineProperty(_assertThisInitialized(_this6), "currency", void 0);
|
|
774
745
|
|
|
775
|
-
_defineProperty(_assertThisInitialized(
|
|
746
|
+
_defineProperty(_assertThisInitialized(_this6), "isAnonymousAndPurchaseDisabled", void 0);
|
|
776
747
|
|
|
777
|
-
_defineProperty(_assertThisInitialized(
|
|
748
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2B", void 0);
|
|
778
749
|
|
|
779
|
-
_defineProperty(_assertThisInitialized(
|
|
750
|
+
_defineProperty(_assertThisInitialized(_this6), "isB2BAndPlatformIsNotOpened", void 0);
|
|
780
751
|
|
|
781
|
-
_defineProperty(_assertThisInitialized(
|
|
752
|
+
_defineProperty(_assertThisInitialized(_this6), "isIndexPage", void 0);
|
|
782
753
|
|
|
783
|
-
_defineProperty(_assertThisInitialized(
|
|
754
|
+
_defineProperty(_assertThisInitialized(_this6), "isPurchaseEnabledOrAuthenticated", void 0);
|
|
784
755
|
|
|
785
|
-
_defineProperty(_assertThisInitialized(
|
|
756
|
+
_defineProperty(_assertThisInitialized(_this6), "routes", void 0);
|
|
786
757
|
|
|
787
|
-
|
|
788
|
-
getCategoryPath:
|
|
789
|
-
getManufacturerSearchUrl:
|
|
790
|
-
getProductUrl:
|
|
791
|
-
isExternalUrl:
|
|
758
|
+
_this6.routes = {
|
|
759
|
+
getCategoryPath: _this6.getCategoryPath,
|
|
760
|
+
getManufacturerSearchUrl: _this6.getManufacturerSearchUrl,
|
|
761
|
+
getProductUrl: _this6.getProductUrl,
|
|
762
|
+
isExternalUrl: _this6.isExternalUrl
|
|
792
763
|
};
|
|
793
|
-
return
|
|
764
|
+
return _this6;
|
|
794
765
|
}
|
|
795
766
|
|
|
796
767
|
_createClass(ShopUtils, [{
|
|
@@ -817,43 +788,43 @@ var ShopUtils = /*#__PURE__*/function (_BaseCallClass5) {
|
|
|
817
788
|
|
|
818
789
|
return ShopUtils;
|
|
819
790
|
}(BaseCallClass);
|
|
820
|
-
var ShopConfig = /*#__PURE__*/function (
|
|
821
|
-
_inherits(ShopConfig,
|
|
791
|
+
var ShopConfig = /*#__PURE__*/function (_BaseCallClass7) {
|
|
792
|
+
_inherits(ShopConfig, _BaseCallClass7);
|
|
822
793
|
|
|
823
|
-
var
|
|
794
|
+
var _super7 = _createSuper(ShopConfig);
|
|
824
795
|
|
|
825
796
|
function ShopConfig() {
|
|
826
|
-
var
|
|
797
|
+
var _this7;
|
|
827
798
|
|
|
828
799
|
_classCallCheck(this, ShopConfig);
|
|
829
800
|
|
|
830
|
-
for (var
|
|
831
|
-
args[
|
|
801
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
802
|
+
args[_key6] = arguments[_key6];
|
|
832
803
|
}
|
|
833
804
|
|
|
834
|
-
|
|
805
|
+
_this7 = _super7.call.apply(_super7, [this].concat(args));
|
|
835
806
|
|
|
836
|
-
_defineProperty(_assertThisInitialized(
|
|
807
|
+
_defineProperty(_assertThisInitialized(_this7), "serviceName", 'config');
|
|
837
808
|
|
|
838
|
-
_defineProperty(_assertThisInitialized(
|
|
809
|
+
_defineProperty(_assertThisInitialized(_this7), "accessMode", void 0);
|
|
839
810
|
|
|
840
|
-
_defineProperty(_assertThisInitialized(
|
|
811
|
+
_defineProperty(_assertThisInitialized(_this7), "isB2CRegistrationEnabled", void 0);
|
|
841
812
|
|
|
842
|
-
_defineProperty(_assertThisInitialized(
|
|
813
|
+
_defineProperty(_assertThisInitialized(_this7), "isCatalogOpened", void 0);
|
|
843
814
|
|
|
844
|
-
_defineProperty(_assertThisInitialized(
|
|
815
|
+
_defineProperty(_assertThisInitialized(_this7), "isGrossSelected", void 0);
|
|
845
816
|
|
|
846
|
-
_defineProperty(_assertThisInitialized(
|
|
817
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformClosed", void 0);
|
|
847
818
|
|
|
848
|
-
_defineProperty(_assertThisInitialized(
|
|
819
|
+
_defineProperty(_assertThisInitialized(_this7), "isPlatformOpened", void 0);
|
|
849
820
|
|
|
850
|
-
_defineProperty(_assertThisInitialized(
|
|
821
|
+
_defineProperty(_assertThisInitialized(_this7), "isPurchaseEnabled", void 0);
|
|
851
822
|
|
|
852
|
-
_defineProperty(_assertThisInitialized(
|
|
823
|
+
_defineProperty(_assertThisInitialized(_this7), "isRegistrationEnabled", void 0);
|
|
853
824
|
|
|
854
|
-
_defineProperty(_assertThisInitialized(
|
|
825
|
+
_defineProperty(_assertThisInitialized(_this7), "currency", void 0);
|
|
855
826
|
|
|
856
|
-
return
|
|
827
|
+
return _this7;
|
|
857
828
|
}
|
|
858
829
|
|
|
859
830
|
return _createClass(ShopConfig);
|
|
@@ -1040,11 +1011,15 @@ var Sdk = /*#__PURE__*/function (_Events) {
|
|
|
1040
1011
|
method: fun,
|
|
1041
1012
|
payload: payload
|
|
1042
1013
|
});
|
|
1043
|
-
return new Promise(function (resolve) {
|
|
1014
|
+
return new Promise(function (resolve, reject) {
|
|
1044
1015
|
var onChannelMessage = function onChannelMessage(response) {
|
|
1045
1016
|
if (response.callId === callId) {
|
|
1046
1017
|
_this4.channel.unsubscribe(main.Message.METHOD_RESULT, onChannelMessage);
|
|
1047
1018
|
|
|
1019
|
+
if (response.isException) {
|
|
1020
|
+
return reject(response.result);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1048
1023
|
return resolve(response.result);
|
|
1049
1024
|
}
|
|
1050
1025
|
};
|
|
@@ -1111,15 +1086,13 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
|
|
|
1111
1086
|
hash: '',
|
|
1112
1087
|
query: {}
|
|
1113
1088
|
},
|
|
1114
|
-
orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1115
1089
|
catalog: new BackofficeCatalog(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1116
1090
|
user: new BackofficeUser(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1117
1091
|
tenant: new BackofficeTenant(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1118
1092
|
layout: new BackofficeLayout(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1119
1093
|
authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1120
1094
|
customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1121
|
-
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5)))
|
|
1122
|
-
addToCartContext: new BackofficeAddToCartContext(_this5.callFunction.bind(_assertThisInitialized(_this5)))
|
|
1095
|
+
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5)))
|
|
1123
1096
|
});
|
|
1124
1097
|
|
|
1125
1098
|
return _this5;
|
|
@@ -1153,7 +1126,8 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1153
1126
|
catalog: new ShopCatalog(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1154
1127
|
account: new ShopAccount(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1155
1128
|
utils: new ShopUtils(_this6.callFunction.bind(_assertThisInitialized(_this6))),
|
|
1156
|
-
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)))
|
|
1157
1131
|
});
|
|
1158
1132
|
|
|
1159
1133
|
return _this6;
|