files.com 1.2.259 → 1.2.261
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/As2Partner.md +4 -1
- package/docs/models/As2Station.md +4 -1
- package/docs/models/Sync.md +14 -6
- package/docs/models/SyncRun.md +6 -4
- package/lib/Files.js +1 -1
- package/lib/models/As2Partner.js +7 -7
- package/lib/models/As2Station.js +7 -7
- package/lib/models/Sync.js +2 -2
- package/lib/models/SyncRun.js +2 -2
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/As2Partner.js +7 -7
- package/src/models/As2Station.js +7 -7
- package/src/models/Sync.js +2 -2
- package/src/models/SyncRun.js +2 -2
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.261
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"mdn_validation_level": "none",
|
|
18
18
|
"enable_dedicated_ips": true,
|
|
19
19
|
"hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
|
|
20
|
+
"public_certificate": "example",
|
|
20
21
|
"public_certificate_md5": "example",
|
|
21
22
|
"public_certificate_subject": "example",
|
|
22
23
|
"public_certificate_issuer": "example",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
* `mdn_validation_level` (string): How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
|
|
38
39
|
* `enable_dedicated_ips` (boolean): If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
|
|
39
40
|
* `hex_public_certificate_serial` (string): Serial of public certificate used for message security in hex format.
|
|
41
|
+
* `public_certificate` (string): Public certificate used for message security.
|
|
40
42
|
* `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
|
|
41
43
|
* `public_certificate_subject` (string): Subject of public certificate used for message security.
|
|
42
44
|
* `public_certificate_issuer` (string): Issuer of public certificate used for message security.
|
|
@@ -44,7 +46,6 @@
|
|
|
44
46
|
* `public_certificate_not_before` (string): Not before value of public certificate used for message security.
|
|
45
47
|
* `public_certificate_not_after` (string): Not after value of public certificate used for message security.
|
|
46
48
|
* `http_auth_password` (string): Password to send to server for HTTP Authentication.
|
|
47
|
-
* `public_certificate` (string): Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
48
49
|
|
|
49
50
|
---
|
|
50
51
|
|
|
@@ -123,6 +124,7 @@ await as2_partner.update({
|
|
|
123
124
|
'additional_http_headers': {"key":"example value"},
|
|
124
125
|
'name': "AS2 Partner Name",
|
|
125
126
|
'uri': "example",
|
|
127
|
+
'public_certificate': "example",
|
|
126
128
|
})
|
|
127
129
|
```
|
|
128
130
|
|
|
@@ -157,6 +159,7 @@ await as2_partner.update({
|
|
|
157
159
|
"mdn_validation_level": "none",
|
|
158
160
|
"enable_dedicated_ips": true,
|
|
159
161
|
"hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
|
|
162
|
+
"public_certificate": "example",
|
|
160
163
|
"public_certificate_md5": "example",
|
|
161
164
|
"public_certificate_subject": "example",
|
|
162
165
|
"public_certificate_issuer": "example",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"domain": "domain.test",
|
|
11
11
|
"hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
|
|
12
12
|
"public_certificate_md5": "example",
|
|
13
|
+
"public_certificate": "example",
|
|
13
14
|
"private_key_md5": "example",
|
|
14
15
|
"public_certificate_subject": "example",
|
|
15
16
|
"public_certificate_issuer": "example",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
* `domain` (string): The station's AS2 domain name.
|
|
27
28
|
* `hex_public_certificate_serial` (string): Serial of public certificate used for message security in hex format.
|
|
28
29
|
* `public_certificate_md5` (string): MD5 hash of public certificate used for message security.
|
|
30
|
+
* `public_certificate` (string): Public certificate used for message security.
|
|
29
31
|
* `private_key_md5` (string): MD5 hash of private key used for message security.
|
|
30
32
|
* `public_certificate_subject` (string): Subject of public certificate used for message security.
|
|
31
33
|
* `public_certificate_issuer` (string): Issuer of public certificate used for message security.
|
|
@@ -33,7 +35,6 @@
|
|
|
33
35
|
* `public_certificate_not_before` (string): Not before value of public certificate used for message security.
|
|
34
36
|
* `public_certificate_not_after` (string): Not after value of public certificate used for message security.
|
|
35
37
|
* `private_key_password_md5` (string): MD5 hash of private key password used for message security.
|
|
36
|
-
* `public_certificate` (string):
|
|
37
38
|
* `private_key` (string):
|
|
38
39
|
* `private_key_password` (string):
|
|
39
40
|
|
|
@@ -94,6 +95,7 @@ const as2_station = await As2Station.find(id)
|
|
|
94
95
|
|
|
95
96
|
await as2_station.update({
|
|
96
97
|
'name': "AS2 Station Name",
|
|
98
|
+
'public_certificate': "example",
|
|
97
99
|
})
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -115,6 +117,7 @@ await as2_station.update({
|
|
|
115
117
|
"domain": "domain.test",
|
|
116
118
|
"hex_public_certificate_serial": "A5:EB:C1:95:DC:D8:2B:E7",
|
|
117
119
|
"public_certificate_md5": "example",
|
|
120
|
+
"public_certificate": "example",
|
|
118
121
|
"private_key_md5": "example",
|
|
119
122
|
"public_certificate_subject": "example",
|
|
120
123
|
"public_certificate_issuer": "example",
|
package/docs/models/Sync.md
CHANGED
|
@@ -20,8 +20,12 @@
|
|
|
20
20
|
"interval": "week",
|
|
21
21
|
"trigger": "example",
|
|
22
22
|
"trigger_file": "example",
|
|
23
|
-
"include_patterns":
|
|
24
|
-
|
|
23
|
+
"include_patterns": [
|
|
24
|
+
"example"
|
|
25
|
+
],
|
|
26
|
+
"exclude_patterns": [
|
|
27
|
+
"example"
|
|
28
|
+
],
|
|
25
29
|
"created_at": "2000-01-01T01:00:00Z",
|
|
26
30
|
"updated_at": "2000-01-01T01:00:00Z",
|
|
27
31
|
"sync_interval_minutes": 1,
|
|
@@ -55,8 +59,8 @@
|
|
|
55
59
|
* `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
56
60
|
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
|
|
57
61
|
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
|
|
58
|
-
* `include_patterns` (array(
|
|
59
|
-
* `exclude_patterns` (array(
|
|
62
|
+
* `include_patterns` (array(string)): Array of glob patterns to include
|
|
63
|
+
* `exclude_patterns` (array(string)): Array of glob patterns to exclude
|
|
60
64
|
* `created_at` (date-time): When this sync was created
|
|
61
65
|
* `updated_at` (date-time): When this sync was last updated
|
|
62
66
|
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
|
|
@@ -217,8 +221,12 @@ await sync.update({
|
|
|
217
221
|
"interval": "week",
|
|
218
222
|
"trigger": "example",
|
|
219
223
|
"trigger_file": "example",
|
|
220
|
-
"include_patterns":
|
|
221
|
-
|
|
224
|
+
"include_patterns": [
|
|
225
|
+
"example"
|
|
226
|
+
],
|
|
227
|
+
"exclude_patterns": [
|
|
228
|
+
"example"
|
|
229
|
+
],
|
|
222
230
|
"created_at": "2000-01-01T01:00:00Z",
|
|
223
231
|
"updated_at": "2000-01-01T01:00:00Z",
|
|
224
232
|
"sync_interval_minutes": 1,
|
package/docs/models/SyncRun.md
CHANGED
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
"status": "example",
|
|
11
11
|
"remote_server_type": "example",
|
|
12
12
|
"body": "example",
|
|
13
|
-
"event_errors":
|
|
13
|
+
"event_errors": [
|
|
14
|
+
"example"
|
|
15
|
+
],
|
|
14
16
|
"bytes_synced": 1,
|
|
15
17
|
"compared_files": 1,
|
|
16
18
|
"compared_folders": 1,
|
|
17
19
|
"errored_files": 1,
|
|
18
20
|
"successful_files": 1,
|
|
19
|
-
"runtime":
|
|
21
|
+
"runtime": 1.0,
|
|
20
22
|
"s3_body_path": "example",
|
|
21
23
|
"s3_internal_body_path": "example",
|
|
22
24
|
"completed_at": "2000-01-01T01:00:00Z",
|
|
@@ -32,13 +34,13 @@
|
|
|
32
34
|
* `status` (string): Status of the sync run (success, failure, partial_failure, in_progress, skipped)
|
|
33
35
|
* `remote_server_type` (string): Type of remote server used, if any
|
|
34
36
|
* `body` (string): Log or summary body for this run
|
|
35
|
-
* `event_errors` (array(
|
|
37
|
+
* `event_errors` (array(string)): Array of errors encountered during the run
|
|
36
38
|
* `bytes_synced` (int64): Total bytes synced in this run
|
|
37
39
|
* `compared_files` (int64): Number of files compared
|
|
38
40
|
* `compared_folders` (int64): Number of folders compared
|
|
39
41
|
* `errored_files` (int64): Number of files that errored
|
|
40
42
|
* `successful_files` (int64): Number of files successfully synced
|
|
41
|
-
* `runtime` (
|
|
43
|
+
* `runtime` (double): Total runtime in seconds
|
|
42
44
|
* `s3_body_path` (string): S3 path to the main log file
|
|
43
45
|
* `s3_internal_body_path` (string): S3 path to the internal log file
|
|
44
46
|
* `completed_at` (date-time): When this run was completed
|
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.261';
|
|
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/As2Partner.js
CHANGED
|
@@ -109,6 +109,13 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
|
109
109
|
(0, _defineProperty2.default)(this, "setHexPublicCertificateSerial", function (value) {
|
|
110
110
|
_this.attributes.hex_public_certificate_serial = value;
|
|
111
111
|
});
|
|
112
|
+
// string # Public certificate used for message security.
|
|
113
|
+
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
|
114
|
+
return _this.attributes.public_certificate;
|
|
115
|
+
});
|
|
116
|
+
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
|
117
|
+
_this.attributes.public_certificate = value;
|
|
118
|
+
});
|
|
112
119
|
// string # MD5 hash of public certificate used for message security.
|
|
113
120
|
(0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
|
|
114
121
|
return _this.attributes.public_certificate_md5;
|
|
@@ -158,13 +165,6 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
|
158
165
|
(0, _defineProperty2.default)(this, "setHttpAuthPassword", function (value) {
|
|
159
166
|
_this.attributes.http_auth_password = value;
|
|
160
167
|
});
|
|
161
|
-
// string # Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
162
|
-
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
|
163
|
-
return _this.attributes.public_certificate;
|
|
164
|
-
});
|
|
165
|
-
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
|
166
|
-
_this.attributes.public_certificate = value;
|
|
167
|
-
});
|
|
168
168
|
// Parameters:
|
|
169
169
|
// enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
|
|
170
170
|
// http_auth_username - string - Username to send to server for HTTP Authentication.
|
package/lib/models/As2Station.js
CHANGED
|
@@ -74,6 +74,13 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
|
74
74
|
(0, _defineProperty2.default)(this, "setPublicCertificateMd5", function (value) {
|
|
75
75
|
_this.attributes.public_certificate_md5 = value;
|
|
76
76
|
});
|
|
77
|
+
// string # Public certificate used for message security.
|
|
78
|
+
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
|
79
|
+
return _this.attributes.public_certificate;
|
|
80
|
+
});
|
|
81
|
+
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
|
82
|
+
_this.attributes.public_certificate = value;
|
|
83
|
+
});
|
|
77
84
|
// string # MD5 hash of private key used for message security.
|
|
78
85
|
(0, _defineProperty2.default)(this, "getPrivateKeyMd5", function () {
|
|
79
86
|
return _this.attributes.private_key_md5;
|
|
@@ -124,13 +131,6 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
|
124
131
|
_this.attributes.private_key_password_md5 = value;
|
|
125
132
|
});
|
|
126
133
|
// string
|
|
127
|
-
(0, _defineProperty2.default)(this, "getPublicCertificate", function () {
|
|
128
|
-
return _this.attributes.public_certificate;
|
|
129
|
-
});
|
|
130
|
-
(0, _defineProperty2.default)(this, "setPublicCertificate", function (value) {
|
|
131
|
-
_this.attributes.public_certificate = value;
|
|
132
|
-
});
|
|
133
|
-
// string
|
|
134
134
|
(0, _defineProperty2.default)(this, "getPrivateKey", function () {
|
|
135
135
|
return _this.attributes.private_key;
|
|
136
136
|
});
|
package/lib/models/Sync.js
CHANGED
|
@@ -144,14 +144,14 @@ var Sync = /*#__PURE__*/(0, _createClass2.default)(function Sync() {
|
|
|
144
144
|
(0, _defineProperty2.default)(this, "setTriggerFile", function (value) {
|
|
145
145
|
_this.attributes.trigger_file = value;
|
|
146
146
|
});
|
|
147
|
-
// array(
|
|
147
|
+
// array(string) # Array of glob patterns to include
|
|
148
148
|
(0, _defineProperty2.default)(this, "getIncludePatterns", function () {
|
|
149
149
|
return _this.attributes.include_patterns;
|
|
150
150
|
});
|
|
151
151
|
(0, _defineProperty2.default)(this, "setIncludePatterns", function (value) {
|
|
152
152
|
_this.attributes.include_patterns = value;
|
|
153
153
|
});
|
|
154
|
-
// array(
|
|
154
|
+
// array(string) # Array of glob patterns to exclude
|
|
155
155
|
(0, _defineProperty2.default)(this, "getExcludePatterns", function () {
|
|
156
156
|
return _this.attributes.exclude_patterns;
|
|
157
157
|
});
|
package/lib/models/SyncRun.js
CHANGED
|
@@ -56,7 +56,7 @@ var SyncRun = /*#__PURE__*/(0, _createClass2.default)(function SyncRun() {
|
|
|
56
56
|
(0, _defineProperty2.default)(this, "getBody", function () {
|
|
57
57
|
return _this.attributes.body;
|
|
58
58
|
});
|
|
59
|
-
// array(
|
|
59
|
+
// array(string) # Array of errors encountered during the run
|
|
60
60
|
(0, _defineProperty2.default)(this, "getEventErrors", function () {
|
|
61
61
|
return _this.attributes.event_errors;
|
|
62
62
|
});
|
|
@@ -80,7 +80,7 @@ var SyncRun = /*#__PURE__*/(0, _createClass2.default)(function SyncRun() {
|
|
|
80
80
|
(0, _defineProperty2.default)(this, "getSuccessfulFiles", function () {
|
|
81
81
|
return _this.attributes.successful_files;
|
|
82
82
|
});
|
|
83
|
-
//
|
|
83
|
+
// double # Total runtime in seconds
|
|
84
84
|
(0, _defineProperty2.default)(this, "getRuntime", function () {
|
|
85
85
|
return _this.attributes.runtime;
|
|
86
86
|
});
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/As2Partner.js
CHANGED
|
@@ -105,6 +105,13 @@ class As2Partner {
|
|
|
105
105
|
this.attributes.hex_public_certificate_serial = value
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
// string # Public certificate used for message security.
|
|
109
|
+
getPublicCertificate = () => this.attributes.public_certificate
|
|
110
|
+
|
|
111
|
+
setPublicCertificate = value => {
|
|
112
|
+
this.attributes.public_certificate = value
|
|
113
|
+
}
|
|
114
|
+
|
|
108
115
|
// string # MD5 hash of public certificate used for message security.
|
|
109
116
|
getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
|
|
110
117
|
|
|
@@ -154,13 +161,6 @@ class As2Partner {
|
|
|
154
161
|
this.attributes.http_auth_password = value
|
|
155
162
|
}
|
|
156
163
|
|
|
157
|
-
// string # Public certificate for AS2 Partner. Note: This is the certificate for AS2 message security, not a certificate used for HTTPS authentication.
|
|
158
|
-
getPublicCertificate = () => this.attributes.public_certificate
|
|
159
|
-
|
|
160
|
-
setPublicCertificate = value => {
|
|
161
|
-
this.attributes.public_certificate = value
|
|
162
|
-
}
|
|
163
|
-
|
|
164
164
|
// Parameters:
|
|
165
165
|
// enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
|
|
166
166
|
// http_auth_username - string - Username to send to server for HTTP Authentication.
|
package/src/models/As2Station.js
CHANGED
|
@@ -70,6 +70,13 @@ class As2Station {
|
|
|
70
70
|
this.attributes.public_certificate_md5 = value
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// string # Public certificate used for message security.
|
|
74
|
+
getPublicCertificate = () => this.attributes.public_certificate
|
|
75
|
+
|
|
76
|
+
setPublicCertificate = value => {
|
|
77
|
+
this.attributes.public_certificate = value
|
|
78
|
+
}
|
|
79
|
+
|
|
73
80
|
// string # MD5 hash of private key used for message security.
|
|
74
81
|
getPrivateKeyMd5 = () => this.attributes.private_key_md5
|
|
75
82
|
|
|
@@ -119,13 +126,6 @@ class As2Station {
|
|
|
119
126
|
this.attributes.private_key_password_md5 = value
|
|
120
127
|
}
|
|
121
128
|
|
|
122
|
-
// string
|
|
123
|
-
getPublicCertificate = () => this.attributes.public_certificate
|
|
124
|
-
|
|
125
|
-
setPublicCertificate = value => {
|
|
126
|
-
this.attributes.public_certificate = value
|
|
127
|
-
}
|
|
128
|
-
|
|
129
129
|
// string
|
|
130
130
|
getPrivateKey = () => this.attributes.private_key
|
|
131
131
|
|
package/src/models/Sync.js
CHANGED
|
@@ -140,14 +140,14 @@ class Sync {
|
|
|
140
140
|
this.attributes.trigger_file = value
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
// array(
|
|
143
|
+
// array(string) # Array of glob patterns to include
|
|
144
144
|
getIncludePatterns = () => this.attributes.include_patterns
|
|
145
145
|
|
|
146
146
|
setIncludePatterns = value => {
|
|
147
147
|
this.attributes.include_patterns = value
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// array(
|
|
150
|
+
// array(string) # Array of glob patterns to exclude
|
|
151
151
|
getExcludePatterns = () => this.attributes.exclude_patterns
|
|
152
152
|
|
|
153
153
|
setExcludePatterns = value => {
|
package/src/models/SyncRun.js
CHANGED
|
@@ -46,7 +46,7 @@ class SyncRun {
|
|
|
46
46
|
// string # Log or summary body for this run
|
|
47
47
|
getBody = () => this.attributes.body
|
|
48
48
|
|
|
49
|
-
// array(
|
|
49
|
+
// array(string) # Array of errors encountered during the run
|
|
50
50
|
getEventErrors = () => this.attributes.event_errors
|
|
51
51
|
|
|
52
52
|
// int64 # Total bytes synced in this run
|
|
@@ -64,7 +64,7 @@ class SyncRun {
|
|
|
64
64
|
// int64 # Number of files successfully synced
|
|
65
65
|
getSuccessfulFiles = () => this.attributes.successful_files
|
|
66
66
|
|
|
67
|
-
//
|
|
67
|
+
// double # Total runtime in seconds
|
|
68
68
|
getRuntime = () => this.attributes.runtime
|
|
69
69
|
|
|
70
70
|
// string # S3 path to the main log file
|