files.com 1.0.236 → 1.0.238

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 (72) hide show
  1. package/_VERSION +1 -1
  2. package/docs/Errors.md +1 -0
  3. package/docs/models/BundleNotification.md +35 -0
  4. package/lib/Api.js +153 -159
  5. package/lib/Errors.js +680 -666
  6. package/lib/isomorphic/File.node.js +24 -28
  7. package/lib/models/ActionNotificationExport.js +97 -101
  8. package/lib/models/ActionNotificationExportResult.js +44 -46
  9. package/lib/models/ActionWebhookFailure.js +42 -44
  10. package/lib/models/ApiKey.js +271 -287
  11. package/lib/models/App.js +26 -28
  12. package/lib/models/As2IncomingMessage.js +32 -34
  13. package/lib/models/As2OutgoingMessage.js +32 -34
  14. package/lib/models/As2Partner.js +231 -241
  15. package/lib/models/As2Station.js +219 -229
  16. package/lib/models/Automation.js +333 -343
  17. package/lib/models/AutomationRun.js +75 -79
  18. package/lib/models/BandwidthSnapshot.js +26 -28
  19. package/lib/models/Behavior.js +323 -337
  20. package/lib/models/Bundle.js +375 -387
  21. package/lib/models/BundleDownload.js +38 -40
  22. package/lib/models/BundleNotification.js +223 -173
  23. package/lib/models/BundleRecipient.js +104 -108
  24. package/lib/models/BundleRegistration.js +38 -40
  25. package/lib/models/Clickwrap.js +213 -223
  26. package/lib/models/DnsRecord.js +26 -28
  27. package/lib/models/ExternalEvent.js +93 -99
  28. package/lib/models/File.js +726 -766
  29. package/lib/models/FileComment.js +180 -188
  30. package/lib/models/FileCommentReaction.js +84 -88
  31. package/lib/models/FileMigration.js +31 -33
  32. package/lib/models/Folder.js +94 -98
  33. package/lib/models/FormFieldSet.js +189 -199
  34. package/lib/models/Group.js +207 -217
  35. package/lib/models/GroupUser.js +230 -238
  36. package/lib/models/History.js +266 -276
  37. package/lib/models/HistoryExport.js +175 -179
  38. package/lib/models/HistoryExportResult.js +44 -46
  39. package/lib/models/InboxRecipient.js +104 -108
  40. package/lib/models/InboxRegistration.js +32 -34
  41. package/lib/models/InboxUpload.js +38 -40
  42. package/lib/models/Invoice.js +57 -61
  43. package/lib/models/IpAddress.js +78 -84
  44. package/lib/models/Lock.js +148 -154
  45. package/lib/models/Message.js +267 -277
  46. package/lib/models/MessageComment.js +207 -217
  47. package/lib/models/MessageCommentReaction.js +147 -155
  48. package/lib/models/MessageReaction.js +147 -155
  49. package/lib/models/Notification.js +255 -265
  50. package/lib/models/Payment.js +57 -61
  51. package/lib/models/Permission.js +128 -134
  52. package/lib/models/Priority.js +45 -47
  53. package/lib/models/Project.js +183 -193
  54. package/lib/models/PublicKey.js +207 -217
  55. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  56. package/lib/models/RemoteServer.js +805 -819
  57. package/lib/models/Request.js +166 -174
  58. package/lib/models/Session.js +47 -51
  59. package/lib/models/SettingsChange.js +26 -28
  60. package/lib/models/SftpHostKey.js +177 -187
  61. package/lib/models/Site.js +412 -418
  62. package/lib/models/SsoStrategy.js +99 -105
  63. package/lib/models/Style.js +127 -133
  64. package/lib/models/UsageDailySnapshot.js +26 -28
  65. package/lib/models/UsageSnapshot.js +26 -28
  66. package/lib/models/User.js +587 -603
  67. package/lib/models/UserCipherUse.js +32 -34
  68. package/lib/models/UserRequest.js +147 -155
  69. package/lib/models/WebhookTest.js +54 -56
  70. package/package.json +1 -1
  71. package/src/Errors.js +1 -0
  72. package/src/models/BundleNotification.js +39 -1
