files.com 1.0.452 → 1.0.453
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 +2 -0
- package/lib/Errors.js +108 -82
- package/lib/Files.js +1 -1
- package/package.json +1 -1
- package/src/Errors.js +2 -0
- package/src/Files.js +1 -1
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.453
|
package/docs/Errors.md
CHANGED
|
@@ -180,6 +180,8 @@ These errors are derived from the error groups listed above.
|
|
|
180
180
|
### ProcessingFailure_ResourceLockedError
|
|
181
181
|
### ProcessingFailure_SubfolderLockedError
|
|
182
182
|
### ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
|
|
183
|
+
### ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
|
|
184
|
+
### ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
|
|
183
185
|
### ProcessingFailure_UpdatesNotAllowedForRemotesError
|
|
184
186
|
### RateLimited_DuplicateShareRecipientError
|
|
185
187
|
### RateLimited_ReauthenticationRateLimitedError
|
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_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = 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_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_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.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_RequestParamPathCannotHaveTrailingWhitespaceError = exports.BadRequest_ReauthenticationNeededFieldsError = 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_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.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_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_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = 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_AutomationCannotBeRunManuallyError = 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 = 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.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_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_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = 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_AutomationCannotBeRunManuallyError = 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 = 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"));
|
|
@@ -1989,210 +1989,236 @@ var ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.Proc
|
|
|
1989
1989
|
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError);
|
|
1990
1990
|
}(ProcessingFailureError);
|
|
1991
1991
|
errorClasses.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError;
|
|
1992
|
-
var
|
|
1993
|
-
(0, _inherits2.default)(
|
|
1994
|
-
var _super149 = _createSuper(
|
|
1995
|
-
function
|
|
1992
|
+
var ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = /*#__PURE__*/function (_ProcessingFailureErr35) {
|
|
1993
|
+
(0, _inherits2.default)(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError, _ProcessingFailureErr35);
|
|
1994
|
+
var _super149 = _createSuper(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
|
1995
|
+
function ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError(message, code) {
|
|
1996
1996
|
var _this149;
|
|
1997
|
-
(0, _classCallCheck2.default)(this,
|
|
1997
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
|
1998
1998
|
_this149 = _super149.call(this, message, code);
|
|
1999
|
-
_this149.name = '
|
|
1999
|
+
_this149.name = 'ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError';
|
|
2000
2000
|
return _this149;
|
|
2001
2001
|
}
|
|
2002
|
+
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
|
2003
|
+
}(ProcessingFailureError);
|
|
2004
|
+
errorClasses.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError;
|
|
2005
|
+
var ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = /*#__PURE__*/function (_ProcessingFailureErr36) {
|
|
2006
|
+
(0, _inherits2.default)(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError, _ProcessingFailureErr36);
|
|
2007
|
+
var _super150 = _createSuper(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
|
2008
|
+
function ProcessingFailure_TwoFactorAuthenticationGeneralErrorError(message, code) {
|
|
2009
|
+
var _this150;
|
|
2010
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
|
2011
|
+
_this150 = _super150.call(this, message, code);
|
|
2012
|
+
_this150.name = 'ProcessingFailure_TwoFactorAuthenticationGeneralErrorError';
|
|
2013
|
+
return _this150;
|
|
2014
|
+
}
|
|
2015
|
+
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
|
2016
|
+
}(ProcessingFailureError);
|
|
2017
|
+
errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError;
|
|
2018
|
+
var ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = /*#__PURE__*/function (_ProcessingFailureErr37) {
|
|
2019
|
+
(0, _inherits2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError, _ProcessingFailureErr37);
|
|
2020
|
+
var _super151 = _createSuper(ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
|
2021
|
+
function ProcessingFailure_UpdatesNotAllowedForRemotesError(message, code) {
|
|
2022
|
+
var _this151;
|
|
2023
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
|
2024
|
+
_this151 = _super151.call(this, message, code);
|
|
2025
|
+
_this151.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError';
|
|
2026
|
+
return _this151;
|
|
2027
|
+
}
|
|
2002
2028
|
return (0, _createClass2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
|
2003
2029
|
}(ProcessingFailureError);
|
|
2004
2030
|
errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError;
|
|
2005
2031
|
var RateLimited_DuplicateShareRecipientError = exports.RateLimited_DuplicateShareRecipientError = /*#__PURE__*/function (_RateLimitedError) {
|
|
2006
2032
|
(0, _inherits2.default)(RateLimited_DuplicateShareRecipientError, _RateLimitedError);
|
|
2007
|
-
var
|
|
2033
|
+
var _super152 = _createSuper(RateLimited_DuplicateShareRecipientError);
|
|
2008
2034
|
function RateLimited_DuplicateShareRecipientError(message, code) {
|
|
2009
|
-
var
|
|
2035
|
+
var _this152;
|
|
2010
2036
|
(0, _classCallCheck2.default)(this, RateLimited_DuplicateShareRecipientError);
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
return
|
|
2037
|
+
_this152 = _super152.call(this, message, code);
|
|
2038
|
+
_this152.name = 'RateLimited_DuplicateShareRecipientError';
|
|
2039
|
+
return _this152;
|
|
2014
2040
|
}
|
|
2015
2041
|
return (0, _createClass2.default)(RateLimited_DuplicateShareRecipientError);
|
|
2016
2042
|
}(RateLimitedError);
|
|
2017
2043
|
errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError;
|
|
2018
2044
|
var RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_ReauthenticationRateLimitedError = /*#__PURE__*/function (_RateLimitedError2) {
|
|
2019
2045
|
(0, _inherits2.default)(RateLimited_ReauthenticationRateLimitedError, _RateLimitedError2);
|
|
2020
|
-
var
|
|
2046
|
+
var _super153 = _createSuper(RateLimited_ReauthenticationRateLimitedError);
|
|
2021
2047
|
function RateLimited_ReauthenticationRateLimitedError(message, code) {
|
|
2022
|
-
var
|
|
2048
|
+
var _this153;
|
|
2023
2049
|
(0, _classCallCheck2.default)(this, RateLimited_ReauthenticationRateLimitedError);
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
return
|
|
2050
|
+
_this153 = _super153.call(this, message, code);
|
|
2051
|
+
_this153.name = 'RateLimited_ReauthenticationRateLimitedError';
|
|
2052
|
+
return _this153;
|
|
2027
2053
|
}
|
|
2028
2054
|
return (0, _createClass2.default)(RateLimited_ReauthenticationRateLimitedError);
|
|
2029
2055
|
}(RateLimitedError);
|
|
2030
2056
|
errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError;
|
|
2031
2057
|
var RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentRequestsError = /*#__PURE__*/function (_RateLimitedError3) {
|
|
2032
2058
|
(0, _inherits2.default)(RateLimited_TooManyConcurrentRequestsError, _RateLimitedError3);
|
|
2033
|
-
var
|
|
2059
|
+
var _super154 = _createSuper(RateLimited_TooManyConcurrentRequestsError);
|
|
2034
2060
|
function RateLimited_TooManyConcurrentRequestsError(message, code) {
|
|
2035
|
-
var
|
|
2061
|
+
var _this154;
|
|
2036
2062
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyConcurrentRequestsError);
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
return
|
|
2063
|
+
_this154 = _super154.call(this, message, code);
|
|
2064
|
+
_this154.name = 'RateLimited_TooManyConcurrentRequestsError';
|
|
2065
|
+
return _this154;
|
|
2040
2066
|
}
|
|
2041
2067
|
return (0, _createClass2.default)(RateLimited_TooManyConcurrentRequestsError);
|
|
2042
2068
|
}(RateLimitedError);
|
|
2043
2069
|
errorClasses.RateLimited_TooManyConcurrentRequestsError = RateLimited_TooManyConcurrentRequestsError;
|
|
2044
2070
|
var RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyLoginAttemptsError = /*#__PURE__*/function (_RateLimitedError4) {
|
|
2045
2071
|
(0, _inherits2.default)(RateLimited_TooManyLoginAttemptsError, _RateLimitedError4);
|
|
2046
|
-
var
|
|
2072
|
+
var _super155 = _createSuper(RateLimited_TooManyLoginAttemptsError);
|
|
2047
2073
|
function RateLimited_TooManyLoginAttemptsError(message, code) {
|
|
2048
|
-
var
|
|
2074
|
+
var _this155;
|
|
2049
2075
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyLoginAttemptsError);
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
return
|
|
2076
|
+
_this155 = _super155.call(this, message, code);
|
|
2077
|
+
_this155.name = 'RateLimited_TooManyLoginAttemptsError';
|
|
2078
|
+
return _this155;
|
|
2053
2079
|
}
|
|
2054
2080
|
return (0, _createClass2.default)(RateLimited_TooManyLoginAttemptsError);
|
|
2055
2081
|
}(RateLimitedError);
|
|
2056
2082
|
errorClasses.RateLimited_TooManyLoginAttemptsError = RateLimited_TooManyLoginAttemptsError;
|
|
2057
2083
|
var RateLimited_TooManyRequestsError = exports.RateLimited_TooManyRequestsError = /*#__PURE__*/function (_RateLimitedError5) {
|
|
2058
2084
|
(0, _inherits2.default)(RateLimited_TooManyRequestsError, _RateLimitedError5);
|
|
2059
|
-
var
|
|
2085
|
+
var _super156 = _createSuper(RateLimited_TooManyRequestsError);
|
|
2060
2086
|
function RateLimited_TooManyRequestsError(message, code) {
|
|
2061
|
-
var
|
|
2087
|
+
var _this156;
|
|
2062
2088
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyRequestsError);
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
return
|
|
2089
|
+
_this156 = _super156.call(this, message, code);
|
|
2090
|
+
_this156.name = 'RateLimited_TooManyRequestsError';
|
|
2091
|
+
return _this156;
|
|
2066
2092
|
}
|
|
2067
2093
|
return (0, _createClass2.default)(RateLimited_TooManyRequestsError);
|
|
2068
2094
|
}(RateLimitedError);
|
|
2069
2095
|
errorClasses.RateLimited_TooManyRequestsError = RateLimited_TooManyRequestsError;
|
|
2070
2096
|
var RateLimited_TooManySharesError = exports.RateLimited_TooManySharesError = /*#__PURE__*/function (_RateLimitedError6) {
|
|
2071
2097
|
(0, _inherits2.default)(RateLimited_TooManySharesError, _RateLimitedError6);
|
|
2072
|
-
var
|
|
2098
|
+
var _super157 = _createSuper(RateLimited_TooManySharesError);
|
|
2073
2099
|
function RateLimited_TooManySharesError(message, code) {
|
|
2074
|
-
var
|
|
2100
|
+
var _this157;
|
|
2075
2101
|
(0, _classCallCheck2.default)(this, RateLimited_TooManySharesError);
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
return
|
|
2102
|
+
_this157 = _super157.call(this, message, code);
|
|
2103
|
+
_this157.name = 'RateLimited_TooManySharesError';
|
|
2104
|
+
return _this157;
|
|
2079
2105
|
}
|
|
2080
2106
|
return (0, _createClass2.default)(RateLimited_TooManySharesError);
|
|
2081
2107
|
}(RateLimitedError);
|
|
2082
2108
|
errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError;
|
|
2083
2109
|
var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr) {
|
|
2084
2110
|
(0, _inherits2.default)(ServiceUnavailable_AutomationsUnavailableError, _ServiceUnavailableEr);
|
|
2085
|
-
var
|
|
2111
|
+
var _super158 = _createSuper(ServiceUnavailable_AutomationsUnavailableError);
|
|
2086
2112
|
function ServiceUnavailable_AutomationsUnavailableError(message, code) {
|
|
2087
|
-
var
|
|
2113
|
+
var _this158;
|
|
2088
2114
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_AutomationsUnavailableError);
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
return
|
|
2115
|
+
_this158 = _super158.call(this, message, code);
|
|
2116
|
+
_this158.name = 'ServiceUnavailable_AutomationsUnavailableError';
|
|
2117
|
+
return _this158;
|
|
2092
2118
|
}
|
|
2093
2119
|
return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
|
|
2094
2120
|
}(ServiceUnavailableError);
|
|
2095
2121
|
errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError;
|
|
2096
2122
|
var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr2) {
|
|
2097
2123
|
(0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr2);
|
|
2098
|
-
var
|
|
2124
|
+
var _super159 = _createSuper(ServiceUnavailable_UploadsUnavailableError);
|
|
2099
2125
|
function ServiceUnavailable_UploadsUnavailableError(message, code) {
|
|
2100
|
-
var
|
|
2126
|
+
var _this159;
|
|
2101
2127
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
return
|
|
2128
|
+
_this159 = _super159.call(this, message, code);
|
|
2129
|
+
_this159.name = 'ServiceUnavailable_UploadsUnavailableError';
|
|
2130
|
+
return _this159;
|
|
2105
2131
|
}
|
|
2106
2132
|
return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
|
|
2107
2133
|
}(ServiceUnavailableError);
|
|
2108
2134
|
errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError;
|
|
2109
2135
|
var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
|
|
2110
2136
|
(0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
|
|
2111
|
-
var
|
|
2137
|
+
var _super160 = _createSuper(SiteConfiguration_AccountAlreadyExistsError);
|
|
2112
2138
|
function SiteConfiguration_AccountAlreadyExistsError(message, code) {
|
|
2113
|
-
var
|
|
2139
|
+
var _this160;
|
|
2114
2140
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
return
|
|
2141
|
+
_this160 = _super160.call(this, message, code);
|
|
2142
|
+
_this160.name = 'SiteConfiguration_AccountAlreadyExistsError';
|
|
2143
|
+
return _this160;
|
|
2118
2144
|
}
|
|
2119
2145
|
return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
|
|
2120
2146
|
}(SiteConfigurationError);
|
|
2121
2147
|
errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError;
|
|
2122
2148
|
var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
|
|
2123
2149
|
(0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
|
|
2124
|
-
var
|
|
2150
|
+
var _super161 = _createSuper(SiteConfiguration_AccountOverdueError);
|
|
2125
2151
|
function SiteConfiguration_AccountOverdueError(message, code) {
|
|
2126
|
-
var
|
|
2152
|
+
var _this161;
|
|
2127
2153
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
return
|
|
2154
|
+
_this161 = _super161.call(this, message, code);
|
|
2155
|
+
_this161.name = 'SiteConfiguration_AccountOverdueError';
|
|
2156
|
+
return _this161;
|
|
2131
2157
|
}
|
|
2132
2158
|
return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
|
|
2133
2159
|
}(SiteConfigurationError);
|
|
2134
2160
|
errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError;
|
|
2135
2161
|
var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
|
|
2136
2162
|
(0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
|
|
2137
|
-
var
|
|
2163
|
+
var _super162 = _createSuper(SiteConfiguration_NoAccountForSiteError);
|
|
2138
2164
|
function SiteConfiguration_NoAccountForSiteError(message, code) {
|
|
2139
|
-
var
|
|
2165
|
+
var _this162;
|
|
2140
2166
|
(0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
return
|
|
2167
|
+
_this162 = _super162.call(this, message, code);
|
|
2168
|
+
_this162.name = 'SiteConfiguration_NoAccountForSiteError';
|
|
2169
|
+
return _this162;
|
|
2144
2170
|
}
|
|
2145
2171
|
return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
|
|
2146
2172
|
}(SiteConfigurationError);
|
|
2147
2173
|
errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccountForSiteError;
|
|
2148
2174
|
var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
|
|
2149
2175
|
(0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
|
|
2150
|
-
var
|
|
2176
|
+
var _super163 = _createSuper(SiteConfiguration_SiteWasRemovedError);
|
|
2151
2177
|
function SiteConfiguration_SiteWasRemovedError(message, code) {
|
|
2152
|
-
var
|
|
2178
|
+
var _this163;
|
|
2153
2179
|
(0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
return
|
|
2180
|
+
_this163 = _super163.call(this, message, code);
|
|
2181
|
+
_this163.name = 'SiteConfiguration_SiteWasRemovedError';
|
|
2182
|
+
return _this163;
|
|
2157
2183
|
}
|
|
2158
2184
|
return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
|
|
2159
2185
|
}(SiteConfigurationError);
|
|
2160
2186
|
errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRemovedError;
|
|
2161
2187
|
var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
|
|
2162
2188
|
(0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
|
|
2163
|
-
var
|
|
2189
|
+
var _super164 = _createSuper(SiteConfiguration_TrialExpiredError);
|
|
2164
2190
|
function SiteConfiguration_TrialExpiredError(message, code) {
|
|
2165
|
-
var
|
|
2191
|
+
var _this164;
|
|
2166
2192
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
return
|
|
2193
|
+
_this164 = _super164.call(this, message, code);
|
|
2194
|
+
_this164.name = 'SiteConfiguration_TrialExpiredError';
|
|
2195
|
+
return _this164;
|
|
2170
2196
|
}
|
|
2171
2197
|
return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
|
|
2172
2198
|
}(SiteConfigurationError);
|
|
2173
2199
|
errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpiredError;
|
|
2174
2200
|
var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
|
|
2175
2201
|
(0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
|
|
2176
|
-
var
|
|
2202
|
+
var _super165 = _createSuper(SiteConfiguration_TrialLockedError);
|
|
2177
2203
|
function SiteConfiguration_TrialLockedError(message, code) {
|
|
2178
|
-
var
|
|
2204
|
+
var _this165;
|
|
2179
2205
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
return
|
|
2206
|
+
_this165 = _super165.call(this, message, code);
|
|
2207
|
+
_this165.name = 'SiteConfiguration_TrialLockedError';
|
|
2208
|
+
return _this165;
|
|
2183
2209
|
}
|
|
2184
2210
|
return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
|
|
2185
2211
|
}(SiteConfigurationError);
|
|
2186
2212
|
errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedError;
|
|
2187
2213
|
var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
|
|
2188
2214
|
(0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
|
|
2189
|
-
var
|
|
2215
|
+
var _super166 = _createSuper(SiteConfiguration_UserRequestsEnabledRequiredError);
|
|
2190
2216
|
function SiteConfiguration_UserRequestsEnabledRequiredError(message, code) {
|
|
2191
|
-
var
|
|
2217
|
+
var _this166;
|
|
2192
2218
|
(0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
return
|
|
2219
|
+
_this166 = _super166.call(this, message, code);
|
|
2220
|
+
_this166.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
|
|
2221
|
+
return _this166;
|
|
2196
2222
|
}
|
|
2197
2223
|
return (0, _createClass2.default)(SiteConfiguration_UserRequestsEnabledRequiredError);
|
|
2198
2224
|
}(SiteConfigurationError);
|
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.0.
|
|
14
|
+
var version = '1.0.453';
|
|
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
|
@@ -220,6 +220,8 @@ export class ProcessingFailure_RemoteServerErrorError extends ProcessingFailureE
|
|
|
220
220
|
export class ProcessingFailure_ResourceLockedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_ResourceLockedError' } } errorClasses.ProcessingFailure_ResourceLockedError = ProcessingFailure_ResourceLockedError
|
|
221
221
|
export class ProcessingFailure_SubfolderLockedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_SubfolderLockedError' } } errorClasses.ProcessingFailure_SubfolderLockedError = ProcessingFailure_SubfolderLockedError
|
|
222
222
|
export class ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
|
|
223
|
+
export class ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
|
|
224
|
+
export class ProcessingFailure_TwoFactorAuthenticationGeneralErrorError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationGeneralErrorError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
|
|
223
225
|
export class ProcessingFailure_UpdatesNotAllowedForRemotesError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError' } } errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError
|
|
224
226
|
export class RateLimited_DuplicateShareRecipientError extends RateLimitedError { constructor(message, code) { super(message, code); this.name = 'RateLimited_DuplicateShareRecipientError' } } errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError
|
|
225
227
|
export class RateLimited_ReauthenticationRateLimitedError extends RateLimitedError { constructor(message, code) { super(message, code); this.name = 'RateLimited_ReauthenticationRateLimitedError' } } errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError
|
package/src/Files.js
CHANGED