files.com 1.2.72 → 1.2.74

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 CHANGED
@@ -1 +1 @@
1
- 1.2.72
1
+ 1.2.74
package/docs/Errors.md CHANGED
@@ -201,6 +201,8 @@ These errors are derived from the error groups listed above.
201
201
  ### RateLimited_TooManySharesError
202
202
  ### ServiceUnavailable_AgentUnavailableError
203
203
  ### ServiceUnavailable_AutomationsUnavailableError
204
+ ### ServiceUnavailable_MigrationInProgressError
205
+ ### ServiceUnavailable_SiteDisabledError
204
206
  ### ServiceUnavailable_UploadsUnavailableError
205
207
  ### SiteConfiguration_AccountAlreadyExistsError
206
208
  ### SiteConfiguration_AccountOverdueError
@@ -18,6 +18,7 @@
18
18
  "api_name": "example",
19
19
  "user_agent": "example",
20
20
  "error_type": "example",
21
+ "error_message": "example",
21
22
  "response_code": 1,
22
23
  "success": true,
23
24
  "duration_ms": 1
@@ -38,6 +39,7 @@
38
39
  * `api_name` (string): Name of API Endpoint
39
40
  * `user_agent` (string): User-Agent
40
41
  * `error_type` (string): Error type, if applicable
42
+ * `error_message` (string): Error message, if applicable
41
43
  * `response_code` (int64): HTTP Response Code
42
44
  * `success` (boolean): `false` if HTTP Response Code is 4xx or 5xx
43
45
  * `duration_ms` (int64): Duration (in milliseconds)
@@ -5,10 +5,27 @@
5
5
  ```
6
6
  {
7
7
  "path": "path/file.txt",
8
+ "created_by_id": 1,
9
+ "created_by_api_key_id": 1,
10
+ "created_by_as2_incoming_message_id": 1,
11
+ "created_by_automation_id": 1,
12
+ "created_by_bundle_registration_id": 1,
13
+ "created_by_inbox_id": 1,
14
+ "created_by_remote_server_id": 1,
15
+ "created_by_remote_server_sync_id": 1,
16
+ "custom_metadata": {
17
+ "key": "value"
18
+ },
8
19
  "display_name": "file.txt",
9
20
  "type": "file",
10
21
  "size": 1024,
11
22
  "created_at": "2000-01-01T01:00:00Z",
23
+ "last_modified_by_id": 1,
24
+ "last_modified_by_api_key_id": 1,
25
+ "last_modified_by_automation_id": 1,
26
+ "last_modified_by_bundle_registration_id": 1,
27
+ "last_modified_by_remote_server_id": 1,
28
+ "last_modified_by_remote_server_sync_id": 1,
12
29
  "mtime": "2000-01-01T01:00:00Z",
13
30
  "provided_mtime": "2000-01-01T01:00:00Z",
14
31
  "crc32": "70976923",
@@ -32,10 +49,25 @@
32
49
  ```
33
50
 
34
51
  * `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
52
+ * `created_by_id` (int64): User ID of the User who created the file/folder
53
+ * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
54
+ * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
55
+ * `created_by_automation_id` (int64): ID of the Automation that created the file/folder
56
+ * `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
57
+ * `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
58
+ * `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
59
+ * `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
60
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
35
61
  * `display_name` (string): File/Folder display name
36
62
  * `type` (string): Type: `directory` or `file`.
37
63
  * `size` (int64): File/Folder size
38
64
  * `created_at` (date-time): File created date/time
65
+ * `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
66
+ * `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
67
+ * `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
68
+ * `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
69
+ * `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
70
+ * `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
39
71
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
40
72
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
41
73
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
@@ -140,10 +172,27 @@ await file.download({
140
172
  ```json
