files.com 1.2.93 → 1.2.95

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.
Files changed (73) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Action.md +1 -1
  3. package/docs/models/AutomationLog.md +1 -1
  4. package/docs/models/BundleAction.md +1 -1
  5. package/docs/models/BundleDownload.md +1 -1
  6. package/docs/models/File.md +1 -1
  7. package/docs/models/FileMigration.md +1 -1
  8. package/docs/models/FileMigrationLog.md +1 -1
  9. package/docs/models/FileUploadPart.md +1 -1
  10. package/docs/models/Folder.md +1 -1
  11. package/docs/models/FtpActionLog.md +1 -1
  12. package/docs/models/History.md +1 -1
  13. package/docs/models/HistoryExportResult.md +1 -1
  14. package/docs/models/InboxUpload.md +1 -1
  15. package/docs/models/Lock.md +1 -1
  16. package/docs/models/Notification.md +1 -1
  17. package/docs/models/OutboundConnectionLog.md +1 -1
  18. package/docs/models/Permission.md +1 -1
  19. package/docs/models/Priority.md +1 -1
  20. package/docs/models/PublicHostingRequestLog.md +1 -1
  21. package/docs/models/RemoteServer.md +5 -2
  22. package/docs/models/Request.md +1 -1
  23. package/docs/models/Style.md +1 -1
  24. package/docs/models/SyncLog.md +1 -1
  25. package/lib/Files.js +1 -1
  26. package/lib/models/Action.js +1 -1
  27. package/lib/models/AutomationLog.js +1 -1
  28. package/lib/models/BundleAction.js +1 -1
  29. package/lib/models/BundleDownload.js +1 -1
  30. package/lib/models/File.js +1 -1
  31. package/lib/models/FileMigration.js +1 -1
  32. package/lib/models/FileMigrationLog.js +1 -1
  33. package/lib/models/FileUploadPart.js +1 -1
  34. package/lib/models/Folder.js +1 -1
  35. package/lib/models/FtpActionLog.js +1 -1
  36. package/lib/models/History.js +1 -1
  37. package/lib/models/HistoryExportResult.js +1 -1
  38. package/lib/models/InboxUpload.js +1 -1
  39. package/lib/models/Lock.js +1 -1
  40. package/lib/models/Notification.js +1 -1
  41. package/lib/models/OutboundConnectionLog.js +1 -1
  42. package/lib/models/Permission.js +1 -1
  43. package/lib/models/Priority.js +1 -1
  44. package/lib/models/PublicHostingRequestLog.js +1 -1
  45. package/lib/models/RemoteServer.js +7 -0
  46. package/lib/models/Request.js +1 -1
  47. package/lib/models/Style.js +1 -1
  48. package/lib/models/SyncLog.js +1 -1
  49. package/package.json +1 -1
  50. package/src/Files.js +1 -1
  51. package/src/models/Action.js +1 -1
  52. package/src/models/AutomationLog.js +1 -1
  53. package/src/models/BundleAction.js +1 -1
  54. package/src/models/BundleDownload.js +1 -1
  55. package/src/models/File.js +1 -1
  56. package/src/models/FileMigration.js +1 -1
  57. package/src/models/FileMigrationLog.js +1 -1
  58. package/src/models/FileUploadPart.js +1 -1
  59. package/src/models/Folder.js +1 -1
  60. package/src/models/FtpActionLog.js +1 -1
  61. package/src/models/History.js +1 -1
  62. package/src/models/HistoryExportResult.js +1 -1
  63. package/src/models/InboxUpload.js +1 -1
  64. package/src/models/Lock.js +1 -1
  65. package/src/models/Notification.js +1 -1
  66. package/src/models/OutboundConnectionLog.js +1 -1
  67. package/src/models/Permission.js +1 -1
  68. package/src/models/Priority.js +1 -1
  69. package/src/models/PublicHostingRequestLog.js +1 -1
  70. package/src/models/RemoteServer.js +7 -0
  71. package/src/models/Request.js +1 -1
  72. package/src/models/Style.js +1 -1
  73. package/src/models/SyncLog.js +1 -1
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.93
1
+ 1.2.95
@@ -23,7 +23,7 @@
23
23
  ```
24
24
 
25
25
  * `id` (int64): Action ID
26
- * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
26
+ * `path` (string): Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
27
  * `when` (date-time): Action occurrence date/time
28
28
  * `destination` (string): The destination path for this action, if applicable
29
29
  * `display` (string): Friendly displayed output
@@ -23,7 +23,7 @@
23
23
  * `error_type` (string): Error type, if applicable
24
24
  * `message` (string): Message
25
25
  * `operation` (string): Operation type
26
- * `path` (string): File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
26
+ * `path` (string): File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
27
  * `status` (string): Status
28
28
 
29
29
  ---
@@ -33,7 +33,7 @@
33
33
  * `bundle_registration` (BundleRegistration): Object that contains bundle registration information
34
34
  * `when` (date-time): Action occurrence date/time
35
35
  * `destination` (string): The destination path for this bundle action, if applicable
36
- * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
36
+ * `path` (string): Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
37
  * `source` (string): The source path for this bundle action, if applicable
38
38
 
39
39
  ---
@@ -13,7 +13,7 @@
13
13
 
14
14
  * `bundle_registration` (BundleRegistration):
15
15
  * `download_method` (string): Download method (file or full_zip)
16
- * `path` (string): Download path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
16
+ * `path` (string): Download path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
17
17
  * `created_at` (date-time): Download date/time
18
18
 
19
19
  ---
@@ -48,7 +48,7 @@
48
48
  }
49
49
  ```
