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
@@ -144,39 +144,37 @@ var ActionNotificationExport = /*#__PURE__*/(0, _createClass2.default)(function
144
144
  response,
145
145
  _args = arguments;
146
146
  return _regenerator.default.wrap(function _callee$(_context) {
147
- while (1) {
148
- switch (_context.prev = _context.next) {
149
- case 0:
150
- params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
151
- options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
152
- if ((0, _utils.isObject)(params)) {
153
- _context.next = 4;
154
- break;
155
- }
156
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
157
- case 4:
158
- params['id'] = id;
159
- if (params['id']) {
160
- _context.next = 7;
161
- break;
162
- }
163
- throw new errors.MissingParameterError('Parameter missing: id');
164
- case 7:
165
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
166
- _context.next = 9;
167
- break;
168
- }
169
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
170
- case 9:
171
- _context.next = 11;
172
- return _Api.default.sendRequest("/action_notification_exports/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
173
- case 11:
174
- response = _context.sent;
175
- return _context.abrupt("return", new ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
176
- case 13:
177
- case "end":
178
- return _context.stop();
179
- }
147
+ while (1) switch (_context.prev = _context.next) {
148
+ case 0:
149
+ params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
150
+ options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
151
+ if ((0, _utils.isObject)(params)) {
152
+ _context.next = 4;
153
+ break;
154
+ }
155
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
156
+ case 4:
157
+ params['id'] = id;
158
+ if (params['id']) {
159
+ _context.next = 7;
160
+ break;
161
+ }
162
+ throw new errors.MissingParameterError('Parameter missing: id');
163
+ case 7:
164
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
165
+ _context.next = 9;
166
+ break;
167
+ }
168
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
169
+ case 9:
170
+ _context.next = 11;
171
+ return _Api.default.sendRequest("/action_notification_exports/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
172
+ case 11:
173
+ response = _context.sent;
174
+ return _context.abrupt("return", new ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
175
+ case 13:
176
+ case "end":
177
+ return _context.stop();
180
178
  }
181
179
  }, _callee);
182
180
  }));
@@ -195,74 +193,72 @@ var ActionNotificationExport = /*#__PURE__*/(0, _createClass2.default)(function
195
193
  response,
196
194
  _args2 = arguments;
197
195
  return _regenerator.default.wrap(function _callee2$(_context2) {
198
- while (1) {
199
- switch (_context2.prev = _context2.next) {
200
- case 0:
201
- params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
202
- options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
203
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
204
- _context2.next = 4;
205
- break;
206
- }
207
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
208
- case 4:
209
- if (!(params['start_at'] && !(0, _utils.isString)(params['start_at']))) {
210
- _context2.next = 6;
211
- break;
212
- }
213
- throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params['start_at'])));
214
- case 6:
215
- if (!(params['end_at'] && !(0, _utils.isString)(params['end_at']))) {
216
- _context2.next = 8;
217
- break;
218
- }
219
- throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params['end_at'])));
220
- case 8:
221
- if (!(params['query_message'] && !(0, _utils.isString)(params['query_message']))) {
222
- _context2.next = 10;
223
- break;
224
- }
225
- throw new errors.InvalidParameterError("Bad parameter: query_message must be of type String, received ".concat((0, _utils.getType)(params['query_message'])));
226
- case 10:
227
- if (!(params['query_request_method'] && !(0, _utils.isString)(params['query_request_method']))) {
228
- _context2.next = 12;
229
- break;
230
- }
231
- throw new errors.InvalidParameterError("Bad parameter: query_request_method must be of type String, received ".concat((0, _utils.getType)(params['query_request_method'])));
232
- case 12:
233
- if (!(params['query_request_url'] && !(0, _utils.isString)(params['query_request_url']))) {
234
- _context2.next = 14;
235
- break;
236
- }
237
- throw new errors.InvalidParameterError("Bad parameter: query_request_url must be of type String, received ".concat((0, _utils.getType)(params['query_request_url'])));
238
- case 14:
239
- if (!(params['query_status'] && !(0, _utils.isString)(params['query_status']))) {
240
- _context2.next = 16;
241
- break;
242
- }
243
- throw new errors.InvalidParameterError("Bad parameter: query_status must be of type String, received ".concat((0, _utils.getType)(params['query_status'])));
244
- case 16:
245
- if (!(params['query_path'] && !(0, _utils.isString)(params['query_path']))) {
246
- _context2.next = 18;
247
- break;
248
- }
249
- throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params['query_path'])));
250
- case 18:
251
- if (!(params['query_folder'] && !(0, _utils.isString)(params['query_folder']))) {
252
- _context2.next = 20;
253
- break;
254
- }
255
- throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params['query_folder'])));
256
- case 20:
257
- _context2.next = 22;
258
- return _Api.default.sendRequest("/action_notification_exports", 'POST', params, options);
259
- case 22:
260
- response = _context2.sent;
261
- return _context2.abrupt("return", new ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
262
- case 24:
263
- case "end":
264
- return _context2.stop();
265
- }
196
+ while (1) switch (_context2.prev = _context2.next) {
197
+ case 0:
198
+ params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
199
+ options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
200
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
201
+ _context2.next = 4;
202
+ break;
203
+ }
204
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
205
+ case 4:
206
+ if (!(params['start_at'] && !(0, _utils.isString)(params['start_at']))) {
207
+ _context2.next = 6;
208
+ break;
209
+ }
210
+ throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params['start_at'])));
211
+ case 6:
212
+ if (!(params['end_at'] && !(0, _utils.isString)(params['end_at']))) {
213
+ _context2.next = 8;
214
+ break;
215
+ }
216
+ throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params['end_at'])));
217
+ case 8:
218
+ if (!(params['query_message'] && !(0, _utils.isString)(params['query_message']))) {
219
+ _context2.next = 10;
220
+ break;
221
+ }
222
+ throw new errors.InvalidParameterError("Bad parameter: query_message must be of type String, received ".concat((0, _utils.getType)(params['query_message'])));
223
+ case 10:
224
+ if (!(params['query_request_method'] && !(0, _utils.isString)(params['query_request_method']))) {
225
+ _context2.next = 12;
226
+ break;
227
+ }
228
+ throw new errors.InvalidParameterError("Bad parameter: query_request_method must be of type String, received ".concat((0, _utils.getType)(params['query_request_method'])));
229
+ case 12:
230
+ if (!(params['query_request_url'] && !(0, _utils.isString)(params['query_request_url']))) {
231
+ _context2.next = 14;
232
+ break;
233
+ }
234
+ throw new errors.InvalidParameterError("Bad parameter: query_request_url must be of type String, received ".concat((0, _utils.getType)(params['query_request_url'])));
235
+ case 14:
236
+ if (!(params['query_status'] && !(0, _utils.isString)(params['query_status']))) {
237
+ _context2.next = 16;
238
+ break;
239
+ }
240
+ throw new errors.InvalidParameterError("Bad parameter: query_status must be of type String, received ".concat((0, _utils.getType)(params['query_status'])));
241
+ case 16:
242
+ if (!(params['query_path'] && !(0, _utils.isString)(params['query_path']))) {
243
+ _context2.next = 18;
244
+ break;
245
+ }
246
+ throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params['query_path'])));
247
+ case 18:
248
+ if (!(params['query_folder'] && !(0, _utils.isString)(params['query_folder']))) {
249
+ _context2.next = 20;
250
+ break;
251
+ }
252
+ throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params['query_folder'])));
253
+ case 20:
254
+ _context2.next = 22;
255
+ return _Api.default.sendRequest("/action_notification_exports", 'POST', params, options);
256
+ case 22:
257
+ response = _context2.sent;
258
+ return _context2.abrupt("return", new ActionNotificationExport(response === null || response === void 0 ? void 0 : response.data, options));
259
+ case 24:
260
+ case "end":
261
+ return _context2.stop();
266
262
  }
