roboto-js 1.9.5 → 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.5
10
- var version = exports.version = '1.9.5';
9
+ // Version: 1.9.9
10
+ var version = exports.version = '1.9.9';
@@ -43,6 +43,7 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
43
43
  // Keys that should be stored without prefix for server-side access
44
44
  serverAccessKeys: (_options$serverAccess = options.serverAccessKeys) !== null && _options$serverAccess !== void 0 ? _options$serverAccess : ['authtoken', 'accessKey', 'apikey']
45
45
  }, options);
46
+ /*
46
47
  console.log('[CookieStorageAdaptor] Initialized with options:', {
47
48
  secure: this.options.secure,
48
49
  sameSite: this.options.sameSite,
@@ -51,7 +52,7 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
51
52
  domain: this.options.domain,
52
53
  prefix: this.options.prefix,
53
54
  serverAccessKeys: this.options.serverAccessKeys
54
- });
55
+ })*/
55
56
  }
56
57
 
57
58
  /**
@@ -69,7 +70,6 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
69
70
  _context.n = 1;
70
71
  break;
71
72
  }
72
- console.log("[CookieStorageAdaptor] getItem(".concat(key, "): document undefined, returning null"));
73
73
  return _context.a(2, null);
74
74
  case 1:
75
75
  // Check if this key should be stored without prefix for server access
@@ -77,11 +77,8 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
77
77
  cookieName = usePrefix ? this.options.prefix + key : key;
78
78
  name = cookieName + '=';
79
79
  decodedCookie = decodeURIComponent(document.cookie);
80
- cookies = decodedCookie.split(';');
81
- console.log("[CookieStorageAdaptor] getItem(".concat(key, "): looking for cookie \"").concat(cookieName, "\" ").concat(usePrefix ? '(prefixed)' : '(server-accessible)'));
82
- console.log("[CookieStorageAdaptor] Available cookies:", cookies.map(function (c) {
83
- return c.trim().split('=')[0];
84
- }).join(', '));
80
+ cookies = decodedCookie.split(';'); //console.log(`[CookieStorageAdaptor] getItem(${key}): looking for cookie "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
81
+ //console.log(`[CookieStorageAdaptor] Available cookies:`, cookies.map(c => c.trim().split('=')[0]).join(', '))
85
82
  _iterator = _createForOfIteratorHelper(cookies);
86
83
  _context.p = 2;
87
84
  _iterator.s();
@@ -96,18 +93,14 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
96
93
  _context.n = 6;
97
94
  break;
98
95
  }
99
- rawValue = cookie.substring(name.length, cookie.length);
100
- console.log("[CookieStorageAdaptor] Found cookie \"".concat(cookieName, "\" with raw value:"), rawValue);
101
-
96
+ rawValue = cookie.substring(name.length, cookie.length); //console.log(`[CookieStorageAdaptor] Found cookie "${cookieName}" with raw value:`, rawValue)
102
97
  // Handle JSON values (like rbtUser)
103
98
  _context.p = 4;
104
- parsedValue = JSON.parse(rawValue);
105
- console.log("[CookieStorageAdaptor] getItem(".concat(key, "): returning parsed JSON:"), parsedValue);
99
+ parsedValue = JSON.parse(rawValue); //console.log(`[CookieStorageAdaptor] getItem(${key}): returning parsed JSON:`, parsedValue)
106
100
  return _context.a(2, parsedValue);
107
101
  case 5:
108
102
  _context.p = 5;
109
103
  _t = _context.v;
110
- console.log("[CookieStorageAdaptor] getItem(".concat(key, "): returning string value:"), rawValue);
111
104
  return _context.a(2, rawValue);
112
105
  case 6:
113
106
  _context.n = 3;
@@ -124,7 +117,6 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
124
117
  _iterator.f();
125
118
  return _context.f(9);
126
119
  case 10:
127
- console.log("[CookieStorageAdaptor] getItem(".concat(key, "): cookie \"").concat(cookieName, "\" not found, returning null"));
128
120
  return _context.a(2, null);
129
121
  }
130
122
  }, _callee, this, [[4, 5], [2, 8, 9, 10]]);
@@ -156,17 +148,14 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
156
148
  // Check if this key should be stored without prefix for server access
157
149
  usePrefix = !this.options.serverAccessKeys.includes(key);
158
150
  cookieName = usePrefix ? this.options.prefix + key : key; // Stringify objects/arrays like localStorage does
159
- cookieValue = _typeof(value) === 'object' ? JSON.stringify(value) : String(value);
160
- console.log("[CookieStorageAdaptor] setItem(".concat(key, "): storing as \"").concat(cookieName, "\" ").concat(usePrefix ? '(prefixed)' : '(server-accessible)'));
161
- console.log("[CookieStorageAdaptor] Original value:", value);
162
- console.log("[CookieStorageAdaptor] Cookie value:", cookieValue);
163
-
151
+ cookieValue = _typeof(value) === 'object' ? JSON.stringify(value) : String(value); //console.log(`[CookieStorageAdaptor] setItem(${key}): storing as "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
152
+ //console.log(`[CookieStorageAdaptor] Original value:`, value)
153
+ //console.log(`[CookieStorageAdaptor] Cookie value:`, cookieValue)
164
154
  // Build cookie string with security options
165
155
  secureFlag = this.options.secure ? '; Secure' : '';
166
156
  domainFlag = this.options.domain ? "; Domain=".concat(this.options.domain) : '';
167
157
  httpOnlyFlag = this.options.httpOnly ? '; HttpOnly' : '';
168
- cookieString = "".concat(cookieName, "=").concat(encodeURIComponent(cookieValue), "; path=").concat(this.options.path, "; max-age=").concat(this.options.maxAge, "; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag).concat(httpOnlyFlag);
169
- console.log("[CookieStorageAdaptor] Full cookie string:", cookieString);
158
+ cookieString = "".concat(cookieName, "=").concat(encodeURIComponent(cookieValue), "; path=").concat(this.options.path, "; max-age=").concat(this.options.maxAge, "; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag).concat(httpOnlyFlag); //console.log(`[CookieStorageAdaptor] Full cookie string:`, cookieString)
170
159
  document.cookie = cookieString;
171
160
 
172
161
  // Verify the cookie was set by immediately reading it back
@@ -210,9 +199,7 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
210
199
  case 1:
211
200
  // Check if this key should be stored without prefix for server access
212
201
  usePrefix = !this.options.serverAccessKeys.includes(key);
213
- cookieName = usePrefix ? this.options.prefix + key : key;
214
- console.log("[CookieStorageAdaptor] removeItem(".concat(key, "): removing cookie \"").concat(cookieName, "\" ").concat(usePrefix ? '(prefixed)' : '(server-accessible)'));
215
-
202
+ cookieName = usePrefix ? this.options.prefix + key : key; //console.log(`[CookieStorageAdaptor] removeItem(${key}): removing cookie "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
216
203
  // Check if cookie exists before removal
217
204
  _context3.n = 2;
218
205
  return this.getItem(key);
@@ -225,8 +212,7 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
225
212
  }
226
213
  secureFlag = this.options.secure ? '; Secure' : '';
227
214
  domainFlag = this.options.domain ? "; Domain=".concat(this.options.domain) : '';
228
- removalString = "".concat(cookieName, "=; path=").concat(this.options.path, "; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag);
229
- console.log("[CookieStorageAdaptor] Removal cookie string:", removalString);
215
+ removalString = "".concat(cookieName, "=; path=").concat(this.options.path, "; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag); //console.log(`[CookieStorageAdaptor] Removal cookie string:`, removalString)
230
216
  document.cookie = removalString;
231
217
 
232
218
  // Verify the cookie was removed
@@ -42,6 +42,16 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
42
42
  // Keys that should be stored without prefix for server-side access
43
43
  serverAccessKeys: (_options$serverAccess = options.serverAccessKeys) !== null && _options$serverAccess !== void 0 ? _options$serverAccess : ['authtoken', 'accessKey', 'apikey']
44
44
  }, options);
45
+ /*
46
+ console.log('[CookieStorageAdaptor] Initialized with options:', {
47
+ secure: this.options.secure,
48
+ sameSite: this.options.sameSite,
49
+ path: this.options.path,
50
+ maxAge: this.options.maxAge,
51
+ domain: this.options.domain,
52
+ prefix: this.options.prefix,
53
+ serverAccessKeys: this.options.serverAccessKeys
54
+ })*/
45
55
  }
