roboto-js 1.9.5 → 1.9.7

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.7
10
+ var version = exports.version = '1.9.7';
@@ -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,64 +479,119 @@ 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: "getCurrentOrganization",
527
+ value: function getCurrentOrganization() {
528
+ return this.api.getCurrentOrganization();
529
+ }
530
+ }, {
531
+ key: "currentOrganization",
532
+ get: function get() {
533
+ return this.api.currentOrganization;
534
+ }
535
+
536
+ //
537
+ // create and upload files
538
+ //
539
+ }, {
540
+ key: "createFile",
527
541
  value: function () {
528
- var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(ids) {
542
+ var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
543
+ var data,
544
+ _args13 = arguments;
529
545
  return _regeneratorRuntime().wrap(function _callee13$(_context13) {
530
546
  while (1) switch (_context13.prev = _context13.next) {
531
547
  case 0:
532
- return _context13.abrupt("return", this.api.loadFiles(ids));
533
- case 1:
548
+ data = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
549
+ return _context13.abrupt("return", this.api.createFile(data));
550
+ case 2:
534
551
  case "end":
535
552
  return _context13.stop();
536
553
  }
537
554
  }, _callee13, this);
538
555
  }));
539
- function loadFiles(_x7) {
556
+ function createFile() {
557
+ return _createFile.apply(this, arguments);
558
+ }
559
+ return createFile;
560
+ }()
561
+ }, {
562
+ key: "loadFile",
563
+ 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) {
567
+ case 0:
568
+ return _context14.abrupt("return", this.api.loadFile(id));
569
+ case 1:
570
+ case "end":
571
+ return _context14.stop();
572
+ }
573
+ }, _callee14, this);
574
+ }));
575
+ function loadFile(_x7) {
576
+ return _loadFile.apply(this, arguments);
577
+ }
578
+ return loadFile;
579
+ }()
580
+ }, {
581
+ key: "loadFiles",
582
+ 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) {
586
+ case 0:
587
+ return _context15.abrupt("return", this.api.loadFiles(ids));
588
+ case 1:
589
+ case "end":
590
+ return _context15.stop();
591
+ }
592
+ }, _callee15, this);
593
+ }));
594
+ function loadFiles(_x8) {
540
595
  return _loadFiles.apply(this, arguments);
541
596
  }
542
597
  return loadFiles;
@@ -546,21 +601,21 @@ var Roboto = /*#__PURE__*/function () {
546
601
  }, {
547
602
  key: "create",
548
603
  value: function () {
549
- var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
604
+ var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
550
605
  var data,
551
- _args14 = arguments;
552
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
553
- while (1) switch (_context14.prev = _context14.next) {
606
+ _args16 = arguments;
607
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
608
+ while (1) switch (_context16.prev = _context16.next) {
554
609
  case 0:
555
- data = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : {};
556
- return _context14.abrupt("return", this.api.create(params, data));
610
+ data = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : {};
611
+ return _context16.abrupt("return", this.api.create(params, data));
557
612
  case 2:
558
613
  case "end":
559
- return _context14.stop();
614
+ return _context16.stop();
560
615
  }
561
- }, _callee14, this);
616
+ }, _callee16, this);
562
617
  }));
563
- function create(_x8) {
618
+ function create(_x9) {
564
619
  return _create.apply(this, arguments);
565
620
  }
566
621
  return create;
@@ -568,18 +623,18 @@ var Roboto = /*#__PURE__*/function () {
568
623
  }, {
569
624
  key: "load",
570
625
  value: function () {
571
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(type, ids, options) {
572
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
573
- while (1) switch (_context15.prev = _context15.next) {
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) {
574
629
  case 0:
575
- return _context15.abrupt("return", this.api.load(type, ids, options));
630
+ return _context17.abrupt("return", this.api.load(type, ids, options));
576
631
  case 1:
577
632
  case "end":
578
- return _context15.stop();
633
+ return _context17.stop();
579
634
  }
580
- }, _callee15, this);
635
+ }, _callee17, this);
581
636
  }));
582
- function load(_x9, _x10, _x11) {
637
+ function load(_x10, _x11, _x12) {
583
638
  return _load.apply(this, arguments);
584
639
  }
585
640
  return load;
@@ -587,18 +642,18 @@ var Roboto = /*#__PURE__*/function () {
587
642
  }, {
588
643
  key: "query",
589
644
  value: function () {
590
- var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(type, params) {
591
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
592
- while (1) switch (_context16.prev = _context16.next) {
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) {
593
648
  case 0:
594
- return _context16.abrupt("return", this.api.query(type, params));
649
+ return _context18.abrupt("return", this.api.query(type, params));
595
650
  case 1:
596
651
  case "end":
597
- return _context16.stop();
652
+ return _context18.stop();
598
653
  }
599
- }, _callee16, this);
654
+ }, _callee18, this);
600
655
  }));
