files.com 1.0.236 → 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 (69) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/BundleNotification.md +35 -0
  3. package/lib/Api.js +153 -159
  4. package/lib/isomorphic/File.node.js +24 -28
  5. package/lib/models/ActionNotificationExport.js +97 -101
  6. package/lib/models/ActionNotificationExportResult.js +44 -46
  7. package/lib/models/ActionWebhookFailure.js +42 -44
  8. package/lib/models/ApiKey.js +271 -287
  9. package/lib/models/App.js +26 -28
  10. package/lib/models/As2IncomingMessage.js +32 -34
  11. package/lib/models/As2OutgoingMessage.js +32 -34
  12. package/lib/models/As2Partner.js +231 -241
  13. package/lib/models/As2Station.js +219 -229
  14. package/lib/models/Automation.js +333 -343
  15. package/lib/models/AutomationRun.js +75 -79
  16. package/lib/models/BandwidthSnapshot.js +26 -28
  17. package/lib/models/Behavior.js +323 -337
  18. package/lib/models/Bundle.js +375 -387
  19. package/lib/models/BundleDownload.js +38 -40
  20. package/lib/models/BundleNotification.js +223 -173
  21. package/lib/models/BundleRecipient.js +104 -108
  22. package/lib/models/BundleRegistration.js +38 -40
  23. package/lib/models/Clickwrap.js +213 -223
  24. package/lib/models/DnsRecord.js +26 -28
  25. package/lib/models/ExternalEvent.js +93 -99
  26. package/lib/models/File.js +726 -766
  27. package/lib/models/FileComment.js +180 -188
  28. package/lib/models/FileCommentReaction.js +84 -88
  29. package/lib/models/FileMigration.js +31 -33
  30. package/lib/models/Folder.js +94 -98
  31. package/lib/models/FormFieldSet.js +189 -199
  32. package/lib/models/Group.js +207 -217
  33. package/lib/models/GroupUser.js +230 -238
  34. package/lib/models/History.js +266 -276
  35. package/lib/models/HistoryExport.js +175 -179
  36. package/lib/models/HistoryExportResult.js +44 -46
  37. package/lib/models/InboxRecipient.js +104 -108
  38. package/lib/models/InboxRegistration.js +32 -34
  39. package/lib/models/InboxUpload.js +38 -40
  40. package/lib/models/Invoice.js +57 -61
  41. package/lib/models/IpAddress.js +78 -84
  42. package/lib/models/Lock.js +148 -154
  43. package/lib/models/Message.js +267 -277
  44. package/lib/models/MessageComment.js +207 -217
  45. package/lib/models/MessageCommentReaction.js +147 -155
  46. package/lib/models/MessageReaction.js +147 -155
  47. package/lib/models/Notification.js +255 -265
  48. package/lib/models/Payment.js +57 -61
  49. package/lib/models/Permission.js +128 -134
  50. package/lib/models/Priority.js +45 -47
  51. package/lib/models/Project.js +183 -193
  52. package/lib/models/PublicKey.js +207 -217
  53. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  54. package/lib/models/RemoteServer.js +805 -819
  55. package/lib/models/Request.js +166 -174
  56. package/lib/models/Session.js +47 -51
  57. package/lib/models/SettingsChange.js +26 -28
  58. package/lib/models/SftpHostKey.js +177 -187
  59. package/lib/models/Site.js +412 -418
  60. package/lib/models/SsoStrategy.js +99 -105
  61. package/lib/models/Style.js +127 -133
  62. package/lib/models/UsageDailySnapshot.js +26 -28
  63. package/lib/models/UsageSnapshot.js +26 -28
  64. package/lib/models/User.js +587 -603
  65. package/lib/models/UserCipherUse.js +32 -34
  66. package/lib/models/UserRequest.js +147 -155
  67. package/lib/models/WebhookTest.js +54 -56
  68. package/package.json +1 -1
  69. package/src/models/BundleNotification.js +39 -1
