files.com 1.0.235 → 1.0.237
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +9 -2
- package/docs/models/BundleNotification.md +35 -0
- package/docs/models/BundleRegistration.md +3 -1
- package/docs/models/InboxRegistration.md +3 -1
- package/docs/models/Site.md +2 -0
- package/lib/Api.js +153 -159
- package/lib/isomorphic/File.node.js +24 -28
- package/lib/models/ActionNotificationExport.js +97 -101
- package/lib/models/ActionNotificationExportResult.js +44 -46
- package/lib/models/ActionWebhookFailure.js +42 -44
- package/lib/models/ApiKey.js +271 -287
- package/lib/models/App.js +26 -28
- package/lib/models/As2IncomingMessage.js +32 -34
- package/lib/models/As2OutgoingMessage.js +32 -34
- package/lib/models/As2Partner.js +231 -241
- package/lib/models/As2Station.js +219 -229
- package/lib/models/Automation.js +333 -343
- package/lib/models/AutomationRun.js +75 -79
- package/lib/models/BandwidthSnapshot.js +26 -28
- package/lib/models/Behavior.js +323 -337
- package/lib/models/Bundle.js +381 -387
- package/lib/models/BundleDownload.js +38 -40
- package/lib/models/BundleNotification.js +223 -173
- package/lib/models/BundleRecipient.js +104 -108
- package/lib/models/BundleRegistration.js +41 -40
- package/lib/models/Clickwrap.js +213 -223
- package/lib/models/DnsRecord.js +26 -28
- package/lib/models/ExternalEvent.js +93 -99
- package/lib/models/File.js +726 -766
- package/lib/models/FileComment.js +180 -188
- package/lib/models/FileCommentReaction.js +84 -88
- package/lib/models/FileMigration.js +31 -33
- package/lib/models/Folder.js +94 -98
- package/lib/models/FormFieldSet.js +189 -199
- package/lib/models/Group.js +207 -217
- package/lib/models/GroupUser.js +230 -238
- package/lib/models/History.js +266 -276
- package/lib/models/HistoryExport.js +175 -179
- package/lib/models/HistoryExportResult.js +44 -46
- package/lib/models/InboxRecipient.js +104 -108
- package/lib/models/InboxRegistration.js +35 -34
- package/lib/models/InboxUpload.js +38 -40
- package/lib/models/Invoice.js +57 -61
- package/lib/models/IpAddress.js +78 -84
- package/lib/models/Lock.js +148 -154
- package/lib/models/Message.js +267 -277
- package/lib/models/MessageComment.js +207 -217
- package/lib/models/MessageCommentReaction.js +147 -155
- package/lib/models/MessageReaction.js +147 -155
- package/lib/models/Notification.js +255 -265
- package/lib/models/Payment.js +57 -61
- package/lib/models/Permission.js +128 -134
- package/lib/models/Priority.js +45 -47
- package/lib/models/Project.js +183 -193
- package/lib/models/PublicKey.js +207 -217
- package/lib/models/RemoteBandwidthSnapshot.js +26 -28
- package/lib/models/RemoteServer.js +805 -819
- package/lib/models/Request.js +166 -174
- package/lib/models/Session.js +47 -51
- package/lib/models/SettingsChange.js +26 -28
- package/lib/models/SftpHostKey.js +177 -187
- package/lib/models/Site.js +415 -418
- package/lib/models/SsoStrategy.js +99 -105
- package/lib/models/Style.js +127 -133
- package/lib/models/UsageDailySnapshot.js +26 -28
- package/lib/models/UsageSnapshot.js +26 -28
- package/lib/models/User.js +587 -603
- package/lib/models/UserCipherUse.js +32 -34
- package/lib/models/UserRequest.js +147 -155
- package/lib/models/WebhookTest.js +54 -56
- package/package.json +1 -1
- package/src/models/Bundle.js +10 -1
- package/src/models/BundleNotification.js +39 -1
- package/src/models/BundleRegistration.js +3 -0
- package/src/models/InboxRegistration.js +3 -0
- package/src/models/Site.js +3 -0
@@ -44,6 +44,13 @@ class BundleNotification {
|
|
44
44
|
this.attributes.notify_on_registration = value
|
45
45
|
}
|
46
46
|
|
47
|
+
// boolean # Triggers bundle notification when a upload action occurs for it.
|
48
|
+
getNotifyOnUpload = () => this.attributes.notify_on_upload
|
49
|
+
|
50
|
+
setNotifyOnUpload = value => {
|
51
|
+
this.attributes.notify_on_upload = value
|
52
|
+
}
|
53
|
+
|
47
54
|
// int64 # The id of the user to notify.
|
48
55
|
getUserId = () => this.attributes.user_id
|
49
56
|
|
@@ -52,6 +59,36 @@ class BundleNotification {
|
|
52
59
|
}
|
53
60
|
|
54
61
|
|
62
|
+
// Parameters:
|
63
|
+
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
64
|
+
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
65
|
+
update = async (params = {}) => {
|
66
|
+
if (!this.attributes.id) {
|
67
|
+
throw new errors.EmptyPropertyError('Current object has no id')
|
68
|
+
}
|
69
|
+
|
70
|
+
if (!isObject(params)) {
|
71
|
+
throw new errors.InvalidParameterError(`Bad parameter: params must be of type object, received ${getType(params)}`)
|
72
|
+
}
|
73
|
+
|
74
|
+
params.id = this.attributes.id
|
75
|
+
if (params['id'] && !isInt(params['id'])) {
|
76
|
+
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
|
77
|
+
}
|
78
|
+
|
79
|
+
if (!params['id']) {
|
80
|
+
if (this.attributes.id) {
|
81
|
+
params['id'] = this.id
|
82
|
+
} else {
|
83
|
+
throw new errors.MissingParameterError('Parameter missing: id')
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
const response = await Api.sendRequest(`/bundle_notifications/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
88
|
+
|
89
|
+
return new BundleNotification(response?.data, this.options)
|
90
|
+
}
|
91
|
+
|
55
92
|
delete = async (params = {}) => {
|
56
93
|
if (!this.attributes.id) {
|
57
94
|
throw new errors.EmptyPropertyError('Current object has no id')
|
@@ -84,7 +121,7 @@ class BundleNotification {
|
|
84
121
|
|
85
122
|
save = () => {
|
86
123
|
if (this.attributes['id']) {
|
87
|
-
|
124
|
+
return this.update(this.attributes)
|
88
125
|
} else {
|
89
126
|
const newObject = BundleNotification.create(this.attributes, this.options)
|
90
127
|
this.attributes = { ...newObject.attributes }
|
@@ -150,6 +187,7 @@ class BundleNotification {
|
|
150
187
|
// Parameters:
|
151
188
|
// user_id (required) - int64 - The id of the user to notify.
|
152
189
|
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
190
|
+
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
153
191
|
// bundle_id (required) - int64 - Bundle ID to notify on
|
154
192
|
static create = async (params = {}, options = {}) => {
|
155
193
|
if (!params['user_id']) {
|
@@ -59,6 +59,9 @@ class BundleRegistration {
|
|
59
59
|
// int64 # Id of associated bundle recipient
|
60
60
|
getBundleRecipientId = () => this.attributes.bundle_recipient_id
|
61
61
|
|
62
|
+
// date-time # Registration creation date/time
|
63
|
+
getCreatedAt = () => this.attributes.created_at
|
64
|
+
|
62
65
|
|
63
66
|
// Parameters:
|
64
67
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
@@ -53,6 +53,9 @@ class InboxRegistration {
|
|
53
53
|
// string # Title of associated inbox
|
54
54
|
getInboxTitle = () => this.attributes.inbox_title
|
55
55
|
|
56
|
+
// date-time # Registration creation date/time
|
57
|
+
getCreatedAt = () => this.attributes.created_at
|
58
|
+
|
56
59
|
|
57
60
|
// Parameters:
|
58
61
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
package/src/models/Site.js
CHANGED
@@ -377,6 +377,9 @@ class Site {
|
|
377
377
|
// double # Session expiry in hours
|
378
378
|
getSessionExpiry = () => this.attributes.session_expiry
|
379
379
|
|
380
|
+
// int64 # Session expiry in minutes
|
381
|
+
getSessionExpiryMinutes = () => this.attributes.session_expiry_minutes
|
382
|
+
|
380
383
|
// boolean # Is SSL required? Disabling this is insecure.
|
381
384
|
getSslRequired = () => this.attributes.ssl_required
|
382
385
|
|