@one-commerce/sdk-core 1.19.8 → 1.22.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 +52 -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 +52 -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 +65 -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 +40 -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 +19 -2
- package/lib/types/backoffice/context.d.ts.map +1 -1
- package/lib/types/backoffice/services.d.ts +10 -1
- 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,10 +338,18 @@ 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
|
|
|
349
|
+
_defineProperty(_assertThisInitialized(_this2), "pluginProductLines", void 0);
|
|
350
|
+
|
|
351
|
+
_defineProperty(_assertThisInitialized(_this2), "productLines", void 0);
|
|
352
|
+
|
|
340
353
|
return _this2;
|
|
341
354
|
}
|
|
342
355
|
|
|
@@ -566,6 +579,41 @@ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
|
|
|
566
579
|
|
|
567
580
|
return _createClass(BackofficePlugin);
|
|
568
581
|
}(BaseCallClass);
|
|
582
|
+
var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass8) {
|
|
583
|
+
_inherits(BackofficeOrderpath, _BaseCallClass8);
|
|
584
|
+
|
|
585
|
+
var _super8 = _createSuper(BackofficeOrderpath);
|
|
586
|
+
|
|
587
|
+
function BackofficeOrderpath() {
|
|
588
|
+
var _this8;
|
|
589
|
+
|
|
590
|
+
_classCallCheck(this, BackofficeOrderpath);
|
|
591
|
+
|
|
592
|
+
for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
|
|
593
|
+
args[_key8] = arguments[_key8];
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
_this8 = _super8.call.apply(_super8, [this].concat(args));
|
|
597
|
+
|
|
598
|
+
_defineProperty(_assertThisInitialized(_this8), "serviceName", 'orderpath');
|
|
599
|
+
|
|
600
|
+
return _this8;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
_createClass(BackofficeOrderpath, [{
|
|
604
|
+
key: "fetchCart",
|
|
605
|
+
value: function fetchCart(id) {
|
|
606
|
+
return this.call('fetchCart', id);
|
|
607
|
+
}
|
|
608
|
+
}, {
|
|
609
|
+
key: "fetchOffer",
|
|
610
|
+
value: function fetchOffer(id) {
|
|
611
|
+
return this.call('fetchOffer', id);
|
|
612
|
+
}
|
|
613
|
+
}]);
|
|
614
|
+
|
|
615
|
+
return BackofficeOrderpath;
|
|
616
|
+
}(BaseCallClass);
|
|
569
617
|
|
|
570
618
|
var Events = /*#__PURE__*/function () {
|
|
571
619
|
function Events() {
|
|
@@ -1175,6 +1223,7 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
|
|
|
1175
1223
|
authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1176
1224
|
customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1177
1225
|
plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1226
|
+
orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
|
|
1178
1227
|
context: _this5.initializeContextClass()
|
|
1179
1228
|
});
|
|
1180
1229
|
|