files.com 1.2.266 → 1.2.267

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.266
1
+ 1.2.267
@@ -284,7 +284,8 @@
284
284
  "user_root": "example",
285
285
  "user_home": "example",
286
286
  "days_remaining_until_password_expire": 1,
287
- "password_expire_at": "2000-01-01T01:00:00Z"
287
+ "password_expire_at": "2000-01-01T01:00:00Z",
288
+ "has_reassignable_associations": true
288
289
  },
289
290
  "user_lockout": true,
290
291
  "user_lockout_lock_period": 1,
@@ -71,7 +71,8 @@
71
71
  "user_root": "example",
72
72
  "user_home": "example",
73
73
  "days_remaining_until_password_expire": 1,
74
- "password_expire_at": "2000-01-01T01:00:00Z"
74
+ "password_expire_at": "2000-01-01T01:00:00Z",
75
+ "has_reassignable_associations": true
75
76
  }
76
77
  ```
77
78
 
@@ -141,6 +142,7 @@
141
142
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
142
143
  * `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
143
144
  * `password_expire_at` (date-time): Password expiration datetime
145
+ * `has_reassignable_associations` (boolean): Does this user have any associations that can be reassigned on delete?
144
146
  * `avatar_file` (file): An image file for your user avatar.
145
147
  * `avatar_delete` (boolean): If true, the avatar will be deleted.
146
148
  * `change_password` (string): Used for changing a password on an existing user.
@@ -509,7 +511,8 @@ await user.update({
509
511
  "user_root": "example",
510
512
  "user_home": "example",
511
513
  "days_remaining_until_password_expire": 1,
512
- "password_expire_at": "2000-01-01T01:00:00Z"
514
+ "password_expire_at": "2000-01-01T01:00:00Z",
515
+ "has_reassignable_associations": true
513
516
  }
514
517
  ```
515
518
 
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.266';
15
+ var version = '1.2.267';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -491,6 +491,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
491
491
  (0, _defineProperty2.default)(this, "setPasswordExpireAt", function (value) {
492
492
  _this.attributes.password_expire_at = value;
493
493
  });
494
+ // boolean # Does this user have any associations that can be reassigned on delete?
495
+ (0, _defineProperty2.default)(this, "getHasReassignableAssociations", function () {
496
+ return _this.attributes.has_reassignable_associations;
497
+ });
498
+ (0, _defineProperty2.default)(this, "setHasReassignableAssociations", function (value) {
499
+ _this.attributes.has_reassignable_associations = value;
500
+ });
494
501
  // file # An image file for your user avatar.
495
502
  (0, _defineProperty2.default)(this, "getAvatarFile", function () {
496
503
  return _this.attributes.avatar_file;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.266",
3
+ "version": "1.2.267",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.266'
9
+ const version = '1.2.267'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -486,6 +486,13 @@ class User {
486
486
  this.attributes.password_expire_at = value
487
487
  }
488
488
 
489
+ // boolean # Does this user have any associations that can be reassigned on delete?
490
+ getHasReassignableAssociations = () => this.attributes.has_reassignable_associations
491
+
492
+ setHasReassignableAssociations = value => {
493
+ this.attributes.has_reassignable_associations = value
494
+ }
495
+
489
496
  // file # An image file for your user avatar.
490
497
  getAvatarFile = () => this.attributes.avatar_file
491
498