files.com 1.0.193 → 1.0.194
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Site.md +2 -0
- package/docs/models/User.md +6 -0
- package/lib/models/User.js +9 -0
- package/package.json +1 -1
- package/src/models/User.js +10 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.194
|
package/docs/models/Site.md
CHANGED
@@ -178,6 +178,7 @@
|
|
178
178
|
"dav_permission": true,
|
179
179
|
"disabled": true,
|
180
180
|
"email": "john.doe@files.com",
|
181
|
+
"first_login_at": "2000-01-01T01:00:00Z",
|
181
182
|
"ftp_permission": true,
|
182
183
|
"group_ids": "",
|
183
184
|
"header_text": "User-specific message.",
|
@@ -209,6 +210,7 @@
|
|
209
210
|
"externally_managed": true,
|
210
211
|
"time_zone": "Pacific Time (US & Canada)",
|
211
212
|
"type_of_2fa": "yubi",
|
213
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
212
214
|
"user_root": ""
|
213
215
|
},
|
214
216
|
"user_lockout": true,
|
package/docs/models/User.md
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
"dav_permission": true,
|
23
23
|
"disabled": true,
|
24
24
|
"email": "john.doe@files.com",
|
25
|
+
"first_login_at": "2000-01-01T01:00:00Z",
|
25
26
|
"ftp_permission": true,
|
26
27
|
"group_ids": "",
|
27
28
|
"header_text": "User-specific message.",
|
@@ -53,6 +54,7 @@
|
|
53
54
|
"externally_managed": true,
|
54
55
|
"time_zone": "Pacific Time (US & Canada)",
|
55
56
|
"type_of_2fa": "yubi",
|
57
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
56
58
|
"user_root": ""
|
57
59
|
}
|
58
60
|
```
|
@@ -73,6 +75,7 @@
|
|
73
75
|
* `dav_permission` (boolean): Can the user connect with WebDAV?
|
74
76
|
* `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.
|
75
77
|
* `email` (email): User email address
|
78
|
+
* `first_login_at` (date-time): User's first login time
|
76
79
|
* `ftp_permission` (boolean): Can the user access with FTP/FTPS?
|
77
80
|
* `group_ids` (string): Comma-separated list of group IDs of which this user is a member
|
78
81
|
* `header_text` (string): Text to display to the user in the header of the UI
|
@@ -104,6 +107,7 @@
|
|
104
107
|
* `externally_managed` (boolean): Is this user managed by a SsoStrategy?
|
105
108
|
* `time_zone` (string): User time zone
|
106
109
|
* `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
|
110
|
+
* `updated_at` (date-time): User record last updated at. Note this may be incremented because of internal or external updates.
|
107
111
|
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
|
108
112
|
* `avatar_file` (file): An image file for your user avatar.
|
109
113
|
* `avatar_delete` (boolean): If true, the avatar will be deleted.
|
@@ -414,6 +418,7 @@ await user.update({
|
|
414
418
|
"dav_permission": true,
|
415
419
|
"disabled": true,
|
416
420
|
"email": "john.doe@files.com",
|
421
|
+
"first_login_at": "2000-01-01T01:00:00Z",
|
417
422
|
"ftp_permission": true,
|
418
423
|
"group_ids": "",
|
419
424
|
"header_text": "User-specific message.",
|
@@ -445,6 +450,7 @@ await user.update({
|
|
445
450
|
"externally_managed": true,
|
446
451
|
"time_zone": "Pacific Time (US & Canada)",
|
447
452
|
"type_of_2fa": "yubi",
|
453
|
+
"updated_at": "2000-01-01T01:00:00Z",
|
448
454
|
"user_root": ""
|
449
455
|
}
|
450
456
|
```
|
package/lib/models/User.js
CHANGED
@@ -142,6 +142,12 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
142
142
|
(0, _defineProperty2.default)(this, "setEmail", function (value) {
|
143
143
|
_this.attributes.email = value;
|
144
144
|
});
|
145
|
+
(0, _defineProperty2.default)(this, "getFirstLoginAt", function () {
|
146
|
+
return _this.attributes.first_login_at;
|
147
|
+
});
|
148
|
+
(0, _defineProperty2.default)(this, "setFirstLoginAt", function (value) {
|
149
|
+
_this.attributes.first_login_at = value;
|
150
|
+
});
|
145
151
|
(0, _defineProperty2.default)(this, "getFtpPermission", function () {
|
146
152
|
return _this.attributes.ftp_permission;
|
147
153
|
});
|
@@ -328,6 +334,9 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
328
334
|
(0, _defineProperty2.default)(this, "setTypeOf2fa", function (value) {
|
329
335
|
_this.attributes.type_of_2fa = value;
|
330
336
|
});
|
337
|
+
(0, _defineProperty2.default)(this, "getUpdatedAt", function () {
|
338
|
+
return _this.attributes.updated_at;
|
339
|
+
});
|
331
340
|
(0, _defineProperty2.default)(this, "getUserRoot", function () {
|
332
341
|
return _this.attributes.user_root;
|
333
342
|
});
|
package/package.json
CHANGED
package/src/models/User.js
CHANGED
@@ -131,6 +131,13 @@ class User {
|
|
131
131
|
this.attributes.email = value
|
132
132
|
}
|
133
133
|
|
134
|
+
// date-time # User's first login time
|
135
|
+
getFirstLoginAt = () => this.attributes.first_login_at
|
136
|
+
|
137
|
+
setFirstLoginAt = value => {
|
138
|
+
this.attributes.first_login_at = value
|
139
|
+
}
|
140
|
+
|
134
141
|
// boolean # Can the user access with FTP/FTPS?
|
135
142
|
getFtpPermission = () => this.attributes.ftp_permission
|
136
143
|
|
@@ -348,6 +355,9 @@ class User {
|
|
348
355
|
this.attributes.type_of_2fa = value
|
349
356
|
}
|
350
357
|
|
358
|
+
// date-time # User record last updated at. Note this may be incremented because of internal or external updates.
|
359
|
+
getUpdatedAt = () => this.attributes.updated_at
|
360
|
+
|
351
361
|
// string # Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
|
352
362
|
getUserRoot = () => this.attributes.user_root
|
353
363
|
|