@one-commerce/sdk-core 1.19.1-alpha.0 → 1.19.2-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 +34 -23
- 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 +34 -23
- 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 +35 -15
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/esm/backoffice/context.js +10 -3
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/types/backoffice/context.d.ts +5 -2
- package/lib/types/backoffice/context.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -213,18 +213,7 @@ exports.Errors = exports.Message = void 0;
|
|
|
213
213
|
|
|
214
214
|
var api = {};
|
|
215
215
|
|
|
216
|
-
(
|
|
217
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
-
exports.Backoffice = void 0;
|
|
219
|
-
(function (Backoffice) {
|
|
220
|
-
(function (Context) {
|
|
221
|
-
(function (AvailableContext) {
|
|
222
|
-
AvailableContext["ADD_TO_CART"] = "backofficeAddToCart";
|
|
223
|
-
})(Context.AvailableContext || (Context.AvailableContext = {}));
|
|
224
|
-
})(Backoffice.Context || (Backoffice.Context = {}));
|
|
225
|
-
})(exports.Backoffice || (exports.Backoffice = {}));
|
|
226
|
-
|
|
227
|
-
}(api));
|
|
216
|
+
Object.defineProperty(api, "__esModule", { value: true });
|
|
228
217
|
|
|
229
218
|
(function (exports) {
|
|
230
219
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -301,15 +290,15 @@ var BaseCallClass = /*#__PURE__*/function () {
|
|
|
301
290
|
return BaseCallClass;
|
|
302
291
|
}();
|
|
303
292
|
|
|
304
|
-
var
|
|
305
|
-
_inherits(
|
|
293
|
+
var ContextCallClass = /*#__PURE__*/function (_BaseCallClass) {
|
|
294
|
+
_inherits(ContextCallClass, _BaseCallClass);
|
|
306
295
|
|
|
307
|
-
var _super = _createSuper(
|
|
296
|
+
var _super = _createSuper(ContextCallClass);
|
|
308
297
|
|
|
309
|
-
function
|
|
298
|
+
function ContextCallClass() {
|
|
310
299
|
var _this;
|
|
311
300
|
|
|
312
|
-
_classCallCheck(this,
|
|
301
|
+
_classCallCheck(this, ContextCallClass);
|
|
313
302
|
|
|
314
303
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
315
304
|
args[_key] = arguments[_key];
|
|
@@ -317,15 +306,37 @@ var AddToCartContext = /*#__PURE__*/function (_BaseCallClass) {
|
|
|
317
306
|
|
|
318
307
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
319
308
|
|
|
320
|
-
_defineProperty(_assertThisInitialized(_this), "serviceName",
|
|
309
|
+
_defineProperty(_assertThisInitialized(_this), "serviceName", 'context');
|
|
321
310
|
|
|
322
|
-
|
|
311
|
+
return _this;
|
|
312
|
+
}
|
|
323
313
|
|
|
324
|
-
|
|
314
|
+
return _createClass(ContextCallClass);
|
|
315
|
+
}(BaseCallClass);
|
|
325
316
|
|
|
326
|
-
|
|
317
|
+
var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
|
|
318
|
+
_inherits(AddToCartContext, _ContextCallClass);
|
|
327
319
|
|
|
328
|
-
|
|
320
|
+
var _super2 = _createSuper(AddToCartContext);
|
|
321
|
+
|
|
322
|
+
function AddToCartContext() {
|
|
323
|
+
var _this2;
|
|
324
|
+
|
|
325
|
+
_classCallCheck(this, AddToCartContext);
|
|
326
|
+
|
|
327
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
328
|
+
args[_key2] = arguments[_key2];
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
332
|
+
|
|
333
|
+
_defineProperty(_assertThisInitialized(_this2), "productId", void 0);
|
|
334
|
+
|
|
335
|
+
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
336
|
+
|
|
337
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
|
|
338
|
+
|
|
339
|
+
return _this2;
|
|
329
340
|
}
|
|
330
341
|
|
|
331
342
|
_createClass(AddToCartContext, [{
|
|
@@ -346,7 +357,7 @@ var AddToCartContext = /*#__PURE__*/function (_BaseCallClass) {
|
|
|
346
357
|
}]);
|
|
347
358
|
|
|
348
359
|
return AddToCartContext;
|
|
349
|
-
}(
|
|
360
|
+
}(ContextCallClass);
|
|
350
361
|
|
|
351
362
|
var BackofficeCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
352
363
|
_inherits(BackofficeCatalog, _BaseCallClass);
|