@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
|
@@ -379,15 +379,15 @@
|
|
|
379
379
|
|
|
380
380
|
return AddToCartContext;
|
|
381
381
|
}(ContextCallClass);
|
|
382
|
-
var
|
|
383
|
-
_inherits(
|
|
382
|
+
var DocumentsContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
383
|
+
_inherits(DocumentsContext, _ContextCallClass2);
|
|
384
384
|
|
|
385
|
-
var _super2 = _createSuper(
|
|
385
|
+
var _super2 = _createSuper(DocumentsContext);
|
|
386
386
|
|
|
387
|
-
function
|
|
387
|
+
function DocumentsContext() {
|
|
388
388
|
var _this2;
|
|
389
389
|
|
|
390
|
-
_classCallCheck(this,
|
|
390
|
+
_classCallCheck(this, DocumentsContext);
|
|
391
391
|
|
|
392
392
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
393
393
|
args[_key2] = arguments[_key2];
|
|
@@ -395,27 +395,70 @@
|
|
|
395
395
|
|
|
396
396
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
397
397
|
|
|
398
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
399
|
-
|
|
400
|
-
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
398
|
+
_defineProperty(_assertThisInitialized(_this2), "orderDetails", void 0);
|
|
401
399
|
|
|
402
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
400
|
+
_defineProperty(_assertThisInitialized(_this2), "invoiceDetails", void 0);
|
|
403
401
|
|
|
404
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
402
|
+
_defineProperty(_assertThisInitialized(_this2), "selectedInvoices", void 0);
|
|
405
403
|
|
|
406
|
-
_defineProperty(_assertThisInitialized(_this2), "
|
|
404
|
+
_defineProperty(_assertThisInitialized(_this2), "clientContextId", void 0);
|
|
407
405
|
|
|
408
406
|
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
409
407
|
|
|
410
|
-
|
|
408
|
+
return _this2;
|
|
409
|
+
}
|
|
411
410
|
|
|
412
|
-
|
|
411
|
+
_createClass(DocumentsContext, [{
|
|
412
|
+
key: "closePlugin",
|
|
413
|
+
value: function closePlugin() {
|
|
414
|
+
return this.call('closePlugin');
|
|
415
|
+
}
|
|
416
|
+
}, {
|
|
417
|
+
key: "closePluginAndRefreshView",
|
|
418
|
+
value: function closePluginAndRefreshView() {
|
|
419
|
+
return this.call('closePluginAndRefreshView');
|
|
420
|
+
}
|
|
421
|
+
}]);
|
|
413
422
|
|
|
414
|
-
|
|
423
|
+
return DocumentsContext;
|
|
424
|
+
}(ContextCallClass);
|
|
425
|
+
var EditProductLinesOnCartContext$1 = /*#__PURE__*/function (_ContextCallClass3) {
|
|
426
|
+
_inherits(EditProductLinesOnCartContext, _ContextCallClass3);
|
|
415
427
|
|
|
416
|
-
|
|
428
|
+
var _super3 = _createSuper(EditProductLinesOnCartContext);
|
|
417
429
|
|
|
418
|
-
|
|
430
|
+
function EditProductLinesOnCartContext() {
|
|
431
|
+
var _this3;
|
|
432
|
+
|
|
433
|
+
_classCallCheck(this, EditProductLinesOnCartContext);
|
|
434
|
+
|
|
435
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
436
|
+
args[_key3] = arguments[_key3];
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
_this3 = _super3.call.apply(_super3, [this].concat(args));
|
|
440
|
+
|
|
441
|
+
_defineProperty(_assertThisInitialized(_this3), "productId", void 0);
|
|
442
|
+
|
|
443
|
+
_defineProperty(_assertThisInitialized(_this3), "cartId", void 0);
|
|
444
|
+
|
|
445
|
+
_defineProperty(_assertThisInitialized(_this3), "offerId", void 0);
|
|
446
|
+
|
|
447
|
+
_defineProperty(_assertThisInitialized(_this3), "warehouses", void 0);
|
|
448
|
+
|
|
449
|
+
_defineProperty(_assertThisInitialized(_this3), "warehouseId", void 0);
|
|
450
|
+
|
|
451
|
+
_defineProperty(_assertThisInitialized(_this3), "meta", void 0);
|
|
452
|
+
|
|
453
|
+
_defineProperty(_assertThisInitialized(_this3), "productLineId", void 0);
|
|
454
|
+
|
|
455
|
+
_defineProperty(_assertThisInitialized(_this3), "productLines", void 0);
|
|
456
|
+
|
|
457
|
+
_defineProperty(_assertThisInitialized(_this3), "pluginProductLines", void 0);
|
|
458
|
+
|
|
459
|
+
_defineProperty(_assertThisInitialized(_this3), "productAmount", void 0);
|
|
460
|
+
|
|
461
|
+
return _this3;
|
|
419
462
|
}
|
|
420
463
|
|
|
421
464
|
_createClass(EditProductLinesOnCartContext, [{
|
|
@@ -1535,6 +1578,7 @@
|
|
|
1535
1578
|
}(Sdk);
|
|
1536
1579
|
|
|
1537
1580
|
exports.BackofficeAddToCartContext = AddToCartContext$1;
|
|
1581
|
+
exports.BackofficeDocumentsContext = DocumentsContext;
|
|
1538
1582
|
exports.BackofficeEditProductLinesOnCartContext = EditProductLinesOnCartContext$1;
|
|
1539
1583
|
exports.BackofficeSdk = BackofficeSdk;
|
|
1540
1584
|
exports.ShopAddToCartContext = AddToCartContext;
|