files.com 1.2.56 → 1.2.57
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/Site.md +1 -0
- package/docs/models/User.md +6 -3
- package/lib/Files.js +1 -1
- package/lib/models/User.js +10 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/User.js +10 -3
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.57
|
package/docs/models/Site.md
CHANGED
package/docs/models/User.md
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
"created_at": "2000-01-01T01:00:00Z",
|
22
22
|
"dav_permission": true,
|
23
23
|
"disabled": true,
|
24
|
+
"disabled_expired_or_inactive": true,
|
24
25
|
"email": "example",
|
25
26
|
"first_login_at": "2000-01-01T01:00:00Z",
|
26
27
|
"ftp_permission": true,
|
@@ -84,7 +85,8 @@
|
|
84
85
|
* `bypass_inactive_disable` (boolean): Exempt this user from being disabled based on inactivity?
|
85
86
|
* `created_at` (date-time): When this user was created
|
86
87
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
87
|
-
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
88
|
+
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
89
|
+
* `disabled_expired_or_inactive` (boolean): Computed property that returns true if user disabled or expired or inactive.
|
88
90
|
* `email` (email): User email address
|
89
91
|
* `first_login_at` (date-time): User's first login time
|
90
92
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
@@ -250,7 +252,7 @@ await User.create({
|
|
250
252
|
* `bypass_inactive_disable` (boolean): Exempt this user from being disabled based on inactivity?
|
251
253
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
252
254
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
253
|
-
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
255
|
+
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
254
256
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
255
257
|
* `header_text` (string): Text to display to the user in the header of the UI
|
256
258
|
* `language` (string): Preferred language
|
@@ -393,7 +395,7 @@ await user.update({
|
|
393
395
|
* `bypass_inactive_disable` (boolean): Exempt this user from being disabled based on inactivity?
|
394
396
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
395
397
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
396
|
-
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
398
|
+
* `disabled` (boolean): Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
397
399
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
398
400
|
* `header_text` (string): Text to display to the user in the header of the UI
|
399
401
|
* `language` (string): Preferred language
|
@@ -440,6 +442,7 @@ await user.update({
|
|
440
442
|
"created_at": "2000-01-01T01:00:00Z",
|
441
443
|
"dav_permission": true,
|
442
444
|
"disabled": true,
|
445
|
+
"disabled_expired_or_inactive": true,
|
443
446
|
"email": "example",
|
444
447
|
"first_login_at": "2000-01-01T01:00:00Z",
|
445
448
|
"ftp_permission": true,
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.57';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/User.js
CHANGED
@@ -128,13 +128,20 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
128
128
|
(0, _defineProperty2.default)(this, "setDavPermission", function (value) {
|
129
129
|
_this.attributes.dav_permission = value;
|
130
130
|
});
|
131
|
-
// boolean # Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
131
|
+
// boolean # Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
132
132
|
(0, _defineProperty2.default)(this, "getDisabled", function () {
|
133
133
|
return _this.attributes.disabled;
|
134
134
|
});
|
135
135
|
(0, _defineProperty2.default)(this, "setDisabled", function (value) {
|
136
136
|
_this.attributes.disabled = value;
|
137
137
|
});
|
138
|
+
// boolean # Computed property that returns true if user disabled or expired or inactive.
|
139
|
+
(0, _defineProperty2.default)(this, "getDisabledExpiredOrInactive", function () {
|
140
|
+
return _this.attributes.disabled_expired_or_inactive;
|
141
|
+
});
|
142
|
+
(0, _defineProperty2.default)(this, "setDisabledExpiredOrInactive", function (value) {
|
143
|
+
_this.attributes.disabled_expired_or_inactive = value;
|
144
|
+
});
|
138
145
|
// email # User email address
|
139
146
|
(0, _defineProperty2.default)(this, "getEmail", function () {
|
140
147
|
return _this.attributes.email;
|
@@ -695,7 +702,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
695
702
|
// bypass_inactive_disable - boolean - Exempt this user from being disabled based on inactivity?
|
696
703
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
697
704
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
698
|
-
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
705
|
+
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
699
706
|
// ftp_permission - boolean - Can the user access with FTP/FTPS?
|
700
707
|
// header_text - string - Text to display to the user in the header of the UI
|
701
708
|
// language - string - Preferred language
|
@@ -1160,7 +1167,7 @@ _User = User;
|
|
1160
1167
|
// bypass_inactive_disable - boolean - Exempt this user from being disabled based on inactivity?
|
1161
1168
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
1162
1169
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
1163
|
-
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
1170
|
+
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
1164
1171
|
// ftp_permission - boolean - Can the user access with FTP/FTPS?
|
1165
1172
|
// header_text - string - Text to display to the user in the header of the UI
|
1166
1173
|
// language - string - Preferred language
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/User.js
CHANGED
@@ -122,13 +122,20 @@ class User {
|
|
122
122
|
this.attributes.dav_permission = value
|
123
123
|
}
|
124
124
|
|
125
|
-
// boolean # Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
125
|
+
// boolean # Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
126
126
|
getDisabled = () => this.attributes.disabled
|
127
127
|
|
128
128
|
setDisabled = value => {
|
129
129
|
this.attributes.disabled = value
|
130
130
|
}
|
131
131
|
|
132
|
+
// boolean # Computed property that returns true if user disabled or expired or inactive.
|
133
|
+
getDisabledExpiredOrInactive = () => this.attributes.disabled_expired_or_inactive
|
134
|
+
|
135
|
+
setDisabledExpiredOrInactive = value => {
|
136
|
+
this.attributes.disabled_expired_or_inactive = value
|
137
|
+
}
|
138
|
+
|
132
139
|
// email # User email address
|
133
140
|
getEmail = () => this.attributes.email
|
134
141
|
|
@@ -620,7 +627,7 @@ class User {
|
|
620
627
|
// bypass_inactive_disable - boolean - Exempt this user from being disabled based on inactivity?
|
621
628
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
622
629
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
623
|
-
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
630
|
+
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
624
631
|
// ftp_permission - boolean - Can the user access with FTP/FTPS?
|
625
632
|
// header_text - string - Text to display to the user in the header of the UI
|
626
633
|
// language - string - Preferred language
|
@@ -899,7 +906,7 @@ class User {
|
|
899
906
|
// bypass_inactive_disable - boolean - Exempt this user from being disabled based on inactivity?
|
900
907
|
// bypass_site_allowed_ips - boolean - Allow this user to skip site-wide IP blacklists?
|
901
908
|
// dav_permission - boolean - Can the user connect with WebDAV?
|
902
|
-
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes.
|
909
|
+
// disabled - boolean - Is user disabled? Disabled users cannot log in, and do not count for billing purposes. Users can be automatically disabled after an inactivity period via a Site setting or schedule to be deactivated after specific date.
|
903
910
|
// ftp_permission - boolean - Can the user access with FTP/FTPS?
|
904
911
|
// header_text - string - Text to display to the user in the header of the UI
|
905
912
|
// language - string - Preferred language
|