roboto-js 1.1.5 → 1.1.6
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 +81 -62
- package/dist/cjs/rbt_api.cjs +199 -162
- package/dist/esm/index.js +81 -62
- package/dist/esm/rbt_api.js +199 -162
- package/package.json +1 -1
- package/src/index.js +6 -0
- package/src/rbt_api.js +20 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -158,19 +158,38 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
158
158
|
return registerUser;
|
|
159
159
|
}()
|
|
160
160
|
}, {
|
|
161
|
-
key: "
|
|
161
|
+
key: "loadUser",
|
|
162
162
|
value: function () {
|
|
163
|
-
var
|
|
163
|
+
var _loadUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
|
|
164
164
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
165
165
|
while (1) switch (_context5.prev = _context5.next) {
|
|
166
166
|
case 0:
|
|
167
|
-
return _context5.abrupt("return", this.api.
|
|
167
|
+
return _context5.abrupt("return", this.api.loadUser(params));
|
|
168
168
|
case 1:
|
|
169
169
|
case "end":
|
|
170
170
|
return _context5.stop();
|
|
171
171
|
}
|
|
172
172
|
}, _callee5, this);
|
|
173
173
|
}));
|
|
174
|
+
function loadUser(_x3) {
|
|
175
|
+
return _loadUser.apply(this, arguments);
|
|
176
|
+
}
|
|
177
|
+
return loadUser;
|
|
178
|
+
}()
|
|
179
|
+
}, {
|
|
180
|
+
key: "loadCurrentUser",
|
|
181
|
+
value: function () {
|
|
182
|
+
var _loadCurrentUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
183
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
184
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
185
|
+
case 0:
|
|
186
|
+
return _context6.abrupt("return", this.api.loadCurrentUser());
|
|
187
|
+
case 1:
|
|
188
|
+
case "end":
|
|
189
|
+
return _context6.stop();
|
|
190
|
+
}
|
|
191
|
+
}, _callee6, this);
|
|
192
|
+
}));
|
|
174
193
|
function loadCurrentUser() {
|
|
175
194
|
return _loadCurrentUser.apply(this, arguments);
|
|
176
195
|
}
|
|
@@ -181,19 +200,19 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
200
|
}, {
|
|
182
201
|
key: "createFile",
|
|
183
202
|
value: function () {
|
|
184
|
-
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
203
|
+
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
185
204
|
var data,
|
|
186
|
-
|
|
187
|
-
return _regeneratorRuntime().wrap(function
|
|
188
|
-
while (1) switch (
|
|
205
|
+
_args7 = arguments;
|
|
206
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
207
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
189
208
|
case 0:
|
|
190
|
-
data =
|
|
191
|
-
return
|
|
209
|
+
data = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
210
|
+
return _context7.abrupt("return", this.api.createFile(data));
|
|
192
211
|
case 2:
|
|
193
212
|
case "end":
|
|
194
|
-
return
|
|
213
|
+
return _context7.stop();
|
|
195
214
|
}
|
|
196
|
-
},
|
|
215
|
+
}, _callee7, this);
|
|
197
216
|
}));
|
|
198
217
|
function createFile() {
|
|
199
218
|
return _createFile.apply(this, arguments);
|
|
@@ -205,21 +224,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
224
|
}, {
|
|
206
225
|
key: "create",
|
|
207
226
|
value: function () {
|
|
208
|
-
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
227
|
+
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params) {
|
|
209
228
|
var data,
|
|
210
|
-
|
|
211
|
-
return _regeneratorRuntime().wrap(function
|
|
212
|
-
while (1) switch (
|
|
229
|
+
_args8 = arguments;
|
|
230
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
231
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
213
232
|
case 0:
|
|
214
|
-
data =
|
|
215
|
-
return
|
|
233
|
+
data = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
|
|
234
|
+
return _context8.abrupt("return", this.api.create(params, data));
|
|
216
235
|
case 2:
|
|
217
236
|
case "end":
|
|
218
|
-
return
|
|
237
|
+
return _context8.stop();
|
|
219
238
|
}
|
|
220
|
-
},
|
|
239
|
+
}, _callee8, this);
|
|
221
240
|
}));
|
|
222
|
-
function create(
|
|
241
|
+
function create(_x4) {
|
|
223
242
|
return _create.apply(this, arguments);
|
|
224
243
|
}
|
|
225
244
|
return create;
|
|
@@ -227,18 +246,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
246
|
}, {
|
|
228
247
|
key: "load",
|
|
229
248
|
value: function () {
|
|
230
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
231
|
-
return _regeneratorRuntime().wrap(function
|
|
232
|
-
while (1) switch (
|
|
249
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(type, ids, options) {
|
|
250
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
251
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
233
252
|
case 0:
|
|
234
|
-
return
|
|
253
|
+
return _context9.abrupt("return", this.api.load(type, ids, options));
|
|
235
254
|
case 1:
|
|
236
255
|
case "end":
|
|
237
|
-
return
|
|
256
|
+
return _context9.stop();
|
|
238
257
|
}
|
|
239
|
-
},
|
|
258
|
+
}, _callee9, this);
|
|
240
259
|
}));
|
|
241
|
-
function load(
|
|
260
|
+
function load(_x5, _x6, _x7) {
|
|
242
261
|
return _load.apply(this, arguments);
|
|
243
262
|
}
|
|
244
263
|
return load;
|
|
@@ -246,18 +265,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
246
265
|
}, {
|
|
247
266
|
key: "query",
|
|
248
267
|
value: function () {
|
|
249
|
-
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
250
|
-
return _regeneratorRuntime().wrap(function
|
|
251
|
-
while (1) switch (
|
|
268
|
+
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(type, params) {
|
|
269
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
270
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
252
271
|
case 0:
|
|
253
|
-
return
|
|
272
|
+
return _context10.abrupt("return", this.api.query(type, params));
|
|
254
273
|
case 1:
|
|
255
274
|
case "end":
|
|
256
|
-
return
|
|
275
|
+
return _context10.stop();
|
|
257
276
|
}
|
|
258
|
-
},
|
|
277
|
+
}, _callee10, this);
|
|
259
278
|
}));
|
|
260
|
-
function query(
|
|
279
|
+
function query(_x8, _x9) {
|
|
261
280
|
return _query.apply(this, arguments);
|
|
262
281
|
}
|
|
263
282
|
return query;
|
|
@@ -267,18 +286,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
286
|
}, {
|
|
268
287
|
key: "runTask",
|
|
269
288
|
value: function () {
|
|
270
|
-
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
271
|
-
return _regeneratorRuntime().wrap(function
|
|
272
|
-
while (1) switch (
|
|
289
|
+
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(params, callbacks) {
|
|
290
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
291
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
273
292
|
case 0:
|
|
274
|
-
return
|
|
293
|
+
return _context11.abrupt("return", this.api.runTask(params, callbacks));
|
|
275
294
|
case 1:
|
|
276
295
|
case "end":
|
|
277
|
-
return
|
|
296
|
+
return _context11.stop();
|
|
278
297
|
}
|
|
279
|
-
},
|
|
298
|
+
}, _callee11, this);
|
|
280
299
|
}));
|
|
281
|
-
function runTask(
|
|
300
|
+
function runTask(_x10, _x11) {
|
|
282
301
|
return _runTask.apply(this, arguments);
|
|
283
302
|
}
|
|
284
303
|
return runTask;
|
|
@@ -286,18 +305,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
305
|
}, {
|
|
287
306
|
key: "pollTaskProgress",
|
|
288
307
|
value: function () {
|
|
289
|
-
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
290
|
-
return _regeneratorRuntime().wrap(function
|
|
291
|
-
while (1) switch (
|
|
308
|
+
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params) {
|
|
309
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
310
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
292
311
|
case 0:
|
|
293
|
-
return
|
|
312
|
+
return _context12.abrupt("return", this.api.pollTaskProgress(params));
|
|
294
313
|
case 1:
|
|
295
314
|
case "end":
|
|
296
|
-
return
|
|
315
|
+
return _context12.stop();
|
|
297
316
|
}
|
|
298
|
-
},
|
|
317
|
+
}, _callee12, this);
|
|
299
318
|
}));
|
|
300
|
-
function pollTaskProgress(
|
|
319
|
+
function pollTaskProgress(_x12) {
|
|
301
320
|
return _pollTaskProgress.apply(this, arguments);
|
|
302
321
|
}
|
|
303
322
|
return pollTaskProgress;
|
|
@@ -307,18 +326,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
307
326
|
}, {
|
|
308
327
|
key: "get",
|
|
309
328
|
value: function () {
|
|
310
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
311
|
-
return _regeneratorRuntime().wrap(function
|
|
312
|
-
while (1) switch (
|
|
329
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(endpoint, params) {
|
|
330
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
331
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
313
332
|
case 0:
|
|
314
|
-
return
|
|
333
|
+
return _context13.abrupt("return", this.api.get(endpoint, params));
|
|
315
334
|
case 1:
|
|
316
335
|
case "end":
|
|
317
|
-
return
|
|
336
|
+
return _context13.stop();
|
|
318
337
|
}
|
|
319
|
-
},
|
|
338
|
+
}, _callee13, this);
|
|
320
339
|
}));
|
|
321
|
-
function get(
|
|
340
|
+
function get(_x13, _x14) {
|
|
322
341
|
return _get.apply(this, arguments);
|
|
323
342
|
}
|
|
324
343
|
return get;
|
|
@@ -326,18 +345,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
326
345
|
}, {
|
|
327
346
|
key: "post",
|
|
328
347
|
value: function () {
|
|
329
|
-
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
330
|
-
return _regeneratorRuntime().wrap(function
|
|
331
|
-
while (1) switch (
|
|
348
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(endpoint, data) {
|
|
349
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
350
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
332
351
|
case 0:
|
|
333
|
-
return
|
|
352
|
+
return _context14.abrupt("return", this.api.post(endpoint, data));
|
|
334
353
|
case 1:
|
|
335
354
|
case "end":
|
|
336
|
-
return
|
|
355
|
+
return _context14.stop();
|
|
337
356
|
}
|
|
338
|
-
},
|
|
357
|
+
}, _callee14, this);
|
|
339
358
|
}));
|
|
340
|
-
function post(
|
|
359
|
+
function post(_x15, _x16) {
|
|
341
360
|
return _post.apply(this, arguments);
|
|
342
361
|
}
|
|
343
362
|
return post;
|