50
50
 
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.
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
52
  * `created_by_id` (int64): User ID of the User who created the file/folder
53
53
  * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
54
54
  * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
@@ -17,7 +17,7 @@
17
17
  ```
18
18
 
19
19
  * `id` (int64): File migration ID
20
- * `path` (string): Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
+ * `path` (string): Source path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
21
21
  * `dest_path` (string): Destination path
22
22
  * `files_moved` (int64): Number of files processed
23
23
  * `files_total` (int64):
@@ -21,7 +21,7 @@
21
21
  * `error_type` (string): Error type, if applicable
22
22
  * `message` (string): Message
23
23
  * `operation` (string): Operation type
24
- * `path` (string): File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
24
+ * `path` (string): File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
25
25
  * `status` (string): Status
26
26
 
27
27
  ---
@@ -42,6 +42,6 @@
42
42
  * `parameters` (object): Additional HTTP parameters to send with the upload
43
43
  * `part_number` (int64): Number of this upload part
44
44
  * `partsize` (int64): Size in bytes for the next upload part
45
- * `path` (string): New file path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
45
+ * `path` (string): New file path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
46
46
  * `ref` (string): Reference name for this upload part
47
47
  * `upload_uri` (string): URI to upload this part to
@@ -48,7 +48,7 @@
48
48
  }
49
49
  ```
50
50
 
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.
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
52
  * `created_by_id` (int64): User ID of the User who created the file/folder
53
53
  * `created_by_api_key_id` (int64): ID of the API key that created the file/folder
54
54
  * `created_by_as2_incoming_message_id` (int64): ID of the AS2 Incoming Message that created the file/folder
@@ -33,7 +33,7 @@
33
33
  * `seq_id` (int64): FTP Sequence ID
34
34
  * `auth_ciphers` (string): Authentication Ciphers
35
35
  * `action_type` (string): Action Type
