roboto-js 1.4.50 → 1.5.0
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 +77 -58
- package/dist/cjs/rbt_api.cjs +184 -144
- package/dist/cjs/rbt_file.cjs +71 -425
- package/dist/esm/index.js +3 -0
- package/dist/esm/rbt_api.js +18 -0
- package/dist/esm/rbt_file.js +61 -170
- package/package.json +3 -2
- package/src/index.js +3 -0
- package/src/rbt_api.js +21 -0
- package/src/rbt_file.js +65 -211
package/dist/cjs/index.cjs
CHANGED
|
@@ -344,27 +344,46 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
344
344
|
return _loadFile.apply(this, arguments);
|
|
345
345
|
}
|
|
346
346
|
return loadFile;
|
|
347
|
+
}()
|
|
348
|
+
}, {
|
|
349
|
+
key: "loadFiles",
|
|
350
|
+
value: function () {
|
|
351
|
+
var _loadFiles = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(ids) {
|
|
352
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
353
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
354
|
+
case 0:
|
|
355
|
+
return _context13.abrupt("return", this.api.loadFiles(ids));
|
|
356
|
+
case 1:
|
|
357
|
+
case "end":
|
|
358
|
+
return _context13.stop();
|
|
359
|
+
}
|
|
360
|
+
}, _callee13, this);
|
|
361
|
+
}));
|
|
362
|
+
function loadFiles(_x7) {
|
|
363
|
+
return _loadFiles.apply(this, arguments);
|
|
364
|
+
}
|
|
365
|
+
return loadFiles;
|
|
347
366
|
}() //
|
|
348
367
|
//
|
|
349
368
|
//
|
|
350
369
|
}, {
|
|
351
370
|
key: "create",
|
|
352
371
|
value: function () {
|
|
353
|
-
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
372
|
+
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(params) {
|
|
354
373
|
var data,
|
|
355
|
-
|
|
356
|
-
return _regeneratorRuntime().wrap(function
|
|
357
|
-
while (1) switch (
|
|
374
|
+
_args14 = arguments;
|
|
375
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
376
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
358
377
|
case 0:
|
|
359
|
-
data =
|
|
360
|
-
return
|
|
378
|
+
data = _args14.length > 1 && _args14[1] !== undefined ? _args14[1] : {};
|
|
379
|
+
return _context14.abrupt("return", this.api.create(params, data));
|
|
361
380
|
case 2:
|
|
362
381
|
case "end":
|
|
363
|
-
return
|
|
382
|
+
return _context14.stop();
|
|
364
383
|
}
|
|
365
|
-
},
|
|
384
|
+
}, _callee14, this);
|
|
366
385
|
}));
|
|
367
|
-
function create(
|
|
386
|
+
function create(_x8) {
|
|
368
387
|
return _create.apply(this, arguments);
|
|
369
388
|
}
|
|
370
389
|
return create;
|
|
@@ -372,18 +391,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
372
391
|
}, {
|
|
373
392
|
key: "load",
|
|
374
393
|
value: function () {
|
|
375
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
376
|
-
return _regeneratorRuntime().wrap(function
|
|
377
|
-
while (1) switch (
|
|
394
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(type, ids, options) {
|
|
395
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
396
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
378
397
|
case 0:
|
|
379
|
-
return
|
|
398
|
+
return _context15.abrupt("return", this.api.load(type, ids, options));
|
|
380
399
|
case 1:
|
|
381
400
|
case "end":
|
|
382
|
-
return
|
|
401
|
+
return _context15.stop();
|
|
383
402
|
}
|
|
384
|
-
},
|
|
403
|
+
}, _callee15, this);
|
|
385
404
|
}));
|
|
386
|
-
function load(
|
|
405
|
+
function load(_x9, _x10, _x11) {
|
|
387
406
|
return _load.apply(this, arguments);
|
|
388
407
|
}
|
|
389
408
|
return load;
|
|
@@ -391,18 +410,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
391
410
|
}, {
|
|
392
411
|
key: "query",
|
|
393
412
|
value: function () {
|
|
394
|
-
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
395
|
-
return _regeneratorRuntime().wrap(function
|
|
396
|
-
while (1) switch (
|
|
413
|
+
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(type, params) {
|
|
414
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
415
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
397
416
|
case 0:
|
|
398
|
-
return
|
|
417
|
+
return _context16.abrupt("return", this.api.query(type, params));
|
|
399
418
|
case 1:
|
|
400
419
|
case "end":
|
|
401
|
-
return
|
|
420
|
+
return _context16.stop();
|
|
402
421
|
}
|
|
403
|
-
},
|
|
422
|
+
}, _callee16, this);
|
|
404
423
|
}));
|
|
405
|
-
function query(
|
|
424
|
+
function query(_x12, _x13) {
|
|
406
425
|
return _query.apply(this, arguments);
|
|
407
426
|
}
|
|
408
427
|
return query;
|
|
@@ -412,18 +431,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
412
431
|
}, {
|
|
413
432
|
key: "runTask",
|
|
414
433
|
value: function () {
|
|
415
|
-
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
416
|
-
return _regeneratorRuntime().wrap(function
|
|
417
|
-
while (1) switch (
|
|
434
|
+
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params, callbacks) {
|
|
435
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
436
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
418
437
|
case 0:
|
|
419
|
-
return
|
|
438
|
+
return _context17.abrupt("return", this.api.runTask(params, callbacks));
|
|
420
439
|
case 1:
|
|
421
440
|
case "end":
|
|
422
|
-
return
|
|
441
|
+
return _context17.stop();
|
|
423
442
|
}
|
|
424
|
-
},
|
|
443
|
+
}, _callee17, this);
|
|
425
444
|
}));
|
|
426
|
-
function runTask(
|
|
445
|
+
function runTask(_x14, _x15) {
|
|
427
446
|
return _runTask.apply(this, arguments);
|
|
428
447
|
}
|
|
429
448
|
return runTask;
|
|
@@ -431,18 +450,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
431
450
|
}, {
|
|
432
451
|
key: "stopJob",
|
|
433
452
|
value: function () {
|
|
434
|
-
var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
435
|
-
return _regeneratorRuntime().wrap(function
|
|
436
|
-
while (1) switch (
|
|
453
|
+
var _stopJob = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, callbacks) {
|
|
454
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
455
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
437
456
|
case 0:
|
|
438
|
-
return
|
|
457
|
+
return _context18.abrupt("return", this.api.stopJob(params, callbacks));
|
|
439
458
|
case 1:
|
|
440
459
|
case "end":
|
|
441
|
-
return
|
|
460
|
+
return _context18.stop();
|
|
442
461
|
}
|
|
443
|
-
},
|
|
462
|
+
}, _callee18, this);
|
|
444
463
|
}));
|
|
445
|
-
function stopJob(
|
|
464
|
+
function stopJob(_x16, _x17) {
|
|
446
465
|
return _stopJob.apply(this, arguments);
|
|
447
466
|
}
|
|
448
467
|
return stopJob;
|
|
@@ -450,18 +469,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
450
469
|
}, {
|
|
451
470
|
key: "pollTaskProgress",
|
|
452
471
|
value: function () {
|
|
453
|
-
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
454
|
-
return _regeneratorRuntime().wrap(function
|
|
455
|
-
while (1) switch (
|
|
472
|
+
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
|
|
473
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
474
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
456
475
|
case 0:
|
|
457
|
-
return
|
|
476
|
+
return _context19.abrupt("return", this.api.pollTaskProgress(params));
|
|
458
477
|
case 1:
|
|
459
478
|
case "end":
|
|
460
|
-
return
|
|
479
|
+
return _context19.stop();
|
|
461
480
|
}
|
|
462
|
-
},
|
|
481
|
+
}, _callee19, this);
|
|
463
482
|
}));
|
|
464
|
-
function pollTaskProgress(
|
|
483
|
+
function pollTaskProgress(_x18) {
|
|
465
484
|
return _pollTaskProgress.apply(this, arguments);
|
|
466
485
|
}
|
|
467
486
|
return pollTaskProgress;
|
|
@@ -471,18 +490,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
471
490
|
}, {
|
|
472
491
|
key: "get",
|
|
473
492
|
value: function () {
|
|
474
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
475
|
-
return _regeneratorRuntime().wrap(function
|
|
476
|
-
while (1) switch (
|
|
493
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(endpoint, params) {
|
|
494
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
495
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
477
496
|
case 0:
|
|
478
|
-
return
|
|
497
|
+
return _context20.abrupt("return", this.api.get(endpoint, params));
|
|
479
498
|
case 1:
|
|
480
499
|
case "end":
|
|
481
|
-
return
|
|
500
|
+
return _context20.stop();
|
|
482
501
|
}
|
|
483
|
-
},
|
|
502
|
+
}, _callee20, this);
|
|
484
503
|
}));
|
|
485
|
-
function get(
|
|
504
|
+
function get(_x19, _x20) {
|
|
486
505
|
return _get.apply(this, arguments);
|
|
487
506
|
}
|
|
488
507
|
return get;
|
|
@@ -490,18 +509,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
490
509
|
}, {
|
|
491
510
|
key: "post",
|
|
492
511
|
value: function () {
|
|
493
|
-
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
494
|
-
return _regeneratorRuntime().wrap(function
|
|
495
|
-
while (1) switch (
|
|
512
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(endpoint, data) {
|
|
513
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
514
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
496
515
|
case 0:
|
|
497
|
-
return
|
|
516
|
+
return _context21.abrupt("return", this.api.post(endpoint, data));
|
|
498
517
|
case 1:
|
|
499
518
|
case "end":
|
|
500
|
-
return
|
|
519
|
+
return _context21.stop();
|
|
501
520
|
}
|
|
502
|
-
},
|
|
521
|
+
}, _callee21, this);
|
|
503
522
|
}));
|
|
504
|
-
function post(
|
|
523
|
+
function post(_x21, _x22) {
|
|
505
524
|
return _post.apply(this, arguments);
|
|
506
525
|
}
|
|
507
526
|
return post;
|