files.com 1.2.1 → 1.2.3

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.1
1
+ 1.2.3
package/docs/Errors.md CHANGED
@@ -184,6 +184,7 @@ These errors are derived from the error groups listed above.
184
184
  ### ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
185
185
  ### ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
186
186
  ### ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
187
+ ### ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError
187
188
  ### ProcessingFailure_UpdatesNotAllowedForRemotesError
188
189
  ### RateLimited_DuplicateShareRecipientError
189
190
  ### RateLimited_ReauthenticationRateLimitedError
@@ -42,7 +42,7 @@
42
42
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
43
43
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
44
44
  * `region` (string): Region location
45
- * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
45
+ * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
46
46
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
47
47
  * `is_locked` (boolean): Is this folder locked and unable to be modified?
48
48
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
@@ -42,7 +42,7 @@
42
42
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
43
43
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
44
44
  * `region` (string): Region location
45
- * `permissions` (string): A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
45
+ * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
46
46
  * `subfolders_locked?` (boolean): Are subfolders locked and unable to be modified?
47
47
  * `is_locked` (boolean): Is this folder locked and unable to be modified?
48
48
  * `download_uri` (string): Link to download file. Provided only in response to a download request.
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_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_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.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_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_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 = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = 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_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 = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = 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"));
@@ -1900,26 +1900,38 @@ var ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.Process
1900
1900
  return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
1901
1901
  }(ProcessingFailureError);
1902
1902
  errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError;
