files.com 1.2.320 → 1.2.322

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.320
1
+ 1.2.322
@@ -10,6 +10,9 @@
10
10
  "created_at": "2000-01-01T01:00:00Z",
11
11
  "expires_at": "2000-01-01T01:00:00Z",
12
12
  "key": "[key]",
13
+ "aws_style_credentials": true,
14
+ "aws_access_key_id": "[aws_access_key_id]",
15
+ "aws_secret_key": "[aws_secret_key]",
13
16
  "last_use_at": "2000-01-01T01:00:00Z",
14
17
  "name": "My Main API Key",
15
18
  "permission_set": "full",
@@ -25,6 +28,9 @@
25
28
  * `created_at` (date-time): Time which API Key was created
26
29
  * `expires_at` (date-time): API Key expiration date
27
30
  * `key` (string): API Key actual key string
31
+ * `aws_style_credentials` (boolean): If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
32
+ * `aws_access_key_id` (string): AWS Access Key ID to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
33
+ * `aws_secret_key` (string): AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
28
34
  * `last_use_at` (date-time): API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
29
35
  * `name` (string): Internal name for the API Key. For your use.
30
36
  * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
@@ -89,6 +95,7 @@ await ApiKey.create({
89
95
  'expires_at': "2000-01-01T01:00:00Z",
90
96
  'permission_set': "full",
91
97
  'name': "My Main API Key",
98
+ 'aws_style_credentials': true,
92
99
  'path': "shared/docs",
93
100
  })
94
101
  ```
@@ -101,6 +108,7 @@ await ApiKey.create({
101
108
  * `expires_at` (string): API Key expiration date
102
109
  * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
103
110
  * `name` (string): Required - Internal name for the API Key. For your use.
111
+ * `aws_style_credentials` (boolean): If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
104
112
  * `path` (string): Folder path restriction for `office_integration` permission set API keys.
105
113
 
106
114
  ---
@@ -164,6 +172,9 @@ await api_key.update({
164
172
  "created_at": "2000-01-01T01:00:00Z",
165
173
  "expires_at": "2000-01-01T01:00:00Z",
166
174
  "key": "[key]",
175
+ "aws_style_credentials": true,
176
+ "aws_access_key_id": "[aws_access_key_id]",
177
+ "aws_secret_key": "[aws_secret_key]",
167
178
  "last_use_at": "2000-01-01T01:00:00Z",
168
179
  "name": "My Main API Key",
169
180
  "permission_set": "full",
@@ -38,7 +38,7 @@
38
38
  * `end_at` (date-time): End date/time of export range.
39
39
  * `status` (string): Status of export. Will be: `building`, `ready`, or `failed`
40
40
  * `query_action` (string): Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
41
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
41
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
42
42
  * `query_user_id` (string): Return results that are actions performed by the user indicated by this User ID
43
43
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
44
44
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -110,7 +110,7 @@ await HistoryExport.create({
110
110
  * `start_at` (string): Start date/time of export range.
111
111
  * `end_at` (string): End date/time of export range.
112
112
  * `query_action` (string): Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
113
- * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
113
+ * `query_interface` (string): Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
114
114
  * `query_user_id` (string): Return results that are actions performed by the user indicated by this User ID
115
115
  * `query_file_id` (string): Return results that are file actions related to the file indicated by this File ID
116
116
  * `query_parent_id` (string): Return results that are file actions inside the parent folder specified by this folder ID
@@ -48,7 +48,7 @@
48
48
  * `user_is_from_parent_site` (boolean): true if this change was performed by a user on a parent site.
49
49
  * `action` (string): What action was taken. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
50
50
  * `failure_type` (string): The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`, `insecure_ftp`, `insecure_cipher`, `rate_limited`
51
- * `interface` (string): Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
51
+ * `interface` (string): Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
52
52
  * `target_id` (int64): ID of the object (such as Users, or API Keys) on which the action was taken
53
53
  * `target_name` (string): Name of the User, Group or other object with a name related to this action
54
54
  * `target_permission` (string): Permission level of the action
