files.com 1.0.221 → 1.0.223
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/Bundle.md +14 -0
- package/lib/Api.js +15 -82
- package/lib/Errors.js +9 -962
- package/lib/Files.js +0 -11
- package/lib/Logger.js +0 -24
- package/lib/index.js +0 -5
- package/lib/isomorphic/File.node.js +0 -19
- package/lib/models/AccountLineItem.js +3 -21
- package/lib/models/Action.js +3 -21
- package/lib/models/ActionNotificationExport.js +9 -61
- package/lib/models/ActionNotificationExportResult.js +6 -40
- package/lib/models/ActionWebhookFailure.js +5 -39
- package/lib/models/ApiKey.js +23 -128
- package/lib/models/App.js +6 -34
- package/lib/models/As2IncomingMessage.js +6 -36
- package/lib/models/As2OutgoingMessage.js +6 -36
- package/lib/models/As2Partner.js +16 -112
- package/lib/models/As2Station.js +16 -108
- package/lib/models/Auto.js +3 -21
- package/lib/models/Automation.js +16 -146
- package/lib/models/AutomationRun.js +9 -54
- package/lib/models/BandwidthSnapshot.js +6 -34
- package/lib/models/Behavior.js +22 -151
- package/lib/models/Bundle.js +61 -177
- package/lib/models/BundleDownload.js +6 -38
- package/lib/models/BundleRecipient.js +9 -62
- package/lib/models/BundleRegistration.js +6 -38
- package/lib/models/Clickwrap.js +16 -106
- package/lib/models/DnsRecord.js +6 -34
- package/lib/models/Errors.js +3 -21
- package/lib/models/ExternalEvent.js +12 -62
- package/lib/models/File.js +21 -271
- package/lib/models/FileAction.js +3 -21
- package/lib/models/FileComment.js +13 -94
- package/lib/models/FileCommentReaction.js +8 -55
- package/lib/models/FileMigration.js +6 -37
- package/lib/models/FileUploadPart.js +3 -21
- package/lib/models/Folder.js +9 -63
- package/lib/models/FormField.js +3 -21
- package/lib/models/FormFieldSet.js +16 -98
- package/lib/models/Group.js +16 -104
- package/lib/models/GroupUser.js +13 -108
- package/lib/models/History.js +18 -132
- package/lib/models/HistoryExport.js +9 -87
- package/lib/models/HistoryExportResult.js +6 -40
- package/lib/models/Image.js +3 -21
- package/lib/models/InboxRecipient.js +9 -62
- package/lib/models/InboxRegistration.js +6 -36
- package/lib/models/InboxUpload.js +6 -38
- package/lib/models/Invoice.js +9 -48
- package/lib/models/InvoiceLineItem.js +3 -21
- package/lib/models/IpAddress.js +9 -45
- package/lib/models/Lock.js +11 -82
- package/lib/models/Message.js +16 -124
- package/lib/models/MessageComment.js +16 -104
- package/lib/models/MessageCommentReaction.js +14 -82
- package/lib/models/MessageReaction.js +14 -82
- package/lib/models/Notification.js +16 -120
- package/lib/models/Payment.js +9 -48
- package/lib/models/PaymentLineItem.js +3 -21
- package/lib/models/Permission.js +11 -72
- package/lib/models/Preview.js +3 -21
- package/lib/models/Priority.js +6 -42
- package/lib/models/Project.js +16 -96
- package/lib/models/PublicIpAddress.js +3 -21
- package/lib/models/PublicKey.js +16 -104
- package/lib/models/RemoteBandwidthSnapshot.js +6 -34
- package/lib/models/RemoteServer.js +16 -270
- package/lib/models/Request.js +14 -89
- package/lib/models/Session.js +8 -41
- package/lib/models/SettingsChange.js +6 -34
- package/lib/models/SftpHostKey.js +16 -94
- package/lib/models/Site.js +10 -157
- package/lib/models/SsoStrategy.js +11 -64
- package/lib/models/Status.js +3 -21
- package/lib/models/Style.js +10 -73
- package/lib/models/UsageDailySnapshot.js +6 -34
- package/lib/models/UsageSnapshot.js +6 -34
- package/lib/models/User.js +22 -238
- package/lib/models/UserCipherUse.js +6 -36
- package/lib/models/UserRequest.js +14 -82
- package/lib/models/WebhookTest.js +6 -43
- package/lib/utils.js +0 -16
- package/package.json +1 -1
- package/src/models/Bundle.js +25 -0
    
        package/src/models/Bundle.js
    CHANGED
    
    | @@ -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 | 
             
                }
         |