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.
Files changed (77) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +9 -2
  3. package/docs/models/BundleNotification.md +35 -0
  4. package/docs/models/BundleRegistration.md +3 -1
  5. package/docs/models/InboxRegistration.md +3 -1
  6. package/docs/models/Site.md +2 -0
  7. package/lib/Api.js +153 -159
  8. package/lib/isomorphic/File.node.js +24 -28
  9. package/lib/models/ActionNotificationExport.js +97 -101
  10. package/lib/models/ActionNotificationExportResult.js +44 -46
  11. package/lib/models/ActionWebhookFailure.js +42 -44
  12. package/lib/models/ApiKey.js +271 -287
  13. package/lib/models/App.js +26 -28
  14. package/lib/models/As2IncomingMessage.js +32 -34
  15. package/lib/models/As2OutgoingMessage.js +32 -34
  16. package/lib/models/As2Partner.js +231 -241
  17. package/lib/models/As2Station.js +219 -229
  18. package/lib/models/Automation.js +333 -343
  19. package/lib/models/AutomationRun.js +75 -79
  20. package/lib/models/BandwidthSnapshot.js +26 -28
  21. package/lib/models/Behavior.js +323 -337
  22. package/lib/models/Bundle.js +381 -387
  23. package/lib/models/BundleDownload.js +38 -40
  24. package/lib/models/BundleNotification.js +223 -173
  25. package/lib/models/BundleRecipient.js +104 -108
  26. package/lib/models/BundleRegistration.js +41 -40
  27. package/lib/models/Clickwrap.js +213 -223
  28. package/lib/models/DnsRecord.js +26 -28
  29. package/lib/models/ExternalEvent.js +93 -99
  30. package/lib/models/File.js +726 -766
  31. package/lib/models/FileComment.js +180 -188
  32. package/lib/models/FileCommentReaction.js +84 -88
  33. package/lib/models/FileMigration.js +31 -33
  34. package/lib/models/Folder.js +94 -98
  35. package/lib/models/FormFieldSet.js +189 -199
  36. package/lib/models/Group.js +207 -217
  37. package/lib/models/GroupUser.js +230 -238
  38. package/lib/models/History.js +266 -276
  39. package/lib/models/HistoryExport.js +175 -179
  40. package/lib/models/HistoryExportResult.js +44 -46
  41. package/lib/models/InboxRecipient.js +104 -108
  42. package/lib/models/InboxRegistration.js +35 -34
  43. package/lib/models/InboxUpload.js +38 -40
  44. package/lib/models/Invoice.js +57 -61
  45. package/lib/models/IpAddress.js +78 -84
  46. package/lib/models/Lock.js +148 -154
  47. package/lib/models/Message.js +267 -277
  48. package/lib/models/MessageComment.js +207 -217
  49. package/lib/models/MessageCommentReaction.js +147 -155
  50. package/lib/models/MessageReaction.js +147 -155
  51. package/lib/models/Notification.js +255 -265
  52. package/lib/models/Payment.js +57 -61
  53. package/lib/models/Permission.js +128 -134
  54. package/lib/models/Priority.js +45 -47
  55. package/lib/models/Project.js +183 -193
  56. package/lib/models/PublicKey.js +207 -217
  57. package/lib/models/RemoteBandwidthSnapshot.js +26 -28
  58. package/lib/models/RemoteServer.js +805 -819
  59. package/lib/models/Request.js +166 -174
  60. package/lib/models/Session.js +47 -51
  61. package/lib/models/SettingsChange.js +26 -28
  62. package/lib/models/SftpHostKey.js +177 -187
  63. package/lib/models/Site.js +415 -418
  64. package/lib/models/SsoStrategy.js +99 -105
  65. package/lib/models/Style.js +127 -133
  66. package/lib/models/UsageDailySnapshot.js +26 -28
  67. package/lib/models/UsageSnapshot.js +26 -28
  68. package/lib/models/User.js +587 -603
  69. package/lib/models/UserCipherUse.js +32 -34
  70. package/lib/models/UserRequest.js +147 -155
  71. package/lib/models/WebhookTest.js +54 -56
  72. package/package.json +1 -1
  73. package/src/models/Bundle.js +10 -1
  74. package/src/models/BundleNotification.js +39 -1
  75. package/src/models/BundleRegistration.js +3 -0
  76. package/src/models/InboxRegistration.js +3 -0
  77. 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
- throw new errors.NotImplementedError('The BundleNotification object doesn\'t support updates.')
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.
@@ -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