@one-commerce/sdk-core 1.13.0 → 1.16.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.
@@ -433,6 +433,92 @@ var BackofficeLayout = /*#__PURE__*/function (_BaseCallClass5) {
433
433
 
434
434
  return _createClass(BackofficeLayout);
435
435
  }(BaseCallClass);
436
+ var BackofficeAuthorization = /*#__PURE__*/function (_BaseCallClass6) {
437
+ _inherits(BackofficeAuthorization, _BaseCallClass6);
438
+
439
+ var _super6 = _createSuper(BackofficeAuthorization);
440
+
441
+ function BackofficeAuthorization() {
442
+ var _this6;
443
+
444
+ _classCallCheck(this, BackofficeAuthorization);
445
+
446
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
447
+ args[_key6] = arguments[_key6];
448
+ }
449
+
450
+ _this6 = _super6.call.apply(_super6, [this].concat(args));
451
+
452
+ _defineProperty(_assertThisInitialized(_this6), "serviceName", 'authorization');
453
+
454
+ return _this6;
455
+ }
456
+
457
+ _createClass(BackofficeAuthorization, [{
458
+ key: "getAuthToken",
459
+ value: function getAuthToken() {
460
+ return this.call('getAuthToken');
461
+ }
462
+ }]);
463
+
464
+ return BackofficeAuthorization;
465
+ }(BaseCallClass);
466
+ var BackofficeCustomer = /*#__PURE__*/function (_BaseCallClass7) {
467
+ _inherits(BackofficeCustomer, _BaseCallClass7);
468
+
469
+ var _super7 = _createSuper(BackofficeCustomer);
470
+
471
+ function BackofficeCustomer() {
472
+ var _this7;
473
+
474
+ _classCallCheck(this, BackofficeCustomer);
475
+
476
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
477
+ args[_key7] = arguments[_key7];
478
+ }
479
+
480
+ _this7 = _super7.call.apply(_super7, [this].concat(args));
481
+
482
+ _defineProperty(_assertThisInitialized(_this7), "serviceName", 'customer');
483
+
484
+ _defineProperty(_assertThisInitialized(_this7), "id", void 0);
485
+
486
+ _defineProperty(_assertThisInitialized(_this7), "name", void 0);
487
+
488
+ return _this7;
489
+ }
490
+
491
+ return _createClass(BackofficeCustomer);
492
+ }(BaseCallClass);
493
+ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass8) {
494
+ _inherits(BackofficePlugin, _BaseCallClass8);
495
+
496
+ var _super8 = _createSuper(BackofficePlugin);
497
+
498
+ function BackofficePlugin() {
499
+ var _this8;
500
+
501
+ _classCallCheck(this, BackofficePlugin);
502
+
503
+ for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
504
+ args[_key8] = arguments[_key8];
505
+ }
506
+
507
+ _this8 = _super8.call.apply(_super8, [this].concat(args));
508
+
509
+ _defineProperty(_assertThisInitialized(_this8), "serviceName", 'plugin');
510
+
511
+ _defineProperty(_assertThisInitialized(_this8), "id", void 0);
512
+
513
+ _defineProperty(_assertThisInitialized(_this8), "srcUrl", void 0);
514
+
515
+ _defineProperty(_assertThisInitialized(_this8), "name", void 0);
516
+
517
+ return _this8;
518
+ }
519
+
520
+ return _createClass(BackofficePlugin);
521
+ }(BaseCallClass);
436
522
 
437
523
  var Events = /*#__PURE__*/function () {
438
524
  function Events() {
@@ -953,7 +1039,10 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
953
1039
  catalog: new BackofficeCatalog(_this5.callFunction.bind(_assertThisInitialized(_this5))),
954
1040
  user: new BackofficeUser(_this5.callFunction.bind(_assertThisInitialized(_this5))),
955
1041
  tenant: new BackofficeTenant(_this5.callFunction.bind(_assertThisInitialized(_this5))),
956
- layout: new BackofficeLayout(_this5.callFunction.bind(_assertThisInitialized(_this5)))
1042
+ layout: new BackofficeLayout(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1043
+ authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1044
+ customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1045
+ plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5)))
957
1046
  });
958
1047
 
959
1048
  return _this5;