files.com 1.0.235 → 1.0.237

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +9 -2
  3. package/docs/models/BundleNotification.md +35 -0
  4. package/docs/models/BundleRegistration.md +3 -1
  5. package/docs/models/InboxRegistration.md +3 -1
  6. package/docs/models/Site.md +2 -0
  7. package/lib/Api.js +153 -159
  8. package/lib/isomorphic/File.node.js +24 -28
  9. package/lib/models/ActionNotificationExport.js +97 -101
  10. package/lib/models/ActionNotificationExportResult.js +44 -46
  11. package/lib/models/ActionWebhookFailure.js +42 -44
  12. package/lib/models/ApiKey.js +271 -287
  13. package/lib/models/App.js +26 -28
  14. package/lib/models/As2IncomingMessage.js +32 -34
  15. package/lib/models/As2OutgoingMessage.js +32 -34
  16. package/lib/models/As2Partner.js +231 -241
  17. package/lib/models/As2Station.js +219 -229
  18. package/lib/models/Automation.js +333 -343
  19. package/lib/models/AutomationRun.js +75 -79
  20. package/lib/models/BandwidthSnapshot.js +26 -28
  21. package/lib/models/Behavior.js +323 -337
  22. package/lib/models/Bundle.js +381 -387
  23. package/lib/models/BundleDownload.js +38 -40
  24. package/lib/models/BundleNotification.js +223 -173
  25. package/lib/models/BundleRecipient.js +104 -108
  26. package/lib/models/BundleRegistration.js +41 -40
  27. package/lib/models/Clickwrap.js +213 -223
  28. package/lib/models/DnsRecord.js +26 -28
  29. package/lib/models/ExternalEvent.js +93 -99
  30. package/lib/models/File.js +726 -766
  31. package/lib/models/FileComment.js +180 -188
  32. package/lib/models/FileCommentReaction.js +84 -88
  33. package/lib/models/FileMigration.js +31 -33
  34. package/lib/models/Folder.js +94 -98
  35. package/lib/models/FormFieldSet.js +189 -199
  36. package/lib/models/Group.js +207 -217
  37. package/lib/models/GroupUser.js +230 -238
  38. package/lib/models/History.js +266 -276
  39. package/lib/models/HistoryExport.js +175 -179
  40. package/lib/models/HistoryExportResult.js +44 -46
  41. package/lib/models/InboxRecipient.js +104 -108
  42. package/lib/models/InboxRegistration.js +35 -34
  43. package/lib/models/InboxUpload.js +38 -40
  44. package/lib/models/Invoice.js +57 -61
  45. package/lib/models/IpAddress.js +78 -84
  46. package/lib/models/Lock.js +148 -154
  47. package/lib/models/Message.js +267 -277
  48. package/lib/models/MessageComment.js +207 -217
  49. package/lib/models/MessageCommentReaction.js +147 -155
  50. package/lib/models/MessageReaction.js +147 -155
  51. package/lib/models/Notification.js +255 -265
  52. package/lib/models/Payment.js +57 -61
  53. package/lib/models/Permission.js +128 -134
  54. package/lib/models/Priority.js +45 -47
  55. package/lib/models/Project.js +183 -193
  56. package/lib/models/PublicKey.js +207 -217
  57. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  58. package/lib/models/RemoteServer.js +805 -819
  59. package/lib/models/Request.js +166 -174
  60. package/lib/models/Session.js +47 -51
  61. package/lib/models/SettingsChange.js +26 -28
  62. package/lib/models/SftpHostKey.js +177 -187
  63. package/lib/models/Site.js +415 -418
  64. package/lib/models/SsoStrategy.js +99 -105
  65. package/lib/models/Style.js +127 -133
  66. package/lib/models/UsageDailySnapshot.js +26 -28
  67. package/lib/models/UsageSnapshot.js +26 -28
  68. package/lib/models/User.js +587 -603
  69. package/lib/models/UserCipherUse.js +32 -34
  70. package/lib/models/UserRequest.js +147 -155
  71. package/lib/models/WebhookTest.js +54 -56
  72. package/package.json +1 -1
  73. package/src/models/Bundle.js +10 -1
  74. package/src/models/BundleNotification.js +39 -1
  75. package/src/models/BundleRegistration.js +3 -0
  76. package/src/models/InboxRegistration.js +3 -0
  77. package/src/models/Site.js +3 -0