46
56
 
47
57
  /**
@@ -66,7 +76,8 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
66
76
  cookieName = usePrefix ? this.options.prefix + key : key;
67
77
  name = cookieName + '=';
68
78
  decodedCookie = decodeURIComponent(document.cookie);
69
- cookies = decodedCookie.split(';');
79
+ cookies = decodedCookie.split(';'); //console.log(`[CookieStorageAdaptor] getItem(${key}): looking for cookie "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
80
+ //console.log(`[CookieStorageAdaptor] Available cookies:`, cookies.map(c => c.trim().split('=')[0]).join(', '))
70
81
  _iterator = _createForOfIteratorHelper(cookies);
71
82
  _context.prev = 8;
72
83
  _iterator.s();
@@ -81,9 +92,10 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
81
92
  _context.next = 23;
82
93
  break;
83
94
  }
84
- rawValue = cookie.substring(name.length, cookie.length);
95
+ rawValue = cookie.substring(name.length, cookie.length); //console.log(`[CookieStorageAdaptor] Found cookie "${cookieName}" with raw value:`, rawValue)
96
+ // Handle JSON values (like rbtUser)
85
97
  _context.prev = 15;
86
- parsedValue = JSON.parse(rawValue);
98
+ parsedValue = JSON.parse(rawValue); //console.log(`[CookieStorageAdaptor] getItem(${key}): returning parsed JSON:`, parsedValue)
87
99
  return _context.abrupt("return", parsedValue);
88
100
  case 20:
89
101
  _context.prev = 20;
@@ -137,12 +149,14 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
137
149
  // Check if this key should be stored without prefix for server access
138
150
  usePrefix = !this.options.serverAccessKeys.includes(key);
139
151
  cookieName = usePrefix ? this.options.prefix + key : key; // Stringify objects/arrays like localStorage does
140
- cookieValue = _typeof(value) === 'object' ? JSON.stringify(value) : String(value);
152
+ cookieValue = _typeof(value) === 'object' ? JSON.stringify(value) : String(value); //console.log(`[CookieStorageAdaptor] setItem(${key}): storing as "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
153
+ //console.log(`[CookieStorageAdaptor] Original value:`, value)
154
+ //console.log(`[CookieStorageAdaptor] Cookie value:`, cookieValue)
141
155
  // Build cookie string with security options
142
156
  secureFlag = this.options.secure ? '; Secure' : '';
143
157
  domainFlag = this.options.domain ? "; Domain=".concat(this.options.domain) : '';
144
158
  httpOnlyFlag = this.options.httpOnly ? '; HttpOnly' : '';
145
- cookieString = "".concat(cookieName, "=").concat(encodeURIComponent(cookieValue), "; path=").concat(this.options.path, "; max-age=").concat(this.options.maxAge, "; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag).concat(httpOnlyFlag);
159
+ cookieString = "".concat(cookieName, "=").concat(encodeURIComponent(cookieValue), "; path=").concat(this.options.path, "; max-age=").concat(this.options.maxAge, "; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag).concat(httpOnlyFlag); //console.log(`[CookieStorageAdaptor] Full cookie string:`, cookieString)
146
160
  document.cookie = cookieString;
147
161
 
148
162
  // Verify the cookie was set by immediately reading it back
@@ -184,7 +198,8 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
184
198
  case 2:
185
199
  // Check if this key should be stored without prefix for server access
186
200
  usePrefix = !this.options.serverAccessKeys.includes(key);
187
- cookieName = usePrefix ? this.options.prefix + key : key;
201
+ cookieName = usePrefix ? this.options.prefix + key : key; //console.log(`[CookieStorageAdaptor] removeItem(${key}): removing cookie "${cookieName}" ${usePrefix ? '(prefixed)' : '(server-accessible)'}`)
202
+ // Check if cookie exists before removal
188
203
  _context3.next = 6;
189
204
  return this.getItem(key);
190
205
  case 6:
@@ -192,7 +207,7 @@ var CookieStorageAdaptor = /*#__PURE__*/function () {
192
207
  if (existingValue !== null) {} else {}
193
208
  secureFlag = this.options.secure ? '; Secure' : '';
194
209
  domainFlag = this.options.domain ? "; Domain=".concat(this.options.domain) : '';
195
- removalString = "".concat(cookieName, "=; path=").concat(this.options.path, "; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag);
210
+ removalString = "".concat(cookieName, "=; path=").concat(this.options.path, "; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=").concat(this.options.sameSite).concat(secureFlag).concat(domainFlag); //console.log(`[CookieStorageAdaptor] Removal cookie string:`, removalString)
196
211
  document.cookie = removalString;
197
212
 
198
213
  // Verify the cookie was removed
package/dist/esm/index.js CHANGED
@@ -479,126 +479,203 @@ var Roboto = /*#__PURE__*/function () {
479
479
  }
480
480
  return confirmUserEmail;
481
481
  }() //
482
- // create and upload files
482
+ // Organization management
483
483
  //
484
484
  }, {
485
- key: "createFile",
485
+ key: "loadCurrentOrganization",
486
486
  value: function () {
487
- var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
488
- var data,
487
+ var _loadCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
488
+ var forceReload,
489
489
  _args11 = arguments;
490
490
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
491
491
  while (1) switch (_context11.prev = _context11.next) {
492
492
  case 0:
493
- data = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
494
- return _context11.abrupt("return", this.api.createFile(data));
493
+ forceReload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : false;
494
+ return _context11.abrupt("return", this.api.loadCurrentOrganization(forceReload));
495
495
  case 2:
496
496
  case "end":
497
497
  return _context11.stop();
498
498
  }
499
499
  }, _callee11, this);
