files.com 1.0.236 → 1.0.238
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/Errors.md +1 -0
 - package/docs/models/BundleNotification.md +35 -0
 - package/lib/Api.js +153 -159
 - package/lib/Errors.js +680 -666
 - 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 +375 -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 +38 -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 +32 -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 +412 -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/Errors.js +1 -0
 - package/src/models/BundleNotification.js +39 -1
 
    
        package/lib/models/App.js
    CHANGED
    
    | 
         @@ -99,34 +99,32 @@ var App = /*#__PURE__*/(0, _createClass2.default)(function App() { 
     | 
|
| 
       99 
99 
     | 
    
         
             
                response,
         
     | 
| 
       100 
100 
     | 
    
         
             
                _args = arguments;
         
     | 
| 
       101 
101 
     | 
    
         
             
              return _regenerator.default.wrap(function _callee$(_context) {
         
     | 
| 
       102 
     | 
    
         
            -
                while (1) {
         
     | 
| 
       103 
     | 
    
         
            -
                   
     | 
| 
       104 
     | 
    
         
            -
                     
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
             
     | 
| 
       107 
     | 
    
         
            -
                       
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
                     
     | 
| 
       113 
     | 
    
         
            -
                       
     | 
| 
       114 
     | 
    
         
            -
             
     | 
| 
       115 
     | 
    
         
            -
             
     | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
       118 
     | 
    
         
            -
                     
     | 
| 
       119 
     | 
    
         
            -
             
     | 
| 
       120 
     | 
    
         
            -
             
     | 
| 
       121 
     | 
    
         
            -
                     
     | 
| 
       122 
     | 
    
         
            -
             
     | 
| 
       123 
     | 
    
         
            -
                      return  
     | 
| 
       124 
     | 
    
         
            -
             
     | 
| 
       125 
     | 
    
         
            -
             
     | 
| 
       126 
     | 
    
         
            -
             
     | 
| 
       127 
     | 
    
         
            -
                     
     | 
| 
       128 
     | 
    
         
            -
                      return _context.stop();
         
     | 
| 
       129 
     | 
    
         
            -
                  }
         
     | 
| 
      
 102 
     | 
    
         
            +
                while (1) switch (_context.prev = _context.next) {
         
     | 
| 
      
 103 
     | 
    
         
            +
                  case 0:
         
     | 
| 
      
 104 
     | 
    
         
            +
                    params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
         
     | 
| 
      
 105 
     | 
    
         
            +
                    options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
         
     | 
| 
      
 106 
     | 
    
         
            +
                    if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
         
     | 
| 
      
 107 
     | 
    
         
            +
                      _context.next = 4;
         
     | 
| 
      
 108 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 109 
     | 
    
         
            +
                    }
         
     | 
| 
      
 110 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
         
     | 
| 
      
 111 
     | 
    
         
            +
                  case 4:
         
     | 
| 
      
 112 
     | 
    
         
            +
                    if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
         
     | 
| 
      
 113 
     | 
    
         
            +
                      _context.next = 6;
         
     | 
| 
      
 114 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 115 
     | 
    
         
            +
                    }
         
     | 
| 
      
 116 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
         
     | 
| 
      
 117 
     | 
    
         
            +
                  case 6:
         
     | 
| 
      
 118 
     | 
    
         
            +
                    _context.next = 8;
         
     | 
| 
      
 119 
     | 
    
         
            +
                    return _Api.default.sendRequest("/apps", 'GET', params, options);
         
     | 
| 
      
 120 
     | 
    
         
            +
                  case 8:
         
     | 
| 
      
 121 
     | 
    
         
            +
                    response = _context.sent;
         
     | 
| 
      
 122 
     | 
    
         
            +
                    return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
         
     | 
| 
      
 123 
     | 
    
         
            +
                      return new App(obj, options);
         
     | 
| 
      
 124 
     | 
    
         
            +
                    })) || []);
         
     | 
| 
      
 125 
     | 
    
         
            +
                  case 10:
         
     | 
| 
      
 126 
     | 
    
         
            +
                  case "end":
         
     | 
| 
      
 127 
     | 
    
         
            +
                    return _context.stop();
         
     | 
| 
       130 
128 
     | 
    
         
             
                }
         
     | 
| 
       131 
129 
     | 
    
         
             
              }, _callee);
         
     | 
| 
       132 
130 
     | 
    
         
             
            })));
         
     | 
| 
         @@ -156,40 +156,38 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc 
     | 
