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
@@ -84,37 +84,37 @@ _UserCipherUse = UserCipherUse;
84
84
  options,
85
85
  response,
86
86
  _args = arguments;
87
- return _regenerator.default.wrap(function _callee$(_context) {
87
+ return _regenerator.default.wrap(function (_context) {
88
88
  while (1) switch (_context.prev = _context.next) {
89
89
  case 0:
90
90
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
91
91
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
92
92
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
93
- _context.next = 4;
93
+ _context.next = 1;
94
94
  break;
95
95
  }
96
96
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
97
- case 4:
97
+ case 1:
98
98
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
99
- _context.next = 6;
99
+ _context.next = 2;
100
100
  break;
101
101
  }
102
102
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
103
- case 6:
103
+ case 2:
104
104
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
105
- _context.next = 8;
105
+ _context.next = 3;
106
106
  break;
107
107
  }
108
108
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
109
- case 8:
110
- _context.next = 10;
109
+ case 3:
110
+ _context.next = 4;
111
111
  return _Api.default.sendRequest('/user_cipher_uses', 'GET', params, options);
112
- case 10:
112
+ case 4:
113
113
  response = _context.sent;
114
114
  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) {
115
115
  return new _UserCipherUse(obj, options);
116
116
  })) || []);
117
- case 12:
117
+ case 5:
118
118
  case "end":
119
119
  return _context.stop();
120
120
  }
@@ -91,109 +91,109 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
91
91
  var params,
92
92
  response,
93
93
  _args = arguments;
