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
@@ -52,69 +52,69 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
52
52
  var params,
53
53
  response,
54
54
  _args = arguments;
55
- return _regenerator.default.wrap(function _callee$(_context) {
55
+ return _regenerator.default.wrap(function (_context) {
56
56
  while (1) switch (_context.prev = _context.next) {
57
57
  case 0:
58
58
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
59
59
  if (_this.attributes.id) {
60
- _context.next = 3;
60
+ _context.next = 1;
61
61
  break;
62
62
  }
63
63
  throw new errors.EmptyPropertyError('Current object has no id');
64
- case 3:
64
+ case 1:
65
65
  if ((0, _utils.isObject)(params)) {
66
- _context.next = 5;
66
+ _context.next = 2;
67
67
  break;
68
68
  }
69
69
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
70
- case 5:
70
+ case 2:
71
71
  params.id = _this.attributes.id;
72
72
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
73
- _context.next = 8;
73
+ _context.next = 3;
74
74
  break;
75
75
  }
76
76
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
77
- case 8:
77
+ case 3:
78
78
  if (!(params.global_access && !(0, _utils.isString)(params.global_access))) {
79
- _context.next = 10;
79
+ _context.next = 4;
80
80
  break;
81
81
  }
82
82
  throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(params.global_access)));
83
- case 10:
83
+ case 4:
84
84
  if (params.id) {
85
- _context.next = 16;
85
+ _context.next = 6;
86
86
  break;
87
87
  }
88
88
  if (!_this.attributes.id) {
89
- _context.next = 15;
89
+ _context.next = 5;
90
90
  break;
91
91
  }
92
92
  params.id = _this.id;
93
- _context.next = 16;
93
+ _context.next = 6;
94
94
  break;
95
- case 15:
95
+ case 5:
96
96
  throw new errors.MissingParameterError('Parameter missing: id');
97
- case 16:
97
+ case 6:
98
98
  if (params.global_access) {
99
- _context.next = 22;
99
+ _context.next = 8;
100
100
  break;
101
101
  }
102
102
  if (!_this.attributes.global_access) {
103
- _context.next = 21;
103
+ _context.next = 7;
104
104
  break;
105
105
  }
106
106
  params.global_access = _this.global_access;
107
- _context.next = 22;
107
+ _context.next = 8;
108
108
  break;
109
- case 21:
109
+ case 7:
110
110
  throw new errors.MissingParameterError('Parameter missing: global_access');
111
- case 22:
112
- _context.next = 24;
111
+ case 8:
112
+ _context.next = 9;
113
113
  return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
114
- case 24:
114
+ case 9:
115
115
  response = _context.sent;
116
116
  return _context.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, _this.options));
117
- case 26:
117
+ case 10:
118
118
  case "end":
119
119
  return _context.stop();
120
120
  }
@@ -123,46 +123,46 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
123
123
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
124
124
  var params,
125
125
  _args2 = arguments;
