files.com 1.2.249 → 1.2.251

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.
Files changed (90) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/User.md +4 -1
  3. package/lib/Api.js +72 -71
  4. package/lib/Files.js +1 -1
  5. package/lib/isomorphic/File.node.js +5 -5
  6. package/lib/models/ActionNotificationExport.js +38 -38
  7. package/lib/models/ActionNotificationExportResult.js +14 -14
  8. package/lib/models/ApiKey.js +100 -100
  9. package/lib/models/ApiRequestLog.js +8 -8
  10. package/lib/models/App.js +8 -8
  11. package/lib/models/As2IncomingMessage.js +10 -10
  12. package/lib/models/As2OutgoingMessage.js +10 -10
  13. package/lib/models/As2Partner.js +101 -101
  14. package/lib/models/As2Station.js +81 -81
  15. package/lib/models/Automation.js +167 -167
  16. package/lib/models/AutomationLog.js +8 -8
  17. package/lib/models/AutomationRun.js +24 -24
  18. package/lib/models/BandwidthSnapshot.js +8 -8
  19. package/lib/models/Behavior.js +106 -106
  20. package/lib/models/Bundle.js +143 -143
  21. package/lib/models/BundleAction.js +10 -10
  22. package/lib/models/BundleDownload.js +12 -12
  23. package/lib/models/BundleNotification.js +69 -69
  24. package/lib/models/BundleRecipient.js +40 -40
  25. package/lib/models/BundleRegistration.js +12 -12
  26. package/lib/models/Clickwrap.js +79 -79
  27. package/lib/models/DnsRecord.js +8 -8
  28. package/lib/models/EmailIncomingMessage.js +8 -8
  29. package/lib/models/EmailLog.js +8 -8
  30. package/lib/models/ExavaultApiRequestLog.js +8 -8
  31. package/lib/models/ExternalEvent.js +36 -36
  32. package/lib/models/File.js +269 -269
  33. package/lib/models/FileComment.js +70 -70
  34. package/lib/models/FileCommentReaction.js +34 -34
  35. package/lib/models/FileMigration.js +10 -10
  36. package/lib/models/FileMigrationLog.js +8 -8
  37. package/lib/models/Folder.js +36 -36
  38. package/lib/models/FormFieldSet.js +71 -71
  39. package/lib/models/FtpActionLog.js +8 -8
  40. package/lib/models/GpgKey.js +81 -81
  41. package/lib/models/Group.js +83 -83
  42. package/lib/models/GroupUser.js +89 -89
  43. package/lib/models/History.js +88 -88
  44. package/lib/models/HistoryExport.js +64 -64
  45. package/lib/models/HistoryExportResult.js +14 -14
  46. package/lib/models/InboxRecipient.js +36 -36
  47. package/lib/models/InboxRegistration.js +10 -10
  48. package/lib/models/InboxUpload.js +8 -8
  49. package/lib/models/Invoice.js +18 -18
  50. package/lib/models/IpAddress.js +32 -32
  51. package/lib/models/Lock.js +51 -51
  52. package/lib/models/Message.js +100 -100
  53. package/lib/models/MessageComment.js +78 -78
  54. package/lib/models/MessageCommentReaction.js +54 -54
  55. package/lib/models/MessageReaction.js +54 -54
  56. package/lib/models/Notification.js +91 -91
  57. package/lib/models/OutboundConnectionLog.js +8 -8
  58. package/lib/models/Payment.js +18 -18
  59. package/lib/models/Permission.js +54 -54
  60. package/lib/models/Priority.js +14 -14
  61. package/lib/models/Project.js +70 -70
  62. package/lib/models/PublicHostingRequestLog.js +8 -8
  63. package/lib/models/PublicKey.js +78 -78
  64. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  65. package/lib/models/RemoteServer.js +362 -362
  66. package/lib/models/Request.js +60 -60
  67. package/lib/models/Restore.js +24 -24
  68. package/lib/models/Session.js +21 -21
  69. package/lib/models/SettingsChange.js +8 -8
  70. package/lib/models/SftpActionLog.js +8 -8
  71. package/lib/models/SftpHostKey.js +67 -67
  72. package/lib/models/ShareGroup.js +79 -79
  73. package/lib/models/SiemHttpDestination.js +158 -158
  74. package/lib/models/Site.js +150 -150
  75. package/lib/models/Snapshot.js +85 -85
  76. package/lib/models/SsoStrategy.js +32 -32
  77. package/lib/models/Style.js +48 -48
  78. package/lib/models/SyncLog.js +8 -8
  79. package/lib/models/UsageDailySnapshot.js +8 -8
  80. package/lib/models/UsageSnapshot.js +8 -8
  81. package/lib/models/User.js +223 -215
  82. package/lib/models/UserCipherUse.js +10 -10
  83. package/lib/models/UserLifecycleRule.js +92 -92
  84. package/lib/models/UserRequest.js +56 -56
  85. package/lib/models/UserSftpClientUse.js +10 -10
  86. package/lib/models/WebDavActionLog.js +8 -8
  87. package/lib/models/WebhookTest.js +24 -24
  88. package/package.json +1 -1
  89. package/src/Files.js +1 -1
  90. package/src/models/User.js +6 -0