94
- return _regenerator.default.wrap(function _callee$(_context) {
94
+ return _regenerator.default.wrap(function (_context) {
95
95
  while (1) switch (_context.prev = _context.next) {
96
96
  case 0:
97
97
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
98
98
  if (_this.attributes.id) {
99
- _context.next = 3;
99
+ _context.next = 1;
100
100
  break;
101
101
  }
102
102
  throw new errors.EmptyPropertyError('Current object has no id');
103
- case 3:
103
+ case 1:
104
104
  if ((0, _utils.isObject)(params)) {
105
- _context.next = 5;
105
+ _context.next = 2;
106
106
  break;
107
107
  }
108
108
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
109
- case 5:
109
+ case 2:
110
110
  params.id = _this.attributes.id;
111
111
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
112
- _context.next = 8;
112
+ _context.next = 3;
113
113
  break;
114
114
  }
115
115
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
116
- case 8:
116
+ case 3:
117
117
  if (!(params.action && !(0, _utils.isString)(params.action))) {
118
- _context.next = 10;
118
+ _context.next = 4;
119
119
  break;
120
120
  }
121
121
  throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
122
- case 10:
122
+ case 4:
123
123
  if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
124
- _context.next = 12;
124
+ _context.next = 5;
125
125
  break;
126
126
  }
127
127
  throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
128
- case 12:
128
+ case 5:
129
129
  if (!(params.inactivity_days && !(0, _utils.isInt)(params.inactivity_days))) {
130
- _context.next = 14;
130
+ _context.next = 6;
131
131
  break;
132
132
  }
133
133
  throw new errors.InvalidParameterError("Bad parameter: inactivity_days must be of type Int, received ".concat((0, _utils.getType)(params.inactivity_days)));
134
- case 14:
134
+ case 6:
135
135
  if (params.id) {
136
- _context.next = 20;
136
+ _context.next = 8;
137
137
  break;
138
138
  }
139
139
  if (!_this.attributes.id) {
140
- _context.next = 19;
140
+ _context.next = 7;
141
141
  break;
142
142
  }
143
143
  params.id = _this.id;
144
- _context.next = 20;
144
+ _context.next = 8;
145
145
  break;
146
- case 19:
146
+ case 7:
147
147
  throw new errors.MissingParameterError('Parameter missing: id');
148
- case 20:
148
+ case 8:
149
149
  if (params.action) {
150
- _context.next = 26;
150
+ _context.next = 10;
151
151
  break;
152
152
  }
153
153
  if (!_this.attributes.action) {
154
- _context.next = 25;
154
+ _context.next = 9;
155
155
  break;
156
156
  }
157
157
  params.action = _this.action;
158
- _context.next = 26;
158
+ _context.next = 10;
159
159
  break;
160
- case 25:
160
+ case 9:
161
161
  throw new errors.MissingParameterError('Parameter missing: action');
162
- case 26:
162
+ case 10:
163
163
  if (params.authentication_method) {
164
- _context.next = 32;
164
+ _context.next = 12;
165
165
  break;
166
166
  }
167
167
  if (!_this.attributes.authentication_method) {
168
- _context.next = 31;
168
+ _context.next = 11;
169
169
  break;
170
170
  }
171
171
  params.authentication_method = _this.authentication_method;
172
- _context.next = 32;
172
+ _context.next = 12;
173
173
  break;
174
- case 31:
174
+ case 11:
175
175
  throw new errors.MissingParameterError('Parameter missing: authentication_method');
176
- case 32:
176
+ case 12:
177
177
  if (params.inactivity_days) {
178
- _context.next = 38;
178
+ _context.next = 14;
179
179
  break;
180
180
  }
181
181
  if (!_this.attributes.inactivity_days) {
182
- _context.next = 37;
182
+ _context.next = 13;
183
183
  break;
184
184
  }
185
185
  params.inactivity_days = _this.inactivity_days;
186
- _context.next = 38;
186
+ _context.next = 14;
187
187
  break;
188
- case 37:
188
+ case 13:
189
189
  throw new errors.MissingParameterError('Parameter missing: inactivity_days');
190
- case 38:
191
- _context.next = 40;
190
+ case 14:
191
+ _context.next = 15;
192
192
  return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
193
- case 40:
193
+ case 15:
194
194
  response = _context.sent;
195
195
  return _context.abrupt("return", new UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, _this.options));
196
- case 42:
196
+ case 16:
197
197
  case "end":
198
198
  return _context.stop();
199
199
  }
@@ -202,46 +202,46 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
202
202
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
203
203
  var params,
204
204
  _args2 = arguments;
205
- return _regenerator.default.wrap(function _callee2$(_context2) {
205
+ return _regenerator.default.wrap(function (_context2) {
206
206
  while (1) switch (_context2.prev = _context2.next) {
207
207
  case 0:
208
208
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
209
209
  if (_this.attributes.id) {
210
- _context2.next = 3;
210
+ _context2.next = 1;
211
211
  break;
212
212
  }
213
213
  throw new errors.EmptyPropertyError('Current object has no id');
214
- case 3:
214
+ case 1:
215
215
  if ((0, _utils.isObject)(params)) {
216
- _context2.next = 5;
216
+ _context2.next = 2;
217
217
  break;
218
218
  }
219
219
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
220
- case 5:
220
+ case 2:
221
221
  params.id = _this.attributes.id;
222
222
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
223
- _context2.next = 8;
223
+ _context2.next = 3;
224
224
  break;
225
225
  }
226
226
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
227
- case 8:
227
+ case 3:
228
228
  if (params.id) {
229
- _context2.next = 14;
229
+ _context2.next = 5;
230
230
  break;
231
231
  }
232
232
  if (!_this.attributes.id) {
233
- _context2.next = 13;
233
+ _context2.next = 4;
234
234
  break;
235
235
  }
236
236
  params.id = _this.id;
237
- _context2.next = 14;
237
+ _context2.next = 5;
238
238
  break;
239
- case 13:
239
+ case 4:
240
240
  throw new errors.MissingParameterError('Parameter missing: id');
241
- case 14:
242
- _context2.next = 16;
241
+ case 5:
242
+ _context2.next = 6;
243
243
  return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
244
- case 16:
244
+ case 6:
245
245
  case "end":
246
246
  return _context2.stop();
247
247
  }
@@ -253,27 +253,27 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
253
253
  });
254
254
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
255
255
  var _newObject, newObject;
256
- return _regenerator.default.wrap(function _callee3$(_context3) {
256
+ return _regenerator.default.wrap(function (_context3) {
257
257
  while (1) switch (_context3.prev = _context3.next) {
258
258
  case 0:
259
259
  if (!_this.attributes.id) {
260
- _context3.next = 6;
260
+ _context3.next = 2;
261
261
  break;
262
262
  }
263
- _context3.next = 3;
263
+ _context3.next = 1;
264
264
  return _this.update(_this.attributes);
265
- case 3:
265
+ case 1:
266
266
  _newObject = _context3.sent;
267
267
  _this.attributes = _objectSpread({}, _newObject.attributes);
268
268
  return _context3.abrupt("return", true);
269
- case 6:
270
- _context3.next = 8;
269
+ case 2:
270
+ _context3.next = 3;
271
271
  return UserLifecycleRule.create(_this.attributes, _this.options);
272
- case 8:
272
+ case 3:
273
273
  newObject = _context3.sent;
274
274
  _this.attributes = _objectSpread({}, newObject.attributes);
275
275
  return _context3.abrupt("return", true);
276
- case 11:
276
+ case 4:
277
277
  case "end":
278
278
  return _context3.stop();
279
279
  }
@@ -302,31 +302,31 @@ _UserLifecycleRule = UserLifecycleRule;
302
302
  options,
303
303
  response,
304
304
  _args4 = arguments;
305
- return _regenerator.default.wrap(function _callee4$(_context4) {
305
+ return _regenerator.default.wrap(function (_context4) {
306
306
  while (1) switch (_context4.prev = _context4.next) {
307
307
  case 0:
308
308
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
309
309
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
310
310
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
311
- _context4.next = 4;
311
+ _context4.next = 1;
312
312
  break;
313
313
  }
314
314
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
315
- case 4:
315
+ case 1:
316
316
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
317
- _context4.next = 6;
317
+ _context4.next = 2;
318
318
  break;
319
319
  }
320
320
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
321
- case 6:
322
- _context4.next = 8;
321
+ case 2:
322
+ _context4.next = 3;
323
323
  return _Api.default.sendRequest('/user_lifecycle_rules', 'GET', params, options);
324
- case 8:
324
+ case 3:
325
325
  response = _context4.sent;
326
326
  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) {
327
327
  return new _UserLifecycleRule(obj, options);
328
328
  })) || []);
329
- case 10:
329
+ case 4:
330
330
  case "end":
331
331
  return _context4.stop();
332
332
  }
@@ -345,36 +345,36 @@ _UserLifecycleRule = UserLifecycleRule;
345
345
  options,
346
346
  response,
347
347
  _args5 = arguments;
348
- return _regenerator.default.wrap(function _callee5$(_context5) {
348
+ return _regenerator.default.wrap(function (_context5) {
349
349
  while (1) switch (_context5.prev = _context5.next) {
350
350
  case 0:
351
351
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
352
352
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
353
353
  if ((0, _utils.isObject)(params)) {
354
- _context5.next = 4;
354
+ _context5.next = 1;
355
355
  break;
356
356
  }
357
357
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
358
- case 4:
358
+ case 1:
359
359
  params.id = id;
360
360
  if (params.id) {
361
- _context5.next = 7;
361
+ _context5.next = 2;
362
362
  break;
363
363
  }
364
364
  throw new errors.MissingParameterError('Parameter missing: id');
365
- case 7:
365
+ case 2:
366
366
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
367
- _context5.next = 9;
367
+ _context5.next = 3;
368
368
  break;
369
369
  }
370
370
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
371
- case 9:
372
- _context5.next = 11;
371
+ case 3:
372
+ _context5.next = 4;
373
373
  return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'GET', params, options);
374
- case 11:
374
+ case 4:
375
375
  response = _context5.sent;
376
376
  return _context5.abrupt("return", new _UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, options));
377
- case 13:
377
+ case 5:
378
378
  case "end":
379
379
  return _context5.stop();
380
380
  }
@@ -400,53 +400,53 @@ _UserLifecycleRule = UserLifecycleRule;
400
400
  options,
401
401
  response,
402
402
  _args6 = arguments;
403
- return _regenerator.default.wrap(function _callee6$(_context6) {
403
+ return _regenerator.default.wrap(function (_context6) {
404
404
  while (1) switch (_context6.prev = _context6.next) {
405
405
  case 0:
406
406
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
407
407
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
408
408
  if (params.action) {
409
- _context6.next = 4;
409
+ _context6.next = 1;
410
410
  break;
411
411
  }
412
412
  throw new errors.MissingParameterError('Parameter missing: action');
413
- case 4:
413
+ case 1:
414
414
  if (params.authentication_method) {
415
- _context6.next = 6;
415
+ _context6.next = 2;
416
416
  break;
417
417
  }
418
418
  throw new errors.MissingParameterError('Parameter missing: authentication_method');
419
- case 6:
419
+ case 2:
420
420
  if (params.inactivity_days) {
421
- _context6.next = 8;
421
+ _context6.next = 3;
422
422
  break;
423
423
  }
424
424
  throw new errors.MissingParameterError('Parameter missing: inactivity_days');
425
- case 8:
425
+ case 3:
426
426
  if (!(params.action && !(0, _utils.isString)(params.action))) {
427
- _context6.next = 10;
427
+ _context6.next = 4;
428
428
  break;
429
429
  }
430
430
  throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
431
- case 10:
431
+ case 4:
432
432
  if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
433
- _context6.next = 12;
433
+ _context6.next = 5;
434
434
  break;
435
435
  }
436
436
  throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
437
- case 12:
437
+ case 5:
438
438
  if (!(params.inactivity_days && !(0, _utils.isInt)(params.inactivity_days))) {
439
- _context6.next = 14;
439
+ _context6.next = 6;
440
440
  break;
441
441
  }
442
442
  throw new errors.InvalidParameterError("Bad parameter: inactivity_days must be of type Int, received ".concat((0, _utils.getType)(params.inactivity_days)));
443
- case 14:
444
- _context6.next = 16;
443
+ case 6:
444
+ _context6.next = 7;
445
445
  return _Api.default.sendRequest('/user_lifecycle_rules', 'POST', params, options);
446
- case 16:
446
+ case 7:
447
447
  response = _context6.sent;
448
448
  return _context6.abrupt("return", new _UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, options));
449
- case 18:
449
+ case 8:
450
450
  case "end":
451
451
  return _context6.stop();
452
452
  }