files.com 1.2.73 → 1.2.75

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.73
1
+ 1.2.75
package/docs/Errors.md CHANGED
@@ -201,6 +201,8 @@ These errors are derived from the error groups listed above.
201
201
  ### RateLimited_TooManySharesError
202
202
  ### ServiceUnavailable_AgentUnavailableError
203
203
  ### ServiceUnavailable_AutomationsUnavailableError
204
+ ### ServiceUnavailable_MigrationInProgressError
205
+ ### ServiceUnavailable_SiteDisabledError
204
206
  ### ServiceUnavailable_UploadsUnavailableError
205
207
  ### SiteConfiguration_AccountAlreadyExistsError
206
208
  ### SiteConfiguration_AccountOverdueError
@@ -18,6 +18,7 @@
18
18
  "api_name": "example",
19
19
  "user_agent": "example",
20
20
  "error_type": "example",
21
+ "error_message": "example",
21
22
  "response_code": 1,
22
23
  "success": true,
23
24
  "duration_ms": 1
@@ -38,6 +39,7 @@
38
39
  * `api_name` (string): Name of API Endpoint
39
40
  * `user_agent` (string): User-Agent
40
41
  * `error_type` (string): Error type, if applicable
42
+ * `error_message` (string): Error message, if applicable
41
43
  * `response_code` (int64): HTTP Response Code
42
44
  * `success` (boolean): `false` if HTTP Response Code is 4xx or 5xx
43
45
  * `duration_ms` (int64): Duration (in milliseconds)
