files.com 1.2.301 → 1.2.303
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/Behavior.md +2 -2
- package/docs/models/BundleRegistration.md +1 -1
- package/docs/models/User.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/Behavior.js +2 -2
- package/lib/models/BundleRegistration.js +1 -1
- package/lib/models/User.js +8 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Behavior.js +2 -2
- package/src/models/BundleRegistration.js +1 -1
- package/src/models/User.js +8 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.303
|
package/docs/models/Behavior.md
CHANGED
|
@@ -44,7 +44,7 @@ await Behavior.list
|
|
|
44
44
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
45
45
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
46
46
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
47
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
47
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
@@ -75,7 +75,7 @@ await Behavior.listFor(path, {
|
|
|
75
75
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
76
76
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
77
77
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
78
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
78
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
79
79
|
* `path` (string): Required - Path to operate on.
|
|
80
80
|
* `ancestor_behaviors` (boolean): If `true`, behaviors above this path are shown.
|
|
81
81
|
|
|
@@ -53,5 +53,5 @@ await BundleRegistration.list({
|
|
|
53
53
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
54
54
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
55
55
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
56
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
56
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
|
|
57
57
|
* `bundle_id` (int64): ID of the associated Bundle
|
package/docs/models/User.md
CHANGED
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
* `password` (string): User password.
|
|
152
152
|
* `password_confirmation` (string): Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
|
153
153
|
* `announcements_read` (boolean): Signifies that the user has read all the announcements in the UI.
|
|
154
|
+
* `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
154
155
|
|
|
155
156
|
---
|
|
156
157
|
|
|
@@ -384,6 +385,7 @@ await user.update({
|
|
|
384
385
|
'user_root': "example",
|
|
385
386
|
'user_home': "example",
|
|
386
387
|
'username': "user",
|
|
388
|
+
'clear_2fa': false,
|
|
387
389
|
})
|
|
388
390
|
```
|
|
389
391
|
|
|
@@ -437,6 +439,7 @@ await user.update({
|
|
|
437
439
|
* `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
|
438
440
|
* `user_home` (string): Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
|
439
441
|
* `username` (string): User's username
|
|
442
|
+
* `clear_2fa` (boolean): If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
440
443
|
|
|
441
444
|
### Example Response
|
|
442
445
|
|
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.303';
|
|
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/Behavior.js
CHANGED
|
@@ -285,7 +285,7 @@ _Behavior = Behavior;
|
|
|
285
285
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
286
286
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
287
287
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
288
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
288
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
289
289
|
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
290
290
|
var _response$data;
|
|
291
291
|
var params,
|
|
@@ -383,7 +383,7 @@ _Behavior = Behavior;
|
|
|
383
383
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
384
384
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
385
385
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
386
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
386
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
387
387
|
// path (required) - string - Path to operate on.
|
|
388
388
|
// ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
|
|
389
389
|
(0, _defineProperty2.default)(Behavior, "listFor", /*#__PURE__*/function () {
|
|
@@ -102,7 +102,7 @@ _BundleRegistration = BundleRegistration;
|
|
|
102
102
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
103
103
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
104
104
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
105
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
105
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
|
|
106
106
|
// bundle_id - int64 - ID of the associated Bundle
|
|
107
107
|
(0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
108
108
|
var _response$data;
|
package/lib/models/User.js
CHANGED
|
@@ -561,6 +561,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
|
561
561
|
(0, _defineProperty2.default)(this, "setAnnouncementsRead", function (value) {
|
|
562
562
|
_this.attributes.announcements_read = value;
|
|
563
563
|
});
|
|
564
|
+
// boolean # If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
565
|
+
(0, _defineProperty2.default)(this, "getClear2fa", function () {
|
|
566
|
+
return _this.attributes.clear_2fa;
|
|
567
|
+
});
|
|
568
|
+
(0, _defineProperty2.default)(this, "setClear2fa", function (value) {
|
|
569
|
+
_this.attributes.clear_2fa = value;
|
|
570
|
+
});
|
|
564
571
|
// Unlock user who has been locked out due to failed logins
|
|
565
572
|
(0, _defineProperty2.default)(this, "unlock", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
566
573
|
var params,
|
|
@@ -756,6 +763,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
|
756
763
|
// user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
|
757
764
|
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
|
758
765
|
// username - string - User's username
|
|
766
|
+
// clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
759
767
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
760
768
|
var params,
|
|
761
769
|
response,
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Behavior.js
CHANGED
|
@@ -196,7 +196,7 @@ class Behavior {
|
|
|
196
196
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
197
197
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
198
198
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
199
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
199
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
200
200
|
static list = async (params = {}, options = {}) => {
|
|
201
201
|
if (params.cursor && !isString(params.cursor)) {
|
|
202
202
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
|
|
@@ -243,7 +243,7 @@ class Behavior {
|
|
|
243
243
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
244
244
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
245
245
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
246
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
246
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
|
|
247
247
|
// path (required) - string - Path to operate on.
|
|
248
248
|
// ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
|
|
249
249
|
static listFor = async (path, params = {}, options = {}) => {
|
|
@@ -71,7 +71,7 @@ class BundleRegistration {
|
|
|
71
71
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
72
72
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
|
73
73
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
74
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
|
|
74
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
|
|
75
75
|
// bundle_id - int64 - ID of the associated Bundle
|
|
76
76
|
static list = async (params = {}, options = {}) => {
|
|
77
77
|
if (params.user_id && !isInt(params.user_id)) {
|
package/src/models/User.js
CHANGED
|
@@ -556,6 +556,13 @@ class User {
|
|
|
556
556
|
this.attributes.announcements_read = value
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
+
// boolean # If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
560
|
+
getClear2fa = () => this.attributes.clear_2fa
|
|
561
|
+
|
|
562
|
+
setClear2fa = value => {
|
|
563
|
+
this.attributes.clear_2fa = value
|
|
564
|
+
}
|
|
565
|
+
|
|
559
566
|
// Unlock user who has been locked out due to failed logins
|
|
560
567
|
unlock = async (params = {}) => {
|
|
561
568
|
if (!this.attributes.id) {
|
|
@@ -682,6 +689,7 @@ class User {
|
|
|
682
689
|
// user_root - string - Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set). Note that this is not used for API, Desktop, or Web interface.
|
|
683
690
|
// user_home - string - Home folder for FTP/SFTP. Note that this is not used for API, Desktop, or Web interface.
|
|
684
691
|
// username - string - User's username
|
|
692
|
+
// clear_2fa - boolean - If true when changing authentication_method from `password` to `sso`, remove all two-factor methods. Ignored in all other cases.
|
|
685
693
|
update = async (params = {}) => {
|
|
686
694
|
if (!this.attributes.id) {
|
|
687
695
|
throw new errors.EmptyPropertyError('Current object has no id')
|