36
- * `path` (string): Path as sent by the Client (may not match Files.com path due to user root folders for FTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
36
+ * `path` (string): Path as sent by the Client (may not match Files.com path due to user root folders for FTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
37
  * `true_path` (string): Path on Files.com
38
38
  * `name` (string): Name of File
39
39
  * `cmd` (string): FTP Command Name
@@ -23,7 +23,7 @@
23
23
  ```
24
24
 
25
25
  * `id` (int64): Action ID
26
- * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
26
+ * `path` (string): Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
27
  * `when` (date-time): Action occurrence date/time
28
28
  * `destination` (string): The destination path for this action, if applicable
29
29
  * `display` (string): Friendly displayed output
@@ -38,7 +38,7 @@
38
38
  * `user_id` (int64): User ID
39
39
  * `file_id` (int64): File ID related to the action
40
40
  * `parent_id` (int64): ID of the parent folder
41
- * `path` (string): Path of the related action This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
+ * `path` (string): Path of the related action. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
42
42
  * `folder` (string): Folder in which the action occurred
43
43
  * `src` (string): File move originated from this path
44
44
  * `destination` (string): File moved to this destination folder
@@ -11,7 +11,7 @@
11
11
  ```
12
12
 
13
13
  * `inbox_registration` (InboxRegistration):
14
- * `path` (string): Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
14
+ * `path` (string): Upload path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
15
15
  * `created_at` (date-time): Upload date/time
16
16
 
17
17
  ---
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ```
21
21
 
22
- * `path` (string): Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
22
+ * `path` (string): Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
23
23
  * `timeout` (int64): Lock timeout in seconds
24
24
  * `depth` (string):
25
25
  * `recursive` (boolean): Does lock apply to subfolders?
@@ -37,7 +37,7 @@
37
37
  ```
38
38
 
39
39
  * `id` (int64): Notification ID
40
- * `path` (string): Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
+ * `path` (string): Folder path to notify on. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  * `group_id` (int64): ID of Group to receive notifications
42
42
  * `group_name` (string): Group name, if a Group ID is set
43
43
  * `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
@@ -22,7 +22,7 @@
22
22
  ```
23
23
 
24
24
  * `timestamp` (date-time): Start Time of Action
25
- * `path` (string): Remote Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
25
+ * `path` (string): Remote Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
26
26
  * `client_ip` (string): End User IP
27
27
  * `src_remote_server_id` (string): Source Remote Server ID
28
28
  * `dest_remote_server_id` (string): Destination Remote Server ID
@@ -16,7 +16,7 @@
16
16
  ```
17
17
 
18
18
  * `id` (int64): Permission ID
19
- * `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
19
+ * `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
20
  * `user_id` (int64): User ID
21
21
  * `username` (string): User's username
22
22
  * `group_id` (int64): Group ID
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ```
11
11
 
12
- * `path` (string): The path corresponding to the priority color This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
12
+ * `path` (string): The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
13
13
  * `color` (string): The priority color
14
14
 
15
15
  ---
@@ -19,7 +19,7 @@
19
19
  * `remote_ip` (string): IP Address of Public Hosting Client
20
20
  * `server_ip` (string): IP Address of Public Hosting Server
21
21
  * `hostname` (string): HTTP Request Hostname
22
- * `path` (string): HTTP Request Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
22
+ * `path` (string): HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
23
23
  * `responseCode` (int64): HTTP Response Code
24
24
  * `success` (boolean): Whether SFTP Action was successful.
25
25
  * `duration_ms` (int64): Duration (in milliseconds)
@@ -58,7 +58,8 @@
58
58
  "dropbox_teams": true,
59
59
  "linode_bucket": "my-bucket",
60
60
  "linode_access_key": "example",
61
- "linode_region": "us-east-1"
61
+ "linode_region": "us-east-1",
62
+ "supports_versioning": true
62
63
  }
63
64
  ```
64
65
 
@@ -117,6 +118,7 @@
117
118
  * `linode_bucket` (string): Linode Bucket name
118
119
  * `linode_access_key` (string): Linode Access Key.
119
120
  * `linode_region` (string): Linode region
121
+ * `supports_versioning` (boolean): If true, this remote server supports file versioning. This value is determined automatically by Files.com.
120
122
  * `aws_secret_key` (string): AWS secret key.
121
123
  * `password` (string): Password if needed.
122
124
  * `private_key` (string): Private key if needed.
@@ -560,7 +562,8 @@ await remote_server.update({
560
562
  "dropbox_teams": true,
561
563
  "linode_bucket": "my-bucket",
562
564
  "linode_access_key": "example",
563
- "linode_region": "us-east-1"
565
+ "linode_region": "us-east-1",
566
+ "supports_versioning": true
564
567
  }
565
568
  ```
566
569
 
@@ -14,7 +14,7 @@
14
14
  ```
15
15
 
16
16
  * `id` (int64): Request ID
17
- * `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
17
+ * `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
18
18
  * `source` (string): Source filename, if applicable
19
19
  * `destination` (string): Destination filename
20
20
  * `automation_id` (string): ID of automation that created request
@@ -12,7 +12,7 @@
12
12
  ```
13
13
 
14
14
  * `id` (int64): Style ID
15
- * `path` (string): Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
15
+ * `path` (string): Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
16
16
  * `logo` (Image): Logo
17
17
  * `thumbnail` (Image): Logo thumbnail
18
18
  * `file` (file): Logo for custom branding.
@@ -23,7 +23,7 @@
23
23
  * `error_type` (string): Error type, if applicable
24
24
  * `message` (string): Message
25
25
  * `operation` (string): Operation type
26
- * `path` (string): File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
26
+ * `path` (string): File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
27
27
  * `size` (string): File size
28
28
  * `file_type` (string): File type
29
29
  * `status` (string): Status
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.93';
14
+ var version = '1.2.95';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -33,7 +33,7 @@ var Action = /*#__PURE__*/(0, _createClass2.default)(function Action() {
33
33
  (0, _defineProperty2.default)(this, "getId", function () {
34
34
  return _this.attributes.id;
35
35
  });
36
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
36
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
37
  (0, _defineProperty2.default)(this, "getPath", function () {
38
38
  return _this.attributes.path;
39
39
  });
@@ -61,7 +61,7 @@ var AutomationLog = /*#__PURE__*/(0, _createClass2.default)(function AutomationL
61
61
  (0, _defineProperty2.default)(this, "getOperation", function () {
62
62
  return _this.attributes.operation;
63
63
  });
64
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
64
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
65
65
  (0, _defineProperty2.default)(this, "getPath", function () {
66
66
  return _this.attributes.path;
67
67
  });
@@ -49,7 +49,7 @@ var BundleAction = /*#__PURE__*/(0, _createClass2.default)(function BundleAction
49
49
  (0, _defineProperty2.default)(this, "getDestination", function () {
50
50
  return _this.attributes.destination;
51
51
  });
52
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
52
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
53
53
  (0, _defineProperty2.default)(this, "getPath", function () {
54
54
  return _this.attributes.path;
55
55
  });
@@ -41,7 +41,7 @@ var BundleDownload = /*#__PURE__*/(0, _createClass2.default)(function BundleDown
41
41
  (0, _defineProperty2.default)(this, "getDownloadMethod", function () {
42
42
  return _this.attributes.download_method;
43
43
  });
44
- // string # Download path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
+ // string # Download path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
45
45
  (0, _defineProperty2.default)(this, "getPath", function () {
46
46
  return _this.attributes.path;
47
47
  });
@@ -165,7 +165,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
165
165
  return _ref5.apply(this, arguments);
166
166
  };
167
167
  }());
168
- // string # File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
168
+ // string # File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
169
169
  (0, _defineProperty2.default)(this, "getPath", function () {
170
170
  return _this.attributes.path;
171
171
  });
@@ -37,7 +37,7 @@ var FileMigration = /*#__PURE__*/(0, _createClass2.default)(function FileMigrati
37
37
  (0, _defineProperty2.default)(this, "getId", function () {
38
38
  return _this.attributes.id;
39
39
  });
40
- // string # Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
+ // string # Source path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  (0, _defineProperty2.default)(this, "getPath", function () {
42
42
  return _this.attributes.path;
43
43
  });
@@ -57,7 +57,7 @@ var FileMigrationLog = /*#__PURE__*/(0, _createClass2.default)(function FileMigr
57
57
  (0, _defineProperty2.default)(this, "getOperation", function () {
58
58
  return _this.attributes.operation;
59
59
  });
60
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
60
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
61
61
  (0, _defineProperty2.default)(this, "getPath", function () {
62
62
  return _this.attributes.path;
63
63
  });
@@ -81,7 +81,7 @@ var FileUploadPart = /*#__PURE__*/(0, _createClass2.default)(function FileUpload
81
81
  (0, _defineProperty2.default)(this, "getPartsize", function () {
82
82
  return _this.attributes.partsize;
83
83
  });
84
- // string # New file path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
84
+ // string # New file path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
85
85
  (0, _defineProperty2.default)(this, "getPath", function () {
86
86
  return _this.attributes.path;
87
87
  });
@@ -31,7 +31,7 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.path;
33
33
  });
34
- // string # File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  (0, _defineProperty2.default)(this, "getPath", function () {
36
36
  return _this.attributes.path;
37
37
  });
