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
@@ -113,31 +113,31 @@ _OutboundConnectionLog = OutboundConnectionLog;
113
113
  options,
114
114
  response,
115
115
  _args = arguments;
116
- return _regenerator.default.wrap(function _callee$(_context) {
116
+ return _regenerator.default.wrap(function (_context) {
117
117
  while (1) switch (_context.prev = _context.next) {
118
118
  case 0:
119
119
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
120
120
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
121
121
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
122
- _context.next = 4;
122
+ _context.next = 1;
123
123
  break;
124
124
  }
125
125
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
126
- case 4:
126
+ case 1:
127
127
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
128
- _context.next = 6;
128
+ _context.next = 2;
129
129
  break;
130
130
  }
131
131
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
132
- case 6:
133
- _context.next = 8;
132
+ case 2:
133
+ _context.next = 3;
134
134
  return _Api.default.sendRequest('/outbound_connection_logs', 'GET', params, options);
135
- case 8:
135
+ case 3:
136
136
  response = _context.sent;
137
137
  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) {
138
138
  return new _OutboundConnectionLog(obj, options);
139
139
  })) || []);
140
- case 10:
140
+ case 4:
141
141
  case "end":
142
142
  return _context.stop();
143
143
  }
@@ -108,32 +108,32 @@ _Payment = Payment;
108
108
  response,
109
109
  AccountLineItem,
110
110
  _args = arguments;
111
- return _regenerator.default.wrap(function _callee$(_context) {
111
+ return _regenerator.default.wrap(function (_context) {
112
112
  while (1) switch (_context.prev = _context.next) {
113
113
  case 0:
114
114
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
115
115
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
116
116
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
117
- _context.next = 4;
117
+ _context.next = 1;
118
118
  break;
119
119
  }
120
120
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
121
- case 4:
121
+ case 1:
122
122
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
123
- _context.next = 6;
123
+ _context.next = 2;
124
124
  break;
125
125
  }
126
126
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
127
- case 6:
128
- _context.next = 8;
127
+ case 2:
128
+ _context.next = 3;
129
129
  return _Api.default.sendRequest('/payments', 'GET', params, options);
130
- case 8:
130
+ case 3:
131
131
  response = _context.sent;
132
132
  AccountLineItem = require('./AccountLineItem.js').default;
133
133
  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) {
134
134
  return new AccountLineItem(obj, options);
135
135
  })) || []);
136
- case 11:
136
+ case 4:
137
137
  case "end":
138
138
  return _context.stop();
139
139
  }
@@ -153,37 +153,37 @@ _Payment = Payment;
153
153
  response,
154
154
  AccountLineItem,
155
155
  _args2 = arguments;
