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 CHANGED
@@ -1 +1 @@
1
- 1.2.56
1
+ 1.2.57
@@ -210,6 +210,7 @@
210
210
  "created_at": "2000-01-01T01:00:00Z",
211
211
  "dav_permission": true,
212
212
  "disabled": true,
213
+ "disabled_expired_or_inactive": true,
213
214
  "email": "example",
214
215
  "first_login_at": "2000-01-01T01:00:00Z",
215
216
  "ftp_permission": true,
@@ -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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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.56';
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;
@@ -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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.56'
8
+ const version = '1.2.57'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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. Users can be automatically disabled after an inactivity period via a Site setting.
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