@one-commerce/sdk-backoffice-vue3 1.19.3-alpha.0 → 1.19.4
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 +11 -12
- 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 +11 -12
- 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/index.js +0 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -223,14 +223,6 @@ class BackofficeTenant extends BaseCallClass {
|
|
|
223
223
|
_defineProperty$2(this, "currency", void 0);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
}
|
|
227
|
-
class BackofficeOrderpath extends BaseCallClass {
|
|
228
|
-
constructor(...args) {
|
|
229
|
-
super(...args);
|
|
230
|
-
|
|
231
|
-
_defineProperty$2(this, "serviceName", 'orderpath');
|
|
232
|
-
}
|
|
233
|
-
|
|
234
226
|
}
|
|
235
227
|
class BackofficeLayout extends BaseCallClass {
|
|
236
228
|
constructor(...args) {
|
|
@@ -338,7 +330,11 @@ class Sdk extends Events {
|
|
|
338
330
|
}
|
|
339
331
|
|
|
340
332
|
initializeContextClass() {
|
|
341
|
-
|
|
333
|
+
if (this.contextClass) {
|
|
334
|
+
return new this.contextClass(this.callFunction.bind(this));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return {};
|
|
342
338
|
}
|
|
343
339
|
|
|
344
340
|
initializeServiceGetters() {
|
|
@@ -471,10 +467,15 @@ class Sdk extends Events {
|
|
|
471
467
|
method: fun,
|
|
472
468
|
payload: payload
|
|
473
469
|
});
|
|
474
|
-
return new Promise(resolve => {
|
|
470
|
+
return new Promise((resolve, reject) => {
|
|
475
471
|
const onChannelMessage = response => {
|
|
476
472
|
if (response.callId === callId) {
|
|
477
473
|
this.channel.unsubscribe(main.Message.METHOD_RESULT, onChannelMessage);
|
|
474
|
+
|
|
475
|
+
if (response !== null && response !== void 0 && response.isException) {
|
|
476
|
+
return reject(response.result);
|
|
477
|
+
}
|
|
478
|
+
|
|
478
479
|
return resolve(response.result);
|
|
479
480
|
}
|
|
480
481
|
};
|
|
@@ -504,7 +505,6 @@ class BackofficeSdk extends Sdk {
|
|
|
504
505
|
hash: '',
|
|
505
506
|
query: {}
|
|
506
507
|
},
|
|
507
|
-
orderpath: new BackofficeOrderpath(this.callFunction.bind(this)),
|
|
508
508
|
catalog: new BackofficeCatalog(this.callFunction.bind(this)),
|
|
509
509
|
user: new BackofficeUser(this.callFunction.bind(this)),
|
|
510
510
|
tenant: new BackofficeTenant(this.callFunction.bind(this)),
|
|
@@ -549,7 +549,6 @@ var index = {
|
|
|
549
549
|
obj.tenant.update(payload);
|
|
550
550
|
obj.layout.update(payload);
|
|
551
551
|
obj.catalog.update(payload);
|
|
552
|
-
obj.orderpath.update(payload);
|
|
553
552
|
obj.authorization.update(payload);
|
|
554
553
|
obj.customer.update(payload);
|
|
555
554
|
obj.plugin.update(payload);
|