roboto-js 3.0.0 → 3.0.2
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/README.md +2 -3
- package/dist/cjs/index.cjs +185 -111
- package/dist/cjs/rbt_api.cjs +649 -454
- package/dist/cjs/rbt_object.cjs +65 -21
- package/dist/cjs/version.cjs +2 -2
- package/dist/esm/index.js +185 -111
- package/dist/esm/rbt_api.js +650 -454
- package/dist/esm/rbt_object.js +65 -21
- package/dist/esm/version.js +2 -2
- package/package.json +1 -1
- package/src/index.js +13 -5
- package/src/rbt_api.js +129 -65
- package/src/rbt_object.js +46 -0
- package/src/version.js +2 -2
package/README.md
CHANGED
|
@@ -129,10 +129,9 @@ const roboto = new Roboto({
|
|
|
129
129
|
|
|
130
130
|
### Organization Management
|
|
131
131
|
|
|
132
|
-
- `loadCurrentOrganization(forceReload)`
|
|
132
|
+
- `loadCurrentOrganization(forceReload)` — Loads org only when `user.mod.iac.currentOrgId` is set (legacy `mod.currentOrgId` still read once per migration path); returns `null` otherwise
|
|
133
133
|
- `switchOrganization(orgId)` - Switch to a different organization
|
|
134
|
-
- `getCurrentOrganization()`
|
|
135
|
-
- `currentOrganization` - Getter for current organization
|
|
134
|
+
- `getCurrentOrganization()` / `currentOrganization` — Returns cached org only when preference matches (`mod.iac.currentOrgId` preferred; legacy `mod.currentOrgId` read for comparison)
|
|
136
135
|
|
|
137
136
|
### File Operations
|
|
138
137
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -505,46 +505,120 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
505
505
|
return _confirmUserEmail.apply(this, arguments);
|
|
506
506
|
}
|
|
507
507
|
return confirmUserEmail;
|
|
508
|
-
}()
|
|
509
|
-
// Organization management
|
|
510
|
-
//
|
|
508
|
+
}()
|
|
511
509
|
}, {
|
|
512
|
-
key: "
|
|
510
|
+
key: "sendResetEmailViaFlows",
|
|
513
511
|
value: function () {
|
|
514
|
-
var
|
|
515
|
-
var forceReload,
|
|
516
|
-
_args11 = arguments;
|
|
512
|
+
var _sendResetEmailViaFlows = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(email) {
|
|
517
513
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
518
514
|
while (1) switch (_context11.prev = _context11.next) {
|
|
519
515
|
case 0:
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
case 2:
|
|
516
|
+
return _context11.abrupt("return", this.api.sendResetEmailViaFlows(email));
|
|
517
|
+
case 1:
|
|
523
518
|
case "end":
|
|
524
519
|
return _context11.stop();
|
|
525
520
|
}
|
|
526
521
|
}, _callee11, this);
|
|
527
522
|
}));
|
|
528
|
-
function
|
|
529
|
-
return
|
|
523
|
+
function sendResetEmailViaFlows(_x6) {
|
|
524
|
+
return _sendResetEmailViaFlows.apply(this, arguments);
|
|
530
525
|
}
|
|
531
|
-
return
|
|
526
|
+
return sendResetEmailViaFlows;
|
|
532
527
|
}()
|
|
533
528
|
}, {
|
|
534
|
-
key: "
|
|
529
|
+
key: "sendRegistrationVerificationEmail",
|
|
535
530
|
value: function () {
|
|
536
|
-
var
|
|
531
|
+
var _sendRegistrationVerificationEmail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(email) {
|
|
537
532
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
538
533
|
while (1) switch (_context12.prev = _context12.next) {
|
|
539
534
|
case 0:
|
|
540
|
-
return _context12.abrupt("return", this.api.
|
|
535
|
+
return _context12.abrupt("return", this.api.sendRegistrationVerificationEmail(email));
|
|
541
536
|
case 1:
|
|
542
537
|
case "end":
|
|
543
538
|
return _context12.stop();
|
|
544
539
|
}
|
|
545
540
|
}, _callee12, this);
|
|
546
541
|
}));
|
|
547
|
-
function
|
|
542
|
+
function sendRegistrationVerificationEmail(_x7) {
|
|
543
|
+
return _sendRegistrationVerificationEmail.apply(this, arguments);
|
|
544
|
+
}
|
|
545
|
+
return sendRegistrationVerificationEmail;
|
|
546
|
+
}()
|
|
547
|
+
}, {
|
|
548
|
+
key: "resendRegistrationCode",
|
|
549
|
+
value: function () {
|
|
550
|
+
var _resendRegistrationCode = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(email) {
|
|
551
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
552
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
553
|
+
case 0:
|
|
554
|
+
return _context13.abrupt("return", this.api.resendRegistrationCode(email));
|
|
555
|
+
case 1:
|
|
556
|
+
case "end":
|
|
557
|
+
return _context13.stop();
|
|
558
|
+
}
|
|
559
|
+
}, _callee13, this);
|
|
560
|
+
}));
|
|
561
|
+
function resendRegistrationCode(_x8) {
|
|
562
|
+
return _resendRegistrationCode.apply(this, arguments);
|
|
563
|
+
}
|
|
564
|
+
return resendRegistrationCode;
|
|
565
|
+
}()
|
|
566
|
+
}, {
|
|
567
|
+
key: "completePasswordReset",
|
|
568
|
+
value: function () {
|
|
569
|
+
var _completePasswordReset = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
|
|
570
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
571
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
572
|
+
case 0:
|
|
573
|
+
return _context14.abrupt("return", this.api.completePasswordReset(params));
|
|
574
|
+
case 1:
|
|
575
|
+
case "end":
|
|
576
|
+
return _context14.stop();
|
|
577
|
+
}
|
|
578
|
+
}, _callee14, this);
|
|
579
|
+
}));
|
|
580
|
+
function completePasswordReset(_x9) {
|
|
581
|
+
return _completePasswordReset.apply(this, arguments);
|
|
582
|
+
}
|
|
583
|
+
return completePasswordReset;
|
|
584
|
+
}()
|
|
585
|
+
}, {
|
|
586
|
+
key: "loadCurrentOrganization",
|
|
587
|
+
value: function () {
|
|
588
|
+
var _loadCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
589
|
+
var forceReload,
|
|
590
|
+
_args15 = arguments;
|
|
591
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
592
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
593
|
+
case 0:
|
|
594
|
+
forceReload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : false;
|
|
595
|
+
return _context15.abrupt("return", this.api.loadCurrentOrganization(forceReload));
|
|
596
|
+
case 2:
|
|
597
|
+
case "end":
|
|
598
|
+
return _context15.stop();
|
|
599
|
+
}
|
|
600
|
+
}, _callee15, this);
|
|
601
|
+
}));
|
|
602
|
+
function loadCurrentOrganization() {
|
|
603
|
+
return _loadCurrentOrganization.apply(this, arguments);
|
|
604
|
+
}
|
|
605
|
+
return loadCurrentOrganization;
|
|
606
|
+
}()
|
|
607
|
+
}, {
|
|
608
|
+
key: "switchOrganization",
|
|
609
|
+
value: function () {
|
|
610
|
+
var _switchOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(orgId) {
|
|
611
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
612
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
613
|
+
case 0:
|
|
614
|
+
return _context16.abrupt("return", this.api.switchOrganization(orgId));
|
|
615
|
+
case 1:
|
|
616
|
+
case "end":
|
|
617
|
+
return _context16.stop();
|
|
618
|
+
}
|
|
619
|
+
}, _callee16, this);
|
|
620
|
+
}));
|
|
621
|
+
function switchOrganization(_x10) {
|
|
548
622
|
return _switchOrganization.apply(this, arguments);
|
|
549
623
|
}
|
|
550
624
|
return switchOrganization;
|
|
@@ -552,21 +626,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
552
626
|
}, {
|
|
553
627
|
key: "selectCurrentOrganization",
|
|
554
628
|
value: function () {
|
|
555
|
-
var _selectCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
629
|
+
var _selectCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(orgId) {
|
|
556
630
|
var role,
|
|
557
|
-
|
|
558
|
-
return _regeneratorRuntime().wrap(function
|
|
559
|
-
while (1) switch (
|
|
631
|
+
_args17 = arguments;
|
|
632
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
633
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
560
634
|
case 0:
|
|
561
|
-
role =
|
|
562
|
-
return
|
|
635
|
+
role = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : 'owner';
|
|
636
|
+
return _context17.abrupt("return", this.api.selectCurrentOrganization(orgId, role));
|
|
563
637
|
case 2:
|
|
564
638
|
case "end":
|
|
565
|
-
return
|
|
639
|
+
return _context17.stop();
|
|
566
640
|
}
|
|
567
|
-
},
|
|
641
|
+
}, _callee17, this);
|
|
568
642
|
}));
|
|
569
|
-
function selectCurrentOrganization(
|
|
643
|
+
function selectCurrentOrganization(_x11) {
|
|
570
644
|
return _selectCurrentOrganization.apply(this, arguments);
|
|
571
645
|
}
|
|
572
646
|
return selectCurrentOrganization;
|
|
@@ -579,7 +653,7 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
579
653
|
}, {
|
|
580
654
|
key: "currentOrganization",
|
|
581
655
|
get: function get() {
|
|
582
|
-
return this.api.
|
|
656
|
+
return this.api.getCurrentOrganization();
|
|
583
657
|
}
|
|
584
658
|
|
|
585
659
|
//
|
|
@@ -588,19 +662,19 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
588
662
|
}, {
|
|
589
663
|
key: "createFile",
|
|
590
664
|
value: function () {
|
|
591
|
-
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
665
|
+
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
592
666
|
var data,
|
|
593
|
-
|
|
594
|
-
return _regeneratorRuntime().wrap(function
|
|
595
|
-
while (1) switch (
|
|
667
|
+
_args18 = arguments;
|
|
668
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
669
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
596
670
|
case 0:
|
|
597
|
-
data =
|
|
598
|
-
return
|
|
671
|
+
data = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
672
|
+
return _context18.abrupt("return", this.api.createFile(data));
|
|
599
673
|
case 2:
|
|
600
674
|
case "end":
|
|
601
|
-
return
|
|
675
|
+
return _context18.stop();
|
|
602
676
|
}
|
|
603
|
-
},
|
|
677
|
+
}, _callee18, this);
|
|
604
678
|
}));
|
|
605
679
|
function createFile() {
|
|
606
680
|
return _createFile.apply(this, arguments);
|
|
@@ -610,18 +684,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
684
|
}, {
|
|
611
685
|
key: "loadFile",
|
|
612
686
|
value: function () {
|
|
613
|
-
var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
614
|
-
return _regeneratorRuntime().wrap(function
|
|
615
|
-
while (1) switch (
|
|
687
|
+
var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(id) {
|
|
688
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
689
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
616
690
|
case 0:
|
|
617
|
-
return
|
|
691
|
+
return _context19.abrupt("return", this.api.loadFile(id));
|
|
618
692
|
case 1:
|
|
619
693
|
case "end":
|
|
620
|
-
return
|
|
694
|
+
return _context19.stop();
|
|
621
695
|
}
|
|
622
|
-
},
|
|
696
|
+
}, _callee19, this);
|
|
623
697
|
}));
|
|
624
|
-
function loadFile(
|
|
698
|
+
function loadFile(_x12) {
|
|
625
699
|
return _loadFile.apply(this, arguments);
|
|
626
700
|
}
|
|
627
701
|
return loadFile;
|
|
@@ -629,18 +703,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
629
703
|
}, {
|
|
630
704
|
key: "loadFiles",
|
|
631
705
|
value: function () {
|
|
632
|
-
var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
633
|
-
return _regeneratorRuntime().wrap(function
|
|
634
|
-
while (1) switch (
|
|
706
|
+
var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(ids) {
|
|
707
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
708
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
635
709
|
case 0:
|
|
636
|
-
return
|
|
710
|
+
return _context20.abrupt("return", this.api.loadFiles(ids));
|
|
637
711
|
case 1:
|
|
638
712
|
case "end":
|
|
639
|
-
return
|
|
713
|
+
return _context20.stop();
|
|
640
714
|
}
|
|
641
|
-
},
|
|
715
|
+
}, _callee20, this);
|
|
642
716
|
}));
|
|
643
|
-
function loadFiles(
|
|
717
|
+
function loadFiles(_x13) {
|
|
644
718
|
return _loadFiles.apply(this, arguments);
|
|
645
719
|
}
|
|
646
720
|
return loadFiles;
|
|
@@ -650,21 +724,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
650
724
|
}, {
|
|
651
725
|
key: "create",
|
|
652
726
|
value: function () {
|
|
653
|
-
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
727
|
+
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
|
|
654
728
|
var data,
|
|
655
|
-
|
|
656
|
-
return _regeneratorRuntime().wrap(function
|
|
657
|
-
while (1) switch (
|
|
729
|
+
_args21 = arguments;
|
|
730
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
731
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
658
732
|
case 0:
|
|
659
|
-
data =
|
|
660
|
-
return
|
|
733
|
+
data = _args21.length > 1 && _args21[1] !== undefined ? _args21[1] : {};
|
|
734
|
+
return _context21.abrupt("return", this.api.create(params, data));
|
|
661
735
|
case 2:
|
|
662
736
|
case "end":
|
|
663
|
-
return
|
|
737
|
+
return _context21.stop();
|
|
664
738
|
}
|
|
665
|
-
},
|
|
739
|
+
}, _callee21, this);
|
|
666
740
|
}));
|
|
667
|
-
function create(
|
|
741
|
+
function create(_x14) {
|
|
668
742
|
return _create.apply(this, arguments);
|
|
669
743
|
}
|
|
670
744
|
return create;
|
|
@@ -672,18 +746,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
672
746
|
}, {
|
|
673
747
|
key: "load",
|
|
674
748
|
value: function () {
|
|
675
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
676
|
-
return _regeneratorRuntime().wrap(function
|
|
677
|
-
while (1) switch (
|
|
749
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(type, ids, options) {
|
|
750
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
751
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
678
752
|
case 0:
|
|
679
|
-
return
|
|
753
|
+
return _context22.abrupt("return", this.api.load(type, ids, options));
|
|
680
754
|
case 1:
|
|
681
755
|
case "end":
|
|
682
|
-
return
|
|
756
|
+
return _context22.stop();
|
|
683
757
|
}
|
|
684
|
-
},
|
|
758
|
+
}, _callee22, this);
|
|
685
759
|
}));
|
|
686
|
-
function load(
|
|
760
|
+
function load(_x15, _x16, _x17) {
|
|
687
761
|
return _load.apply(this, arguments);
|
|
688
762
|
}
|
|
689
763
|
return load;
|
|
@@ -691,18 +765,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
691
765
|
}, {
|
|
692
766
|
key: "query",
|
|
693
767
|
value: function () {
|
|
694
|
-
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
695
|
-
return _regeneratorRuntime().wrap(function
|
|
696
|
-
while (1) switch (
|
|
768
|
+
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(type, params) {
|
|
769
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
770
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
697
771
|
case 0:
|
|
698
|
-
return
|
|
772
|
+
return _context23.abrupt("return", this.api.query(type, params));
|
|
699
773
|
case 1:
|
|
700
774
|
case "end":
|
|
701
|
-
return
|
|
775
|
+
return _context23.stop();
|
|
702
776
|
}
|
|
703
|
-
},
|
|
777
|
+
}, _callee23, this);
|
|
704
778
|
}));
|
|
705
|
-
function query(
|
|
779
|
+
function query(_x18, _x19) {
|
|
706
780
|
return _query.apply(this, arguments);
|
|
707
781
|
}
|
|
708
782
|
return query;
|
|
@@ -724,18 +798,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
724
798
|
}, {
|
|
725
799
|
key: "runTask",
|
|
726
800
|
value: function () {
|
|
727
|
-
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
728
|
-
return _regeneratorRuntime().wrap(function
|
|
729
|
-
while (1) switch (
|
|
801
|
+
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(params, callbacks) {
|
|
802
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
803
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
730
804
|
case 0:
|
|
731
|
-
return
|
|
805
|
+
return _context24.abrupt("return", this.api.runTask(params, callbacks));
|
|
732
806
|
case 1:
|
|
733
807
|
case "end":
|
|
734
|
-
return
|
|
808
|
+
return _context24.stop();
|
|
735
809
|
}
|
|
736
|
-
},
|
|
810
|
+
}, _callee24, this);
|
|
737
811
|
}));
|
|
738
|
-
function runTask(
|
|
812
|
+
function runTask(_x20, _x21) {
|
|
739
813
|
return _runTask.apply(this, arguments);
|
|
740
814
|
}
|
|
741
815
|
return runTask;
|
|
@@ -743,18 +817,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
743
817
|
}, {
|
|
744
818
|
key: "stopJob",
|
|
745
819
|
value: function () {
|
|
746
|
-
var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
747
|
-
return _regeneratorRuntime().wrap(function
|
|
748
|
-
while (1) switch (
|
|
820
|
+
var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params, callbacks) {
|
|
821
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
822
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
749
823
|
case 0:
|
|
750
|
-
return
|
|
824
|
+
return _context25.abrupt("return", this.api.stopJob(params, callbacks));
|
|
751
825
|
case 1:
|
|
752
826
|
case "end":
|
|
753
|
-
return
|
|
827
|
+
return _context25.stop();
|
|
754
828
|
}
|
|
755
|
-
},
|
|
829
|
+
}, _callee25, this);
|
|
756
830
|
}));
|
|
757
|
-
function stopJob(
|
|
831
|
+
function stopJob(_x22, _x23) {
|
|
758
832
|
return _stopJob.apply(this, arguments);
|
|
759
833
|
}
|
|
760
834
|
return stopJob;
|
|
@@ -762,18 +836,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
836
|
}, {
|
|
763
837
|
key: "pollTaskProgress",
|
|
764
838
|
value: function () {
|
|
765
|
-
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
766
|
-
return _regeneratorRuntime().wrap(function
|
|
767
|
-
while (1) switch (
|
|
839
|
+
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(params) {
|
|
840
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
841
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
768
842
|
case 0:
|
|
769
|
-
return
|
|
843
|
+
return _context26.abrupt("return", this.api.pollTaskProgress(params));
|
|
770
844
|
case 1:
|
|
771
845
|
case "end":
|
|
772
|
-
return
|
|
846
|
+
return _context26.stop();
|
|
773
847
|
}
|
|
774
|
-
},
|
|
848
|
+
}, _callee26, this);
|
|
775
849
|
}));
|
|
776
|
-
function pollTaskProgress(
|
|
850
|
+
function pollTaskProgress(_x24) {
|
|
777
851
|
return _pollTaskProgress.apply(this, arguments);
|
|
778
852
|
}
|
|
779
853
|
return pollTaskProgress;
|
|
@@ -838,23 +912,23 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
838
912
|
}, {
|
|
839
913
|
key: "get",
|
|
840
914
|
value: function () {
|
|
841
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
915
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(endpoint, params) {
|
|
842
916
|
var result;
|
|
843
|
-
return _regeneratorRuntime().wrap(function
|
|
844
|
-
while (1) switch (
|
|
917
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
918
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
845
919
|
case 0:
|
|
846
|
-
|
|
920
|
+
_context27.next = 2;
|
|
847
921
|
return this.api.get(endpoint, params);
|
|
848
922
|
case 2:
|
|
849
|
-
result =
|
|
850
|
-
return
|
|
923
|
+
result = _context27.sent;
|
|
924
|
+
return _context27.abrupt("return", this._autoWrapResponse(result));
|
|
851
925
|
case 4:
|
|
852
926
|
case "end":
|
|
853
|
-
return
|
|
927
|
+
return _context27.stop();
|
|
854
928
|
}
|
|
855
|
-
},
|
|
929
|
+
}, _callee27, this);
|
|
856
930
|
}));
|
|
857
|
-
function get(
|
|
931
|
+
function get(_x25, _x26) {
|
|
858
932
|
return _get.apply(this, arguments);
|
|
859
933
|
}
|
|
860
934
|
return get;
|
|
@@ -862,23 +936,23 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
862
936
|
}, {
|
|
863
937
|
key: "post",
|
|
864
938
|
value: function () {
|
|
865
|
-
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
939
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(endpoint, data) {
|
|
866
940
|
var result;
|
|
867
|
-
return _regeneratorRuntime().wrap(function
|
|
868
|
-
while (1) switch (
|
|
941
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
942
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
869
943
|
case 0:
|
|
870
|
-
|
|
944
|
+
_context28.next = 2;
|
|
871
945
|
return this.api.post(endpoint, data);
|
|
872
946
|
case 2:
|
|
873
|
-
result =
|
|
874
|
-
return
|
|
947
|
+
result = _context28.sent;
|
|
948
|
+
return _context28.abrupt("return", this._autoWrapResponse(result));
|
|
875
949
|
case 4:
|
|
876
950
|
case "end":
|
|
877
|
-
return
|
|
951
|
+
return _context28.stop();
|
|
878
952
|
}
|
|
879
|
-
},
|
|
953
|
+
}, _callee28, this);
|
|
880
954
|
}));
|
|
881
|
-
function post(
|
|
955
|
+
function post(_x27, _x28) {
|
|
882
956
|
return _post.apply(this, arguments);
|
|
883
957
|
}
|
|
884
958
|
return post;
|