@one-commerce/sdk-backoffice-vue3 1.12.1-alpha.0 → 1.15.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 +29 -1
- 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 +29 -1
- 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 +2 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -203,6 +203,30 @@ class BackofficeLayout extends BaseCallClass {
|
|
|
203
203
|
_defineProperty$2(this, "isAsideOpened", void 0);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
}
|
|
207
|
+
class BackofficeAuthorization extends BaseCallClass {
|
|
208
|
+
constructor(...args) {
|
|
209
|
+
super(...args);
|
|
210
|
+
|
|
211
|
+
_defineProperty$2(this, "serviceName", 'authorization');
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
getAuthToken() {
|
|
215
|
+
return this.call('getAuthToken');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
}
|
|
219
|
+
class BackofficeCustomer extends BaseCallClass {
|
|
220
|
+
constructor(...args) {
|
|
221
|
+
super(...args);
|
|
222
|
+
|
|
223
|
+
_defineProperty$2(this, "serviceName", 'customer');
|
|
224
|
+
|
|
225
|
+
_defineProperty$2(this, "id", void 0);
|
|
226
|
+
|
|
227
|
+
_defineProperty$2(this, "name", void 0);
|
|
228
|
+
}
|
|
229
|
+
|
|
206
230
|
}
|
|
207
231
|
|
|
208
232
|
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -424,7 +448,9 @@ class BackofficeSdk extends Sdk {
|
|
|
424
448
|
catalog: new BackofficeCatalog(this.callFunction.bind(this)),
|
|
425
449
|
user: new BackofficeUser(this.callFunction.bind(this)),
|
|
426
450
|
tenant: new BackofficeTenant(this.callFunction.bind(this)),
|
|
427
|
-
layout: new BackofficeLayout(this.callFunction.bind(this))
|
|
451
|
+
layout: new BackofficeLayout(this.callFunction.bind(this)),
|
|
452
|
+
authorization: new BackofficeAuthorization(this.callFunction.bind(this)),
|
|
453
|
+
customer: new BackofficeCustomer(this.callFunction.bind(this))
|
|
428
454
|
});
|
|
429
455
|
}
|
|
430
456
|
|
|
@@ -462,6 +488,8 @@ var index = {
|
|
|
462
488
|
obj.layout.update(payload);
|
|
463
489
|
obj.catalog.update(payload);
|
|
464
490
|
obj.orderpath.update(payload);
|
|
491
|
+
obj.authorization.update(payload);
|
|
492
|
+
obj.customer.update(payload);
|
|
465
493
|
};
|
|
466
494
|
|
|
467
495
|
sdk.on(SdkEvents.INIT, function (payload) {
|