@one-commerce/sdk-backoffice-vue3 1.17.1 → 1.18.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.
@@ -185,14 +185,6 @@ class BackofficeTenant extends BaseCallClass {
185
185
  _defineProperty$2(this, "currency", void 0);
186
186
  }
187
187
 
188
- }
189
- class BackofficeOrderpath extends BaseCallClass {
190
- constructor(...args) {
191
- super(...args);
192
-
193
- _defineProperty$2(this, "serviceName", 'orderpath');
194
- }
195
-
196
188
  }
197
189
  class BackofficeLayout extends BaseCallClass {
198
190
  constructor(...args) {
@@ -425,10 +417,15 @@ class Sdk extends Events {
425
417
  method: fun,
426
418
  payload: payload
427
419
  });
428
- return new Promise(resolve => {
420
+ return new Promise((resolve, reject) => {
429
421
  const onChannelMessage = response => {
430
422
  if (response.callId === callId) {
431
423
  this.channel.unsubscribe(main.Message.METHOD_RESULT, onChannelMessage);
424
+
425
+ if (response.isException) {
426
+ return reject(response.result);
427
+ }
428
+
432
429
  return resolve(response.result);
433
430
  }
434
431
  };
@@ -458,7 +455,6 @@ class BackofficeSdk extends Sdk {
458
455
  hash: '',
459
456
  query: {}
460
457
  },
461
- orderpath: new BackofficeOrderpath(this.callFunction.bind(this)),
462
458
  catalog: new BackofficeCatalog(this.callFunction.bind(this)),
463
459
  user: new BackofficeUser(this.callFunction.bind(this)),
464
460
  tenant: new BackofficeTenant(this.callFunction.bind(this)),
@@ -502,7 +498,6 @@ var index = {
502
498
  obj.tenant.update(payload);
503
499
  obj.layout.update(payload);
504
500
  obj.catalog.update(payload);
505
- obj.orderpath.update(payload);
506
501
  obj.authorization.update(payload);
507
502
  obj.customer.update(payload);
508
503
  obj.plugin.update(payload);