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.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +9 -2
- package/docs/models/BundleNotification.md +35 -0
- package/docs/models/BundleRegistration.md +3 -1
- package/docs/models/InboxRegistration.md +3 -1
- package/docs/models/Site.md +2 -0
- package/lib/Api.js +153 -159
- package/lib/isomorphic/File.node.js +24 -28
- package/lib/models/ActionNotificationExport.js +97 -101
- package/lib/models/ActionNotificationExportResult.js +44 -46
- package/lib/models/ActionWebhookFailure.js +42 -44
- package/lib/models/ApiKey.js +271 -287
- package/lib/models/App.js +26 -28
- package/lib/models/As2IncomingMessage.js +32 -34
- package/lib/models/As2OutgoingMessage.js +32 -34
- package/lib/models/As2Partner.js +231 -241
- package/lib/models/As2Station.js +219 -229
- package/lib/models/Automation.js +333 -343
- package/lib/models/AutomationRun.js +75 -79
- package/lib/models/BandwidthSnapshot.js +26 -28
- package/lib/models/Behavior.js +323 -337
- package/lib/models/Bundle.js +381 -387
- package/lib/models/BundleDownload.js +38 -40
- package/lib/models/BundleNotification.js +223 -173
- package/lib/models/BundleRecipient.js +104 -108
- package/lib/models/BundleRegistration.js +41 -40
- package/lib/models/Clickwrap.js +213 -223
- package/lib/models/DnsRecord.js +26 -28
- package/lib/models/ExternalEvent.js +93 -99
- package/lib/models/File.js +726 -766
- package/lib/models/FileComment.js +180 -188
- package/lib/models/FileCommentReaction.js +84 -88
- package/lib/models/FileMigration.js +31 -33
- package/lib/models/Folder.js +94 -98
- package/lib/models/FormFieldSet.js +189 -199
- package/lib/models/Group.js +207 -217
- package/lib/models/GroupUser.js +230 -238
- package/lib/models/History.js +266 -276
- package/lib/models/HistoryExport.js +175 -179
- package/lib/models/HistoryExportResult.js +44 -46
- package/lib/models/InboxRecipient.js +104 -108
- package/lib/models/InboxRegistration.js +35 -34
- package/lib/models/InboxUpload.js +38 -40
- package/lib/models/Invoice.js +57 -61
- package/lib/models/IpAddress.js +78 -84
- package/lib/models/Lock.js +148 -154
- package/lib/models/Message.js +267 -277
- package/lib/models/MessageComment.js +207 -217
- package/lib/models/MessageCommentReaction.js +147 -155
- package/lib/models/MessageReaction.js +147 -155
- package/lib/models/Notification.js +255 -265
- package/lib/models/Payment.js +57 -61
- package/lib/models/Permission.js +128 -134
- package/lib/models/Priority.js +45 -47
- package/lib/models/Project.js +183 -193
- package/lib/models/PublicKey.js +207 -217
- package/lib/models/RemoteBandwidthSnapshot.js +26 -28
- package/lib/models/RemoteServer.js +805 -819
- package/lib/models/Request.js +166 -174
- package/lib/models/Session.js +47 -51
- package/lib/models/SettingsChange.js +26 -28
- package/lib/models/SftpHostKey.js +177 -187
- package/lib/models/Site.js +415 -418
- package/lib/models/SsoStrategy.js +99 -105
- package/lib/models/Style.js +127 -133
- package/lib/models/UsageDailySnapshot.js +26 -28
- package/lib/models/UsageSnapshot.js +26 -28
- package/lib/models/User.js +587 -603
- package/lib/models/UserCipherUse.js +32 -34
- package/lib/models/UserRequest.js +147 -155
- package/lib/models/WebhookTest.js +54 -56
- package/package.json +1 -1
- package/src/models/Bundle.js +10 -1
- package/src/models/BundleNotification.js +39 -1
- package/src/models/BundleRegistration.js +3 -0
- package/src/models/InboxRegistration.js +3 -0
- 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
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
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
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
return
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
})));
|