files.com 1.0.235 → 1.0.237

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 (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
@@ -66,64 +66,62 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
66
66
  response,
67
67
  _args = arguments;
68
68
  return _regenerator.default.wrap(function _callee$(_context) {
69
- while (1) {
70
- switch (_context.prev = _context.next) {
71
- case 0:
72
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
73
- if (_this.attributes.id) {
74
- _context.next = 3;
75
- break;
76
- }
77
- throw new errors.EmptyPropertyError('Current object has no id');
78
- case 3:
79
- if ((0, _utils.isObject)(params)) {
80
- _context.next = 5;
81
- break;
82
- }
83
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
84
- case 5:
85
- params.id = _this.attributes.id;
86
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
87
- _context.next = 8;
88
- break;
89
- }
90
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
91
- case 8:
92
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
93
- _context.next = 10;
94
- break;
95
- }
96
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
97
- case 10:
98
- if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
99
- _context.next = 12;
100
- break;
101
- }
102
- throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
103
- case 12:
104
- if (params['id']) {
105
- _context.next = 18;
106
- break;
107
- }
108
- if (!_this.attributes.id) {
109
- _context.next = 17;
110
- break;
111
- }
112
- params['id'] = _this.id;
69
+ while (1) switch (_context.prev = _context.next) {
70
+ case 0:
71
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
72
+ if (_this.attributes.id) {
73
+ _context.next = 3;
74
+ break;
75
+ }
76
+ throw new errors.EmptyPropertyError('Current object has no id');
77
+ case 3:
78
+ if ((0, _utils.isObject)(params)) {
79
+ _context.next = 5;
80
+ break;
81
+ }
82
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
83
+ case 5:
84
+ params.id = _this.attributes.id;
85
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
86
+ _context.next = 8;
87
+ break;
88
+ }
89
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
90
+ case 8:
91
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
92
+ _context.next = 10;
93
+ break;
94
+ }
95
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
96
+ case 10:
97
+ if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
98
+ _context.next = 12;
99
+ break;
100
+ }
101
+ throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(private_key)));
102
+ case 12:
103
+ if (params['id']) {
113
104
  _context.next = 18;
114
105
  break;
115
- case 17:
116
- throw new errors.MissingParameterError('Parameter missing: id');
117
- case 18:
118
- _context.next = 20;
119
- return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
120
- case 20:
121
- response = _context.sent;
122
- return _context.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
123
- case 22:
124
- case "end":
125
- return _context.stop();
126
- }
106
+ }
107
+ if (!_this.attributes.id) {
108
+ _context.next = 17;
109
+ break;
110
+ }
111
+ params['id'] = _this.id;
112
+ _context.next = 18;
113
+ break;
114
+ case 17:
115
+ throw new errors.MissingParameterError('Parameter missing: id');
116
+ case 18:
117
+ _context.next = 20;
118
+ return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
119
+ case 20:
120
+ response = _context.sent;
121
+ return _context.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, _this.options));
122
+ case 22:
123
+ case "end":
124
+ return _context.stop();
127
125
  }
128
126
  }, _callee);
129
127
  })));
@@ -132,52 +130,50 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
132
130
  response,
133
131
  _args2 = arguments;
134
132
  return _regenerator.default.wrap(function _callee2$(_context2) {
135
- while (1) {
136
- switch (_context2.prev = _context2.next) {
137
- case 0:
138
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
139
- if (_this.attributes.id) {
140
- _context2.next = 3;
141
- break;
142
- }
143
- throw new errors.EmptyPropertyError('Current object has no id');
144
- case 3:
145
- if ((0, _utils.isObject)(params)) {
146
- _context2.next = 5;
147
- break;
148
- }
149
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
150
- case 5:
151
- params.id = _this.attributes.id;
152
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
153
- _context2.next = 8;
154
- break;
155
- }
156
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
157
- case 8:
158
- if (params['id']) {
159
- _context2.next = 14;
160
- break;
161
- }
162
- if (!_this.attributes.id) {
163
- _context2.next = 13;
164
- break;
165
- }
166
- params['id'] = _this.id;
133
+ while (1) switch (_context2.prev = _context2.next) {
134
+ case 0:
135
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
136
+ if (_this.attributes.id) {
137
+ _context2.next = 3;
138
+ break;
139
+ }
140
+ throw new errors.EmptyPropertyError('Current object has no id');
141
+ case 3:
142
+ if ((0, _utils.isObject)(params)) {
143
+ _context2.next = 5;
144
+ break;
145
+ }
146
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
147
+ case 5:
148
+ params.id = _this.attributes.id;
149
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
150
+ _context2.next = 8;
151
+ break;
152
+ }
153
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
154
+ case 8:
155
+ if (params['id']) {
167
156
  _context2.next = 14;
168
157
  break;
169
- case 13:
170
- throw new errors.MissingParameterError('Parameter missing: id');
171
- case 14:
172
- _context2.next = 16;
173
- return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
174
- case 16:
175
- response = _context2.sent;
176
- return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
177
- case 18:
178
- case "end":
179
- return _context2.stop();
180
- }
158
+ }
159
+ if (!_this.attributes.id) {
160
+ _context2.next = 13;
161
+ break;
162
+ }
163
+ params['id'] = _this.id;
164
+ _context2.next = 14;
165
+ break;
166
+ case 13:
167
+ throw new errors.MissingParameterError('Parameter missing: id');
168
+ case 14:
169
+ _context2.next = 16;
170
+ return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
171
+ case 16:
172
+ response = _context2.sent;
173
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
174
+ case 18:
175
+ case "end":
176
+ return _context2.stop();
181
177
  }
182
178
  }, _callee2);
