files.com 1.2.327 → 1.2.329
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/Partner.md +24 -2
- package/lib/Files.js +1 -1
- package/lib/models/Partner.js +14 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Partner.js +14 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.329
|
package/docs/models/Partner.md
CHANGED
|
@@ -11,8 +11,18 @@
|
|
|
11
11
|
"id": 1,
|
|
12
12
|
"name": "Acme Corp",
|
|
13
13
|
"notes": "This is a note about the partner.",
|
|
14
|
+
"partner_admin_ids": [
|
|
15
|
+
1,
|
|
16
|
+
2,
|
|
17
|
+
3
|
|
18
|
+
],
|
|
14
19
|
"root_folder": "/AcmeCorp",
|
|
15
|
-
"tags": "example"
|
|
20
|
+
"tags": "example",
|
|
21
|
+
"user_ids": [
|
|
22
|
+
1,
|
|
23
|
+
2,
|
|
24
|
+
3
|
|
25
|
+
]
|
|
16
26
|
}
|
|
17
27
|
```
|
|
18
28
|
|
|
@@ -23,8 +33,10 @@
|
|
|
23
33
|
* `id` (int64): The unique ID of the Partner.
|
|
24
34
|
* `name` (string): The name of the Partner.
|
|
25
35
|
* `notes` (string): Notes about this Partner.
|
|
36
|
+
* `partner_admin_ids` (array(int64)): Array of User IDs that are Partner Admins for this Partner.
|
|
26
37
|
* `root_folder` (string): The root folder path for this Partner.
|
|
27
38
|
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
|
|
39
|
+
* `user_ids` (array(int64)): Array of User IDs that belong to this Partner.
|
|
28
40
|
|
|
29
41
|
---
|
|
30
42
|
|
|
@@ -125,8 +137,18 @@ await partner.update({
|
|
|
125
137
|
"id": 1,
|
|
126
138
|
"name": "Acme Corp",
|
|
127
139
|
"notes": "This is a note about the partner.",
|
|
140
|
+
"partner_admin_ids": [
|
|
141
|
+
1,
|
|
142
|
+
2,
|
|
143
|
+
3
|
|
144
|
+
],
|
|
128
145
|
"root_folder": "/AcmeCorp",
|
|
129
|
-
"tags": "example"
|
|
146
|
+
"tags": "example",
|
|
147
|
+
"user_ids": [
|
|
148
|
+
1,
|
|
149
|
+
2,
|
|
150
|
+
3
|
|
151
|
+
]
|
|
130
152
|
}
|
|
131
153
|
```
|
|
132
154
|
|
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.
|
|
15
|
+
var version = '1.2.329';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
package/lib/models/Partner.js
CHANGED
|
@@ -81,6 +81,13 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
|
|
|
81
81
|
(0, _defineProperty2.default)(this, "setNotes", function (value) {
|
|
82
82
|
_this.attributes.notes = value;
|
|
83
83
|
});
|
|
84
|
+
// array(int64) # Array of User IDs that are Partner Admins for this Partner.
|
|
85
|
+
(0, _defineProperty2.default)(this, "getPartnerAdminIds", function () {
|
|
86
|
+
return _this.attributes.partner_admin_ids;
|
|
87
|
+
});
|
|
88
|
+
(0, _defineProperty2.default)(this, "setPartnerAdminIds", function (value) {
|
|
89
|
+
_this.attributes.partner_admin_ids = value;
|
|
90
|
+
});
|
|
84
91
|
// string # The root folder path for this Partner.
|
|
85
92
|
(0, _defineProperty2.default)(this, "getRootFolder", function () {
|
|
86
93
|
return _this.attributes.root_folder;
|
|
@@ -95,6 +102,13 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
|
|
|
95
102
|
(0, _defineProperty2.default)(this, "setTags", function (value) {
|
|
96
103
|
_this.attributes.tags = value;
|
|
97
104
|
});
|
|
105
|
+
// array(int64) # Array of User IDs that belong to this Partner.
|
|
106
|
+
(0, _defineProperty2.default)(this, "getUserIds", function () {
|
|
107
|
+
return _this.attributes.user_ids;
|
|
108
|
+
});
|
|
109
|
+
(0, _defineProperty2.default)(this, "setUserIds", function (value) {
|
|
110
|
+
_this.attributes.user_ids = value;
|
|
111
|
+
});
|
|
98
112
|
// Parameters:
|
|
99
113
|
// name - string - The name of the Partner.
|
|
100
114
|
// allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Partner.js
CHANGED
|
@@ -77,6 +77,13 @@ class Partner {
|
|
|
77
77
|
this.attributes.notes = value
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
// array(int64) # Array of User IDs that are Partner Admins for this Partner.
|
|
81
|
+
getPartnerAdminIds = () => this.attributes.partner_admin_ids
|
|
82
|
+
|
|
83
|
+
setPartnerAdminIds = value => {
|
|
84
|
+
this.attributes.partner_admin_ids = value
|
|
85
|
+
}
|
|
86
|
+
|
|
80
87
|
// string # The root folder path for this Partner.
|
|
81
88
|
getRootFolder = () => this.attributes.root_folder
|
|
82
89
|
|
|
@@ -91,6 +98,13 @@ class Partner {
|
|
|
91
98
|
this.attributes.tags = value
|
|
92
99
|
}
|
|
93
100
|
|
|
101
|
+
// array(int64) # Array of User IDs that belong to this Partner.
|
|
102
|
+
getUserIds = () => this.attributes.user_ids
|
|
103
|
+
|
|
104
|
+
setUserIds = value => {
|
|
105
|
+
this.attributes.user_ids = value
|
|
106
|
+
}
|
|
107
|
+
|
|
94
108
|
// Parameters:
|
|
95
109
|
// name - string - The name of the Partner.
|
|
96
110
|
// allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|