500
500
  }));
501
- function createFile() {
502
- return _createFile.apply(this, arguments);
501
+ function loadCurrentOrganization() {
502
+ return _loadCurrentOrganization.apply(this, arguments);
503
503
  }
504
- return createFile;
504
+ return loadCurrentOrganization;
505
505
  }()
506
506
  }, {
507
- key: "loadFile",
507
+ key: "switchOrganization",
508
508
  value: function () {
509
- var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(id) {
509
+ var _switchOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(orgId) {
510
510
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
511
511
  while (1) switch (_context12.prev = _context12.next) {
512
512
  case 0:
513
- return _context12.abrupt("return", this.api.loadFile(id));
513
+ return _context12.abrupt("return", this.api.switchOrganization(orgId));
514
514
  case 1:
515
515
  case "end":
516
516
  return _context12.stop();
517
517
  }
518
518
  }, _callee12, this);
519
519
  }));
520
- function loadFile(_x6) {
521
- return _loadFile.apply(this, arguments);
520
+ function switchOrganization(_x6) {
521
+ return _switchOrganization.apply(this, arguments);
522
522
  }
523
- return loadFile;
523
+ return switchOrganization;
524
524
  }()
525
525
  }, {
526
- key: "loadFiles",
526
+ key: "selectCurrentOrganization",
527
527
  value: function () {
528
- var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(ids) {
528
+ var _selectCurrentOrganization = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(orgId) {
529
+ var role,
530
+ _args13 = arguments;
529
531
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
530
532
  while (1) switch (_context13.prev = _context13.next) {
531
533
  case 0:
532
- return _context13.abrupt("return", this.api.loadFiles(ids));
533
- case 1:
534
+ role = _args13.length > 1 && _args13[1] !== undefined ? _args13[1] : 'owner';
535
+ return _context13.abrupt("return", this.api.selectCurrentOrganization(orgId, role));
536
+ case 2:
534
537
  case "end":
535
538
  return _context13.stop();
536
539
  }
537
540
  }, _callee13, this);
538
541
  }));
