roboto-js 1.9.7 → 1.9.9

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.
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = void 0;
7
7
  // Auto-generated version file
8
8
  // DO NOT EDIT - This file is automatically updated from package.cjson
9
- // Version: 1.9.7
10
- var version = exports.version = '1.9.7';
9
+ // Version: 1.9.9
10
+ var version = exports.version = '1.9.9';
package/dist/esm/index.js CHANGED
@@ -522,6 +522,28 @@ var Roboto = /*#__PURE__*/function () {
522
522
  }
523
523
  return switchOrganization;
524
524
  }()
525
+ }, {
526
+ key: "selectCurrentOrganization",
527
+ value: function () {
528
+ var _selectCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(orgId) {
529
+ var role,
530
+ _args13 = arguments;
531
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
532
+ while (1) switch (_context13.prev = _context13.next) {
533
+ case 0:
534
+ role = _args13.length > 1 && _args13[1] !== undefined ? _args13[1] : 'owner';
535
+ return _context13.abrupt("return", this.api.selectCurrentOrganization(orgId, role));
536
+ case 2:
537
+ case "end":
538
+ return _context13.stop();
539
+ }
540
+ }, _callee13, this);
541
+ }));
542
+ function selectCurrentOrganization(_x7) {
543
+ return _selectCurrentOrganization.apply(this, arguments);
544
+ }
545
+ return selectCurrentOrganization;
546
+ }()
525
547
  }, {
526
548
  key: "getCurrentOrganization",
527
549
  value: function getCurrentOrganization() {
@@ -539,19 +561,19 @@ var Roboto = /*#__PURE__*/function () {
539
561
  }, {
540
562
  key: "createFile",
541
563
  value: function () {
542
- var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
564
+ var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
543
565
  var data,
544
- _args13 = arguments;
545
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
546
- while (1) switch (_context13.prev = _context13.next) {
566
+ _args14 = arguments;
567
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
568
+ while (1) switch (_context14.prev = _context14.next) {
547
569
  case 0:
548
- data = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
549
- return _context13.abrupt("return", this.api.createFile(data));
570
+ data = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
571
+ return _context14.abrupt("return", this.api.createFile(data));
550
572
  case 2:
551
573
  case "end":
552
- return _context13.stop();
574
+ return _context14.stop();
553
575
  }
554
- }, _callee13, this);
576
+ }, _callee14, this);
555
577
  }));
556
578
  function createFile() {
557
579
  return _createFile.apply(this, arguments);
@@ -561,18 +583,18 @@ var Roboto = /*#__PURE__*/function () {
561
583
  }, {
562
584
  key: "loadFile",
563
585
  value: function () {
564
- var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(id) {
565
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
566
- while (1) switch (_context14.prev = _context14.next) {
586
+ var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(id) {
587
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
588
+ while (1) switch (_context15.prev = _context15.next) {
567
589
  case 0:
568
- return _context14.abrupt("return", this.api.loadFile(id));
590
+ return _context15.abrupt("return", this.api.loadFile(id));
569
591
  case 1:
570
592
  case "end":
571
- return _context14.stop();
593
+ return _context15.stop();
572
594
  }
573
- }, _callee14, this);
595
+ }, _callee15, this);
574
596
  }));
575
- function loadFile(_x7) {
597
+ function loadFile(_x8) {
576
598
  return _loadFile.apply(this, arguments);
577
599
  }
578
600
  return loadFile;
@@ -580,18 +602,18 @@ var Roboto = /*#__PURE__*/function () {
580
602
  }, {
581
603
  key: "loadFiles",
582
604
  value: function () {
583
- var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(ids) {
584
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
585
- while (1) switch (_context15.prev = _context15.next) {
605
+ var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(ids) {
606
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
607
+ while (1) switch (_context16.prev = _context16.next) {
586
608
  case 0:
587
- return _context15.abrupt("return", this.api.loadFiles(ids));
609
+ return _context16.abrupt("return", this.api.loadFiles(ids));
588
610
  case 1:
589
611
  case "end":
590
- return _context15.stop();
612
+ return _context16.stop();
591
613
  }
592
- }, _callee15, this);
614
+ }, _callee16, this);
593
615
  }));