@@ -180,97 +180,97 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
180
180
  var params,
181
181
  response,
182
182
  _args = arguments;
183
- return _regenerator.default.wrap(function _callee$(_context) {
183
+ return _regenerator.default.wrap(function (_context) {
184
184
  while (1) switch (_context.prev = _context.next) {
185
185
  case 0:
186
186
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
187
187
  if (_this.attributes.id) {
188
- _context.next = 3;
188
+ _context.next = 1;
189
189
  break;
190
190
  }
191
191
  throw new errors.EmptyPropertyError('Current object has no id');
192
- case 3:
192
+ case 1:
193
193
  if ((0, _utils.isObject)(params)) {
194
- _context.next = 5;
194
+ _context.next = 2;
195
195
  break;
196
196
  }
197
197
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
198
- case 5:
198
+ case 2:
199
199
  params.id = _this.attributes.id;
200
200
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
201
- _context.next = 8;
201
+ _context.next = 3;
202
202
  break;
203
203
  }
204
204
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
205
- case 8:
205
+ case 3:
206
206
  if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
207
- _context.next = 10;
207
+ _context.next = 4;
208
208
  break;
209
209
  }
210
210
  throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
211
- case 10:
211
+ case 4:
212
212
  if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
213
- _context.next = 12;
213
+ _context.next = 5;
214
214
  break;
215
215
  }
216
216
  throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
217
- case 12:
217
+ case 5:
218
218
  if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
219
- _context.next = 14;
219
+ _context.next = 6;
220
220
  break;
221
221
  }
222
222
  throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
223
- case 14:
223
+ case 6:
224
224
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
225
- _context.next = 16;
225
+ _context.next = 7;
226
226
  break;
227
227
  }
228
228
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
229
- case 16:
229
+ case 7:
230
230
  if (!(params.default_mime_type && !(0, _utils.isString)(params.default_mime_type))) {
231
- _context.next = 18;
231
+ _context.next = 8;
232
232
  break;
233
233
  }
234
234
  throw new errors.InvalidParameterError("Bad parameter: default_mime_type must be of type String, received ".concat((0, _utils.getType)(params.default_mime_type)));
235
- case 18:
235
+ case 8:
236
236
  if (!(params.name && !(0, _utils.isString)(params.name))) {
237
- _context.next = 20;
237
+ _context.next = 9;
238
238
  break;
239
239
  }
240
240
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
241
- case 20:
241
+ case 9:
242
242
  if (!(params.uri && !(0, _utils.isString)(params.uri))) {
243
- _context.next = 22;
243
+ _context.next = 10;
244
244
  break;
245
245
  }
246
246
  throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
247
- case 22:
247
+ case 10:
248
248
  if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
249
- _context.next = 24;
249
+ _context.next = 11;
250
250
  break;
251
251
  }
252
252
  throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
