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.
- package/dist/cjs/index.cjs +106 -84
- package/dist/cjs/rbt_api.cjs +372 -257
- package/dist/cjs/version.cjs +2 -2
- package/dist/esm/index.js +106 -84
- package/dist/esm/rbt_api.js +372 -257
- package/dist/esm/version.js +2 -2
- package/package.json +1 -1
- package/src/index.js +3 -0
- package/src/rbt_api.js +81 -0
- package/src/version.js +2 -2
package/dist/cjs/version.cjs
CHANGED
|
@@ -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.
|
|
10
|
-
var version = exports.version = '1.9.
|
|
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
|
|
564
|
+
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
543
565
|
var data,
|
|
544
|
-
|
|
545
|
-
return _regeneratorRuntime().wrap(function
|
|
546
|
-
while (1) switch (
|
|
566
|
+
_args14 = arguments;
|
|
567
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
568
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
547
569
|
case 0:
|
|
548
|
-
data =
|
|
549
|
-
return
|
|
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
|
|
574
|
+
return _context14.stop();
|
|
553
575
|
}
|
|
554
|
-
},
|
|
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
|
|
565
|
-
return _regeneratorRuntime().wrap(function
|
|
566
|
-
while (1) switch (
|
|
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
|
|
590
|
+
return _context15.abrupt("return", this.api.loadFile(id));
|
|
569
591
|
case 1:
|
|
570
592
|
case "end":
|
|
571
|
-
return
|
|
593
|
+
return _context15.stop();
|
|
572
594
|
}
|
|
573
|
-
},
|
|
595
|
+
}, _callee15, this);
|
|
574
596
|
}));
|
|
575
|
-
function loadFile(
|
|
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
|
|
584
|
-
return _regeneratorRuntime().wrap(function
|
|
585
|
-
while (1) switch (
|
|
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
|
|
609
|
+
return _context16.abrupt("return", this.api.loadFiles(ids));
|
|
588
610
|
case 1:
|
|
589
611
|
case "end":
|
|
590
|
-
return
|
|
612
|
+
return _context16.stop();
|
|
591
613
|
}
|
|
592
|
-
},
|
|
614
|
+
}, _callee16, this);
|
|
593
615
|
}));
|
|
594
|
-
function loadFiles(
|
|
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
|
|
626
|
+
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
|
|
605
627
|
var data,
|
|
606
|
-
|
|
607
|
-
return _regeneratorRuntime().wrap(function
|
|
608
|
-
while (1) switch (
|
|
628
|
+
_args17 = arguments;
|
|
629
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
630
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
609
631
|
case 0:
|
|
610
|
-
data =
|
|
611
|
-
return
|
|
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
|
|
636
|
+
return _context17.stop();
|
|
615
637
|
}
|
|
616
|
-
},
|
|
638
|
+
}, _callee17, this);
|
|
617
639
|
}));
|
|
618
|
-
function create(
|
|
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
|
|
627
|
-
return _regeneratorRuntime().wrap(function
|
|
628
|
-
while (1) switch (
|
|
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
|
|
652
|
+
return _context18.abrupt("return", this.api.load(type, ids, options));
|
|
631
653
|
case 1:
|
|
632
654
|
case "end":
|
|
633
|
-
return
|
|
655
|
+
return _context18.stop();
|
|
634
656
|
}
|
|
635
|
-
},
|
|
657
|
+
}, _callee18, this);
|
|
636
658
|
}));
|
|
637
|
-
function load(
|
|
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
|
|
646
|
-
return _regeneratorRuntime().wrap(function
|
|
647
|
-
while (1) switch (
|
|
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
|
|
671
|
+
return _context19.abrupt("return", this.api.query(type, params));
|
|
650
672
|
case 1:
|
|
651
673
|
case "end":
|
|
652
|
-
return
|
|
674
|
+
return _context19.stop();
|
|
653
675
|
}
|
|
654
|
-
},
|
|
676
|
+
}, _callee19, this);
|
|
655
677
|
}));
|
|
656
|
-
function query(
|
|
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
|
|
679
|
-
return _regeneratorRuntime().wrap(function
|
|
680
|
-
while (1) switch (
|
|
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
|
|
704
|
+
return _context20.abrupt("return", this.api.runTask(params, callbacks));
|
|
683
705
|
case 1:
|
|
684
706
|
case "end":
|
|
685
|
-
return
|
|
707
|
+
return _context20.stop();
|
|
686
708
|
}
|
|
687
|
-
},
|
|
709
|
+
}, _callee20, this);
|
|
688
710
|
}));
|
|
689
|
-
function runTask(
|
|
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
|
|
698
|
-
return _regeneratorRuntime().wrap(function
|
|
699
|
-
while (1) switch (
|
|
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
|
|
723
|
+
return _context21.abrupt("return", this.api.stopJob(params, callbacks));
|
|
702
724
|
case 1:
|
|
703
725
|
case "end":
|
|
704
|
-
return
|
|
726
|
+
return _context21.stop();
|
|
705
727
|
}
|
|
706
|
-
},
|
|
728
|
+
}, _callee21, this);
|
|
707
729
|
}));
|
|
708
|
-
function stopJob(
|
|
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
|
|
717
|
-
return _regeneratorRuntime().wrap(function
|
|
718
|
-
while (1) switch (
|
|
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
|
|
742
|
+
return _context22.abrupt("return", this.api.pollTaskProgress(params));
|
|
721
743
|
case 1:
|
|
722
744
|
case "end":
|
|
723
|
-
return
|
|
745
|
+
return _context22.stop();
|
|
724
746
|
}
|
|
725
|
-
},
|
|
747
|
+
}, _callee22, this);
|
|
726
748
|
}));
|
|
727
|
-
function pollTaskProgress(
|
|
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
|
|
814
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, params) {
|
|
793
815
|
var result;
|
|
794
|
-
return _regeneratorRuntime().wrap(function
|
|
795
|
-
while (1) switch (
|
|
816
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
817
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
796
818
|
case 0:
|
|
797
|
-
|
|
819
|
+
_context23.next = 2;
|
|
798
820
|
return this.api.get(endpoint, params);
|
|
799
821
|
case 2:
|
|
800
|
-
result =
|
|
801
|
-
return
|
|
822
|
+
result = _context23.sent;
|
|
823
|
+
return _context23.abrupt("return", this._autoWrapResponse(result));
|
|
802
824
|
case 4:
|
|
803
825
|
case "end":
|
|
804
|
-
return
|
|
826
|
+
return _context23.stop();
|
|
805
827
|
}
|
|
806
|
-
},
|
|
828
|
+
}, _callee23, this);
|
|
807
829
|
}));
|
|
808
|
-
function get(
|
|
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
|
|
838
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(endpoint, data) {
|
|
817
839
|
var result;
|
|
818
|
-
return _regeneratorRuntime().wrap(function
|
|
819
|
-
while (1) switch (
|
|
840
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
841
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
820
842
|
case 0:
|
|
821
|
-
|
|
843
|
+
_context24.next = 2;
|
|
822
844
|
return this.api.post(endpoint, data);
|
|
823
845
|
case 2:
|
|
824
|
-
result =
|
|
825
|
-
return
|
|
846
|
+
result = _context24.sent;
|
|
847
|
+
return _context24.abrupt("return", this._autoWrapResponse(result));
|
|
826
848
|
case 4:
|
|
827
849
|
case "end":
|
|
828
|
-
return
|
|
850
|
+
return _context24.stop();
|
|
829
851
|
}
|
|
830
|
-
},
|
|
852
|
+
}, _callee24, this);
|
|
831
853
|
}));
|
|
832
|
-
function post(
|
|
854
|
+
function post(_x23, _x24) {
|
|
833
855
|
return _post.apply(this, arguments);
|
|
834
856
|
}
|
|
835
857
|
return post;
|