|
| 
       156 
156 
     | 
    
         
             
                response,
         
     | 
| 
       157 
157 
     | 
    
         
             
                _args = arguments;
         
     | 
| 
       158 
158 
     | 
    
         
             
              return _regenerator.default.wrap(function _callee$(_context) {
         
     | 
| 
       159 
     | 
    
         
            -
                while (1) {
         
     | 
| 
       160 
     | 
    
         
            -
                   
     | 
| 
       161 
     | 
    
         
            -
                     
     | 
| 
       162 
     | 
    
         
            -
             
     | 
| 
       163 
     | 
    
         
            -
             
     | 
| 
       164 
     | 
    
         
            -
                       
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
       169 
     | 
    
         
            -
                     
     | 
| 
       170 
     | 
    
         
            -
                       
     | 
| 
       171 
     | 
    
         
            -
             
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
             
     | 
| 
       175 
     | 
    
         
            -
                     
     | 
| 
       176 
     | 
    
         
            -
                       
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
             
     | 
| 
       181 
     | 
    
         
            -
                     
     | 
| 
       182 
     | 
    
         
            -
             
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
     | 
    
         
            -
                     
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
       186 
     | 
    
         
            -
                      return  
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
       189 
     | 
    
         
            -
             
     | 
| 
       190 
     | 
    
         
            -
                     
     | 
| 
       191 
     | 
    
         
            -
                      return _context.stop();
         
     | 
| 
       192 
     | 
    
         
            -
                  }
         
     | 
| 
      
 159 
     | 
    
         
            +
                while (1) switch (_context.prev = _context.next) {
         
     | 
| 
      
 160 
     | 
    
         
            +
                  case 0:
         
     | 
| 
      
 161 
     | 
    
         
            +
                    params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
         
     | 
| 
      
 162 
     | 
    
         
            +
                    options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
         
     | 
| 
      
 163 
     | 
    
         
            +
                    if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
         
     | 
| 
      
 164 
     | 
    
         
            +
                      _context.next = 4;
         
     | 
| 
      
 165 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 166 
     | 
    
         
            +
                    }
         
     | 
| 
      
 167 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
         
     | 
| 
      
 168 
     | 
    
         
            +
                  case 4:
         
     | 
| 
      
 169 
     | 
    
         
            +
                    if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
         
     | 
| 
      
 170 
     | 
    
         
            +
                      _context.next = 6;
         
     | 
| 
      
 171 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 172 
     | 
    
         
            +
                    }
         
     | 
| 
      
 173 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
         
     | 
| 
      
 174 
     | 
    
         
            +
                  case 6:
         
     | 
| 
      
 175 
     | 
    
         
            +
                    if (!(params['as2_partner_id'] && !(0, _utils.isInt)(params['as2_partner_id']))) {
         
     | 
| 
      
 176 
     | 
    
         
            +
                      _context.next = 8;
         
     | 
| 
      
 177 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 178 
     | 
    
         
            +
                    }
         
     | 
| 
      
 179 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params['as2_partner_id'])));
         
     | 
| 
      
 180 
     | 
    
         
            +
                  case 8:
         
     | 
| 
      
 181 
     | 
    
         
            +
                    _context.next = 10;
         
     | 
| 
      
 182 
     | 
    
         
            +
                    return _Api.default.sendRequest("/as2_incoming_messages", 'GET', params, options);
         
     | 
| 
      
 183 
     | 
    
         
            +
                  case 10:
         
     | 
| 
      
 184 
     | 
    
         
            +
                    response = _context.sent;
         
     | 
| 
      
 185 
     | 
    
         
            +
                    return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
         
     | 
| 
      
 186 
     | 
    
         
            +
                      return new As2IncomingMessage(obj, options);
         
     | 
| 
      
 187 
     | 
    
         
            +
                    })) || []);
         
     | 
| 
      
 188 
     | 
    
         
            +
                  case 12:
         
     | 
| 
      
 189 
     | 
    
         
            +
                  case "end":
         
     | 
| 
      
 190 
     | 
    
         
            +
                    return _context.stop();
         
     | 
| 
       193 
191 
     | 
    
         
             
                }
         
     | 
| 
       194 
192 
     | 
    
         
             
              }, _callee);
         
     | 
| 
       195 
193 
     | 
    
         
             
            })));
         
     | 
| 
         @@ -144,40 +144,38 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out 
     | 
|
| 
       144 
144 
     | 
    
         
             
                response,
         
     | 