253
- case 24:
253
+ case 11:
254
254
  if (params.id) {
255
- _context.next = 30;
255
+ _context.next = 13;
256
256
  break;
257
257
  }
258
258
  if (!_this.attributes.id) {
259
- _context.next = 29;
259
+ _context.next = 12;
260
260
  break;
261
261
  }
262
262
  params.id = _this.id;
263
- _context.next = 30;
263
+ _context.next = 13;
264
264
  break;
265
- case 29:
265
+ case 12:
266
266
  throw new errors.MissingParameterError('Parameter missing: id');
267
- case 30:
268
- _context.next = 32;
267
+ case 13:
268
+ _context.next = 14;
269
269
  return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
270
- case 32:
270
+ case 14:
271
271
  response = _context.sent;
272
272
  return _context.abrupt("return", new As2Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
273
- case 34:
273
+ case 15:
274
274
  case "end":
275
275
  return _context.stop();
276
276
  }
@@ -279,46 +279,46 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
279
279
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
280
280
  var params,
281
281
  _args2 = arguments;
282
- return _regenerator.default.wrap(function _callee2$(_context2) {
282
+ return _regenerator.default.wrap(function (_context2) {
283
283
  while (1) switch (_context2.prev = _context2.next) {
284
284
  case 0:
285
285
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
286
286
  if (_this.attributes.id) {
287
- _context2.next = 3;
287
+ _context2.next = 1;
288
288
  break;
289
289
  }
290
290
  throw new errors.EmptyPropertyError('Current object has no id');
291
- case 3:
291
+ case 1:
292
292
  if ((0, _utils.isObject)(params)) {
293
- _context2.next = 5;
293
+ _context2.next = 2;
294
294
  break;
295
295
  }
296
296
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
297
- case 5:
297
+ case 2:
298
298
  params.id = _this.attributes.id;
299
299
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
300
- _context2.next = 8;
300
+ _context2.next = 3;
301
301
  break;
302
302
  }
303
303
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
304
- case 8:
304
+ case 3:
305
305
  if (params.id) {
306
- _context2.next = 14;
306
+ _context2.next = 5;
307
307
  break;
308
308
  }
309
309
  if (!_this.attributes.id) {
310
- _context2.next = 13;
310
+ _context2.next = 4;
311
311
  break;
312
312
  }
313
313
  params.id = _this.id;
314
- _context2.next = 14;
314
+ _context2.next = 5;
315
315
  break;
316
- case 13:
316
+ case 4:
317
317
  throw new errors.MissingParameterError('Parameter missing: id');
318
- case 14:
319
- _context2.next = 16;
318
+ case 5:
319
+ _context2.next = 6;
320
320
  return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
321
- case 16:
321
+ case 6:
322
322
  case "end":
323
323
  return _context2.stop();
324
324
  }
@@ -330,27 +330,27 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
330
330
  });
331
331
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
332
332
  var _newObject, newObject;
333
- return _regenerator.default.wrap(function _callee3$(_context3) {
333
+ return _regenerator.default.wrap(function (_context3) {
334
334
  while (1) switch (_context3.prev = _context3.next) {
335
335
  case 0:
336
336
  if (!_this.attributes.id) {
337
- _context3.next = 6;
337
+ _context3.next = 2;
338
338
  break;
339
339
  }
340
- _context3.next = 3;
340
+ _context3.next = 1;
341
341
  return _this.update(_this.attributes);
342
- case 3:
342
+ case 1:
343
343
  _newObject = _context3.sent;
344
344
  _this.attributes = _objectSpread({}, _newObject.attributes);
345
345
  return _context3.abrupt("return", true);
346
- case 6:
347
- _context3.next = 8;
346
+ case 2:
347
+ _context3.next = 3;
348
348
  return As2Partner.create(_this.attributes, _this.options);
349
- case 8:
349
+ case 3:
350
350
  newObject = _context3.sent;
351
351
  _this.attributes = _objectSpread({}, newObject.attributes);
352
352
  return _context3.abrupt("return", true);
353
- case 11:
353
+ case 4:
354
354
  case "end":
355
355
  return _context3.stop();
356
356
  }
@@ -379,31 +379,31 @@ _As2Partner = As2Partner;
379
379
  options,
380
380
  response,
381
381
  _args4 = arguments;
382
- return _regenerator.default.wrap(function _callee4$(_context4) {
382
+ return _regenerator.default.wrap(function (_context4) {
383
383
  while (1) switch (_context4.prev = _context4.next) {
384
384
  case 0:
385
385
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
386
386
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
387
387
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
388
- _context4.next = 4;
388
+ _context4.next = 1;
389
389
  break;
390
390
  }
391
391
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
392
- case 4:
392
+ case 1:
393
393
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
394
- _context4.next = 6;
394
+ _context4.next = 2;
395
395
  break;
396
396
  }
397
397
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
398
- case 6:
399
- _context4.next = 8;
398
+ case 2:
399
+ _context4.next = 3;
400
400
  return _Api.default.sendRequest('/as2_partners', 'GET', params, options);
401
- case 8:
401
+ case 3:
402
402
  response = _context4.sent;
403
403
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
404
404
  return new _As2Partner(obj, options);
405
405
  })) || []);
406
- case 10:
406
+ case 4:
407
407
  case "end":
408
408
  return _context4.stop();
409
409
  }
@@ -422,36 +422,36 @@ _As2Partner = As2Partner;
422
422
  options,
423
423
  response,
424
424
  _args5 = arguments;
425
- return _regenerator.default.wrap(function _callee5$(_context5) {
425
+ return _regenerator.default.wrap(function (_context5) {
426
426
  while (1) switch (_context5.prev = _context5.next) {
427
427
  case 0:
428
428
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
429
429
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
430
430
  if ((0, _utils.isObject)(params)) {
431
- _context5.next = 4;
431
+ _context5.next = 1;
432
432
  break;
433
433
  }
434
434
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
435
- case 4:
435
+ case 1:
436
436
  params.id = id;
437
437
  if (params.id) {
438
- _context5.next = 7;
438
+ _context5.next = 2;
439
439
  break;
440
440
  }
441
441
  throw new errors.MissingParameterError('Parameter missing: id');
442
- case 7:
442
+ case 2:
443
443
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
444
- _context5.next = 9;
444
+ _context5.next = 3;
445
445
  break;
446
446
  }
447
447
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
448
- case 9:
449
- _context5.next = 11;
448
+ case 3:
449
+ _context5.next = 4;
450
450
  return _Api.default.sendRequest("/as2_partners/".concat(encodeURIComponent(params.id)), 'GET', params, options);
451
- case 11:
451
+ case 4:
452
452
  response = _context5.sent;
453
453
  return _context5.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
454
- case 13:
454
+ case 5:
455
455
  case "end":
456
456
  return _context5.stop();
457
457
  }
@@ -483,95 +483,95 @@ _As2Partner = As2Partner;
483
483
  options,
484
484
  response,
485
485
  _args6 = arguments;
486
- return _regenerator.default.wrap(function _callee6$(_context6) {
486
+ return _regenerator.default.wrap(function (_context6) {
487
487
  while (1) switch (_context6.prev = _context6.next) {
488
488
  case 0:
489
489
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
490
490
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
491
491
  if (params.as2_station_id) {
492
- _context6.next = 4;
492
+ _context6.next = 1;
493
493
  break;
494
494
  }
495
495
  throw new errors.MissingParameterError('Parameter missing: as2_station_id');
496
- case 4:
496
+ case 1:
497
497
  if (params.name) {
498
- _context6.next = 6;
498
+ _context6.next = 2;
499
499
  break;
500
500
  }
501
501
  throw new errors.MissingParameterError('Parameter missing: name');
502
- case 6:
502
+ case 2:
503
503
  if (params.uri) {
504
- _context6.next = 8;
504
+ _context6.next = 3;
505
505
  break;
506
506
  }
507
507
  throw new errors.MissingParameterError('Parameter missing: uri');
508
- case 8:
508
+ case 3:
509
509
  if (params.public_certificate) {
510
- _context6.next = 10;
510
+ _context6.next = 4;
511
511
  break;
512
512
  }
513
513
  throw new errors.MissingParameterError('Parameter missing: public_certificate');
514
- case 10:
514
+ case 4:
515
515
  if (!(params.http_auth_username && !(0, _utils.isString)(params.http_auth_username))) {
516
- _context6.next = 12;
516
+ _context6.next = 5;
517
517
  break;
518
518
  }
519
519
  throw new errors.InvalidParameterError("Bad parameter: http_auth_username must be of type String, received ".concat((0, _utils.getType)(params.http_auth_username)));
520
- case 12:
520
+ case 5:
521
521
  if (!(params.http_auth_password && !(0, _utils.isString)(params.http_auth_password))) {
522
- _context6.next = 14;
522
+ _context6.next = 6;
523
523
  break;
524
524
  }
525
525
  throw new errors.InvalidParameterError("Bad parameter: http_auth_password must be of type String, received ".concat((0, _utils.getType)(params.http_auth_password)));
526
- case 14:
526
+ case 6:
527
527
  if (!(params.mdn_validation_level && !(0, _utils.isString)(params.mdn_validation_level))) {
528
- _context6.next = 16;
528
+ _context6.next = 7;
529
529
  break;
530
530
  }
531
531
  throw new errors.InvalidParameterError("Bad parameter: mdn_validation_level must be of type String, received ".concat((0, _utils.getType)(params.mdn_validation_level)));
532
- case 16:
532
+ case 7:
533
533
  if (!(params.server_certificate && !(0, _utils.isString)(params.server_certificate))) {
534
- _context6.next = 18;
534
+ _context6.next = 8;
535
535
  break;
536
536
  }
537
537
  throw new errors.InvalidParameterError("Bad parameter: server_certificate must be of type String, received ".concat((0, _utils.getType)(params.server_certificate)));
538
- case 18:
538
+ case 8:
539
539
  if (!(params.default_mime_type && !(0, _utils.isString)(params.default_mime_type))) {
540
- _context6.next = 20;
540
+ _context6.next = 9;
541
541
  break;
542
542
  }
543
543
  throw new errors.InvalidParameterError("Bad parameter: default_mime_type must be of type String, received ".concat((0, _utils.getType)(params.default_mime_type)));
544
- case 20:
544
+ case 9:
545
545
  if (!(params.as2_station_id && !(0, _utils.isInt)(params.as2_station_id))) {
546
- _context6.next = 22;
546
+ _context6.next = 10;
547
547
  break;
548
548
  }
549
549
  throw new errors.InvalidParameterError("Bad parameter: as2_station_id must be of type Int, received ".concat((0, _utils.getType)(params.as2_station_id)));
550
- case 22:
550
+ case 10:
551
551
  if (!(params.name && !(0, _utils.isString)(params.name))) {
552
- _context6.next = 24;
552
+ _context6.next = 11;
553
553
  break;
554
554
  }
555
555
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
556
- case 24:
556
+ case 11:
557
557
  if (!(params.uri && !(0, _utils.isString)(params.uri))) {
558
- _context6.next = 26;
558
+ _context6.next = 12;
559
559
  break;
560
560
  }
561
561
  throw new errors.InvalidParameterError("Bad parameter: uri must be of type String, received ".concat((0, _utils.getType)(params.uri)));
562
- case 26:
562
+ case 12:
563
563
  if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
564
- _context6.next = 28;
564
+ _context6.next = 13;
565
565
  break;
566
566
  }
567
567
  throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
568
- case 28:
569
- _context6.next = 30;
568
+ case 13:
569
+ _context6.next = 14;
570
570
  return _Api.default.sendRequest('/as2_partners', 'POST', params, options);
571
- case 30:
571
+ case 14:
572
572
  response = _context6.sent;
573
573
  return _context6.abrupt("return", new _As2Partner(response === null || response === void 0 ? void 0 : response.data, options));
574
- case 32:
574
+ case 15:
575
575
  case "end":
576
576
  return _context6.stop();
577
577
  }