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.
Files changed (91) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +4 -2
  3. package/docs/models/FormFieldSet.md +5 -2
  4. package/lib/Api.js +72 -71
  5. package/lib/Files.js +1 -1
  6. package/lib/isomorphic/File.node.js +5 -5
  7. package/lib/models/ActionNotificationExport.js +38 -38
  8. package/lib/models/ActionNotificationExportResult.js +14 -14
  9. package/lib/models/ApiKey.js +100 -100
  10. package/lib/models/ApiRequestLog.js +8 -8
  11. package/lib/models/App.js +8 -8
  12. package/lib/models/As2IncomingMessage.js +10 -10
  13. package/lib/models/As2OutgoingMessage.js +10 -10
  14. package/lib/models/As2Partner.js +101 -101
  15. package/lib/models/As2Station.js +81 -81
  16. package/lib/models/Automation.js +167 -167
  17. package/lib/models/AutomationLog.js +8 -8
  18. package/lib/models/AutomationRun.js +24 -24
  19. package/lib/models/BandwidthSnapshot.js +8 -8
  20. package/lib/models/Behavior.js +106 -106
  21. package/lib/models/Bundle.js +143 -143
  22. package/lib/models/BundleAction.js +10 -10
  23. package/lib/models/BundleDownload.js +12 -12
  24. package/lib/models/BundleNotification.js +69 -69
  25. package/lib/models/BundleRecipient.js +40 -40
  26. package/lib/models/BundleRegistration.js +12 -12
  27. package/lib/models/Clickwrap.js +79 -79
  28. package/lib/models/DnsRecord.js +8 -8
  29. package/lib/models/EmailIncomingMessage.js +8 -8
  30. package/lib/models/EmailLog.js +8 -8
  31. package/lib/models/ExavaultApiRequestLog.js +8 -8
  32. package/lib/models/ExternalEvent.js +36 -36
  33. package/lib/models/File.js +269 -269
  34. package/lib/models/FileComment.js +70 -70
  35. package/lib/models/FileCommentReaction.js +34 -34
  36. package/lib/models/FileMigration.js +10 -10
  37. package/lib/models/FileMigrationLog.js +8 -8
  38. package/lib/models/Folder.js +36 -36
  39. package/lib/models/FormFieldSet.js +78 -71
  40. package/lib/models/FtpActionLog.js +8 -8
  41. package/lib/models/GpgKey.js +81 -81
  42. package/lib/models/Group.js +83 -83
  43. package/lib/models/GroupUser.js +89 -89
  44. package/lib/models/History.js +88 -88
  45. package/lib/models/HistoryExport.js +64 -64
  46. package/lib/models/HistoryExportResult.js +14 -14
  47. package/lib/models/InboxRecipient.js +36 -36
  48. package/lib/models/InboxRegistration.js +10 -10
  49. package/lib/models/InboxUpload.js +8 -8
  50. package/lib/models/Invoice.js +18 -18
  51. package/lib/models/IpAddress.js +32 -32
  52. package/lib/models/Lock.js +51 -51
  53. package/lib/models/Message.js +100 -100
  54. package/lib/models/MessageComment.js +78 -78
  55. package/lib/models/MessageCommentReaction.js +54 -54
  56. package/lib/models/MessageReaction.js +54 -54
  57. package/lib/models/Notification.js +91 -91
  58. package/lib/models/OutboundConnectionLog.js +8 -8
  59. package/lib/models/Payment.js +18 -18
  60. package/lib/models/Permission.js +54 -54
  61. package/lib/models/Priority.js +14 -14
  62. package/lib/models/Project.js +70 -70
  63. package/lib/models/PublicHostingRequestLog.js +8 -8
  64. package/lib/models/PublicKey.js +78 -78
  65. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  66. package/lib/models/RemoteServer.js +362 -362
  67. package/lib/models/Request.js +60 -60
  68. package/lib/models/Restore.js +24 -24
  69. package/lib/models/Session.js +21 -21
  70. package/lib/models/SettingsChange.js +8 -8
  71. package/lib/models/SftpActionLog.js +8 -8
  72. package/lib/models/SftpHostKey.js +67 -67
  73. package/lib/models/ShareGroup.js +79 -79
  74. package/lib/models/SiemHttpDestination.js +158 -158
  75. package/lib/models/Site.js +150 -150
  76. package/lib/models/Snapshot.js +85 -85
  77. package/lib/models/SsoStrategy.js +32 -32
  78. package/lib/models/Style.js +48 -48
  79. package/lib/models/SyncLog.js +8 -8
  80. package/lib/models/UsageDailySnapshot.js +8 -8
  81. package/lib/models/UsageSnapshot.js +8 -8
  82. package/lib/models/User.js +215 -215
  83. package/lib/models/UserCipherUse.js +10 -10
  84. package/lib/models/UserLifecycleRule.js +92 -92
  85. package/lib/models/UserRequest.js +56 -56
  86. package/lib/models/UserSftpClientUse.js +10 -10
  87. package/lib/models/WebDavActionLog.js +8 -8
  88. package/lib/models/WebhookTest.js +24 -24
  89. package/package.json +1 -1
  90. package/src/Files.js +1 -1
  91. package/src/models/FormFieldSet.js +7 -0