594
- function loadFiles(_x8) {
616
+ function loadFiles(_x9) {
595
617
  return _loadFiles.apply(this, arguments);
596
618
  }
597
619
  return loadFiles;
@@ -601,21 +623,21 @@ var Roboto = /*#__PURE__*/function () {
601
623
  }, {
602
624
  key: "create",
603
625
  value: function () {
604
- var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
626
+ var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
605
627
  var data,
606
- _args16 = arguments;
607
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
608
- while (1) switch (_context16.prev = _context16.next) {
628
+ _args17 = arguments;
629
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
630
+ while (1) switch (_context17.prev = _context17.next) {
609
631
  case 0:
610
- data = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : {};
611
- return _context16.abrupt("return", this.api.create(params, data));
632
+ data = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
633
+ return _context17.abrupt("return", this.api.create(params, data));
612
634
  case 2:
613
635
  case "end":
614
- return _context16.stop();
636
+ return _context17.stop();
615
637
  }
616
- }, _callee16, this);
638
+ }, _callee17, this);
617
639
  }));
618
- function create(_x9) {
640
+ function create(_x10) {
619
641
  return _create.apply(this, arguments);
620
642
  }
621
643
  return create;
@@ -623,18 +645,18 @@ var Roboto = /*#__PURE__*/function () {
623
645
  }, {
624
646
  key: "load",
625
647
  value: function () {
626
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(type, ids, options) {
627
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
628
- while (1) switch (_context17.prev = _context17.next) {
648
+ var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(type, ids, options) {
649
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
650
+ while (1) switch (_context18.prev = _context18.next) {
629
651
  case 0:
630
- return _context17.abrupt("return", this.api.load(type, ids, options));
652
+ return _context18.abrupt("return", this.api.load(type, ids, options));
631
653
  case 1:
632
654
  case "end":
633
- return _context17.stop();
655
+ return _context18.stop();
634
656
  }
635
- }, _callee17, this);
657
+ }, _callee18, this);
636
658
  }));
637
- function load(_x10, _x11, _x12) {
659
+ function load(_x11, _x12, _x13) {
638
660
  return _load.apply(this, arguments);
639
661
  }
640
662
  return load;
@@ -642,18 +664,18 @@ var Roboto = /*#__PURE__*/function () {
642
664
  }, {
643
665
  key: "query",
644
666
  value: function () {
645
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(type, params) {
646
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
647
- while (1) switch (_context18.prev = _context18.next) {
667
+ var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(type, params) {
668
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
669
+ while (1) switch (_context19.prev = _context19.next) {
648
670
  case 0:
649
- return _context18.abrupt("return", this.api.query(type, params));
671
+ return _context19.abrupt("return", this.api.query(type, params));
650
672
  case 1:
651
673
  case "end":
652
- return _context18.stop();
674
+ return _context19.stop();
653
675
  }
654
- }, _callee18, this);
676
+ }, _callee19, this);
655
677
  }));
656
- function query(_x13, _x14) {
678
+ function query(_x14, _x15) {
657
679
  return _query.apply(this, arguments);
658
680
  }
659
681
  return query;
@@ -675,18 +697,18 @@ var Roboto = /*#__PURE__*/function () {
675
697
  }, {
676
698
  key: "runTask",
677
699
  value: function () {
678
- var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params, callbacks) {
679
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
680
- while (1) switch (_context19.prev = _context19.next) {
700
+ var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params, callbacks) {
701
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
702
+ while (1) switch (_context20.prev = _context20.next) {
681
703
  case 0:
682
- return _context19.abrupt("return", this.api.runTask(params, callbacks));
704
+ return _context20.abrupt("return", this.api.runTask(params, callbacks));
683
705
  case 1:
684
706
  case "end":
685
- return _context19.stop();
707
+ return _context20.stop();
686
708
  }
687
- }, _callee19, this);
709
+ }, _callee20, this);
688
710
  }));
