files.com 1.2.321 → 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 +1 -1
- package/docs/models/Sync.md +30 -28
- package/docs/models/SyncRun.md +28 -26
- package/lib/Files.js +1 -1
- package/lib/models/SyncRun.js +48 -44
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/SyncRun.js +34 -31
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.322
|
package/docs/models/Sync.md
CHANGED
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
54
|
+
"errored_files": 1,
|
|
64
55
|
"estimated_bytes_count": 1,
|
|
65
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
308
|
+
"errored_files": 1,
|
|
317
309
|
"estimated_bytes_count": 1,
|
|
318
|
-
"
|
|
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
|
}
|
package/docs/models/SyncRun.md
CHANGED
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
16
|
+
"errored_files": 1,
|
|
26
17
|
"estimated_bytes_count": 1,
|
|
27
|
-
"
|
|
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
|
-
* `
|
|
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
|
-
* `
|
|
42
|
+
* `errored_files` (int64): Number of files that errored
|
|
49
43
|
* `estimated_bytes_count` (int64): Estimated bytes count for this run
|
|
50
|
-
* `
|
|
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.
|
|
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;
|
package/lib/models/SyncRun.js
CHANGED
|
@@ -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
|
-
//
|
|
64
|
-
(0, _defineProperty2.default)(this, "
|
|
65
|
-
return _this.attributes.
|
|
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 #
|
|
80
|
-
(0, _defineProperty2.default)(this, "
|
|
81
|
-
return _this.attributes.
|
|
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
|
-
//
|
|
84
|
-
(0, _defineProperty2.default)(this, "
|
|
85
|
-
return _this.attributes.
|
|
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
|
-
//
|
|
92
|
-
(0, _defineProperty2.default)(this, "
|
|
93
|
-
return _this.attributes.
|
|
87
|
+
// double # Total runtime in seconds
|
|
88
|
+
(0, _defineProperty2.default)(this, "getRuntime", function () {
|
|
89
|
+
return _this.attributes.runtime;
|
|
94
90
|
});
|
|
95
|
-
//
|
|
96
|
-
(0, _defineProperty2.default)(this, "
|
|
97
|
-
return _this.attributes.
|
|
91
|
+
// int64 # Site ID
|
|
92
|
+
(0, _defineProperty2.default)(this, "getSiteId", function () {
|
|
93
|
+
return _this.attributes.site_id;
|
|
98
94
|
});
|
|
99
|
-
//
|
|
100
|
-
(0, _defineProperty2.default)(this, "
|
|
101
|
-
return _this.attributes.
|
|
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
|
-
//
|
|
104
|
-
(0, _defineProperty2.default)(this, "
|
|
105
|
-
return _this.attributes.
|
|
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
|
-
//
|
|
108
|
-
(0, _defineProperty2.default)(this, "
|
|
109
|
-
return _this.attributes.
|
|
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
package/src/Files.js
CHANGED
package/src/models/SyncRun.js
CHANGED
|
@@ -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
|
-
//
|
|
53
|
-
|
|
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 #
|
|
65
|
-
|
|
61
|
+
// int64 # Estimated bytes count for this run
|
|
62
|
+
getEstimatedBytesCount = () => this.attributes.estimated_bytes_count
|
|
66
63
|
|
|
67
|
-
//
|
|
68
|
-
|
|
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
|
-
//
|
|
74
|
-
|
|
70
|
+
// double # Total runtime in seconds
|
|
71
|
+
getRuntime = () => this.attributes.runtime
|
|
75
72
|
|
|
76
|
-
//
|
|
77
|
-
|
|
73
|
+
// int64 # Site ID
|
|
74
|
+
getSiteId = () => this.attributes.site_id
|
|
78
75
|
|
|
79
|
-
//
|
|
80
|
-
|
|
76
|
+
// string # Source remote server type, if any
|
|
77
|
+
getSrcRemoteServerType = () => this.attributes.src_remote_server_type
|
|
81
78
|
|
|
82
|
-
//
|
|
83
|
-
|
|
79
|
+
// string # Status of the sync run (success, failure, partial_failure, in_progress, skipped)
|
|
80
|
+
getStatus = () => this.attributes.status
|
|
84
81
|
|
|
85
|
-
//
|
|
86
|
-
|
|
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
|