@@ -118,69 +118,69 @@ _History = History;
118
118
  response,
119
119
  Action,
120
120
  _args = arguments;
121
- return _regenerator.default.wrap(function _callee$(_context) {
121
+ return _regenerator.default.wrap(function (_context) {
122
122
  while (1) switch (_context.prev = _context.next) {
123
123
  case 0:
124
124
  params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
125
125
  options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
126
126
  if ((0, _utils.isObject)(params)) {
127
- _context.next = 4;
127
+ _context.next = 1;
128
128
  break;
129
129
  }
130
130
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
131
- case 4:
131
+ case 1:
132
132
  params.path = path;
133
133
  if (params.path) {
134
- _context.next = 7;
134
+ _context.next = 2;
135
135
  break;
136
136
  }
137
137
  throw new errors.MissingParameterError('Parameter missing: path');
138
- case 7:
138
+ case 2:
139
139
  if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
140
- _context.next = 9;
140
+ _context.next = 3;
141
141
  break;
142
142
  }
143
143
  throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
144
- case 9:
144
+ case 3:
145
145
  if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
146
- _context.next = 11;
146
+ _context.next = 4;
147
147
  break;
148
148
  }
149
149
  throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
150
- case 11:
150
+ case 4:
151
151
  if (!(params.display && !(0, _utils.isString)(params.display))) {
152
- _context.next = 13;
152
+ _context.next = 5;
153
153
  break;
154
154
  }
155
155
  throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
156
- case 13:
156
+ case 5:
157
157
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
158
- _context.next = 15;
158
+ _context.next = 6;
159
159
  break;
160
160
  }
161
161
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
162
- case 15:
162
+ case 6:
163
163
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
164
- _context.next = 17;
164
+ _context.next = 7;
165
165
  break;
166
166
  }
167
167
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
168
- case 17:
168
+ case 7:
169
169
  if (!(params.path && !(0, _utils.isString)(params.path))) {
170
- _context.next = 19;
170
+ _context.next = 8;
171
171
  break;
172
172
  }
173
173
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
174
- case 19:
175
- _context.next = 21;
174
+ case 8:
175
+ _context.next = 9;
176
176
  return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path)), 'GET', params, options);
177
- case 21:
177
+ case 9:
178
178
  response = _context.sent;
179
179
  Action = require('./Action.js').default;
180
180
  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) {
181
181
  return new Action(obj, options);
182
182
  })) || []);
183
- case 24:
183
+ case 10:
184
184
  case "end":
185
185
  return _context.stop();
186
186
  }
@@ -206,69 +206,69 @@ _History = History;
206
206
  response,
207
207
  Action,
208
208
  _args2 = arguments;
