files.com 1.2.249 → 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.
Files changed (88) hide show
  1. package/_VERSION +1 -1
  2. package/lib/Api.js +72 -71
  3. package/lib/Files.js +1 -1
  4. package/lib/isomorphic/File.node.js +5 -5
  5. package/lib/models/ActionNotificationExport.js +38 -38
  6. package/lib/models/ActionNotificationExportResult.js +14 -14
  7. package/lib/models/ApiKey.js +100 -100
  8. package/lib/models/ApiRequestLog.js +8 -8
  9. package/lib/models/App.js +8 -8
  10. package/lib/models/As2IncomingMessage.js +10 -10
  11. package/lib/models/As2OutgoingMessage.js +10 -10
  12. package/lib/models/As2Partner.js +101 -101
  13. package/lib/models/As2Station.js +81 -81
  14. package/lib/models/Automation.js +167 -167
  15. package/lib/models/AutomationLog.js +8 -8
  16. package/lib/models/AutomationRun.js +24 -24
  17. package/lib/models/BandwidthSnapshot.js +8 -8
  18. package/lib/models/Behavior.js +106 -106
  19. package/lib/models/Bundle.js +143 -143
  20. package/lib/models/BundleAction.js +10 -10
  21. package/lib/models/BundleDownload.js +12 -12
  22. package/lib/models/BundleNotification.js +69 -69
  23. package/lib/models/BundleRecipient.js +40 -40
  24. package/lib/models/BundleRegistration.js +12 -12
  25. package/lib/models/Clickwrap.js +79 -79
  26. package/lib/models/DnsRecord.js +8 -8
  27. package/lib/models/EmailIncomingMessage.js +8 -8
  28. package/lib/models/EmailLog.js +8 -8
  29. package/lib/models/ExavaultApiRequestLog.js +8 -8
  30. package/lib/models/ExternalEvent.js +36 -36
  31. package/lib/models/File.js +269 -269
  32. package/lib/models/FileComment.js +70 -70
  33. package/lib/models/FileCommentReaction.js +34 -34
  34. package/lib/models/FileMigration.js +10 -10
  35. package/lib/models/FileMigrationLog.js +8 -8
  36. package/lib/models/Folder.js +36 -36
  37. package/lib/models/FormFieldSet.js +71 -71
  38. package/lib/models/FtpActionLog.js +8 -8
  39. package/lib/models/GpgKey.js +81 -81
  40. package/lib/models/Group.js +83 -83
  41. package/lib/models/GroupUser.js +89 -89
  42. package/lib/models/History.js +88 -88
  43. package/lib/models/HistoryExport.js +64 -64
  44. package/lib/models/HistoryExportResult.js +14 -14
  45. package/lib/models/InboxRecipient.js +36 -36
  46. package/lib/models/InboxRegistration.js +10 -10
  47. package/lib/models/InboxUpload.js +8 -8
  48. package/lib/models/Invoice.js +18 -18
  49. package/lib/models/IpAddress.js +32 -32
  50. package/lib/models/Lock.js +51 -51
  51. package/lib/models/Message.js +100 -100
  52. package/lib/models/MessageComment.js +78 -78
  53. package/lib/models/MessageCommentReaction.js +54 -54
  54. package/lib/models/MessageReaction.js +54 -54
  55. package/lib/models/Notification.js +91 -91
  56. package/lib/models/OutboundConnectionLog.js +8 -8
  57. package/lib/models/Payment.js +18 -18
  58. package/lib/models/Permission.js +54 -54
  59. package/lib/models/Priority.js +14 -14
  60. package/lib/models/Project.js +70 -70
  61. package/lib/models/PublicHostingRequestLog.js +8 -8
  62. package/lib/models/PublicKey.js +78 -78
  63. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  64. package/lib/models/RemoteServer.js +362 -362
  65. package/lib/models/Request.js +60 -60
  66. package/lib/models/Restore.js +24 -24
  67. package/lib/models/Session.js +21 -21
  68. package/lib/models/SettingsChange.js +8 -8
  69. package/lib/models/SftpActionLog.js +8 -8
  70. package/lib/models/SftpHostKey.js +67 -67
  71. package/lib/models/ShareGroup.js +79 -79
  72. package/lib/models/SiemHttpDestination.js +158 -158
  73. package/lib/models/Site.js +150 -150
  74. package/lib/models/Snapshot.js +85 -85
  75. package/lib/models/SsoStrategy.js +32 -32
  76. package/lib/models/Style.js +48 -48
  77. package/lib/models/SyncLog.js +8 -8
  78. package/lib/models/UsageDailySnapshot.js +8 -8
  79. package/lib/models/UsageSnapshot.js +8 -8
  80. package/lib/models/User.js +215 -215
  81. package/lib/models/UserCipherUse.js +10 -10
  82. package/lib/models/UserLifecycleRule.js +92 -92
  83. package/lib/models/UserRequest.js +56 -56
  84. package/lib/models/UserSftpClientUse.js +10 -10
  85. package/lib/models/WebDavActionLog.js +8 -8
  86. package/lib/models/WebhookTest.js +24 -24
  87. package/package.json +1 -1
  88. package/src/Files.js +1 -1