@@ -48,72 +48,70 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
48
48
  response,
49
49
  _args = arguments;
50
50
  return _regenerator.default.wrap(function _callee$(_context) {
51
- while (1) {
52
- switch (_context.prev = _context.next) {
53
- case 0:
54
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
55
- if (_this.attributes.id) {
56
- _context.next = 3;
57
- break;
58
- }
59
- throw new errors.EmptyPropertyError('Current object has no id');
60
- case 3:
61
- if ((0, _utils.isObject)(params)) {
62
- _context.next = 5;
63
- break;
64
- }
65
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
66
- case 5:
67
- params.id = _this.attributes.id;
68
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
69
- _context.next = 8;
70
- break;
71
- }
72
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
73
- case 8:
74
- if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
75
- _context.next = 10;
76
- break;
77
- }
78
- throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(global_access)));
79
- case 10:
80
- if (params['id']) {
81
- _context.next = 16;
82
- break;
83
- }
84
- if (!_this.attributes.id) {
85
- _context.next = 15;
86
- break;
87
- }
88
- params['id'] = _this.id;
51
+ while (1) switch (_context.prev = _context.next) {
52
+ case 0:
53
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
54
+ if (_this.attributes.id) {
55
+ _context.next = 3;
56
+ break;
57
+ }
58
+ throw new errors.EmptyPropertyError('Current object has no id');
59
+ case 3:
60
+ if ((0, _utils.isObject)(params)) {
61
+ _context.next = 5;
62
+ break;
63
+ }
64
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
65
+ case 5:
66
+ params.id = _this.attributes.id;
67
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
68
+ _context.next = 8;
69
+ break;
70
+ }
71
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
72
+ case 8:
73
+ if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
74
+ _context.next = 10;
75
+ break;
76
+ }
77
+ throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(global_access)));
78
+ case 10:
79
+ if (params['id']) {
89
80
  _context.next = 16;
90
81
  break;
91
- case 15:
92
- throw new errors.MissingParameterError('Parameter missing: id');
93
- case 16:
94
- if (params['global_access']) {
95
- _context.next = 22;
96
- break;
97
- }
98
- if (!_this.attributes.global_access) {
99
- _context.next = 21;
100
- break;
101
- }
102
- params['global_access'] = _this.global_access;
82
+ }
83
+ if (!_this.attributes.id) {
84
+ _context.next = 15;
85
+ break;
86
+ }
87
+ params['id'] = _this.id;
88
+ _context.next = 16;
89
+ break;
90
+ case 15:
91
+ throw new errors.MissingParameterError('Parameter missing: id');
92
+ case 16:
93
+ if (params['global_access']) {
103
94
  _context.next = 22;
104
95
  break;
105
- case 21:
106
- throw new errors.MissingParameterError('Parameter missing: global_access');
107
- case 22:
108
- _context.next = 24;
109
- return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
110
- case 24:
111
- response = _context.sent;
112
- return _context.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, _this.options));
113
- case 26:
114
- case "end":
115
- return _context.stop();
116
- }
96
+ }
97
+ if (!_this.attributes.global_access) {
98
+ _context.next = 21;
99
+ break;
100
+ }
101
+ params['global_access'] = _this.global_access;
102
+ _context.next = 22;
103
+ break;
104
+ case 21:
105
+ throw new errors.MissingParameterError('Parameter missing: global_access');
106
+ case 22:
107
+ _context.next = 24;
108
+ return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
109
+ case 24:
110
+ response = _context.sent;
111
+ return _context.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, _this.options));
112
+ case 26:
113
+ case "end":
114
+ return _context.stop();
117
115
  }
118
116
  }, _callee);
119
117
  })));
@@ -122,52 +120,50 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
122
120
  response,
123
121
  _args2 = arguments;