141
173
  {
142
174
  "path": "path/file.txt",
175
+ "created_by_id": 1,
176
+ "created_by_api_key_id": 1,
177
+ "created_by_as2_incoming_message_id": 1,
178
+ "created_by_automation_id": 1,
179
+ "created_by_bundle_registration_id": 1,
180
+ "created_by_inbox_id": 1,
181
+ "created_by_remote_server_id": 1,
182
+ "created_by_remote_server_sync_id": 1,
183
+ "custom_metadata": {
184
+ "key": "value"
185
+ },
143
186
  "display_name": "file.txt",
144
187
  "type": "file",
145
188
  "size": 1024,
146
189
  "created_at": "2000-01-01T01:00:00Z",
190
+ "last_modified_by_id": 1,
191
+ "last_modified_by_api_key_id": 1,
192
+ "last_modified_by_automation_id": 1,
193
+ "last_modified_by_bundle_registration_id": 1,
194
+ "last_modified_by_remote_server_id": 1,
195
+ "last_modified_by_remote_server_sync_id": 1,
147
196
  "mtime": "2000-01-01T01:00:00Z",
148
197
  "provided_mtime": "2000-01-01T01:00:00Z",
149
198
  "crc32": "70976923",
@@ -175,6 +224,7 @@ const file = new File()
175
224
  file.path = myFilePath
176
225
 
177
226
  await file.update({
227
+ 'custom_metadata': {"key":"value"},
178
228
  'provided_mtime': "2000-01-01T01:00:00Z",
179
229
  'priority_color': "red",
180
230
  })
@@ -183,6 +233,7 @@ await file.update({
183
233
  ### Parameters
184
234
 
185
235
  * `path` (string): Required - Path to operate on.
236
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
186
237
  * `provided_mtime` (string): Modified time of file.
187
238
  * `priority_color` (string): Priority/Bookmark color of file.
188
239
 
@@ -191,10 +242,27 @@ await file.update({
191
242
  ```json
192
243
  {
193
244
  "path": "path/file.txt",
245
+ "created_by_id": 1,
246
+ "created_by_api_key_id": 1,
247
+ "created_by_as2_incoming_message_id": 1,
248
+ "created_by_automation_id": 1,
249
+ "created_by_bundle_registration_id": 1,
250
+ "created_by_inbox_id": 1,
251
+ "created_by_remote_server_id": 1,
252
+ "created_by_remote_server_sync_id": 1,
253
+ "custom_metadata": {
254
+ "key": "value"
255
+ },
194
256
  "display_name": "file.txt",
195
257
  "type": "file",
196
258
  "size": 1024,
197
259
  "created_at": "2000-01-01T01:00:00Z",
260
+ "last_modified_by_id": 1,
261
+ "last_modified_by_api_key_id": 1,
262
+ "last_modified_by_automation_id": 1,
263
+ "last_modified_by_bundle_registration_id": 1,
264
+ "last_modified_by_remote_server_id": 1,
265
+ "last_modified_by_remote_server_sync_id": 1,
198
266
  "mtime": "2000-01-01T01:00:00Z",
199
267
  "provided_mtime": "2000-01-01T01:00:00Z",
200
268
  "crc32": "70976923",
@@ -5,10 +5,27 @@
5
5
  ```
6
6
  {
7
7
  "path": "path/file.txt",
8
+ "created_by_id": 1,
9
+ "created_by_api_key_id": 1,
10
+ "created_by_as2_incoming_message_id": 1,
11
+ "created_by_automation_id": 1,
12
+ "created_by_bundle_registration_id": 1,
13
+ "created_by_inbox_id": 1,
14
+ "created_by_remote_server_id": 1,
15
+ "created_by_remote_server_sync_id": 1,
16
+ "custom_metadata": {
17
+ "key": "value"
18
+ },
8
19
  "display_name": "file.txt",
9
20
  "type": "file",
10
21
  "size": 1024,
11
22
  "created_at": "2000-01-01T01:00:00Z",
23
+ "last_modified_by_id": 1,
24
+ "last_modified_by_api_key_id": 1,
25
+ "last_modified_by_automation_id": 1,
26
+ "last_modified_by_bundle_registration_id": 1,
27
+ "last_modified_by_remote_server_id": 1,
28
+ "last_modified_by_remote_server_sync_id": 1,
12
29
  "mtime": "2000-01-01T01:00:00Z",
13
30
  "provided_mtime": "2000-01-01T01:00:00Z",
14
31
  "crc32": "70976923",
@@ -32,10 +49,25 @@
32
49
  ```
33
50
 
34
51
  * `path` (string): File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
52
+ * `created_by_id` (int64): User ID of the User who created the file/folder
53
+ * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
54
+ * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
55
+ * `created_by_automation_id` (int64): ID of the Automation that created the file/folder
56
+ * `created_by_bundle_registration_id` (int64): ID of the Bundle Registration that created the file/folder
57
+ * `created_by_inbox_id` (int64): ID of the Inbox that created the file/folder
58
+ * `created_by_remote_server_id` (int64): ID of the Remote Server that created the file/folder
59
+ * `created_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that created the file/folder
60
+ * `custom_metadata` (object): Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
35
61
  * `display_name` (string): File/Folder display name
36
62
  * `type` (string): Type: `directory` or `file`.
37
63
  * `size` (int64): File/Folder size
38
64
  * `created_at` (date-time): File created date/time
65
+ * `last_modified_by_id` (int64): User ID of the User who last modified the file/folder
66
+ * `last_modified_by_api_key_id` (int64): ID of the API key that last modified the file/folder
67
+ * `last_modified_by_automation_id` (int64): ID of the Automation that last modified the file/folder
68
+ * `last_modified_by_bundle_registration_id` (int64): ID of the Bundle Registration that last modified the file/folder
69
+ * `last_modified_by_remote_server_id` (int64): ID of the Remote Server that last modified the file/folder
70
+ * `last_modified_by_remote_server_sync_id` (int64): ID of the Remote Server Sync that last modified the file/folder
39
71
  * `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
40
72
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
41
73
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
package/lib/Errors.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
5
  exports.NotFound_ApiKeyNotFoundError = exports.NotFoundError = exports.NotAuthorized_ZipDownloadIpMismatchError = exports.NotAuthorized_WritePermissionRequiredError = exports.NotAuthorized_WriteAndBundlePermissionRequiredError = exports.NotAuthorized_UserIdWithoutSiteAdminError = exports.NotAuthorized_TwoFactorAuthenticationRequiredError = exports.NotAuthorized_SiteFilesAreImmutableError = exports.NotAuthorized_SiteAdminRequiredError = exports.NotAuthorized_SelfManagedRequiredError = exports.NotAuthorized_RecaptchaFailedError = exports.NotAuthorized_ReauthenticationNeededActionError = exports.NotAuthorized_ReauthenticationFailedFinalError = exports.NotAuthorized_ReauthenticationFailedError = exports.NotAuthorized_ReadPermissionRequiredError = exports.NotAuthorized_ReadOnlySessionError = exports.NotAuthorized_PasswordChangeRequiredError = exports.NotAuthorized_PasswordChangeNotRequiredError = exports.NotAuthorized_NotAllowedToCreateBundleError = exports.NotAuthorized_NonAdminsMustQueryByFolderOrPathError = exports.NotAuthorized_NeedAdminPermissionForInboxError = exports.NotAuthorized_MustAuthenticateWithApiKeyError = exports.NotAuthorized_InsufficientPermissionForParamsError = exports.NotAuthorized_HistoryPermissionRequiredError = exports.NotAuthorized_FullPermissionRequiredError = exports.NotAuthorized_FolderAdminPermissionRequiredError = exports.NotAuthorized_FolderAdminOrBillingPermissionRequiredError = exports.NotAuthorized_FilesAgentFailedAuthorizationError = exports.NotAuthorized_ContactAdminForPasswordChangeHelpError = exports.NotAuthorized_CantActForOtherUserError = exports.NotAuthorized_CannotLoginWhileUsingKeyError = exports.NotAuthorized_BundleMaximumUsesReachedError = exports.NotAuthorized_BillingPermissionRequiredError = exports.NotAuthorized_ApiKeyOnlyForOfficeIntegrationError = exports.NotAuthorized_ApiKeyOnlyForMobileAppError = exports.NotAuthorized_ApiKeyOnlyForDesktopAppError = exports.NotAuthorized_ApiKeyIsPathRestrictedError = exports.NotAuthorized_ApiKeyIsDisabledError = exports.NotAuthorizedError = exports.NotAuthenticated_TwoFactorAuthenticationSetupExpiredError = exports.NotAuthenticated_TwoFactorAuthenticationErrorError = exports.NotAuthenticated_OneTimePasswordIncorrectError = exports.NotAuthenticated_LockoutRegionMismatchError = exports.NotAuthenticated_LockedOutError = exports.NotAuthenticated_InvalidUsernameOrPasswordError = exports.NotAuthenticated_InvalidOrExpiredCodeError = exports.NotAuthenticated_InvalidOauthError = exports.NotAuthenticated_InvalidCredentialsError = exports.NotAuthenticated_InboxRegistrationCodeFailedError = exports.NotAuthenticated_FilesAgentTokenFailedError = exports.NotAuthenticated_BundleRegistrationCodeFailedError = exports.NotAuthenticated_AuthenticationRequiredError = exports.NotAuthenticated_AdditionalAuthenticationRequiredError = exports.NotAuthenticatedError = exports.MissingParameterError = exports.InvalidParameterError = exports.FilesError = exports.FilesApiError = exports.EmptyPropertyError = exports.ConfigurationError = exports.BadRequest_UserRequiredError = exports.BadRequest_UserIdOnUserEndpointError = exports.BadRequest_UserIdInvalidError = exports.BadRequest_UnsupportedMediaTypeError = exports.BadRequest_UnsupportedHttpResponseFormatError = exports.BadRequest_UnsupportedCurrencyError = exports.BadRequest_SearchAllOnChildPathError = exports.BadRequest_RequestParamsRequiredError = exports.BadRequest_RequestParamsInvalidError = exports.BadRequest_RequestParamsContainInvalidCharacterError = exports.BadRequest_ReauthenticationNeededFieldsError = exports.BadRequest_PathCannotHaveTrailingWhitespaceError = exports.BadRequest_PartNumberTooLargeError = exports.BadRequest_NoValidInputParamsError = exports.BadRequest_MethodNotAllowedError = exports.BadRequest_InvalidUploadPartSizeError = exports.BadRequest_InvalidUploadPartGapError = exports.BadRequest_InvalidUploadOffsetError = exports.BadRequest_InvalidReturnToUrlError = exports.BadRequest_InvalidPathError = exports.BadRequest_InvalidOauthProviderError = exports.BadRequest_InvalidInterfaceError = exports.BadRequest_InvalidInputEncodingError = exports.BadRequest_InvalidFilterParamValueError = exports.BadRequest_InvalidFilterParamError = exports.BadRequest_InvalidFilterFieldError = exports.BadRequest_InvalidFilterCombinationError = exports.BadRequest_InvalidFilterAliasCombinationError = exports.BadRequest_InvalidEtagsError = exports.BadRequest_InvalidCursorTypeForSortError = exports.BadRequest_InvalidCursorError = exports.BadRequest_InvalidBodyError = exports.BadRequest_FolderMustNotBeAFileError = exports.BadRequest_DestinationSameError = exports.BadRequest_DatetimeParseError = exports.BadRequest_CantMoveWithMultipleLocationsError = exports.BadRequest_CannotDownloadDirectoryError = exports.BadRequest_AttachmentTooLargeError = exports.BadRequest_AgentUpgradeRequiredError = exports.BadRequestError = void 0;
6
- exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentLoginsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidPriorityColorError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FilenameTooLongError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FileProcessingErrorError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_BehaviorNotAllowedOnRemoteServerError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailure_AlreadyCompletedError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = void 0;
6
+ exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_SiteDisabledError = exports.ServiceUnavailable_MigrationInProgressError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AgentUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentLoginsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationUnsubscribedRecipientError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidPriorityColorError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FilenameTooLongError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FileProcessingErrorError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_BehaviorNotAllowedOnRemoteServerError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailure_AlreadyCompletedError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = void 0;
7
7
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
8
8
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
@@ -2104,25 +2104,49 @@ var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_
2104
2104
  return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
2105
2105
  }(ServiceUnavailableError);
2106
2106
  errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError;
2107
- var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
2108
- function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
2107
+ var ServiceUnavailable_MigrationInProgressError = exports.ServiceUnavailable_MigrationInProgressError = /*#__PURE__*/function (_ServiceUnavailableEr3) {
2108
+ function ServiceUnavailable_MigrationInProgressError(message, code, errorData) {
2109
2109
  var _this170;
2110
- (0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
2111
- _this170 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2112
- _this170.name = 'ServiceUnavailable_UploadsUnavailableError';
2110
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_MigrationInProgressError);
2111
+ _this170 = _callSuper(this, ServiceUnavailable_MigrationInProgressError, [message, code, errorData]);
2112
+ _this170.name = 'ServiceUnavailable_MigrationInProgressError';
2113
2113
  return _this170;
2114
2114
  }
2115
- (0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr3);
2115
+ (0, _inherits2.default)(ServiceUnavailable_MigrationInProgressError, _ServiceUnavailableEr3);
2116
+ return (0, _createClass2.default)(ServiceUnavailable_MigrationInProgressError);
2117
+ }(ServiceUnavailableError);
2118
+ errorClasses.ServiceUnavailable_MigrationInProgressError = ServiceUnavailable_MigrationInProgressError;
2119
+ var ServiceUnavailable_SiteDisabledError = exports.ServiceUnavailable_SiteDisabledError = /*#__PURE__*/function (_ServiceUnavailableEr4) {
2120
+ function ServiceUnavailable_SiteDisabledError(message, code, errorData) {
2121
+ var _this171;
2122
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_SiteDisabledError);
2123
+ _this171 = _callSuper(this, ServiceUnavailable_SiteDisabledError, [message, code, errorData]);
2124
+ _this171.name = 'ServiceUnavailable_SiteDisabledError';
2125
+ return _this171;
2126
+ }
2127
+ (0, _inherits2.default)(ServiceUnavailable_SiteDisabledError, _ServiceUnavailableEr4);
2128
+ return (0, _createClass2.default)(ServiceUnavailable_SiteDisabledError);
2129
+ }(ServiceUnavailableError);
2130
+ errorClasses.ServiceUnavailable_SiteDisabledError = ServiceUnavailable_SiteDisabledError;
2131
+ var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr5) {
2132
+ function ServiceUnavailable_UploadsUnavailableError(message, code, errorData) {
2133
+ var _this172;
2134
+ (0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
2135
+ _this172 = _callSuper(this, ServiceUnavailable_UploadsUnavailableError, [message, code, errorData]);
2136
+ _this172.name = 'ServiceUnavailable_UploadsUnavailableError';
2137
+ return _this172;
2138
+ }
2139
+ (0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr5);
2116
2140
  return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
2117
2141
  }(ServiceUnavailableError);
2118
2142
  errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError;
2119
2143
  var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
2120
2144
  function SiteConfiguration_AccountAlreadyExistsError(message, code, errorData) {
2121
- var _this171;
2145
+ var _this173;
2122
2146
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
2123
- _this171 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2124
- _this171.name = 'SiteConfiguration_AccountAlreadyExistsError';
2125
- return _this171;
2147
+ _this173 = _callSuper(this, SiteConfiguration_AccountAlreadyExistsError, [message, code, errorData]);
2148
+ _this173.name = 'SiteConfiguration_AccountAlreadyExistsError';
2149
+ return _this173;
2126
2150
  }
2127
2151
  (0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
2128
2152
  return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
@@ -2130,11 +2154,11 @@ var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_Acco
2130
2154
  errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError;
2131
2155
  var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
2132
2156
  function SiteConfiguration_AccountOverdueError(message, code, errorData) {
2133
- var _this172;
2157
+ var _this174;
2134
2158
  (0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
2135
- _this172 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2136
- _this172.name = 'SiteConfiguration_AccountOverdueError';
2137
- return _this172;
2159
+ _this174 = _callSuper(this, SiteConfiguration_AccountOverdueError, [message, code, errorData]);
2160
+ _this174.name = 'SiteConfiguration_AccountOverdueError';
2161
+ return _this174;
2138
2162
  }
2139
2163
  (0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
2140
2164
  return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
@@ -2142,11 +2166,11 @@ var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOve
2142
2166
  errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError;
2143
2167
  var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
2144
2168
  function SiteConfiguration_NoAccountForSiteError(message, code, errorData) {
2145
- var _this173;
2169
+ var _this175;
2146
2170
  (0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
2147
- _this173 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2148
- _this173.name = 'SiteConfiguration_NoAccountForSiteError';
2149
- return _this173;
2171
+ _this175 = _callSuper(this, SiteConfiguration_NoAccountForSiteError, [message, code, errorData]);
2172
+ _this175.name = 'SiteConfiguration_NoAccountForSiteError';
2173
+ return _this175;
2150
2174
  }
2151
2175
  (0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
2152
2176
  return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
@@ -2154,11 +2178,11 @@ var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccoun
2154
2178
  errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccountForSiteError;
2155
2179
  var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
2156
2180
  function SiteConfiguration_SiteWasRemovedError(message, code, errorData) {
2157
- var _this174;
2181
+ var _this176;
2158
2182
  (0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
2159
- _this174 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2160
- _this174.name = 'SiteConfiguration_SiteWasRemovedError';
2161
- return _this174;
2183
+ _this176 = _callSuper(this, SiteConfiguration_SiteWasRemovedError, [message, code, errorData]);
2184
+ _this176.name = 'SiteConfiguration_SiteWasRemovedError';
2185
+ return _this176;
2162
2186
  }
2163
2187
  (0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
2164
2188
  return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
@@ -2166,11 +2190,11 @@ var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRem
2166
2190
  errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRemovedError;
2167
2191
  var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
2168
2192
  function SiteConfiguration_TrialExpiredError(message, code, errorData) {
2169
- var _this175;
2193
+ var _this177;
2170
2194
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
2171
- _this175 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2172
- _this175.name = 'SiteConfiguration_TrialExpiredError';
2173
- return _this175;
2195
+ _this177 = _callSuper(this, SiteConfiguration_TrialExpiredError, [message, code, errorData]);
2196
+ _this177.name = 'SiteConfiguration_TrialExpiredError';
2197
+ return _this177;
2174
2198
  }
2175
2199
  (0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
2176
2200
  return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
@@ -2178,11 +2202,11 @@ var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpired
2178
2202
  errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpiredError;
2179
2203
  var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
2180
2204
  function SiteConfiguration_TrialLockedError(message, code, errorData) {
2181
- var _this176;
2205
+ var _this178;
2182
2206
  (0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
2183
- _this176 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2184
- _this176.name = 'SiteConfiguration_TrialLockedError';
2185
- return _this176;
2207
+ _this178 = _callSuper(this, SiteConfiguration_TrialLockedError, [message, code, errorData]);
2208
+ _this178.name = 'SiteConfiguration_TrialLockedError';
2209
+ return _this178;
2186
2210
  }
2187
2211
  (0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
2188
2212
  return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
@@ -2190,11 +2214,11 @@ var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedEr
2190
2214
  errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedError;
2191
2215
  var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
2192
2216
  function SiteConfiguration_UserRequestsEnabledRequiredError(message, code, errorData) {
2193
- var _this177;
2217
+ var _this179;
2194
2218
  (0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
2195
- _this177 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2196
- _this177.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2197
- return _this177;
2219
+ _this179 = _callSuper(this, SiteConfiguration_UserRequestsEnabledRequiredError, [message, code, errorData]);
2220
+ _this179.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
2221
+ return _this179;
2198
2222
  }
2199
2223
  (0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
2200
2224
  return (0, _createClass2.default)(SiteConfiguration_UserRequestsEnabledRequiredError);
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.72';
14
+ var version = '1.2.74';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -89,6 +89,10 @@ var ApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ApiRequestL
89
89
  (0, _defineProperty2.default)(this, "getErrorType", function () {
90
90
  return _this.attributes.error_type;
91
91
  });
92
+ // string # Error message, if applicable
93
+ (0, _defineProperty2.default)(this, "getErrorMessage", function () {
94
+ return _this.attributes.error_message;
95
+ });
92
96
  // int64 # HTTP Response Code
93
97
  (0, _defineProperty2.default)(this, "getResponseCode", function () {
94
98
  return _this.attributes.response_code;
@@ -172,6 +172,69 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
172
172
  (0, _defineProperty2.default)(this, "setPath", function (value) {
173
173
  _this.attributes.path = value;
174
174
  });
175
+ // int64 # User ID of the User who created the file/folder
176
+ (0, _defineProperty2.default)(this, "getCreatedById", function () {
177
+ return _this.attributes.created_by_id;
178
+ });
179
+ (0, _defineProperty2.default)(this, "setCreatedById", function (value) {
180
+ _this.attributes.created_by_id = value;
181
+ });
182
+ // int64 # ID of the API key that created the file/folder
183
+ (0, _defineProperty2.default)(this, "getCreatedByApiKeyId", function () {
184
+ return _this.attributes.created_by_api_key_id;
185
+ });
186
+ (0, _defineProperty2.default)(this, "setCreatedByApiKeyId", function (value) {
187
+ _this.attributes.created_by_api_key_id = value;
188
+ });
189
+ // int64 # ID of the AS2 Incoming Message that created the file/folder
190
+ (0, _defineProperty2.default)(this, "getCreatedByAs2IncomingMessageId", function () {
191
+ return _this.attributes.created_by_as2_incoming_message_id;
192
+ });
193
+ (0, _defineProperty2.default)(this, "setCreatedByAs2IncomingMessageId", function (value) {
194
+ _this.attributes.created_by_as2_incoming_message_id = value;
195
+ });
196
+ // int64 # ID of the Automation that created the file/folder
197
+ (0, _defineProperty2.default)(this, "getCreatedByAutomationId", function () {
198
+ return _this.attributes.created_by_automation_id;
199
+ });
200
+ (0, _defineProperty2.default)(this, "setCreatedByAutomationId", function (value) {
201
+ _this.attributes.created_by_automation_id = value;
202
+ });
203
+ // int64 # ID of the Bundle Registration that created the file/folder
204
+ (0, _defineProperty2.default)(this, "getCreatedByBundleRegistrationId", function () {
205
+ return _this.attributes.created_by_bundle_registration_id;
206
+ });
207
+ (0, _defineProperty2.default)(this, "setCreatedByBundleRegistrationId", function (value) {
208
+ _this.attributes.created_by_bundle_registration_id = value;
209
+ });
210
+ // int64 # ID of the Inbox that created the file/folder
211
+ (0, _defineProperty2.default)(this, "getCreatedByInboxId", function () {
212
+ return _this.attributes.created_by_inbox_id;
213
+ });
214
+ (0, _defineProperty2.default)(this, "setCreatedByInboxId", function (value) {
215
+ _this.attributes.created_by_inbox_id = value;
216
+ });
217
+ // int64 # ID of the Remote Server that created the file/folder
218
+ (0, _defineProperty2.default)(this, "getCreatedByRemoteServerId", function () {
219
+ return _this.attributes.created_by_remote_server_id;
220
+ });
221
+ (0, _defineProperty2.default)(this, "setCreatedByRemoteServerId", function (value) {
222
+ _this.attributes.created_by_remote_server_id = value;
223
+ });
224
+ // int64 # ID of the Remote Server Sync that created the file/folder
225
+ (0, _defineProperty2.default)(this, "getCreatedByRemoteServerSyncId", function () {
226
+ return _this.attributes.created_by_remote_server_sync_id;
227
+ });
228
+ (0, _defineProperty2.default)(this, "setCreatedByRemoteServerSyncId", function (value) {
229
+ _this.attributes.created_by_remote_server_sync_id = value;
230
+ });
231
+ // object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
232
+ (0, _defineProperty2.default)(this, "getCustomMetadata", function () {
233
+ return _this.attributes.custom_metadata;
234
+ });
235
+ (0, _defineProperty2.default)(this, "setCustomMetadata", function (value) {
236
+ _this.attributes.custom_metadata = value;
237
+ });
175
238
  // string # File/Folder display name
176
239
  (0, _defineProperty2.default)(this, "getDisplayName", function () {
177
240
  return _this.attributes.display_name;
@@ -197,6 +260,48 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
197
260
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
198
261
  return _this.attributes.created_at;
199
262
  });
263
+ // int64 # User ID of the User who last modified the file/folder
264
+ (0, _defineProperty2.default)(this, "getLastModifiedById", function () {
265
+ return _this.attributes.last_modified_by_id;
266
+ });
267
+ (0, _defineProperty2.default)(this, "setLastModifiedById", function (value) {
268
+ _this.attributes.last_modified_by_id = value;
269
+ });
270
+ // int64 # ID of the API key that last modified the file/folder
271
+ (0, _defineProperty2.default)(this, "getLastModifiedByApiKeyId", function () {
272
+ return _this.attributes.last_modified_by_api_key_id;
273
+ });
274
+ (0, _defineProperty2.default)(this, "setLastModifiedByApiKeyId", function (value) {
275
+ _this.attributes.last_modified_by_api_key_id = value;
276
+ });
277
+ // int64 # ID of the Automation that last modified the file/folder
278
+ (0, _defineProperty2.default)(this, "getLastModifiedByAutomationId", function () {
279
+ return _this.attributes.last_modified_by_automation_id;
280
+ });
281
+ (0, _defineProperty2.default)(this, "setLastModifiedByAutomationId", function (value) {
282
+ _this.attributes.last_modified_by_automation_id = value;
283
+ });
284
+ // int64 # ID of the Bundle Registration that last modified the file/folder
285
+ (0, _defineProperty2.default)(this, "getLastModifiedByBundleRegistrationId", function () {
286
+ return _this.attributes.last_modified_by_bundle_registration_id;
287
+ });
288
+ (0, _defineProperty2.default)(this, "setLastModifiedByBundleRegistrationId", function (value) {
289
+ _this.attributes.last_modified_by_bundle_registration_id = value;
290
+ });
291
+ // int64 # ID of the Remote Server that last modified the file/folder
292
+ (0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerId", function () {
293
+ return _this.attributes.last_modified_by_remote_server_id;
294
+ });
295
+ (0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerId", function (value) {
296
+ _this.attributes.last_modified_by_remote_server_id = value;
297
+ });
298
+ // int64 # ID of the Remote Server Sync that last modified the file/folder
299
+ (0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerSyncId", function () {
300
+ return _this.attributes.last_modified_by_remote_server_sync_id;
301
+ });
302
+ (0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerSyncId", function (value) {
303
+ _this.attributes.last_modified_by_remote_server_sync_id = value;
304
+ });
200
305
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
201
306
  (0, _defineProperty2.default)(this, "getMtime", function () {
202
307
  return _this.attributes.mtime;
@@ -423,6 +528,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
423
528
  }, _callee6);
424
529
  })));
425
530
  // Parameters:
531
+ // custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
426
532
  // provided_mtime - string - Modified time of file.
427
533
  // priority_color - string - Priority/Bookmark color of file.
428
534
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
@@ -38,6 +38,69 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
38
38
  (0, _defineProperty2.default)(this, "setPath", function (value) {
39
39
  _this.attributes.path = value;
40
40
  });
41
+ // int64 # User ID of the User who created the file/folder
42
+ (0, _defineProperty2.default)(this, "getCreatedById", function () {
43
+ return _this.attributes.created_by_id;
44
+ });
45
+ (0, _defineProperty2.default)(this, "setCreatedById", function (value) {
46
+ _this.attributes.created_by_id = value;
47
+ });
48
+ // int64 # ID of the API key that created the file/folder
49
+ (0, _defineProperty2.default)(this, "getCreatedByApiKeyId", function () {
50
+ return _this.attributes.created_by_api_key_id;
51
+ });
52
+ (0, _defineProperty2.default)(this, "setCreatedByApiKeyId", function (value) {
53
+ _this.attributes.created_by_api_key_id = value;
54
+ });
55
+ // int64 # ID of the AS2 Incoming Message that created the file/folder
56
+ (0, _defineProperty2.default)(this, "getCreatedByAs2IncomingMessageId", function () {
57
+ return _this.attributes.created_by_as2_incoming_message_id;
58
+ });
59
+ (0, _defineProperty2.default)(this, "setCreatedByAs2IncomingMessageId", function (value) {
60
+ _this.attributes.created_by_as2_incoming_message_id = value;
61
+ });
62
+ // int64 # ID of the Automation that created the file/folder
63
+ (0, _defineProperty2.default)(this, "getCreatedByAutomationId", function () {
64
+ return _this.attributes.created_by_automation_id;
65
+ });
66
+ (0, _defineProperty2.default)(this, "setCreatedByAutomationId", function (value) {
67
+ _this.attributes.created_by_automation_id = value;
68
+ });
69
+ // int64 # ID of the Bundle Registration that created the file/folder
70
+ (0, _defineProperty2.default)(this, "getCreatedByBundleRegistrationId", function () {
71
+ return _this.attributes.created_by_bundle_registration_id;
72
+ });
73
+ (0, _defineProperty2.default)(this, "setCreatedByBundleRegistrationId", function (value) {
74
+ _this.attributes.created_by_bundle_registration_id = value;
75
+ });
76
+ // int64 # ID of the Inbox that created the file/folder
77
+ (0, _defineProperty2.default)(this, "getCreatedByInboxId", function () {
78
+ return _this.attributes.created_by_inbox_id;
79
+ });
80
+ (0, _defineProperty2.default)(this, "setCreatedByInboxId", function (value) {
81
+ _this.attributes.created_by_inbox_id = value;
82
+ });
83
+ // int64 # ID of the Remote Server that created the file/folder
84
+ (0, _defineProperty2.default)(this, "getCreatedByRemoteServerId", function () {
85
+ return _this.attributes.created_by_remote_server_id;
86
+ });
87
+ (0, _defineProperty2.default)(this, "setCreatedByRemoteServerId", function (value) {
88
+ _this.attributes.created_by_remote_server_id = value;
89
+ });
90
+ // int64 # ID of the Remote Server Sync that created the file/folder
91
+ (0, _defineProperty2.default)(this, "getCreatedByRemoteServerSyncId", function () {
92
+ return _this.attributes.created_by_remote_server_sync_id;
93
+ });
94
+ (0, _defineProperty2.default)(this, "setCreatedByRemoteServerSyncId", function (value) {
95
+ _this.attributes.created_by_remote_server_sync_id = value;
96
+ });
97
+ // object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
98
+ (0, _defineProperty2.default)(this, "getCustomMetadata", function () {
99
+ return _this.attributes.custom_metadata;
100
+ });
101
+ (0, _defineProperty2.default)(this, "setCustomMetadata", function (value) {
102
+ _this.attributes.custom_metadata = value;
103
+ });
41
104
  // string # File/Folder display name
42
105
  (0, _defineProperty2.default)(this, "getDisplayName", function () {
43
106
  return _this.attributes.display_name;
@@ -63,6 +126,48 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
63
126
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
64
127
  return _this.attributes.created_at;
65
128
  });
129
+ // int64 # User ID of the User who last modified the file/folder
130
+ (0, _defineProperty2.default)(this, "getLastModifiedById", function () {
131
+ return _this.attributes.last_modified_by_id;
132
+ });
133
+ (0, _defineProperty2.default)(this, "setLastModifiedById", function (value) {
134
+ _this.attributes.last_modified_by_id = value;
135
+ });
136
+ // int64 # ID of the API key that last modified the file/folder
137
+ (0, _defineProperty2.default)(this, "getLastModifiedByApiKeyId", function () {
138
+ return _this.attributes.last_modified_by_api_key_id;
139
+ });
140
+ (0, _defineProperty2.default)(this, "setLastModifiedByApiKeyId", function (value) {
141
+ _this.attributes.last_modified_by_api_key_id = value;
142
+ });
143
+ // int64 # ID of the Automation that last modified the file/folder
144
+ (0, _defineProperty2.default)(this, "getLastModifiedByAutomationId", function () {
145
+ return _this.attributes.last_modified_by_automation_id;
146
+ });
147
+ (0, _defineProperty2.default)(this, "setLastModifiedByAutomationId", function (value) {
148
+ _this.attributes.last_modified_by_automation_id = value;
149
+ });
150
+ // int64 # ID of the Bundle Registration that last modified the file/folder
151
+ (0, _defineProperty2.default)(this, "getLastModifiedByBundleRegistrationId", function () {
152
+ return _this.attributes.last_modified_by_bundle_registration_id;
153
+ });
154
+ (0, _defineProperty2.default)(this, "setLastModifiedByBundleRegistrationId", function (value) {
155
+ _this.attributes.last_modified_by_bundle_registration_id = value;
156
+ });
157
+ // int64 # ID of the Remote Server that last modified the file/folder
158
+ (0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerId", function () {
159
+ return _this.attributes.last_modified_by_remote_server_id;
160
+ });
161
+ (0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerId", function (value) {
162
+ _this.attributes.last_modified_by_remote_server_id = value;
163
+ });
164
+ // int64 # ID of the Remote Server Sync that last modified the file/folder
165
+ (0, _defineProperty2.default)(this, "getLastModifiedByRemoteServerSyncId", function () {
166
+ return _this.attributes.last_modified_by_remote_server_sync_id;
167
+ });
168
+ (0, _defineProperty2.default)(this, "setLastModifiedByRemoteServerSyncId", function (value) {
169
+ _this.attributes.last_modified_by_remote_server_sync_id = value;
170
+ });
66
171
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
67
172
  (0, _defineProperty2.default)(this, "getMtime", function () {
68
173
  return _this.attributes.mtime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.72",
3
+ "version": "1.2.74",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -252,6 +252,8 @@ export class RateLimited_TooManyRequestsError extends RateLimitedError { constru
252
252
  export class RateLimited_TooManySharesError extends RateLimitedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'RateLimited_TooManySharesError' } } errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError
253
253
  export class ServiceUnavailable_AgentUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_AgentUnavailableError' } } errorClasses.ServiceUnavailable_AgentUnavailableError = ServiceUnavailable_AgentUnavailableError
254
254
  export class ServiceUnavailable_AutomationsUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_AutomationsUnavailableError' } } errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError
255
+ export class ServiceUnavailable_MigrationInProgressError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_MigrationInProgressError' } } errorClasses.ServiceUnavailable_MigrationInProgressError = ServiceUnavailable_MigrationInProgressError
256
+ export class ServiceUnavailable_SiteDisabledError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_SiteDisabledError' } } errorClasses.ServiceUnavailable_SiteDisabledError = ServiceUnavailable_SiteDisabledError
255
257
  export class ServiceUnavailable_UploadsUnavailableError extends ServiceUnavailableError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'ServiceUnavailable_UploadsUnavailableError' } } errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError
256
258
  export class SiteConfiguration_AccountAlreadyExistsError extends SiteConfigurationError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'SiteConfiguration_AccountAlreadyExistsError' } } errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError
257
259
  export class SiteConfiguration_AccountOverdueError extends SiteConfigurationError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'SiteConfiguration_AccountOverdueError' } } errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.72'
8
+ const version = '1.2.74'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -70,6 +70,9 @@ class ApiRequestLog {
70
70
  // string # Error type, if applicable
71
71
  getErrorType = () => this.attributes.error_type
72
72
 
73
+ // string # Error message, if applicable
74
+ getErrorMessage = () => this.attributes.error_message
75
+
73
76
  // int64 # HTTP Response Code
74
77
  getResponseCode = () => this.attributes.response_code
75
78
 
@@ -316,6 +316,69 @@ class File {
316
316
  this.attributes.path = value
317
317
  }
318
318
 
319
+ // int64 # User ID of the User who created the file/folder
320
+ getCreatedById = () => this.attributes.created_by_id
321
+
322
+ setCreatedById = value => {
323
+ this.attributes.created_by_id = value
324
+ }
325
+
326
+ // int64 # ID of the API key that created the file/folder
327
+ getCreatedByApiKeyId = () => this.attributes.created_by_api_key_id
328
+
329
+ setCreatedByApiKeyId = value => {
330
+ this.attributes.created_by_api_key_id = value
331
+ }
332
+
333
+ // int64 # ID of the AS2 Incoming Message that created the file/folder
334
+ getCreatedByAs2IncomingMessageId = () => this.attributes.created_by_as2_incoming_message_id
335
+
336
+ setCreatedByAs2IncomingMessageId = value => {
337
+ this.attributes.created_by_as2_incoming_message_id = value
338
+ }
339
+
340
+ // int64 # ID of the Automation that created the file/folder
341
+ getCreatedByAutomationId = () => this.attributes.created_by_automation_id
342
+
343
+ setCreatedByAutomationId = value => {
344
+ this.attributes.created_by_automation_id = value
345
+ }
346
+
347
+ // int64 # ID of the Bundle Registration that created the file/folder
348
+ getCreatedByBundleRegistrationId = () => this.attributes.created_by_bundle_registration_id
349
+
350
+ setCreatedByBundleRegistrationId = value => {
351
+ this.attributes.created_by_bundle_registration_id = value
352
+ }
353
+
354
+ // int64 # ID of the Inbox that created the file/folder
355
+ getCreatedByInboxId = () => this.attributes.created_by_inbox_id
356
+
357
+ setCreatedByInboxId = value => {
358
+ this.attributes.created_by_inbox_id = value
359
+ }
360
+
361
+ // int64 # ID of the Remote Server that created the file/folder
362
+ getCreatedByRemoteServerId = () => this.attributes.created_by_remote_server_id
363
+
364
+ setCreatedByRemoteServerId = value => {
365
+ this.attributes.created_by_remote_server_id = value
366
+ }
367
+
368
+ // int64 # ID of the Remote Server Sync that created the file/folder
369
+ getCreatedByRemoteServerSyncId = () => this.attributes.created_by_remote_server_sync_id
370
+
371
+ setCreatedByRemoteServerSyncId = value => {
372
+ this.attributes.created_by_remote_server_sync_id = value
373
+ }
374
+
375
+ // object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
376
+ getCustomMetadata = () => this.attributes.custom_metadata
377
+
378
+ setCustomMetadata = value => {
379
+ this.attributes.custom_metadata = value
380
+ }
381
+
319
382
  // string # File/Folder display name
320
383
  getDisplayName = () => this.attributes.display_name
321
384
 
@@ -340,6 +403,48 @@ class File {
340
403
  // date-time # File created date/time
341
404
  getCreatedAt = () => this.attributes.created_at
342
405
 
406
+ // int64 # User ID of the User who last modified the file/folder
407
+ getLastModifiedById = () => this.attributes.last_modified_by_id
408
+
409
+ setLastModifiedById = value => {
410
+ this.attributes.last_modified_by_id = value
411
+ }
412
+
413
+ // int64 # ID of the API key that last modified the file/folder
414
+ getLastModifiedByApiKeyId = () => this.attributes.last_modified_by_api_key_id
415
+
416
+ setLastModifiedByApiKeyId = value => {
417
+ this.attributes.last_modified_by_api_key_id = value
418
+ }
419
+
420
+ // int64 # ID of the Automation that last modified the file/folder
421
+ getLastModifiedByAutomationId = () => this.attributes.last_modified_by_automation_id
422
+
423
+ setLastModifiedByAutomationId = value => {
424
+ this.attributes.last_modified_by_automation_id = value
425
+ }
426
+
427
+ // int64 # ID of the Bundle Registration that last modified the file/folder
428
+ getLastModifiedByBundleRegistrationId = () => this.attributes.last_modified_by_bundle_registration_id
429
+
430
+ setLastModifiedByBundleRegistrationId = value => {
431
+ this.attributes.last_modified_by_bundle_registration_id = value
432
+ }
433
+
434
+ // int64 # ID of the Remote Server that last modified the file/folder
435
+ getLastModifiedByRemoteServerId = () => this.attributes.last_modified_by_remote_server_id
436
+
437
+ setLastModifiedByRemoteServerId = value => {
438
+ this.attributes.last_modified_by_remote_server_id = value
439
+ }
440
+
441
+ // int64 # ID of the Remote Server Sync that last modified the file/folder
442
+ getLastModifiedByRemoteServerSyncId = () => this.attributes.last_modified_by_remote_server_sync_id
443
+
444
+ setLastModifiedByRemoteServerSyncId = value => {
445
+ this.attributes.last_modified_by_remote_server_sync_id = value
446
+ }
447
+
343
448
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
344
449
  getMtime = () => this.attributes.mtime
345
450
 
@@ -537,6 +642,7 @@ class File {
537
642
  }
538
643
 
539
644
  // Parameters:
645
+ // custom_metadata - object - Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
540
646
  // provided_mtime - string - Modified time of file.
541
647
  // priority_color - string - Priority/Bookmark color of file.
542
648
  update = async (params = {}) => {
@@ -35,6 +35,69 @@ class Folder {
35
35
  this.attributes.path = value
36
36
  }
37
37
 
38
+ // int64 # User ID of the User who created the file/folder
39
+ getCreatedById = () => this.attributes.created_by_id
40
+
41
+ setCreatedById = value => {
42
+ this.attributes.created_by_id = value
43
+ }
44
+
45
+ // int64 # ID of the API key that created the file/folder
46
+ getCreatedByApiKeyId = () => this.attributes.created_by_api_key_id
47
+
48
+ setCreatedByApiKeyId = value => {
49
+ this.attributes.created_by_api_key_id = value
50
+ }
51
+
52
+ // int64 # ID of the AS2 Incoming Message that created the file/folder
53
+ getCreatedByAs2IncomingMessageId = () => this.attributes.created_by_as2_incoming_message_id
54
+
55
+ setCreatedByAs2IncomingMessageId = value => {
56
+ this.attributes.created_by_as2_incoming_message_id = value
57
+ }
58
+
59
+ // int64 # ID of the Automation that created the file/folder
60
+ getCreatedByAutomationId = () => this.attributes.created_by_automation_id
61
+
62
+ setCreatedByAutomationId = value => {
63
+ this.attributes.created_by_automation_id = value
64
+ }
65
+
66
+ // int64 # ID of the Bundle Registration that created the file/folder
67
+ getCreatedByBundleRegistrationId = () => this.attributes.created_by_bundle_registration_id
68
+
69
+ setCreatedByBundleRegistrationId = value => {
70
+ this.attributes.created_by_bundle_registration_id = value
71
+ }
72
+
73
+ // int64 # ID of the Inbox that created the file/folder
74
+ getCreatedByInboxId = () => this.attributes.created_by_inbox_id
75
+
76
+ setCreatedByInboxId = value => {
77
+ this.attributes.created_by_inbox_id = value
78
+ }
79
+
80
+ // int64 # ID of the Remote Server that created the file/folder
81
+ getCreatedByRemoteServerId = () => this.attributes.created_by_remote_server_id
82
+
83
+ setCreatedByRemoteServerId = value => {
84
+ this.attributes.created_by_remote_server_id = value
85
+ }
86
+
87
+ // int64 # ID of the Remote Server Sync that created the file/folder
88
+ getCreatedByRemoteServerSyncId = () => this.attributes.created_by_remote_server_sync_id
89
+
90
+ setCreatedByRemoteServerSyncId = value => {
91
+ this.attributes.created_by_remote_server_sync_id = value
92
+ }
93
+
94
+ // object # Custom metadata map of keys and values. Limited to 32 keys, 256 characters per key and 1024 characters per value.
95
+ getCustomMetadata = () => this.attributes.custom_metadata
96
+
97
+ setCustomMetadata = value => {
98
+ this.attributes.custom_metadata = value
99
+ }
100
+
38
101
  // string # File/Folder display name
39
102
  getDisplayName = () => this.attributes.display_name
40
103
 
@@ -59,6 +122,48 @@ class Folder {
59
122
  // date-time # File created date/time
60
123
  getCreatedAt = () => this.attributes.created_at
61
124
 
125
+ // int64 # User ID of the User who last modified the file/folder
126
+ getLastModifiedById = () => this.attributes.last_modified_by_id
127
+
128
+ setLastModifiedById = value => {
129
+ this.attributes.last_modified_by_id = value
130
+ }
131
+
132
+ // int64 # ID of the API key that last modified the file/folder
133
+ getLastModifiedByApiKeyId = () => this.attributes.last_modified_by_api_key_id
134
+
135
+ setLastModifiedByApiKeyId = value => {
136
+ this.attributes.last_modified_by_api_key_id = value
137
+ }
138
+
139
+ // int64 # ID of the Automation that last modified the file/folder
140
+ getLastModifiedByAutomationId = () => this.attributes.last_modified_by_automation_id
141
+
142
+ setLastModifiedByAutomationId = value => {
143
+ this.attributes.last_modified_by_automation_id = value
144
+ }
145
+
146
+ // int64 # ID of the Bundle Registration that last modified the file/folder
147
+ getLastModifiedByBundleRegistrationId = () => this.attributes.last_modified_by_bundle_registration_id
148
+
149
+ setLastModifiedByBundleRegistrationId = value => {
150
+ this.attributes.last_modified_by_bundle_registration_id = value
151
+ }
152
+
153
+ // int64 # ID of the Remote Server that last modified the file/folder
154
+ getLastModifiedByRemoteServerId = () => this.attributes.last_modified_by_remote_server_id
155
+
156
+ setLastModifiedByRemoteServerId = value => {
157
+ this.attributes.last_modified_by_remote_server_id = value
158
+ }
159
+
160
+ // int64 # ID of the Remote Server Sync that last modified the file/folder
161
+ getLastModifiedByRemoteServerSyncId = () => this.attributes.last_modified_by_remote_server_sync_id
162
+
163
+ setLastModifiedByRemoteServerSyncId = value => {
164
+ this.attributes.last_modified_by_remote_server_sync_id = value
165
+ }
166
+
62
167
  // date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
63
168
  getMtime = () => this.attributes.mtime
64
169