@@ -65,7 +65,7 @@ var FtpActionLog = /*#__PURE__*/(0, _createClass2.default)(function FtpActionLog
65
65
  (0, _defineProperty2.default)(this, "getActionType", function () {
66
66
  return _this.attributes.action_type;
67
67
  });
68
- // string # Path as sent by the Client (may not match Files.com path due to user root folders for FTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
68
+ // string # Path as sent by the Client (may not match Files.com path due to user root folders for FTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
69
69
  (0, _defineProperty2.default)(this, "getPath", function () {
70
70
  return _this.attributes.path;
71
71
  });
@@ -37,7 +37,7 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
37
37
  (0, _defineProperty2.default)(this, "getId", function () {
38
38
  return _this.attributes.id;
39
39
  });
40
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  (0, _defineProperty2.default)(this, "getPath", function () {
42
42
  return _this.attributes.path;
43
43
  });
@@ -57,7 +57,7 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
57
57
  (0, _defineProperty2.default)(this, "getParentId", function () {
58
58
  return _this.attributes.parent_id;
59
59
  });
60
- // string # Path of the related action This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
60
+ // string # Path of the related action. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
61
61
  (0, _defineProperty2.default)(this, "getPath", function () {
62
62
  return _this.attributes.path;
63
63
  });
@@ -37,7 +37,7 @@ var InboxUpload = /*#__PURE__*/(0, _createClass2.default)(function InboxUpload()
37
37
  (0, _defineProperty2.default)(this, "getInboxRegistration", function () {
38
38
  return _this.attributes.inbox_registration;
39
39
  });
40
- // string # Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
+ // string # Upload path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  (0, _defineProperty2.default)(this, "getPath", function () {
42
42
  return _this.attributes.path;
43
43
  });
