files.com 1.2.69 → 1.2.70
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/lib/Errors.js +77 -65
- package/lib/Files.js +1 -1
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/Files.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.70
|
package/docs/Errors.md
CHANGED
@@ -195,6 +195,7 @@ These errors are derived from the error groups listed above.
|
|
195
195
|
### ProcessingFailure_UpdatesNotAllowedForRemotesError
|
196
196
|
### RateLimited_DuplicateShareRecipientError
|
197
197
|
### RateLimited_ReauthenticationRateLimitedError
|
198
|
+
### RateLimited_TooManyConcurrentLoginsError
|
198
199
|
### RateLimited_TooManyConcurrentRequestsError
|
199
200
|
### RateLimited_TooManyLoginAttemptsError
|
200
201
|
### RateLimited_TooManyRequestsError
|
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.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_OperationOnNonScimResourceError = 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_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 = exports.NotFound_ApiKeyNotFoundError = 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 = exports.NotFound_ApiKeyNotFoundError = 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"));
|
@@ -2032,61 +2032,73 @@ var RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_Reauthent
|
|
2032
2032
|
return (0, _createClass2.default)(RateLimited_ReauthenticationRateLimitedError);
|
2033
2033
|
}(RateLimitedError);
|
2034
2034
|
errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError;
|
2035
|
-
var
|
2036
|
-
function
|
2035
|
+
var RateLimited_TooManyConcurrentLoginsError = exports.RateLimited_TooManyConcurrentLoginsError = /*#__PURE__*/function (_RateLimitedError3) {
|
2036
|
+
function RateLimited_TooManyConcurrentLoginsError(message, code, errorData) {
|
2037
2037
|
var _this164;
|
2038
|
-
(0, _classCallCheck2.default)(this,
|
2039
|
-
_this164 = _callSuper(this,
|
2040
|
-
_this164.name = '
|
2038
|
+
(0, _classCallCheck2.default)(this, RateLimited_TooManyConcurrentLoginsError);
|
2039
|
+
_this164 = _callSuper(this, RateLimited_TooManyConcurrentLoginsError, [message, code, errorData]);
|
2040
|
+
_this164.name = 'RateLimited_TooManyConcurrentLoginsError';
|
2041
2041
|
return _this164;
|
2042
2042
|
}
|
2043
|
-
(0, _inherits2.default)(
|
2043
|
+
(0, _inherits2.default)(RateLimited_TooManyConcurrentLoginsError, _RateLimitedError3);
|
2044
|
+
return (0, _createClass2.default)(RateLimited_TooManyConcurrentLoginsError);
|
2045
|
+
}(RateLimitedError);
|
2046
|
+
errorClasses.RateLimited_TooManyConcurrentLoginsError = RateLimited_TooManyConcurrentLoginsError;
|
2047
|
+
var RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentRequestsError = /*#__PURE__*/function (_RateLimitedError4) {
|
2048
|
+
function RateLimited_TooManyConcurrentRequestsError(message, code, errorData) {
|
2049
|
+
var _this165;
|
2050
|
+
(0, _classCallCheck2.default)(this, RateLimited_TooManyConcurrentRequestsError);
|
2051
|
+
_this165 = _callSuper(this, RateLimited_TooManyConcurrentRequestsError, [message, code, errorData]);
|
2052
|
+
_this165.name = 'RateLimited_TooManyConcurrentRequestsError';
|
2053
|
+
return _this165;
|
2054
|
+
}
|
2055
|
+
(0, _inherits2.default)(RateLimited_TooManyConcurrentRequestsError, _RateLimitedError4);
|
2044
2056
|
return (0, _createClass2.default)(RateLimited_TooManyConcurrentRequestsError);
|
2045
2057
|
}(RateLimitedError);
|
2046
2058
|
errorClasses.RateLimited_TooManyConcurrentRequestsError = RateLimited_TooManyConcurrentRequestsError;
|
2047
|
-
var RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyLoginAttemptsError = /*#__PURE__*/function (
|
2059
|
+
var RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyLoginAttemptsError = /*#__PURE__*/function (_RateLimitedError5) {
|
2048
2060
|
function RateLimited_TooManyLoginAttemptsError(message, code, errorData) {
|
2049
|
-
var
|
2061
|
+
var _this166;
|
2050
2062
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyLoginAttemptsError);
|
2051
|
-
|
2052
|
-
|
2053
|
-
return
|
2063
|
+
_this166 = _callSuper(this, RateLimited_TooManyLoginAttemptsError, [message, code, errorData]);
|
2064
|
+
_this166.name = 'RateLimited_TooManyLoginAttemptsError';
|
2065
|
+
return _this166;
|
2054
2066
|
}
|
2055
|
-
(0, _inherits2.default)(RateLimited_TooManyLoginAttemptsError,
|
2067
|
+
(0, _inherits2.default)(RateLimited_TooManyLoginAttemptsError, _RateLimitedError5);
|
2056
2068
|
return (0, _createClass2.default)(RateLimited_TooManyLoginAttemptsError);
|
2057
2069
|
}(RateLimitedError);
|
2058
2070
|
errorClasses.RateLimited_TooManyLoginAttemptsError = RateLimited_TooManyLoginAttemptsError;
|
2059
|
-
var RateLimited_TooManyRequestsError = exports.RateLimited_TooManyRequestsError = /*#__PURE__*/function (
|
2071
|
+
var RateLimited_TooManyRequestsError = exports.RateLimited_TooManyRequestsError = /*#__PURE__*/function (_RateLimitedError6) {
|
2060
2072
|
function RateLimited_TooManyRequestsError(message, code, errorData) {
|
2061
|
-
var
|
2073
|
+
var _this167;
|
2062
2074
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyRequestsError);
|
2063
|
-
|
2064
|
-
|
2065
|
-
return
|
2075
|
+
_this167 = _callSuper(this, RateLimited_TooManyRequestsError, [message, code, errorData]);
|
2076
|
+
_this167.name = 'RateLimited_TooManyRequestsError';
|
2077
|
+
return _this167;
|
2066
2078
|
}
|
2067
|
-
(0, _inherits2.default)(RateLimited_TooManyRequestsError,
|
2079
|
+
(0, _inherits2.default)(RateLimited_TooManyRequestsError, _RateLimitedError6);
|
2068
2080
|
return (0, _createClass2.default)(RateLimited_TooManyRequestsError);
|
2069
2081
|
}(RateLimitedError);
|
2070
2082
|
errorClasses.RateLimited_TooManyRequestsError = RateLimited_TooManyRequestsError;
|
2071
|
-
var RateLimited_TooManySharesError = exports.RateLimited_TooManySharesError = /*#__PURE__*/function (
|
2083
|
+
var RateLimited_TooManySharesError = exports.RateLimited_TooManySharesError = /*#__PURE__*/function (_RateLimitedError7) {
|
2072
2084
|
function RateLimited_TooManySharesError(message, code, errorData) {
|
2073
|
-
var
|
2085
|
+
var _this168;
|
2074
2086
|
(0, _classCallCheck2.default)(this, RateLimited_TooManySharesError);
|
2075
|
-
|
2076
|
-
|
2077
|
-
return
|
2087
|
+
_this168 = _callSuper(this, RateLimited_TooManySharesError, [message, code, errorData]);
|
2088
|
+
_this168.name = 'RateLimited_TooManySharesError';
|
2089
|
+
return _this168;
|
2078
2090
|
}
|
2079
|
-
(0, _inherits2.default)(RateLimited_TooManySharesError,
|
2091
|
+
(0, _inherits2.default)(RateLimited_TooManySharesError, _RateLimitedError7);
|
2080
2092
|
return (0, _createClass2.default)(RateLimited_TooManySharesError);
|
2081
2093
|
}(RateLimitedError);
|
2082
2094
|
errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError;
|
2083
2095
|
var ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr) {
|
2084
2096
|
function ServiceUnavailable_AgentUnavailableError(message, code, errorData) {
|
2085
|
-
var
|
2097
|
+
var _this169;
|
2086
2098
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_AgentUnavailableError);
|
2087
|
-
|
2088
|
-
|
2089
|
-
return
|
2099
|
+
_this169 = _callSuper(this, ServiceUnavailable_AgentUnavailableError, [message, code, errorData]);
|
2100
|
+
_this169.name = 'ServiceUnavailable_AgentUnavailableError';
|
2101
|
+
return _this169;
|
2090
2102
|
}
|
2091
2103
|
(0, _inherits2.default)(ServiceUnavailable_AgentUnavailableError, _ServiceUnavailableEr);
|
2092
2104
|
return (0, _createClass2.default)(ServiceUnavailable_AgentUnavailableError);
|
@@ -2094,11 +2106,11 @@ var ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailable_AgentU
|
|
2094
2106
|
errorClasses.ServiceUnavailable_AgentUnavailableError = ServiceUnavailable_AgentUnavailableError;
|
2095
2107
|
var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr2) {
|
2096
2108
|
function ServiceUnavailable_AutomationsUnavailableError(message, code, errorData) {
|
2097
|
-
var
|
2109
|
+
var _this170;
|
2098
2110
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_AutomationsUnavailableError);
|
2099
|
-
|
2100
|
-
|
2101
|
-
return
|
2111
|
+
_this170 = _callSuper(this, ServiceUnavailable_AutomationsUnavailableError, [message, code, errorData]);
|
2112
|
+
_this170.name = 'ServiceUnavailable_AutomationsUnavailableError';
|
2113
|
+
return _this170;
|
2102
2114
|
}
|
2103
2115
|
(0, _inherits2.default)(ServiceUnavailable_AutomationsUnavailableError, _ServiceUnavailableEr2);
|
2104
2116
|
return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
|
@@ -2106,11 +2118,11 @@ var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_
|
|
2106
2118
|
errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError;
|
2107
2119
|
var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
|
2108
2120
|
function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
|
2109
|
-
var
|
2121
|
+
var _this171;
|
2110
2122
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
|
2111
|
-
|
2112
|
-
|
2113
|
-
return
|
2123
|
+
_this171 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
|
2124
|
+
_this171.name = 'ServiceUnavailable_UploadsUnavailableError';
|
2125
|
+
return _this171;
|
2114
2126
|
}
|
2115
2127
|
(0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr3);
|
2116
2128
|
return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
|
@@ -2118,11 +2130,11 @@ var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_Uplo
|
|
2118
2130
|
errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError;
|
2119
2131
|
var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
|
2120
2132
|
function SiteConfiguration_AccountAlreadyExistsError(message, code, errorData) {
|
2121
|
-
var
|
2133
|
+
var _this172;
|
2122
2134
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
|
2123
|
-
|
2124
|
-
|
2125
|
-
return
|
2135
|
+
_this172 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
|
2136
|
+
_this172.name = 'SiteConfiguration_AccountAlreadyExistsError';
|
2137
|
+
return _this172;
|
2126
2138
|
}
|
2127
2139
|
(0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
|
2128
2140
|
return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
|
@@ -2130,11 +2142,11 @@ var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_Acco
|
|
2130
2142
|
errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError;
|
2131
2143
|
var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
|
2132
2144
|
function SiteConfiguration_AccountOverdueError(message, code, errorData) {
|
2133
|
-
var
|
2145
|
+
var _this173;
|
2134
2146
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
|
2135
|
-
|
2136
|
-
|
2137
|
-
return
|
2147
|
+
_this173 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
|
2148
|
+
_this173.name = 'SiteConfiguration_AccountOverdueError';
|
2149
|
+
return _this173;
|
2138
2150
|
}
|
2139
2151
|
(0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
|
2140
2152
|
return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
|
@@ -2142,11 +2154,11 @@ var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOve
|
|
2142
2154
|
errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError;
|
2143
2155
|
var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
|
2144
2156
|
function SiteConfiguration_NoAccountForSiteError(message, code, errorData) {
|
2145
|
-
var
|
2157
|
+
var _this174;
|
2146
2158
|
(0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
|
2147
|
-
|
2148
|
-
|
2149
|
-
return
|
2159
|
+
_this174 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
|
2160
|
+
_this174.name = 'SiteConfiguration_NoAccountForSiteError';
|
2161
|
+
return _this174;
|
2150
2162
|
}
|
2151
2163
|
(0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
|
2152
2164
|
return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
|
@@ -2154,11 +2166,11 @@ var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccoun
|
|
2154
2166
|
errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccountForSiteError;
|
2155
2167
|
var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
|
2156
2168
|
function SiteConfiguration_SiteWasRemovedError(message, code, errorData) {
|
2157
|
-
var
|
2169
|
+
var _this175;
|
2158
2170
|
(0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
|
2159
|
-
|
2160
|
-
|
2161
|
-
return
|
2171
|
+
_this175 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
|
2172
|
+
_this175.name = 'SiteConfiguration_SiteWasRemovedError';
|
2173
|
+
return _this175;
|
2162
2174
|
}
|
2163
2175
|
(0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
|
2164
2176
|
return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
|
@@ -2166,11 +2178,11 @@ var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRem
|
|
2166
2178
|
errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRemovedError;
|
2167
2179
|
var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
|
2168
2180
|
function SiteConfiguration_TrialExpiredError(message, code, errorData) {
|
2169
|
-
var
|
2181
|
+
var _this176;
|
2170
2182
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
|
2171
|
-
|
2172
|
-
|
2173
|
-
return
|
2183
|
+
_this176 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
|
2184
|
+
_this176.name = 'SiteConfiguration_TrialExpiredError';
|
2185
|
+
return _this176;
|
2174
2186
|
}
|
2175
2187
|
(0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
|
2176
2188
|
return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
|
@@ -2178,11 +2190,11 @@ var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpired
|
|
2178
2190
|
errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpiredError;
|
2179
2191
|
var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
|
2180
2192
|
function SiteConfiguration_TrialLockedError(message, code, errorData) {
|
2181
|
-
var
|
2193
|
+
var _this177;
|
2182
2194
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
|
2183
|
-
|
2184
|
-
|
2185
|
-
return
|
2195
|
+
_this177 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
|
2196
|
+
_this177.name = 'SiteConfiguration_TrialLockedError';
|
2197
|
+
return _this177;
|
2186
2198
|
}
|
2187
2199
|
(0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
|
2188
2200
|
return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
|
@@ -2190,11 +2202,11 @@ var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedEr
|
|
2190
2202
|
errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedError;
|
2191
2203
|
var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
|
2192
2204
|
function SiteConfiguration_UserRequestsEnabledRequiredError(message, code, errorData) {
|
2193
|
-
var
|
2205
|
+
var _this178;
|
2194
2206
|
(0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
|
2195
|
-
|
2196
|
-
|
2197
|
-
return
|
2207
|
+
_this178 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
|
2208
|
+
_this178.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
|
2209
|
+
return _this178;
|
2198
2210
|
}
|
2199
2211
|
(0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
|
2200
2212
|
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.
|
14
|
+
var version = '1.2.70';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
@@ -246,6 +246,7 @@ export class ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError
|
|
246
246
|
export class ProcessingFailure_UpdatesNotAllowedForRemotesError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError' } } errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError
|
247
247
|
export class RateLimited_DuplicateShareRecipientError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_DuplicateShareRecipientError' } } errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError
|
248
248
|
export class RateLimited_ReauthenticationRateLimitedError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_ReauthenticationRateLimitedError' } } errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError
|
249
|
+
export class RateLimited_TooManyConcurrentLoginsError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManyConcurrentLoginsError' } } errorClasses.RateLimited_TooManyConcurrentLoginsError = RateLimited_TooManyConcurrentLoginsError
|
249
250
|
export class RateLimited_TooManyConcurrentRequestsError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManyConcurrentRequestsError' } } errorClasses.RateLimited_TooManyConcurrentRequestsError = RateLimited_TooManyConcurrentRequestsError
|
250
251
|
export class RateLimited_TooManyLoginAttemptsError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManyLoginAttemptsError' } } errorClasses.RateLimited_TooManyLoginAttemptsError = RateLimited_TooManyLoginAttemptsError
|
251
252
|
export class RateLimited_TooManyRequestsError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManyRequestsError' } } errorClasses.RateLimited_TooManyRequestsError = RateLimited_TooManyRequestsError
|
package/src/Files.js
CHANGED