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.
@@ -549,6 +549,28 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
549
549
  }
550
550
  return switchOrganization;
551
551
  }()
552
+ }, {
553
+ key: "selectCurrentOrganization",
554
+ value: function () {
555
+ var _selectCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(orgId) {
556
+ var role,
557
+ _args13 = arguments;
558
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
559
+ while (1) switch (_context13.prev = _context13.next) {
560
+ case 0:
561
+ role = _args13.length > 1 && _args13[1] !== undefined ? _args13[1] : 'owner';
562
+ return _context13.abrupt("return", this.api.selectCurrentOrganization(orgId, role));
563
+ case 2:
564
+ case "end":
565
+ return _context13.stop();
566
+ }
567
+ }, _callee13, this);
568
+ }));
569
+ function selectCurrentOrganization(_x7) {
570
+ return _selectCurrentOrganization.apply(this, arguments);
571
+ }
572
+ return selectCurrentOrganization;
573
+ }()
552
574
  }, {
553
575
  key: "getCurrentOrganization",
554
576
  value: function getCurrentOrganization() {
@@ -566,19 +588,19 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
566
588
  }, {
567
589
  key: "createFile",
568
590
  value: function () {
569
- var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
591
+ var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
570
592
  var data,
571
- _args13 = arguments;
572
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
573
- while (1) switch (_context13.prev = _context13.next) {
593
+ _args14 = arguments;
594
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
595
+ while (1) switch (_context14.prev = _context14.next) {
574
596
  case 0:
575
- data = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
576
- return _context13.abrupt("return", this.api.createFile(data));
597
+ data = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
598
+ return _context14.abrupt("return", this.api.createFile(data));
577
599
  case 2:
578
600
  case "end":
579
- return _context13.stop();
601
+ return _context14.stop();
580
602
  }
581
- }, _callee13, this);
603
+ }, _callee14, this);
582
604
  }));
583
605
  function createFile() {
584
606
  return _createFile.apply(this, arguments);
@@ -588,18 +610,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
588
610
  }, {
589
611
  key: "loadFile",
590
612
  value: function () {
591
- var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(id) {
592
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
593
- while (1) switch (_context14.prev = _context14.next) {
613
+ var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(id) {
614
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
615
+ while (1) switch (_context15.prev = _context15.next) {
594
616
  case 0:
595
- return _context14.abrupt("return", this.api.loadFile(id));
617
+ return _context15.abrupt("return", this.api.loadFile(id));
596
618
  case 1:
597
619
  case "end":
598
- return _context14.stop();
620
+ return _context15.stop();
599
621
  }
600
- }, _callee14, this);
622
+ }, _callee15, this);
601
623
  }));
602
- function loadFile(_x7) {
624
+ function loadFile(_x8) {
603
625
  return _loadFile.apply(this, arguments);
604
626
  }
605
627
  return loadFile;
@@ -607,18 +629,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
607
629
  }, {
608
630
  key: "loadFiles",
609
631
  value: function () {
610
- var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(ids) {
611
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
612
- while (1) switch (_context15.prev = _context15.next) {
632
+ var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(ids) {
633
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
634
+ while (1) switch (_context16.prev = _context16.next) {
613
635
  case 0:
614
- return _context15.abrupt("return", this.api.loadFiles(ids));
636
+ return _context16.abrupt("return", this.api.loadFiles(ids));
615
637
  case 1:
616
638
  case "end":
617
- return _context15.stop();
639
+ return _context16.stop();
618
640
  }
619
- }, _callee15, this);
641
+ }, _callee16, this);
620
642
  }));
621
- function loadFiles(_x8) {
643
+ function loadFiles(_x9) {
622
644
  return _loadFiles.apply(this, arguments);
623
645
  }
624
646
  return loadFiles;
@@ -628,21 +650,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
628
650
  }, {
629
651
  key: "create",
630
652
  value: function () {
631
- var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
653
+ var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
632
654
  var data,
633
- _args16 = arguments;
634
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
635
- while (1) switch (_context16.prev = _context16.next) {
655
+ _args17 = arguments;
656
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
657
+ while (1) switch (_context17.prev = _context17.next) {
636
658
  case 0:
637
- data = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : {};
638
- return _context16.abrupt("return", this.api.create(params, data));
659
+ data = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
660
+ return _context17.abrupt("return", this.api.create(params, data));
639
661
  case 2:
640
662
  case "end":
641
- return _context16.stop();
663
+ return _context17.stop();
642
664
  }
643
- }, _callee16, this);
665
+ }, _callee17, this);
644
666
  }));
645
- function create(_x9) {
667
+ function create(_x10) {
646
668
  return _create.apply(this, arguments);
647
669
  }
648
670
  return create;
@@ -650,18 +672,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
650
672
  }, {
651
673
  key: "load",
652
674
  value: function () {
653
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(type, ids, options) {
654
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
655
- while (1) switch (_context17.prev = _context17.next) {
675
+ var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(type, ids, options) {
676
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
677
+ while (1) switch (_context18.prev = _context18.next) {
656
678
  case 0:
657
- return _context17.abrupt("return", this.api.load(type, ids, options));
679
+ return _context18.abrupt("return", this.api.load(type, ids, options));
658
680
  case 1:
659
681
  case "end":
660
- return _context17.stop();
682
+ return _context18.stop();
661
683
  }
662
- }, _callee17, this);
684
+ }, _callee18, this);
663
685
  }));