267
263
  }, _callee2);
268
264
  })));
@@ -81,52 +81,50 @@ var ActionNotificationExportResult = /*#__PURE__*/(0, _createClass2.default)(fun
81
81
  response,
82
82
  _args = arguments;
83
83
  return _regenerator.default.wrap(function _callee$(_context) {
84
- while (1) {
85
- switch (_context.prev = _context.next) {
86
- case 0:
87
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
88
- options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
89
- if (params['action_notification_export_id']) {
90
- _context.next = 4;
91
- break;
92
- }
93
- throw new errors.MissingParameterError('Parameter missing: action_notification_export_id');
94
- case 4:
95
- if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
96
- _context.next = 6;
97
- break;
98
- }
99
- throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
100
- case 6:
101
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
102
- _context.next = 8;
103
- break;
104
- }
105
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
106
- case 8:
107
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
108
- _context.next = 10;
109
- break;
110
- }
111
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
112
- case 10:
113
- if (!(params['action_notification_export_id'] && !(0, _utils.isInt)(params['action_notification_export_id']))) {
114
- _context.next = 12;
115
- break;
116
- }
117
- throw new errors.InvalidParameterError("Bad parameter: action_notification_export_id must be of type Int, received ".concat((0, _utils.getType)(params['action_notification_export_id'])));
118
- case 12:
119
- _context.next = 14;
120
- return _Api.default.sendRequest("/action_notification_export_results", 'GET', params, options);
121
- case 14:
122
- response = _context.sent;
123
- 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) {
124
- return new ActionNotificationExportResult(obj, options);
125
- })) || []);
126
- case 16:
127
- case "end":
128
- return _context.stop();
129
- }
84
+ while (1) switch (_context.prev = _context.next) {
85
+ case 0:
86
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
87
+ options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
88
+ if (params['action_notification_export_id']) {
89
+ _context.next = 4;
90
+ break;
91
+ }
92
+ throw new errors.MissingParameterError('Parameter missing: action_notification_export_id');
93
+ case 4:
94
+ if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
95
+ _context.next = 6;
96
+ break;
97
+ }
98
+ throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
99
+ case 6:
100
+ if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
101
+ _context.next = 8;
102
+ break;
103
+ }
104
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
105
+ case 8:
106
+ if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
107
+ _context.next = 10;
108
+ break;
109
+ }
110
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
111
+ case 10:
112
+ if (!(params['action_notification_export_id'] && !(0, _utils.isInt)(params['action_notification_export_id']))) {
113
+ _context.next = 12;
114
+ break;
115
+ }
116
+ throw new errors.InvalidParameterError("Bad parameter: action_notification_export_id must be of type Int, received ".concat((0, _utils.getType)(params['action_notification_export_id'])));
117
+ case 12:
118
+ _context.next = 14;
119
+ return _Api.default.sendRequest("/action_notification_export_results", 'GET', params, options);
120
+ case 14:
121
+ response = _context.sent;
122
+ 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) {
123
+ return new ActionNotificationExportResult(obj, options);
124
+ })) || []);
125
+ case 16:
126
+ case "end":
127
+ return _context.stop();
130
128
  }