209
- return _regenerator.default.wrap(function _callee2$(_context2) {
209
+ return _regenerator.default.wrap(function (_context2) {
210
210
  while (1) switch (_context2.prev = _context2.next) {
211
211
  case 0:
212
212
  params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
213
213
  options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
214
214
  if ((0, _utils.isObject)(params)) {
215
- _context2.next = 4;
215
+ _context2.next = 1;
216
216
  break;
217
217
  }
218
218
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
219
- case 4:
219
+ case 1:
220
220
  params.path = path;
221
221
  if (params.path) {
222
- _context2.next = 7;
222
+ _context2.next = 2;
223
223
  break;
224
224
  }
225
225
  throw new errors.MissingParameterError('Parameter missing: path');
226
- case 7:
226
+ case 2:
227
227
  if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
228
- _context2.next = 9;
228
+ _context2.next = 3;
229
229
  break;
230
230
  }
231
231
  throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
232
- case 9:
232
+ case 3:
233
233
  if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
234
- _context2.next = 11;
234
+ _context2.next = 4;
235
235
  break;
236
236
  }
237
237
  throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
238
- case 11:
238
+ case 4:
239
239
  if (!(params.display && !(0, _utils.isString)(params.display))) {
240
- _context2.next = 13;
240
+ _context2.next = 5;
241
241
  break;
242
242
  }
243
243
  throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
244
- case 13:
244
+ case 5:
245
245
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
246
- _context2.next = 15;
246
+ _context2.next = 6;
247
247
  break;
248
248
  }
249
249
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
250
- case 15:
250
+ case 6:
251
251
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
252
- _context2.next = 17;
252
+ _context2.next = 7;
253
253
  break;
254
254
  }
255
255
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
256
- case 17:
256
+ case 7:
257
257
  if (!(params.path && !(0, _utils.isString)(params.path))) {
258
- _context2.next = 19;
258
+ _context2.next = 8;
259
259
  break;
260
260
  }
261
261
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
262
- case 19:
263
- _context2.next = 21;
262
+ case 8:
263
+ _context2.next = 9;
264
264
  return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path)), 'GET', params, options);
265
- case 21:
265
+ case 9:
266
266
  response = _context2.sent;
267
267
  Action = require('./Action.js').default;
268
268
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
269
269
  return new Action(obj, options);
270
270
  })) || []);
271
- case 24:
271
+ case 10:
272
272
  case "end":
273
273
  return _context2.stop();
274
274
  }
@@ -294,69 +294,69 @@ _History = History;
294
294
  response,
295
295
  Action,
296
296
  _args3 = arguments;
297
- return _regenerator.default.wrap(function _callee3$(_context3) {
297
+ return _regenerator.default.wrap(function (_context3) {
298
298
  while (1) switch (_context3.prev = _context3.next) {
299
299
  case 0:
300
300
  params = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
301
301
  options = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {};
302
302
  if ((0, _utils.isObject)(params)) {
303
- _context3.next = 4;
303
+ _context3.next = 1;
304
304
  break;
305
305
  }
306
306
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
307
- case 4:
307
+ case 1:
308
308
  params.user_id = userId;
309
309
  if (params.user_id) {
310
- _context3.next = 7;
310
+ _context3.next = 2;
311
311
  break;
312
312
  }
313
313
  throw new errors.MissingParameterError('Parameter missing: user_id');
314
- case 7:
314
+ case 2:
315
315
  if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
316
- _context3.next = 9;
316
+ _context3.next = 3;
317
317
  break;
318
318
  }
319
319
  throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
320
- case 9:
320
+ case 3:
321
321
  if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
322
- _context3.next = 11;
322
+ _context3.next = 4;
323
323
  break;
324
324
  }
325
325
  throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
326
- case 11:
326
+ case 4:
327
327
  if (!(params.display && !(0, _utils.isString)(params.display))) {
328
- _context3.next = 13;
328
+ _context3.next = 5;
329
329
  break;
330
330
  }
331
331
  throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
332
- case 13:
332
+ case 5:
333
333
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
334
- _context3.next = 15;
334
+ _context3.next = 6;
335
335
  break;
336
336
  }
337
337
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
338
- case 15:
338
+ case 6:
339
339
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
340
- _context3.next = 17;
340
+ _context3.next = 7;
341
341
  break;
342
342
  }
343
343
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
344
- case 17:
344
+ case 7:
345
345
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
346
- _context3.next = 19;
346
+ _context3.next = 8;
347
347
  break;
348
348
  }
349
349
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
350
- case 19:
351
- _context3.next = 21;
350
+ case 8:
351
+ _context3.next = 9;
352
352
  return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id)), 'GET', params, options);
