@one-commerce/sdk-core 1.17.1 → 1.18.0-alpha.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 +48 -1
- 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 +48 -1
- 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 +50 -1
- package/lib/cjs/backofficeServices.js.map +1 -1
- package/lib/cjs/index.js +2 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/backofficeServices.js +26 -0
- package/lib/esm/backofficeServices.js.map +1 -1
- package/lib/esm/index.js +3 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/types/backofficeServices.d.ts +9 -0
- package/lib/types/backofficeServices.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -519,6 +519,52 @@ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass8) {
|
|
|
519
519
|
|
|
520
520
|
return _createClass(BackofficePlugin);
|
|
521
521
|
}(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);
|
|
522
568
|
|
|
523
569
|
var Events = /*#__PURE__*/function () {
|
|
524
570
|
function Events() {
|
|
@@ -1072,7 +1118,8 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
|
|
|
1072
1118
|
layout: new BackofficeLayout(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1073
1119
|
authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1074
1120
|
customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1075
|
-
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5)))
|
|
1121
|
+
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1122
|
+
addToCartContext: new BackofficeAddToCartContext(_this5.callFunction.bind(_assertThisInitialized(_this5)))
|
|
1076
1123
|
});
|
|
1077
1124
|
|
|
1078
1125
|
return _this5;
|