files.com 1.0.221 → 1.0.223

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +14 -0
  3. package/lib/Api.js +15 -82
  4. package/lib/Errors.js +9 -962
  5. package/lib/Files.js +0 -11
  6. package/lib/Logger.js +0 -24
  7. package/lib/index.js +0 -5
  8. package/lib/isomorphic/File.node.js +0 -19
  9. package/lib/models/AccountLineItem.js +3 -21
  10. package/lib/models/Action.js +3 -21
  11. package/lib/models/ActionNotificationExport.js +9 -61
  12. package/lib/models/ActionNotificationExportResult.js +6 -40
  13. package/lib/models/ActionWebhookFailure.js +5 -39
  14. package/lib/models/ApiKey.js +23 -128
  15. package/lib/models/App.js +6 -34
  16. package/lib/models/As2IncomingMessage.js +6 -36
  17. package/lib/models/As2OutgoingMessage.js +6 -36
  18. package/lib/models/As2Partner.js +16 -112
  19. package/lib/models/As2Station.js +16 -108
  20. package/lib/models/Auto.js +3 -21
  21. package/lib/models/Automation.js +16 -146
  22. package/lib/models/AutomationRun.js +9 -54
  23. package/lib/models/BandwidthSnapshot.js +6 -34
  24. package/lib/models/Behavior.js +22 -151
  25. package/lib/models/Bundle.js +61 -177
  26. package/lib/models/BundleDownload.js +6 -38
  27. package/lib/models/BundleRecipient.js +9 -62
  28. package/lib/models/BundleRegistration.js +6 -38
  29. package/lib/models/Clickwrap.js +16 -106
  30. package/lib/models/DnsRecord.js +6 -34
  31. package/lib/models/Errors.js +3 -21
  32. package/lib/models/ExternalEvent.js +12 -62
  33. package/lib/models/File.js +21 -271
  34. package/lib/models/FileAction.js +3 -21
  35. package/lib/models/FileComment.js +13 -94
  36. package/lib/models/FileCommentReaction.js +8 -55
  37. package/lib/models/FileMigration.js +6 -37
  38. package/lib/models/FileUploadPart.js +3 -21
  39. package/lib/models/Folder.js +9 -63
  40. package/lib/models/FormField.js +3 -21
  41. package/lib/models/FormFieldSet.js +16 -98
  42. package/lib/models/Group.js +16 -104
  43. package/lib/models/GroupUser.js +13 -108
  44. package/lib/models/History.js +18 -132
  45. package/lib/models/HistoryExport.js +9 -87
  46. package/lib/models/HistoryExportResult.js +6 -40
  47. package/lib/models/Image.js +3 -21
  48. package/lib/models/InboxRecipient.js +9 -62
  49. package/lib/models/InboxRegistration.js +6 -36
  50. package/lib/models/InboxUpload.js +6 -38
  51. package/lib/models/Invoice.js +9 -48
  52. package/lib/models/InvoiceLineItem.js +3 -21
  53. package/lib/models/IpAddress.js +9 -45
  54. package/lib/models/Lock.js +11 -82
  55. package/lib/models/Message.js +16 -124
  56. package/lib/models/MessageComment.js +16 -104
  57. package/lib/models/MessageCommentReaction.js +14 -82
  58. package/lib/models/MessageReaction.js +14 -82
  59. package/lib/models/Notification.js +16 -120
  60. package/lib/models/Payment.js +9 -48
  61. package/lib/models/PaymentLineItem.js +3 -21
  62. package/lib/models/Permission.js +11 -72
  63. package/lib/models/Preview.js +3 -21
  64. package/lib/models/Priority.js +6 -42
  65. package/lib/models/Project.js +16 -96
  66. package/lib/models/PublicIpAddress.js +3 -21
  67. package/lib/models/PublicKey.js +16 -104
  68. package/lib/models/RemoteBandwidthSnapshot.js +6 -34
  69. package/lib/models/RemoteServer.js +16 -270
  70. package/lib/models/Request.js +14 -89
  71. package/lib/models/Session.js +8 -41
  72. package/lib/models/SettingsChange.js +6 -34
  73. package/lib/models/SftpHostKey.js +16 -94
  74. package/lib/models/Site.js +10 -157
  75. package/lib/models/SsoStrategy.js +11 -64
  76. package/lib/models/Status.js +3 -21
  77. package/lib/models/Style.js +10 -73
  78. package/lib/models/UsageDailySnapshot.js +6 -34
  79. package/lib/models/UsageSnapshot.js +6 -34
  80. package/lib/models/User.js +22 -238
  81. package/lib/models/UserCipherUse.js +6 -36
  82. package/lib/models/UserRequest.js +14 -82
  83. package/lib/models/WebhookTest.js +6 -43
  84. package/lib/utils.js +0 -16
  85. package/package.json +1 -1
  86. package/src/models/Bundle.js +25 -0