539
- function loadFiles(_x7) {
540
- return _loadFiles.apply(this, arguments);
542
+ function selectCurrentOrganization(_x7) {
543
+ return _selectCurrentOrganization.apply(this, arguments);
541
544
  }
542
- return loadFiles;
543
- }() //
545
+ return selectCurrentOrganization;
546
+ }()
547
+ }, {
548
+ key: "getCurrentOrganization",
549
+ value: function getCurrentOrganization() {
550
+ return this.api.getCurrentOrganization();
551
+ }
552
+ }, {
553
+ key: "currentOrganization",
554
+ get: function get() {
555
+ return this.api.currentOrganization;
556
+ }
557
+
544
558
  //
559
+ // create and upload files
545
560
  //
546
561
  }, {
547
- key: "create",
562
+ key: "createFile",
548
563
  value: function () {
549
- var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
564
+ var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
550
565
  var data,
551
566
  _args14 = arguments;
552
567
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
553
568
  while (1) switch (_context14.prev = _context14.next) {
554
569
  case 0:
555
- data = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : {};
556
- return _context14.abrupt("return", this.api.create(params, data));
570
+ data = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
571
+ return _context14.abrupt("return", this.api.createFile(data));
557
572
  case 2:
558
573
  case "end":
559
574
  return _context14.stop();
560
575
  }
561
576
  }, _callee14, this);
