files.com 1.2.326 → 1.2.327
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/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/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/User.js +7 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.327
|
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/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.327';
|
|
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/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/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
|
|