files.com 1.2.170 → 1.2.171
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 +47 -0
- package/lib/models/ApiKey.js +60 -20
- package/lib/models/ApiRequestLog.js +29 -0
- package/lib/models/App.js +30 -0
- package/lib/models/As2IncomingMessage.js +40 -0
- package/lib/models/As2OutgoingMessage.js +40 -0
- package/lib/models/As2Partner.js +24 -0
- package/lib/models/As2Station.js +24 -0
- package/lib/models/Automation.js +33 -0
- package/lib/models/AutomationLog.js +29 -0
- package/lib/models/AutomationRun.js +42 -0
- package/lib/models/BandwidthSnapshot.js +33 -0
- package/lib/models/Behavior.js +30 -0
- package/lib/models/Bundle.js +41 -0
- package/lib/models/BundleAction.js +33 -0
- package/lib/models/BundleDownload.js +47 -0
- package/lib/models/BundleNotification.js +29 -0
- package/lib/models/BundleRecipient.js +42 -0
- package/lib/models/BundleRegistration.js +34 -0
- package/lib/models/Clickwrap.js +24 -0
- package/lib/models/DnsRecord.js +24 -0
- package/lib/models/EmailIncomingMessage.js +34 -0
- package/lib/models/EmailLog.js +29 -0
- package/lib/models/ExavaultApiRequestLog.js +29 -0
- package/lib/models/Export.js +146 -34
- package/lib/models/ExternalEvent.js +34 -0
- package/lib/models/FileMigrationLog.js +29 -0
- package/lib/models/FormFieldSet.js +34 -0
- package/lib/models/FtpActionLog.js +29 -0
- package/lib/models/GpgKey.js +35 -0
- package/lib/models/Group.js +38 -0
- package/lib/models/GroupUser.js +41 -0
- package/lib/models/History.js +322 -0
- package/lib/models/HistoryExportResult.js +47 -0
- package/lib/models/InboxRecipient.js +42 -0
- package/lib/models/InboxRegistration.js +34 -0
- package/lib/models/InboxUpload.js +34 -1
- package/lib/models/Invoice.js +24 -0
- package/lib/models/IpAddress.js +96 -0
- package/lib/models/Message.js +47 -0
- package/lib/models/MessageComment.js +47 -0
- package/lib/models/MessageCommentReaction.js +47 -0
- package/lib/models/MessageReaction.js +47 -0
- package/lib/models/Notification.js +45 -0
- package/lib/models/OutboundConnectionLog.js +29 -0
- package/lib/models/Payment.js +24 -0
- package/lib/models/Permission.js +52 -0
- package/lib/models/Priority.js +52 -0
- package/lib/models/Project.js +24 -0
- package/lib/models/PublicHostingRequestLog.js +29 -0
- package/lib/models/PublicKey.js +34 -0
- package/lib/models/RemoteBandwidthSnapshot.js +33 -0
- package/lib/models/RemoteServer.js +30 -0
- package/lib/models/Request.js +36 -0
- package/lib/models/SettingsChange.js +29 -0
- package/lib/models/SftpActionLog.js +29 -0
- package/lib/models/SftpHostKey.js +24 -0
- package/lib/models/ShareGroup.js +34 -0
- package/lib/models/SiemHttpDestination.js +49 -25
- package/lib/models/Snapshot.js +24 -0
- package/lib/models/SsoStrategy.js +24 -0
- package/lib/models/SyncLog.js +29 -0
- package/lib/models/UsageDailySnapshot.js +33 -0
- package/lib/models/UsageSnapshot.js +24 -0
- package/lib/models/User.js +49 -0
- package/lib/models/UserCipherUse.js +34 -0
- package/lib/models/UserRequest.js +24 -0
- package/lib/models/UserSftpClientUse.js +34 -0
- package/lib/models/WebDavActionLog.js +29 -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
|
@@ -76,6 +76,16 @@ class AutomationLog {
|
|
|
76
76
|
|
|
77
77
|
static all = (params = {}, options = {}) =>
|
|
78
78
|
AutomationLog.list(params, options)
|
|
79
|
+
|
|
80
|
+
// Parameters:
|
|
81
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `automation_id`, `automation_run_id`, `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
|
82
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation`, `path` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ automation_id ]`, `[ automation_run_id ]`, `[ operation ]`, `[ path ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, automation_id ]`, `[ start_date, automation_run_id ]`, `[ start_date, operation ]`, `[ start_date, path ]`, `[ start_date, status ]`, `[ end_date, automation_id ]`, `[ end_date, automation_run_id ]`, `[ end_date, operation ]`, `[ end_date, path ]`, `[ end_date, status ]`, `[ automation_id, automation_run_id ]`, `[ automation_id, operation ]`, `[ automation_id, path ]`, `[ automation_id, status ]`, `[ automation_run_id, operation ]`, `[ automation_run_id, path ]`, `[ automation_run_id, status ]`, `[ operation, path ]`, `[ operation, status ]`, `[ path, status ]`, `[ start_date, end_date, automation_id ]`, `[ start_date, end_date, automation_run_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, path ]`, `[ start_date, end_date, status ]`, `[ start_date, automation_id, automation_run_id ]`, `[ start_date, automation_id, operation ]`, `[ start_date, automation_id, path ]`, `[ start_date, automation_id, status ]`, `[ start_date, automation_run_id, operation ]`, `[ start_date, automation_run_id, path ]`, `[ start_date, automation_run_id, status ]`, `[ start_date, operation, path ]`, `[ start_date, operation, status ]`, `[ start_date, path, status ]`, `[ end_date, automation_id, automation_run_id ]`, `[ end_date, automation_id, operation ]`, `[ end_date, automation_id, path ]`, `[ end_date, automation_id, status ]`, `[ end_date, automation_run_id, operation ]`, `[ end_date, automation_run_id, path ]`, `[ end_date, automation_run_id, status ]`, `[ end_date, operation, path ]`, `[ end_date, operation, status ]`, `[ end_date, path, status ]`, `[ automation_id, automation_run_id, operation ]`, `[ automation_id, automation_run_id, path ]`, `[ automation_id, automation_run_id, status ]`, `[ automation_id, operation, path ]`, `[ automation_id, operation, status ]`, `[ automation_id, path, status ]`, `[ automation_run_id, operation, path ]`, `[ automation_run_id, operation, status ]`, `[ automation_run_id, path, status ]`, `[ operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id ]`, `[ start_date, end_date, automation_id, operation ]`, `[ start_date, end_date, automation_id, path ]`, `[ start_date, end_date, automation_id, status ]`, `[ start_date, end_date, automation_run_id, operation ]`, `[ start_date, end_date, automation_run_id, path ]`, `[ start_date, end_date, automation_run_id, status ]`, `[ start_date, end_date, operation, path ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, path, status ]`, `[ start_date, automation_id, automation_run_id, operation ]`, `[ start_date, automation_id, automation_run_id, path ]`, `[ start_date, automation_id, automation_run_id, status ]`, `[ start_date, automation_id, operation, path ]`, `[ start_date, automation_id, operation, status ]`, `[ start_date, automation_id, path, status ]`, `[ start_date, automation_run_id, operation, path ]`, `[ start_date, automation_run_id, operation, status ]`, `[ start_date, automation_run_id, path, status ]`, `[ start_date, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation ]`, `[ end_date, automation_id, automation_run_id, path ]`, `[ end_date, automation_id, automation_run_id, status ]`, `[ end_date, automation_id, operation, path ]`, `[ end_date, automation_id, operation, status ]`, `[ end_date, automation_id, path, status ]`, `[ end_date, automation_run_id, operation, path ]`, `[ end_date, automation_run_id, operation, status ]`, `[ end_date, automation_run_id, path, status ]`, `[ end_date, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path ]`, `[ automation_id, automation_run_id, operation, status ]`, `[ automation_id, automation_run_id, path, status ]`, `[ automation_id, operation, path, status ]`, `[ automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation ]`, `[ start_date, end_date, automation_id, automation_run_id, path ]`, `[ start_date, end_date, automation_id, automation_run_id, status ]`, `[ start_date, end_date, automation_id, operation, path ]`, `[ start_date, end_date, automation_id, operation, status ]`, `[ start_date, end_date, automation_id, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_run_id, path, status ]`, `[ start_date, end_date, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, automation_id, automation_run_id, path, status ]`, `[ start_date, automation_id, operation, path, status ]`, `[ start_date, automation_run_id, operation, path, status ]`, `[ end_date, automation_id, automation_run_id, operation, path ]`, `[ end_date, automation_id, automation_run_id, operation, status ]`, `[ end_date, automation_id, automation_run_id, path, status ]`, `[ end_date, automation_id, operation, path, status ]`, `[ end_date, automation_run_id, operation, path, status ]`, `[ automation_id, automation_run_id, operation, path, status ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, path ]`, `[ start_date, end_date, automation_id, automation_run_id, operation, status ]`, `[ start_date, end_date, automation_id, automation_run_id, path, status ]`, `[ start_date, end_date, automation_id, operation, path, status ]`, `[ start_date, end_date, automation_run_id, operation, path, status ]`, `[ start_date, automation_id, automation_run_id, operation, path, status ]` or `[ end_date, automation_id, automation_run_id, operation, path, status ]`.
|
|
83
|
+
static createExport = async (params = {}, options = {}) => {
|
|
84
|
+
const response = await Api.sendRequest('/automation_logs/create_export', 'POST', params, options)
|
|
85
|
+
|
|
86
|
+
const Export = require('./Export.js').default
|
|
87
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
88
|
+
}
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
export default AutomationLog
|
|
@@ -110,6 +110,25 @@ class AutomationRun {
|
|
|
110
110
|
|
|
111
111
|
static get = (id, params = {}, options = {}) =>
|
|
112
112
|
AutomationRun.find(id, params, options)
|
|
113
|
+
|
|
114
|
+
// Parameters:
|
|
115
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
|
|
116
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ status, automation_id ]`.
|
|
117
|
+
// automation_id (required) - int64 - ID of the associated Automation.
|
|
118
|
+
static createExport = async (params = {}, options = {}) => {
|
|
119
|
+
if (!params.automation_id) {
|
|
120
|
+
throw new errors.MissingParameterError('Parameter missing: automation_id')
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (params.automation_id && !isInt(params.automation_id)) {
|
|
124
|
+
throw new errors.InvalidParameterError(`Bad parameter: automation_id must be of type Int, received ${getType(params.automation_id)}`)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const response = await Api.sendRequest('/automation_runs/create_export', 'POST', params, options)
|
|
128
|
+
|
|
129
|
+
const Export = require('./Export.js').default
|
|
130
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
131
|
+
}
|
|
113
132
|
}
|
|
114
133
|
|
|
115
134
|
export default AutomationRun
|
|
@@ -80,6 +80,20 @@ class BandwidthSnapshot {
|
|
|
80
80
|
|
|
81
81
|
static all = (params = {}, options = {}) =>
|
|
82
82
|
BandwidthSnapshot.list(params, options)
|
|
83
|
+
|
|
84
|
+
// Parameters:
|
|
85
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `logged_at`.
|
|
86
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `logged_at`.
|
|
87
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `logged_at`.
|
|
88
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `logged_at`.
|
|
89
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `logged_at`.
|
|
90
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `logged_at`.
|
|
91
|
+
static createExport = async (params = {}, options = {}) => {
|
|
92
|
+
const response = await Api.sendRequest('/bandwidth_snapshots/create_export', 'POST', params, options)
|
|
93
|
+
|
|
94
|
+
const Export = require('./Export.js').default
|
|
95
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
96
|
+
}
|
|
83
97
|
}
|
|
84
98
|
|
|
85
99
|
export default BandwidthSnapshot
|
package/src/models/Behavior.js
CHANGED
|
@@ -349,6 +349,17 @@ class Behavior {
|
|
|
349
349
|
|
|
350
350
|
await Api.sendRequest('/behaviors/webhook/test', 'POST', params, options)
|
|
351
351
|
}
|
|
352
|
+
|
|
353
|
+
// Parameters:
|
|
354
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
355
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
356
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
357
|
+
static createExport = async (params = {}, options = {}) => {
|
|
358
|
+
const response = await Api.sendRequest('/behaviors/create_export', 'POST', params, options)
|
|
359
|
+
|
|
360
|
+
const Export = require('./Export.js').default
|
|
361
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
362
|
+
}
|
|
352
363
|
}
|
|
353
364
|
|
|
354
365
|
export default Behavior
|
package/src/models/Bundle.js
CHANGED
|
@@ -695,6 +695,26 @@ class Bundle {
|
|
|
695
695
|
|
|
696
696
|
return new Bundle(response?.data, options)
|
|
697
697
|
}
|
|
698
|
+
|
|
699
|
+
// Parameters:
|
|
700
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
701
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `code` or `note`.
|
|
702
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `code`, `note` or `created_at`.
|
|
703
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
704
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
705
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code` and `note`.
|
|
706
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
707
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
708
|
+
static createExport = async (params = {}, options = {}) => {
|
|
709
|
+
if (params.user_id && !isInt(params.user_id)) {
|
|
710
|
+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
const response = await Api.sendRequest('/bundles/create_export', 'POST', params, options)
|
|
714
|
+
|
|
715
|
+
const Export = require('./Export.js').default
|
|
716
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
717
|
+
}
|
|
698
718
|
}
|
|
699
719
|
|
|
700
720
|
export default Bundle
|
|
@@ -71,6 +71,20 @@ class BundleAction {
|
|
|
71
71
|
|
|
72
72
|
static all = (params = {}, options = {}) =>
|
|
73
73
|
BundleAction.list(params, options)
|
|
74
|
+
|
|
75
|
+
// Parameters:
|
|
76
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
77
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
|
78
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
79
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
80
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
81
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
82
|
+
static createExport = async (params = {}, options = {}) => {
|
|
83
|
+
const response = await Api.sendRequest('/bundle_actions/create_export', 'POST', params, options)
|
|
84
|
+
|
|
85
|
+
const Export = require('./Export.js').default
|
|
86
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
87
|
+
}
|
|
74
88
|
}
|
|
75
89
|
|
|
76
90
|
export default BundleAction
|
|
@@ -75,6 +75,30 @@ class BundleDownload {
|
|
|
75
75
|
|
|
76
76
|
static all = (params = {}, options = {}) =>
|
|
77
77
|
BundleDownload.list(params, options)
|
|
78
|
+
|
|
79
|
+
// Parameters:
|
|
80
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
81
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
82
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
83
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
84
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
85
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
86
|
+
// bundle_id - int64 - Bundle ID
|
|
87
|
+
// bundle_registration_id - int64 - BundleRegistration ID
|
|
88
|
+
static createExport = async (params = {}, options = {}) => {
|
|
89
|
+
if (params.bundle_id && !isInt(params.bundle_id)) {
|
|
90
|
+
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (params.bundle_registration_id && !isInt(params.bundle_registration_id)) {
|
|
94
|
+
throw new errors.InvalidParameterError(`Bad parameter: bundle_registration_id must be of type Int, received ${getType(params.bundle_registration_id)}`)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const response = await Api.sendRequest('/bundle_downloads/create_export', 'POST', params, options)
|
|
98
|
+
|
|
99
|
+
const Export = require('./Export.js').default
|
|
100
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
101
|
+
}
|
|
78
102
|
}
|
|
79
103
|
|
|
80
104
|
export default BundleDownload
|
|
@@ -202,6 +202,16 @@ class BundleNotification {
|
|
|
202
202
|
|
|
203
203
|
return new BundleNotification(response?.data, options)
|
|
204
204
|
}
|
|
205
|
+
|
|
206
|
+
// Parameters:
|
|
207
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
208
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
|
209
|
+
static createExport = async (params = {}, options = {}) => {
|
|
210
|
+
const response = await Api.sendRequest('/bundle_notifications/create_export', 'POST', params, options)
|
|
211
|
+
|
|
212
|
+
const Export = require('./Export.js').default
|
|
213
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
214
|
+
}
|
|
205
215
|
}
|
|
206
216
|
|
|
207
217
|
export default BundleNotification
|
|
@@ -158,6 +158,25 @@ class BundleRecipient {
|
|
|
158
158
|
|
|
159
159
|
return new BundleRecipient(response?.data, options)
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
// Parameters:
|
|
163
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
164
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
165
|
+
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
|
166
|
+
static createExport = async (params = {}, options = {}) => {
|
|
167
|
+
if (!params.bundle_id) {
|
|
168
|
+
throw new errors.MissingParameterError('Parameter missing: bundle_id')
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (params.bundle_id && !isInt(params.bundle_id)) {
|
|
172
|
+
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const response = await Api.sendRequest('/bundle_recipients/create_export', 'POST', params, options)
|
|
176
|
+
|
|
177
|
+
const Export = require('./Export.js').default
|
|
178
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
179
|
+
}
|
|
161
180
|
}
|
|
162
181
|
|
|
163
182
|
export default BundleRecipient
|
|
@@ -91,6 +91,19 @@ class BundleRegistration {
|
|
|
91
91
|
|
|
92
92
|
static all = (params = {}, options = {}) =>
|
|
93
93
|
BundleRegistration.list(params, options)
|
|
94
|
+
|
|
95
|
+
// Parameters:
|
|
96
|
+
// bundle_id - int64 - ID of the associated Bundle
|
|
97
|
+
static createExport = async (params = {}, options = {}) => {
|
|
98
|
+
if (params.bundle_id && !isInt(params.bundle_id)) {
|
|
99
|
+
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const response = await Api.sendRequest('/bundle_registrations/create_export', 'POST', params, options)
|
|
103
|
+
|
|
104
|
+
const Export = require('./Export.js').default
|
|
105
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
106
|
+
}
|
|
94
107
|
}
|
|
95
108
|
|
|
96
109
|
export default BundleRegistration
|
package/src/models/Clickwrap.js
CHANGED
|
@@ -239,6 +239,13 @@ class Clickwrap {
|
|
|
239
239
|
|
|
240
240
|
return new Clickwrap(response?.data, options)
|
|
241
241
|
}
|
|
242
|
+
|
|
243
|
+
static createExport = async (options = {}) => {
|
|
244
|
+
const response = await Api.sendRequest('/clickwraps/create_export', 'POST', {}, options)
|
|
245
|
+
|
|
246
|
+
const Export = require('./Export.js').default
|
|
247
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
248
|
+
}
|
|
242
249
|
}
|
|
243
250
|
|
|
244
251
|
export default Clickwrap
|
package/src/models/DnsRecord.js
CHANGED
|
@@ -59,6 +59,13 @@ class DnsRecord {
|
|
|
59
59
|
|
|
60
60
|
static all = (params = {}, options = {}) =>
|
|
61
61
|
DnsRecord.list(params, options)
|
|
62
|
+
|
|
63
|
+
static createExport = async (options = {}) => {
|
|
64
|
+
const response = await Api.sendRequest('/dns_records/create_export', 'POST', {}, options)
|
|
65
|
+
|
|
66
|
+
const Export = require('./Export.js').default
|
|
67
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
68
|
+
}
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
export default DnsRecord
|
|
@@ -81,6 +81,21 @@ class EmailIncomingMessage {
|
|
|
81
81
|
|
|
82
82
|
static all = (params = {}, options = {}) =>
|
|
83
83
|
EmailIncomingMessage.list(params, options)
|
|
84
|
+
|
|
85
|
+
// Parameters:
|
|
86
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `sender`, `status` or `inbox_id`.
|
|
87
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `inbox_id`, `sender` or `status`. Valid field combinations are `[ created_at, inbox_id ]`, `[ created_at, sender ]`, `[ created_at, status ]`, `[ inbox_id, status ]`, `[ created_at, inbox_id, status ]`, `[ inbox_id, sender, status ]` or `[ created_at, inbox_id, sender, status ]`.
|
|
88
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
89
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
90
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `sender`.
|
|
91
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
92
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
93
|
+
static createExport = async (params = {}, options = {}) => {
|
|
94
|
+
const response = await Api.sendRequest('/email_incoming_messages/create_export', 'POST', params, options)
|
|
95
|
+
|
|
96
|
+
const Export = require('./Export.js').default
|
|
97
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
98
|
+
}
|
|
84
99
|
}
|
|
85
100
|
|
|
86
101
|
export default EmailIncomingMessage
|
package/src/models/EmailLog.js
CHANGED
|
@@ -76,6 +76,16 @@ class EmailLog {
|
|
|
76
76
|
|
|
77
77
|
static all = (params = {}, options = {}) =>
|
|
78
78
|
EmailLog.list(params, options)
|
|
79
|
+
|
|
80
|
+
// Parameters:
|
|
81
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date` or `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
|
82
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ status ]`, `[ start_date, end_date ]`, `[ start_date, status ]` or `[ end_date, status ]`.
|
|
83
|
+
static createExport = async (params = {}, options = {}) => {
|
|
84
|
+
const response = await Api.sendRequest('/email_logs/create_export', 'POST', params, options)
|
|
85
|
+
|
|
86
|
+
const Export = require('./Export.js').default
|
|
87
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
88
|
+
}
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
export default EmailLog
|
|
@@ -82,6 +82,16 @@ class ExavaultApiRequestLog {
|
|
|
82
82
|
|
|
83
83
|
static all = (params = {}, options = {}) =>
|
|
84
84
|
ExavaultApiRequestLog.list(params, options)
|
|
85
|
+
|
|
86
|
+
// Parameters:
|
|
87
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `request_ip`, `request_method` or `success`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
|
88
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `request_ip` and `request_method`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ request_ip ]`, `[ request_method ]`, `[ success ]`, `[ start_date, end_date ]`, `[ start_date, request_ip ]`, `[ start_date, request_method ]`, `[ start_date, success ]`, `[ end_date, request_ip ]`, `[ end_date, request_method ]`, `[ end_date, success ]`, `[ request_ip, request_method ]`, `[ request_ip, success ]`, `[ request_method, success ]`, `[ start_date, end_date, request_ip ]`, `[ start_date, end_date, request_method ]`, `[ start_date, end_date, success ]`, `[ start_date, request_ip, request_method ]`, `[ start_date, request_ip, success ]`, `[ start_date, request_method, success ]`, `[ end_date, request_ip, request_method ]`, `[ end_date, request_ip, success ]`, `[ end_date, request_method, success ]`, `[ request_ip, request_method, success ]`, `[ start_date, end_date, request_ip, request_method ]`, `[ start_date, end_date, request_ip, success ]`, `[ start_date, end_date, request_method, success ]`, `[ start_date, request_ip, request_method, success ]` or `[ end_date, request_ip, request_method, success ]`.
|
|
89
|
+
static createExport = async (params = {}, options = {}) => {
|
|
90
|
+
const response = await Api.sendRequest('/exavault_api_request_logs/create_export', 'POST', params, options)
|
|
91
|
+
|
|
92
|
+
const Export = require('./Export.js').default
|
|
93
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
|
|
87
97
|
export default ExavaultApiRequestLog
|
package/src/models/Export.js
CHANGED
|
@@ -31,15 +31,83 @@ class Export {
|
|
|
31
31
|
// int64 # ID for this Export
|
|
32
32
|
getId = () => this.attributes.id
|
|
33
33
|
|
|
34
|
+
setId = value => {
|
|
35
|
+
this.attributes.id = value
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
// string # Status of the Export
|
|
35
39
|
getExportStatus = () => this.attributes.export_status
|
|
36
40
|
|
|
41
|
+
setExportStatus = value => {
|
|
42
|
+
this.attributes.export_status = value
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
// string # Type of data being exported
|
|
38
46
|
getExportType = () => this.attributes.export_type
|
|
39
47
|
|
|
48
|
+
setExportType = value => {
|
|
49
|
+
this.attributes.export_type = value
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// int64 # Number of rows exported
|
|
53
|
+
getExportRows = () => this.attributes.export_rows
|
|
54
|
+
|
|
55
|
+
setExportRows = value => {
|
|
56
|
+
this.attributes.export_rows = value
|
|
57
|
+
}
|
|
58
|
+
|
|
40
59
|
// string # Link to download Export file.
|
|
41
60
|
getDownloadUri = () => this.attributes.download_uri
|
|
42
61
|
|
|
62
|
+
setDownloadUri = value => {
|
|
63
|
+
this.attributes.download_uri = value
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// string # Export message
|
|
67
|
+
getMessage = () => this.attributes.message
|
|
68
|
+
|
|
69
|
+
setMessage = value => {
|
|
70
|
+
this.attributes.message = value
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
|
74
|
+
getUserId = () => this.attributes.user_id
|
|
75
|
+
|
|
76
|
+
setUserId = value => {
|
|
77
|
+
this.attributes.user_id = value
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// object # If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
|
81
|
+
getSortBy = () => this.attributes.sort_by
|
|
82
|
+
|
|
83
|
+
setSortBy = value => {
|
|
84
|
+
this.attributes.sort_by = value
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// object # If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
|
88
|
+
getFilter = () => this.attributes.filter
|
|
89
|
+
|
|
90
|
+
setFilter = value => {
|
|
91
|
+
this.attributes.filter = value
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// object # If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
|
95
|
+
getFilterPrefix = () => this.attributes.filter_prefix
|
|
96
|
+
|
|
97
|
+
setFilterPrefix = value => {
|
|
98
|
+
this.attributes.filter_prefix = value
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
save = async () => {
|
|
102
|
+
if (this.attributes.id) {
|
|
103
|
+
throw new errors.NotImplementedError('The Export object doesn\'t support updates.')
|
|
104
|
+
} else {
|
|
105
|
+
const newObject = await Export.create(this.attributes, this.options)
|
|
106
|
+
this.attributes = { ...newObject.attributes }
|
|
107
|
+
return true
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
43
111
|
// Parameters:
|
|
44
112
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
45
113
|
// 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.
|
|
@@ -92,6 +160,21 @@ class Export {
|
|
|
92
160
|
|
|
93
161
|
static get = (id, params = {}, options = {}) =>
|
|
94
162
|
Export.find(id, params, options)
|
|
163
|
+
|
|
164
|
+
// Parameters:
|
|
165
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
166
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `export_status` and `export_type`.
|
|
167
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `export_status` and `export_type`.
|
|
168
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `export_type`.
|
|
169
|
+
static create = async (params = {}, options = {}) => {
|
|
170
|
+
if (params.user_id && !isInt(params.user_id)) {
|
|
171
|
+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const response = await Api.sendRequest('/exports/create_export', 'POST', params, options)
|
|
175
|
+
|
|
176
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
177
|
+
}
|
|
95
178
|
}
|
|
96
179
|
|
|
97
180
|
export default Export
|
|
@@ -208,6 +208,21 @@ class ExternalEvent {
|
|
|
208
208
|
|
|
209
209
|
return new ExternalEvent(response?.data, options)
|
|
210
210
|
}
|
|
211
|
+
|
|
212
|
+
// Parameters:
|
|
213
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
|
214
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
|
|
215
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
216
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
217
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `remote_server_type`.
|
|
218
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
219
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
220
|
+
static createExport = async (params = {}, options = {}) => {
|
|
221
|
+
const response = await Api.sendRequest('/external_events/create_export', 'POST', params, options)
|
|
222
|
+
|
|
223
|
+
const Export = require('./Export.js').default
|
|
224
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
225
|
+
}
|
|
211
226
|
}
|
|
212
227
|
|
|
213
228
|
export default ExternalEvent
|
|
@@ -73,6 +73,16 @@ class FileMigrationLog {
|
|
|
73
73
|
|
|
74
74
|
static all = (params = {}, options = {}) =>
|
|
75
75
|
FileMigrationLog.list(params, options)
|
|
76
|
+
|
|
77
|
+
// Parameters:
|
|
78
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `start_date`, `end_date`, `file_migration_id`, `operation`, `status` or `type`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, file_migration_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, file_migration_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ operation, status ]`, `[ operation, type ]`, `[ status, type ]`, `[ start_date, end_date, file_migration_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, file_migration_id, operation ]`, `[ start_date, file_migration_id, status ]`, `[ start_date, file_migration_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, status, type ]`, `[ end_date, file_migration_id, operation ]`, `[ end_date, file_migration_id, status ]`, `[ end_date, file_migration_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, status, type ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, status, type ]`, `[ operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation ]`, `[ start_date, end_date, file_migration_id, status ]`, `[ start_date, end_date, file_migration_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, file_migration_id, operation, status ]`, `[ start_date, file_migration_id, operation, type ]`, `[ start_date, file_migration_id, status, type ]`, `[ start_date, operation, status, type ]`, `[ end_date, file_migration_id, operation, status ]`, `[ end_date, file_migration_id, operation, type ]`, `[ end_date, file_migration_id, status, type ]`, `[ end_date, operation, status, type ]`, `[ file_migration_id, operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation, status ]`, `[ start_date, end_date, file_migration_id, operation, type ]`, `[ start_date, end_date, file_migration_id, status, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, file_migration_id, operation, status, type ]` or `[ end_date, file_migration_id, operation, status, type ]`.
|
|
79
|
+
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `operation` and `status`. Valid field combinations are `[ start_date ]`, `[ end_date ]`, `[ file_migration_id ]`, `[ operation ]`, `[ status ]`, `[ type ]`, `[ start_date, end_date ]`, `[ start_date, file_migration_id ]`, `[ start_date, operation ]`, `[ start_date, status ]`, `[ start_date, type ]`, `[ end_date, file_migration_id ]`, `[ end_date, operation ]`, `[ end_date, status ]`, `[ end_date, type ]`, `[ file_migration_id, operation ]`, `[ file_migration_id, status ]`, `[ file_migration_id, type ]`, `[ operation, status ]`, `[ operation, type ]`, `[ status, type ]`, `[ start_date, end_date, file_migration_id ]`, `[ start_date, end_date, operation ]`, `[ start_date, end_date, status ]`, `[ start_date, end_date, type ]`, `[ start_date, file_migration_id, operation ]`, `[ start_date, file_migration_id, status ]`, `[ start_date, file_migration_id, type ]`, `[ start_date, operation, status ]`, `[ start_date, operation, type ]`, `[ start_date, status, type ]`, `[ end_date, file_migration_id, operation ]`, `[ end_date, file_migration_id, status ]`, `[ end_date, file_migration_id, type ]`, `[ end_date, operation, status ]`, `[ end_date, operation, type ]`, `[ end_date, status, type ]`, `[ file_migration_id, operation, status ]`, `[ file_migration_id, operation, type ]`, `[ file_migration_id, status, type ]`, `[ operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation ]`, `[ start_date, end_date, file_migration_id, status ]`, `[ start_date, end_date, file_migration_id, type ]`, `[ start_date, end_date, operation, status ]`, `[ start_date, end_date, operation, type ]`, `[ start_date, end_date, status, type ]`, `[ start_date, file_migration_id, operation, status ]`, `[ start_date, file_migration_id, operation, type ]`, `[ start_date, file_migration_id, status, type ]`, `[ start_date, operation, status, type ]`, `[ end_date, file_migration_id, operation, status ]`, `[ end_date, file_migration_id, operation, type ]`, `[ end_date, file_migration_id, status, type ]`, `[ end_date, operation, status, type ]`, `[ file_migration_id, operation, status, type ]`, `[ start_date, end_date, file_migration_id, operation, status ]`, `[ start_date, end_date, file_migration_id, operation, type ]`, `[ start_date, end_date, file_migration_id, status, type ]`, `[ start_date, end_date, operation, status, type ]`, `[ start_date, file_migration_id, operation, status, type ]` or `[ end_date, file_migration_id, operation, status, type ]`.
|
|
80
|
+
static createExport = async (params = {}, options = {}) => {
|
|
81
|
+
const response = await Api.sendRequest('/file_migration_logs/create_export', 'POST', params, options)
|
|
82
|
+
|
|
83
|
+
const Export = require('./Export.js').default
|
|
84
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
85
|
+
}
|
|
76
86
|
}
|
|
77
87
|
|
|
78
88
|
export default FileMigrationLog
|
|
@@ -239,6 +239,19 @@ class FormFieldSet {
|
|
|
239
239
|
|
|
240
240
|
return new FormFieldSet(response?.data, options)
|
|
241
241
|
}
|
|
242
|
+
|
|
243
|
+
// Parameters:
|
|
244
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
245
|
+
static createExport = async (params = {}, options = {}) => {
|
|
246
|
+
if (params.user_id && !isInt(params.user_id)) {
|
|
247
|
+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const response = await Api.sendRequest('/form_field_sets/create_export', 'POST', params, options)
|
|
251
|
+
|
|
252
|
+
const Export = require('./Export.js').default
|
|
253
|
+
return response?.data?.map(obj => new Export(obj, options)) || []
|
|
254
|
+
}
|
|
242
255
|
}
|
|
243
256
|
|
|
244
257
|
export default FormFieldSet
|