files.com 1.2.326 → 1.2.328
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/GpgKey.md +3 -0
- package/docs/models/Partner.md +13 -2
- package/docs/models/Site.md +1 -0
- package/docs/models/User.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/GpgKey.js +7 -0
- package/lib/models/Partner.js +7 -0
- package/lib/models/User.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/GpgKey.js +7 -0
- package/src/models/Partner.js +7 -0
- package/src/models/User.js +7 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.328
|
package/docs/models/GpgKey.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"expires_at": "2000-01-01T01:00:00Z",
|
|
9
9
|
"name": "key name",
|
|
10
10
|
"partner_id": 1,
|
|
11
|
+
"partner_name": "example",
|
|
11
12
|
"user_id": 1,
|
|
12
13
|
"public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
13
14
|
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
* `expires_at` (date-time): Your GPG key expiration date.
|
|
22
23
|
* `name` (string): Your GPG key name.
|
|
23
24
|
* `partner_id` (int64): Partner ID who owns this GPG Key, if applicable.
|
|
25
|
+
* `partner_name` (string): Name of the Partner who owns this GPG Key, if applicable.
|
|
24
26
|
* `user_id` (int64): User ID who owns this GPG Key, if applicable.
|
|
25
27
|
* `public_key_md5` (string): MD5 hash of your GPG public key
|
|
26
28
|
* `private_key_md5` (string): MD5 hash of your GPG private key.
|
|
@@ -132,6 +134,7 @@ await gpg_key.update({
|
|
|
132
134
|
"expires_at": "2000-01-01T01:00:00Z",
|
|
133
135
|
"name": "key name",
|
|
134
136
|
"partner_id": 1,
|
|
137
|
+
"partner_name": "example",
|
|
135
138
|
"user_id": 1,
|
|
136
139
|
"public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
137
140
|
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
package/docs/models/Partner.md
CHANGED
|
@@ -12,7 +12,12 @@
|
|
|
12
12
|
"name": "Acme Corp",
|
|
13
13
|
"notes": "This is a note about the partner.",
|
|
14
14
|
"root_folder": "/AcmeCorp",
|
|
15
|
-
"tags": "example"
|
|
15
|
+
"tags": "example",
|
|
16
|
+
"user_ids": [
|
|
17
|
+
1,
|
|
18
|
+
2,
|
|
19
|
+
3
|
|
20
|
+
]
|
|
16
21
|
}
|
|
17
22
|
```
|
|
18
23
|
|
|
@@ -25,6 +30,7 @@
|
|
|
25
30
|
* `notes` (string): Notes about this Partner.
|
|
26
31
|
* `root_folder` (string): The root folder path for this Partner.
|
|
27
32
|
* `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.
|
|
33
|
+
* `user_ids` (array(int64)): Array of User IDs that belong to this Partner.
|
|
28
34
|
|
|
29
35
|
---
|
|
30
36
|
|
|
@@ -126,7 +132,12 @@ await partner.update({
|
|
|
126
132
|
"name": "Acme Corp",
|
|
127
133
|
"notes": "This is a note about the partner.",
|
|
128
134
|
"root_folder": "/AcmeCorp",
|
|
129
|
-
"tags": "example"
|
|
135
|
+
"tags": "example",
|
|
136
|
+
"user_ids": [
|
|
137
|
+
1,
|
|
138
|
+
2,
|
|
139
|
+
3
|
|
140
|
+
]
|
|
130
141
|
}
|
|
131
142
|
```
|
|
132
143
|
|
package/docs/models/Site.md
CHANGED
package/docs/models/User.md
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"office_integration_enabled": true,
|
|
49
49
|
"partner_admin": true,
|
|
50
50
|
"partner_id": 1,
|
|
51
|
+
"partner_name": "example",
|
|
51
52
|
"password_set_at": "2000-01-01T01:00:00Z",
|
|
52
53
|
"password_validity_days": 1,
|
|
53
54
|
"public_keys_count": 1,
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
* `office_integration_enabled` (boolean): Enable integration with Office for the web?
|
|
122
123
|
* `partner_admin` (boolean): Is this user a Partner administrator?
|
|
123
124
|
* `partner_id` (int64): Partner ID if this user belongs to a Partner
|
|
125
|
+
* `partner_name` (string): Name of the Partner if this user belongs to a Partner
|
|
124
126
|
* `password_set_at` (date-time): Last time the user's password was set
|
|
125
127
|
* `password_validity_days` (int64): Number of days to allow user to use the same password
|
|
126
128
|
* `public_keys_count` (int64): Number of public keys associated with this user
|
|
@@ -516,6 +518,7 @@ await user.update({
|
|
|
516
518
|
"office_integration_enabled": true,
|
|
517
519
|
"partner_admin": true,
|
|
518
520
|
"partner_id": 1,
|
|
521
|
+
"partner_name": "example",
|
|
519
522
|
"password_set_at": "2000-01-01T01:00:00Z",
|
|
520
523
|
"password_validity_days": 1,
|
|
521
524
|
"public_keys_count": 1,
|
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.328';
|
|
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/GpgKey.js
CHANGED
|
@@ -60,6 +60,13 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
|
|
|
60
60
|
(0, _defineProperty2.default)(this, "setPartnerId", function (value) {
|
|
61
61
|
_this.attributes.partner_id = value;
|
|
62
62
|
});
|
|
63
|
+
// string # Name of the Partner who owns this GPG Key, if applicable.
|
|
64
|
+
(0, _defineProperty2.default)(this, "getPartnerName", function () {
|
|
65
|
+
return _this.attributes.partner_name;
|
|
66
|
+
});
|
|
67
|
+
(0, _defineProperty2.default)(this, "setPartnerName", function (value) {
|
|
68
|
+
_this.attributes.partner_name = value;
|
|
69
|
+
});
|
|
63
70
|
// int64 # User ID who owns this GPG Key, if applicable.
|
|
64
71
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
|
65
72
|
return _this.attributes.user_id;
|
package/lib/models/Partner.js
CHANGED
|
@@ -95,6 +95,13 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
|
|
|
95
95
|
(0, _defineProperty2.default)(this, "setTags", function (value) {
|
|
96
96
|
_this.attributes.tags = value;
|
|
97
97
|
});
|
|
98
|
+
// array(int64) # Array of User IDs that belong to this Partner.
|
|
99
|
+
(0, _defineProperty2.default)(this, "getUserIds", function () {
|
|
100
|
+
return _this.attributes.user_ids;
|
|
101
|
+
});
|
|
102
|
+
(0, _defineProperty2.default)(this, "setUserIds", function (value) {
|
|
103
|
+
_this.attributes.user_ids = value;
|
|
104
|
+
});
|
|
98
105
|
// Parameters:
|
|
99
106
|
// name - string - The name of the Partner.
|
|
100
107
|
// allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
package/lib/models/User.js
CHANGED
|
@@ -323,6 +323,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
|
323
323
|
(0, _defineProperty2.default)(this, "setPartnerId", function (value) {
|
|
324
324
|
_this.attributes.partner_id = value;
|
|
325
325
|
});
|
|
326
|
+
// string # Name of the Partner if this user belongs to a Partner
|
|
327
|
+
(0, _defineProperty2.default)(this, "getPartnerName", function () {
|
|
328
|
+
return _this.attributes.partner_name;
|
|
329
|
+
});
|
|
330
|
+
(0, _defineProperty2.default)(this, "setPartnerName", function (value) {
|
|
331
|
+
_this.attributes.partner_name = value;
|
|
332
|
+
});
|
|
326
333
|
// date-time # Last time the user's password was set
|
|
327
334
|
(0, _defineProperty2.default)(this, "getPasswordSetAt", function () {
|
|
328
335
|
return _this.attributes.password_set_at;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/GpgKey.js
CHANGED
|
@@ -56,6 +56,13 @@ class GpgKey {
|
|
|
56
56
|
this.attributes.partner_id = value
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// string # Name of the Partner who owns this GPG Key, if applicable.
|
|
60
|
+
getPartnerName = () => this.attributes.partner_name
|
|
61
|
+
|
|
62
|
+
setPartnerName = value => {
|
|
63
|
+
this.attributes.partner_name = value
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
// int64 # User ID who owns this GPG Key, if applicable.
|
|
60
67
|
getUserId = () => this.attributes.user_id
|
|
61
68
|
|
package/src/models/Partner.js
CHANGED
|
@@ -91,6 +91,13 @@ class Partner {
|
|
|
91
91
|
this.attributes.tags = value
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
// array(int64) # Array of User IDs that belong to this Partner.
|
|
95
|
+
getUserIds = () => this.attributes.user_ids
|
|
96
|
+
|
|
97
|
+
setUserIds = value => {
|
|
98
|
+
this.attributes.user_ids = value
|
|
99
|
+
}
|
|
100
|
+
|
|
94
101
|
// Parameters:
|
|
95
102
|
// name - string - The name of the Partner.
|
|
96
103
|
// allow_bypassing_2fa_policies - boolean - Allow users created under this Partner to bypass Two-Factor Authentication policies.
|
package/src/models/User.js
CHANGED
|
@@ -318,6 +318,13 @@ class User {
|
|
|
318
318
|
this.attributes.partner_id = value
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
// string # Name of the Partner if this user belongs to a Partner
|
|
322
|
+
getPartnerName = () => this.attributes.partner_name
|
|
323
|
+
|
|
324
|
+
setPartnerName = value => {
|
|
325
|
+
this.attributes.partner_name = value
|
|
326
|
+
}
|
|
327
|
+
|
|
321
328
|
// date-time # Last time the user's password was set
|
|
322
329
|
getPasswordSetAt = () => this.attributes.password_set_at
|
|
323
330
|
|