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
@@ -130,79 +130,79 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
130
130
  var params,
131
131
  response,
132
132
  _args = arguments;
133
- return _regenerator.default.wrap(function _callee$(_context) {
133
+ return _regenerator.default.wrap(function (_context) {
134
134
  while (1) switch (_context.prev = _context.next) {
135
135
  case 0:
136
136
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
137
137
  if (_this.attributes.id) {
138
- _context.next = 3;
138
+ _context.next = 1;
139
139
  break;
140
140
  }
141
141
  throw new errors.EmptyPropertyError('Current object has no id');
142
- case 3:
142
+ case 1:
143
143
  if ((0, _utils.isObject)(params)) {
144
- _context.next = 5;
144
+ _context.next = 2;
145
145
  break;
146
146
  }
147
147
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
148
- case 5:
148
+ case 2:
149
149
  params.id = _this.attributes.id;
150
150
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
151
- _context.next = 8;
151
+ _context.next = 3;
152
152
  break;
153
153
  }
154
154
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
155
- case 8:
155
+ case 3:
156
156
  if (!(params.notes && !(0, _utils.isString)(params.notes))) {
157
- _context.next = 10;
157
+ _context.next = 4;
158
158
  break;
159
159
  }
160
160
  throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
161
- case 10:
161
+ case 4:
162
162
  if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
163
- _context.next = 12;
163
+ _context.next = 5;
164
164
  break;
165
165
  }
166
166
  throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
167
- case 12:
167
+ case 5:
168
168
  if (!(params.admin_ids && !(0, _utils.isString)(params.admin_ids))) {
169
- _context.next = 14;
169
+ _context.next = 6;
170
170
  break;
171
171
  }
172
172
  throw new errors.InvalidParameterError("Bad parameter: admin_ids must be of type String, received ".concat((0, _utils.getType)(params.admin_ids)));
173
- case 14:
173
+ case 6:
174
174
  if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
175
- _context.next = 16;
175
+ _context.next = 7;
176
176
  break;
177
177
  }
178
178
  throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
179
- case 16:
179
+ case 7:
180
180
  if (!(params.name && !(0, _utils.isString)(params.name))) {
181
- _context.next = 18;
181
+ _context.next = 8;
182
182
  break;
183
183
  }
184
184
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
185
- case 18:
185
+ case 8:
186
186
  if (params.id) {
187
- _context.next = 24;
187
+ _context.next = 10;
188
188
  break;
189
189
  }
190
190
  if (!_this.attributes.id) {
191
- _context.next = 23;
191
+ _context.next = 9;
192
192
  break;
193
193
  }
194
194
  params.id = _this.id;
195
- _context.next = 24;
195
+ _context.next = 10;
196
196
  break;
197
- case 23:
197
+ case 9:
198
198
  throw new errors.MissingParameterError('Parameter missing: id');
199
- case 24:
200
- _context.next = 26;
199
+ case 10:
200
+ _context.next = 11;
201
201
  return _Api.default.sendRequest("/groups/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
202
- case 26:
202
+ case 11:
203
203
  response = _context.sent;
204
204
  return _context.abrupt("return", new Group(response === null || response === void 0 ? void 0 : response.data, _this.options));
205
- case 28:
205
+ case 12:
206
206
  case "end":
207
207
  return _context.stop();
208
208
  }
@@ -211,46 +211,46 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
211
211
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
212
212
  var params,
213
213
  _args2 = arguments;
214
- return _regenerator.default.wrap(function _callee2$(_context2) {
214
+ return _regenerator.default.wrap(function (_context2) {
215
215
  while (1) switch (_context2.prev = _context2.next) {
216
216
  case 0:
217
217
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
218
218
  if (_this.attributes.id) {
219
- _context2.next = 3;
219
+ _context2.next = 1;
220
220
  break;
221
221
  }
222
222
  throw new errors.EmptyPropertyError('Current object has no id');
223
- case 3:
223
+ case 1:
224
224
  if ((0, _utils.isObject)(params)) {
225
- _context2.next = 5;
225
+ _context2.next = 2;
226
226
  break;
227
227
  }
228
228
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
229
- case 5:
229
+ case 2:
230
230
  params.id = _this.attributes.id;
231
231
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
232
- _context2.next = 8;
232
+ _context2.next = 3;
233
233
  break;
234
234
  }
235
235
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
236
- case 8:
236
+ case 3:
237
237
  if (params.id) {
238
- _context2.next = 14;
238
+ _context2.next = 5;
239
239
  break;
240
240
  }
241
241
  if (!_this.attributes.id) {
242
- _context2.next = 13;
242
+ _context2.next = 4;
243
243
  break;
244
244
  }
245
245
  params.id = _this.id;
246
- _context2.next = 14;
246
+ _context2.next = 5;
247
247
  break;
248
- case 13:
248
+ case 4:
249
249
  throw new errors.MissingParameterError('Parameter missing: id');
250
- case 14:
251
- _context2.next = 16;
250
+ case 5:
251
+ _context2.next = 6;
252
252
  return _Api.default.sendRequest("/groups/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
253
- case 16:
253
+ case 6:
254
254
  case "end":
255
255
  return _context2.stop();
256
256
  }
@@ -262,27 +262,27 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
262
262
  });
263
263
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
264
264
  var _newObject, newObject;
265
- return _regenerator.default.wrap(function _callee3$(_context3) {
265
+ return _regenerator.default.wrap(function (_context3) {
266
266
  while (1) switch (_context3.prev = _context3.next) {
267
267
  case 0:
268
268
  if (!_this.attributes.id) {
269
- _context3.next = 6;
269
+ _context3.next = 2;
270
270
  break;
271
271
  }
272
- _context3.next = 3;
272
+ _context3.next = 1;
273
273
  return _this.update(_this.attributes);
274
- case 3:
274
+ case 1:
275
275
  _newObject = _context3.sent;
276
276
  _this.attributes = _objectSpread({}, _newObject.attributes);
277
277
  return _context3.abrupt("return", true);
278
- case 6:
279
- _context3.next = 8;
278
+ case 2:
279
+ _context3.next = 3;
280
280
  return Group.create(_this.attributes, _this.options);
281
- case 8:
281
+ case 3:
282
282
  newObject = _context3.sent;
283
283
  _this.attributes = _objectSpread({}, newObject.attributes);
284
284
  return _context3.abrupt("return", true);
285
- case 11:
285
+ case 4:
286
286
  case "end":
287
287
  return _context3.stop();
288
288
  }
@@ -316,37 +316,37 @@ _Group = Group;
316
316
  options,
317
317
  response,
318
318
  _args4 = arguments;
319
- return _regenerator.default.wrap(function _callee4$(_context4) {
319
+ return _regenerator.default.wrap(function (_context4) {
320
320
  while (1) switch (_context4.prev = _context4.next) {
321
321
  case 0:
322
322
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
323
323
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
324
324
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
325
- _context4.next = 4;
325
+ _context4.next = 1;
326
326
  break;
327
327
  }
328
328
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
329
- case 4:
329
+ case 1:
330
330
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
331
- _context4.next = 6;
331
+ _context4.next = 2;
332
332
  break;
333
333
  }
334
334
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
335
- case 6:
335
+ case 2:
336
336
  if (!(params.ids && !(0, _utils.isString)(params.ids))) {
337
- _context4.next = 8;
337
+ _context4.next = 3;
338
338
  break;
339
339
  }
340
340
  throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
341
- case 8:
342
- _context4.next = 10;
341
+ case 3:
342
+ _context4.next = 4;
343
343
  return _Api.default.sendRequest('/groups', 'GET', params, options);
344
- case 10:
344
+ case 4:
345
345
  response = _context4.sent;
346
346
  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) {
347
347
  return new _Group(obj, options);
348
348
  })) || []);
349
- case 12:
349
+ case 5:
350
350
  case "end":
351
351
  return _context4.stop();
352
352
  }
@@ -365,36 +365,36 @@ _Group = Group;
365
365
  options,
366
366
  response,
367
367
  _args5 = arguments;
368
- return _regenerator.default.wrap(function _callee5$(_context5) {
368
+ return _regenerator.default.wrap(function (_context5) {
369
369
  while (1) switch (_context5.prev = _context5.next) {
370
370
  case 0:
371
371
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
372
372
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
373
373
  if ((0, _utils.isObject)(params)) {
374
- _context5.next = 4;
374
+ _context5.next = 1;
375
375
  break;
376
376
  }
377
377
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
378
- case 4:
378
+ case 1:
379
379
  params.id = id;
380
380
  if (params.id) {
381
- _context5.next = 7;
381
+ _context5.next = 2;
382
382
  break;
383
383
  }
384
384
  throw new errors.MissingParameterError('Parameter missing: id');
385
- case 7:
385
+ case 2:
386
386
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
387
- _context5.next = 9;
387
+ _context5.next = 3;
388
388
  break;
389
389
  }
390
390
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
391
- case 9:
392
- _context5.next = 11;
391
+ case 3:
392
+ _context5.next = 4;
393
393
  return _Api.default.sendRequest("/groups/".concat(encodeURIComponent(params.id)), 'GET', params, options);
394
- case 11:
394
+ case 4:
395
395
  response = _context5.sent;
396
396
  return _context5.abrupt("return", new _Group(response === null || response === void 0 ? void 0 : response.data, options));
397
- case 13:
397
+ case 5:
398
398
  case "end":
399
399
  return _context5.stop();
400
400
  }
@@ -424,53 +424,53 @@ _Group = Group;
424
424
  options,
425
425
  response,
426
426
  _args6 = arguments;
427
- return _regenerator.default.wrap(function _callee6$(_context6) {
427
+ return _regenerator.default.wrap(function (_context6) {
428
428
  while (1) switch (_context6.prev = _context6.next) {
429
429
  case 0:
430
430
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
431
431
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
432
432
  if (params.name) {
433
- _context6.next = 4;
433
+ _context6.next = 1;
434
434
  break;
435
435
  }
436
436
  throw new errors.MissingParameterError('Parameter missing: name');
437
- case 4:
437
+ case 1:
438
438
  if (!(params.notes && !(0, _utils.isString)(params.notes))) {
439
- _context6.next = 6;
439
+ _context6.next = 2;
440
440
  break;
441
441
  }
442
442
  throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
443
- case 6:
443
+ case 2:
444
444
  if (!(params.user_ids && !(0, _utils.isString)(params.user_ids))) {
445
- _context6.next = 8;
445
+ _context6.next = 3;
446
446
  break;
447
447
  }
448
448
  throw new errors.InvalidParameterError("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(params.user_ids)));
449
- case 8:
449
+ case 3:
450
450
  if (!(params.admin_ids && !(0, _utils.isString)(params.admin_ids))) {
451
- _context6.next = 10;
451
+ _context6.next = 4;
452
452
  break;
453
453
  }
454
454
  throw new errors.InvalidParameterError("Bad parameter: admin_ids must be of type String, received ".concat((0, _utils.getType)(params.admin_ids)));
455
- case 10:
455
+ case 4:
456
456
  if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
457
- _context6.next = 12;
457
+ _context6.next = 5;
458
458
  break;
459
459
  }
460
460
  throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
461
- case 12:
461
+ case 5:
462
462
  if (!(params.name && !(0, _utils.isString)(params.name))) {
463
- _context6.next = 14;
463
+ _context6.next = 6;
464
464
  break;
465
465
  }
466
466
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
467
- case 14:
468
- _context6.next = 16;
467
+ case 6:
468
+ _context6.next = 7;
469
469
  return _Api.default.sendRequest('/groups', 'POST', params, options);
470
- case 16:
470
+ case 7:
471
471
  response = _context6.sent;
472
472
  return _context6.abrupt("return", new _Group(response === null || response === void 0 ? void 0 : response.data, options));
473
- case 18:
473
+ case 8:
474
474
  case "end":
475
475
  return _context6.stop();
476
476
  }