@@ -78,39 +78,37 @@ var FileMigration = /*#__PURE__*/(0, _createClass2.default)(function FileMigrati
78
78
  response,
79
79
  _args = arguments;
80
80
  return _regenerator.default.wrap(function _callee$(_context) {
81
- while (1) {
82
- switch (_context.prev = _context.next) {
83
- case 0:
84
- params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
85
- options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
86
- if ((0, _utils.isObject)(params)) {
87
- _context.next = 4;
88
- break;
89
- }
90
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
91
- case 4:
92
- params['id'] = id;
93
- if (params['id']) {
94
- _context.next = 7;
95
- break;
96
- }
97
- throw new errors.MissingParameterError('Parameter missing: id');
98
- case 7:
99
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
100
- _context.next = 9;
101
- break;
102
- }
103
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
104
- case 9:
105
- _context.next = 11;
106
- return _Api.default.sendRequest("/file_migrations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
107
- case 11:
108
- response = _context.sent;
109
- return _context.abrupt("return", new FileMigration(response === null || response === void 0 ? void 0 : response.data, options));
110
- case 13:
111
- case "end":
112
- return _context.stop();
113
- }
81
+ while (1) switch (_context.prev = _context.next) {
82
+ case 0:
83
+ params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
84
+ options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
85
+ if ((0, _utils.isObject)(params)) {
86
+ _context.next = 4;
87
+ break;
88
+ }
89
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
90
+ case 4:
91
+ params['id'] = id;
92
+ if (params['id']) {
93
+ _context.next = 7;
94
+ break;
95
+ }
96
+ throw new errors.MissingParameterError('Parameter missing: id');
97
+ case 7:
98
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
99
+ _context.next = 9;
100
+ break;
101
+ }
102
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
103
+ case 9:
104
+ _context.next = 11;
105
+ return _Api.default.sendRequest("/file_migrations/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
106
+ case 11:
107
+ response = _context.sent;
108
+ return _context.abrupt("return", new FileMigration(response === null || response === void 0 ? void 0 : response.data, options));
109
+ case 13:
110
+ case "end":
111
+ return _context.stop();
114
112
  }
115
113
  }, _callee);
116
114
  }));
@@ -169,71 +169,69 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
169
169
  response,
170
170
  _args = arguments;