1903
- var ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = /*#__PURE__*/function (_ProcessingFailureErr37) {
1904
- (0, _inherits2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError, _ProcessingFailureErr37);
1905
- function ProcessingFailure_UpdatesNotAllowedForRemotesError(message, code, errorData) {
1903
+ var ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = exports.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = /*#__PURE__*/function (_ProcessingFailureErr37) {
1904
+ (0, _inherits2.default)(ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError, _ProcessingFailureErr37);
1905
+ function ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError(message, code, errorData) {
1906
1906
  var _this153;
1907
- (0, _classCallCheck2.default)(this, ProcessingFailure_UpdatesNotAllowedForRemotesError);
1908
- _this153 = _callSuper(this, ProcessingFailure_UpdatesNotAllowedForRemotesError, [message, code, errorData]);
1909
- _this153.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError';
1907
+ (0, _classCallCheck2.default)(this, ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError);
1908
+ _this153 = _callSuper(this, ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError, [message, code, errorData]);
1909
+ _this153.name = 'ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError';
1910
1910
  return _this153;
1911
1911
  }
1912
+ return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError);
1913
+ }(ProcessingFailureError);
1914
+ errorClasses.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError;
1915
+ var ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = /*#__PURE__*/function (_ProcessingFailureErr38) {
1916
+ (0, _inherits2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError, _ProcessingFailureErr38);
1917
+ function ProcessingFailure_UpdatesNotAllowedForRemotesError(message, code, errorData) {
1918
+ var _this154;
1919
+ (0, _classCallCheck2.default)(this, ProcessingFailure_UpdatesNotAllowedForRemotesError);
1920
+ _this154 = _callSuper(this, ProcessingFailure_UpdatesNotAllowedForRemotesError, [message, code, errorData]);
1921
+ _this154.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError';
1922
+ return _this154;
1923
+ }
1912
1924
  return (0, _createClass2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError);
1913
1925
  }(ProcessingFailureError);
1914
1926
  errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError;
1915
1927
  var RateLimited_DuplicateShareRecipientError = exports.RateLimited_DuplicateShareRecipientError = /*#__PURE__*/function (_RateLimitedError) {
1916
1928
  (0, _inherits2.default)(RateLimited_DuplicateShareRecipientError, _RateLimitedError);
1917
1929
  function RateLimited_DuplicateShareRecipientError(message, code, errorData) {
1918
- var _this154;
1930
+ var _this155;
1919
1931
  (0, _classCallCheck2.default)(this, RateLimited_DuplicateShareRecipientError);
1920
- _this154 = _callSuper(this, RateLimited_DuplicateShareRecipientError, [message, code, errorData]);
1921
- _this154.name = 'RateLimited_DuplicateShareRecipientError';
1922
- return _this154;
1932
+ _this155 = _callSuper(this, RateLimited_DuplicateShareRecipientError, [message, code, errorData]);
1933
+ _this155.name = 'RateLimited_DuplicateShareRecipientError';
1934
+ return _this155;
1923
1935
  }
1924
1936
  return (0, _createClass2.default)(RateLimited_DuplicateShareRecipientError);
1925
1937
  }(RateLimitedError);
@@ -1927,11 +1939,11 @@ errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateSha
1927
1939
  var RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_ReauthenticationRateLimitedError = /*#__PURE__*/function (_RateLimitedError2) {
1928
1940
  (0, _inherits2.default)(RateLimited_ReauthenticationRateLimitedError, _RateLimitedError2);
1929
1941
  function RateLimited_ReauthenticationRateLimitedError(message, code, errorData) {
1930
- var _this155;
1942
+ var _this156;
1931
1943
  (0, _classCallCheck2.default)(this, RateLimited_ReauthenticationRateLimitedError);
1932
- _this155 = _callSuper(this, RateLimited_ReauthenticationRateLimitedError, [message, code, errorData]);
1933
- _this155.name = 'RateLimited_ReauthenticationRateLimitedError';
1934
- return _this155;
1944
+ _this156 = _callSuper(this, RateLimited_ReauthenticationRateLimitedError, [message, code, errorData]);
1945
+ _this156.name = 'RateLimited_ReauthenticationRateLimitedError';
1946
+ return _this156;
1935
1947
  }
1936
1948
  return (0, _createClass2.default)(RateLimited_ReauthenticationRateLimitedError);
1937
1949
  }(RateLimitedError);
@@ -1939,11 +1951,11 @@ errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_Reauthen
1939
1951
  var RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentRequestsError = /*#__PURE__*/function (_RateLimitedError3) {
1940
1952
  (0, _inherits2.default)(RateLimited_TooManyConcurrentRequestsError, _RateLimitedError3);
1941
1953
  function RateLimited_TooManyConcurrentRequestsError(message, code, errorData) {
1942
- var _this156;
1954
+ var _this157;
1943
1955
  (0, _classCallCheck2.default)(this, RateLimited_TooManyConcurrentRequestsError);
1944
- _this156 = _callSuper(this, RateLimited_TooManyConcurrentRequestsError, [message, code, errorData]);
1945
- _this156.name = 'RateLimited_TooManyConcurrentRequestsError';
1946
- return _this156;
1956
+ _this157 = _callSuper(this, RateLimited_TooManyConcurrentRequestsError, [message, code, errorData]);
1957
+ _this157.name = 'RateLimited_TooManyConcurrentRequestsError';
1958
+ return _this157;
1947
1959
  }
1948
1960
  return (0, _createClass2.default)(RateLimited_TooManyConcurrentRequestsError);
1949
1961
  }(RateLimitedError);
@@ -1951,11 +1963,11 @@ errorClasses.RateLimited_TooManyConcurrentRequestsError = RateLimited_TooManyCon
1951
1963
  var RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyLoginAttemptsError = /*#__PURE__*/function (_RateLimitedError4) {
1952
1964
  (0, _inherits2.default)(RateLimited_TooManyLoginAttemptsError, _RateLimitedError4);
1953
1965
  function RateLimited_TooManyLoginAttemptsError(message, code, errorData) {
1954
- var _this157;
1966
+ var _this158;
1955
1967
  (0, _classCallCheck2.default)(this, RateLimited_TooManyLoginAttemptsError);
1956
- _this157 = _callSuper(this, RateLimited_TooManyLoginAttemptsError, [message, code, errorData]);
1957
- _this157.name = 'RateLimited_TooManyLoginAttemptsError';
1958
- return _this157;
1968
+ _this158 = _callSuper(this, RateLimited_TooManyLoginAttemptsError, [message, code, errorData]);
1969
+ _this158.name = 'RateLimited_TooManyLoginAttemptsError';
1970
+ return _this158;
1959
1971
  }
1960
1972
  return (0, _createClass2.default)(RateLimited_TooManyLoginAttemptsError);
1961
1973
  }(RateLimitedError);
@@ -1963,11 +1975,11 @@ errorClasses.RateLimited_TooManyLoginAttemptsError = RateLimited_TooManyLoginAtt
1963
1975
  var RateLimited_TooManyRequestsError = exports.RateLimited_TooManyRequestsError = /*#__PURE__*/function (_RateLimitedError5) {
1964
1976
  (0, _inherits2.default)(RateLimited_TooManyRequestsError, _RateLimitedError5);
1965
1977
  function RateLimited_TooManyRequestsError(message, code, errorData) {
1966
- var _this158;
1978
+ var _this159;
1967
1979
  (0, _classCallCheck2.default)(this, RateLimited_TooManyRequestsError);
1968
- _this158 = _callSuper(this, RateLimited_TooManyRequestsError, [message, code, errorData]);
1969
- _this158.name = 'RateLimited_TooManyRequestsError';
1970
- return _this158;
1980
+ _this159 = _callSuper(this, RateLimited_TooManyRequestsError, [message, code, errorData]);
1981
+ _this159.name = 'RateLimited_TooManyRequestsError';
1982
+ return _this159;
1971
1983
  }
1972
1984
  return (0, _createClass2.default)(RateLimited_TooManyRequestsError);
1973
1985
  }(RateLimitedError);
@@ -1975,11 +1987,11 @@ errorClasses.RateLimited_TooManyRequestsError = RateLimited_TooManyRequestsError
1975
1987
  var RateLimited_TooManySharesError = exports.RateLimited_TooManySharesError = /*#__PURE__*/function (_RateLimitedError6) {
1976
1988
  (0, _inherits2.default)(RateLimited_TooManySharesError, _RateLimitedError6);
1977
1989
  function RateLimited_TooManySharesError(message, code, errorData) {
1978
- var _this159;
1990
+ var _this160;
1979
1991
  (0, _classCallCheck2.default)(this, RateLimited_TooManySharesError);
1980
- _this159 = _callSuper(this, RateLimited_TooManySharesError, [message, code, errorData]);
1981
- _this159.name = 'RateLimited_TooManySharesError';
1982
- return _this159;
1992
+ _this160 = _callSuper(this, RateLimited_TooManySharesError, [message, code, errorData]);
1993
+ _this160.name = 'RateLimited_TooManySharesError';
1994
+ return _this160;
1983
1995
  }
1984
1996
  return (0, _createClass2.default)(RateLimited_TooManySharesError);
1985
1997
  }(RateLimitedError);
@@ -1987,11 +1999,11 @@ errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError;
1987
1999
  var ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr) {
1988
2000
  (0, _inherits2.default)(ServiceUnavailable_AgentUnavailableError, _ServiceUnavailableEr);
1989
2001
  function ServiceUnavailable_AgentUnavailableError(message, code, errorData) {
1990
- var _this160;
2002
+ var _this161;
1991
2003
  (0, _classCallCheck2.default)(this, ServiceUnavailable_AgentUnavailableError);
1992
- _this160 = _callSuper(this, ServiceUnavailable_AgentUnavailableError, [message, code, errorData]);
1993
- _this160.name = 'ServiceUnavailable_AgentUnavailableError';
1994
- return _this160;
2004
+ _this161 = _callSuper(this, ServiceUnavailable_AgentUnavailableError, [message, code, errorData]);
2005
+ _this161.name = 'ServiceUnavailable_AgentUnavailableError';
2006
+ return _this161;
1995
2007
  }
1996
2008
  return (0, _createClass2.default)(ServiceUnavailable_AgentUnavailableError);
1997
2009
  }(ServiceUnavailableError);