@@ -162,6 +162,7 @@
162
162
  "session": {
163
163
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
164
164
  "language": "en",
165
+ "aws_secret_key": "example",
165
166
  "login_token": "@tok-randomcode",
166
167
  "login_token_domain": "https://mysite.files.com",
167
168
  "max_dir_listing_size": 1,
@@ -43,26 +43,27 @@
43
43
  "holiday_region": "us_dc",
44
44
  "latest_sync_run": {
45
45
  "id": 1,
46
- "sync_id": 1,
47
- "site_id": 1,
48
- "status": "example",
49
- "src_remote_server_type": "example",
50
- "dest_remote_server_type": "example",
51
46
  "body": "example",
52
- "event_errors": [
53
- "example"
54
- ],
47
+ "bytes_synced": 1,
55
48
  "compared_files": 1,
56
49
  "compared_folders": 1,
57
- "errored_files": 1,
58
- "successful_files": 1,
59
- "runtime": 1.0,
60
- "log_url": "https://www.example.com/log_file.txt",
61
50
  "completed_at": "2000-01-01T01:00:00Z",
51
+ "created_at": "2000-01-01T01:00:00Z",
52
+ "dest_remote_server_type": "example",
62
53
  "dry_run": true,
63
- "bytes_synced": 1,
54
+ "errored_files": 1,
64
55
  "estimated_bytes_count": 1,
65
- "created_at": "2000-01-01T01:00:00Z",
56
+ "event_errors": [
57
+ "example"
58
+ ],
59
+ "log_url": "https://www.example.com/log_file.txt",
60
+ "runtime": 1.0,
61
+ "site_id": 1,
62
+ "src_remote_server_type": "example",
63
+ "status": "example",
64
+ "successful_files": 1,
65
+ "sync_id": 1,
66
+ "sync_name": "Azure to SharePoint Sync",
66
67
  "updated_at": "2000-01-01T01:00:00Z"
67
68
  }
68
69
  }
@@ -296,26 +297,27 @@ await sync.update({
296
297
  "holiday_region": "us_dc",
297
298
  "latest_sync_run": {
298
299
  "id": 1,
299
- "sync_id": 1,
300
- "site_id": 1,
301
- "status": "example",
302
- "src_remote_server_type": "example",
303
- "dest_remote_server_type": "example",
304
300
  "body": "example",
305
- "event_errors": [
306
- "example"
307
- ],
301
+ "bytes_synced": 1,
308
302
  "compared_files": 1,
309
303
  "compared_folders": 1,
310
- "errored_files": 1,
311
- "successful_files": 1,
312
- "runtime": 1.0,
313
- "log_url": "https://www.example.com/log_file.txt",
314
304
  "completed_at": "2000-01-01T01:00:00Z",
305
+ "created_at": "2000-01-01T01:00:00Z",
306
+ "dest_remote_server_type": "example",
315
307
  "dry_run": true,
316
- "bytes_synced": 1,
308
+ "errored_files": 1,
317
309
  "estimated_bytes_count": 1,
318
- "created_at": "2000-01-01T01:00:00Z",
310
+ "event_errors": [
311
+ "example"
312
+ ],
313
+ "log_url": "https://www.example.com/log_file.txt",
314
+ "runtime": 1.0,
315
+ "site_id": 1,
316
+ "src_remote_server_type": "example",
317
+ "status": "example",
318
+ "successful_files": 1,
319
+ "sync_id": 1,
320
+ "sync_name": "Azure to SharePoint Sync",
319
321
  "updated_at": "2000-01-01T01:00:00Z"
320
322
  }
321
323
  }
@@ -5,49 +5,51 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "sync_id": 1,
9
- "site_id": 1,
10
- "status": "example",
11
- "src_remote_server_type": "example",
12
- "dest_remote_server_type": "example",
13
8
  "body": "example",
14
- "event_errors": [
15
- "example"
16
- ],
9
+ "bytes_synced": 1,
17
10
  "compared_files": 1,
18
11
  "compared_folders": 1,
19
- "errored_files": 1,
20
- "successful_files": 1,
21
- "runtime": 1.0,
22
- "log_url": "https://www.example.com/log_file.txt",
23
12
  "completed_at": "2000-01-01T01:00:00Z",
13
+ "created_at": "2000-01-01T01:00:00Z",
14
+ "dest_remote_server_type": "example",
24
15
  "dry_run": true,
25
- "bytes_synced": 1,
16
+ "errored_files": 1,
26
17
  "estimated_bytes_count": 1,
27
- "created_at": "2000-01-01T01:00:00Z",
18
+ "event_errors": [
19
+ "example"
20
+ ],
21
+ "log_url": "https://www.example.com/log_file.txt",
22
+ "runtime": 1.0,
23
+ "site_id": 1,
24
+ "src_remote_server_type": "example",
25
+ "status": "example",
26
+ "successful_files": 1,
27
+ "sync_id": 1,
28
+ "sync_name": "Azure to SharePoint Sync",
28
29
  "updated_at": "2000-01-01T01:00:00Z"
29
30
  }