601
- function query(_x12, _x13) {
656
+ function query(_x13, _x14) {
602
657
  return _query.apply(this, arguments);
603
658
  }
604
659
  return query;
@@ -620,18 +675,18 @@ var Roboto = /*#__PURE__*/function () {
620
675
  }, {
621
676
  key: "runTask",
622
677
  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) {
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) {
626
681
  case 0:
627
- return _context17.abrupt("return", this.api.runTask(params, callbacks));
682
+ return _context19.abrupt("return", this.api.runTask(params, callbacks));
628
683
  case 1:
629
684
  case "end":
630
- return _context17.stop();
685
+ return _context19.stop();
631
686
  }
632
- }, _callee17, this);
687
+ }, _callee19, this);
633
688
  }));
634
- function runTask(_x14, _x15) {
689
+ function runTask(_x15, _x16) {
635
690
  return _runTask.apply(this, arguments);
636
691
  }
637
692
  return runTask;
@@ -639,18 +694,18 @@ var Roboto = /*#__PURE__*/function () {
639
694
  }, {
640
695
  key: "stopJob",
641
696
  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) {
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) {
645
700
  case 0:
646
- return _context18.abrupt("return", this.api.stopJob(params, callbacks));
701
+ return _context20.abrupt("return", this.api.stopJob(params, callbacks));
647
702
  case 1:
648
703
  case "end":
649
- return _context18.stop();
704
+ return _context20.stop();
650
705
  }
651
- }, _callee18, this);
706
+ }, _callee20, this);
652
707
  }));
653
- function stopJob(_x16, _x17) {
708
+ function stopJob(_x17, _x18) {
654
709
  return _stopJob.apply(this, arguments);
655
710
  }
656
711
  return stopJob;
@@ -658,18 +713,18 @@ var Roboto = /*#__PURE__*/function () {
658
713
  }, {
659
714
  key: "pollTaskProgress",
660
715
  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) {
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) {
664
719
  case 0:
665
- return _context19.abrupt("return", this.api.pollTaskProgress(params));
720
+ return _context21.abrupt("return", this.api.pollTaskProgress(params));
666
721
  case 1:
667
722
  case "end":
668
- return _context19.stop();
723
+ return _context21.stop();
669
724
  }
670
- }, _callee19, this);
725
+ }, _callee21, this);
671
726
  }));
672
- function pollTaskProgress(_x18) {
727
+ function pollTaskProgress(_x19) {
673
728
  return _pollTaskProgress.apply(this, arguments);
674
729
  }
675
730
  return pollTaskProgress;
@@ -734,23 +789,23 @@ var Roboto = /*#__PURE__*/function () {
734
789
  }, {
735
790
  key: "get",
736
791
  value: function () {
737
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(endpoint, params) {
792
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(endpoint, params) {
738
793
  var result;
739
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
740
- while (1) switch (_context20.prev = _context20.next) {
794
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
795
+ while (1) switch (_context22.prev = _context22.next) {
741
796
  case 0:
742
- _context20.next = 2;
797
+ _context22.next = 2;
743
798
  return this.api.get(endpoint, params);
744
799
  case 2:
745
- result = _context20.sent;
746
- return _context20.abrupt("return", this._autoWrapResponse(result));
800
+ result = _context22.sent;
801
+ return _context22.abrupt("return", this._autoWrapResponse(result));
747
802
  case 4:
748
803
  case "end":
749
- return _context20.stop();
804
+ return _context22.stop();
750
805
  }
751
- }, _callee20, this);
806
+ }, _callee22, this);
752
807
  }));
753
- function get(_x19, _x20) {
808
+ function get(_x20, _x21) {
754
809
  return _get.apply(this, arguments);
755
810
  }
756
811
  return get;
@@ -758,23 +813,23 @@ var Roboto = /*#__PURE__*/function () {
758
813
  }, {
759
814
  key: "post",
760
815
  value: function () {
761
- var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(endpoint, data) {
816
+ var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(endpoint, data) {
762
817
  var result;
763
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
764
- while (1) switch (_context21.prev = _context21.next) {
818
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
819
+ while (1) switch (_context23.prev = _context23.next) {
765
820
  case 0:
766
- _context21.next = 2;
821
+ _context23.next = 2;
767
822
  return this.api.post(endpoint, data);
768
823
  case 2:
769
- result = _context21.sent;
770
- return _context21.abrupt("return", this._autoWrapResponse(result));
824
+ result = _context23.sent;
825
+ return _context23.abrupt("return", this._autoWrapResponse(result));
771
826
  case 4:
772
827
  case "end":
773
- return _context21.stop();
828
+ return _context23.stop();
774
829
  }
775
- }, _callee21, this);
830
+ }, _callee23, this);
776
831
  }));
777
- function post(_x21, _x22) {
832
+ function post(_x22, _x23) {
778
833
  return _post.apply(this, arguments);
779
834
  }
780
835
  return post;