@@ -108,52 +108,50 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
108
108
  response,
109
109
  _args = arguments;
110
110
  return _regenerator.default.wrap(function _callee$(_context) {
111
- while (1) {
112
- switch (_context.prev = _context.next) {
113
- case 0:
114
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
115
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
116
- if (params['bundle_id']) {
117
- _context.next = 4;
118
- break;
119
- }
120
- throw new errors.MissingParameterError('Parameter missing: bundle_id');
121
- case 4:
122
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
123
- _context.next = 6;
124
- break;
125
- }
126
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
127
- case 6:
128
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
129
- _context.next = 8;
130
- break;
131
- }
132
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
133
- case 8:
134
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
135
- _context.next = 10;
136
- break;
137
- }
138
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
139
- case 10:
140
- if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
141
- _context.next = 12;
142
- break;
143
- }
144
- throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
145
- case 12:
146
- _context.next = 14;
147
- return _Api.default.sendRequest("/bundle_recipients", 'GET', params, options);
148
- case 14:
149
- response = _context.sent;
150
- 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) {
151
- return new BundleRecipient(obj, options);
152
- })) || []);
153
- case 16:
154
- case "end":
155
- return _context.stop();
156
- }
111
+ while (1) switch (_context.prev = _context.next) {
112
+ case 0:
113
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
114
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
115
+ if (params['bundle_id']) {
116
+ _context.next = 4;
117
+ break;
118
+ }
119
+ throw new errors.MissingParameterError('Parameter missing: bundle_id');
120
+ case 4:
121
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
122
+ _context.next = 6;
123
+ break;
124
+ }
125
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
126
+ case 6:
127
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
128
+ _context.next = 8;
129
+ break;
130
+ }
131
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
132
+ case 8:
133
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
134
+ _context.next = 10;
135
+ break;
136
+ }
137
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
138
+ case 10:
139
+ if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
140
+ _context.next = 12;
141
+ break;
142
+ }
143
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
144
+ case 12:
145
+ _context.next = 14;
146
+ return _Api.default.sendRequest("/bundle_recipients", 'GET', params, options);
147
+ case 14:
148
+ response = _context.sent;
149
+ 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) {
150
+ return new BundleRecipient(obj, options);
151
+ })) || []);
152
+ case 16:
153
+ case "end":
154
+ return _context.stop();
157
155
  }
158
156
  }, _callee);
159
157
  })));
@@ -168,68 +166,66 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
168
166
  response,
169
167
  _args2 = arguments;