171
171
  return _regenerator.default.wrap(function _callee$(_context) {
172
- while (1) {
173
- switch (_context.prev = _context.next) {
174
- case 0:
175
- params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
176
- options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
177
- if ((0, _utils.isObject)(params)) {
178
- _context.next = 4;
179
- break;
180
- }
181
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
182
- case 4:
183
- params['path'] = path;
184
- if (params['path']) {
185
- _context.next = 7;
186
- break;
187
- }
188
- throw new errors.MissingParameterError('Parameter missing: path');
189
- case 7:
190
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
191
- _context.next = 9;
192
- break;
193
- }
194
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
195
- case 9:
196
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
197
- _context.next = 11;
198
- break;
199
- }
200
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
201
- case 11:
202
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
203
- _context.next = 13;
204
- break;
205
- }
206
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
207
- case 13:
208
- if (!(params['filter'] && !(0, _utils.isString)(params['filter']))) {
209
- _context.next = 15;
210
- break;
211
- }
212
- throw new errors.InvalidParameterError("Bad parameter: filter must be of type String, received ".concat((0, _utils.getType)(params['filter'])));
213
- case 15:
214
- if (!(params['preview_size'] && !(0, _utils.isString)(params['preview_size']))) {
215
- _context.next = 17;
216
- break;
217
- }
218
- throw new errors.InvalidParameterError("Bad parameter: preview_size must be of type String, received ".concat((0, _utils.getType)(params['preview_size'])));
219
- case 17:
220
- if (!(params['search'] && !(0, _utils.isString)(params['search']))) {
221
- _context.next = 19;
222
- break;
223
- }
224
- throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params['search'])));
225
- case 19:
226
- _context.next = 21;
227
- return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
228
- case 21:
229
- response = _context.sent;
230
- return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
231
- return new _File.default(obj, options);
232
- })) || []);
233
- case 23:
234
- case "end":
235
- return _context.stop();
236
- }
172
+ while (1) switch (_context.prev = _context.next) {
173
+ case 0:
174
+ params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
175
+ options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
176
+ if ((0, _utils.isObject)(params)) {
177
+ _context.next = 4;
178
+ break;
179
+ }
180
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
181
+ case 4:
182
+ params['path'] = path;
183
+ if (params['path']) {
184
+ _context.next = 7;
185
+ break;
186
+ }
187
+ throw new errors.MissingParameterError('Parameter missing: path');
188
+ case 7:
189
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
190
+ _context.next = 9;
191
+ break;
192
+ }
193
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
194
+ case 9:
195
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
196
+ _context.next = 11;
197
+ break;
198
+ }
199
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
200
+ case 11:
201
+ if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
202
+ _context.next = 13;
203
+ break;
204
+ }
205
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
206
+ case 13:
207
+ if (!(params['filter'] && !(0, _utils.isString)(params['filter']))) {
208
+ _context.next = 15;
209
+ break;
210
+ }
211
+ throw new errors.InvalidParameterError("Bad parameter: filter must be of type String, received ".concat((0, _utils.getType)(params['filter'])));
212
+ case 15:
213
+ if (!(params['preview_size'] && !(0, _utils.isString)(params['preview_size']))) {
214
+ _context.next = 17;
215
+ break;
216
+ }
217
+ throw new errors.InvalidParameterError("Bad parameter: preview_size must be of type String, received ".concat((0, _utils.getType)(params['preview_size'])));
218
+ case 17:
219
+ if (!(params['search'] && !(0, _utils.isString)(params['search']))) {
220
+ _context.next = 19;
221
+ break;
222
+ }
223
+ throw new errors.InvalidParameterError("Bad parameter: search must be of type String, received ".concat((0, _utils.getType)(params['search'])));
224
+ case 19:
225
+ _context.next = 21;
226
+ return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
227
+ case 21:
228
+ response = _context.sent;
229
+ return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
230
+ return new _File.default(obj, options);
231
+ })) || []);
232
+ case 23:
233
+ case "end":
234
+ return _context.stop();
237
235
  }
238
236
  }, _callee);
239
237
  }));
@@ -248,39 +246,37 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
248
246
  response,
249
247
  _args2 = arguments;
250
248
  return _regenerator.default.wrap(function _callee2$(_context2) {
251
- while (1) {
252
- switch (_context2.prev = _context2.next) {
253
- case 0:
254
- params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
255
- options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
256
- if ((0, _utils.isObject)(params)) {
257
- _context2.next = 4;
258
- break;
259
- }
260
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
261
- case 4:
262
- params['path'] = path;
263
- if (params['path']) {
264
- _context2.next = 7;
265
- break;
266
- }
267
- throw new errors.MissingParameterError('Parameter missing: path');
268
- case 7:
269
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
270
- _context2.next = 9;
271
- break;
272
- }
273
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
274
- case 9:
275
- _context2.next = 11;
276
- return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'POST', params, options);
277
- case 11:
278
- response = _context2.sent;
279
- return _context2.abrupt("return", new _File.default(response === null || response === void 0 ? void 0 : response.data, options));
280
- case 13:
281
- case "end":
282
- return _context2.stop();
283
- }
249
+ while (1) switch (_context2.prev = _context2.next) {
250
+ case 0:
251
+ params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
252
+ options = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
253
+ if ((0, _utils.isObject)(params)) {
254
+ _context2.next = 4;
255
+ break;
256
+ }
257
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
258
+ case 4:
259
+ params['path'] = path;
260
+ if (params['path']) {
261
+ _context2.next = 7;
262
+ break;
263
+ }
264
+ throw new errors.MissingParameterError('Parameter missing: path');
265
+ case 7:
266
+ if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
267
+ _context2.next = 9;
268
+ break;
269
+ }
270
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
271
+ case 9:
272
+ _context2.next = 11;
273
+ return _Api.default.sendRequest("/folders/".concat(encodeURIComponent(params['path'])), 'POST', params, options);
274
+ case 11:
275
+ response = _context2.sent;
276
+ return _context2.abrupt("return", new _File.default(response === null || response === void 0 ? void 0 : response.data, options));
277
+ case 13:
278
+ case "end":
279
+ return _context2.stop();
284
280
  }
285
281
  }, _callee2);
286
282
  }));