@@ -1999,11 +2011,11 @@ errorClasses.ServiceUnavailable_AgentUnavailableError = ServiceUnavailable_Agent
1999
2011
  var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr2) {
2000
2012
  (0, _inherits2.default)(ServiceUnavailable_AutomationsUnavailableError, _ServiceUnavailableEr2);
2001
2013
  function ServiceUnavailable_AutomationsUnavailableError(message, code, errorData) {
2002
- var _this161;
2014
+ var _this162;
2003
2015
  (0, _classCallCheck2.default)(this, ServiceUnavailable_AutomationsUnavailableError);
2004
- _this161 = _callSuper(this, ServiceUnavailable_AutomationsUnavailableError, [message, code, errorData]);
2005
- _this161.name = 'ServiceUnavailable_AutomationsUnavailableError';
2006
- return _this161;
2016
+ _this162 = _callSuper(this, ServiceUnavailable_AutomationsUnavailableError, [message, code, errorData]);
2017
+ _this162.name = 'ServiceUnavailable_AutomationsUnavailableError';
2018
+ return _this162;
2007
2019
  }
2008
2020
  return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
2009
2021
  }(ServiceUnavailableError);
@@ -2011,11 +2023,11 @@ errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable
2011
2023
  var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
2012
2024
  (0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr3);