353
- case 21:
353
+ case 9:
354
354
  response = _context3.sent;
355
355
  Action = require('./Action.js').default;
356
356
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
357
357
  return new Action(obj, options);
358
358
  })) || []);
359
- case 24:
359
+ case 10:
360
360
  case "end":
361
361
  return _context3.stop();
362
362
  }
@@ -380,50 +380,50 @@ _History = History;
380
380
  response,
381
381
  Action,
382
382
  _args4 = arguments;
383
- return _regenerator.default.wrap(function _callee4$(_context4) {
383
+ return _regenerator.default.wrap(function (_context4) {
384
384
  while (1) switch (_context4.prev = _context4.next) {
385
385
  case 0:
386
386
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
387
387
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
388
388
  if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
389
- _context4.next = 4;
389
+ _context4.next = 1;
390
390
  break;
391
391
  }
392
392
  throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
393
- case 4:
393
+ case 1:
394
394
  if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
395
- _context4.next = 6;
395
+ _context4.next = 2;
396
396
  break;
397
397
  }
398
398
  throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
399
- case 6:
399
+ case 2:
400
400
  if (!(params.display && !(0, _utils.isString)(params.display))) {
401
- _context4.next = 8;
401
+ _context4.next = 3;
402
402
  break;
403
403
  }
404
404
  throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
405
- case 8:
405
+ case 3:
406
406
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
407
- _context4.next = 10;
407
+ _context4.next = 4;
408
408
  break;
409
409
  }
410
410
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
411
- case 10:
411
+ case 4:
412
412
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
413
- _context4.next = 12;
413
+ _context4.next = 5;
414
414
  break;
415
415
  }
416
416
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
417
- case 12:
418
- _context4.next = 14;
417
+ case 5:
418
+ _context4.next = 6;
419
419
  return _Api.default.sendRequest('/history/login', 'GET', params, options);
420
- case 14:
420
+ case 6:
421
421
  response = _context4.sent;
422
422
  Action = require('./Action.js').default;
423
423
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
424
424
  return new Action(obj, options);
425
425
  })) || []);
426
- case 17:
426
+ case 7:
427
427
  case "end":
428
428
  return _context4.stop();
429
429
  }
@@ -445,50 +445,50 @@ _History = History;
445
445
  response,
446
446
  Action,
447
447
  _args5 = arguments;
448
- return _regenerator.default.wrap(function _callee5$(_context5) {
448
+ return _regenerator.default.wrap(function (_context5) {
449
449
  while (1) switch (_context5.prev = _context5.next) {
450
450
  case 0:
451
451
  params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
452
452
  options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
453
453
  if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
454
- _context5.next = 4;
454
+ _context5.next = 1;
455
455
  break;
456
456
  }
457
457
  throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
458
- case 4:
458
+ case 1:
459
459
  if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
460
- _context5.next = 6;
460
+ _context5.next = 2;
461
461
  break;
462
462
  }
463
463
  throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
464
- case 6:
464
+ case 2:
465
465
  if (!(params.display && !(0, _utils.isString)(params.display))) {
466
- _context5.next = 8;
466
+ _context5.next = 3;
467
467
  break;
468
468
  }
469
469
  throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
470
- case 8:
470
+ case 3:
471
471
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
472
- _context5.next = 10;
472
+ _context5.next = 4;
473
473
  break;
474
474
  }
475
475
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
476
- case 10:
476
+ case 4:
477
477
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
478
- _context5.next = 12;
478
+ _context5.next = 5;
479
479
  break;
480
480
  }
481
481
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
482
- case 12:
483
- _context5.next = 14;
482
+ case 5:
483
+ _context5.next = 6;
484
484
  return _Api.default.sendRequest('/history', 'GET', params, options);
485
- case 14:
485
+ case 6:
486
486
  response = _context5.sent;
487
487
  Action = require('./Action.js').default;
488
488
  return _context5.abrupt("return", (response === null || response === void 0 || (_response$data5 = response.data) === null || _response$data5 === void 0 ? void 0 : _response$data5.map(function (obj) {
489
489
  return new Action(obj, options);
490
490
  })) || []);
491
- case 17:
491
+ case 7:
492
492
  case "end":
493
493
  return _context5.stop();
494
494
  }