30
31
  ```
31
32
 
32
33
  * `id` (int64): SyncRun ID
33
- * `sync_id` (int64): ID of the Sync this run belongs to
34
- * `site_id` (int64): Site ID
35
- * `status` (string): Status of the sync run (success, failure, partial_failure, in_progress, skipped)
36
- * `src_remote_server_type` (string): Source remote server type, if any
37
- * `dest_remote_server_type` (string): Destination remote server type, if any
38
34
  * `body` (string): Log or summary body for this run
39
- * `event_errors` (array(string)): Array of errors encountered during the run
35
+ * `bytes_synced` (int64): Total bytes synced in this run
40
36
  * `compared_files` (int64): Number of files compared
41
37
  * `compared_folders` (int64): Number of folders compared
42
- * `errored_files` (int64): Number of files that errored
43
- * `successful_files` (int64): Number of files successfully synced
44
- * `runtime` (double): Total runtime in seconds
45
- * `log_url` (string): Link to external log file.
46
38
  * `completed_at` (date-time): When this run was completed
39
+ * `created_at` (date-time): When this run was created
40
+ * `dest_remote_server_type` (string): Destination remote server type, if any
47
41
  * `dry_run` (boolean): Whether this run was a dry run (no actual changes made)
48
- * `bytes_synced` (int64): Total bytes synced in this run
42
+ * `errored_files` (int64): Number of files that errored
49
43
  * `estimated_bytes_count` (int64): Estimated bytes count for this run
50
- * `created_at` (date-time): When this run was created
44
+ * `event_errors` (array(string)): Array of errors encountered during the run
45
+ * `log_url` (string): Link to external log file.
46
+ * `runtime` (double): Total runtime in seconds
47
+ * `site_id` (int64): Site ID
48
+ * `src_remote_server_type` (string): Source remote server type, if any
49
+ * `status` (string): Status of the sync run (success, failure, partial_failure, in_progress, skipped)
50
+ * `successful_files` (int64): Number of files successfully synced
51
+ * `sync_id` (int64): ID of the Sync this run belongs to
52
+ * `sync_name` (string): Name of the Sync this run belongs to
51
53
  * `updated_at` (date-time): When this run was last updated
52
54
 
53
55
  ---
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.320';
15
+ var version = '1.2.322';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -71,6 +71,27 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
71
71
  (0, _defineProperty2.default)(this, "setKey", function (value) {
72
72
  _this.attributes.key = value;
73
73
  });
74
+ // boolean # If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
75
+ (0, _defineProperty2.default)(this, "getAwsStyleCredentials", function () {
76
+ return _this.attributes.aws_style_credentials;
77
+ });
78
+ (0, _defineProperty2.default)(this, "setAwsStyleCredentials", function (value) {
79
+ _this.attributes.aws_style_credentials = value;
80
+ });
81
+ // string # AWS Access Key ID to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
82
+ (0, _defineProperty2.default)(this, "getAwsAccessKeyId", function () {
83
+ return _this.attributes.aws_access_key_id;
84
+ });
85
+ (0, _defineProperty2.default)(this, "setAwsAccessKeyId", function (value) {
86
+ _this.attributes.aws_access_key_id = value;
87
+ });
88
+ // string # AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
89
+ (0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
90
+ return _this.attributes.aws_secret_key;
91
+ });
92
+ (0, _defineProperty2.default)(this, "setAwsSecretKey", function (value) {
93
+ _this.attributes.aws_secret_key = value;
94
+ });
74
95
  // date-time # API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
75
96
  (0, _defineProperty2.default)(this, "getLastUseAt", function () {
76
97
  return _this.attributes.last_use_at;
@@ -429,6 +450,7 @@ _ApiKey = ApiKey;
429
450
  // expires_at - string - API Key expiration date
430
451
  // permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
431
452
  // name (required) - string - Internal name for the API Key. For your use.
453
+ // aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
432
454
  // path - string - Folder path restriction for `office_integration` permission set API keys.
433
455
  (0, _defineProperty2.default)(ApiKey, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
434
456
  var params,
@@ -74,7 +74,7 @@ var HistoryExport = /*#__PURE__*/(0, _createClass2.default)(function HistoryExpo
74
74
  (0, _defineProperty2.default)(this, "setQueryAction", function (value) {
75
75
  _this.attributes.query_action = value;
76
76
  });
77
- // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
77
+ // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
78
78
  (0, _defineProperty2.default)(this, "getQueryInterface", function () {
79
79
  return _this.attributes.query_interface;
80
80
  });
@@ -308,7 +308,7 @@ _HistoryExport = HistoryExport;
308
308
  // start_at - string - Start date/time of export range.
309
309
  // end_at - string - End date/time of export range.
310
310
  // query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
311
- // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
311
+ // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
312
312
  // query_user_id - string - Return results that are actions performed by the user indicated by this User ID
313
313
  // query_file_id - string - Return results that are file actions related to the file indicated by this File ID
314
314
  // query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -92,7 +92,7 @@ var HistoryExportResult = /*#__PURE__*/(0, _createClass2.default)(function Histo
92
92
  (0, _defineProperty2.default)(this, "getFailureType", function () {
93
93
  return _this.attributes.failure_type;
94
94
  });
95
- // string # Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
95
+ // string # Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
96
96
  (0, _defineProperty2.default)(this, "getInterface", function () {
97
97
  return _this.attributes.interface;
98
98
  });
@@ -36,33 +36,13 @@ var SyncRun = /*#__PURE__*/(0, _createClass2.default)(function SyncRun() {
36
36
  (0, _defineProperty2.default)(this, "getId", function () {
37
37
  return _this.attributes.id;
38
38
  });
39
- // int64 # ID of the Sync this run belongs to
40
- (0, _defineProperty2.default)(this, "getSyncId", function () {
41
- return _this.attributes.sync_id;
42
- });
43
- // int64 # Site ID
44
- (0, _defineProperty2.default)(this, "getSiteId", function () {
45
- return _this.attributes.site_id;
46
- });
47
- // string # Status of the sync run (success, failure, partial_failure, in_progress, skipped)
48
- (0, _defineProperty2.default)(this, "getStatus", function () {
49
- return _this.attributes.status;
50
- });
51
- // string # Source remote server type, if any
52
- (0, _defineProperty2.default)(this, "getSrcRemoteServerType", function () {
53
- return _this.attributes.src_remote_server_type;
54
- });
55
- // string # Destination remote server type, if any
56
- (0, _defineProperty2.default)(this, "getDestRemoteServerType", function () {
57
- return _this.attributes.dest_remote_server_type;
58
- });
59
39
  // string # Log or summary body for this run
60
40
  (0, _defineProperty2.default)(this, "getBody", function () {
61
41
  return _this.attributes.body;
62
42
  });
63
- // array(string) # Array of errors encountered during the run
64
- (0, _defineProperty2.default)(this, "getEventErrors", function () {
65
- return _this.attributes.event_errors;
43
+ // int64 # Total bytes synced in this run
44
+ (0, _defineProperty2.default)(this, "getBytesSynced", function () {
45
+ return _this.attributes.bytes_synced;
66
46
  });
67
47
  // int64 # Number of files compared
68
48
  (0, _defineProperty2.default)(this, "getComparedFiles", function () {
@@ -72,41 +52,65 @@ var SyncRun = /*#__PURE__*/(0, _createClass2.default)(function SyncRun() {
72
52
  (0, _defineProperty2.default)(this, "getComparedFolders", function () {
73
53
  return _this.attributes.compared_folders;
74
54
  });
55
+ // date-time # When this run was completed
56
+ (0, _defineProperty2.default)(this, "getCompletedAt", function () {
57
+ return _this.attributes.completed_at;
58
+ });
59
+ // date-time # When this run was created
60
+ (0, _defineProperty2.default)(this, "getCreatedAt", function () {
61
+ return _this.attributes.created_at;
62
+ });
63
+ // string # Destination remote server type, if any
64
+ (0, _defineProperty2.default)(this, "getDestRemoteServerType", function () {
65
+ return _this.attributes.dest_remote_server_type;
66
+ });
67
+ // boolean # Whether this run was a dry run (no actual changes made)
68
+ (0, _defineProperty2.default)(this, "getDryRun", function () {
69
+ return _this.attributes.dry_run;
70
+ });
75
71
  // int64 # Number of files that errored
76
72
  (0, _defineProperty2.default)(this, "getErroredFiles", function () {
77
73
  return _this.attributes.errored_files;
78
74
  });
79
- // int64 # Number of files successfully synced
80
- (0, _defineProperty2.default)(this, "getSuccessfulFiles", function () {
81
- return _this.attributes.successful_files;
75
+ // int64 # Estimated bytes count for this run
76
+ (0, _defineProperty2.default)(this, "getEstimatedBytesCount", function () {
77
+ return _this.attributes.estimated_bytes_count;
82
78
  });
83
- // double # Total runtime in seconds
84
- (0, _defineProperty2.default)(this, "getRuntime", function () {
85
- return _this.attributes.runtime;
79
+ // array(string) # Array of errors encountered during the run
80
+ (0, _defineProperty2.default)(this, "getEventErrors", function () {
81
+ return _this.attributes.event_errors;
86
82
  });
87
83
  // string # Link to external log file.
88
84
  (0, _defineProperty2.default)(this, "getLogUrl", function () {
89
85
  return _this.attributes.log_url;
90
86
  });
91
- // date-time # When this run was completed
92
- (0, _defineProperty2.default)(this, "getCompletedAt", function () {
93
- return _this.attributes.completed_at;
87
+ // double # Total runtime in seconds
88
+ (0, _defineProperty2.default)(this, "getRuntime", function () {
89
+ return _this.attributes.runtime;
94
90
  });
95
- // boolean # Whether this run was a dry run (no actual changes made)
96
- (0, _defineProperty2.default)(this, "getDryRun", function () {
97
- return _this.attributes.dry_run;
91
+ // int64 # Site ID
92
+ (0, _defineProperty2.default)(this, "getSiteId", function () {
93
+ return _this.attributes.site_id;
98
94
  });
99
- // int64 # Total bytes synced in this run
100
- (0, _defineProperty2.default)(this, "getBytesSynced", function () {
101
- return _this.attributes.bytes_synced;
95
+ // string # Source remote server type, if any
96
+ (0, _defineProperty2.default)(this, "getSrcRemoteServerType", function () {
97
+ return _this.attributes.src_remote_server_type;
102
98
  });
103
- // int64 # Estimated bytes count for this run
104
- (0, _defineProperty2.default)(this, "getEstimatedBytesCount", function () {
105
- return _this.attributes.estimated_bytes_count;
99
+ // string # Status of the sync run (success, failure, partial_failure, in_progress, skipped)
100
+ (0, _defineProperty2.default)(this, "getStatus", function () {
101
+ return _this.attributes.status;
106
102
  });
107
- // date-time # When this run was created
108
- (0, _defineProperty2.default)(this, "getCreatedAt", function () {
109
- return _this.attributes.created_at;
103
+ // int64 # Number of files successfully synced
104
+ (0, _defineProperty2.default)(this, "getSuccessfulFiles", function () {
105
+ return _this.attributes.successful_files;
106
+ });
107
+ // int64 # ID of the Sync this run belongs to
108
+ (0, _defineProperty2.default)(this, "getSyncId", function () {
109
+ return _this.attributes.sync_id;
110
+ });
111
+ // string # Name of the Sync this run belongs to
112
+ (0, _defineProperty2.default)(this, "getSyncName", function () {
113
+ return _this.attributes.sync_name;
110
114
  });
111
115
  // date-time # When this run was last updated
112
116
  (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.320",
3
+ "version": "1.2.322",
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.320'
9
+ const version = '1.2.322'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -66,6 +66,27 @@ class ApiKey {
66
66
  this.attributes.key = value
67
67
  }
68
68
 
69
+ // boolean # If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
70
+ getAwsStyleCredentials = () => this.attributes.aws_style_credentials
71
+
72
+ setAwsStyleCredentials = value => {
73
+ this.attributes.aws_style_credentials = value
74
+ }
75
+
76
+ // string # AWS Access Key ID to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
77
+ getAwsAccessKeyId = () => this.attributes.aws_access_key_id
78
+
79
+ setAwsAccessKeyId = value => {
80
+ this.attributes.aws_access_key_id = value
81
+ }
82
+
83
+ // string # AWS Secret Key to use with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
84
+ getAwsSecretKey = () => this.attributes.aws_secret_key
85
+
86
+ setAwsSecretKey = value => {
87
+ this.attributes.aws_secret_key = value
88
+ }
89
+
69
90
  // date-time # API Key last used - note this value is only updated once per 3 hour period, so the 'actual' time of last use may be up to 3 hours later than this timestamp.
70
91
  getLastUseAt = () => this.attributes.last_use_at
71
92
 
@@ -271,6 +292,7 @@ class ApiKey {
271
292
  // expires_at - string - API Key expiration date
272
293
  // permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
273
294
  // name (required) - string - Internal name for the API Key. For your use.
295
+ // aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
274
296
  // path - string - Folder path restriction for `office_integration` permission set API keys.
275
297
  static create = async (params = {}, options = {}) => {
276
298
  if (!params.name) {
@@ -70,7 +70,7 @@ class HistoryExport {
70
70
  this.attributes.query_action = value
71
71
  }
72
72
 
73
- // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
73
+ // string # Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
74
74
  getQueryInterface = () => this.attributes.query_interface
75
75
 
76
76
  setQueryInterface = value => {
@@ -250,7 +250,7 @@ class HistoryExport {
250
250
  // start_at - string - Start date/time of export range.
251
251
  // end_at - string - End date/time of export range.
252
252
  // query_action - string - Filter results by this this action type. Valid values: `create`, `read`, `update`, `destroy`, `move`, `login`, `failedlogin`, `copy`, `user_create`, `user_update`, `user_destroy`, `group_create`, `group_update`, `group_destroy`, `permission_create`, `permission_destroy`, `api_key_create`, `api_key_update`, `api_key_destroy`, `archived_delete`
253
- // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
253
+ // query_interface - string - Filter results by this this interface type. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
254
254
  // query_user_id - string - Return results that are actions performed by the user indicated by this User ID
255
255
  // query_file_id - string - Return results that are file actions related to the file indicated by this File ID
256
256
  // query_parent_id - string - Return results that are file actions inside the parent folder specified by this folder ID
@@ -73,7 +73,7 @@ class HistoryExportResult {
73
73
  // string # The type of login failure, if applicable. Valid values: `expired_trial`, `account_overdue`, `locked_out`, `ip_mismatch`, `password_mismatch`, `site_mismatch`, `username_not_found`, `none`, `no_ftp_permission`, `no_web_permission`, `no_directory`, `errno_enoent`, `no_sftp_permission`, `no_dav_permission`, `no_restapi_permission`, `key_mismatch`, `region_mismatch`, `expired_access`, `desktop_ip_mismatch`, `desktop_api_key_not_used_quickly_enough`, `disabled`, `country_mismatch`, `insecure_ftp`, `insecure_cipher`, `rate_limited`
74
74
  getFailureType = () => this.attributes.failure_type
75
75
 
76
- // string # Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`
76
+ // string # Interface through which the action was taken. Valid values: `web`, `ftp`, `robot`, `jsapi`, `webdesktopapi`, `sftp`, `dav`, `desktop`, `restapi`, `scim`, `office`, `mobile`, `as2`, `inbound_email`, `remote`, `inbound_s3`
77
77
  getInterface = () => this.attributes.interface