562
577
  }));
563
- function create(_x8) {
564
- return _create.apply(this, arguments);
578
+ function createFile() {
579
+ return _createFile.apply(this, arguments);
565
580
  }
566
- return create;
581
+ return createFile;
567
582
  }()
568
583
  }, {
569
- key: "load",
584
+ key: "loadFile",
570
585
  value: function () {
571
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(type, ids, options) {
586
+ var _loadFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(id) {
572
587
  return _regeneratorRuntime().wrap(function _callee15$(_context15) {
573
588
  while (1) switch (_context15.prev = _context15.next) {
574
589
  case 0:
575
- return _context15.abrupt("return", this.api.load(type, ids, options));
590
+ return _context15.abrupt("return", this.api.loadFile(id));
576
591
  case 1:
577
592
  case "end":
578
593
  return _context15.stop();
579
594
  }
580
595
  }, _callee15, this);
581
596
  }));
582
- function load(_x9, _x10, _x11) {
583
- return _load.apply(this, arguments);
597
+ function loadFile(_x8) {
598
+ return _loadFile.apply(this, arguments);
584
599
  }
585
- return load;
600
+ return loadFile;
586
601
  }()
587
602
  }, {
588
- key: "query",
603
+ key: "loadFiles",
589
604
  value: function () {
590
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(type, params) {
605
+ var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(ids) {
591
606
  return _regeneratorRuntime().wrap(function _callee16$(_context16) {
592
607
  while (1) switch (_context16.prev = _context16.next) {
593
608
  case 0:
594
- return _context16.abrupt("return", this.api.query(type, params));
609
+ return _context16.abrupt("return", this.api.loadFiles(ids));
595
610
  case 1:
596
611
  case "end":
597
612
  return _context16.stop();
598
613
  }
599
614
  }, _callee16, this);
600
615
  }));
601
- function query(_x12, _x13) {
616
+ function loadFiles(_x9) {
617
+ return _loadFiles.apply(this, arguments);
618
+ }
619
+ return loadFiles;
620
+ }() //
621
+ //
622
+ //
623
+ }, {
624
+ key: "create",
625
+ value: function () {
626
+ var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
627
+ var data,
628
+ _args17 = arguments;
629
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
630
+ while (1) switch (_context17.prev = _context17.next) {
631
+ case 0:
632
+ data = _args17.length > 1 && _args17[1] !== undefined ? _args17[1] : {};
633
+ return _context17.abrupt("return", this.api.create(params, data));
634
+ case 2:
635
+ case "end":
636
+ return _context17.stop();
637
+ }
638
+ }, _callee17, this);
639
+ }));
640
+ function create(_x10) {
641
+ return _create.apply(this, arguments);
642
+ }
643
+ return create;
644
+ }()
645
+ }, {
646
+ key: "load",
647
+ value: function () {
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) {
651
+ case 0:
652
+ return _context18.abrupt("return", this.api.load(type, ids, options));
653
+ case 1:
654
+ case "end":
655
+ return _context18.stop();
656
+ }
657
+ }, _callee18, this);
658
+ }));
659
+ function load(_x11, _x12, _x13) {
660
+ return _load.apply(this, arguments);
661
+ }
662
+ return load;
663
+ }()
664
+ }, {
665
+ key: "query",
666
+ value: function () {
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) {
670
+ case 0:
671
+ return _context19.abrupt("return", this.api.query(type, params));
672
+ case 1:
673
+ case "end":
674
+ return _context19.stop();
675
+ }
676
+ }, _callee19, this);
677
+ }));
678
+ function query(_x14, _x15) {
602
679
  return _query.apply(this, arguments);
603
680
  }
604
681
  return query;
@@ -620,18 +697,18 @@ var Roboto = /*#__PURE__*/function () {
620
697
  }, {
621
698
  key: "runTask",
622
699
  value: function () {
623
- var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params, callbacks) {
624
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
625
- while (1) switch (_context17.prev = _context17.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) {
626
703
  case 0:
627
- return _context17.abrupt("return", this.api.runTask(params, callbacks));
704
+ return _context20.abrupt("return", this.api.runTask(params, callbacks));
628
705
  case 1:
629
706
  case "end":
630
- return _context17.stop();
707
+ return _context20.stop();
631
708
  }
632
- }, _callee17, this);
709
+ }, _callee20, this);
633
710
  }));