@@ -45,8 +45,8 @@ await Behavior.list({
45
45
 
46
46
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
47
47
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
48
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
49
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
48
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
49
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
50
50
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
51
51
 
52
52
  ---
@@ -78,8 +78,8 @@ await Behavior.listFor(path, {
78
78
 
79
79
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
80
80
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
81
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
82
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
81
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
82
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
83
83
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
84
84
  * `path` (string): Required - Path to operate on.
85
85
  * `ancestor_behaviors` (string): Show behaviors above this path?
package/lib/Errors.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
5
  exports.NotFound_ApiKeyNotFoundError = exports.NotFoundError = exports.NotAuthorized_ZipDownloadIpMismatchError = exports.NotAuthorized_WritePermissionRequiredError = exports.NotAuthorized_WriteAndBundlePermissionRequiredError = exports.NotAuthorized_UserIdWithoutSiteAdminError = exports.NotAuthorized_TwoFactorAuthenticationRequiredError = exports.NotAuthorized_SiteFilesAreImmutableError = exports.NotAuthorized_SiteAdminRequiredError = exports.NotAuthorized_SelfManagedRequiredError = exports.NotAuthorized_RecaptchaFailedError = exports.NotAuthorized_ReauthenticationNeededActionError = exports.NotAuthorized_ReauthenticationFailedFinalError = exports.NotAuthorized_ReauthenticationFailedError = exports.NotAuthorized_ReadPermissionRequiredError = exports.NotAuthorized_ReadOnlySessionError = exports.NotAuthorized_PasswordChangeRequiredError = exports.NotAuthorized_PasswordChangeNotRequiredError = exports.NotAuthorized_NotAllowedToCreateBundleError = exports.NotAuthorized_NonAdminsMustQueryByFolderOrPathError = exports.NotAuthorized_NeedAdminPermissionForInboxError = exports.NotAuthorized_MustAuthenticateWithApiKeyError = exports.NotAuthorized_InsufficientPermissionForParamsError = exports.NotAuthorized_HistoryPermissionRequiredError = exports.NotAuthorized_FullPermissionRequiredError = exports.NotAuthorized_FolderAdminPermissionRequiredError = exports.NotAuthorized_FolderAdminOrBillingPermissionRequiredError = exports.NotAuthorized_FilesAgentFailedAuthorizationError = exports.NotAuthorized_ContactAdminForPasswordChangeHelpError = exports.NotAuthorized_CantActForOtherUserError = exports.NotAuthorized_CannotLoginWhileUsingKeyError = exports.NotAuthorized_BundleMaximumUsesReachedError = exports.NotAuthorized_BillingPermissionRequiredError = exports.NotAuthorized_ApiKeyOnlyForOfficeIntegrationError = exports.NotAuthorized_ApiKeyOnlyForMobileAppError = exports.NotAuthorized_ApiKeyOnlyForDesktopAppError = exports.NotAuthorized_ApiKeyIsPathRestrictedError = exports.NotAuthorized_ApiKeyIsDisabledError = exports.NotAuthorizedError = exports.NotAuthenticated_TwoFactorAuthenticationSetupExpiredError = exports.NotAuthenticated_TwoFactorAuthenticationErrorError = exports.NotAuthenticated_OneTimePasswordIncorrectError = exports.NotAuthenticated_LockoutRegionMismatchError = exports.NotAuthenticated_LockedOutError = exports.NotAuthenticated_InvalidUsernameOrPasswordError = exports.NotAuthenticated_InvalidOrExpiredCodeError = exports.NotAuthenticated_InvalidOauthError = exports.NotAuthenticated_InvalidCredentialsError = exports.NotAuthenticated_InboxRegistrationCodeFailedError = exports.NotAuthenticated_FilesAgentTokenFailedError = exports.NotAuthenticated_BundleRegistrationCodeFailedError = exports.NotAuthenticated_AuthenticationRequiredError = exports.NotAuthenticated_AdditionalAuthenticationRequiredError = exports.NotAuthenticatedError = exports.MissingParameterError = exports.InvalidParameterError = exports.FilesError = exports.FilesApiError = exports.EmptyPropertyError = exports.ConfigurationError = exports.BadRequest_UserRequiredError = exports.BadRequest_UserIdOnUserEndpointError = exports.BadRequest_UserIdInvalidError = exports.BadRequest_UnsupportedMediaTypeError = exports.BadRequest_UnsupportedHttpResponseFormatError = exports.BadRequest_UnsupportedCurrencyError = exports.BadRequest_SearchAllOnChildPathError = exports.BadRequest_RequestParamsRequiredError = exports.BadRequest_RequestParamsInvalidError = exports.BadRequest_RequestParamsContainInvalidCharacterError = exports.BadRequest_ReauthenticationNeededFieldsError = exports.BadRequest_PathCannotHaveTrailingWhitespaceError = exports.BadRequest_PartNumberTooLargeError = exports.BadRequest_NoValidInputParamsError = exports.BadRequest_MethodNotAllowedError = exports.BadRequest_InvalidUploadPartSizeError = exports.BadRequest_InvalidUploadPartGapError = exports.BadRequest_InvalidUploadOffsetError = exports.BadRequest_InvalidReturnToUrlError = exports.BadRequest_InvalidPathError = exports.BadRequest_InvalidOauthProviderError = exports.BadRequest_InvalidInterfaceError = exports.BadRequest_InvalidInputEncodingError = exports.BadRequest_InvalidFilterParamValueError = exports.BadRequest_InvalidFilterParamError = exports.BadRequest_InvalidFilterFieldError = exports.BadRequest_InvalidFilterCombinationError = exports.BadRequest_InvalidFilterAliasCombinationError = exports.BadRequest_InvalidEtagsError = exports.BadRequest_InvalidCursorTypeForSortError = exports.BadRequest_InvalidCursorError = exports.BadRequest_InvalidBodyError = exports.BadRequest_FolderMustNotBeAFileError = exports.BadRequest_DestinationSameError = exports.BadRequest_DatetimeParseError = exports.BadRequest_CantMoveWithMultipleLocationsError = exports.BadRequest_CannotDownloadDirectoryError = exports.BadRequest_AttachmentTooLargeError = exports.BadRequest_AgentUpgradeRequiredError = exports.BadRequestError = void 0;
6
- exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentLoginsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidPriorityColorError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FilenameTooLongError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FileProcessingErrorError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_BehaviorNotAllowedOnRemoteServerError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailure_AlreadyCompletedError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = void 0;
6
+ exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_SiteDisabledError = exports.ServiceUnavailable_MigrationInProgressError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentLoginsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidPriorityColorError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FilenameTooLongError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FileProcessingErrorError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_BehaviorNotAllowedOnRemoteServerError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailure_AlreadyCompletedError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = void 0;
7
7
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
8
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
@@ -2104,25 +2104,49 @@ var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_
2104
2104
  return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
2105
2105
  }(ServiceUnavailableError);
2106
2106
  errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError;
2107
- var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
2108
- function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
2107
+ var ServiceUnavailable_MigrationInProgressError = exports.ServiceUnavailable_MigrationInProgressError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
2108
+ function ServiceUnavailable_MigrationInProgressError(message, code, errorData) {
2109
2109
  var _this170;
2110
- (0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
2111
- _this170 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2112
- _this170.name = 'ServiceUnavailable_UploadsUnavailableError';
2110
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_MigrationInProgressError);
2111
+ _this170 = _callSuper(this, ServiceUnavailable_MigrationInProgressError, [message, code, errorData]);
2112
+ _this170.name = 'ServiceUnavailable_MigrationInProgressError';
2113
2113
  return _this170;
2114
2114
  }
2115
- (0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr3);
2115
+ (0, _inherits2.default)(ServiceUnavailable_MigrationInProgressError, _ServiceUnavailableEr3);
2116
+ return (0, _createClass2.default)(ServiceUnavailable_MigrationInProgressError);
2117
+ }(ServiceUnavailableError);
2118
+ errorClasses.ServiceUnavailable_MigrationInProgressError = ServiceUnavailable_MigrationInProgressError;
2119
+ var ServiceUnavailable_SiteDisabledError = exports.ServiceUnavailable_SiteDisabledError = /*#__PURE__*/function (_ServiceUnavailableEr4) {
2120
+ function ServiceUnavailable_SiteDisabledError(message, code, errorData) {
2121
+ var _this171;
2122
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_SiteDisabledError);
2123
+ _this171 = _callSuper(this, ServiceUnavailable_SiteDisabledError, [message, code, errorData]);
2124
+ _this171.name = 'ServiceUnavailable_SiteDisabledError';
2125
+ return _this171;
2126
+ }
2127
+ (0, _inherits2.default)(ServiceUnavailable_SiteDisabledError, _ServiceUnavailableEr4);
2128
+ return (0, _createClass2.default)(ServiceUnavailable_SiteDisabledError);
2129
+ }(ServiceUnavailableError);
2130
+ errorClasses.ServiceUnavailable_SiteDisabledError = ServiceUnavailable_SiteDisabledError;
2131
+ var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr5) {
2132
+ function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
2133
+ var _this172;
2134
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
2135
+ _this172 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2136
+ _this172.name = 'ServiceUnavailable_UploadsUnavailableError';
2137
+ return _this172;
2138
+ }
2139
+ (0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr5);
2116
2140
  return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
