files.com 1.1.10 → 1.1.12
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 +1 -1
- package/docs/models/Group.md +30 -2
- package/docs/models/Site.md +2 -0
- package/lib/Files.js +1 -1
- package/lib/models/Group.js +36 -0
- package/lib/models/Site.js +1 -0
- package/package.json +3 -3
- package/src/Files.js +1 -1
- package/src/models/Group.js +36 -0
- package/src/models/Site.js +1 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.12
|
package/docs/models/Group.md
CHANGED
@@ -9,7 +9,11 @@
|
|
9
9
|
"admin_ids": "1",
|
10
10
|
"notes": "example",
|
11
11
|
"user_ids": "1",
|
12
|
-
"usernames": "example"
|
12
|
+
"usernames": "example",
|
13
|
+
"ftp_permission": true,
|
14
|
+
"sftp_permission": true,
|
15
|
+
"dav_permission": true,
|
16
|
+
"restapi_permission": true
|
13
17
|
}
|
14
18
|
```
|
15
19
|
|
@@ -19,6 +23,10 @@
|
|
19
23
|
* `notes` (string): Notes about this group
|
20
24
|
* `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
|
21
25
|
* `usernames` (string): Comma-delimited list of usernames who belong to this group (separated by commas)
|
26
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
27
|
+
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
28
|
+
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
29
|
+
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
22
30
|
|
23
31
|
---
|
24
32
|
|
@@ -62,6 +70,10 @@ await Group.create({
|
|
62
70
|
'notes': "example",
|
63
71
|
'user_ids': "1",
|
64
72
|
'admin_ids': "1",
|
73
|
+
'ftp_permission': true,
|
74
|
+
'sftp_permission': true,
|
75
|
+
'dav_permission': true,
|
76
|
+
'restapi_permission': true,
|
65
77
|
'name': "name",
|
66
78
|
})
|
67
79
|
```
|
@@ -72,6 +84,10 @@ await Group.create({
|
|
72
84
|
* `notes` (string): Group notes.
|
73
85
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
74
86
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
87
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
88
|
+
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
89
|
+
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
90
|
+
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
75
91
|
* `name` (string): Required - Group name.
|
76
92
|
|
77
93
|
---
|
@@ -85,6 +101,10 @@ await group.update({
|
|
85
101
|
'notes': "example",
|
86
102
|
'user_ids': "1",
|
87
103
|
'admin_ids': "1",
|
104
|
+
'ftp_permission': true,
|
105
|
+
'sftp_permission': true,
|
106
|
+
'dav_permission': true,
|
107
|
+
'restapi_permission': true,
|
88
108
|
'name': "owners",
|
89
109
|
})
|
90
110
|
```
|
@@ -95,6 +115,10 @@ await group.update({
|
|
95
115
|
* `notes` (string): Group notes.
|
96
116
|
* `user_ids` (string): A list of user ids. If sent as a string, should be comma-delimited.
|
97
117
|
* `admin_ids` (string): A list of group admin user ids. If sent as a string, should be comma-delimited.
|
118
|
+
* `ftp_permission` (boolean): If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
119
|
+
* `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
120
|
+
* `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
121
|
+
* `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
98
122
|
* `name` (string): Group name.
|
99
123
|
|
100
124
|
### Example Response
|
@@ -106,7 +130,11 @@ await group.update({
|
|
106
130
|
"admin_ids": "1",
|
107
131
|
"notes": "example",
|
108
132
|
"user_ids": "1",
|
109
|
-
"usernames": "example"
|
133
|
+
"usernames": "example",
|
134
|
+
"ftp_permission": true,
|
135
|
+
"sftp_permission": true,
|
136
|
+
"dav_permission": true,
|
137
|
+
"restapi_permission": true
|
110
138
|
}
|
111
139
|
```
|
112
140
|
|
package/docs/models/Site.md
CHANGED
@@ -485,6 +485,7 @@ await Site.update({
|
|
485
485
|
'sftp_enabled': true,
|
486
486
|
'sftp_host_key_type': "default",
|
487
487
|
'active_sftp_host_key_id': 1,
|
488
|
+
'protocol_access_groups_only': true,
|
488
489
|
'bundle_watermark_value': {"key":"example value"},
|
489
490
|
'group_admins_can_set_user_password': true,
|
490
491
|
'bundle_recipient_blacklist_free_email_domains': true,
|
@@ -624,6 +625,7 @@ await Site.update({
|
|
624
625
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
625
626
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
626
627
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
628
|
+
* `protocol_access_groups_only` (boolean): If `true`, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
627
629
|
* `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
628
630
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
629
631
|
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
|
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.1.
|
14
|
+
var version = '1.1.12';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/Group.js
CHANGED
@@ -75,10 +75,42 @@ var Group = /*#__PURE__*/(0, _createClass2.default)(function Group() {
|
|
75
75
|
(0, _defineProperty2.default)(this, "setUsernames", function (value) {
|
76
76
|
_this.attributes.usernames = value;
|
77
77
|
});
|
78
|
+
// boolean # If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
79
|
+
(0, _defineProperty2.default)(this, "getFtpPermission", function () {
|
80
|
+
return _this.attributes.ftp_permission;
|
81
|
+
});
|
82
|
+
(0, _defineProperty2.default)(this, "setFtpPermission", function (value) {
|
83
|
+
_this.attributes.ftp_permission = value;
|
84
|
+
});
|
85
|
+
// boolean # If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
86
|
+
(0, _defineProperty2.default)(this, "getSftpPermission", function () {
|
87
|
+
return _this.attributes.sftp_permission;
|
88
|
+
});
|
89
|
+
(0, _defineProperty2.default)(this, "setSftpPermission", function (value) {
|
90
|
+
_this.attributes.sftp_permission = value;
|
91
|
+
});
|
92
|
+
// boolean # If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
93
|
+
(0, _defineProperty2.default)(this, "getDavPermission", function () {
|
94
|
+
return _this.attributes.dav_permission;
|
95
|
+
});
|
96
|
+
(0, _defineProperty2.default)(this, "setDavPermission", function (value) {
|
97
|
+
_this.attributes.dav_permission = value;
|
98
|
+
});
|
99
|
+
// boolean # If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
100
|
+
(0, _defineProperty2.default)(this, "getRestapiPermission", function () {
|
101
|
+
return _this.attributes.restapi_permission;
|
102
|
+
});
|
103
|
+
(0, _defineProperty2.default)(this, "setRestapiPermission", function (value) {
|
104
|
+
_this.attributes.restapi_permission = value;
|
105
|
+
});
|
78
106
|
// Parameters:
|
79
107
|
// notes - string - Group notes.
|
80
108
|
// user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
81
109
|
// admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
110
|
+
// ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
111
|
+
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
112
|
+
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
113
|
+
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
82
114
|
// name - string - Group name.
|
83
115
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
84
116
|
var params,
|
@@ -364,6 +396,10 @@ _class = Group;
|
|
364
396
|
// notes - string - Group notes.
|
365
397
|
// user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
366
398
|
// admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
399
|
+
// ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
400
|
+
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
401
|
+
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
402
|
+
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
367
403
|
// name (required) - string - Group name.
|
368
404
|
(0, _defineProperty2.default)(Group, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
369
405
|
var params,
|
package/lib/models/Site.js
CHANGED
@@ -769,6 +769,7 @@ _class = Site;
|
|
769
769
|
// sftp_enabled - boolean - Is SFTP enabled?
|
770
770
|
// sftp_host_key_type - string - Sftp Host Key Type
|
771
771
|
// active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
772
|
+
// protocol_access_groups_only - boolean - If `true`, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
772
773
|
// bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
773
774
|
// group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
774
775
|
// bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "files.com",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.12",
|
4
4
|
"description": "Files.com SDK for JavaScript",
|
5
5
|
"keywords": [
|
6
6
|
"files.com",
|
@@ -17,8 +17,8 @@
|
|
17
17
|
"engines": {
|
18
18
|
"node": "^6 || ^8.1 || >=10.*"
|
19
19
|
},
|
20
|
-
"main": "lib/
|
21
|
-
"module": "src/
|
20
|
+
"main": "lib/Files.js",
|
21
|
+
"module": "src/Files.js",
|
22
22
|
"dependencies": {
|
23
23
|
"@babel/runtime": "^7.10.3",
|
24
24
|
"cross-fetch": "^4.0.0",
|
package/src/Files.js
CHANGED
package/src/models/Group.js
CHANGED
@@ -66,11 +66,43 @@ class Group {
|
|
66
66
|
this.attributes.usernames = value
|
67
67
|
}
|
68
68
|
|
69
|
+
// boolean # If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
70
|
+
getFtpPermission = () => this.attributes.ftp_permission
|
71
|
+
|
72
|
+
setFtpPermission = value => {
|
73
|
+
this.attributes.ftp_permission = value
|
74
|
+
}
|
75
|
+
|
76
|
+
// boolean # If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
77
|
+
getSftpPermission = () => this.attributes.sftp_permission
|
78
|
+
|
79
|
+
setSftpPermission = value => {
|
80
|
+
this.attributes.sftp_permission = value
|
81
|
+
}
|
82
|
+
|
83
|
+
// boolean # If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
84
|
+
getDavPermission = () => this.attributes.dav_permission
|
85
|
+
|
86
|
+
setDavPermission = value => {
|
87
|
+
this.attributes.dav_permission = value
|
88
|
+
}
|
89
|
+
|
90
|
+
// boolean # If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
91
|
+
getRestapiPermission = () => this.attributes.restapi_permission
|
92
|
+
|
93
|
+
setRestapiPermission = value => {
|
94
|
+
this.attributes.restapi_permission = value
|
95
|
+
}
|
96
|
+
|
69
97
|
|
70
98
|
// Parameters:
|
71
99
|
// notes - string - Group notes.
|
72
100
|
// user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
73
101
|
// admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
102
|
+
// ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
103
|
+
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
104
|
+
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
105
|
+
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
74
106
|
// name - string - Group name.
|
75
107
|
update = async (params = {}) => {
|
76
108
|
if (!this.attributes.id) {
|
@@ -213,6 +245,10 @@ class Group {
|
|
213
245
|
// notes - string - Group notes.
|
214
246
|
// user_ids - string - A list of user ids. If sent as a string, should be comma-delimited.
|
215
247
|
// admin_ids - string - A list of group admin user ids. If sent as a string, should be comma-delimited.
|
248
|
+
// ftp_permission - boolean - If true, users in this group can use FTP to login. This will override a false value of `ftp_permission` on the user level.
|
249
|
+
// sftp_permission - boolean - If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
|
250
|
+
// dav_permission - boolean - If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
|
251
|
+
// restapi_permission - boolean - If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
|
216
252
|
// name (required) - string - Group name.
|
217
253
|
static create = async (params = {}, options = {}) => {
|
218
254
|
if (!params['name']) {
|
package/src/models/Site.js
CHANGED
@@ -571,6 +571,7 @@ class Site {
|
|
571
571
|
// sftp_enabled - boolean - Is SFTP enabled?
|
572
572
|
// sftp_host_key_type - string - Sftp Host Key Type
|
573
573
|
// active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
574
|
+
// protocol_access_groups_only - boolean - If `true`, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
574
575
|
// bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
575
576
|
// group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
576
577
|
// bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|