files.com 1.2.248 → 1.2.250
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/_VERSION +1 -1
- package/docs/models/Bundle.md +4 -2
- package/docs/models/FormFieldSet.md +5 -2
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +78 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +215 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/FormFieldSet.js +7 -0
|
@@ -216,22 +216,22 @@ var HistoryExport = /*#__PURE__*/(0, _createClass2.default)(function HistoryExpo
|
|
|
216
216
|
});
|
|
217
217
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
218
218
|
var newObject;
|
|
219
|
-
return _regenerator.default.wrap(function
|
|
219
|
+
return _regenerator.default.wrap(function (_context) {
|
|
220
220
|
while (1) switch (_context.prev = _context.next) {
|
|
221
221
|
case 0:
|
|
222
222
|
if (!_this.attributes.id) {
|
|
223
|
-
_context.next =
|
|
223
|
+
_context.next = 1;
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
226
|
throw new errors.NotImplementedError('The HistoryExport object doesn\'t support updates.');
|
|
227
|
-
case
|
|
228
|
-
_context.next =
|
|
227
|
+
case 1:
|
|
228
|
+
_context.next = 2;
|
|
229
229
|
return HistoryExport.create(_this.attributes, _this.options);
|
|
230
|
-
case
|
|
230
|
+
case 2:
|
|
231
231
|
newObject = _context.sent;
|
|
232
232
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
233
233
|
return _context.abrupt("return", true);
|
|
234
|
-
case
|
|
234
|
+
case 3:
|
|
235
235
|
case "end":
|
|
236
236
|
return _context.stop();
|
|
237
237
|
}
|
|
@@ -259,36 +259,36 @@ _HistoryExport = HistoryExport;
|
|
|
259
259
|
options,
|
|
260
260
|
response,
|
|
261
261
|
_args2 = arguments;
|
|
262
|
-
return _regenerator.default.wrap(function
|
|
262
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
263
263
|
while (1) switch (_context2.prev = _context2.next) {
|
|
264
264
|
case 0:
|
|
265
265
|
params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
266
266
|
options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
|
|
267
267
|
if ((0, _utils.isObject)(params)) {
|
|
268
|
-
_context2.next =
|
|
268
|
+
_context2.next = 1;
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
272
|
-
case
|
|
272
|
+
case 1:
|
|
273
273
|
params.id = id;
|
|
274
274
|
if (params.id) {
|
|
275
|
-
_context2.next =
|
|
275
|
+
_context2.next = 2;
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
279
|
-
case
|
|
279
|
+
case 2:
|
|
280
280
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
281
|
-
_context2.next =
|
|
281
|
+
_context2.next = 3;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
285
|
-
case
|
|
286
|
-
_context2.next =
|
|
285
|
+
case 3:
|
|
286
|
+
_context2.next = 4;
|
|
287
287
|
return _Api.default.sendRequest("/history_exports/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
288
|
-
case
|
|
288
|
+
case 4:
|
|
289
289
|
response = _context2.sent;
|
|
290
290
|
return _context2.abrupt("return", new _HistoryExport(response === null || response === void 0 ? void 0 : response.data, options));
|
|
291
|
-
case
|
|
291
|
+
case 5:
|
|
292
292
|
case "end":
|
|
293
293
|
return _context2.stop();
|
|
294
294
|
}
|
|
@@ -331,149 +331,149 @@ _HistoryExport = HistoryExport;
|
|
|
331
331
|
options,
|
|
332
332
|
response,
|
|
333
333
|
_args3 = arguments;
|
|
334
|
-
return _regenerator.default.wrap(function
|
|
334
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
335
335
|
while (1) switch (_context3.prev = _context3.next) {
|
|
336
336
|
case 0:
|
|
337
337
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
338
338
|
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
339
339
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
340
|
-
_context3.next =
|
|
340
|
+
_context3.next = 1;
|
|
341
341
|
break;
|
|
342
342
|
}
|
|
343
343
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
344
|
-
case
|
|
344
|
+
case 1:
|
|
345
345
|
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
346
|
-
_context3.next =
|
|
346
|
+
_context3.next = 2;
|
|
347
347
|
break;
|
|
348
348
|
}
|
|
349
349
|
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
350
|
-
case
|
|
350
|
+
case 2:
|
|
351
351
|
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
352
|
-
_context3.next =
|
|
352
|
+
_context3.next = 3;
|
|
353
353
|
break;
|
|
354
354
|
}
|
|
355
355
|
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
356
|
-
case
|
|
356
|
+
case 3:
|
|
357
357
|
if (!(params.query_action && !(0, _utils.isString)(params.query_action))) {
|
|
358
|
-
_context3.next =
|
|
358
|
+
_context3.next = 4;
|
|
359
359
|
break;
|
|
360
360
|
}
|
|
361
361
|
throw new errors.InvalidParameterError("Bad parameter: query_action must be of type String, received ".concat((0, _utils.getType)(params.query_action)));
|
|
362
|
-
case
|
|
362
|
+
case 4:
|
|
363
363
|
if (!(params.query_interface && !(0, _utils.isString)(params.query_interface))) {
|
|
364
|
-
_context3.next =
|
|
364
|
+
_context3.next = 5;
|
|
365
365
|
break;
|
|
366
366
|
}
|
|
367
367
|
throw new errors.InvalidParameterError("Bad parameter: query_interface must be of type String, received ".concat((0, _utils.getType)(params.query_interface)));
|
|
368
|
-
case
|
|
368
|
+
case 5:
|
|
369
369
|
if (!(params.query_user_id && !(0, _utils.isString)(params.query_user_id))) {
|
|
370
|
-
_context3.next =
|
|
370
|
+
_context3.next = 6;
|
|
371
371
|
break;
|
|
372
372
|
}
|
|
373
373
|
throw new errors.InvalidParameterError("Bad parameter: query_user_id must be of type String, received ".concat((0, _utils.getType)(params.query_user_id)));
|
|
374
|
-
case
|
|
374
|
+
case 6:
|
|
375
375
|
if (!(params.query_file_id && !(0, _utils.isString)(params.query_file_id))) {
|
|
376
|
-
_context3.next =
|
|
376
|
+
_context3.next = 7;
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
throw new errors.InvalidParameterError("Bad parameter: query_file_id must be of type String, received ".concat((0, _utils.getType)(params.query_file_id)));
|
|
380
|
-
case
|
|
380
|
+
case 7:
|
|
381
381
|
if (!(params.query_parent_id && !(0, _utils.isString)(params.query_parent_id))) {
|
|
382
|
-
_context3.next =
|
|
382
|
+
_context3.next = 8;
|
|
383
383
|
break;
|
|
384
384
|
}
|
|
385
385
|
throw new errors.InvalidParameterError("Bad parameter: query_parent_id must be of type String, received ".concat((0, _utils.getType)(params.query_parent_id)));
|
|
386
|
-
case
|
|
386
|
+
case 8:
|
|
387
387
|
if (!(params.query_path && !(0, _utils.isString)(params.query_path))) {
|
|
388
|
-
_context3.next =
|
|
388
|
+
_context3.next = 9;
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
391
|
throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params.query_path)));
|
|
392
|
-
case
|
|
392
|
+
case 9:
|
|
393
393
|
if (!(params.query_folder && !(0, _utils.isString)(params.query_folder))) {
|
|
394
|
-
_context3.next =
|
|
394
|
+
_context3.next = 10;
|
|
395
395
|
break;
|
|
396
396
|
}
|
|
397
397
|
throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params.query_folder)));
|
|
398
|
-
case
|
|
398
|
+
case 10:
|
|
399
399
|
if (!(params.query_src && !(0, _utils.isString)(params.query_src))) {
|
|
400
|
-
_context3.next =
|
|
400
|
+
_context3.next = 11;
|
|
401
401
|
break;
|
|
402
402
|
}
|
|
403
403
|
throw new errors.InvalidParameterError("Bad parameter: query_src must be of type String, received ".concat((0, _utils.getType)(params.query_src)));
|
|
404
|
-
case
|
|
404
|
+
case 11:
|
|
405
405
|
if (!(params.query_destination && !(0, _utils.isString)(params.query_destination))) {
|
|
406
|
-
_context3.next =
|
|
406
|
+
_context3.next = 12;
|
|
407
407
|
break;
|
|
408
408
|
}
|
|
409
409
|
throw new errors.InvalidParameterError("Bad parameter: query_destination must be of type String, received ".concat((0, _utils.getType)(params.query_destination)));
|
|
410
|
-
case
|
|
410
|
+
case 12:
|
|
411
411
|
if (!(params.query_ip && !(0, _utils.isString)(params.query_ip))) {
|
|
412
|
-
_context3.next =
|
|
412
|
+
_context3.next = 13;
|
|
413
413
|
break;
|
|
414
414
|
}
|
|
415
415
|
throw new errors.InvalidParameterError("Bad parameter: query_ip must be of type String, received ".concat((0, _utils.getType)(params.query_ip)));
|
|
416
|
-
case
|
|
416
|
+
case 13:
|
|
417
417
|
if (!(params.query_username && !(0, _utils.isString)(params.query_username))) {
|
|
418
|
-
_context3.next =
|
|
418
|
+
_context3.next = 14;
|
|
419
419
|
break;
|
|
420
420
|
}
|
|
421
421
|
throw new errors.InvalidParameterError("Bad parameter: query_username must be of type String, received ".concat((0, _utils.getType)(params.query_username)));
|
|
422
|
-
case
|
|
422
|
+
case 14:
|
|
423
423
|
if (!(params.query_failure_type && !(0, _utils.isString)(params.query_failure_type))) {
|
|
424
|
-
_context3.next =
|
|
424
|
+
_context3.next = 15;
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
throw new errors.InvalidParameterError("Bad parameter: query_failure_type must be of type String, received ".concat((0, _utils.getType)(params.query_failure_type)));
|
|
428
|
-
case
|
|
428
|
+
case 15:
|
|
429
429
|
if (!(params.query_target_id && !(0, _utils.isString)(params.query_target_id))) {
|
|
430
|
-
_context3.next =
|
|
430
|
+
_context3.next = 16;
|
|
431
431
|
break;
|
|
432
432
|
}
|
|
433
433
|
throw new errors.InvalidParameterError("Bad parameter: query_target_id must be of type String, received ".concat((0, _utils.getType)(params.query_target_id)));
|
|
434
|
-
case
|
|
434
|
+
case 16:
|
|
435
435
|
if (!(params.query_target_name && !(0, _utils.isString)(params.query_target_name))) {
|
|
436
|
-
_context3.next =
|
|
436
|
+
_context3.next = 17;
|
|
437
437
|
break;
|
|
438
438
|
}
|
|
439
439
|
throw new errors.InvalidParameterError("Bad parameter: query_target_name must be of type String, received ".concat((0, _utils.getType)(params.query_target_name)));
|
|
440
|
-
case
|
|
440
|
+
case 17:
|
|
441
441
|
if (!(params.query_target_permission && !(0, _utils.isString)(params.query_target_permission))) {
|
|
442
|
-
_context3.next =
|
|
442
|
+
_context3.next = 18;
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
throw new errors.InvalidParameterError("Bad parameter: query_target_permission must be of type String, received ".concat((0, _utils.getType)(params.query_target_permission)));
|
|
446
|
-
case
|
|
446
|
+
case 18:
|
|
447
447
|
if (!(params.query_target_user_id && !(0, _utils.isString)(params.query_target_user_id))) {
|
|
448
|
-
_context3.next =
|
|
448
|
+
_context3.next = 19;
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
451
|
throw new errors.InvalidParameterError("Bad parameter: query_target_user_id must be of type String, received ".concat((0, _utils.getType)(params.query_target_user_id)));
|
|
452
|
-
case
|
|
452
|
+
case 19:
|
|
453
453
|
if (!(params.query_target_username && !(0, _utils.isString)(params.query_target_username))) {
|
|
454
|
-
_context3.next =
|
|
454
|
+
_context3.next = 20;
|
|
455
455
|
break;
|
|
456
456
|
}
|
|
457
457
|
throw new errors.InvalidParameterError("Bad parameter: query_target_username must be of type String, received ".concat((0, _utils.getType)(params.query_target_username)));
|
|
458
|
-
case
|
|
458
|
+
case 20:
|
|
459
459
|
if (!(params.query_target_platform && !(0, _utils.isString)(params.query_target_platform))) {
|
|
460
|
-
_context3.next =
|
|
460
|
+
_context3.next = 21;
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
463
|
throw new errors.InvalidParameterError("Bad parameter: query_target_platform must be of type String, received ".concat((0, _utils.getType)(params.query_target_platform)));
|
|
464
|
-
case
|
|
464
|
+
case 21:
|
|
465
465
|
if (!(params.query_target_permission_set && !(0, _utils.isString)(params.query_target_permission_set))) {
|
|
466
|
-
_context3.next =
|
|
466
|
+
_context3.next = 22;
|
|
467
467
|
break;
|
|
468
468
|
}
|
|
469
469
|
throw new errors.InvalidParameterError("Bad parameter: query_target_permission_set must be of type String, received ".concat((0, _utils.getType)(params.query_target_permission_set)));
|
|
470
|
-
case
|
|
471
|
-
_context3.next =
|
|
470
|
+
case 22:
|
|
471
|
+
_context3.next = 23;
|
|
472
472
|
return _Api.default.sendRequest('/history_exports', 'POST', params, options);
|
|
473
|
-
case
|
|
473
|
+
case 23:
|
|
474
474
|
response = _context3.sent;
|
|
475
475
|
return _context3.abrupt("return", new _HistoryExport(response === null || response === void 0 ? void 0 : response.data, options));
|
|
476
|
-
case
|
|
476
|
+
case 24:
|
|
477
477
|
case "end":
|
|
478
478
|
return _context3.stop();
|
|
479
479
|
}
|
|
@@ -161,49 +161,49 @@ _HistoryExportResult = HistoryExportResult;
|
|
|
161
161
|
options,
|
|
162
162
|
response,
|
|
163
163
|
_args = arguments;
|
|
164
|
-
return _regenerator.default.wrap(function
|
|
164
|
+
return _regenerator.default.wrap(function (_context) {
|
|
165
165
|
while (1) switch (_context.prev = _context.next) {
|
|
166
166
|
case 0:
|
|
167
167
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
168
168
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
169
169
|
if (params.history_export_id) {
|
|
170
|
-
_context.next =
|
|
170
|
+
_context.next = 1;
|
|
171
171
|
break;
|
|
172
172
|
}
|
|
173
173
|
throw new errors.MissingParameterError('Parameter missing: history_export_id');
|
|
174
|
-
case
|
|
174
|
+
case 1:
|
|
175
175
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
176
|
-
_context.next =
|
|
176
|
+
_context.next = 2;
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
179
179
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
180
|
-
case
|
|
180
|
+
case 2:
|
|
181
181
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
182
|
-
_context.next =
|
|
182
|
+
_context.next = 3;
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
185
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
186
|
-
case
|
|
186
|
+
case 3:
|
|
187
187
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
188
|
-
_context.next =
|
|
188
|
+
_context.next = 4;
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
192
|
-
case
|
|
192
|
+
case 4:
|
|
193
193
|
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
|
194
|
-
_context.next =
|
|
194
|
+
_context.next = 5;
|
|
195
195
|
break;
|
|
196
196
|
}
|
|
197
197
|
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
|
198
|
-
case
|
|
199
|
-
_context.next =
|
|
198
|
+
case 5:
|
|
199
|
+
_context.next = 6;
|
|
200
200
|
return _Api.default.sendRequest('/history_export_results', 'GET', params, options);
|
|
201
|
-
case
|
|
201
|
+
case 6:
|
|
202
202
|
response = _context.sent;
|
|
203
203
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
204
204
|
return new _HistoryExportResult(obj, options);
|
|
205
205
|
})) || []);
|
|
206
|
-
case
|
|
206
|
+
case 7:
|
|
207
207
|
case "end":
|
|
208
208
|
return _context.stop();
|
|
209
209
|
}
|
|
@@ -83,22 +83,22 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
|
|
|
83
83
|
});
|
|
84
84
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
85
85
|
var newObject;
|
|
86
|
-
return _regenerator.default.wrap(function
|
|
86
|
+
return _regenerator.default.wrap(function (_context) {
|
|
87
87
|
while (1) switch (_context.prev = _context.next) {
|
|
88
88
|
case 0:
|
|
89
89
|
if (!_this.attributes.id) {
|
|
90
|
-
_context.next =
|
|
90
|
+
_context.next = 1;
|
|
91
91
|
break;
|
|
92
92
|
}
|
|
93
93
|
throw new errors.NotImplementedError('The InboxRecipient object doesn\'t support updates.');
|
|
94
|
-
case
|
|
95
|
-
_context.next =
|
|
94
|
+
case 1:
|
|
95
|
+
_context.next = 2;
|
|
96
96
|
return InboxRecipient.create(_this.attributes, _this.options);
|
|
97
|
-
case
|
|
97
|
+
case 2:
|
|
98
98
|
newObject = _context.sent;
|
|
99
99
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
100
100
|
return _context.abrupt("return", true);
|
|
101
|
-
case
|
|
101
|
+
case 3:
|
|
102
102
|
case "end":
|
|
103
103
|
return _context.stop();
|
|
104
104
|
}
|
|
@@ -130,43 +130,43 @@ _InboxRecipient = InboxRecipient;
|
|
|
130
130
|
options,
|
|
131
131
|
response,
|
|
132
132
|
_args2 = arguments;
|
|
133
|
-
return _regenerator.default.wrap(function
|
|
133
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
134
134
|
while (1) switch (_context2.prev = _context2.next) {
|
|
135
135
|
case 0:
|
|
136
136
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
137
137
|
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
138
138
|
if (params.inbox_id) {
|
|
139
|
-
_context2.next =
|
|
139
|
+
_context2.next = 1;
|
|
140
140
|
break;
|
|
141
141
|
}
|
|
142
142
|
throw new errors.MissingParameterError('Parameter missing: inbox_id');
|
|
143
|
-
case
|
|
143
|
+
case 1:
|
|
144
144
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
145
|
-
_context2.next =
|
|
145
|
+
_context2.next = 2;
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
149
|
-
case
|
|
149
|
+
case 2:
|
|
150
150
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
151
|
-
_context2.next =
|
|
151
|
+
_context2.next = 3;
|
|
152
152
|
break;
|
|
153
153
|
}
|
|
154
154
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
155
|
-
case
|
|
155
|
+
case 3:
|
|
156
156
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
157
|
-
_context2.next =
|
|
157
|
+
_context2.next = 4;
|
|
158
158
|
break;
|
|
159
159
|
}
|
|
160
160
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
161
|
-
case
|
|
162
|
-
_context2.next =
|
|
161
|
+
case 4:
|
|
162
|
+
_context2.next = 5;
|
|
163
163
|
return _Api.default.sendRequest('/inbox_recipients', 'GET', params, options);
|
|
164
|
-
case
|
|
164
|
+
case 5:
|
|
165
165
|
response = _context2.sent;
|
|
166
166
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
167
167
|
return new _InboxRecipient(obj, options);
|
|
168
168
|
})) || []);
|
|
169
|
-
case
|
|
169
|
+
case 6:
|
|
170
170
|
case "end":
|
|
171
171
|
return _context2.stop();
|
|
172
172
|
}
|
|
@@ -189,59 +189,59 @@ _InboxRecipient = InboxRecipient;
|
|
|
189
189
|
options,
|
|
190
190
|
response,
|
|
191
191
|
_args3 = arguments;
|
|
192
|
-
return _regenerator.default.wrap(function
|
|
192
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
193
193
|
while (1) switch (_context3.prev = _context3.next) {
|
|
194
194
|
case 0:
|
|
195
195
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
196
196
|
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
|
197
197
|
if (params.inbox_id) {
|
|
198
|
-
_context3.next =
|
|
198
|
+
_context3.next = 1;
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
throw new errors.MissingParameterError('Parameter missing: inbox_id');
|
|
202
|
-
case
|
|
202
|
+
case 1:
|
|
203
203
|
if (params.recipient) {
|
|
204
|
-
_context3.next =
|
|
204
|
+
_context3.next = 2;
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
throw new errors.MissingParameterError('Parameter missing: recipient');
|
|
208
|
-
case
|
|
208
|
+
case 2:
|
|
209
209
|
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
210
|
-
_context3.next =
|
|
210
|
+
_context3.next = 3;
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
214
|
-
case
|
|
214
|
+
case 3:
|
|
215
215
|
if (!(params.recipient && !(0, _utils.isString)(params.recipient))) {
|
|
216
|
-
_context3.next =
|
|
216
|
+
_context3.next = 4;
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params.recipient)));
|
|
220
|
-
case
|
|
220
|
+
case 4:
|
|
221
221
|
if (!(params.name && !(0, _utils.isString)(params.name))) {
|
|
222
|
-
_context3.next =
|
|
222
|
+
_context3.next = 5;
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
|
|
226
|
-
case
|
|
226
|
+
case 5:
|
|
227
227
|
if (!(params.company && !(0, _utils.isString)(params.company))) {
|
|
228
|
-
_context3.next =
|
|
228
|
+
_context3.next = 6;
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params.company)));
|
|
232
|
-
case
|
|
232
|
+
case 6:
|
|
233
233
|
if (!(params.note && !(0, _utils.isString)(params.note))) {
|
|
234
|
-
_context3.next =
|
|
234
|
+
_context3.next = 7;
|
|
235
235
|
break;
|
|
236
236
|
}
|
|
237
237
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params.note)));
|
|
238
|
-
case
|
|
239
|
-
_context3.next =
|
|
238
|
+
case 7:
|
|
239
|
+
_context3.next = 8;
|
|
240
240
|
return _Api.default.sendRequest('/inbox_recipients', 'POST', params, options);
|
|
241
|
-
case
|
|
241
|
+
case 8:
|
|
242
242
|
response = _context3.sent;
|
|
243
243
|
return _context3.abrupt("return", new _InboxRecipient(response === null || response === void 0 ? void 0 : response.data, options));
|
|
244
|
-
case
|
|
244
|
+
case 9:
|
|
245
245
|
case "end":
|
|
246
246
|
return _context3.stop();
|
|
247
247
|
}
|
|
@@ -104,37 +104,37 @@ _InboxRegistration = InboxRegistration;
|
|
|
104
104
|
options,
|
|
105
105
|
response,
|
|
106
106
|
_args = arguments;
|
|
107
|
-
return _regenerator.default.wrap(function
|
|
107
|
+
return _regenerator.default.wrap(function (_context) {
|
|
108
108
|
while (1) switch (_context.prev = _context.next) {
|
|
109
109
|
case 0:
|
|
110
110
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
111
111
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
112
112
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
113
|
-
_context.next =
|
|
113
|
+
_context.next = 1;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
116
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
117
|
-
case
|
|
117
|
+
case 1:
|
|
118
118
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
119
|
-
_context.next =
|
|
119
|
+
_context.next = 2;
|
|
120
120
|
break;
|
|
121
121
|
}
|
|
122
122
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
123
|
-
case
|
|
123
|
+
case 2:
|
|
124
124
|
if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
|
|
125
|
-
_context.next =
|
|
125
|
+
_context.next = 3;
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
128
|
throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
|
|
129
|
-
case
|
|
130
|
-
_context.next =
|
|
129
|
+
case 3:
|
|
130
|
+
_context.next = 4;
|
|
131
131
|
return _Api.default.sendRequest('/inbox_registrations', 'GET', params, options);
|
|
132
|
-
case
|
|
132
|
+
case 4:
|
|
133
133
|
response = _context.sent;
|
|
134
134
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
135
135
|
return new _InboxRegistration(obj, options);
|
|
136
136
|
})) || []);
|
|
137
|
-
case
|
|
137
|
+
case 5:
|
|
138
138
|
case "end":
|
|
139
139
|
return _context.stop();
|
|
140
140
|
}
|
|
@@ -73,31 +73,31 @@ _InboxUpload = InboxUpload;
|
|
|
73
73
|
options,
|
|
74
74
|
response,
|
|
75
75
|
_args = arguments;
|
|
76
|
-
return _regenerator.default.wrap(function
|
|
76
|
+
return _regenerator.default.wrap(function (_context) {
|
|
77
77
|
while (1) switch (_context.prev = _context.next) {
|
|
78
78
|
case 0:
|
|
79
79
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
80
80
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
81
81
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
82
|
-
_context.next =
|
|
82
|
+
_context.next = 1;
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
86
|
-
case
|
|
86
|
+
case 1:
|
|
87
87
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
88
|
-
_context.next =
|
|
88
|
+
_context.next = 2;
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
91
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
92
|
-
case
|
|
93
|
-
_context.next =
|
|
92
|
+
case 2:
|
|
93
|
+
_context.next = 3;
|
|
94
94
|
return _Api.default.sendRequest('/inbox_uploads', 'GET', params, options);
|
|
95
|
-
case
|
|
95
|
+
case 3:
|
|
96
96
|
response = _context.sent;
|
|
97
97
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
98
98
|
return new _InboxUpload(obj, options);
|
|
99
99
|
})) || []);
|
|
100
|
-
case
|
|
100
|
+
case 4:
|
|
101
101
|
case "end":
|
|
102
102
|
return _context.stop();
|
|
103
103
|
}
|