2013
2025
  function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
2014
- var _this162;
2026
+ var _this163;
2015
2027
  (0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
2016
- _this162 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2017
- _this162.name = 'ServiceUnavailable_UploadsUnavailableError';
2018
- return _this162;
2028
+ _this163 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2029
+ _this163.name = 'ServiceUnavailable_UploadsUnavailableError';
2030
+ return _this163;
2019
2031
  }
2020
2032
  return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
2021
2033
  }(ServiceUnavailableError);
@@ -2023,11 +2035,11 @@ errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_Upl
2023
2035
  var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
2024
2036
  (0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
2025
2037
  function SiteConfiguration_AccountAlreadyExistsError(message, code, errorData) {
2026
- var _this163;
2038
+ var _this164;
2027
2039
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
2028
- _this163 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2029
- _this163.name = 'SiteConfiguration_AccountAlreadyExistsError';
2030
- return _this163;
2040
+ _this164 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2041
+ _this164.name = 'SiteConfiguration_AccountAlreadyExistsError';
2042
+ return _this164;
2031
2043
  }
2032
2044
  return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
2033
2045
  }(SiteConfigurationError);
@@ -2035,11 +2047,11 @@ errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_Acc
2035
2047
  var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
2036
2048
  (0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
2037
2049
  function SiteConfiguration_AccountOverdueError(message, code, errorData) {
2038
- var _this164;
2050
+ var _this165;
2039
2051
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
2040
- _this164 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2041
- _this164.name = 'SiteConfiguration_AccountOverdueError';
2042
- return _this164;
2052
+ _this165 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2053
+ _this165.name = 'SiteConfiguration_AccountOverdueError';
2054
+ return _this165;
2043
2055
  }
2044
2056
  return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
2045
2057
  }(SiteConfigurationError);
@@ -2047,11 +2059,11 @@ errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOv
2047
2059
  var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
