@one-commerce/sdk-core 1.19.8 → 1.21.0-UNITYONE-12325.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 -3
- 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 -3
- 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 +59 -3
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/backoffice/services.js +41 -3
- package/lib/cjs/backoffice/services.js.map +1 -1
- package/lib/cjs/events.js.map +1 -1
- package/lib/cjs/index.js +3 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/services.js +2 -2
- package/lib/cjs/shop/services.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/backoffice/context.js +34 -0
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/backoffice/services.js +16 -0
- package/lib/esm/backoffice/services.js.map +1 -1
- package/lib/esm/events.js.map +1 -1
- package/lib/esm/index.js +2 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shop/services.js.map +1 -1
- package/lib/esm/utils.js.map +1 -1
- package/lib/types/backoffice/context.d.ts +16 -2
- package/lib/types/backoffice/context.d.ts.map +1 -1
- package/lib/types/backoffice/services.d.ts +5 -0
- package/lib/types/backoffice/services.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 +7 -6
|
@@ -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
|
|
|
@@ -217,7 +218,11 @@ Object.defineProperty(api, "__esModule", { value: true });
|
|
|
217
218
|
(function (exports) {
|
|
218
219
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
219
220
|
if (k2 === undefined) k2 = k;
|
|
220
|
-
Object.
|
|
221
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
222
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
223
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
224
|
+
}
|
|
225
|
+
Object.defineProperty(o, k2, desc);
|
|
221
226
|
}) : (function(o, m, k, k2) {
|
|
222
227
|
if (k2 === undefined) k2 = k;
|
|
223
228
|
o[k2] = m[k];
|
|
@@ -333,8 +338,12 @@ var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
|
|
|
333
338
|
|
|
334
339
|
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
335
340
|
|
|
341
|
+
_defineProperty(_assertThisInitialized(_this2), "offerId", void 0);
|
|
342
|
+
|
|
336
343
|
_defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
|
|
337
344
|
|
|
345
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouseId", void 0);
|
|
346
|
+
|
|
338
347
|
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
339
348
|
|
|
340
349
|
return _this2;
|
|
@@ -566,6 +575,41 @@ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
|
|
|
566
575
|
|
|
567
576
|
return _createClass(BackofficePlugin);
|
|
568
577
|
}(BaseCallClass);
|
|
578
|
+
var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass8) {
|
|
579
|
+
_inherits(BackofficeOrderpath, _BaseCallClass8);
|
|
580
|
+
|
|
581
|
+
var _super8 = _createSuper(BackofficeOrderpath);
|
|
582
|
+
|
|
583
|
+
function BackofficeOrderpath() {
|
|
584
|
+
var _this8;
|
|
585
|
+
|
|
586
|
+
_classCallCheck(this, BackofficeOrderpath);
|
|
587
|
+
|
|
588
|
+
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
589
|
+
args[_key8] = arguments[_key8];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
_this8 = _super8.call.apply(_super8, [this].concat(args));
|
|
593
|
+
|
|
594
|
+
_defineProperty(_assertThisInitialized(_this8), "serviceName", 'orderpath');
|
|
595
|
+
|
|
596
|
+
return _this8;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
_createClass(BackofficeOrderpath, [{
|
|
600
|
+
key: "fetchCart",
|
|
601
|
+
value: function fetchCart(id) {
|
|
602
|
+
return this.call('fetchCart', id);
|
|
603
|
+
}
|
|
604
|
+
}, {
|
|
605
|
+
key: "fetchOffer",
|
|
606
|
+
value: function fetchOffer(id) {
|
|
607
|
+
return this.call('fetchOffer', id);
|
|
608
|
+
}
|
|
609
|
+
}]);
|
|
610
|
+
|
|
611
|
+
return BackofficeOrderpath;
|
|
612
|
+
}(BaseCallClass);
|
|
569
613
|
|
|
570
614
|
var Events = /*#__PURE__*/function () {
|
|
571
615
|
function Events() {
|
|
@@ -1175,6 +1219,7 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
|
|
|
1175
1219
|
authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1176
1220
|
customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1177
1221
|
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1222
|
+
orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1178
1223
|
context: _this5.initializeContextClass()
|
|
1179
1224
|
});
|
|
1180
1225
|
|