2117
2141
  }(ServiceUnavailableError);
2118
2142
  errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError;
2119
2143
  var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
2120
2144
  function SiteConfiguration_AccountAlreadyExistsError(message, code, errorData) {
2121
- var _this171;
2145
+ var _this173;
2122
2146
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
2123
- _this171 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2124
- _this171.name = 'SiteConfiguration_AccountAlreadyExistsError';
2125
- return _this171;
2147
+ _this173 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2148
+ _this173.name = 'SiteConfiguration_AccountAlreadyExistsError';
2149
+ return _this173;
2126
2150
  }
2127
2151
  (0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
2128
2152
  return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
@@ -2130,11 +2154,11 @@ var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_Acco
2130
2154
  errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError;
2131
2155
  var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
2132
2156
  function SiteConfiguration_AccountOverdueError(message, code, errorData) {
2133
- var _this172;
2157
+ var _this174;
2134
2158
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
2135
- _this172 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2136
- _this172.name = 'SiteConfiguration_AccountOverdueError';
2137
- return _this172;
2159
+ _this174 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2160
+ _this174.name = 'SiteConfiguration_AccountOverdueError';
2161
+ return _this174;
2138
2162
  }
2139
2163
  (0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
2140
2164
  return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
@@ -2142,11 +2166,11 @@ var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOve
2142
2166
  errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError;
2143
2167
  var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
2144
2168
  function SiteConfiguration_NoAccountForSiteError(message, code, errorData) {
2145
- var _this173;
2169
+ var _this175;
2146
2170
  (0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
2147
- _this173 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2148
- _this173.name = 'SiteConfiguration_NoAccountForSiteError';
2149
- return _this173;
2171
+ _this175 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2172
+ _this175.name = 'SiteConfiguration_NoAccountForSiteError';
2173
+ return _this175;
2150
2174
  }
2151
2175
  (0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
2152
2176
  return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
@@ -2154,11 +2178,11 @@ var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccoun
2154
2178
  errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccountForSiteError;
2155
2179
  var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
2156
2180
  function SiteConfiguration_SiteWasRemovedError(message, code, errorData) {
2157
- var _this174;
2181
+ var _this176;
2158
2182
  (0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
2159
- _this174 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2160
- _this174.name = 'SiteConfiguration_SiteWasRemovedError';
2161
- return _this174;
2183
+ _this176 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2184
+ _this176.name = 'SiteConfiguration_SiteWasRemovedError';
2185
+ return _this176;
2162
2186
  }
2163
2187
  (0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
2164
2188
  return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
@@ -2166,11 +2190,11 @@ var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRem
2166
2190
  errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRemovedError;
2167
2191
  var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
2168
2192
  function SiteConfiguration_TrialExpiredError(message, code, errorData) {
2169
- var _this175;
2193
+ var _this177;
2170
2194
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
2171
- _this175 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2172
- _this175.name = 'SiteConfiguration_TrialExpiredError';
2173
- return _this175;
2195
+ _this177 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2196
+ _this177.name = 'SiteConfiguration_TrialExpiredError';
2197
+ return _this177;
2174
2198
  }
2175
2199
  (0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
2176
2200
  return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
@@ -2178,11 +2202,11 @@ var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpired
2178
2202
  errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpiredError;
2179
2203
  var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
2180
2204
  function SiteConfiguration_TrialLockedError(message, code, errorData) {
2181
- var _this176;
2205
+ var _this178;
2182
2206
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
2183
- _this176 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2184
- _this176.name = 'SiteConfiguration_TrialLockedError';
2185
- return _this176;
2207
+ _this178 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2208
+ _this178.name = 'SiteConfiguration_TrialLockedError';
2209
+ return _this178;
2186
2210
  }
2187
2211
  (0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
2188
2212
  return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
@@ -2190,11 +2214,11 @@ var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedEr
2190
2214
  errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedError;
2191
2215
  var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
2192
2216
  function SiteConfiguration_UserRequestsEnabledRequiredError(message, code, errorData) {
2193
- var _this177;
2217
+ var _this179;
2194
2218
  (0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
2195
- _this177 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2196
- _this177.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2197
- return _this177;
2219
+ _this179 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2220
+ _this179.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2221
+ return _this179;
2198
2222
  }
2199
2223
  (0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
2200
2224
  return (0, _createClass2.default)(SiteConfiguration_UserRequestsEnabledRequiredError);
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.73';
14
+ var version = '1.2.75';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -89,6 +89,10 @@ var ApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ApiRequestL
89
89
  (0, _defineProperty2.default)(this, "getErrorType", function () {
90
90
  return _this.attributes.error_type;
91
91
  });
92
+ // string # Error message, if applicable
93
+ (0, _defineProperty2.default)(this, "getErrorMessage", function () {
94
+ return _this.attributes.error_message;
95
+ });
92
96
  // int64 # HTTP Response Code
93
97
  (0, _defineProperty2.default)(this, "getResponseCode", function () {
94
98
  return _this.attributes.response_code;
@@ -299,8 +299,8 @@ _Behavior = Behavior;
299
299
  // Parameters:
300
300
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
301
301
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
302
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
303
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
302
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
303
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
304
304
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
305
305
  (0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
306
306
  var _response$data;
@@ -398,8 +398,8 @@ _Behavior = Behavior;
398
398
  // Parameters:
399
399
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
400
400
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
401
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
402
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
401
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
402
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
403
403
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
404
404
  // path (required) - string - Path to operate on.
405
405
  // ancestor_behaviors - string - Show behaviors above this path?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.73",
3
+ "version": "1.2.75",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -252,6 +252,8 @@ export class RateLimited_TooManyRequestsError extends RateLimitedError { constru
252
252
  export class RateLimited_TooManySharesError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManySharesError' } } errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError
253
253
  export class ServiceUnavailable_AgentUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_AgentUnavailableError' } } errorClasses.ServiceUnavailable_AgentUnavailableError = ServiceUnavailable_AgentUnavailableError
254
254
  export class ServiceUnavailable_AutomationsUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_AutomationsUnavailableError' } } errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError
255
+ export class ServiceUnavailable_MigrationInProgressError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_MigrationInProgressError' } } errorClasses.ServiceUnavailable_MigrationInProgressError = ServiceUnavailable_MigrationInProgressError
256
+ export class ServiceUnavailable_SiteDisabledError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_SiteDisabledError' } } errorClasses.ServiceUnavailable_SiteDisabledError = ServiceUnavailable_SiteDisabledError
255
257
  export class ServiceUnavailable_UploadsUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_UploadsUnavailableError' } } errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError
256
258
  export class SiteConfiguration_AccountAlreadyExistsError extends SiteConfigurationError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'SiteConfiguration_AccountAlreadyExistsError' } } errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError
257
259
  export class SiteConfiguration_AccountOverdueError extends SiteConfigurationError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'SiteConfiguration_AccountOverdueError' } } errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.73'
8
+ const version = '1.2.75'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -70,6 +70,9 @@ class ApiRequestLog {
70
70
  // string # Error type, if applicable
71
71
  getErrorType = () => this.attributes.error_type
72
72
 
73
+ // string # Error message, if applicable
74
+ getErrorMessage = () => this.attributes.error_message
75
+
73
76
  // int64 # HTTP Response Code
74
77
  getResponseCode = () => this.attributes.response_code
75
78
 
@@ -205,8 +205,8 @@ class Behavior {
205
205
  // Parameters:
206
206
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
207
207
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
208
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
209
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
208
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
209
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
210
210
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
211
211
  static list = async (params = {}, options = {}) => {
212
212
  if (params.cursor && !isString(params.cursor)) {
@@ -253,8 +253,8 @@ class Behavior {
253
253
  // Parameters:
254
254
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
255
255
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
256
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior`.
257
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `behavior`.
256
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[behavior]=desc`). Valid fields are `behavior` and `impacts_ui`.
257
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
258
258
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
259
259
  // path (required) - string - Path to operate on.
260
260
  // ancestor_behaviors - string - Show behaviors above this path?