Skip to content

Commit 6fd0b62

Browse files
[Bot] push changes from Files.com
1 parent 2e053e0 commit 6fd0b62

File tree

8 files changed

+30
-4
lines changed

8 files changed

+30
-4
lines changed

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.429
1+
1.2.430

docs/models/Site.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@
276276
"self_managed": true,
277277
"sftp_permission": true,
278278
"site_admin": true,
279+
"workspace_admin": true,
279280
"site_id": 1,
280281
"workspace_id": 1,
281282
"skip_welcome_screen": true,

docs/models/User.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"self_managed": true,
6464
"sftp_permission": true,
6565
"site_admin": true,
66+
"workspace_admin": true,
6667
"site_id": 1,
6768
"workspace_id": 1,
6869
"skip_welcome_screen": true,
@@ -138,6 +139,7 @@
138139
* `self_managed` (boolean): Does this user manage it's own credentials or is it a shared/bot user?
139140
* `sftp_permission` (boolean): Can the user access with SFTP?
140141
* `site_admin` (boolean): Is the user an administrator for this site?
142+
* `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
141143
* `site_id` (int64): Site ID
142144
* `workspace_id` (int64): Workspace ID
143145
* `skip_welcome_screen` (boolean): Skip Welcome page in the UI?
@@ -254,6 +256,7 @@ await User.create({
254256
'time_zone': "Pacific Time (US & Canada)",
255257
'user_root': "example",
256258
'user_home': "example",
259+
'workspace_admin': true,
257260
'username': "user",
258261
'workspace_id': 1,
259262
})
@@ -312,6 +315,7 @@ await User.create({
312315
* `time_zone` (string): User time zone
313316
* `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.
314317
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
318+
* `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
315319
* `username` (string): Required - User's username
316320
* `workspace_id` (int64): Workspace ID
317321

@@ -411,6 +415,7 @@ await user.update({
411415
'time_zone': "Pacific Time (US & Canada)",
412416
'user_root': "example",
413417
'user_home': "example",
418+
'workspace_admin': true,
414419
'username': "user",
415420
'clear_2fa': false,
416421
'convert_to_partner_user': false,
@@ -470,6 +475,7 @@ await user.update({
470475
* `time_zone` (string): User time zone
471476
* `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.
472477
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
478+
* `workspace_admin` (boolean): Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
473479
* `username` (string): User's username
474480
* `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
475481
* `convert_to_partner_user` (boolean): If true, convert this user to a partner user by assigning the partner_id provided.
@@ -537,6 +543,7 @@ await user.update({
537543
"self_managed": true,
538544
"sftp_permission": true,
539545
"site_admin": true,
546+
"workspace_admin": true,
540547
"site_id": 1,
541548
"workspace_id": 1,
542549
"skip_welcome_screen": true,

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.429';
15+
var version = '1.2.430';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/User.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
428428
(0, _defineProperty2.default)(this, "setSiteAdmin", function (value) {
429429
_this.attributes.site_admin = value;
430430
});
431+
// boolean # Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
432+
(0, _defineProperty2.default)(this, "getWorkspaceAdmin", function () {
433+
return _this.attributes.workspace_admin;
434+
});
435+
(0, _defineProperty2.default)(this, "setWorkspaceAdmin", function (value) {
436+
_this.attributes.workspace_admin = value;
437+
});
431438
// int64 # Site ID
432439
(0, _defineProperty2.default)(this, "getSiteId", function () {
433440
return _this.attributes.site_id;
@@ -815,6 +822,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
815822
// time_zone - string - User time zone
816823
// 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.
817824
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
825+
// workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
818826
// username - string - User's username
819827
// clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
820828
// convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
@@ -1321,6 +1329,7 @@ _User = User;
13211329
// time_zone - string - User time zone
13221330
// 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.
13231331
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
1332+
// workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
13241333
// username (required) - string - User's username
13251334
// workspace_id - int64 - Workspace ID
13261335
(0, _defineProperty2.default)(User, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.429",
3+
"version": "1.2.430",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.429'
9+
const version = '1.2.430'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/User.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ class User {
423423
this.attributes.site_admin = value
424424
}
425425

426+
// boolean # Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
427+
getWorkspaceAdmin = () => this.attributes.workspace_admin
428+
429+
setWorkspaceAdmin = value => {
430+
this.attributes.workspace_admin = value
431+
}
432+
426433
// int64 # Site ID
427434
getSiteId = () => this.attributes.site_id
428435

@@ -741,6 +748,7 @@ class User {
741748
// time_zone - string - User time zone
742749
// 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.
743750
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
751+
// workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
744752
// username - string - User's username
745753
// clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
746754
// convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
@@ -1051,6 +1059,7 @@ class User {
10511059
// time_zone - string - User time zone
10521060
// 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.
10531061
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
1062+
// workspace_admin - boolean - Is the user a Workspace administrator? Applicable only to the workspace ID related to this user, if one is set.
10541063
// username (required) - string - User's username
10551064
// workspace_id - int64 - Workspace ID
10561065
static create = async (params = {}, options = {}) => {

0 commit comments

Comments
 (0)