124
122
  return _regenerator.default.wrap(function _callee2$(_context2) {
125
- while (1) {
126
- switch (_context2.prev = _context2.next) {
127
- case 0:
128
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
129
- if (_this.attributes.id) {
130
- _context2.next = 3;
131
- break;
132
- }
133
- throw new errors.EmptyPropertyError('Current object has no id');
134
- case 3:
135
- if ((0, _utils.isObject)(params)) {
136
- _context2.next = 5;
137
- break;
138
- }
139
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
140
- case 5:
141
- params.id = _this.attributes.id;
142
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
143
- _context2.next = 8;
144
- break;
145
- }
146
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
147
- case 8:
148
- if (params['id']) {
149
- _context2.next = 14;
150
- break;
151
- }
152
- if (!_this.attributes.id) {
153
- _context2.next = 13;
154
- break;
155
- }
156
- params['id'] = _this.id;
123
+ while (1) switch (_context2.prev = _context2.next) {
124
+ case 0:
125
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
126
+ if (_this.attributes.id) {
127
+ _context2.next = 3;
128
+ break;
129
+ }
130
+ throw new errors.EmptyPropertyError('Current object has no id');
131
+ case 3:
132
+ if ((0, _utils.isObject)(params)) {
133
+ _context2.next = 5;
134
+ break;
135
+ }
136
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
137
+ case 5:
138
+ params.id = _this.attributes.id;
139
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
140
+ _context2.next = 8;
141
+ break;
142
+ }
143
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
144
+ case 8:
145
+ if (params['id']) {
157
146
  _context2.next = 14;
158
147
  break;
159
- case 13:
160
- throw new errors.MissingParameterError('Parameter missing: id');
161
- case 14:
162
- _context2.next = 16;
163
- return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
164
- case 16:
165
- response = _context2.sent;
166
- return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
167
- case 18:
168
- case "end":
169
- return _context2.stop();
170
- }
148
+ }
149
+ if (!_this.attributes.id) {
150
+ _context2.next = 13;
151
+ break;
152
+ }
153
+ params['id'] = _this.id;
154
+ _context2.next = 14;
155
+ break;
156
+ case 13:
157
+ throw new errors.MissingParameterError('Parameter missing: id');
158
+ case 14:
159
+ _context2.next = 16;
160
+ return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
161
+ case 16:
162
+ response = _context2.sent;
163
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
164
+ case 18:
165
+ case "end":
166
+ return _context2.stop();
171
167
  }
172
168
  }, _callee2);
173
169
  })));
@@ -204,34 +200,32 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
204
200
  response,
205
201
  _args3 = arguments;
206
202
  return _regenerator.default.wrap(function _callee3$(_context3) {
207
- while (1) {
208
- switch (_context3.prev = _context3.next) {
209
- case 0:
210
- params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
211
- options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
212
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
213
- _context3.next = 4;
214
- break;
215
- }
216
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
217
- case 4:
218
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
219
- _context3.next = 6;
220
- break;
221
- }
222
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
223
- case 6:
224
- _context3.next = 8;
225
- return _Api.default.sendRequest("/projects", 'GET', params, options);
226
- case 8:
227
- response = _context3.sent;
228
- 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) {
229
- return new Project(obj, options);
230
- })) || []);
231
- case 10:
232
- case "end":
233
- return _context3.stop();
234
- }
203
+ while (1) switch (_context3.prev = _context3.next) {
204
+ case 0:
205
+ params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
206
+ options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
207
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
208
+ _context3.next = 4;
209
+ break;
210
+ }
211
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
212
+ case 4:
213
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
214
+ _context3.next = 6;
215
+ break;
216
+ }
217
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
218
+ case 6:
219
+ _context3.next = 8;
220
+ return _Api.default.sendRequest("/projects", 'GET', params, options);
221
+ case 8:
222
+ response = _context3.sent;
223
+ 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) {
224
+ return new Project(obj, options);
225
+ })) || []);
226
+ case 10:
227
+ case "end":
228
+ return _context3.stop();
235
229
  }
236
230
  }, _callee3);
237
231
  })));
@@ -247,39 +241,37 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
247
241
  response,
