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 CHANGED
@@ -1 +1 @@
1
- 1.2.326
1
+ 1.2.327
@@ -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",
@@ -262,6 +262,7 @@
262
262
  "office_integration_enabled": true,
263
263
  "partner_admin": true,
264
264
  "partner_id": 1,
265
+ "partner_name": "example",
265
266
  "password_set_at": "2000-01-01T01:00:00Z",
266
267
  "password_validity_days": 1,
267
268
  "public_keys_count": 1,
@@ -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.326';
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;
@@ -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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.326",
3
+ "version": "1.2.327",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.326'
9
+ const version = '1.2.327'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -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
 
@@ -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