roboto-js 1.1.6 → 1.1.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.
- package/dist/cjs/index.cjs +78 -59
- package/dist/cjs/rbt_api.cjs +210 -178
- package/dist/esm/index.js +78 -59
- package/dist/esm/rbt_api.js +210 -178
- package/package.json +1 -1
- package/src/index.js +3 -0
- package/src/rbt_api.js +21 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -194,25 +194,44 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
194
|
return _loadCurrentUser.apply(this, arguments);
|
|
195
195
|
}
|
|
196
196
|
return loadCurrentUser;
|
|
197
|
+
}()
|
|
198
|
+
}, {
|
|
199
|
+
key: "confirmUserEmail",
|
|
200
|
+
value: function () {
|
|
201
|
+
var _confirmUserEmail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(params) {
|
|
202
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
203
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
204
|
+
case 0:
|
|
205
|
+
return _context7.abrupt("return", this.api.confirmUserEmail(params));
|
|
206
|
+
case 1:
|
|
207
|
+
case "end":
|
|
208
|
+
return _context7.stop();
|
|
209
|
+
}
|
|
210
|
+
}, _callee7, this);
|
|
211
|
+
}));
|
|
212
|
+
function confirmUserEmail(_x4) {
|
|
213
|
+
return _confirmUserEmail.apply(this, arguments);
|
|
214
|
+
}
|
|
215
|
+
return confirmUserEmail;
|
|
197
216
|
}() //
|
|
198
217
|
// create and upload files
|
|
199
218
|
//
|
|
200
219
|
}, {
|
|
201
220
|
key: "createFile",
|
|
202
221
|
value: function () {
|
|
203
|
-
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
222
|
+
var _createFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
204
223
|
var data,
|
|
205
|
-
|
|
206
|
-
return _regeneratorRuntime().wrap(function
|
|
207
|
-
while (1) switch (
|
|
224
|
+
_args8 = arguments;
|
|
225
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
226
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
208
227
|
case 0:
|
|
209
|
-
data =
|
|
210
|
-
return
|
|
228
|
+
data = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
229
|
+
return _context8.abrupt("return", this.api.createFile(data));
|
|
211
230
|
case 2:
|
|
212
231
|
case "end":
|
|
213
|
-
return
|
|
232
|
+
return _context8.stop();
|
|
214
233
|
}
|
|
215
|
-
},
|
|
234
|
+
}, _callee8, this);
|
|
216
235
|
}));
|
|
217
236
|
function createFile() {
|
|
218
237
|
return _createFile.apply(this, arguments);
|
|
@@ -224,21 +243,21 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
224
243
|
}, {
|
|
225
244
|
key: "create",
|
|
226
245
|
value: function () {
|
|
227
|
-
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
246
|
+
var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(params) {
|
|
228
247
|
var data,
|
|
229
|
-
|
|
230
|
-
return _regeneratorRuntime().wrap(function
|
|
231
|
-
while (1) switch (
|
|
248
|
+
_args9 = arguments;
|
|
249
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
250
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
232
251
|
case 0:
|
|
233
|
-
data =
|
|
234
|
-
return
|
|
252
|
+
data = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {};
|
|
253
|
+
return _context9.abrupt("return", this.api.create(params, data));
|
|
235
254
|
case 2:
|
|
236
255
|
case "end":
|
|
237
|
-
return
|
|
256
|
+
return _context9.stop();
|
|
238
257
|
}
|
|
239
|
-
},
|
|
258
|
+
}, _callee9, this);
|
|
240
259
|
}));
|
|
241
|
-
function create(
|
|
260
|
+
function create(_x5) {
|
|
242
261
|
return _create.apply(this, arguments);
|
|
243
262
|
}
|
|
244
263
|
return create;
|
|
@@ -246,18 +265,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
246
265
|
}, {
|
|
247
266
|
key: "load",
|
|
248
267
|
value: function () {
|
|
249
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
250
|
-
return _regeneratorRuntime().wrap(function
|
|
251
|
-
while (1) switch (
|
|
268
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(type, ids, options) {
|
|
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.load(type, ids, options));
|
|
254
273
|
case 1:
|
|
255
274
|
case "end":
|
|
256
|
-
return
|
|
275
|
+
return _context10.stop();
|
|
257
276
|
}
|
|
258
|
-
},
|
|
277
|
+
}, _callee10, this);
|
|
259
278
|
}));
|
|
260
|
-
function load(
|
|
279
|
+
function load(_x6, _x7, _x8) {
|
|
261
280
|
return _load.apply(this, arguments);
|
|
262
281
|
}
|
|
263
282
|
return load;
|
|
@@ -265,18 +284,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
265
284
|
}, {
|
|
266
285
|
key: "query",
|
|
267
286
|
value: function () {
|
|
268
|
-
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
269
|
-
return _regeneratorRuntime().wrap(function
|
|
270
|
-
while (1) switch (
|
|
287
|
+
var _query = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(type, params) {
|
|
288
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
289
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
271
290
|
case 0:
|
|
272
|
-
return
|
|
291
|
+
return _context11.abrupt("return", this.api.query(type, params));
|
|
273
292
|
case 1:
|
|
274
293
|
case "end":
|
|
275
|
-
return
|
|
294
|
+
return _context11.stop();
|
|
276
295
|
}
|
|
277
|
-
},
|
|
296
|
+
}, _callee11, this);
|
|
278
297
|
}));
|
|
279
|
-
function query(
|
|
298
|
+
function query(_x9, _x10) {
|
|
280
299
|
return _query.apply(this, arguments);
|
|
281
300
|
}
|
|
282
301
|
return query;
|
|
@@ -286,18 +305,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
305
|
}, {
|
|
287
306
|
key: "runTask",
|
|
288
307
|
value: function () {
|
|
289
|
-
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
290
|
-
return _regeneratorRuntime().wrap(function
|
|
291
|
-
while (1) switch (
|
|
308
|
+
var _runTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(params, callbacks) {
|
|
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.runTask(params, callbacks));
|
|
294
313
|
case 1:
|
|
295
314
|
case "end":
|
|
296
|
-
return
|
|
315
|
+
return _context12.stop();
|
|
297
316
|
}
|
|
298
|
-
},
|
|
317
|
+
}, _callee12, this);
|
|
299
318
|
}));
|
|
300
|
-
function runTask(
|
|
319
|
+
function runTask(_x11, _x12) {
|
|
301
320
|
return _runTask.apply(this, arguments);
|
|
302
321
|
}
|
|
303
322
|
return runTask;
|
|
@@ -305,18 +324,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
305
324
|
}, {
|
|
306
325
|
key: "pollTaskProgress",
|
|
307
326
|
value: function () {
|
|
308
|
-
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
309
|
-
return _regeneratorRuntime().wrap(function
|
|
310
|
-
while (1) switch (
|
|
327
|
+
var _pollTaskProgress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(params) {
|
|
328
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
329
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
311
330
|
case 0:
|
|
312
|
-
return
|
|
331
|
+
return _context13.abrupt("return", this.api.pollTaskProgress(params));
|
|
313
332
|
case 1:
|
|
314
333
|
case "end":
|
|
315
|
-
return
|
|
334
|
+
return _context13.stop();
|
|
316
335
|
}
|
|
317
|
-
},
|
|
336
|
+
}, _callee13, this);
|
|
318
337
|
}));
|
|
319
|
-
function pollTaskProgress(
|
|
338
|
+
function pollTaskProgress(_x13) {
|
|
320
339
|
return _pollTaskProgress.apply(this, arguments);
|
|
321
340
|
}
|
|
322
341
|
return pollTaskProgress;
|
|
@@ -326,18 +345,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
326
345
|
}, {
|
|
327
346
|
key: "get",
|
|
328
347
|
value: function () {
|
|
329
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
330
|
-
return _regeneratorRuntime().wrap(function
|
|
331
|
-
while (1) switch (
|
|
348
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(endpoint, params) {
|
|
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.get(endpoint, params));
|
|
334
353
|
case 1:
|
|
335
354
|
case "end":
|
|
336
|
-
return
|
|
355
|
+
return _context14.stop();
|
|
337
356
|
}
|
|
338
|
-
},
|
|
357
|
+
}, _callee14, this);
|
|
339
358
|
}));
|
|
340
|
-
function get(
|
|
359
|
+
function get(_x14, _x15) {
|
|
341
360
|
return _get.apply(this, arguments);
|
|
342
361
|
}
|
|
343
362
|
return get;
|
|
@@ -345,18 +364,18 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
|
|
|
345
364
|
}, {
|
|
346
365
|
key: "post",
|
|
347
366
|
value: function () {
|
|
348
|
-
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
349
|
-
return _regeneratorRuntime().wrap(function
|
|
350
|
-
while (1) switch (
|
|
367
|
+
var _post = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(endpoint, data) {
|
|
368
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
369
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
351
370
|
case 0:
|
|
352
|
-
return
|
|
371
|
+
return _context15.abrupt("return", this.api.post(endpoint, data));
|
|
353
372
|
case 1:
|
|
354
373
|
case "end":
|
|
355
|
-
return
|
|
374
|
+
return _context15.stop();
|
|
356
375
|
}
|
|
357
|
-
},
|
|
376
|
+
}, _callee15, this);
|
|
358
377
|
}));
|
|
359
|
-
function post(
|
|
378
|
+
function post(_x16, _x17) {
|
|
360
379
|
return _post.apply(this, arguments);
|
|
361
380
|
}
|
|
362
381
|
return post;
|