files.com 1.2.308 → 1.2.310

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.308
1
+ 1.2.310
@@ -8,6 +8,18 @@
8
8
  "enabled": true,
9
9
  "fall": 1,
10
10
  "health_check_enabled": true,
11
+ "health_check_results": [
12
+ {
13
+ "timestamp": "2025-09-19T12:32:52+00:00",
14
+ "status": "healthy",
15
+ "canary_timestamp": "2025-09-19T12:32:52+00:00"
16
+ },
17
+ {
18
+ "status": "failed",
19
+ "reason": "Unable to connect",
20
+ "timestamp": "2025-09-19T12:32:52+00:00"
21
+ }
22
+ ],
11
23
  "health_check_type": "active",
12
24
  "id": 1,
13
25
  "interval": 60,
@@ -27,6 +39,7 @@
27
39
  * `enabled` (boolean): True if this backend is enabled.
28
40
  * `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
29
41
  * `health_check_enabled` (boolean): True if health checks are enabled for this backend.
42
+ * `health_check_results` (array(object)): Array of recent health check results.
30
43
  * `health_check_type` (string): Type of health check to perform.
31
44
  * `id` (int64): Unique identifier for this backend.
32
45
  * `interval` (int64): Interval in seconds between health checks.
@@ -169,6 +182,18 @@ await remote_mount_backend.update({
169
182
  "enabled": true,
170
183
  "fall": 1,
171
184
  "health_check_enabled": true,
185
+ "health_check_results": [
186
+ {
187
+ "timestamp": "2025-09-19T12:32:52+00:00",
188
+ "status": "healthy",
189
+ "canary_timestamp": "2025-09-19T12:32:52+00:00"
190
+ },
191
+ {
192
+ "status": "failed",
193
+ "reason": "Unable to connect",
194
+ "timestamp": "2025-09-19T12:32:52+00:00"
195
+ }
196
+ ],
172
197
  "health_check_type": "active",
173
198
  "id": 1,
174
199
  "interval": 60,
@@ -68,8 +68,12 @@ await SyncRun.list({
68
68
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
69
69
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
70
70
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
71
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id` or `created_at`.
72
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `dry_run` or `sync_id`. Valid field combinations are `[ sync_id, status ]`.
71
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id`, `created_at` or `status`.
72
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `status`, `dry_run`, `src_remote_server_type`, `dest_remote_server_type` or `sync_id`. Valid field combinations are `[ status, created_at ]`, `[ src_remote_server_type, created_at ]`, `[ dest_remote_server_type, created_at ]`, `[ sync_id, created_at ]`, `[ src_remote_server_type, status ]`, `[ dest_remote_server_type, status ]`, `[ sync_id, status ]`, `[ src_remote_server_type, status, created_at ]`, `[ dest_remote_server_type, status, created_at ]` or `[ sync_id, status, created_at ]`.
73
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
74
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
75
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
76
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
73
77
 
74
78
  ---
75
79
 
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.308';
15
+ var version = '1.2.310';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -60,6 +60,13 @@ var RemoteMountBackend = /*#__PURE__*/(0, _createClass2.default)(function Remote
60
60
  (0, _defineProperty2.default)(this, "setHealthCheckEnabled", function (value) {
61
61
  _this.attributes.health_check_enabled = value;
62
62
  });
63
+ // array(object) # Array of recent health check results.
64
+ (0, _defineProperty2.default)(this, "getHealthCheckResults", function () {
65
+ return _this.attributes.health_check_results;
66
+ });
67
+ (0, _defineProperty2.default)(this, "setHealthCheckResults", function (value) {
68
+ _this.attributes.health_check_results = value;
69
+ });
63
70
  // string # Type of health check to perform.
64
71
  (0, _defineProperty2.default)(this, "getHealthCheckType", function () {
65
72
  return _this.attributes.health_check_type;
@@ -134,8 +134,12 @@ _SyncRun = SyncRun;
134
134
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
135
135
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
136
136
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
137
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id` or `created_at`.
138
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `dry_run` or `sync_id`. Valid field combinations are `[ sync_id, status ]`.
137
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id`, `created_at` or `status`.
138
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `status`, `dry_run`, `src_remote_server_type`, `dest_remote_server_type` or `sync_id`. Valid field combinations are `[ status, created_at ]`, `[ src_remote_server_type, created_at ]`, `[ dest_remote_server_type, created_at ]`, `[ sync_id, created_at ]`, `[ src_remote_server_type, status ]`, `[ dest_remote_server_type, status ]`, `[ sync_id, status ]`, `[ src_remote_server_type, status, created_at ]`, `[ dest_remote_server_type, status, created_at ]` or `[ sync_id, status, created_at ]`.
139
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
140
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
141
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
142
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
139
143
  (0, _defineProperty2.default)(SyncRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
140
144
  var _response$data;
141
145
  var params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.308",
3
+ "version": "1.2.310",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.308'
9
+ const version = '1.2.310'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -56,6 +56,13 @@ class RemoteMountBackend {
56
56
  this.attributes.health_check_enabled = value
57
57
  }
58
58
 
59
+ // array(object) # Array of recent health check results.
60
+ getHealthCheckResults = () => this.attributes.health_check_results
61
+
62
+ setHealthCheckResults = value => {
63
+ this.attributes.health_check_results = value
64
+ }
65
+
59
66
  // string # Type of health check to perform.
60
67
  getHealthCheckType = () => this.attributes.health_check_type
61
68
 
@@ -95,8 +95,12 @@ class SyncRun {
95
95
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
96
96
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
97
97
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
98
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id` or `created_at`.
99
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `dry_run` or `sync_id`. Valid field combinations are `[ sync_id, status ]`.
98
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `sync_id`, `created_at` or `status`.
99
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `status`, `dry_run`, `src_remote_server_type`, `dest_remote_server_type` or `sync_id`. Valid field combinations are `[ status, created_at ]`, `[ src_remote_server_type, created_at ]`, `[ dest_remote_server_type, created_at ]`, `[ sync_id, created_at ]`, `[ src_remote_server_type, status ]`, `[ dest_remote_server_type, status ]`, `[ sync_id, status ]`, `[ src_remote_server_type, status, created_at ]`, `[ dest_remote_server_type, status, created_at ]` or `[ sync_id, status, created_at ]`.
100
+ // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
101
+ // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
102
+ // filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
103
+ // filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
100
104
  static list = async (params = {}, options = {}) => {
101
105
  if (params.user_id && !isInt(params.user_id)) {
102
106
  throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)