689
- function runTask(_x15, _x16) {
711
+ function runTask(_x16, _x17) {
690
712
  return _runTask.apply(this, arguments);
691
713
  }
692
714
  return runTask;
@@ -694,18 +716,18 @@ var Roboto = /*#__PURE__*/function () {
694
716
  }, {
695
717
  key: "stopJob",
696
718
  value: function () {
697
- var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params, callbacks) {
698
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
699
- while (1) switch (_context20.prev = _context20.next) {
719
+ var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params, callbacks) {
720
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
721
+ while (1) switch (_context21.prev = _context21.next) {
700
722
  case 0:
701
- return _context20.abrupt("return", this.api.stopJob(params, callbacks));
723
+ return _context21.abrupt("return", this.api.stopJob(params, callbacks));
702
724
  case 1:
703
725
  case "end":
704
- return _context20.stop();
726
+ return _context21.stop();
705
727
  }
706
- }, _callee20, this);
728
+ }, _callee21, this);
707
729
  }));
708
- function stopJob(_x17, _x18) {
730
+ function stopJob(_x18, _x19) {
709
731
  return _stopJob.apply(this, arguments);
710
732
  }
711
733
  return stopJob;
@@ -713,18 +735,18 @@ var Roboto = /*#__PURE__*/function () {
713
735
  }, {
714
736
  key: "pollTaskProgress",
715
737
  value: function () {
716
- var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
717
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
718
- while (1) switch (_context21.prev = _context21.next) {
738
+ var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params) {
739
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
740
+ while (1) switch (_context22.prev = _context22.next) {
719
741
  case 0:
720
- return _context21.abrupt("return", this.api.pollTaskProgress(params));
742
+ return _context22.abrupt("return", this.api.pollTaskProgress(params));
721
743
  case 1:
722
744
  case "end":
723
- return _context21.stop();
745
+ return _context22.stop();
724
746
  }
725
- }, _callee21, this);
747
+ }, _callee22, this);
726
748
  }));
727
- function pollTaskProgress(_x19) {
749
+ function pollTaskProgress(_x20) {
728
750
  return _pollTaskProgress.apply(this, arguments);
729
751
  }
730
752
  return pollTaskProgress;
@@ -789,23 +811,23 @@ var Roboto = /*#__PURE__*/function () {
789
811
  }, {
790
812
  key: "get",
791
813
  value: function () {
792
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(endpoint, params) {
814
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, params) {
793
815
  var result;
794
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
795
- while (1) switch (_context22.prev = _context22.next) {
816
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
817
+ while (1) switch (_context23.prev = _context23.next) {
796
818
  case 0:
797
- _context22.next = 2;
819
+ _context23.next = 2;
798
820
  return this.api.get(endpoint, params);
799
821
  case 2:
800
- result = _context22.sent;
801
- return _context22.abrupt("return", this._autoWrapResponse(result));
822
+ result = _context23.sent;
823
+ return _context23.abrupt("return", this._autoWrapResponse(result));
802
824
  case 4:
803
825
  case "end":
804
- return _context22.stop();
826
+ return _context23.stop();
805
827
  }
806
- }, _callee22, this);
828
+ }, _callee23, this);
807
829
  }));
808
- function get(_x20, _x21) {
830
+ function get(_x21, _x22) {
809
831
  return _get.apply(this, arguments);
810
832
  }
811
833
  return get;
@@ -813,23 +835,23 @@ var Roboto = /*#__PURE__*/function () {
813
835
  }, {
814
836
  key: "post",
815
837
  value: function () {
816
- var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, data) {
838
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(endpoint, data) {
817
839
  var result;
818
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
819
- while (1) switch (_context23.prev = _context23.next) {
840
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
841
+ while (1) switch (_context24.prev = _context24.next) {
820
842
  case 0:
821
- _context23.next = 2;
843
+ _context24.next = 2;
822
844
  return this.api.post(endpoint, data);
823
845
  case 2:
824
- result = _context23.sent;
825
- return _context23.abrupt("return", this._autoWrapResponse(result));
846
+ result = _context24.sent;
847
+ return _context24.abrupt("return", this._autoWrapResponse(result));
826
848
  case 4:
827
849
  case "end":
828
- return _context23.stop();
850
+ return _context24.stop();
829
851
  }
830
- }, _callee23, this);
852
+ }, _callee24, this);
831
853
  }));
832
- function post(_x22, _x23) {
854
+ function post(_x23, _x24) {
833
855
  return _post.apply(this, arguments);
834
856
  }
835
857
  return post;