@@ -124,6 +124,13 @@ class Bundle {
124
124
  // date-time # Bundle created at date/time
125
125
  getCreatedAt = () => this.attributes.created_at
126
126
 
127
+ // boolean # Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
128
+ getDontSeparateSubmissionsByFolder = () => this.attributes.dont_separate_submissions_by_folder
129
+
130
+ setDontSeparateSubmissionsByFolder = value => {
131
+ this.attributes.dont_separate_submissions_by_folder = value
132
+ }
133
+
127
134
  // date-time # Bundle expiration date/time
128
135
  getExpiresAt = () => this.attributes.expires_at
129
136
 
@@ -145,6 +152,13 @@ class Bundle {
145
152
  this.attributes.note = value
146
153
  }
147
154
 
155
+ // string # Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
156
+ getPathTemplate = () => this.attributes.path_template
157
+
158
+ setPathTemplate = value => {
159
+ this.attributes.path_template = value
160
+ }
161
+
148
162
  // int64 # Bundle creator user ID
149
163
  getUserId = () => this.attributes.user_id
150
164
 
@@ -279,10 +293,12 @@ class Bundle {
279
293
  // clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
280
294
  // code - string - Bundle code. This code forms the end part of the Public URL.
281
295
  // description - string - Public description
296
+ // dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
282
297
  // expires_at - string - Bundle expiration date/time
283
298
  // inbox_id - int64 - ID of the associated inbox, if available.
284
299
  // max_uses - int64 - Maximum number of times bundle can be accessed
285
300
  // note - string - Bundle internal note
301
+ // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
286
302
  // permissions - string - Permissions that apply to Folders in this Share Link.
287
303
  // preview_only - boolean - Restrict users to previewing files only?
288
304
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
@@ -335,6 +351,9 @@ class Bundle {
335
351
  if (params['note'] && !isString(params['note'])) {
336
352
  throw new errors.InvalidParameterError(`Bad parameter: note must be of type String, received ${getType(note)}`)
337
353
  }
354
+ if (params['path_template'] && !isString(params['path_template'])) {
355
+ throw new errors.InvalidParameterError(`Bad parameter: path_template must be of type String, received ${getType(path_template)}`)
356
+ }
338
357
  if (params['permissions'] && !isString(params['permissions'])) {
339
358
  throw new errors.InvalidParameterError(`Bad parameter: permissions must be of type String, received ${getType(permissions)}`)
340
359
  }
@@ -454,11 +473,13 @@ class Bundle {
454
473
  // paths (required) - array(string) - A list of paths to include in this bundle.
455
474
  // password - string - Password for this bundle.
456
475
  // form_field_set_id - int64 - Id of Form Field Set to use with this bundle
476
+ // dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
457
477
  // expires_at - string - Bundle expiration date/time
458
478
  // max_uses - int64 - Maximum number of times bundle can be accessed
459
479
  // description - string - Public description
460
480
  // note - string - Bundle internal note
461
481
  // code - string - Bundle code. This code forms the end part of the Public URL.
482
+ // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
462
483
  // permissions - string - Permissions that apply to Folders in this Share Link.
463
484
  // preview_only - boolean - Restrict users to previewing files only?
464
485
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
@@ -510,6 +531,10 @@ class Bundle {
510
531
  throw new errors.InvalidParameterError(`Bad parameter: code must be of type String, received ${getType(params['code'])}`)
511
532
  }
512
533
 
534
+ if (params['path_template'] && !isString(params['path_template'])) {
535
+ throw new errors.InvalidParameterError(`Bad parameter: path_template must be of type String, received ${getType(params['path_template'])}`)
536
+ }
537
+
513
538
  if (params['permissions'] && !isString(params['permissions'])) {
514
539
  throw new errors.InvalidParameterError(`Bad parameter: permissions must be of type String, received ${getType(params['permissions'])}`)
515
540
  }