files.com 1.0.219 → 1.0.220

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.219
1
+ 1.0.220
@@ -28,6 +28,14 @@
28
28
  "header_text": "User-specific message.",
29
29
  "language": "en",
30
30
  "last_login_at": "2000-01-01T01:00:00Z",
31
+ "last_web_login_at": "2000-01-01T01:00:00Z",
32
+ "last_ftp_login_at": "2000-01-01T01:00:00Z",
33
+ "last_sftp_login_at": "2000-01-01T01:00:00Z",
34
+ "last_dav_login_at": "2000-01-01T01:00:00Z",
35
+ "last_desktop_login_at": "2000-01-01T01:00:00Z",
36
+ "last_restapi_login_at": "2000-01-01T01:00:00Z",
37
+ "last_api_use_at": "2000-01-01T01:00:00Z",
38
+ "last_active_at": "2000-01-01T01:00:00Z",
31
39
  "last_protocol_cipher": "example",
32
40
  "lockout_expires": "2000-01-01T01:00:00Z",
33
41
  "name": "John Doe",
@@ -80,8 +88,16 @@
80
88
  * `group_ids` (string): Comma-separated list of group IDs of which this user is a member
81
89
  * `header_text` (string): Text to display to the user in the header of the UI
82
90
  * `language` (string): Preferred language
83
- * `last_login_at` (date-time): User's last login time
84
- * `last_protocol_cipher` (string): The last protocol and cipher used
91
+ * `last_login_at` (date-time): User's most recent login time via any protocol
92
+ * `last_web_login_at` (date-time): User's most recent login time via web
93
+ * `last_ftp_login_at` (date-time): User's most recent login time via FTP
94
+ * `last_sftp_login_at` (date-time): User's most recent login time via SFTP
95
+ * `last_dav_login_at` (date-time): User's most recent login time via WebDAV
96
+ * `last_desktop_login_at` (date-time): User's most recent login time via Desktop app
97
+ * `last_restapi_login_at` (date-time): User's most recent login time via Rest API
98
+ * `last_api_use_at` (date-time): User's most recent API use time
99
+ * `last_active_at` (date-time): User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
100
+ * `last_protocol_cipher` (string): The most recent protocol and cipher used
85
101
  * `lockout_expires` (date-time): Time in the future that the user will no longer be locked out if applicable
86
102
  * `name` (string): User's full name
87
103
  * `company` (string): User's company
@@ -107,7 +123,7 @@
107
123
  * `externally_managed` (boolean): Is this user managed by a SsoStrategy?
108
124
  * `time_zone` (string): User time zone
109
125
  * `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.
126
+ * `updated_at` (date-time): User record most recently updated at. Note this may be incremented because of internal or external updates.
111
127
  * `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.
112
128
  * `avatar_file` (file): An image file for your user avatar.
113
129
  * `avatar_delete` (boolean): If true, the avatar will be deleted.
