@one-commerce/sdk-core 2.2.3 → 2.3.2
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 +60 -17
- 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 +60 -16
- 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 +63 -17
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/index.js +6 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/backoffice/context.js +24 -0
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/types/backoffice/context.d.ts +33 -0
- package/lib/types/backoffice/context.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -373,15 +373,15 @@ var AddToCartContext$1 = /*#__PURE__*/function (_ContextCallClass) {
|
|
|
373
373
|
|
|
374
374
|
return AddToCartContext;
|
|
375
375
|
}(ContextCallClass);
|
|
376
|
-
var
|
|
377
|
-
_inherits(
|
|
376
|
+
var DocumentsContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
377
|
+
_inherits(DocumentsContext, _ContextCallClass2);
|
|
378
378
|
|
|
379
|
-
var _super2 = _createSuper(
|
|
379
|
+
var _super2 = _createSuper(DocumentsContext);
|
|
380
380
|
|
|
381
|
-
function
|
|
381
|
+
function DocumentsContext() {
|
|
382
382
|
var _this2;
|
|
383
383
|
|
|
384
|
-
_classCallCheck(this,
|
|
384
|
+
_classCallCheck(this, DocumentsContext);
|
|
385
385
|
|
|
386
386
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
387
387
|
args[_key2] = arguments[_key2];
|
|
@@ -389,27 +389,70 @@ var EditProductLinesOnCartContext$1 = /*#__PURE__*/function (_ContextCallClass2)
|
|
|
389
389
|
|
|
390
390
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
391
391
|
|
|
392
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
393
|
-
|
|
394
|
-
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
392
|
+
_defineProperty(_assertThisInitialized(_this2), "orderDetails", void 0);
|
|
395
393
|
|
|
396
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
394
|
+
_defineProperty(_assertThisInitialized(_this2), "invoiceDetails", void 0);
|
|
397
395
|
|
|
398
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
396
|
+
_defineProperty(_assertThisInitialized(_this2), "selectedInvoices", void 0);
|
|
399
397
|
|
|
400
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
398
|
+
_defineProperty(_assertThisInitialized(_this2), "clientContextId", void 0);
|
|
401
399
|
|
|
402
400
|
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
403
401
|
|
|
404
|
-
|
|
402
|
+
return _this2;
|
|
403
|
+
}
|
|
405
404
|
|
|
406
|
-
|
|
405
|
+
_createClass(DocumentsContext, [{
|
|
406
|
+
key: "closePlugin",
|
|
407
|
+
value: function closePlugin() {
|
|
408
|
+
return this.call('closePlugin');
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
key: "closePluginAndRefreshView",
|
|
412
|
+
value: function closePluginAndRefreshView() {
|
|
413
|
+
return this.call('closePluginAndRefreshView');
|
|
414
|
+
}
|
|
415
|
+
}]);
|
|
407
416
|
|
|
408
|
-
|
|
417
|
+
return DocumentsContext;
|
|
418
|
+
}(ContextCallClass);
|
|
419
|
+
var EditProductLinesOnCartContext$1 = /*#__PURE__*/function (_ContextCallClass3) {
|
|
420
|
+
_inherits(EditProductLinesOnCartContext, _ContextCallClass3);
|
|
409
421
|
|
|
410
|
-
|
|
422
|
+
var _super3 = _createSuper(EditProductLinesOnCartContext);
|
|
411
423
|
|
|
412
|
-
|
|
424
|
+
function EditProductLinesOnCartContext() {
|
|
425
|
+
var _this3;
|
|
426
|
+
|
|
427
|
+
_classCallCheck(this, EditProductLinesOnCartContext);
|
|
428
|
+
|
|
429
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
430
|
+
args[_key3] = arguments[_key3];
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
_this3 = _super3.call.apply(_super3, [this].concat(args));
|
|
434
|
+
|
|
435
|
+
_defineProperty(_assertThisInitialized(_this3), "productId", void 0);
|
|
436
|
+
|
|
437
|
+
_defineProperty(_assertThisInitialized(_this3), "cartId", void 0);
|
|
438
|
+
|
|
439
|
+
_defineProperty(_assertThisInitialized(_this3), "offerId", void 0);
|
|
440
|
+
|
|
441
|
+
_defineProperty(_assertThisInitialized(_this3), "warehouses", void 0);
|
|
442
|
+
|
|
443
|
+
_defineProperty(_assertThisInitialized(_this3), "warehouseId", void 0);
|
|
444
|
+
|
|
445
|
+
_defineProperty(_assertThisInitialized(_this3), "meta", void 0);
|
|
446
|
+
|
|
447
|
+
_defineProperty(_assertThisInitialized(_this3), "productLineId", void 0);
|
|
448
|
+
|
|
449
|
+
_defineProperty(_assertThisInitialized(_this3), "productLines", void 0);
|
|
450
|
+
|
|
451
|
+
_defineProperty(_assertThisInitialized(_this3), "pluginProductLines", void 0);
|
|
452
|
+
|
|
453
|
+
_defineProperty(_assertThisInitialized(_this3), "productAmount", void 0);
|
|
454
|
+
|
|
455
|
+
return _this3;
|
|
413
456
|
}
|
|
414
457
|
|
|
415
458
|
_createClass(EditProductLinesOnCartContext, [{
|
|
@@ -1528,5 +1571,5 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1528
1571
|
return _createClass(ShopSdk);
|
|
1529
1572
|
}(Sdk);
|
|
1530
1573
|
|
|
1531
|
-
export { AddToCartContext$1 as BackofficeAddToCartContext, EditProductLinesOnCartContext$1 as BackofficeEditProductLinesOnCartContext, BackofficeSdk, SdkEvents, AddToCartContext as ShopAddToCartContext, EditProductLinesOnCartContext as ShopEditProductLinesOnCartContext, ShopSdk };
|
|
1574
|
+
export { AddToCartContext$1 as BackofficeAddToCartContext, DocumentsContext as BackofficeDocumentsContext, EditProductLinesOnCartContext$1 as BackofficeEditProductLinesOnCartContext, BackofficeSdk, SdkEvents, AddToCartContext as ShopAddToCartContext, EditProductLinesOnCartContext as ShopEditProductLinesOnCartContext, ShopSdk };
|
|
1532
1575
|
//# sourceMappingURL=bundle.esm.js.map
|