files.com 1.2.323 → 1.2.324

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.323
1
+ 1.2.324
@@ -137,7 +137,7 @@
137
137
 
138
138
  ---
139
139
 
140
- ## List Bundles
140
+ ## List Share Links
141
141
 
142
142
  ```
143
143
  await Bundle.list({
@@ -161,7 +161,7 @@ await Bundle.list({
161
161
 
162
162
  ---
163
163
 
164
- ## Show Bundle
164
+ ## Show Share Link
165
165
 
166
166
  ```
167
167
  await Bundle.find(id)
@@ -174,7 +174,7 @@ await Bundle.find(id)
174
174
 
175
175
  ---
176
176
 
177
- ## Create Bundle
177
+ ## Create Share Link
178
178
 
179
179
  ```
180
180
  await Bundle.create({
@@ -260,7 +260,7 @@ await bundle.share({
260
260
 
261
261
  ---
262
262
 
263
- ## Update Bundle
263
+ ## Update Share Link
264
264
 
265
265
  ```
266
266
  const bundle = await Bundle.find(id)
@@ -412,7 +412,7 @@ await bundle.update({
412
412
 
413
413
  ---
414
414
 
415
- ## Delete Bundle
415
+ ## Delete Share Link
416
416
 
417
417
  ```
418
418
  const bundle = await Bundle.find(id)
@@ -34,7 +34,7 @@
34
34
 
35
35
  ---
36
36
 
37
- ## List Bundle Downloads
37
+ ## List Share Link Downloads
38
38
 
39
39
  ```
40
40
  await BundleDownload.list({
@@ -21,7 +21,7 @@
21
21
 
22
22
  ---
23
23
 
24
- ## List Bundle Notifications
24
+ ## List Share Link Notifications
25
25
 
26
26
  ```
27
27
  await BundleNotification.list({
@@ -40,7 +40,7 @@ await BundleNotification.list({
40
40
 
41
41
  ---
42
42
 
43
- ## Show Bundle Notification
43
+ ## Show Share Link Notification
44
44
 
45
45
  ```
46
46
  await BundleNotification.find(id)
@@ -53,7 +53,7 @@ await BundleNotification.find(id)
53
53
 
54
54
  ---
55
55
 
56
- ## Create Bundle Notification
56
+ ## Create Share Link Notification
57
57
 
58
58
  ```
59
59
  await BundleNotification.create({
@@ -76,7 +76,7 @@ await BundleNotification.create({
76
76
 
77
77
  ---
78
78
 
79
- ## Update Bundle Notification
79
+ ## Update Share Link Notification
80
80
 
81
81
  ```
82
82
  const bundle_notification = await BundleNotification.find(id)
@@ -107,7 +107,7 @@ await bundle_notification.update({
107
107
 
108
108
  ---
109
109
 
110
- ## Delete Bundle Notification
110
+ ## Delete Share Link Notification
111
111
 
112
112
  ```
113
113
  const bundle_notification = await BundleNotification.find(id)
@@ -23,7 +23,7 @@
23
23
 
24
24
  ---
25
25
 
26
- ## List Bundle Recipients
26
+ ## List Share Link Recipients
27
27
 
28
28
  ```
29
29
  await BundleRecipient.list({
@@ -44,7 +44,7 @@ await BundleRecipient.list({
44
44
 
45
45
  ---
46
46
 
47
- ## Create Bundle Recipient
47
+ ## Create Share Link Recipient
48
48
 
49
49
  ```
50
50
  await BundleRecipient.create({
@@ -38,7 +38,7 @@
38
38
 
39
39
  ---
40
40
 
41
- ## List Bundle Registrations
41
+ ## List Share Link Registrations
42
42
 
43
43
  ```
44
44
  await BundleRegistration.list({
@@ -160,6 +160,7 @@
160
160
  * `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
161
161
  * `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
162
162
  * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
163
+ * `convert_to_partner_user` (boolean): If true, convert this user to a partner user by assigning the partner_id provided.
163
164
 
164
165
  ---
165
166
 
@@ -406,6 +407,7 @@ await user.update({
406
407
  'user_home': "example",
407
408
  'username': "user",
408
409
  'clear_2fa': false,
410
+ 'convert_to_partner_user': false,
409
411
  })
410
412
  ```
411
413
 
@@ -464,6 +466,7 @@ await user.update({
464
466
  * `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
465
467
  * `username` (string): User's username
466
468
  * `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
469
+ * `convert_to_partner_user` (boolean): If true, convert this user to a partner user by assigning the partner_id provided.
467
470
 
468
471
  ### Example Response
469
472
 
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.323';
15
+ var version = '1.2.324';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -596,6 +596,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
596
596
  (0, _defineProperty2.default)(this, "setClear2fa", function (value) {
597
597
  _this.attributes.clear_2fa = value;
598
598
  });
599
+ // boolean # If true, convert this user to a partner user by assigning the partner_id provided.
600
+ (0, _defineProperty2.default)(this, "getConvertToPartnerUser", function () {
601
+ return _this.attributes.convert_to_partner_user;
602
+ });
603
+ (0, _defineProperty2.default)(this, "setConvertToPartnerUser", function (value) {
604
+ _this.attributes.convert_to_partner_user = value;
605
+ });
599
606
  // Unlock user who has been locked out due to failed logins
600
607
  (0, _defineProperty2.default)(this, "unlock", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
601
608
  var params,
@@ -796,6 +803,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
796
803
  // user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
797
804
  // username - string - User's username
798
805
  // clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
806
+ // convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
799
807
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
800
808
  var params,
801
809
  response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.323",
3
+ "version": "1.2.324",
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.323'
9
+ const version = '1.2.324'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -591,6 +591,13 @@ class User {
591
591
  this.attributes.clear_2fa = value
592
592
  }
593
593
 
594
+ // boolean # If true, convert this user to a partner user by assigning the partner_id provided.
595
+ getConvertToPartnerUser = () => this.attributes.convert_to_partner_user
596
+
597
+ setConvertToPartnerUser = value => {
598
+ this.attributes.convert_to_partner_user = value
599
+ }
600
+
594
601
  // Unlock user who has been locked out due to failed logins
595
602
  unlock = async (params = {}) => {
596
603
  if (!this.attributes.id) {
@@ -722,6 +729,7 @@ class User {
722
729
  // user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
723
730
  // username - string - User's username
724
731
  // clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
732
+ // convert_to_partner_user - boolean - If true, convert this user to a partner user by assigning the partner_id provided.
725
733
  update = async (params = {}) => {
726
734
  if (!this.attributes.id) {
727
735
  throw new errors.EmptyPropertyError('Current object has no id')