2048
2060
  (0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
2049
2061
  function SiteConfiguration_NoAccountForSiteError(message, code, errorData) {
2050
- var _this165;
2062
+ var _this166;
2051
2063
  (0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
2052
- _this165 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2053
- _this165.name = 'SiteConfiguration_NoAccountForSiteError';
2054
- return _this165;
2064
+ _this166 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2065
+ _this166.name = 'SiteConfiguration_NoAccountForSiteError';
2066
+ return _this166;
2055
2067
  }
2056
2068
  return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
2057
2069
  }(SiteConfigurationError);
@@ -2059,11 +2071,11 @@ errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccou
2059
2071
  var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
2060
2072
  (0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
2061
2073
  function SiteConfiguration_SiteWasRemovedError(message, code, errorData) {
2062
- var _this166;
2074
+ var _this167;
2063
2075
  (0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
2064
- _this166 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2065
- _this166.name = 'SiteConfiguration_SiteWasRemovedError';
2066
- return _this166;
2076
+ _this167 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2077
+ _this167.name = 'SiteConfiguration_SiteWasRemovedError';
2078
+ return _this167;
2067
2079
  }
2068
2080
  return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
2069
2081
  }(SiteConfigurationError);
@@ -2071,11 +2083,11 @@ errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRe
2071
2083
  var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
2072
2084
  (0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
2073
2085
  function SiteConfiguration_TrialExpiredError(message, code, errorData) {
2074
- var _this167;
2086
+ var _this168;
2075
2087
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
2076
- _this167 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2077
- _this167.name = 'SiteConfiguration_TrialExpiredError';
2078
- return _this167;
2088
+ _this168 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2089
+ _this168.name = 'SiteConfiguration_TrialExpiredError';
2090
+ return _this168;
2079
2091
  }
2080
2092
  return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
2081
2093
  }(SiteConfigurationError);
@@ -2083,11 +2095,11 @@ errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpire
2083
2095
  var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
2084
2096
  (0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
2085
2097
  function SiteConfiguration_TrialLockedError(message, code, errorData) {
2086
- var _this168;
2098
+ var _this169;
2087
2099
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
2088
- _this168 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2089
- _this168.name = 'SiteConfiguration_TrialLockedError';
2090
- return _this168;
2100
+ _this169 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2101
+ _this169.name = 'SiteConfiguration_TrialLockedError';
2102
+ return _this169;
2091
2103
  }
2092
2104
  return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
2093
2105
  }(SiteConfigurationError);
@@ -2095,11 +2107,11 @@ errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedE
2095
2107
  var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
2096
2108
  (0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
2097
2109
  function SiteConfiguration_UserRequestsEnabledRequiredError(message, code, errorData) {
2098
- var _this169;
2110
+ var _this170;
2099
2111
  (0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
2100
- _this169 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2101
- _this169.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2102
- return _this169;
2112
+ _this170 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2113
+ _this170.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2114
+ return _this170;
2103
2115
  }
2104
2116
  return (0, _createClass2.default)(SiteConfiguration_UserRequestsEnabledRequiredError);
2105
2117
  }(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.2.1';
14
+ var version = '1.2.3';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -239,7 +239,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
239
239
  (0, _defineProperty2.default)(this, "setRegion", function (value) {
240
240
  _this.attributes.region = value;
241
241
  });
242
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
242
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
243
243
  (0, _defineProperty2.default)(this, "getPermissions", function () {
244
244
  return _this.attributes.permissions;
245
245
  });
@@ -105,7 +105,7 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
105
105
  (0, _defineProperty2.default)(this, "setRegion", function (value) {
106
106
  _this.attributes.region = value;
107
107
  });
108
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
108
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
109
109
  (0, _defineProperty2.default)(this, "getPermissions", function () {
110
110
  return _this.attributes.permissions;
111
111
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -235,6 +235,7 @@ export class ProcessingFailure_SubfolderLockedError extends ProcessingFailureErr
235
235
  export class ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
236
236
  export class ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
237
237
  export class ProcessingFailure_TwoFactorAuthenticationGeneralErrorError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_TwoFactorAuthenticationGeneralErrorError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
238
+ export class ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError
238
239
  export class ProcessingFailure_UpdatesNotAllowedForRemotesError extends ProcessingFailureError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError' } } errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError
239
240
  export class RateLimited_DuplicateShareRecipientError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_DuplicateShareRecipientError' } } errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError
240
241
  export class RateLimited_ReauthenticationRateLimitedError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_ReauthenticationRateLimitedError' } } errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError
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.1'
8
+ const version = '1.2.3'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -382,7 +382,7 @@ class File {
382
382
  this.attributes.region = value
383
383
  }
384
384
 
385
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
385
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
386
386
  getPermissions = () => this.attributes.permissions
387
387
 
388
388
  setPermissions = value => {
@@ -101,7 +101,7 @@ class Folder {
101
101
  this.attributes.region = value
102
102
  }
103
103
 
104
- // string # A short string representing the current user's permissions. Can be `r`,`w`,`d`, `l` or any combination
104
+ // string # A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
105
105
  getPermissions = () => this.attributes.permissions
106
106
 
107
107
  setPermissions = value => {