| 
       145 
145 
     | 
    
         
             
                _args = arguments;
         
     | 
| 
       146 
146 
     | 
    
         
             
              return _regenerator.default.wrap(function _callee$(_context) {
         
     | 
| 
       147 
     | 
    
         
            -
                while (1) {
         
     | 
| 
       148 
     | 
    
         
            -
                   
     | 
| 
       149 
     | 
    
         
            -
                     
     | 
| 
       150 
     | 
    
         
            -
             
     | 
| 
       151 
     | 
    
         
            -
             
     | 
| 
       152 
     | 
    
         
            -
                       
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
                     
     | 
| 
       158 
     | 
    
         
            -
                       
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
             
     | 
| 
       163 
     | 
    
         
            -
                     
     | 
| 
       164 
     | 
    
         
            -
                       
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
       166 
     | 
    
         
            -
             
     | 
| 
       167 
     | 
    
         
            -
             
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
       169 
     | 
    
         
            -
                     
     | 
| 
       170 
     | 
    
         
            -
             
     | 
| 
       171 
     | 
    
         
            -
             
     | 
| 
       172 
     | 
    
         
            -
                     
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
                      return  
     | 
| 
       175 
     | 
    
         
            -
             
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
                     
     | 
| 
       179 
     | 
    
         
            -
                      return _context.stop();
         
     | 
| 
       180 
     | 
    
         
            -
                  }
         
     | 
| 
      
 147 
     | 
    
         
            +
                while (1) switch (_context.prev = _context.next) {
         
     | 
| 
      
 148 
     | 
    
         
            +
                  case 0:
         
     | 
| 
      
 149 
     | 
    
         
            +
                    params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
         
     | 
| 
      
 150 
     | 
    
         
            +
                    options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
         
     | 
| 
      
 151 
     | 
    
         
            +
                    if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
         
     | 
| 
      
 152 
     | 
    
         
            +
                      _context.next = 4;
         
     | 
| 
      
 153 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 154 
     | 
    
         
            +
                    }
         
     | 
| 
      
 155 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
         
     | 
| 
      
 156 
     | 
    
         
            +
                  case 4:
         
     | 
| 
      
 157 
     | 
    
         
            +
                    if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
         
     | 
| 
      
 158 
     | 
    
         
            +
                      _context.next = 6;
         
     | 
| 
      
 159 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 160 
     | 
    
         
            +
                    }
         
     | 
| 
      
 161 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
         
     | 
| 
      
 162 
     | 
    
         
            +
                  case 6:
         
     | 
| 
      
 163 
     | 
    
         
            +
                    if (!(params['as2_partner_id'] && !(0, _utils.isInt)(params['as2_partner_id']))) {
         
     | 
| 
      
 164 
     | 
    
         
            +
                      _context.next = 8;
         
     | 
| 
      
 165 
     | 
    
         
            +
                      break;
         
     | 
| 
      
 166 
     | 
    
         
            +
                    }
         
     | 
| 
      
 167 
     | 
    
         
            +
                    throw new errors.InvalidParameterError("Bad parameter: as2_partner_id must be of type Int, received ".concat((0, _utils.getType)(params['as2_partner_id'])));
         
     | 
| 
      
 168 
     | 
    
         
            +
                  case 8:
         
     | 
| 
      
 169 
     | 
    
         
            +
                    _context.next = 10;
         
     | 
| 
      
 170 
     | 
    
         
            +
                    return _Api.default.sendRequest("/as2_outgoing_messages", 'GET', params, options);
         
     | 
| 
      
 171 
     | 
    
         
            +
                  case 10:
         
     | 
| 
      
 172 
     | 
    
         
            +
                    response = _context.sent;
         
     | 
| 
      
 173 
     | 
    
         
            +
                    return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
         
     | 
| 
      
 174 
     | 
    
         
            +
                      return new As2OutgoingMessage(obj, options);
         
     | 
| 
      
 175 
     | 
    
         
            +
                    })) || []);
         
     | 
| 
      
 176 
     | 
    
         
            +
                  case 12:
         
     | 
| 
      
 177 
     | 
    
         
            +
                  case "end":
         
     | 
| 
      
 178 
     | 
    
         
            +
                    return _context.stop();
         
     | 
| 
       181 
179 
     | 
    
         
             
                }
         
     | 
| 
       182 
180 
     | 
    
         
             
              }, _callee);
         
     | 
| 
       183 
181 
     | 
    
         
             
            })));
         
     |