@@ -153,73 +153,73 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
153
153
  var params,
154
154
  response,
155
155
  _args = arguments;
156
- return _regenerator.default.wrap(function _callee$(_context) {
156
+ return _regenerator.default.wrap(function (_context) {
157
157
  while (1) switch (_context.prev = _context.next) {
158
158
  case 0:
159
159
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
160
160
  if (_this.attributes.id) {
161
- _context.next = 3;
161
+ _context.next = 1;
162
162
  break;
163
163
  }
164
164
  throw new errors.EmptyPropertyError('Current object has no id');
165
- case 3:
165
+ case 1:
166
166
  if ((0, _utils.isObject)(params)) {
167
- _context.next = 5;
167
+ _context.next = 2;
168
168
  break;
169
169
  }
170
170
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
171
- case 5:
171
+ case 2:
172
172
  params.id = _this.attributes.id;
173
173
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
174
- _context.next = 8;
174
+ _context.next = 3;
175
175
  break;
176
176
  }
177
177
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
178
- case 8:
178
+ case 3:
179
179
  if (!(params.name && !(0, _utils.isString)(params.name))) {
180
- _context.next = 10;
180
+ _context.next = 4;
181
181
  break;
182
182
  }
183
183
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
184
- case 10:
184
+ case 4:
185
185
  if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
186
- _context.next = 12;
186
+ _context.next = 5;
187
187
  break;
188
188
  }
189
189
  throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
190
- case 12:
190
+ case 5:
191
191
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
192
- _context.next = 14;
192
+ _context.next = 6;
193
193
  break;
194
194
  }
195
195
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
196
- case 14:
196
+ case 6:
197
197
  if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
198
- _context.next = 16;
198
+ _context.next = 7;
199
199
  break;
200
200
  }
201
201
  throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
202
- case 16:
202
+ case 7:
203
203
  if (params.id) {
204
- _context.next = 22;
204
+ _context.next = 9;
205
205
  break;
206
206
  }
207
207
  if (!_this.attributes.id) {
208
- _context.next = 21;
208
+ _context.next = 8;
209
209
  break;
210
210
  }
211
211
  params.id = _this.id;
212
- _context.next = 22;
212
+ _context.next = 9;
213
213
  break;
214
- case 21:
214
+ case 8:
215
215
  throw new errors.MissingParameterError('Parameter missing: id');
216
- case 22:
217
- _context.next = 24;
216
+ case 9:
217
+ _context.next = 10;
218
218
  return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
219
- case 24:
219
+ case 10:
220
220
  response = _context.sent;
221
221
  return _context.abrupt("return", new As2Station(response === null || response === void 0 ? void 0 : response.data, _this.options));
222
- case 26:
222
+ case 11:
223
223
  case "end":
224
224
  return _context.stop();
225
225
  }
@@ -228,46 +228,46 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
228
228
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
229
229
  var params,
230
230
  _args2 = arguments;
