files.com 1.0.178 → 1.0.181
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/Folder.js +6 -0
- package/lib/models/Session.js +0 -96
- package/package.json +1 -1
- package/src/models/As2IncomingMessage.js +7 -0
- package/src/models/As2OutgoingMessage.js +7 -0
- package/src/models/Folder.js +8 -0
- package/src/models/Session.js +0 -112
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.181
|
package/lib/models/Folder.js
CHANGED
@@ -139,6 +139,12 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
139
139
|
(0, _defineProperty2.default)(this, "setPreview", function (value) {
|
140
140
|
_this.attributes.preview = value;
|
141
141
|
});
|
142
|
+
(0, _defineProperty2.default)(this, "getMkdirParents", function () {
|
143
|
+
return _this.attributes.mkdir_parents;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setMkdirParents", function (value) {
|
146
|
+
_this.attributes.mkdir_parents = value;
|
147
|
+
});
|
142
148
|
(0, _defineProperty2.default)(this, "save", function () {
|
143
149
|
var newObject = Folder.create(_this.attributes.path, _this.attributes, _this.options);
|
144
150
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
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
@@ -128,6 +128,13 @@ class As2IncomingMessage {
|
|
128
128
|
// Parameters:
|
129
129
|
// 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
130
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
131
|
+
// 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`.
|
132
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
133
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
134
|
+
// 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`.
|
135
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
136
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
137
|
+
// 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
138
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
132
139
|
static list = async (params = {}, options = {}) => {
|
133
140
|
if (params['cursor'] && !isString(params['cursor'])) {
|
@@ -113,6 +113,13 @@ class As2OutgoingMessage {
|
|
113
113
|
// Parameters:
|
114
114
|
// 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
115
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
116
|
+
// 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`.
|
117
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
118
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
119
|
+
// 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`.
|
120
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
121
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
122
|
+
// 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
123
|
// as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
|
117
124
|
static list = async (params = {}, options = {}) => {
|
118
125
|
if (params['cursor'] && !isString(params['cursor'])) {
|
package/src/models/Folder.js
CHANGED
@@ -135,6 +135,13 @@ class Folder {
|
|
135
135
|
this.attributes.preview = value
|
136
136
|
}
|
137
137
|
|
138
|
+
// boolean # Create parent directories if they do not exist?
|
139
|
+
getMkdirParents = () => this.attributes.mkdir_parents
|
140
|
+
|
141
|
+
setMkdirParents = value => {
|
142
|
+
this.attributes.mkdir_parents = value
|
143
|
+
}
|
144
|
+
|
138
145
|
|
139
146
|
save = () => {
|
140
147
|
const newObject = Folder.create(this.attributes.path, this.attributes, this.options)
|
@@ -194,6 +201,7 @@ class Folder {
|
|
194
201
|
|
195
202
|
// Parameters:
|
196
203
|
// path (required) - string - Path to operate on.
|
204
|
+
// mkdir_parents - boolean - Create parent directories if they do not exist?
|
197
205
|
static create = async (path, params = {}, options = {}) => {
|
198
206
|
if (!isObject(params)) {
|
199
207
|
throw new Error(`Bad parameter: params must be of type object, received ${getType(params)}`)
|
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
|
|