170
168
  return _regenerator.default.wrap(function _callee2$(_context2) {
171
- while (1) {
172
- switch (_context2.prev = _context2.next) {
173
- case 0:
174
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
175
- options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
176
- if (params['bundle_id']) {
177
- _context2.next = 4;
178
- break;
179
- }
180
- throw new errors.MissingParameterError('Parameter missing: bundle_id');
181
- case 4:
182
- if (params['recipient']) {
183
- _context2.next = 6;
184
- break;
185
- }
186
- throw new errors.MissingParameterError('Parameter missing: recipient');
187
- case 6:
188
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
189
- _context2.next = 8;
190
- break;
191
- }
192
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
193
- case 8:
194
- if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
195
- _context2.next = 10;
196
- break;
197
- }
198
- throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
199
- case 10:
200
- if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
201
- _context2.next = 12;
202
- break;
203
- }
204
- throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
205
- case 12:
206
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
207
- _context2.next = 14;
208
- break;
209
- }
210
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
211
- case 14:
212
- if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
213
- _context2.next = 16;
214
- break;
215
- }
216
- throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
217
- case 16:
218
- if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
219
- _context2.next = 18;
220
- break;
221
- }
222
- throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
223
- case 18:
224
- _context2.next = 20;
225
- return _Api.default.sendRequest("/bundle_recipients", 'POST', params, options);
226
- case 20:
227
- response = _context2.sent;
228
- return _context2.abrupt("return", new BundleRecipient(response === null || response === void 0 ? void 0 : response.data, options));
229
- case 22:
230
- case "end":
231
- return _context2.stop();
232
- }
169
+ while (1) switch (_context2.prev = _context2.next) {
170
+ case 0:
171
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
172
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
173
+ if (params['bundle_id']) {
174
+ _context2.next = 4;
175
+ break;
176
+ }
177
+ throw new errors.MissingParameterError('Parameter missing: bundle_id');
178
+ case 4:
179
+ if (params['recipient']) {
180
+ _context2.next = 6;
181
+ break;
182
+ }
183
+ throw new errors.MissingParameterError('Parameter missing: recipient');
184
+ case 6:
185
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
186
+ _context2.next = 8;
187
+ break;
188
+ }
189
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
190
+ case 8:
191
+ if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
192
+ _context2.next = 10;
193
+ break;
194
+ }
195
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
196
+ case 10:
197
+ if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
198
+ _context2.next = 12;
199
+ break;
200
+ }
201
+ throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
202
+ case 12:
203
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
204
+ _context2.next = 14;
205
+ break;
206
+ }
207
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
208
+ case 14:
209
+ if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
210
+ _context2.next = 16;
211
+ break;
212
+ }
213
+ throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
214
+ case 16:
215
+ if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
216
+ _context2.next = 18;
217
+ break;
218
+ }
219
+ throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
220
+ case 18:
221
+ _context2.next = 20;
222
+ return _Api.default.sendRequest("/bundle_recipients", 'POST', params, options);
223
+ case 20:
224
+ response = _context2.sent;
225
+ return _context2.abrupt("return", new BundleRecipient(response === null || response === void 0 ? void 0 : response.data, options));
226
+ case 22:
227
+ case "end":
228
+ return _context2.stop();
233
229
  }
234
230
  }, _callee2);
235
231
  })));
@@ -90,46 +90,44 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
90
90
  response,
91
91
  _args = arguments;
92
92
  return _regenerator.default.wrap(function _callee$(_context) {
93
- while (1) {
94
- switch (_context.prev = _context.next) {
95
- case 0:
96
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
97
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
98
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
99
- _context.next = 4;
100
- break;
101
- }
102
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
103
- case 4:
104
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
105
- _context.next = 6;
106
- break;
107
- }
108
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
109
- case 6:
110
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
111
- _context.next = 8;
112
- break;
113
- }
114
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
115
- case 8:
116
- if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
117
- _context.next = 10;
118
- break;
119
- }
120
- throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
121
- case 10:
122
- _context.next = 12;
123
- return _Api.default.sendRequest("/bundle_registrations", 'GET', params, options);
124
- case 12:
125
- response = _context.sent;
126
- 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) {
127
- return new BundleRegistration(obj, options);
128
- })) || []);
129
- case 14:
130
- case "end":
131
- return _context.stop();
132
- }
93
+ while (1) switch (_context.prev = _context.next) {
94
+ case 0:
95
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
96
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
97
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
98
+ _context.next = 4;
99
+ break;
100
+ }
101
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
102
+ case 4:
103
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
104
+ _context.next = 6;
105
+ break;
106
+ }
107
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
108
+ case 6:
109
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
110
+ _context.next = 8;
111
+ break;
112
+ }
113
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
114
+ case 8:
115
+ if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
116
+ _context.next = 10;
117
+ break;
118
+ }
119
+ throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
120
+ case 10:
121
+ _context.next = 12;
122
+ return _Api.default.sendRequest("/bundle_registrations", 'GET', params, options);
123
+ case 12:
124
+ response = _context.sent;
125
+ 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) {
126
+ return new BundleRegistration(obj, options);
127
+ })) || []);
128
+ case 14:
129
+ case "end":
130
+ return _context.stop();
133
131
  }
134
132
  }, _callee);
135
133
  })));