634
- function runTask(_x14, _x15) {
711
+ function runTask(_x16, _x17) {
635
712
  return _runTask.apply(this, arguments);
636
713
  }
637
714
  return runTask;
@@ -639,18 +716,18 @@ var Roboto = /*#__PURE__*/function () {
639
716
  }, {
640
717
  key: "stopJob",
641
718
  value: function () {
642
- var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, callbacks) {
643
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
644
- while (1) switch (_context18.prev = _context18.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) {
645
722
  case 0:
646
- return _context18.abrupt("return", this.api.stopJob(params, callbacks));
723
+ return _context21.abrupt("return", this.api.stopJob(params, callbacks));
647
724
  case 1:
648
725
  case "end":
649
- return _context18.stop();
726
+ return _context21.stop();
650
727
  }
651
- }, _callee18, this);
728
+ }, _callee21, this);
652
729
  }));
653
- function stopJob(_x16, _x17) {
730
+ function stopJob(_x18, _x19) {
654
731
  return _stopJob.apply(this, arguments);
655
732
  }
656
733
  return stopJob;
@@ -658,18 +735,18 @@ var Roboto = /*#__PURE__*/function () {
658
735
  }, {
659
736
  key: "pollTaskProgress",
660
737
  value: function () {
661
- var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
662
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
663
- while (1) switch (_context19.prev = _context19.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) {
664
741
  case 0:
665
- return _context19.abrupt("return", this.api.pollTaskProgress(params));
742
+ return _context22.abrupt("return", this.api.pollTaskProgress(params));
666
743
  case 1:
667
744
  case "end":
668
- return _context19.stop();
745
+ return _context22.stop();
669
746
  }
670
- }, _callee19, this);
747
+ }, _callee22, this);
671
748
  }));
672
- function pollTaskProgress(_x18) {
749
+ function pollTaskProgress(_x20) {
673
750
  return _pollTaskProgress.apply(this, arguments);
674
751
  }
675
752
  return pollTaskProgress;
@@ -734,23 +811,23 @@ var Roboto = /*#__PURE__*/function () {
734
811
  }, {
735
812
  key: "get",
736
813
  value: function () {
737
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(endpoint, params) {
814
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, params) {
738
815
  var result;
739
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
740
- while (1) switch (_context20.prev = _context20.next) {
816
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
817
+ while (1) switch (_context23.prev = _context23.next) {
741
818
  case 0:
742
- _context20.next = 2;
819
+ _context23.next = 2;
743
820
  return this.api.get(endpoint, params);
744
821
  case 2:
745
- result = _context20.sent;
746
- return _context20.abrupt("return", this._autoWrapResponse(result));
822
+ result = _context23.sent;
823
+ return _context23.abrupt("return", this._autoWrapResponse(result));
747
824
  case 4:
748
825
  case "end":
749
- return _context20.stop();
826
+ return _context23.stop();
750
827
  }
751
- }, _callee20, this);
828
+ }, _callee23, this);
752
829
  }));
753
- function get(_x19, _x20) {
830
+ function get(_x21, _x22) {
754
831
  return _get.apply(this, arguments);
755
832
  }
756
833
  return get;
@@ -758,23 +835,23 @@ var Roboto = /*#__PURE__*/function () {
758
835
  }, {
759
836
  key: "post",
760
837
  value: function () {
761
- var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(endpoint, data) {
838
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(endpoint, data) {
762
839
  var result;
763
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
764
- while (1) switch (_context21.prev = _context21.next) {
840
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
841
+ while (1) switch (_context24.prev = _context24.next) {
765
842
  case 0:
766
- _context21.next = 2;
843
+ _context24.next = 2;
767
844
  return this.api.post(endpoint, data);
768
845
  case 2:
769
- result = _context21.sent;
770
- return _context21.abrupt("return", this._autoWrapResponse(result));
846
+ result = _context24.sent;
847
+ return _context24.abrupt("return", this._autoWrapResponse(result));
771
848
  case 4:
772
849
  case "end":
773
- return _context21.stop();
850
+ return _context24.stop();
774
851
  }
775
- }, _callee21, this);
852
+ }, _callee24, this);
776
853
  }));
777
- function post(_x21, _x22) {
854
+ function post(_x23, _x24) {
778
855
  return _post.apply(this, arguments);
779
856
  }
780
857
  return post;