@@ -33,7 +33,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
33
33
  (0, _defineProperty2.default)(this, "isLoaded", function () {
34
34
  return !!_this.attributes.path;
35
35
  });
36
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
36
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
37
  (0, _defineProperty2.default)(this, "getPath", function () {
38
38
  return _this.attributes.path;
39
39
  });
@@ -40,7 +40,7 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
40
40
  (0, _defineProperty2.default)(this, "setId", function (value) {
41
41
  _this.attributes.id = value;
42
42
  });
43
- // string # Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # Folder path to notify on. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  (0, _defineProperty2.default)(this, "getPath", function () {
45
45
  return _this.attributes.path;
46
46
  });
@@ -37,7 +37,7 @@ var OutboundConnectionLog = /*#__PURE__*/(0, _createClass2.default)(function Out
37
37
  (0, _defineProperty2.default)(this, "getTimestamp", function () {
38
38
  return _this.attributes.timestamp;
39
39
  });
40
- // string # Remote Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
40
+ // string # Remote Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
41
41
  (0, _defineProperty2.default)(this, "getPath", function () {
42
42
  return _this.attributes.path;
43
43
  });
@@ -40,7 +40,7 @@ var Permission = /*#__PURE__*/(0, _createClass2.default)(function Permission() {
40
40
  (0, _defineProperty2.default)(this, "setId", function (value) {
41
41
  _this.attributes.id = value;
42
42
  });
43
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  (0, _defineProperty2.default)(this, "getPath", function () {
45
45
  return _this.attributes.path;
46
46
  });
@@ -33,7 +33,7 @@ var Priority = /*#__PURE__*/(0, _createClass2.default)(function Priority() {
33
33
  (0, _defineProperty2.default)(this, "isLoaded", function () {
34
34
  return !!_this.attributes.path;
35
35
  });
36
- // string # The path corresponding to the priority color This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
36
+ // string # The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
37
  (0, _defineProperty2.default)(this, "getPath", function () {
38
38
  return _this.attributes.path;
39
39
  });
@@ -49,7 +49,7 @@ var PublicHostingRequestLog = /*#__PURE__*/(0, _createClass2.default)(function P
49
49
  (0, _defineProperty2.default)(this, "getHostname", function () {
50
50
  return _this.attributes.hostname;
51
51
  });
52
- // string # HTTP Request Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
52
+ // string # HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
53
53
  (0, _defineProperty2.default)(this, "getPath", function () {
54
54
  return _this.attributes.path;
55
55
  });
@@ -418,6 +418,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
418
418
  (0, _defineProperty2.default)(this, "setLinodeRegion", function (value) {
419
419
  _this.attributes.linode_region = value;
420
420
  });
421
+ // boolean # If true, this remote server supports file versioning. This value is determined automatically by Files.com.
422
+ (0, _defineProperty2.default)(this, "getSupportsVersioning", function () {
423
+ return _this.attributes.supports_versioning;
424
+ });
425
+ (0, _defineProperty2.default)(this, "setSupportsVersioning", function (value) {
426
+ _this.attributes.supports_versioning = value;
427
+ });
421
428
  // string # AWS secret key.
422
429
  (0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
423
430
  return _this.attributes.aws_secret_key;
@@ -40,7 +40,7 @@ var Request = /*#__PURE__*/(0, _createClass2.default)(function Request() {
40
40
  (0, _defineProperty2.default)(this, "setId", function (value) {
41
41
  _this.attributes.id = value;
42
42
  });
43
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  (0, _defineProperty2.default)(this, "getPath", function () {
45
45
  return _this.attributes.path;
46
46
  });
@@ -40,7 +40,7 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
40
40
  (0, _defineProperty2.default)(this, "setId", function (value) {
41
41
  _this.attributes.id = value;
42
42
  });
43
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  (0, _defineProperty2.default)(this, "getPath", function () {
45
45
  return _this.attributes.path;
46
46
  });
@@ -57,7 +57,7 @@ var SyncLog = /*#__PURE__*/(0, _createClass2.default)(function SyncLog() {
57
57
  (0, _defineProperty2.default)(this, "getOperation", function () {
58
58
  return _this.attributes.operation;
59
59
  });
60
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
60
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
61
61
  (0, _defineProperty2.default)(this, "getPath", function () {
62
62
  return _this.attributes.path;
63
63
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.93",
3
+ "version": "1.2.95",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
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.93'
8
+ const version = '1.2.95'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -31,7 +31,7 @@ class Action {
31
31
  // int64 # Action ID
32
32
  getId = () => this.attributes.id
33
33
 
34
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  getPath = () => this.attributes.path
36
36
 
37
37
  // date-time # Action occurrence date/time
@@ -49,7 +49,7 @@ class AutomationLog {
49
49
  // string # Operation type
50
50
  getOperation = () => this.attributes.operation
51
51
 
52
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
52
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
53
53
  getPath = () => this.attributes.path
54
54
 
55
55
  // string # Status
@@ -40,7 +40,7 @@ class BundleAction {
40
40
  // string # The destination path for this bundle action, if applicable
41
41
  getDestination = () => this.attributes.destination
42
42
 
43
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  getPath = () => this.attributes.path
45
45
 
46
46
  // string # The source path for this bundle action, if applicable
@@ -34,7 +34,7 @@ class BundleDownload {
34
34
  // string # Download method (file or full_zip)
35
35
  getDownloadMethod = () => this.attributes.download_method
36
36
 
37
- // string # Download path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
37
+ // string # Download path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
38
38
  getPath = () => this.attributes.path
39
39
 
40
40
  // date-time # Download date/time
@@ -309,7 +309,7 @@ class File {
309
309
  return Api.sendRequest(`/file_actions/move/${encodeURIComponent(this.path)}`, 'POST', params, options)
310
310
  }
311
311
 
312
- // string # File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
312
+ // string # File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
313
313
  getPath = () => this.attributes.path
314
314
 
315
315
  setPath = value => {
@@ -31,7 +31,7 @@ class FileMigration {
31
31
  // int64 # File migration ID
32
32
  getId = () => this.attributes.id
33
33
 
34
- // string # Source path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # Source path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  getPath = () => this.attributes.path
36
36
 
37
37
  // string # Destination path
@@ -46,7 +46,7 @@ class FileMigrationLog {
46
46
  // string # Operation type
47
47
  getOperation = () => this.attributes.operation
48
48
 
49
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
49
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
50
50
  getPath = () => this.attributes.path
51
51
 
52
52
  // string # Status
@@ -67,7 +67,7 @@ class FileUploadPart {
67
67
  // int64 # Size in bytes for the next upload part
68
68
  getPartsize = () => this.attributes.partsize
69
69
 
70
- // string # New file path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
70
+ // string # New file path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
71
71
  getPath = () => this.attributes.path
72
72
 
73
73
  // string # Reference name for this upload part
@@ -28,7 +28,7 @@ class Folder {
28
28
 
29
29
  isLoaded = () => !!this.attributes.path
30
30
 
31
- // string # File/Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
31
+ // string # File/Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
32
32
  getPath = () => this.attributes.path
33
33
 
34
34
  setPath = value => {
@@ -52,7 +52,7 @@ class FtpActionLog {
52
52
  // string # Action Type
53
53
  getActionType = () => this.attributes.action_type
54
54
 
55
- // string # Path as sent by the Client (may not match Files.com path due to user root folders for FTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
55
+ // string # Path as sent by the Client (may not match Files.com path due to user root folders for FTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
56
56
  getPath = () => this.attributes.path
57
57
 
58
58
  // string # Path on Files.com
@@ -31,7 +31,7 @@ class History {
31
31
  // int64 # Action ID
32
32
  getId = () => this.attributes.id
33
33
 
34
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  getPath = () => this.attributes.path
36
36
 
37
37
  // date-time # Action occurrence date/time
@@ -46,7 +46,7 @@ class HistoryExportResult {
46
46
  // int64 # ID of the parent folder
47
47
  getParentId = () => this.attributes.parent_id
48
48
 
49
- // string # Path of the related action This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
49
+ // string # Path of the related action. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
50
50
  getPath = () => this.attributes.path
51
51
 
52
52
  // string # Folder in which the action occurred
@@ -31,7 +31,7 @@ class InboxUpload {
31
31
  // InboxRegistration
32
32
  getInboxRegistration = () => this.attributes.inbox_registration
33
33
 
34
- // string # Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # Upload path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  getPath = () => this.attributes.path
36
36
 
37
37
  // date-time # Upload date/time
@@ -28,7 +28,7 @@ class Lock {
28
28
 
29
29
  isLoaded = () => !!this.attributes.path
30
30
 
31
- // string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
31
+ // string # Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
32
32
  getPath = () => this.attributes.path
33
33
 
34
34
  setPath = value => {
@@ -35,7 +35,7 @@ class Notification {
35
35
  this.attributes.id = value
36
36
  }
37
37
 
38
- // string # Folder path to notify on This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
38
+ // string # Folder path to notify on. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
39
39
  getPath = () => this.attributes.path
40
40
 
41
41
  setPath = value => {
@@ -31,7 +31,7 @@ class OutboundConnectionLog {
31
31
  // date-time # Start Time of Action
32
32
  getTimestamp = () => this.attributes.timestamp
33
33
 
34
- // string # Remote Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
34
+ // string # Remote Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
35
35
  getPath = () => this.attributes.path
36
36
 
37
37
  // string # End User IP
@@ -35,7 +35,7 @@ class Permission {
35
35
  this.attributes.id = value
36
36
  }
37
37
 
38
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
38
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
39
39
  getPath = () => this.attributes.path
40
40
 
41
41
  setPath = value => {
@@ -28,7 +28,7 @@ class Priority {
28
28
 
29
29
  isLoaded = () => !!this.attributes.path
30
30
 
31
- // string # The path corresponding to the priority color This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
31
+ // string # The path corresponding to the priority color. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
32
32
  getPath = () => this.attributes.path
33
33
 
34
34
  // string # The priority color
@@ -40,7 +40,7 @@ class PublicHostingRequestLog {
40
40
  // string # HTTP Request Hostname
41
41
  getHostname = () => this.attributes.hostname
42
42
 
43
- // string # HTTP Request Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
43
+ // string # HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  getPath = () => this.attributes.path
45
45
 
46
46
  // int64 # HTTP Response Code
@@ -413,6 +413,13 @@ class RemoteServer {
413
413
  this.attributes.linode_region = value
414
414
  }
415
415
 
416
+ // boolean # If true, this remote server supports file versioning. This value is determined automatically by Files.com.
417
+ getSupportsVersioning = () => this.attributes.supports_versioning
418
+
419
+ setSupportsVersioning = value => {
420
+ this.attributes.supports_versioning = value
421
+ }
422
+
416
423
  // string # AWS secret key.
417
424
  getAwsSecretKey = () => this.attributes.aws_secret_key
418
425
 
@@ -35,7 +35,7 @@ class Request {
35
35
  this.attributes.id = value
36
36
  }
37
37
 
38
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
38
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
39
39
  getPath = () => this.attributes.path
40
40
 
41
41
  setPath = value => {
@@ -35,7 +35,7 @@ class Style {
35
35
  this.attributes.id = value
36
36
  }
37
37
 
38
- // string # Folder path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
38
+ // string # Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
39
39
  getPath = () => this.attributes.path
40
40
 
41
41
  setPath = value => {
@@ -46,7 +46,7 @@ class SyncLog {
46
46
  // string # Operation type
47
47
  getOperation = () => this.attributes.operation
48
48
 
49
- // string # File path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
49
+ // string # File path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
50
50
  getPath = () => this.attributes.path
51
51
 
52
52
  // string # File size