files.com 1.0.179 → 1.0.182
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/As2IncomingMessage.js +3 -0
- package/lib/models/As2OutgoingMessage.js +6 -0
- package/lib/models/As2Partner.js +4 -4
- package/lib/models/Session.js +0 -96
- package/package.json +1 -1
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +13 -0
- package/src/models/As2Partner.js +3 -3
- package/src/models/Session.js +0 -112
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.182
|
@@ -65,6 +65,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
65
65
|
(0, _defineProperty2.default)(this, "getProcessingResult", function () {
|
66
66
|
return _this.attributes.processing_result;
|
67
67
|
});
|
68
|
+
(0, _defineProperty2.default)(this, "getProcessingResultDescription", function () {
|
69
|
+
return _this.attributes.processing_result_description;
|
70
|
+
});
|
68
71
|
(0, _defineProperty2.default)(this, "getMic", function () {
|
69
72
|
return _this.attributes.mic;
|
70
73
|
});
|
@@ -62,6 +62,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
62
62
|
(0, _defineProperty2.default)(this, "getProcessingResult", function () {
|
63
63
|
return _this.attributes.processing_result;
|
64
64
|
});
|
65
|
+
(0, _defineProperty2.default)(this, "getProcessingResultDescription", function () {
|
66
|
+
return _this.attributes.processing_result_description;
|
67
|
+
});
|
65
68
|
(0, _defineProperty2.default)(this, "getMic", function () {
|
66
69
|
return _this.attributes.mic;
|
67
70
|
});
|
@@ -95,6 +98,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
95
98
|
(0, _defineProperty2.default)(this, "getHttpResponseHeaders", function () {
|
96
99
|
return _this.attributes.http_response_headers;
|
97
100
|
});
|
101
|
+
(0, _defineProperty2.default)(this, "getHttpTransmissionDuration", function () {
|
102
|
+
return _this.attributes.http_transmission_duration;
|
103
|
+
});
|
98
104
|
(0, _defineProperty2.default)(this, "getMdnReceived", function () {
|
99
105
|
return _this.attributes.mdn_received;
|
100
106
|
});
|
package/lib/models/As2Partner.js
CHANGED
@@ -83,11 +83,11 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
83
83
|
(0, _defineProperty2.default)(this, "setPublicCertificateMd5", function (value) {
|
84
84
|
_this.attributes.public_certificate_md5 = value;
|
85
85
|
});
|
86
|
-
(0, _defineProperty2.default)(this, "
|
87
|
-
return _this.attributes.
|
86
|
+
(0, _defineProperty2.default)(this, "getPublicCertificateSubjec", function () {
|
87
|
+
return _this.attributes.public_certificate_subjec;
|
88
88
|
});
|
89
|
-
(0, _defineProperty2.default)(this, "
|
90
|
-
_this.attributes.
|
89
|
+
(0, _defineProperty2.default)(this, "setPublicCertificateSubjec", function (value) {
|
90
|
+
_this.attributes.public_certificate_subjec = value;
|
91
91
|
});
|
92
92
|
(0, _defineProperty2.default)(this, "getPublicCertificateIssuer", function () {
|
93
93
|
return _this.attributes.public_certificate_issuer;
|
package/lib/models/Session.js
CHANGED
@@ -53,114 +53,18 @@ var Session = /*#__PURE__*/(0, _createClass2.default)(function Session() {
|
|
53
53
|
(0, _defineProperty2.default)(this, "setLanguage", function (value) {
|
54
54
|
_this.attributes.language = value;
|
55
55
|
});
|
56
|
-
(0, _defineProperty2.default)(this, "getLoginToken", function () {
|
57
|
-
return _this.attributes.login_token;
|
58
|
-
});
|
59
|
-
(0, _defineProperty2.default)(this, "setLoginToken", function (value) {
|
60
|
-
_this.attributes.login_token = value;
|
61
|
-
});
|
62
|
-
(0, _defineProperty2.default)(this, "getLoginTokenDomain", function () {
|
63
|
-
return _this.attributes.login_token_domain;
|
64
|
-
});
|
65
|
-
(0, _defineProperty2.default)(this, "setLoginTokenDomain", function (value) {
|
66
|
-
_this.attributes.login_token_domain = value;
|
67
|
-
});
|
68
|
-
(0, _defineProperty2.default)(this, "getMaxDirListingSize", function () {
|
69
|
-
return _this.attributes.max_dir_listing_size;
|
70
|
-
});
|
71
|
-
(0, _defineProperty2.default)(this, "setMaxDirListingSize", function (value) {
|
72
|
-
_this.attributes.max_dir_listing_size = value;
|
73
|
-
});
|
74
|
-
(0, _defineProperty2.default)(this, "getMultipleRegions", function () {
|
75
|
-
return _this.attributes.multiple_regions;
|
76
|
-
});
|
77
|
-
(0, _defineProperty2.default)(this, "setMultipleRegions", function (value) {
|
78
|
-
_this.attributes.multiple_regions = value;
|
79
|
-
});
|
80
56
|
(0, _defineProperty2.default)(this, "getReadOnly", function () {
|
81
57
|
return _this.attributes.read_only;
|
82
58
|
});
|
83
59
|
(0, _defineProperty2.default)(this, "setReadOnly", function (value) {
|
84
60
|
_this.attributes.read_only = value;
|
85
61
|
});
|
86
|
-
(0, _defineProperty2.default)(this, "getRootPath", function () {
|
87
|
-
return _this.attributes.root_path;
|
88
|
-
});
|
89
|
-
(0, _defineProperty2.default)(this, "setRootPath", function (value) {
|
90
|
-
_this.attributes.root_path = value;
|
91
|
-
});
|
92
62
|
(0, _defineProperty2.default)(this, "getSftpInsecureCiphers", function () {
|
93
63
|
return _this.attributes.sftp_insecure_ciphers;
|
94
64
|
});
|
95
65
|
(0, _defineProperty2.default)(this, "setSftpInsecureCiphers", function (value) {
|
96
66
|
_this.attributes.sftp_insecure_ciphers = value;
|
97
67
|
});
|
98
|
-
(0, _defineProperty2.default)(this, "getSiteId", function () {
|
99
|
-
return _this.attributes.site_id;
|
100
|
-
});
|
101
|
-
(0, _defineProperty2.default)(this, "setSiteId", function (value) {
|
102
|
-
_this.attributes.site_id = value;
|
103
|
-
});
|
104
|
-
(0, _defineProperty2.default)(this, "getSslRequired", function () {
|
105
|
-
return _this.attributes.ssl_required;
|
106
|
-
});
|
107
|
-
(0, _defineProperty2.default)(this, "setSslRequired", function (value) {
|
108
|
-
_this.attributes.ssl_required = value;
|
109
|
-
});
|
110
|
-
(0, _defineProperty2.default)(this, "getTlsDisabled", function () {
|
111
|
-
return _this.attributes.tls_disabled;
|
112
|
-
});
|
113
|
-
(0, _defineProperty2.default)(this, "setTlsDisabled", function (value) {
|
114
|
-
_this.attributes.tls_disabled = value;
|
115
|
-
});
|
116
|
-
(0, _defineProperty2.default)(this, "getTwoFactorSetupNeeded", function () {
|
117
|
-
return _this.attributes.two_factor_setup_needed;
|
118
|
-
});
|
119
|
-
(0, _defineProperty2.default)(this, "setTwoFactorSetupNeeded", function (value) {
|
120
|
-
_this.attributes.two_factor_setup_needed = value;
|
121
|
-
});
|
122
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodSms", function () {
|
123
|
-
return _this.attributes.allowed_2fa_method_sms;
|
124
|
-
});
|
125
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodSms", function (value) {
|
126
|
-
_this.attributes.allowed_2fa_method_sms = value;
|
127
|
-
});
|
128
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodTotp", function () {
|
129
|
-
return _this.attributes.allowed_2fa_method_totp;
|
130
|
-
});
|
131
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodTotp", function (value) {
|
132
|
-
_this.attributes.allowed_2fa_method_totp = value;
|
133
|
-
});
|
134
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodU2f", function () {
|
135
|
-
return _this.attributes.allowed_2fa_method_u2f;
|
136
|
-
});
|
137
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodU2f", function (value) {
|
138
|
-
_this.attributes.allowed_2fa_method_u2f = value;
|
139
|
-
});
|
140
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodWebauthn", function () {
|
141
|
-
return _this.attributes.allowed_2fa_method_webauthn;
|
142
|
-
});
|
143
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodWebauthn", function (value) {
|
144
|
-
_this.attributes.allowed_2fa_method_webauthn = value;
|
145
|
-
});
|
146
|
-
(0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
|
147
|
-
return _this.attributes.allowed_2fa_method_yubi;
|
148
|
-
});
|
149
|
-
(0, _defineProperty2.default)(this, "setAllowed2faMethodYubi", function (value) {
|
150
|
-
_this.attributes.allowed_2fa_method_yubi = value;
|
151
|
-
});
|
152
|
-
(0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
|
153
|
-
return _this.attributes.use_provided_modified_at;
|
154
|
-
});
|
155
|
-
(0, _defineProperty2.default)(this, "setUseProvidedModifiedAt", function (value) {
|
156
|
-
_this.attributes.use_provided_modified_at = value;
|
157
|
-
});
|
158
|
-
(0, _defineProperty2.default)(this, "getWindowsModeFtp", function () {
|
159
|
-
return _this.attributes.windows_mode_ftp;
|
160
|
-
});
|
161
|
-
(0, _defineProperty2.default)(this, "setWindowsModeFtp", function (value) {
|
162
|
-
_this.attributes.windows_mode_ftp = value;
|
163
|
-
});
|
164
68
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
165
69
|
return _this.attributes.username;
|
166
70
|
});
|
package/package.json
CHANGED
@@ -46,6 +46,9 @@ class As2IncomingMessage {
|
|
46
46
|
// string # Result of processing.
|
47
47
|
getProcessingResult = () => this.attributes.processing_result
|
48
48
|
|
49
|
+
// string # Result of processing description.
|
50
|
+
getProcessingResultDescription = () => this.attributes.processing_result_description
|
51
|
+
|
49
52
|
// string # AS2 Message Integrity Check
|
50
53
|
getMic = () => this.attributes.mic
|
51
54
|
|
@@ -128,6 +131,13 @@ class As2IncomingMessage {
|
|
128
131
|
// Parameters:
|
129
132
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
130
133
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
134
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `as2_partner_id`.
|
135
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
136
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
137
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
|
138
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
139
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
140
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
|
131
141
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
132
142
|
static list = async (params = {}, options = {}) => {
|
133
143
|
if (params['cursor'] && !isString(params['cursor'])) {
|
@@ -43,6 +43,9 @@ class As2OutgoingMessage {
|
|
43
43
|
// string # Result of processing.
|
44
44
|
getProcessingResult = () => this.attributes.processing_result
|
45
45
|
|
46
|
+
// string # Result of processing description.
|
47
|
+
getProcessingResultDescription = () => this.attributes.processing_result_description
|
48
|
+
|
46
49
|
// string # AS2 Message Integrity Check SHA1
|
47
50
|
getMic = () => this.attributes.mic
|
48
51
|
|
@@ -76,6 +79,9 @@ class As2OutgoingMessage {
|
|
76
79
|
// object # HTTP Headers received for this message.
|
77
80
|
getHttpResponseHeaders = () => this.attributes.http_response_headers
|
78
81
|
|
82
|
+
// double # HTTP transmission duration in seceonds
|
83
|
+
getHttpTransmissionDuration = () => this.attributes.http_transmission_duration
|
84
|
+
|
79
85
|
// boolean # Did the partner give a response body?
|
80
86
|
getMdnReceived = () => this.attributes.mdn_received
|
81
87
|
|
@@ -113,6 +119,13 @@ class As2OutgoingMessage {
|
|
113
119
|
// Parameters:
|
114
120
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
115
121
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
122
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `as2_partner_id`.
|
123
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
124
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
125
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
|
126
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
127
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
128
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
|
116
129
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
117
130
|
static list = async (params = {}, options = {}) => {
|
118
131
|
if (params['cursor'] && !isString(params['cursor'])) {
|
package/src/models/As2Partner.js
CHANGED
@@ -72,10 +72,10 @@ class As2Partner {
|
|
72
72
|
}
|
73
73
|
|
74
74
|
// string # Subject of public certificate used for message security.
|
75
|
-
|
75
|
+
getPublicCertificateSubjec = () => this.attributes.public_certificate_subjec
|
76
76
|
|
77
|
-
|
78
|
-
this.attributes.
|
77
|
+
setPublicCertificateSubjec = value => {
|
78
|
+
this.attributes.public_certificate_subjec = value
|
79
79
|
}
|
80
80
|
|
81
81
|
// string # Issuer of public certificate used for message security.
|
package/src/models/Session.js
CHANGED
@@ -36,34 +36,6 @@ class Session {
|
|
36
36
|
this.attributes.language = value
|
37
37
|
}
|
38
38
|
|
39
|
-
// string # Login token. If set, this token will allow your user to log in via browser at the domain in `login_token_domain`.
|
40
|
-
getLoginToken = () => this.attributes.login_token
|
41
|
-
|
42
|
-
setLoginToken = value => {
|
43
|
-
this.attributes.login_token = value
|
44
|
-
}
|
45
|
-
|
46
|
-
// string # Domain to use with `login_token`.
|
47
|
-
getLoginTokenDomain = () => this.attributes.login_token_domain
|
48
|
-
|
49
|
-
setLoginTokenDomain = value => {
|
50
|
-
this.attributes.login_token_domain = value
|
51
|
-
}
|
52
|
-
|
53
|
-
// int64 # Maximum number of files to retrieve per folder for a directory listing. This is based on the user's plan.
|
54
|
-
getMaxDirListingSize = () => this.attributes.max_dir_listing_size
|
55
|
-
|
56
|
-
setMaxDirListingSize = value => {
|
57
|
-
this.attributes.max_dir_listing_size = value
|
58
|
-
}
|
59
|
-
|
60
|
-
// boolean # Can access multiple regions?
|
61
|
-
getMultipleRegions = () => this.attributes.multiple_regions
|
62
|
-
|
63
|
-
setMultipleRegions = value => {
|
64
|
-
this.attributes.multiple_regions = value
|
65
|
-
}
|
66
|
-
|
67
39
|
// boolean # Is this session read only?
|
68
40
|
getReadOnly = () => this.attributes.read_only
|
69
41
|
|
@@ -71,13 +43,6 @@ class Session {
|
|
71
43
|
this.attributes.read_only = value
|
72
44
|
}
|
73
45
|
|
74
|
-
// string # Initial root path to start the user's session in.
|
75
|
-
getRootPath = () => this.attributes.root_path
|
76
|
-
|
77
|
-
setRootPath = value => {
|
78
|
-
this.attributes.root_path = value
|
79
|
-
}
|
80
|
-
|
81
46
|
// boolean # Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)
|
82
47
|
getSftpInsecureCiphers = () => this.attributes.sftp_insecure_ciphers
|
83
48
|
|
@@ -85,83 +50,6 @@ class Session {
|
|
85
50
|
this.attributes.sftp_insecure_ciphers = value
|
86
51
|
}
|
87
52
|
|
88
|
-
// int64 # Site ID
|
89
|
-
getSiteId = () => this.attributes.site_id
|
90
|
-
|
91
|
-
setSiteId = value => {
|
92
|
-
this.attributes.site_id = value
|
93
|
-
}
|
94
|
-
|
95
|
-
// boolean # Is SSL required for this user? (If so, ensure all your communications with this user use SSL.)
|
96
|
-
getSslRequired = () => this.attributes.ssl_required
|
97
|
-
|
98
|
-
setSslRequired = value => {
|
99
|
-
this.attributes.ssl_required = value
|
100
|
-
}
|
101
|
-
|
102
|
-
// boolean # Are insecure TLS versions allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure TLS versions for this user.)
|
103
|
-
getTlsDisabled = () => this.attributes.tls_disabled
|
104
|
-
|
105
|
-
setTlsDisabled = value => {
|
106
|
-
this.attributes.tls_disabled = value
|
107
|
-
}
|
108
|
-
|
109
|
-
// boolean # If true, this user needs to add a Two Factor Authentication method before performing any further actions.
|
110
|
-
getTwoFactorSetupNeeded = () => this.attributes.two_factor_setup_needed
|
111
|
-
|
112
|
-
setTwoFactorSetupNeeded = value => {
|
113
|
-
this.attributes.two_factor_setup_needed = value
|
114
|
-
}
|
115
|
-
|
116
|
-
// boolean # Sent only if 2FA setup is needed. Is SMS two factor authentication allowed?
|
117
|
-
getAllowed2faMethodSms = () => this.attributes.allowed_2fa_method_sms
|
118
|
-
|
119
|
-
setAllowed2faMethodSms = value => {
|
120
|
-
this.attributes.allowed_2fa_method_sms = value
|
121
|
-
}
|
122
|
-
|
123
|
-
// boolean # Sent only if 2FA setup is needed. Is TOTP two factor authentication allowed?
|
124
|
-
getAllowed2faMethodTotp = () => this.attributes.allowed_2fa_method_totp
|
125
|
-
|
126
|
-
setAllowed2faMethodTotp = value => {
|
127
|
-
this.attributes.allowed_2fa_method_totp = value
|
128
|
-
}
|
129
|
-
|
130
|
-
// boolean # Sent only if 2FA setup is needed. Is U2F two factor authentication allowed?
|
131
|
-
getAllowed2faMethodU2f = () => this.attributes.allowed_2fa_method_u2f
|
132
|
-
|
133
|
-
setAllowed2faMethodU2f = value => {
|
134
|
-
this.attributes.allowed_2fa_method_u2f = value
|
135
|
-
}
|
136
|
-
|
137
|
-
// boolean # Sent only if 2FA setup is needed. Is WebAuthn two factor authentication allowed?
|
138
|
-
getAllowed2faMethodWebauthn = () => this.attributes.allowed_2fa_method_webauthn
|
139
|
-
|
140
|
-
setAllowed2faMethodWebauthn = value => {
|
141
|
-
this.attributes.allowed_2fa_method_webauthn = value
|
142
|
-
}
|
143
|
-
|
144
|
-
// boolean # Sent only if 2FA setup is needed. Is Yubikey two factor authentication allowed?
|
145
|
-
getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
|
146
|
-
|
147
|
-
setAllowed2faMethodYubi = value => {
|
148
|
-
this.attributes.allowed_2fa_method_yubi = value
|
149
|
-
}
|
150
|
-
|
151
|
-
// boolean # Allow the user to provide file/folder modified at dates? If false, the server will always use the current date/time.
|
152
|
-
getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
|
153
|
-
|
154
|
-
setUseProvidedModifiedAt = value => {
|
155
|
-
this.attributes.use_provided_modified_at = value
|
156
|
-
}
|
157
|
-
|
158
|
-
// boolean # Does this user want to use Windows line-ending emulation? (CR vs CRLF)
|
159
|
-
getWindowsModeFtp = () => this.attributes.windows_mode_ftp
|
160
|
-
|
161
|
-
setWindowsModeFtp = value => {
|
162
|
-
this.attributes.windows_mode_ftp = value
|
163
|
-
}
|
164
|
-
|
165
53
|
// string # Username to sign in as
|
166
54
|
getUsername = () => this.attributes.username
|
167
55
|
|