131
129
  }, _callee);
132
130
  })));
@@ -36,52 +36,50 @@ var ActionWebhookFailure = /*#__PURE__*/(0, _createClass2.default)(function Acti
36
36
  response,
37
37
  _args = arguments;
38
38
  return _regenerator.default.wrap(function _callee$(_context) {
39
- while (1) {
40
- switch (_context.prev = _context.next) {
41
- case 0:
42
- params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
43
- if (_this.attributes.id) {
44
- _context.next = 3;
45
- break;
46
- }
47
- throw new errors.EmptyPropertyError('Current object has no id');
48
- case 3:
49
- if ((0, _utils.isObject)(params)) {
50
- _context.next = 5;
51
- break;
52
- }
53
- throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
54
- case 5:
55
- params.id = _this.attributes.id;
56
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
57
- _context.next = 8;
58
- break;
59
- }
60
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
61
- case 8:
62
- if (params['id']) {
63
- _context.next = 14;
64
- break;
65
- }
66
- if (!_this.attributes.id) {
67
- _context.next = 13;
68
- break;
69
- }
70
- params['id'] = _this.id;
39
+ while (1) switch (_context.prev = _context.next) {
40
+ case 0:
41
+ params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
42
+ if (_this.attributes.id) {
43
+ _context.next = 3;
44
+ break;
45
+ }
46
+ throw new errors.EmptyPropertyError('Current object has no id');
47
+ case 3:
48
+ if ((0, _utils.isObject)(params)) {
49
+ _context.next = 5;
50
+ break;
51
+ }
52
+ throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
53
+ case 5:
54
+ params.id = _this.attributes.id;
55
+ if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
56
+ _context.next = 8;
57
+ break;
58
+ }
59
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
60
+ case 8:
61
+ if (params['id']) {
71
62
  _context.next = 14;
72
63
  break;
73
- case 13:
74
- throw new errors.MissingParameterError('Parameter missing: id');
75
- case 14:
76
- _context.next = 16;
77
- return _Api.default.sendRequest("/action_webhook_failures/".concat(encodeURIComponent(params['id']), "/retry"), 'POST', params, _this.options);
78
- case 16:
79
- response = _context.sent;
80
- return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
81
- case 18:
82
- case "end":
83
- return _context.stop();
84
- }
64
+ }
65
+ if (!_this.attributes.id) {
66
+ _context.next = 13;
67
+ break;
68
+ }
69
+ params['id'] = _this.id;
70
+ _context.next = 14;
71
+ break;
72
+ case 13:
73
+ throw new errors.MissingParameterError('Parameter missing: id');
74
+ case 14:
75
+ _context.next = 16;
76
+ return _Api.default.sendRequest("/action_webhook_failures/".concat(encodeURIComponent(params['id']), "/retry"), 'POST', params, _this.options);
77
+ case 16:
78
+ response = _context.sent;
79
+ return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
80
+ case 18:
81
+ case "end":
82
+ return _context.stop();
85
83
  }
86
84
  }, _callee);
87
85
  })));