126
- return _regenerator.default.wrap(function _callee2$(_context2) {
126
+ return _regenerator.default.wrap(function (_context2) {
127
127
  while (1) switch (_context2.prev = _context2.next) {
128
128
  case 0:
129
129
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
130
130
  if (_this.attributes.id) {
131
- _context2.next = 3;
131
+ _context2.next = 1;
132
132
  break;
133
133
  }
134
134
  throw new errors.EmptyPropertyError('Current object has no id');
135
- case 3:
135
+ case 1:
136
136
  if ((0, _utils.isObject)(params)) {
137
- _context2.next = 5;
137
+ _context2.next = 2;
138
138
  break;
139
139
  }
140
140
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
141
- case 5:
141
+ case 2:
142
142
  params.id = _this.attributes.id;
143
143
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
144
- _context2.next = 8;
144
+ _context2.next = 3;
145
145
  break;
146
146
  }
147
147
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
148
- case 8:
148
+ case 3:
149
149
  if (params.id) {
150
- _context2.next = 14;
150
+ _context2.next = 5;
151
151
  break;
152
152
  }
153
153
  if (!_this.attributes.id) {
154
- _context2.next = 13;
154
+ _context2.next = 4;
155
155
  break;
156
156
  }
157
157
  params.id = _this.id;
158
- _context2.next = 14;
158
+ _context2.next = 5;
159
159
  break;
160
- case 13:
160
+ case 4:
161
161
  throw new errors.MissingParameterError('Parameter missing: id');
162
- case 14:
163
- _context2.next = 16;
162
+ case 5:
163
+ _context2.next = 6;
164
164
  return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
165
- case 16:
165
+ case 6:
166
166
  case "end":
167
167
  return _context2.stop();
168
168
  }
@@ -174,27 +174,27 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
174
174
  });
175
175
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
176
176
  var _newObject, newObject;
177
- return _regenerator.default.wrap(function _callee3$(_context3) {
177
+ return _regenerator.default.wrap(function (_context3) {
178
178
  while (1) switch (_context3.prev = _context3.next) {
179
179
  case 0:
180
180
  if (!_this.attributes.id) {
181
- _context3.next = 6;
181
+ _context3.next = 2;
182
182
  break;
183
183
  }
184
- _context3.next = 3;
184
+ _context3.next = 1;
185
185
  return _this.update(_this.attributes);
186
- case 3:
186
+ case 1:
187
187
  _newObject = _context3.sent;
188
188
  _this.attributes = _objectSpread({}, _newObject.attributes);
189
189
  return _context3.abrupt("return", true);
190
- case 6:
191
- _context3.next = 8;
190
+ case 2:
191
+ _context3.next = 3;
192
192
  return Project.create(_this.attributes, _this.options);
193
- case 8:
193
+ case 3:
194
194
  newObject = _context3.sent;
195
195
  _this.attributes = _objectSpread({}, newObject.attributes);
196
196
  return _context3.abrupt("return", true);
197
- case 11:
197
+ case 4:
198
198
  case "end":
199
199
  return _context3.stop();
200
200
  }
@@ -223,31 +223,31 @@ _Project = Project;
223
223
  options,
224
224
  response,
225
225
  _args4 = arguments;
226
- return _regenerator.default.wrap(function _callee4$(_context4) {
226
+ return _regenerator.default.wrap(function (_context4) {
227
227
  while (1) switch (_context4.prev = _context4.next) {
228
228
  case 0:
229
229
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
230
230
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
231
231
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
232
- _context4.next = 4;
232
+ _context4.next = 1;
233
233
  break;
234
234
  }
235
235
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
236
- case 4:
236
+ case 1:
237
237
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
238
- _context4.next = 6;
238
+ _context4.next = 2;
239
239
  break;
240
240
  }
241
241
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
242
- case 6:
243
- _context4.next = 8;
242
+ case 2:
243
+ _context4.next = 3;
244
244
  return _Api.default.sendRequest('/projects', 'GET', params, options);
245
- case 8:
245
+ case 3:
246
246
  response = _context4.sent;
247
247
  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) {
248
248
  return new _Project(obj, options);
249
249
  })) || []);
250
- case 10:
250
+ case 4:
251
251
  case "end":
252
252
  return _context4.stop();
253
253
  }
@@ -266,36 +266,36 @@ _Project = Project;
266
266
  options,
267
267
  response,
268
268
  _args5 = arguments;
269
- return _regenerator.default.wrap(function _callee5$(_context5) {
269
+ return _regenerator.default.wrap(function (_context5) {
270
270
  while (1) switch (_context5.prev = _context5.next) {
271
271
  case 0:
272
272
  params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
273
273
  options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
274
274
  if ((0, _utils.isObject)(params)) {
275
- _context5.next = 4;
275
+ _context5.next = 1;
276
276
  break;
277
277
  }
278
278
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
279
- case 4:
279
+ case 1:
280
280
  params.id = id;
281
281
  if (params.id) {
282
- _context5.next = 7;
282
+ _context5.next = 2;
283
283
  break;
284
284
  }
285
285
  throw new errors.MissingParameterError('Parameter missing: id');
286
- case 7:
286
+ case 2:
287
287
  if (!(params.id && !(0, _utils.isInt)(params.id))) {
288
- _context5.next = 9;
288
+ _context5.next = 3;
289
289
  break;
290
290
  }
291
291
  throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
292
- case 9:
293
- _context5.next = 11;
292
+ case 3:
293
+ _context5.next = 4;
294
294
  return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params.id)), 'GET', params, options);
295
- case 11:
295
+ case 4:
296
296
  response = _context5.sent;
297
297
  return _context5.abrupt("return", new _Project(response === null || response === void 0 ? void 0 : response.data, options));
298
- case 13:
298
+ case 5:
299
299
  case "end":
300
300
  return _context5.stop();
301
301
  }
@@ -317,29 +317,29 @@ _Project = Project;
317
317
  options,
318
318
  response,
319
319
  _args6 = arguments;
320
- return _regenerator.default.wrap(function _callee6$(_context6) {
320
+ return _regenerator.default.wrap(function (_context6) {
321
321
  while (1) switch (_context6.prev = _context6.next) {
322
322
  case 0:
323
323
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
324
324
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
325
325
  if (params.global_access) {
326
- _context6.next = 4;
326
+ _context6.next = 1;
327
327
  break;
328
328
  }
329
329
  throw new errors.MissingParameterError('Parameter missing: global_access');
330
- case 4:
330
+ case 1:
331
331
  if (!(params.global_access && !(0, _utils.isString)(params.global_access))) {
332
- _context6.next = 6;
332
+ _context6.next = 2;
333
333
  break;
334
334
  }
335
335
  throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(params.global_access)));
336
- case 6:
337
- _context6.next = 8;
336
+ case 2:
337
+ _context6.next = 3;
338
338
  return _Api.default.sendRequest('/projects', 'POST', params, options);
339
- case 8:
339
+ case 3:
340
340
  response = _context6.sent;
341
341
  return _context6.abrupt("return", new _Project(response === null || response === void 0 ? void 0 : response.data, options));
342
- case 10:
342
+ case 4:
343
343
  case "end":
344
344
  return _context6.stop();
345
345
  }
@@ -89,31 +89,31 @@ _PublicHostingRequestLog = PublicHostingRequestLog;
89
89
  options,
90
90
  response,
91
91
  _args = arguments;
92
- return _regenerator.default.wrap(function _callee$(_context) {
92
+ return _regenerator.default.wrap(function (_context) {
93
93
  while (1) switch (_context.prev = _context.next) {
94
94
  case 0:
95
95
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
96
96
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
97
97
  if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
98
- _context.next = 4;
98
+ _context.next = 1;
99
99
  break;
100
100
  }
101
101
  throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
102
- case 4:
102
+ case 1:
103
103
  if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
104
- _context.next = 6;
104
+ _context.next = 2;
105
105
  break;
106
106
  }
107
107
  throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
108
- case 6:
109
- _context.next = 8;
108
+ case 2:
109
+ _context.next = 3;
110
110
  return _Api.default.sendRequest('/public_hosting_request_logs', 'GET', params, options);
111
- case 8:
111
+ case 3:
112
112
  response = _context.sent;
113
113
  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) {
114
114
  return new _PublicHostingRequestLog(obj, options);
115
115
  })) || []);
116
- case 10:
116
+ case 4:
117
117
  case "end":
118
118
  return _context.stop();
119
119
  }