231
- return _regenerator.default.wrap(function _callee2$(_context2) {
231
+ return _regenerator.default.wrap(function (_context2) {
232
232
  while (1) switch (_context2.prev = _context2.next) {
233
233
  case 0:
234
234
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
235
235
  if (_this.attributes.id) {
236
- _context2.next = 3;
236
+ _context2.next = 1;
237
237
  break;
238
238
  }
239
239
  throw new errors.EmptyPropertyError('Current object has no id');
240
- case 3:
240
+ case 1:
241
241
  if ((0, _utils.isObject)(params)) {
242
- _context2.next = 5;
242
+ _context2.next = 2;
243
243
  break;
244
244
  }
245
245
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
246
- case 5:
246
+ case 2:
247
247
  params.id = _this.attributes.id;
248
248
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
249
- _context2.next = 8;
249
+ _context2.next = 3;
250
250
  break;
251
251
  }
252
252
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
253
- case 8:
253
+ case 3:
254
254
  if (params.id) {
255
- _context2.next = 14;
255
+ _context2.next = 5;
256
256
  break;
257
257
  }
258
258
  if (!_this.attributes.id) {
259
- _context2.next = 13;
259
+ _context2.next = 4;
260
260
  break;
261
261
  }
262
262
  params.id = _this.id;
263
- _context2.next = 14;
263
+ _context2.next = 5;
264
264
  break;
265
- case 13:
265
+ case 4:
266
266
  throw new errors.MissingParameterError('Parameter missing: id');
267
- case 14:
268
- _context2.next = 16;
267
+ case 5:
268
+ _context2.next = 6;
269
269
  return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
270
- case 16:
270
+ case 6:
271
271
  case "end":
272
272
  return _context2.stop();
273
273
  }
@@ -279,27 +279,27 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
279
279
  });
280
280
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
281
281
  var _newObject, newObject;
282
- return _regenerator.default.wrap(function _callee3$(_context3) {
282
+ return _regenerator.default.wrap(function (_context3) {
283
283
  while (1) switch (_context3.prev = _context3.next) {
284
284
  case 0:
285
285
  if (!_this.attributes.id) {
286
- _context3.next = 6;
286
+ _context3.next = 2;
287
287
  break;
288
288
  }
289
- _context3.next = 3;
289
+ _context3.next = 1;
290
290
  return _this.update(_this.attributes);
291
- case 3:
291
+ case 1:
292
292
  _newObject = _context3.sent;
293
293
  _this.attributes = _objectSpread({}, _newObject.attributes);
294
294
  return _context3.abrupt("return", true);
295
- case 6:
296
- _context3.next = 8;
295
+ case 2:
296
+ _context3.next = 3;
297
297
  return As2Station.create(_this.attributes, _this.options);
298
- case 8:
298
+ case 3:
299
299
  newObject = _context3.sent;
300
300
  _this.attributes = _objectSpread({}, newObject.attributes);
301
301
  return _context3.abrupt("return", true);
302
- case 11:
302
+ case 4:
303
303
  case "end":
304
304
  return _context3.stop();
305
305
  }
@@ -329,31 +329,31 @@ _As2Station = As2Station;
329
329
  options,
330
330
  response,
331
331
  _args4 = arguments;
332
- return _regenerator.default.wrap(function _callee4$(_context4) {
332
+ return _regenerator.default.wrap(function (_context4) {
333
333
  while (1) switch (_context4.prev = _context4.next) {
334
334
  case 0:
335
335
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
336
336
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
337
337
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
338
- _context4.next = 4;
338
+ _context4.next = 1;
339
339
  break;
340
340
  }
341
341
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
342
- case 4:
342
+ case 1:
343
343
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
344
- _context4.next = 6;
344
+ _context4.next = 2;
345
345
  break;
346
346
  }
347
347
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
348
- case 6:
349
- _context4.next = 8;
348
+ case 2:
349
+ _context4.next = 3;
350
350
  return _Api.default.sendRequest('/as2_stations', 'GET', params, options);
351
- case 8:
351
+ case 3:
352
352
  response = _context4.sent;
353
353
  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) {
354
354
  return new _As2Station(obj, options);
355
355
  })) || []);
356
- case 10:
356
+ case 4:
357
357
  case "end":
358
358
  return _context4.stop();
359
359
  }
@@ -372,36 +372,36 @@ _As2Station = As2Station;
372
372
  options,
373
373
  response,
374
374
  _args5 = arguments;
375
- return _regenerator.default.wrap(function _callee5$(_context5) {
375
+ return _regenerator.default.wrap(function (_context5) {
376
376
  while (1) switch (_context5.prev = _context5.next) {
377
377
  case 0:
378
378
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
379
379
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
380
380
  if ((0, _utils.isObject)(params)) {
381
- _context5.next = 4;
381
+ _context5.next = 1;
382
382
  break;
383
383
  }
384
384
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
385
- case 4:
385
+ case 1:
386
386
  params.id = id;
387
387
  if (params.id) {
388
- _context5.next = 7;
388
+ _context5.next = 2;
389
389
  break;
390
390
  }
391
391
  throw new errors.MissingParameterError('Parameter missing: id');
392
- case 7:
392
+ case 2:
393
393
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
394
- _context5.next = 9;
394
+ _context5.next = 3;
395
395
  break;
396
396
  }
397
397
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
398
- case 9:
399
- _context5.next = 11;
398
+ case 3:
399
+ _context5.next = 4;
400
400
  return _Api.default.sendRequest("/as2_stations/".concat(encodeURIComponent(params.id)), 'GET', params, options);
401
- case 11:
401
+ case 4:
402
402
  response = _context5.sent;
403
403
  return _context5.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
404
- case 13:
404
+ case 5:
405
405
  case "end":
406
406
  return _context5.stop();
407
407
  }
@@ -426,59 +426,59 @@ _As2Station = As2Station;
426
426
  options,
427
427
  response,
428
428
  _args6 = arguments;
429
- return _regenerator.default.wrap(function _callee6$(_context6) {
429
+ return _regenerator.default.wrap(function (_context6) {
430
430
  while (1) switch (_context6.prev = _context6.next) {
431
431
  case 0:
432
432
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
433
433
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
434
434
  if (params.name) {
435
- _context6.next = 4;
435
+ _context6.next = 1;
436
436
  break;
437
437
  }
438
438
  throw new errors.MissingParameterError('Parameter missing: name');
439
- case 4:
439
+ case 1:
440
440
  if (params.public_certificate) {
441
- _context6.next = 6;
441
+ _context6.next = 2;
442
442
  break;
443
443
  }
444
444
  throw new errors.MissingParameterError('Parameter missing: public_certificate');
445
- case 6:
445
+ case 2:
446
446
  if (params.private_key) {
447
- _context6.next = 8;
447
+ _context6.next = 3;
448
448
  break;
449
449
  }
450
450
  throw new errors.MissingParameterError('Parameter missing: private_key');
451
- case 8:
451
+ case 3:
452
452
  if (!(params.name && !(0, _utils.isString)(params.name))) {
453
- _context6.next = 10;
453
+ _context6.next = 4;
454
454
  break;
455
455
  }
456
456
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
457
- case 10:
457
+ case 4:
458
458
  if (!(params.public_certificate && !(0, _utils.isString)(params.public_certificate))) {
459
- _context6.next = 12;
459
+ _context6.next = 5;
460
460
  break;
461
461
  }
462
462
  throw new errors.InvalidParameterError("Bad parameter: public_certificate must be of type String, received ".concat((0, _utils.getType)(params.public_certificate)));
463
- case 12:
463
+ case 5:
464
464
  if (!(params.private_key && !(0, _utils.isString)(params.private_key))) {
465
- _context6.next = 14;
465
+ _context6.next = 6;
466
466
  break;
467
467
  }
468
468
  throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params.private_key)));
469
- case 14:
469
+ case 6:
470
470
  if (!(params.private_key_password && !(0, _utils.isString)(params.private_key_password))) {
471
- _context6.next = 16;
471
+ _context6.next = 7;
472
472
  break;
473
473
  }
474
474
  throw new errors.InvalidParameterError("Bad parameter: private_key_password must be of type String, received ".concat((0, _utils.getType)(params.private_key_password)));
475
- case 16:
476
- _context6.next = 18;
475
+ case 7:
476
+ _context6.next = 8;
477
477
  return _Api.default.sendRequest('/as2_stations', 'POST', params, options);
478
- case 18:
478
+ case 8:
479
479
  response = _context6.sent;
480
480
  return _context6.abrupt("return", new _As2Station(response === null || response === void 0 ? void 0 : response.data, options));
481
- case 20:
481
+ case 9:
482
482
  case "end":
483
483
  return _context6.stop();
484
484
  }