156
- return _regenerator.default.wrap(function _callee2$(_context2) {
156
+ return _regenerator.default.wrap(function (_context2) {
157
157
  while (1) switch (_context2.prev = _context2.next) {
158
158
  case 0:
159
159
  params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
160
160
  options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
161
161
  if ((0, _utils.isObject)(params)) {
162
- _context2.next = 4;
162
+ _context2.next = 1;
163
163
  break;
164
164
  }
165
165
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
166
- case 4:
166
+ case 1:
167
167
  params.id = id;
168
168
  if (params.id) {
169
- _context2.next = 7;
169
+ _context2.next = 2;
170
170
  break;
171
171
  }
172
172
  throw new errors.MissingParameterError('Parameter missing: id');
173
- case 7:
173
+ case 2:
174
174
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
175
- _context2.next = 9;
175
+ _context2.next = 3;
176
176
  break;
177
177
  }
178
178
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
179
- case 9:
180
- _context2.next = 11;
179
+ case 3:
180
+ _context2.next = 4;
181
181
  return _Api.default.sendRequest("/payments/".concat(encodeURIComponent(params.id)), 'GET', params, options);
182
- case 11:
182
+ case 4:
183
183
  response = _context2.sent;
184
184
  AccountLineItem = require('./AccountLineItem.js').default;
185
185
  return _context2.abrupt("return", new AccountLineItem(response === null || response === void 0 ? void 0 : response.data, options));
186
- case 14:
186
+ case 5:
187
187
  case "end":
188
188
  return _context2.stop();
189
189
  }
@@ -98,46 +98,46 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
98
98
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
99
99
  var params,
100
100
  _args = arguments;
101
- return _regenerator.default.wrap(function _callee$(_context) {
101
+ return _regenerator.default.wrap(function (_context) {
102
102
  while (1) switch (_context.prev = _context.next) {
103
103
  case 0:
104
104
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
105
105
  if (_this.attributes.id) {
106
- _context.next = 3;
106
+ _context.next = 1;
107
107
  break;
108
108
  }
109
109
  throw new errors.EmptyPropertyError('Current object has no id');
110
- case 3:
110
+ case 1:
111
111
  if ((0, _utils.isObject)(params)) {
112
- _context.next = 5;
112
+ _context.next = 2;
113
113
  break;
114
114
  }
115
115
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
116
- case 5:
116
+ case 2:
117
117
  params.id = _this.attributes.id;
118
118
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
119
- _context.next = 8;
119
+ _context.next = 3;
120
120
  break;
121
121
  }
122
122
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
123
- case 8:
123
+ case 3:
124
124
  if (params.id) {
125
- _context.next = 14;
125
+ _context.next = 5;
126
126
  break;
127
127
  }
128
128
  if (!_this.attributes.id) {
129
- _context.next = 13;
129
+ _context.next = 4;
130
130
  break;
131
131
  }
132
132
  params.id = _this.id;
133
- _context.next = 14;
133
+ _context.next = 5;
134
134
  break;
135
- case 13:
135
+ case 4:
136
136
  throw new errors.MissingParameterError('Parameter missing: id');
137
- case 14:
138
- _context.next = 16;
137
+ case 5:
138
+ _context.next = 6;
139
139
  return _Api.default.sendRequest("/permissions/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
140
- case 16:
140
+ case 6:
141
141
  case "end":
142
142
  return _context.stop();
143
143
  }
@@ -149,22 +149,22 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
149
149
  });
150
150
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
151
151
  var newObject;
152
- return _regenerator.default.wrap(function _callee2$(_context2) {
152
+ return _regenerator.default.wrap(function (_context2) {
153
153
  while (1) switch (_context2.prev = _context2.next) {
154
154
  case 0:
155
155
  if (!_this.attributes.id) {
156
- _context2.next = 4;
156
+ _context2.next = 1;
157
157
  break;
158
158
  }
159
159
  throw new errors.NotImplementedError('The Permission object doesn\'t support updates.');
160
- case 4:
161
- _context2.next = 6;
160
+ case 1:
161
+ _context2.next = 2;
162
162
  return Permission.create(_this.attributes, _this.options);
163
- case 6:
163
+ case 2:
164
164
  newObject = _context2.sent;
165
165
  _this.attributes = _objectSpread({}, newObject.attributes);
166
166
  return _context2.abrupt("return", true);
167
- case 9:
167
+ case 3:
168
168
  case "end":
169
169
  return _context2.stop();
170
170
  }
@@ -200,49 +200,49 @@ _Permission = Permission;
200
200
  options,
201
201
  response,
202
202
  _args3 = arguments;
203
- return _regenerator.default.wrap(function _callee3$(_context3) {
203
+ return _regenerator.default.wrap(function (_context3) {
204
204
  while (1) switch (_context3.prev = _context3.next) {
205
205
  case 0:
206
206
  params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
207
207
  options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
208
208
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
209
- _context3.next = 4;
209
+ _context3.next = 1;
210
210
  break;
211
211
  }
212
212
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
213
- case 4:
213
+ case 1:
214
214
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
215
- _context3.next = 6;
215
+ _context3.next = 2;
216
216
  break;
217
217
  }
218
218
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
219
- case 6:
219
+ case 2:
220
220
  if (!(params.path && !(0, _utils.isString)(params.path))) {
221
- _context3.next = 8;
221
+ _context3.next = 3;
222
222
  break;
223
223
  }
224
224
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
225
- case 8:
225
+ case 3:
226
226
  if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
227
- _context3.next = 10;
227
+ _context3.next = 4;
228
228
  break;
229
229
  }
230
230
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
231
- case 10:
231
+ case 4:
232
232
  if (!(params.user_id && !(0, _utils.isString)(params.user_id))) {
233
- _context3.next = 12;
233
+ _context3.next = 5;
234
234
  break;
235
235
  }
236
236
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params.user_id)));
237
- case 12:
238
- _context3.next = 14;
237
+ case 5:
238
+ _context3.next = 6;
239
239
  return _Api.default.sendRequest('/permissions', 'GET', params, options);
240
- case 14:
240
+ case 6:
241
241
  response = _context3.sent;
242
242
  return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
243
243
  return new _Permission(obj, options);
244
244
  })) || []);
245
- case 16:
245
+ case 7:
246
246
  case "end":
247
247
  return _context3.stop();
248
248
  }
@@ -267,65 +267,65 @@ _Permission = Permission;
267
267
  options,
268
268
  response,
269
269
  _args4 = arguments;
270
- return _regenerator.default.wrap(function _callee4$(_context4) {
270
+ return _regenerator.default.wrap(function (_context4) {
271
271
  while (1) switch (_context4.prev = _context4.next) {
272
272
  case 0:
273
273
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
274
274
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
275
275
  if (params.path) {
276
- _context4.next = 4;
276
+ _context4.next = 1;
277
277
  break;
278
278
  }
279
279
  throw new errors.MissingParameterError('Parameter missing: path');
280
- case 4:
280
+ case 1:
281
281
  if (!(params.path && !(0, _utils.isString)(params.path))) {
282
- _context4.next = 6;
282
+ _context4.next = 2;
283
283
  break;
284
284
  }
285
285
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
286
- case 6:
286
+ case 2:
287
287
  if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
288
- _context4.next = 8;
288
+ _context4.next = 3;
289
289
  break;
290
290
  }
291
291
  throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
292
- case 8:
292
+ case 3:
293
293
  if (!(params.permission && !(0, _utils.isString)(params.permission))) {
294
- _context4.next = 10;
294
+ _context4.next = 4;
295
295
  break;
296
296
  }
297
297
  throw new errors.InvalidParameterError("Bad parameter: permission must be of type String, received ".concat((0, _utils.getType)(params.permission)));
298
- case 10:
298
+ case 4:
299
299
  if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
300
- _context4.next = 12;
300
+ _context4.next = 5;
301
301
  break;
302
302
  }
303
303
  throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
304
- case 12:
304
+ case 5:
305
305
  if (!(params.username && !(0, _utils.isString)(params.username))) {
306
- _context4.next = 14;
306
+ _context4.next = 6;
307
307
  break;
308
308
  }
309
309
  throw new errors.InvalidParameterError("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(params.username)));
310
- case 14:
310
+ case 6:
311
311
  if (!(params.group_name && !(0, _utils.isString)(params.group_name))) {
312
- _context4.next = 16;
312
+ _context4.next = 7;
313
313
  break;
314
314
  }
315
315
  throw new errors.InvalidParameterError("Bad parameter: group_name must be of type String, received ".concat((0, _utils.getType)(params.group_name)));
316
- case 16:
316
+ case 7:
317
317
  if (!(params.site_id && !(0, _utils.isInt)(params.site_id))) {
318
- _context4.next = 18;
318
+ _context4.next = 8;
319
319
  break;
320
320
  }
321
321
  throw new errors.InvalidParameterError("Bad parameter: site_id must be of type Int, received ".concat((0, _utils.getType)(params.site_id)));
322
- case 18:
323
- _context4.next = 20;
322
+ case 8:
323
+ _context4.next = 9;
324
324
  return _Api.default.sendRequest('/permissions', 'POST', params, options);
325
- case 20:
325
+ case 9:
326
326
  response = _context4.sent;
327
327
  return _context4.abrupt("return", new _Permission(response === null || response === void 0 ? void 0 : response.data, options));
328
- case 22:
328
+ case 10:
329
329
  case "end":
330
330
  return _context4.stop();
331
331
  }
@@ -65,50 +65,50 @@ _Priority = Priority;
65
65
  options,
66
66
  response,
67
67
  _args = arguments;
68
- return _regenerator.default.wrap(function _callee$(_context) {
68
+ return _regenerator.default.wrap(function (_context) {
69
69
  while (1) switch (_context.prev = _context.next) {
70
70
  case 0:
71
71
  params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
72
72
  options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
73
73
  if ((0, _utils.isObject)(params)) {
74
- _context.next = 4;
74
+ _context.next = 1;
75
75
  break;
76
76
  }
77
77
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
78
- case 4:
78
+ case 1:
79
79
  params.path = path;
80
80
  if (params.path) {
81
- _context.next = 7;
81
+ _context.next = 2;
82
82
  break;
83
83
  }
84
84
  throw new errors.MissingParameterError('Parameter missing: path');
85
- case 7:
85
+ case 2:
86
86
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
87
- _context.next = 9;
87
+ _context.next = 3;
88
88
  break;
89
89
  }
90
90
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
91
- case 9:
91
+ case 3:
92
92
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
93
- _context.next = 11;
93
+ _context.next = 4;
94
94
  break;
95
95
  }
96
96
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
97
- case 11:
97
+ case 4:
98
98
  if (!(params.path && !(0, _utils.isString)(params.path))) {
99
- _context.next = 13;
99
+ _context.next = 5;
100
100
  break;
101
101
  }
102
102
  throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
103
- case 13:
104
- _context.next = 15;
103
+ case 5:
104
+ _context.next = 6;
105
105
  return _Api.default.sendRequest('/priorities', 'GET', params, options);
106
- case 15:
106
+ case 6:
107
107
  response = _context.sent;
108
108
  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) {
109
109
  return new _Priority(obj, options);
110
110
  })) || []);
111
- case 17:
111
+ case 7:
112
112
  case "end":
113
113
  return _context.stop();
114
114
  }