files.com 1.2.170 → 1.2.172
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/ActionNotificationExportResult.md +17 -0
- package/docs/models/ApiKey.md +21 -0
- package/docs/models/ApiRequestLog.md +14 -0
- package/docs/models/App.md +15 -0
- package/docs/models/As2IncomingMessage.md +21 -0
- package/docs/models/As2OutgoingMessage.md +21 -0
- package/docs/models/As2Partner.md +9 -0
- package/docs/models/As2Station.md +9 -0
- package/docs/models/Automation.md +18 -0
- package/docs/models/AutomationLog.md +14 -0
- package/docs/models/AutomationRun.md +17 -0
- package/docs/models/BandwidthSnapshot.md +18 -0
- package/docs/models/Behavior.md +15 -0
- package/docs/models/Bundle.md +22 -0
- package/docs/models/BundleAction.md +18 -0
- package/docs/models/BundleDownload.md +23 -0
- package/docs/models/BundleNotification.md +14 -0
- package/docs/models/BundleRecipient.md +17 -0
- package/docs/models/BundleRegistration.md +15 -0
- package/docs/models/Clickwrap.md +9 -0
- package/docs/models/DnsRecord.md +9 -0
- package/docs/models/EmailIncomingMessage.md +19 -0
- package/docs/models/EmailLog.md +14 -0
- package/docs/models/ExavaultApiRequestLog.md +14 -0
- package/docs/models/Export.md +27 -1
- package/docs/models/ExternalEvent.md +19 -0
- package/docs/models/FileMigrationLog.md +14 -0
- package/docs/models/FormFieldSet.md +15 -0
- package/docs/models/FtpActionLog.md +14 -0
- package/docs/models/GpgKey.md +16 -0
- package/docs/models/Group.md +19 -0
- package/docs/models/GroupUser.md +17 -0
- package/docs/models/History.md +85 -0
- package/docs/models/HistoryExportResult.md +17 -0
- package/docs/models/InboxRecipient.md +17 -0
- package/docs/models/InboxRegistration.md +15 -0
- package/docs/models/InboxUpload.md +19 -1
- package/docs/models/Invoice.md +9 -0
- package/docs/models/IpAddress.md +36 -0
- package/docs/models/Message.md +17 -0
- package/docs/models/MessageComment.md +17 -0
- package/docs/models/MessageCommentReaction.md +17 -0
- package/docs/models/MessageReaction.md +17 -0
- package/docs/models/Notification.md +20 -0
- package/docs/models/OutboundConnectionLog.md +14 -0
- package/docs/models/Payment.md +9 -0
- package/docs/models/Permission.md +21 -0
- package/docs/models/Priority.md +13 -0
- package/docs/models/Project.md +9 -0
- package/docs/models/PublicHostingRequestLog.md +14 -0
- package/docs/models/PublicKey.md +15 -0
- package/docs/models/RemoteBandwidthSnapshot.md +18 -0
- package/docs/models/RemoteServer.md +15 -0
- package/docs/models/Request.md +17 -0
- package/docs/models/SettingsChange.md +14 -0
- package/docs/models/SftpActionLog.md +14 -0
- package/docs/models/SftpHostKey.md +9 -0
- package/docs/models/ShareGroup.md +15 -0
- package/docs/models/SiemHttpDestination.md +9 -0
- package/docs/models/Snapshot.md +9 -0
- package/docs/models/SsoStrategy.md +9 -0
- package/docs/models/SyncLog.md +14 -0
- package/docs/models/UsageDailySnapshot.md +18 -0
- package/docs/models/UsageSnapshot.md +9 -0
- package/docs/models/User.md +24 -0
- package/docs/models/UserCipherUse.md +15 -0
- package/docs/models/UserRequest.md +9 -0
- package/docs/models/UserSftpClientUse.md +15 -0
- package/docs/models/WebDavActionLog.md +14 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +44 -0
- package/lib/models/ApiKey.js +57 -20
- package/lib/models/ApiRequestLog.js +26 -0
- package/lib/models/App.js +27 -0
- package/lib/models/As2IncomingMessage.js +37 -0
- package/lib/models/As2OutgoingMessage.js +37 -0
- package/lib/models/As2Partner.js +21 -0
- package/lib/models/As2Station.js +21 -0
- package/lib/models/Automation.js +30 -0
- package/lib/models/AutomationLog.js +26 -0
- package/lib/models/AutomationRun.js +39 -0
- package/lib/models/BandwidthSnapshot.js +30 -0
- package/lib/models/Behavior.js +27 -0
- package/lib/models/Bundle.js +38 -0
- package/lib/models/BundleAction.js +30 -0
- package/lib/models/BundleDownload.js +44 -0
- package/lib/models/BundleNotification.js +26 -0
- package/lib/models/BundleRecipient.js +39 -0
- package/lib/models/BundleRegistration.js +31 -0
- package/lib/models/Clickwrap.js +21 -0
- package/lib/models/DnsRecord.js +21 -0
- package/lib/models/EmailIncomingMessage.js +31 -0
- package/lib/models/EmailLog.js +26 -0
- package/lib/models/ExavaultApiRequestLog.js +26 -0
- package/lib/models/Export.js +143 -34
- package/lib/models/ExternalEvent.js +31 -0
- package/lib/models/FileMigrationLog.js +26 -0
- package/lib/models/FormFieldSet.js +31 -0
- package/lib/models/FtpActionLog.js +26 -0
- package/lib/models/GpgKey.js +32 -0
- package/lib/models/Group.js +35 -0
- package/lib/models/GroupUser.js +38 -0
- package/lib/models/History.js +307 -0
- package/lib/models/HistoryExportResult.js +44 -0
- package/lib/models/InboxRecipient.js +39 -0
- package/lib/models/InboxRegistration.js +31 -0
- package/lib/models/InboxUpload.js +31 -1
- package/lib/models/Invoice.js +21 -0
- package/lib/models/IpAddress.js +84 -0
- package/lib/models/Message.js +44 -0
- package/lib/models/MessageComment.js +44 -0
- package/lib/models/MessageCommentReaction.js +44 -0
- package/lib/models/MessageReaction.js +44 -0
- package/lib/models/Notification.js +42 -0
- package/lib/models/OutboundConnectionLog.js +26 -0
- package/lib/models/Payment.js +21 -0
- package/lib/models/Permission.js +49 -0
- package/lib/models/Priority.js +49 -0
- package/lib/models/Project.js +21 -0
- package/lib/models/PublicHostingRequestLog.js +26 -0
- package/lib/models/PublicKey.js +31 -0
- package/lib/models/RemoteBandwidthSnapshot.js +30 -0
- package/lib/models/RemoteServer.js +27 -0
- package/lib/models/Request.js +33 -0
- package/lib/models/SettingsChange.js +26 -0
- package/lib/models/SftpActionLog.js +26 -0
- package/lib/models/SftpHostKey.js +21 -0
- package/lib/models/ShareGroup.js +31 -0
- package/lib/models/SiemHttpDestination.js +46 -25
- package/lib/models/Snapshot.js +21 -0
- package/lib/models/SsoStrategy.js +21 -0
- package/lib/models/SyncLog.js +26 -0
- package/lib/models/UsageDailySnapshot.js +30 -0
- package/lib/models/UsageSnapshot.js +21 -0
- package/lib/models/User.js +46 -0
- package/lib/models/UserCipherUse.js +31 -0
- package/lib/models/UserRequest.js +21 -0
- package/lib/models/UserSftpClientUse.js +31 -0
- package/lib/models/WebDavActionLog.js +26 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +22 -0
- package/src/models/ApiKey.js +19 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +11 -0
- package/src/models/As2IncomingMessage.js +19 -0
- package/src/models/As2OutgoingMessage.js +19 -0
- package/src/models/As2Partner.js +7 -0
- package/src/models/As2Station.js +7 -0
- package/src/models/Automation.js +14 -0
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +19 -0
- package/src/models/BandwidthSnapshot.js +14 -0
- package/src/models/Behavior.js +11 -0
- package/src/models/Bundle.js +20 -0
- package/src/models/BundleAction.js +14 -0
- package/src/models/BundleDownload.js +24 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +19 -0
- package/src/models/BundleRegistration.js +13 -0
- package/src/models/Clickwrap.js +7 -0
- package/src/models/DnsRecord.js +7 -0
- package/src/models/EmailIncomingMessage.js +15 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/Export.js +83 -0
- package/src/models/ExternalEvent.js +15 -0
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/FormFieldSet.js +13 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +14 -0
- package/src/models/Group.js +17 -0
- package/src/models/GroupUser.js +18 -0
- package/src/models/History.js +167 -0
- package/src/models/HistoryExportResult.js +22 -0
- package/src/models/InboxRecipient.js +19 -0
- package/src/models/InboxRegistration.js +13 -0
- package/src/models/InboxUpload.js +15 -1
- package/src/models/Invoice.js +7 -0
- package/src/models/IpAddress.js +28 -0
- package/src/models/Message.js +22 -0
- package/src/models/MessageComment.js +22 -0
- package/src/models/MessageCommentReaction.js +22 -0
- package/src/models/MessageReaction.js +22 -0
- package/src/models/Notification.js +22 -0
- package/src/models/OutboundConnectionLog.js +10 -0
- package/src/models/Payment.js +7 -0
- package/src/models/Permission.js +27 -0
- package/src/models/Priority.js +23 -0
- package/src/models/Project.js +7 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +13 -0
- package/src/models/RemoteBandwidthSnapshot.js +14 -0
- package/src/models/RemoteServer.js +11 -0
- package/src/models/Request.js +15 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +7 -0
- package/src/models/ShareGroup.js +13 -0
- package/src/models/SiemHttpDestination.js +7 -0
- package/src/models/Snapshot.js +7 -0
- package/src/models/SsoStrategy.js +7 -0
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +14 -0
- package/src/models/UsageSnapshot.js +7 -0
- package/src/models/User.js +26 -0
- package/src/models/UserCipherUse.js +13 -0
- package/src/models/UserRequest.js +7 -0
- package/src/models/UserSftpClientUse.js +13 -0
- package/src/models/WebDavActionLog.js +10 -0
package/lib/models/GpgKey.js
CHANGED
|
@@ -424,6 +424,38 @@ _GpgKey = GpgKey;
|
|
|
424
424
|
}
|
|
425
425
|
}, _callee6);
|
|
426
426
|
})));
|
|
427
|
+
// Parameters:
|
|
428
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
429
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name` and `expires_at`.
|
|
430
|
+
(0, _defineProperty2.default)(GpgKey, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
431
|
+
var params,
|
|
432
|
+
options,
|
|
433
|
+
response,
|
|
434
|
+
Export,
|
|
435
|
+
_args7 = arguments;
|
|
436
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
437
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
438
|
+
case 0:
|
|
439
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
440
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
441
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
442
|
+
_context7.next = 4;
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
446
|
+
case 4:
|
|
447
|
+
_context7.next = 6;
|
|
448
|
+
return _Api.default.sendRequest('/gpg_keys/create_export', 'POST', params, options);
|
|
449
|
+
case 6:
|
|
450
|
+
response = _context7.sent;
|
|
451
|
+
Export = require('./Export.js').default;
|
|
452
|
+
return _context7.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
453
|
+
case 9:
|
|
454
|
+
case "end":
|
|
455
|
+
return _context7.stop();
|
|
456
|
+
}
|
|
457
|
+
}, _callee7);
|
|
458
|
+
})));
|
|
427
459
|
var _default = exports.default = GpgKey;
|
|
428
460
|
module.exports = GpgKey;
|
|
429
461
|
module.exports.default = GpgKey;
|
package/lib/models/Group.js
CHANGED
|
@@ -477,6 +477,41 @@ _Group = Group;
|
|
|
477
477
|
}
|
|
478
478
|
}, _callee6);
|
|
479
479
|
})));
|
|
480
|
+
// Parameters:
|
|
481
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `name`.
|
|
482
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `name`.
|
|
483
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `name`.
|
|
484
|
+
// ids - string - Comma-separated list of group ids to include in results.
|
|
485
|
+
// include_parent_site_groups - boolean - Include groups from the parent site.
|
|
486
|
+
(0, _defineProperty2.default)(Group, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
487
|
+
var params,
|
|
488
|
+
options,
|
|
489
|
+
response,
|
|
490
|
+
Export,
|
|
491
|
+
_args7 = arguments;
|
|
492
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
493
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
494
|
+
case 0:
|
|
495
|
+
params = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
496
|
+
options = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
497
|
+
if (!(params.ids && !(0, _utils.isString)(params.ids))) {
|
|
498
|
+
_context7.next = 4;
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
throw new errors.InvalidParameterError("Bad parameter: ids must be of type String, received ".concat((0, _utils.getType)(params.ids)));
|
|
502
|
+
case 4:
|
|
503
|
+
_context7.next = 6;
|
|
504
|
+
return _Api.default.sendRequest('/groups/create_export', 'POST', params, options);
|
|
505
|
+
case 6:
|
|
506
|
+
response = _context7.sent;
|
|
507
|
+
Export = require('./Export.js').default;
|
|
508
|
+
return _context7.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
509
|
+
case 9:
|
|
510
|
+
case "end":
|
|
511
|
+
return _context7.stop();
|
|
512
|
+
}
|
|
513
|
+
}, _callee7);
|
|
514
|
+
})));
|
|
480
515
|
var _default = exports.default = Group;
|
|
481
516
|
module.exports = Group;
|
|
482
517
|
module.exports.default = Group;
|
package/lib/models/GroupUser.js
CHANGED
|
@@ -415,6 +415,44 @@ _GroupUser = GroupUser;
|
|
|
415
415
|
}
|
|
416
416
|
}, _callee5);
|
|
417
417
|
})));
|
|
418
|
+
// Parameters:
|
|
419
|
+
// user_id - int64 - User ID. If provided, will return group_users of this user.
|
|
420
|
+
// group_id - int64 - Group ID. If provided, will return group_users of this group.
|
|
421
|
+
(0, _defineProperty2.default)(GroupUser, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
422
|
+
var params,
|
|
423
|
+
options,
|
|
424
|
+
response,
|
|
425
|
+
Export,
|
|
426
|
+
_args6 = arguments;
|
|
427
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
428
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
429
|
+
case 0:
|
|
430
|
+
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
431
|
+
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
432
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
433
|
+
_context6.next = 4;
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
437
|
+
case 4:
|
|
438
|
+
if (!(params.group_id && !(0, _utils.isInt)(params.group_id))) {
|
|
439
|
+
_context6.next = 6;
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(params.group_id)));
|
|
443
|
+
case 6:
|
|
444
|
+
_context6.next = 8;
|
|
445
|
+
return _Api.default.sendRequest('/group_users/create_export', 'POST', params, options);
|
|
446
|
+
case 8:
|
|
447
|
+
response = _context6.sent;
|
|
448
|
+
Export = require('./Export.js').default;
|
|
449
|
+
return _context6.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
450
|
+
case 11:
|
|
451
|
+
case "end":
|
|
452
|
+
return _context6.stop();
|
|
453
|
+
}
|
|
454
|
+
}, _callee6);
|
|
455
|
+
})));
|
|
418
456
|
var _default = exports.default = GroupUser;
|
|
419
457
|
module.exports = GroupUser;
|
|
420
458
|
module.exports.default = GroupUser;
|
package/lib/models/History.js
CHANGED
|
@@ -500,6 +500,313 @@ _History = History;
|
|
|
500
500
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
501
501
|
return _History.list(params, options);
|
|
502
502
|
});
|
|
503
|
+
// Parameters:
|
|
504
|
+
// start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
|
505
|
+
// end_at - string - Leave blank or set to a date/time to filter later entries.
|
|
506
|
+
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
507
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path` and `created_at`.
|
|
508
|
+
// path (required) - int64
|
|
509
|
+
(0, _defineProperty2.default)(History, "listForFileCreateExport", /*#__PURE__*/function () {
|
|
510
|
+
var _ref8 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6(path) {
|
|
511
|
+
var params,
|
|
512
|
+
options,
|
|
513
|
+
response,
|
|
514
|
+
Export,
|
|
515
|
+
_args6 = arguments;
|
|
516
|
+
return _regenerator.default.wrap(function _callee6$(_context6) {
|
|
517
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
518
|
+
case 0:
|
|
519
|
+
params = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
520
|
+
options = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : {};
|
|
521
|
+
if ((0, _utils.isObject)(params)) {
|
|
522
|
+
_context6.next = 4;
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
526
|
+
case 4:
|
|
527
|
+
params.path = path;
|
|
528
|
+
if (params.path) {
|
|
529
|
+
_context6.next = 7;
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
throw new errors.MissingParameterError('Parameter missing: path');
|
|
533
|
+
case 7:
|
|
534
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
535
|
+
_context6.next = 9;
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
539
|
+
case 9:
|
|
540
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
541
|
+
_context6.next = 11;
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
545
|
+
case 11:
|
|
546
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
547
|
+
_context6.next = 13;
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
551
|
+
case 13:
|
|
552
|
+
if (!(params.path && !(0, _utils.isInt)(params.path))) {
|
|
553
|
+
_context6.next = 15;
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type Int, received ".concat((0, _utils.getType)(params.path)));
|
|
557
|
+
case 15:
|
|
558
|
+
_context6.next = 17;
|
|
559
|
+
return _Api.default.sendRequest("/history/files/".concat(encodeURIComponent(params.path), "/create_export"), 'POST', params, options);
|
|
560
|
+
case 17:
|
|
561
|
+
response = _context6.sent;
|
|
562
|
+
Export = require('./Export.js').default;
|
|
563
|
+
return _context6.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
564
|
+
case 20:
|
|
565
|
+
case "end":
|
|
566
|
+
return _context6.stop();
|
|
567
|
+
}
|
|
568
|
+
}, _callee6);
|
|
569
|
+
}));
|
|
570
|
+
return function (_x4) {
|
|
571
|
+
return _ref8.apply(this, arguments);
|
|
572
|
+
};
|
|
573
|
+
}());
|
|
574
|
+
// Parameters:
|
|
575
|
+
// start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
|
576
|
+
// end_at - string - Leave blank or set to a date/time to filter later entries.
|
|
577
|
+
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
578
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
579
|
+
// path (required) - int64
|
|
580
|
+
(0, _defineProperty2.default)(History, "listForFolderCreateExport", /*#__PURE__*/function () {
|
|
581
|
+
var _ref9 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7(path) {
|
|
582
|
+
var params,
|
|
583
|
+
options,
|
|
584
|
+
response,
|
|
585
|
+
Export,
|
|
586
|
+
_args7 = arguments;
|
|
587
|
+
return _regenerator.default.wrap(function _callee7$(_context7) {
|
|
588
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
589
|
+
case 0:
|
|
590
|
+
params = _args7.length > 1 && _args7[1] !== undefined ? _args7[1] : {};
|
|
591
|
+
options = _args7.length > 2 && _args7[2] !== undefined ? _args7[2] : {};
|
|
592
|
+
if ((0, _utils.isObject)(params)) {
|
|
593
|
+
_context7.next = 4;
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
597
|
+
case 4:
|
|
598
|
+
params.path = path;
|
|
599
|
+
if (params.path) {
|
|
600
|
+
_context7.next = 7;
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
throw new errors.MissingParameterError('Parameter missing: path');
|
|
604
|
+
case 7:
|
|
605
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
606
|
+
_context7.next = 9;
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
610
|
+
case 9:
|
|
611
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
612
|
+
_context7.next = 11;
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
616
|
+
case 11:
|
|
617
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
618
|
+
_context7.next = 13;
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
622
|
+
case 13:
|
|
623
|
+
if (!(params.path && !(0, _utils.isInt)(params.path))) {
|
|
624
|
+
_context7.next = 15;
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type Int, received ".concat((0, _utils.getType)(params.path)));
|
|
628
|
+
case 15:
|
|
629
|
+
_context7.next = 17;
|
|
630
|
+
return _Api.default.sendRequest("/history/folders/".concat(encodeURIComponent(params.path), "/create_export"), 'POST', params, options);
|
|
631
|
+
case 17:
|
|
632
|
+
response = _context7.sent;
|
|
633
|
+
Export = require('./Export.js').default;
|
|
634
|
+
return _context7.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
635
|
+
case 20:
|
|
636
|
+
case "end":
|
|
637
|
+
return _context7.stop();
|
|
638
|
+
}
|
|
639
|
+
}, _callee7);
|
|
640
|
+
}));
|
|
641
|
+
return function (_x5) {
|
|
642
|
+
return _ref9.apply(this, arguments);
|
|
643
|
+
};
|
|
644
|
+
}());
|
|
645
|
+
// Parameters:
|
|
646
|
+
// start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
|
647
|
+
// end_at - string - Leave blank or set to a date/time to filter later entries.
|
|
648
|
+
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
649
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
|
|
650
|
+
// user_id (required) - int64 - User ID.
|
|
651
|
+
(0, _defineProperty2.default)(History, "listForUserCreateExport", /*#__PURE__*/function () {
|
|
652
|
+
var _ref10 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8(userId) {
|
|
653
|
+
var params,
|
|
654
|
+
options,
|
|
655
|
+
response,
|
|
656
|
+
Export,
|
|
657
|
+
_args8 = arguments;
|
|
658
|
+
return _regenerator.default.wrap(function _callee8$(_context8) {
|
|
659
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
660
|
+
case 0:
|
|
661
|
+
params = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};
|
|
662
|
+
options = _args8.length > 2 && _args8[2] !== undefined ? _args8[2] : {};
|
|
663
|
+
if ((0, _utils.isObject)(params)) {
|
|
664
|
+
_context8.next = 4;
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
668
|
+
case 4:
|
|
669
|
+
params.user_id = userId;
|
|
670
|
+
if (params.user_id) {
|
|
671
|
+
_context8.next = 7;
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
throw new errors.MissingParameterError('Parameter missing: user_id');
|
|
675
|
+
case 7:
|
|
676
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
677
|
+
_context8.next = 9;
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
681
|
+
case 9:
|
|
682
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
683
|
+
_context8.next = 11;
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
687
|
+
case 11:
|
|
688
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
689
|
+
_context8.next = 13;
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
693
|
+
case 13:
|
|
694
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
695
|
+
_context8.next = 15;
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
698
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
699
|
+
case 15:
|
|
700
|
+
_context8.next = 17;
|
|
701
|
+
return _Api.default.sendRequest("/history/users/".concat(encodeURIComponent(params.user_id), "/create_export"), 'POST', params, options);
|
|
702
|
+
case 17:
|
|
703
|
+
response = _context8.sent;
|
|
704
|
+
Export = require('./Export.js').default;
|
|
705
|
+
return _context8.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
706
|
+
case 20:
|
|
707
|
+
case "end":
|
|
708
|
+
return _context8.stop();
|
|
709
|
+
}
|
|
710
|
+
}, _callee8);
|
|
711
|
+
}));
|
|
712
|
+
return function (_x6) {
|
|
713
|
+
return _ref10.apply(this, arguments);
|
|
714
|
+
};
|
|
715
|
+
}());
|
|
716
|
+
// Parameters:
|
|
717
|
+
// start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
|
718
|
+
// end_at - string - Leave blank or set to a date/time to filter later entries.
|
|
719
|
+
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
720
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
721
|
+
(0, _defineProperty2.default)(History, "listLoginsCreateExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
722
|
+
var params,
|
|
723
|
+
options,
|
|
724
|
+
response,
|
|
725
|
+
Export,
|
|
726
|
+
_args9 = arguments;
|
|
727
|
+
return _regenerator.default.wrap(function _callee9$(_context9) {
|
|
728
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
729
|
+
case 0:
|
|
730
|
+
params = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
731
|
+
options = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : {};
|
|
732
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
733
|
+
_context9.next = 4;
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
737
|
+
case 4:
|
|
738
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
739
|
+
_context9.next = 6;
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
743
|
+
case 6:
|
|
744
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
745
|
+
_context9.next = 8;
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
749
|
+
case 8:
|
|
750
|
+
_context9.next = 10;
|
|
751
|
+
return _Api.default.sendRequest('/history/login/create_export', 'POST', params, options);
|
|
752
|
+
case 10:
|
|
753
|
+
response = _context9.sent;
|
|
754
|
+
Export = require('./Export.js').default;
|
|
755
|
+
return _context9.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
756
|
+
case 13:
|
|
757
|
+
case "end":
|
|
758
|
+
return _context9.stop();
|
|
759
|
+
}
|
|
760
|
+
}, _callee9);
|
|
761
|
+
})));
|
|
762
|
+
// Parameters:
|
|
763
|
+
// start_at - string - Leave blank or set to a date/time to filter earlier entries.
|
|
764
|
+
// end_at - string - Leave blank or set to a date/time to filter later entries.
|
|
765
|
+
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
766
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
|
|
767
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ user_id, folder ]`, `[ user_id, path ]`, `[ folder, path ]` or `[ user_id, folder, path ]`.
|
|
768
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
769
|
+
(0, _defineProperty2.default)(History, "listCreateExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
770
|
+
var params,
|
|
771
|
+
options,
|
|
772
|
+
response,
|
|
773
|
+
Export,
|
|
774
|
+
_args10 = arguments;
|
|
775
|
+
return _regenerator.default.wrap(function _callee10$(_context10) {
|
|
776
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
777
|
+
case 0:
|
|
778
|
+
params = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
779
|
+
options = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : {};
|
|
780
|
+
if (!(params.start_at && !(0, _utils.isString)(params.start_at))) {
|
|
781
|
+
_context10.next = 4;
|
|
782
|
+
break;
|
|
783
|
+
}
|
|
784
|
+
throw new errors.InvalidParameterError("Bad parameter: start_at must be of type String, received ".concat((0, _utils.getType)(params.start_at)));
|
|
785
|
+
case 4:
|
|
786
|
+
if (!(params.end_at && !(0, _utils.isString)(params.end_at))) {
|
|
787
|
+
_context10.next = 6;
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
throw new errors.InvalidParameterError("Bad parameter: end_at must be of type String, received ".concat((0, _utils.getType)(params.end_at)));
|
|
791
|
+
case 6:
|
|
792
|
+
if (!(params.display && !(0, _utils.isString)(params.display))) {
|
|
793
|
+
_context10.next = 8;
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
throw new errors.InvalidParameterError("Bad parameter: display must be of type String, received ".concat((0, _utils.getType)(params.display)));
|
|
797
|
+
case 8:
|
|
798
|
+
_context10.next = 10;
|
|
799
|
+
return _Api.default.sendRequest('/history/create_export', 'POST', params, options);
|
|
800
|
+
case 10:
|
|
801
|
+
response = _context10.sent;
|
|
802
|
+
Export = require('./Export.js').default;
|
|
803
|
+
return _context10.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
804
|
+
case 13:
|
|
805
|
+
case "end":
|
|
806
|
+
return _context10.stop();
|
|
807
|
+
}
|
|
808
|
+
}, _callee10);
|
|
809
|
+
})));
|
|
503
810
|
var _default = exports.default = History;
|
|
504
811
|
module.exports = History;
|
|
505
812
|
module.exports.default = History;
|
|
@@ -215,6 +215,50 @@ _HistoryExportResult = HistoryExportResult;
|
|
|
215
215
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
216
216
|
return _HistoryExportResult.list(params, options);
|
|
217
217
|
});
|
|
218
|
+
// Parameters:
|
|
219
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
220
|
+
// history_export_id (required) - int64 - ID of the associated history export.
|
|
221
|
+
(0, _defineProperty2.default)(HistoryExportResult, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
222
|
+
var params,
|
|
223
|
+
options,
|
|
224
|
+
response,
|
|
225
|
+
Export,
|
|
226
|
+
_args2 = arguments;
|
|
227
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
228
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
229
|
+
case 0:
|
|
230
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
231
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
232
|
+
if (params.history_export_id) {
|
|
233
|
+
_context2.next = 4;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
throw new errors.MissingParameterError('Parameter missing: history_export_id');
|
|
237
|
+
case 4:
|
|
238
|
+
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
239
|
+
_context2.next = 6;
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
243
|
+
case 6:
|
|
244
|
+
if (!(params.history_export_id && !(0, _utils.isInt)(params.history_export_id))) {
|
|
245
|
+
_context2.next = 8;
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
throw new errors.InvalidParameterError("Bad parameter: history_export_id must be of type Int, received ".concat((0, _utils.getType)(params.history_export_id)));
|
|
249
|
+
case 8:
|
|
250
|
+
_context2.next = 10;
|
|
251
|
+
return _Api.default.sendRequest('/history_export_results/create_export', 'POST', params, options);
|
|
252
|
+
case 10:
|
|
253
|
+
response = _context2.sent;
|
|
254
|
+
Export = require('./Export.js').default;
|
|
255
|
+
return _context2.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
256
|
+
case 13:
|
|
257
|
+
case "end":
|
|
258
|
+
return _context2.stop();
|
|
259
|
+
}
|
|
260
|
+
}, _callee2);
|
|
261
|
+
})));
|
|
218
262
|
var _default = exports.default = HistoryExportResult;
|
|
219
263
|
module.exports = HistoryExportResult;
|
|
220
264
|
module.exports.default = HistoryExportResult;
|
|
@@ -248,6 +248,45 @@ _InboxRecipient = InboxRecipient;
|
|
|
248
248
|
}
|
|
249
249
|
}, _callee3);
|
|
250
250
|
})));
|
|
251
|
+
// Parameters:
|
|
252
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
253
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
254
|
+
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
|
255
|
+
(0, _defineProperty2.default)(InboxRecipient, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
256
|
+
var params,
|
|
257
|
+
options,
|
|
258
|
+
response,
|
|
259
|
+
Export,
|
|
260
|
+
_args4 = arguments;
|
|
261
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
262
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
263
|
+
case 0:
|
|
264
|
+
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
265
|
+
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
266
|
+
if (params.inbox_id) {
|
|
267
|
+
_context4.next = 4;
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
throw new errors.MissingParameterError('Parameter missing: inbox_id');
|
|
271
|
+
case 4:
|
|
272
|
+
if (!(params.inbox_id && !(0, _utils.isInt)(params.inbox_id))) {
|
|
273
|
+
_context4.next = 6;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params.inbox_id)));
|
|
277
|
+
case 6:
|
|
278
|
+
_context4.next = 8;
|
|
279
|
+
return _Api.default.sendRequest('/inbox_recipients/create_export', 'POST', params, options);
|
|
280
|
+
case 8:
|
|
281
|
+
response = _context4.sent;
|
|
282
|
+
Export = require('./Export.js').default;
|
|
283
|
+
return _context4.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
284
|
+
case 11:
|
|
285
|
+
case "end":
|
|
286
|
+
return _context4.stop();
|
|
287
|
+
}
|
|
288
|
+
}, _callee4);
|
|
289
|
+
})));
|
|
251
290
|
var _default = exports.default = InboxRecipient;
|
|
252
291
|
module.exports = InboxRecipient;
|
|
253
292
|
module.exports.default = InboxRecipient;
|
|
@@ -146,6 +146,37 @@ _InboxRegistration = InboxRegistration;
|
|
|
146
146
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
147
147
|
return _InboxRegistration.list(params, options);
|
|
148
148
|
});
|
|
149
|
+
// Parameters:
|
|
150
|
+
// folder_behavior_id - int64 - ID of the associated Inbox.
|
|
151
|
+
(0, _defineProperty2.default)(InboxRegistration, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
152
|
+
var params,
|
|
153
|
+
options,
|
|
154
|
+
response,
|
|
155
|
+
Export,
|
|
156
|
+
_args2 = arguments;
|
|
157
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
158
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
159
|
+
case 0:
|
|
160
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
161
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
162
|
+
if (!(params.folder_behavior_id && !(0, _utils.isInt)(params.folder_behavior_id))) {
|
|
163
|
+
_context2.next = 4;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
throw new errors.InvalidParameterError("Bad parameter: folder_behavior_id must be of type Int, received ".concat((0, _utils.getType)(params.folder_behavior_id)));
|
|
167
|
+
case 4:
|
|
168
|
+
_context2.next = 6;
|
|
169
|
+
return _Api.default.sendRequest('/inbox_registrations/create_export', 'POST', params, options);
|
|
170
|
+
case 6:
|
|
171
|
+
response = _context2.sent;
|
|
172
|
+
Export = require('./Export.js').default;
|
|
173
|
+
return _context2.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
174
|
+
case 9:
|
|
175
|
+
case "end":
|
|
176
|
+
return _context2.stop();
|
|
177
|
+
}
|
|
178
|
+
}, _callee2);
|
|
179
|
+
})));
|
|
149
180
|
var _default = exports.default = InboxRegistration;
|
|
150
181
|
module.exports = InboxRegistration;
|
|
151
182
|
module.exports.default = InboxRegistration;
|
|
@@ -63,7 +63,7 @@ _InboxUpload = InboxUpload;
|
|
|
63
63
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
64
64
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
65
65
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
66
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`
|
|
66
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
|
67
67
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
68
68
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
69
69
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
@@ -109,6 +109,36 @@ _InboxUpload = InboxUpload;
|
|
|
109
109
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
110
110
|
return _InboxUpload.list(params, options);
|
|
111
111
|
});
|
|
112
|
+
// Parameters:
|
|
113
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
114
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `folder_behavior_id` or `inbox_registration_id`. Valid field combinations are `[ created_at, folder_behavior_id ]`, `[ created_at, inbox_registration_id ]`, `[ folder_behavior_id, inbox_registration_id ]` or `[ created_at, folder_behavior_id, inbox_registration_id ]`.
|
|
115
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
116
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
117
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
118
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
119
|
+
(0, _defineProperty2.default)(InboxUpload, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
120
|
+
var params,
|
|
121
|
+
options,
|
|
122
|
+
response,
|
|
123
|
+
Export,
|
|
124
|
+
_args2 = arguments;
|
|
125
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
126
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
127
|
+
case 0:
|
|
128
|
+
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
129
|
+
options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
|
|
130
|
+
_context2.next = 4;
|
|
131
|
+
return _Api.default.sendRequest('/inbox_uploads/create_export', 'POST', params, options);
|
|
132
|
+
case 4:
|
|
133
|
+
response = _context2.sent;
|
|
134
|
+
Export = require('./Export.js').default;
|
|
135
|
+
return _context2.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
136
|
+
case 7:
|
|
137
|
+
case "end":
|
|
138
|
+
return _context2.stop();
|
|
139
|
+
}
|
|
140
|
+
}, _callee2);
|
|
141
|
+
})));
|
|
112
142
|
var _default = exports.default = InboxUpload;
|
|
113
143
|
module.exports = InboxUpload;
|
|
114
144
|
module.exports.default = InboxUpload;
|
package/lib/models/Invoice.js
CHANGED
|
@@ -199,6 +199,27 @@ _Invoice = Invoice;
|
|
|
199
199
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
200
200
|
return _Invoice.find(id, params, options);
|
|
201
201
|
});
|
|
202
|
+
(0, _defineProperty2.default)(Invoice, "createExport", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
203
|
+
var options,
|
|
204
|
+
response,
|
|
205
|
+
Export,
|
|
206
|
+
_args3 = arguments;
|
|
207
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
208
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
209
|
+
case 0:
|
|
210
|
+
options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
211
|
+
_context3.next = 3;
|
|
212
|
+
return _Api.default.sendRequest('/invoices/create_export', 'POST', {}, options);
|
|
213
|
+
case 3:
|
|
214
|
+
response = _context3.sent;
|
|
215
|
+
Export = require('./Export.js').default;
|
|
216
|
+
return _context3.abrupt("return", new Export(response === null || response === void 0 ? void 0 : response.data, options));
|
|
217
|
+
case 6:
|
|
218
|
+
case "end":
|
|
219
|
+
return _context3.stop();
|
|
220
|
+
}
|
|
221
|
+
}, _callee3);
|
|
222
|
+
})));
|
|
202
223
|
var _default = exports.default = Invoice;
|
|
203
224
|
module.exports = Invoice;
|
|
204
225
|
module.exports.default = Invoice;
|