@@ -428,6 +444,14 @@ await user.update({
428
444
  "header_text": "User-specific message.",
429
445
  "language": "en",
430
446
  "last_login_at": "2000-01-01T01:00:00Z",
447
+ "last_web_login_at": "2000-01-01T01:00:00Z",
448
+ "last_ftp_login_at": "2000-01-01T01:00:00Z",
449
+ "last_sftp_login_at": "2000-01-01T01:00:00Z",
450
+ "last_dav_login_at": "2000-01-01T01:00:00Z",
451
+ "last_desktop_login_at": "2000-01-01T01:00:00Z",
452
+ "last_restapi_login_at": "2000-01-01T01:00:00Z",
453
+ "last_api_use_at": "2000-01-01T01:00:00Z",
454
+ "last_active_at": "2000-01-01T01:00:00Z",
431
455
  "last_protocol_cipher": "example",
432
456
  "lockout_expires": "2000-01-01T01:00:00Z",
433
457
  "name": "John Doe",
@@ -178,6 +178,54 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
178
178
  (0, _defineProperty2.default)(this, "setLastLoginAt", function (value) {
179
179
  _this.attributes.last_login_at = value;
180
180
  });
181
+ (0, _defineProperty2.default)(this, "getLastWebLoginAt", function () {
182
+ return _this.attributes.last_web_login_at;
183
+ });
184
+ (0, _defineProperty2.default)(this, "setLastWebLoginAt", function (value) {
185
+ _this.attributes.last_web_login_at = value;
186
+ });
187
+ (0, _defineProperty2.default)(this, "getLastFtpLoginAt", function () {
188
+ return _this.attributes.last_ftp_login_at;
189
+ });
190
+ (0, _defineProperty2.default)(this, "setLastFtpLoginAt", function (value) {
191
+ _this.attributes.last_ftp_login_at = value;
192
+ });
193
+ (0, _defineProperty2.default)(this, "getLastSftpLoginAt", function () {
194
+ return _this.attributes.last_sftp_login_at;
195
+ });
196
+ (0, _defineProperty2.default)(this, "setLastSftpLoginAt", function (value) {
197
+ _this.attributes.last_sftp_login_at = value;
198
+ });
199
+ (0, _defineProperty2.default)(this, "getLastDavLoginAt", function () {
200
+ return _this.attributes.last_dav_login_at;
201
+ });
202
+ (0, _defineProperty2.default)(this, "setLastDavLoginAt", function (value) {
203
+ _this.attributes.last_dav_login_at = value;
204
+ });
205
+ (0, _defineProperty2.default)(this, "getLastDesktopLoginAt", function () {
206
+ return _this.attributes.last_desktop_login_at;
207
+ });
208
+ (0, _defineProperty2.default)(this, "setLastDesktopLoginAt", function (value) {
209
+ _this.attributes.last_desktop_login_at = value;
210
+ });
211
+ (0, _defineProperty2.default)(this, "getLastRestapiLoginAt", function () {
212
+ return _this.attributes.last_restapi_login_at;
213
+ });
214
+ (0, _defineProperty2.default)(this, "setLastRestapiLoginAt", function (value) {
215
+ _this.attributes.last_restapi_login_at = value;
216
+ });
217
+ (0, _defineProperty2.default)(this, "getLastApiUseAt", function () {
218
+ return _this.attributes.last_api_use_at;
219
+ });
220
+ (0, _defineProperty2.default)(this, "setLastApiUseAt", function (value) {
221
+ _this.attributes.last_api_use_at = value;
222
+ });
223
+ (0, _defineProperty2.default)(this, "getLastActiveAt", function () {
224
+ return _this.attributes.last_active_at;
225
+ });
226
+ (0, _defineProperty2.default)(this, "setLastActiveAt", function (value) {
227
+ _this.attributes.last_active_at = value;
228
+ });
181
229
  (0, _defineProperty2.default)(this, "getLastProtocolCipher", function () {
182
230
  return _this.attributes.last_protocol_cipher;
183
231
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.219",
3
+ "version": "1.0.220",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -166,14 +166,70 @@ class User {
166
166
  this.attributes.language = value
167
167
  }
168
168
 
169
- // date-time # User's last login time
169
+ // date-time # User's most recent login time via any protocol
170
170
  getLastLoginAt = () => this.attributes.last_login_at
171
171
 
172
172
  setLastLoginAt = value => {
173
173
  this.attributes.last_login_at = value
174
174
  }
175
175
 
176
- // string # The last protocol and cipher used
176
+ // date-time # User's most recent login time via web
177
+ getLastWebLoginAt = () => this.attributes.last_web_login_at
178
+
179
+ setLastWebLoginAt = value => {
180
+ this.attributes.last_web_login_at = value
181
+ }
182
+
183
+ // date-time # User's most recent login time via FTP
184
+ getLastFtpLoginAt = () => this.attributes.last_ftp_login_at
185
+
186
+ setLastFtpLoginAt = value => {
187
+ this.attributes.last_ftp_login_at = value
188
+ }
189
+
190
+ // date-time # User's most recent login time via SFTP
191
+ getLastSftpLoginAt = () => this.attributes.last_sftp_login_at
192
+
193
+ setLastSftpLoginAt = value => {
194
+ this.attributes.last_sftp_login_at = value
195
+ }
196
+
197
+ // date-time # User's most recent login time via WebDAV
198
+ getLastDavLoginAt = () => this.attributes.last_dav_login_at
199
+
200
+ setLastDavLoginAt = value => {
201
+ this.attributes.last_dav_login_at = value
202
+ }
203
+
204
+ // date-time # User's most recent login time via Desktop app
205
+ getLastDesktopLoginAt = () => this.attributes.last_desktop_login_at
206
+
207
+ setLastDesktopLoginAt = value => {
208
+ this.attributes.last_desktop_login_at = value
209
+ }
210
+
211
+ // date-time # User's most recent login time via Rest API
212
+ getLastRestapiLoginAt = () => this.attributes.last_restapi_login_at
213
+
214
+ setLastRestapiLoginAt = value => {
215
+ this.attributes.last_restapi_login_at = value
216
+ }
217
+
218
+ // date-time # User's most recent API use time
219
+ getLastApiUseAt = () => this.attributes.last_api_use_at
220
+
221
+ setLastApiUseAt = value => {
222
+ this.attributes.last_api_use_at = value
223
+ }
224
+
225
+ // date-time # User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
226
+ getLastActiveAt = () => this.attributes.last_active_at
227
+
228
+ setLastActiveAt = value => {
229
+ this.attributes.last_active_at = value
230
+ }
231
+
232
+ // string # The most recent protocol and cipher used
177
233
  getLastProtocolCipher = () => this.attributes.last_protocol_cipher
178
234
 
179
235
  setLastProtocolCipher = value => {
@@ -355,7 +411,7 @@ class User {
355
411
  this.attributes.type_of_2fa = value
356
412
  }
357
413
 
358
- // date-time # User record last updated at. Note this may be incremented because of internal or external updates.
414
+ // date-time # User record most recently updated at. Note this may be incremented because of internal or external updates.
359
415
  getUpdatedAt = () => this.attributes.updated_at
360
416
 
361
417
  // 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.