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
@@ -216,39 +216,37 @@ var HistoryExport = /*#__PURE__*/(0, _createClass2.default)(function HistoryExpo
|
|
216
216
|
response,
|
217
217
|
_args = arguments;
|
218
218
|
return _regenerator.default.wrap(function _callee$(_context) {
|
219
|
-
while (1) {
|
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
|
-
return _context.stop();
|
251
|
-
}
|
219
|
+
while (1) switch (_context.prev = _context.next) {
|
220
|
+
case 0:
|
221
|
+
params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
222
|
+
options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
|
223
|
+
if ((0, _utils.isObject)(params)) {
|
224
|
+
_context.next = 4;
|
225
|
+
break;
|
226
|
+
}
|
227
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
228
|
+
case 4:
|
229
|
+
params['id'] = id;
|
230
|
+
if (params['id']) {
|
231
|
+
_context.next = 7;
|
232
|
+
break;
|
233
|
+
}
|
234
|
+
throw new errors.MissingParameterError('Parameter missing: id');
|
235
|
+
case 7:
|
236
|
+
if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
|
237
|
+
_context.next = 9;
|
238
|
+
break;
|
239
|
+
}
|
240
|
+
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
|
241
|
+
case 9:
|
242
|
+
_context.next = 11;
|
243
|
+
return _Api.default.sendRequest("/history_exports/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
|
244
|
+
case 11:
|
245
|
+
response = _context.sent;
|
246
|
+
return _context.abrupt("return", new HistoryExport(response === null || response === void 0 ? void 0 : response.data, options));
|
247
|
+
case 13:
|
248
|
+
case "end":
|
249
|
+
return _context.stop();
|
252
250
|
}
|
253
251
|
}, _callee);
|
254
252
|
}));
|
@@ -267,152 +265,150 @@ var HistoryExport = /*#__PURE__*/(0, _createClass2.default)(function HistoryExpo
|
|
267
265
|
response,
|
268
266
|
_args2 = arguments;
|
269
267
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
270
|
-
while (1) {
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
return _context2.stop();
|
415
|
-
}
|
268
|
+
while (1) switch (_context2.prev = _context2.next) {
|
269
|
+
case 0:
|
270
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
271
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
272
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
273
|
+
_context2.next = 4;
|
274
|
+
break;
|
275
|
+
}
|
276
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
277
|
+
case 4:
|
278
|
+
if (!(params['start_at'] && !(0, _utils.isString)(params['start_at']))) {
|
279
|
+
_context2.next = 6;
|
280
|
+
break;
|
281
|
+
}
|
282
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params['start_at'])));
|
283
|
+
case 6:
|
284
|
+
if (!(params['end_at'] && !(0, _utils.isString)(params['end_at']))) {
|
285
|
+
_context2.next = 8;
|
286
|
+
break;
|
287
|
+
}
|
288
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params['end_at'])));
|
289
|
+
case 8:
|
290
|
+
if (!(params['query_action'] && !(0, _utils.isString)(params['query_action']))) {
|
291
|
+
_context2.next = 10;
|
292
|
+
break;
|
293
|
+
}
|
294
|
+
throw new errors.InvalidParameterError("Bad parameter: query_action must be of type String, received ".concat((0, _utils.getType)(params['query_action'])));
|
295
|
+
case 10:
|
296
|
+
if (!(params['query_interface'] && !(0, _utils.isString)(params['query_interface']))) {
|
297
|
+
_context2.next = 12;
|
298
|
+
break;
|
299
|
+
}
|
300
|
+
throw new errors.InvalidParameterError("Bad parameter: query_interface must be of type String, received ".concat((0, _utils.getType)(params['query_interface'])));
|
301
|
+
case 12:
|
302
|
+
if (!(params['query_user_id'] && !(0, _utils.isString)(params['query_user_id']))) {
|
303
|
+
_context2.next = 14;
|
304
|
+
break;
|
305
|
+
}
|
306
|
+
throw new errors.InvalidParameterError("Bad parameter: query_user_id must be of type String, received ".concat((0, _utils.getType)(params['query_user_id'])));
|
307
|
+
case 14:
|
308
|
+
if (!(params['query_file_id'] && !(0, _utils.isString)(params['query_file_id']))) {
|
309
|
+
_context2.next = 16;
|
310
|
+
break;
|
311
|
+
}
|
312
|
+
throw new errors.InvalidParameterError("Bad parameter: query_file_id must be of type String, received ".concat((0, _utils.getType)(params['query_file_id'])));
|
313
|
+
case 16:
|
314
|
+
if (!(params['query_parent_id'] && !(0, _utils.isString)(params['query_parent_id']))) {
|
315
|
+
_context2.next = 18;
|
316
|
+
break;
|
317
|
+
}
|
318
|
+
throw new errors.InvalidParameterError("Bad parameter: query_parent_id must be of type String, received ".concat((0, _utils.getType)(params['query_parent_id'])));
|
319
|
+
case 18:
|
320
|
+
if (!(params['query_path'] && !(0, _utils.isString)(params['query_path']))) {
|
321
|
+
_context2.next = 20;
|
322
|
+
break;
|
323
|
+
}
|
324
|
+
throw new errors.InvalidParameterError("Bad parameter: query_path must be of type String, received ".concat((0, _utils.getType)(params['query_path'])));
|
325
|
+
case 20:
|
326
|
+
if (!(params['query_folder'] && !(0, _utils.isString)(params['query_folder']))) {
|
327
|
+
_context2.next = 22;
|
328
|
+
break;
|
329
|
+
}
|
330
|
+
throw new errors.InvalidParameterError("Bad parameter: query_folder must be of type String, received ".concat((0, _utils.getType)(params['query_folder'])));
|
331
|
+
case 22:
|
332
|
+
if (!(params['query_src'] && !(0, _utils.isString)(params['query_src']))) {
|
333
|
+
_context2.next = 24;
|
334
|
+
break;
|
335
|
+
}
|
336
|
+
throw new errors.InvalidParameterError("Bad parameter: query_src must be of type String, received ".concat((0, _utils.getType)(params['query_src'])));
|
337
|
+
case 24:
|
338
|
+
if (!(params['query_destination'] && !(0, _utils.isString)(params['query_destination']))) {
|
339
|
+
_context2.next = 26;
|
340
|
+
break;
|
341
|
+
}
|
342
|
+
throw new errors.InvalidParameterError("Bad parameter: query_destination must be of type String, received ".concat((0, _utils.getType)(params['query_destination'])));
|
343
|
+
case 26:
|
344
|
+
if (!(params['query_ip'] && !(0, _utils.isString)(params['query_ip']))) {
|
345
|
+
_context2.next = 28;
|
346
|
+
break;
|
347
|
+
}
|
348
|
+
throw new errors.InvalidParameterError("Bad parameter: query_ip must be of type String, received ".concat((0, _utils.getType)(params['query_ip'])));
|
349
|
+
case 28:
|
350
|
+
if (!(params['query_username'] && !(0, _utils.isString)(params['query_username']))) {
|
351
|
+
_context2.next = 30;
|
352
|
+
break;
|
353
|
+
}
|
354
|
+
throw new errors.InvalidParameterError("Bad parameter: query_username must be of type String, received ".concat((0, _utils.getType)(params['query_username'])));
|
355
|
+
case 30:
|
356
|
+
if (!(params['query_failure_type'] && !(0, _utils.isString)(params['query_failure_type']))) {
|
357
|
+
_context2.next = 32;
|
358
|
+
break;
|
359
|
+
}
|
360
|
+
throw new errors.InvalidParameterError("Bad parameter: query_failure_type must be of type String, received ".concat((0, _utils.getType)(params['query_failure_type'])));
|
361
|
+
case 32:
|
362
|
+
if (!(params['query_target_id'] && !(0, _utils.isString)(params['query_target_id']))) {
|
363
|
+
_context2.next = 34;
|
364
|
+
break;
|
365
|
+
}
|
366
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_id must be of type String, received ".concat((0, _utils.getType)(params['query_target_id'])));
|
367
|
+
case 34:
|
368
|
+
if (!(params['query_target_name'] && !(0, _utils.isString)(params['query_target_name']))) {
|
369
|
+
_context2.next = 36;
|
370
|
+
break;
|
371
|
+
}
|
372
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_name must be of type String, received ".concat((0, _utils.getType)(params['query_target_name'])));
|
373
|
+
case 36:
|
374
|
+
if (!(params['query_target_permission'] && !(0, _utils.isString)(params['query_target_permission']))) {
|
375
|
+
_context2.next = 38;
|
376
|
+
break;
|
377
|
+
}
|
378
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_permission must be of type String, received ".concat((0, _utils.getType)(params['query_target_permission'])));
|
379
|
+
case 38:
|
380
|
+
if (!(params['query_target_user_id'] && !(0, _utils.isString)(params['query_target_user_id']))) {
|
381
|
+
_context2.next = 40;
|
382
|
+
break;
|
383
|
+
}
|
384
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_user_id must be of type String, received ".concat((0, _utils.getType)(params['query_target_user_id'])));
|
385
|
+
case 40:
|
386
|
+
if (!(params['query_target_username'] && !(0, _utils.isString)(params['query_target_username']))) {
|
387
|
+
_context2.next = 42;
|
388
|
+
break;
|
389
|
+
}
|
390
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_username must be of type String, received ".concat((0, _utils.getType)(params['query_target_username'])));
|
391
|
+
case 42:
|
392
|
+
if (!(params['query_target_platform'] && !(0, _utils.isString)(params['query_target_platform']))) {
|
393
|
+
_context2.next = 44;
|
394
|
+
break;
|
395
|
+
}
|
396
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_platform must be of type String, received ".concat((0, _utils.getType)(params['query_target_platform'])));
|
397
|
+
case 44:
|
398
|
+
if (!(params['query_target_permission_set'] && !(0, _utils.isString)(params['query_target_permission_set']))) {
|
399
|
+
_context2.next = 46;
|
400
|
+
break;
|
401
|
+
}
|
402
|
+
throw new errors.InvalidParameterError("Bad parameter: query_target_permission_set must be of type String, received ".concat((0, _utils.getType)(params['query_target_permission_set'])));
|
403
|
+
case 46:
|
404
|
+
_context2.next = 48;
|
405
|
+
return _Api.default.sendRequest("/history_exports", 'POST', params, options);
|
406
|
+
case 48:
|
407
|
+
response = _context2.sent;
|
408
|
+
return _context2.abrupt("return", new HistoryExport(response === null || response === void 0 ? void 0 : response.data, options));
|
409
|
+
case 50:
|
410
|
+
case "end":
|
411
|
+
return _context2.stop();
|
416
412
|
}
|
417
413
|
}, _callee2);
|
418
414
|
})));
|
@@ -120,52 +120,50 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
|
|
120
120
|
response,
|
121
121
|
_args = arguments;
|
122
122
|
return _regenerator.default.wrap(function _callee$(_context) {
|
123
|
-
while (1) {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
return
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
return _context.stop();
|
168
|
-
}
|
123
|
+
while (1) switch (_context.prev = _context.next) {
|
124
|
+
case 0:
|
125
|
+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
126
|
+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
127
|
+
if (params['history_export_id']) {
|
128
|
+
_context.next = 4;
|
129
|
+
break;
|
130
|
+
}
|
131
|
+
throw new errors.MissingParameterError('Parameter missing: history_export_id');
|
132
|
+
case 4:
|
133
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
134
|
+
_context.next = 6;
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
138
|
+
case 6:
|
139
|
+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
140
|
+
_context.next = 8;
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
144
|
+
case 8:
|
145
|
+
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
146
|
+
_context.next = 10;
|
147
|
+
break;
|
148
|
+
}
|
149
|
+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
150
|
+
case 10:
|
151
|
+
if (!(params['history_export_id'] && !(0, _utils.isInt)(params['history_export_id']))) {
|
152
|
+
_context.next = 12;
|
153
|
+
break;
|
154
|
+
}
|
155
|
+
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params['history_export_id'])));
|
156
|
+
case 12:
|
157
|
+
_context.next = 14;
|
158
|
+
return _Api.default.sendRequest("/history_export_results", 'GET', params, options);
|
159
|
+
case 14:
|
160
|
+
response = _context.sent;
|
161
|
+
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) {
|
162
|
+
return new HistoryExportResult(obj, options);
|
163
|
+
})) || []);
|
164
|
+
case 16:
|
165
|
+
case "end":
|
166
|
+
return _context.stop();
|
169
167
|
}
|
170
168
|
}, _callee);
|
171
169
|
})));
|