248
242
  _args4 = arguments;
249
243
  return _regenerator.default.wrap(function _callee4$(_context4) {
250
- while (1) {
251
- switch (_context4.prev = _context4.next) {
252
- case 0:
253
- params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
254
- options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
255
- if ((0, _utils.isObject)(params)) {
256
- _context4.next = 4;
257
- break;
258
- }
259
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
260
- case 4:
261
- params['id'] = id;
262
- if (params['id']) {
263
- _context4.next = 7;
264
- break;
265
- }
266
- throw new errors.MissingParameterError('Parameter missing: id');
267
- case 7:
268
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
269
- _context4.next = 9;
270
- break;
271
- }
272
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
273
- case 9:
274
- _context4.next = 11;
275
- return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
276
- case 11:
277
- response = _context4.sent;
278
- return _context4.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
279
- case 13:
280
- case "end":
281
- return _context4.stop();
282
- }
244
+ while (1) switch (_context4.prev = _context4.next) {
245
+ case 0:
246
+ params = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
247
+ options = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {};
248
+ if ((0, _utils.isObject)(params)) {
249
+ _context4.next = 4;
250
+ break;
251
+ }
252
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
253
+ case 4:
254
+ params['id'] = id;
255
+ if (params['id']) {
256
+ _context4.next = 7;
257
+ break;
258
+ }
259
+ throw new errors.MissingParameterError('Parameter missing: id');
260
+ case 7:
261
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
262
+ _context4.next = 9;
263
+ break;
264
+ }
265
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
266
+ case 9:
267
+ _context4.next = 11;
268
+ return _Api.default.sendRequest("/projects/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
269
+ case 11:
270
+ response = _context4.sent;
271
+ return _context4.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
272
+ case 13:
273
+ case "end":
274
+ return _context4.stop();
283
275
  }
284
276
  }, _callee4);
285
277
  }));
@@ -298,32 +290,30 @@ var Project = /*#__PURE__*/(0, _createClass2.default)(function Project() {
298
290
  response,
299
291
  _args5 = arguments;
300
292
  return _regenerator.default.wrap(function _callee5$(_context5) {
301
- while (1) {
302
- switch (_context5.prev = _context5.next) {
303
- case 0:
304
- params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
305
- options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
306
- if (params['global_access']) {
307
- _context5.next = 4;
308
- break;
309
- }
310
- throw new errors.MissingParameterError('Parameter missing: global_access');
311
- case 4:
312
- if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
313
- _context5.next = 6;
314
- break;
315
- }
316
- throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(params['global_access'])));
317
- case 6:
318
- _context5.next = 8;
319
- return _Api.default.sendRequest("/projects", 'POST', params, options);
320
- case 8:
321
- response = _context5.sent;
322
- return _context5.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
323
- case 10:
324
- case "end":
325
- return _context5.stop();
326
- }
293
+ while (1) switch (_context5.prev = _context5.next) {
294
+ case 0:
295
+ params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
296
+ options = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
297
+ if (params['global_access']) {
298
+ _context5.next = 4;
299
+ break;
300
+ }
301
+ throw new errors.MissingParameterError('Parameter missing: global_access');
302
+ case 4:
303
+ if (!(params['global_access'] && !(0, _utils.isString)(params['global_access']))) {
304
+ _context5.next = 6;
305
+ break;
306
+ }
307
+ throw new errors.InvalidParameterError("Bad parameter: global_access must be of type String, received ".concat((0, _utils.getType)(params['global_access'])));
308
+ case 6:
309
+ _context5.next = 8;
310
+ return _Api.default.sendRequest("/projects", 'POST', params, options);
311
+ case 8:
312
+ response = _context5.sent;
313
+ return _context5.abrupt("return", new Project(response === null || response === void 0 ? void 0 : response.data, options));
314
+ case 10:
315
+ case "end":
316
+ return _context5.stop();
327
317
  }
328
318
  }, _callee5);
329
319
  })));