664
- function load(_x10, _x11, _x12) {
686
+ function load(_x11, _x12, _x13) {
665
687
  return _load.apply(this, arguments);
666
688
  }
667
689
  return load;
@@ -669,18 +691,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
669
691
  }, {
670
692
  key: "query",
671
693
  value: function () {
672
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(type, params) {
673
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
674
- while (1) switch (_context18.prev = _context18.next) {
694
+ var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(type, params) {
695
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
696
+ while (1) switch (_context19.prev = _context19.next) {
675
697
  case 0:
676
- return _context18.abrupt("return", this.api.query(type, params));
698
+ return _context19.abrupt("return", this.api.query(type, params));
677
699
  case 1:
678
700
  case "end":
679
- return _context18.stop();
701
+ return _context19.stop();
680
702
  }
681
- }, _callee18, this);
703
+ }, _callee19, this);
682
704
  }));
683
- function query(_x13, _x14) {
705
+ function query(_x14, _x15) {
684
706
  return _query.apply(this, arguments);
685
707
  }
686
708
  return query;
@@ -702,18 +724,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
702
724
  }, {
703
725
  key: "runTask",
704
726
  value: function () {
705
- var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params, callbacks) {
706
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
707
- while (1) switch (_context19.prev = _context19.next) {
727
+ var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params, callbacks) {
728
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
729
+ while (1) switch (_context20.prev = _context20.next) {
708
730
  case 0:
709
- return _context19.abrupt("return", this.api.runTask(params, callbacks));
731
+ return _context20.abrupt("return", this.api.runTask(params, callbacks));
710
732
  case 1:
711
733
  case "end":
712
- return _context19.stop();
734
+ return _context20.stop();
713
735
  }
714
- }, _callee19, this);
736
+ }, _callee20, this);
715
737
  }));
716
- function runTask(_x15, _x16) {
738
+ function runTask(_x16, _x17) {
717
739
  return _runTask.apply(this, arguments);
718
740
  }
719
741
  return runTask;
@@ -721,18 +743,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
721
743
  }, {
722
744
  key: "stopJob",
723
745
  value: function () {
724
- var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(params, callbacks) {
725
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
726
- while (1) switch (_context20.prev = _context20.next) {
746
+ var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params, callbacks) {
747
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
748
+ while (1) switch (_context21.prev = _context21.next) {
727
749
  case 0:
728
- return _context20.abrupt("return", this.api.stopJob(params, callbacks));
750
+ return _context21.abrupt("return", this.api.stopJob(params, callbacks));
729
751
  case 1:
730
752
  case "end":
731
- return _context20.stop();
753
+ return _context21.stop();
732
754
  }
733
- }, _callee20, this);
755
+ }, _callee21, this);
734
756
  }));
735
- function stopJob(_x17, _x18) {
757
+ function stopJob(_x18, _x19) {
736
758
  return _stopJob.apply(this, arguments);
737
759
  }
738
760
  return stopJob;
@@ -740,18 +762,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
740
762
  }, {
741
763
  key: "pollTaskProgress",
742
764
  value: function () {
743
- var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
744
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
745
- while (1) switch (_context21.prev = _context21.next) {
765
+ var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params) {
766
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
767
+ while (1) switch (_context22.prev = _context22.next) {
746
768
  case 0:
747
- return _context21.abrupt("return", this.api.pollTaskProgress(params));
769
+ return _context22.abrupt("return", this.api.pollTaskProgress(params));
748
770
  case 1:
749
771
  case "end":
750
- return _context21.stop();
772
+ return _context22.stop();
751
773
  }
752
- }, _callee21, this);
774
+ }, _callee22, this);
753
775
  }));
754
- function pollTaskProgress(_x19) {
776
+ function pollTaskProgress(_x20) {
755
777
  return _pollTaskProgress.apply(this, arguments);
756
778
  }
757
779
  return pollTaskProgress;
@@ -816,23 +838,23 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
816
838
  }, {
817
839
  key: "get",
818
840
  value: function () {
819
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(endpoint, params) {
841
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, params) {
820
842
  var result;
821
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
822
- while (1) switch (_context22.prev = _context22.next) {
843
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
844
+ while (1) switch (_context23.prev = _context23.next) {
823
845
  case 0:
824
- _context22.next = 2;
846
+ _context23.next = 2;
825
847
  return this.api.get(endpoint, params);
826
848
  case 2:
827
- result = _context22.sent;
828
- return _context22.abrupt("return", this._autoWrapResponse(result));
849
+ result = _context23.sent;
850
+ return _context23.abrupt("return", this._autoWrapResponse(result));
829
851
  case 4:
830
852
  case "end":
831
- return _context22.stop();
853
+ return _context23.stop();
832
854
  }
833
- }, _callee22, this);
855
+ }, _callee23, this);
834
856
  }));
835
- function get(_x20, _x21) {
857
+ function get(_x21, _x22) {
836
858
  return _get.apply(this, arguments);
837
859
  }
838
860
  return get;
@@ -840,23 +862,23 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
840
862
  }, {
841
863
  key: "post",
842
864
  value: function () {
843
- var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, data) {
865
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(endpoint, data) {
844
866
  var result;
845
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
846
- while (1) switch (_context23.prev = _context23.next) {
867
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
868
+ while (1) switch (_context24.prev = _context24.next) {
847
869
  case 0:
848
- _context23.next = 2;
870
+ _context24.next = 2;
849
871
  return this.api.post(endpoint, data);
850
872
  case 2:
851
- result = _context23.sent;
852
- return _context23.abrupt("return", this._autoWrapResponse(result));
873
+ result = _context24.sent;
874
+ return _context24.abrupt("return", this._autoWrapResponse(result));
853
875
  case 4:
854
876
  case "end":
855
- return _context23.stop();
877
+ return _context24.stop();
856
878
  }
857
- }, _callee23, this);
879
+ }, _callee24, this);
858
880
  }));
859
- function post(_x22, _x23) {
881
+ function post(_x23, _x24) {
860
882
  return _post.apply(this, arguments);
861
883
  }
862
884
  return post;