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
@@ -82,89 +82,89 @@ var GroupUser = /*#__PURE__*/(0, _createClass2.default)(function GroupUser() {
82
82
  var params,
83
83
  response,
84
84
  _args = arguments;
85
- return _regenerator.default.wrap(function _callee$(_context) {
85
+ return _regenerator.default.wrap(function (_context) {
86
86
  while (1) switch (_context.prev = _context.next) {
87
87
  case 0:
88
88
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
89
89
  if (_this.attributes.id) {
90
- _context.next = 3;
90
+ _context.next = 1;
91
91
  break;
92
92
  }
93
93
  throw new errors.EmptyPropertyError('Current object has no id');
94
- case 3:
94
+ case 1:
95
95
  if ((0, _utils.isObject)(params)) {
96
- _context.next = 5;
96
+ _context.next = 2;
97
97
  break;
98
98
  }
99
99
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
100
- case 5:
100
+ case 2:
101
101
  params.id = _this.attributes.id;
102
102
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
103
- _context.next = 8;
103
+ _context.next = 3;
104
104
  break;
105
105
  }
106
106
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
107
- case 8:
107
+ case 3:
108
108
  if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
109
- _context.next = 10;
109
+ _context.next = 4;
110
110
  break;
111
111
  }
112
112
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
113
- case 10:
113
+ case 4:
114
114
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
115
- _context.next = 12;
115
+ _context.next = 5;
116
116
  break;
117
117
  }
118
118
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
119
- case 12:
119
+ case 5:
120
120
  if (params.id) {
121
- _context.next = 18;
121
+ _context.next = 7;
122
122
  break;
123
123
  }
124
124
  if (!_this.attributes.id) {
125
- _context.next = 17;
125
+ _context.next = 6;
126
126
  break;
127
127
  }
128
128
  params.id = _this.id;
129
- _context.next = 18;
129
+ _context.next = 7;
130
130
  break;
131
- case 17:
131
+ case 6:
132
132
  throw new errors.MissingParameterError('Parameter missing: id');
133
- case 18:
133
+ case 7:
134
134
  if (params.group_id) {
135
- _context.next = 24;
135
+ _context.next = 9;
136
136
  break;
137
137
  }
138
138
  if (!_this.attributes.group_id) {
139
- _context.next = 23;
139
+ _context.next = 8;
140
140
  break;
141
141
  }
142
142
  params.group_id = _this.group_id;
143
- _context.next = 24;
143
+ _context.next = 9;
144
144
  break;
145
- case 23:
145
+ case 8:
146
146
  throw new errors.MissingParameterError('Parameter missing: group_id');
147
- case 24:
147
+ case 9:
148
148
  if (params.user_id) {
149
- _context.next = 30;
149
+ _context.next = 11;
150
150
  break;
151
151
  }
152
152
  if (!_this.attributes.user_id) {
153
- _context.next = 29;
153
+ _context.next = 10;
154
154
  break;
155
155
  }
156
156
  params.user_id = _this.user_id;
157
- _context.next = 30;
157
+ _context.next = 11;
158
158
  break;
159
- case 29:
159
+ case 10:
160
160
  throw new errors.MissingParameterError('Parameter missing: user_id');
161
- case 30:
162
- _context.next = 32;
161
+ case 11:
162
+ _context.next = 12;
163
163
  return _Api.default.sendRequest("/group_users/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
164
- case 32:
164
+ case 12:
165
165
  response = _context.sent;
166
166
  return _context.abrupt("return", new GroupUser(response === null || response === void 0 ? void 0 : response.data, _this.options));
167
- case 34:
167
+ case 13:
168
168
  case "end":
169
169
  return _context.stop();
170
170
  }
@@ -176,86 +176,86 @@ var GroupUser = /*#__PURE__*/(0, _createClass2.default)(function GroupUser() {
176
176
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
177
177
  var params,
178
178
  _args2 = arguments;
179
- return _regenerator.default.wrap(function _callee2$(_context2) {
179
+ return _regenerator.default.wrap(function (_context2) {
180
180
  while (1) switch (_context2.prev = _context2.next) {
181
181
  case 0:
182
182
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
183
183
  if (_this.attributes.id) {
184
- _context2.next = 3;
184
+ _context2.next = 1;
185
185
  break;
186
186
  }
187
187
  throw new errors.EmptyPropertyError('Current object has no id');
188
- case 3:
188
+ case 1:
189
189
  if ((0, _utils.isObject)(params)) {
190
- _context2.next = 5;
190
+ _context2.next = 2;
191
191
  break;
192
192
  }
193
193
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
194
- case 5:
194
+ case 2:
195
195
  params.id = _this.attributes.id;
196
196
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
197
- _context2.next = 8;
197
+ _context2.next = 3;
198
198
  break;
199
199
  }
200
200
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
201
- case 8:
201
+ case 3:
202
202
  if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
203
- _context2.next = 10;
203
+ _context2.next = 4;
204
204
  break;
205
205
  }
206
206
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
207
- case 10:
207
+ case 4:
208
208
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
209
- _context2.next = 12;
209
+ _context2.next = 5;
210
210
  break;
211
211
  }
212
212
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
213
- case 12:
213
+ case 5:
214
214
  if (params.id) {
215
- _context2.next = 18;
215
+ _context2.next = 7;
216
216
  break;
217
217
  }
218
218
  if (!_this.attributes.id) {
219
- _context2.next = 17;
219
+ _context2.next = 6;
220
220
  break;
221
221
  }
222
222
  params.id = _this.id;
223
- _context2.next = 18;
223
+ _context2.next = 7;
224
224
  break;
225
- case 17:
225
+ case 6:
226
226
  throw new errors.MissingParameterError('Parameter missing: id');
227
- case 18:
227
+ case 7:
228
228
  if (params.group_id) {
229
- _context2.next = 24;
229
+ _context2.next = 9;
230
230
  break;
231
231
  }
232
232
  if (!_this.attributes.group_id) {
233
- _context2.next = 23;
233
+ _context2.next = 8;
234
234
  break;
235
235
  }
236
236
  params.group_id = _this.group_id;
237
- _context2.next = 24;
237
+ _context2.next = 9;
238
238
  break;
239
- case 23:
239
+ case 8:
240
240
  throw new errors.MissingParameterError('Parameter missing: group_id');
241
- case 24:
241
+ case 9:
242
242
  if (params.user_id) {
243
- _context2.next = 30;
243
+ _context2.next = 11;
244
244
  break;
245
245
  }
246
246
  if (!_this.attributes.user_id) {
247
- _context2.next = 29;
247
+ _context2.next = 10;
248
248
  break;
249
249
  }
250
250
  params.user_id = _this.user_id;
251
- _context2.next = 30;
251
+ _context2.next = 11;
252
252
  break;
253
- case 29:
253
+ case 10:
254
254
  throw new errors.MissingParameterError('Parameter missing: user_id');
255
- case 30:
256
- _context2.next = 32;
255
+ case 11:
256
+ _context2.next = 12;
257
257
  return _Api.default.sendRequest("/group_users/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
258
- case 32:
258
+ case 12:
259
259
  case "end":
260
260
  return _context2.stop();
261
261
  }
@@ -267,27 +267,27 @@ var GroupUser = /*#__PURE__*/(0, _createClass2.default)(function GroupUser() {
267
267
  });
268
268
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
269
269
  var _newObject, newObject;
270
- return _regenerator.default.wrap(function _callee3$(_context3) {
270
+ return _regenerator.default.wrap(function (_context3) {
271
271
  while (1) switch (_context3.prev = _context3.next) {
272
272
  case 0:
273
273
  if (!_this.attributes.id) {
274
- _context3.next = 6;
274
+ _context3.next = 2;
275
275
  break;
276
276
  }
277
- _context3.next = 3;
277
+ _context3.next = 1;
278
278
  return _this.update(_this.attributes);
279
- case 3:
279
+ case 1:
280
280
  _newObject = _context3.sent;
281
281
  _this.attributes = _objectSpread({}, _newObject.attributes);
282
282
  return _context3.abrupt("return", true);
283
- case 6:
284
- _context3.next = 8;
283
+ case 2:
284
+ _context3.next = 3;
285
285
  return GroupUser.create(_this.attributes, _this.options);
286
- case 8:
286
+ case 3:
287
287
  newObject = _context3.sent;
288
288
  _this.attributes = _objectSpread({}, newObject.attributes);
289
289
  return _context3.abrupt("return", true);
290
- case 11:
290
+ case 4:
291
291
  case "end":
292
292
  return _context3.stop();
293
293
  }
@@ -318,43 +318,43 @@ _GroupUser = GroupUser;
318
318
  options,
319
319
  response,
320
320
  _args4 = arguments;
321
- return _regenerator.default.wrap(function _callee4$(_context4) {
321
+ return _regenerator.default.wrap(function (_context4) {
322
322
  while (1) switch (_context4.prev = _context4.next) {
323
323
  case 0:
324
324
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
325
325
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
326
326
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
327
- _context4.next = 4;
327
+ _context4.next = 1;
328
328
  break;
329
329
  }
330
330
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
331
- case 4:
331
+ case 1:
332
332
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
333
- _context4.next = 6;
333
+ _context4.next = 2;
334
334
  break;
335
335
  }
336
336
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
337
- case 6:
337
+ case 2:
338
338
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
339
- _context4.next = 8;
339
+ _context4.next = 3;
340
340
  break;
341
341
  }
342
342
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
343
- case 8:
343
+ case 3:
344
344
  if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
345
- _context4.next = 10;
345
+ _context4.next = 4;
346
346
  break;
347
347
  }
348
348
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
349
- case 10:
350
- _context4.next = 12;
349
+ case 4:
350
+ _context4.next = 5;
351
351
  return _Api.default.sendRequest('/group_users', 'GET', params, options);
352
- case 12:
352
+ case 5:
353
353
  response = _context4.sent;
354
354
  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) {
355
355
  return new _GroupUser(obj, options);
356
356
  })) || []);
357
- case 14:
357
+ case 6:
358
358
  case "end":
359
359
  return _context4.stop();
360
360
  }
@@ -374,41 +374,41 @@ _GroupUser = GroupUser;
374
374
  options,
375
375
  response,
376
376
  _args5 = arguments;
377
- return _regenerator.default.wrap(function _callee5$(_context5) {
377
+ return _regenerator.default.wrap(function (_context5) {
378
378
  while (1) switch (_context5.prev = _context5.next) {
379
379
  case 0:
380
380
  params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
381
381
  options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
382
382
  if (params.group_id) {
383
- _context5.next = 4;
383
+ _context5.next = 1;
384
384
  break;
385
385
  }
386
386
  throw new errors.MissingParameterError('Parameter missing: group_id');
387
- case 4:
387
+ case 1:
388
388
  if (params.user_id) {
389
- _context5.next = 6;
389
+ _context5.next = 2;
390
390
  break;
391
391
  }
392
392
  throw new errors.MissingParameterError('Parameter missing: user_id');
393
- case 6:
393
+ case 2:
394
394
  if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
395
- _context5.next = 8;
395
+ _context5.next = 3;
396
396
  break;
397
397
  }
398
398
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
399
- case 8:
399
+ case 3:
400
400
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
401
- _context5.next = 10;
401
+ _context5.next = 4;
402
402
  break;
403
403
  }
404
404
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
405
- case 10:
406
- _context5.next = 12;
405
+ case 4:
406
+ _context5.next = 5;
407
407
  return _Api.default.sendRequest('/group_users', 'POST', params, options);
408
- case 12:
408
+ case 5:
409
409
  response = _context5.sent;
410
410
  return _context5.abrupt("return", new _GroupUser(response === null || response === void 0 ? void 0 : response.data, options));
411
- case 14:
411
+ case 6:
412
412
  case "end":
413
413
  return _context5.stop();
414
414
  }