@one-commerce/sdk-backoffice-vue3 1.13.0 → 1.14.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 +15 -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 +15 -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 +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +1 -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,18 @@ 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
|
+
|
|
206
218
|
}
|
|
207
219
|
|
|
208
220
|
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 +436,8 @@ class BackofficeSdk extends Sdk {
|
|
|
424
436
|
catalog: new BackofficeCatalog(this.callFunction.bind(this)),
|
|
425
437
|
user: new BackofficeUser(this.callFunction.bind(this)),
|
|
426
438
|
tenant: new BackofficeTenant(this.callFunction.bind(this)),
|
|
427
|
-
layout: new BackofficeLayout(this.callFunction.bind(this))
|
|
439
|
+
layout: new BackofficeLayout(this.callFunction.bind(this)),
|
|
440
|
+
authorization: new BackofficeAuthorization(this.callFunction.bind(this))
|
|
428
441
|
});
|
|
429
442
|
}
|
|
430
443
|
|
|
@@ -462,6 +475,7 @@ var index = {
|
|
|
462
475
|
obj.layout.update(payload);
|
|
463
476
|
obj.catalog.update(payload);
|
|
464
477
|
obj.orderpath.update(payload);
|
|
478
|
+
obj.authorization.update(payload);
|
|
465
479
|
};
|
|
466
480
|
|
|
467
481
|
sdk.on(SdkEvents.INIT, function (payload) {
|