183
179
  })));
@@ -214,34 +210,32 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
214
210
  response,
215
211
  _args3 = arguments;
216
212
  return _regenerator.default.wrap(function _callee3$(_context3) {
217
- while (1) {
218
- switch (_context3.prev = _context3.next) {
219
- case 0:
220
- params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
221
- options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
222
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
223
- _context3.next = 4;
224
- break;
225
- }
226
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
227
- case 4:
228
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
229
- _context3.next = 6;
230
- break;
231
- }
232
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
233
- case 6:
234
- _context3.next = 8;
235
- return _Api.default.sendRequest("/sftp_host_keys", 'GET', params, options);
236
- case 8:
237
- response = _context3.sent;
238
- return _context3.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) {
239
- return new SftpHostKey(obj, options);
240
- })) || []);
241
- case 10:
242
- case "end":
243
- return _context3.stop();
244
- }
213
+ while (1) switch (_context3.prev = _context3.next) {
214
+ case 0:
215
+ params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
216
+ options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
217
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
218
+ _context3.next = 4;
219
+ break;
220
+ }
221
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
222
+ case 4:
223
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
224
+ _context3.next = 6;
225
+ break;
226
+ }
227
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
228
+ case 6:
229
+ _context3.next = 8;
230
+ return _Api.default.sendRequest("/sftp_host_keys", 'GET', params, options);
231
+ case 8:
232
+ response = _context3.sent;
233
+ return _context3.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) {
234
+ return new SftpHostKey(obj, options);
235
+ })) || []);
236
+ case 10:
237
+ case "end":
238
+ return _context3.stop();
245
239
  }
246
240
  }, _callee3);
247
241
  })));
@@ -257,39 +251,37 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
257
251
  response,
258
252
  _args4 = arguments;
259
253
  return _regenerator.default.wrap(function _callee4$(_context4) {
260
- while (1) {
261
- switch (_context4.prev = _context4.next) {
262
- case 0:
263
- params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
264
- options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
265
- if ((0, _utils.isObject)(params)) {
266
- _context4.next = 4;
267
- break;
268
- }
269
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
270
- case 4:
271
- params['id'] = id;
272
- if (params['id']) {
273
- _context4.next = 7;
274
- break;
275
- }
276
- throw new errors.MissingParameterError('Parameter missing: id');
277
- case 7:
278
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
279
- _context4.next = 9;
280
- break;
281
- }
282
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
283
- case 9:
284
- _context4.next = 11;
285
- return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
286
- case 11:
287
- response = _context4.sent;
288
- return _context4.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
289
- case 13:
290
- case "end":
291
- return _context4.stop();
292
- }
254
+ while (1) switch (_context4.prev = _context4.next) {
255
+ case 0:
256
+ params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
257
+ options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
258
+ if ((0, _utils.isObject)(params)) {
259
+ _context4.next = 4;
260
+ break;
261
+ }
262
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
263
+ case 4:
264
+ params['id'] = id;
265
+ if (params['id']) {
266
+ _context4.next = 7;
267
+ break;
268
+ }
269
+ throw new errors.MissingParameterError('Parameter missing: id');
270
+ case 7:
271
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
272
+ _context4.next = 9;
273
+ break;
274
+ }
275
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
276
+ case 9:
277
+ _context4.next = 11;
278
+ return _Api.default.sendRequest("/sftp_host_keys/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
279
+ case 11:
280
+ response = _context4.sent;
281
+ return _context4.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
282
+ case 13:
283
+ case "end":
284
+ return _context4.stop();
293
285
  }
294
286
  }, _callee4);
295
287
  }));
@@ -308,32 +300,30 @@ var SftpHostKey = /*#__PURE__*/(0, _createClass2.default)(function SftpHostKey()
308
300
  response,
309
301
  _args5 = arguments;
310
302
  return _regenerator.default.wrap(function _callee5$(_context5) {
311
- while (1) {
312
- switch (_context5.prev = _context5.next) {
313
- case 0:
314
- params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
315
- options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
316
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
317
- _context5.next = 4;
318
- break;
319
- }
320
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
321
- case 4:
322
- if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
323
- _context5.next = 6;
324
- break;
325
- }
326
- throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params['private_key'])));
327
- case 6:
328
- _context5.next = 8;
329
- return _Api.default.sendRequest("/sftp_host_keys", 'POST', params, options);
330
- case 8:
331
- response = _context5.sent;
332
- return _context5.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
333
- case 10:
334
- case "end":
335
- return _context5.stop();
336
- }
303
+ while (1) switch (_context5.prev = _context5.next) {
304
+ case 0:
305
+ params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
306
+ options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
307
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
308
+ _context5.next = 4;
309
+ break;
310
+ }
311
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
312
+ case 4:
313
+ if (!(params['private_key'] && !(0, _utils.isString)(params['private_key']))) {
314
+ _context5.next = 6;
315
+ break;
316
+ }
317
+ throw new errors.InvalidParameterError("Bad parameter: private_key must be of type String, received ".concat((0, _utils.getType)(params['private_key'])));
318
+ case 6:
319
+ _context5.next = 8;
320
+ return _Api.default.sendRequest("/sftp_host_keys", 'POST', params, options);
321
+ case 8:
322
+ response = _context5.sent;
323
+ return _context5.abrupt("return", new SftpHostKey(response === null || response === void 0 ? void 0 : response.data, options));
324
+ case 10:
325
+ case "end":
326
+ return _context5.stop();
337
327
  }
338
328
  }, _callee5);
339
329
  })));