78
78
 
79
79
  // int64 # ID of the object (such as Users, or API Keys) on which the action was taken
@@ -31,26 +31,11 @@ class SyncRun {
31
31
  // int64 # SyncRun ID
32
32
  getId = () => this.attributes.id
33
33
 
34
- // int64 # ID of the Sync this run belongs to
35
- getSyncId = () => this.attributes.sync_id
36
-
37
- // int64 # Site ID
38
- getSiteId = () => this.attributes.site_id
39
-
40
- // string # Status of the sync run (success, failure, partial_failure, in_progress, skipped)
41
- getStatus = () => this.attributes.status
42
-
43
- // string # Source remote server type, if any
44
- getSrcRemoteServerType = () => this.attributes.src_remote_server_type
45
-
46
- // string # Destination remote server type, if any
47
- getDestRemoteServerType = () => this.attributes.dest_remote_server_type
48
-
49
34
  // string # Log or summary body for this run
50
35
  getBody = () => this.attributes.body
51
36
 
52
- // array(string) # Array of errors encountered during the run
53
- getEventErrors = () => this.attributes.event_errors
37
+ // int64 # Total bytes synced in this run
38
+ getBytesSynced = () => this.attributes.bytes_synced
54
39
 
55
40
  // int64 # Number of files compared
56
41
  getComparedFiles = () => this.attributes.compared_files
@@ -58,32 +43,50 @@ class SyncRun {
58
43
  // int64 # Number of folders compared
59
44
  getComparedFolders = () => this.attributes.compared_folders
60
45
 
46
+ // date-time # When this run was completed
47
+ getCompletedAt = () => this.attributes.completed_at
48
+
49
+ // date-time # When this run was created
50
+ getCreatedAt = () => this.attributes.created_at
51
+
52
+ // string # Destination remote server type, if any
53
+ getDestRemoteServerType = () => this.attributes.dest_remote_server_type
54
+
55
+ // boolean # Whether this run was a dry run (no actual changes made)
56
+ getDryRun = () => this.attributes.dry_run
57
+
61
58
  // int64 # Number of files that errored
62
59
  getErroredFiles = () => this.attributes.errored_files
63
60
 
64
- // int64 # Number of files successfully synced
65
- getSuccessfulFiles = () => this.attributes.successful_files
61
+ // int64 # Estimated bytes count for this run
62
+ getEstimatedBytesCount = () => this.attributes.estimated_bytes_count
66
63
 
67
- // double # Total runtime in seconds
68
- getRuntime = () => this.attributes.runtime
64
+ // array(string) # Array of errors encountered during the run
65
+ getEventErrors = () => this.attributes.event_errors
69
66
 
70
67
  // string # Link to external log file.
71
68
  getLogUrl = () => this.attributes.log_url
72
69
 
73
- // date-time # When this run was completed
74
- getCompletedAt = () => this.attributes.completed_at
70
+ // double # Total runtime in seconds
71
+ getRuntime = () => this.attributes.runtime
75
72
 
76
- // boolean # Whether this run was a dry run (no actual changes made)
77
- getDryRun = () => this.attributes.dry_run
73
+ // int64 # Site ID
74
+ getSiteId = () => this.attributes.site_id
78
75
 
79
- // int64 # Total bytes synced in this run
80
- getBytesSynced = () => this.attributes.bytes_synced
76
+ // string # Source remote server type, if any
77
+ getSrcRemoteServerType = () => this.attributes.src_remote_server_type
81
78
 
82
- // int64 # Estimated bytes count for this run
83
- getEstimatedBytesCount = () => this.attributes.estimated_bytes_count
79
+ // string # Status of the sync run (success, failure, partial_failure, in_progress, skipped)
80
+ getStatus = () => this.attributes.status
84
81
 
85
- // date-time # When this run was created
86
- getCreatedAt = () => this.attributes.created_at
82
+ // int64 # Number of files successfully synced
83
+ getSuccessfulFiles = () => this.attributes.successful_files
84
+
85
+ // int64 # ID of the Sync this run belongs to
86
+ getSyncId = () => this.attributes.sync_id
87
+
88
+ // string # Name of the Sync this run belongs to
89
+ getSyncName = () => this.attributes.sync_name
87
90
 
88
91
  // date-time # When this run was last updated
89
92
  getUpdatedAt = () => this.attributes.updated_at