files.com 1.2.143 → 1.2.145
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/SettingsChange.md +1 -1
- package/docs/models/Site.md +1 -0
- package/docs/models/User.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/SettingsChange.js +1 -1
- package/lib/models/User.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/SettingsChange.js +1 -1
- package/src/models/User.js +7 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.145
|
@@ -37,5 +37,5 @@ await SettingsChange.list
|
|
37
37
|
|
38
38
|
* `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.
|
39
39
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
40
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
40
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `api_key_id` or `user_id`.
|
41
41
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
package/docs/models/Site.md
CHANGED
package/docs/models/User.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
"authenticate_until": "2000-01-01T01:00:00Z",
|
16
16
|
"authentication_method": "password",
|
17
17
|
"avatar_url": "example",
|
18
|
+
"billable": true,
|
18
19
|
"billing_permission": true,
|
19
20
|
"bypass_site_allowed_ips": true,
|
20
21
|
"bypass_inactive_disable": true,
|
@@ -82,6 +83,7 @@
|
|
82
83
|
* `authenticate_until` (date-time): Scheduled Date/Time at which user will be deactivated
|
83
84
|
* `authentication_method` (string): How is this user authenticated?
|
84
85
|
* `avatar_url` (string): URL holding the user's avatar
|
86
|
+
* `billable` (boolean): Is this a billable user record?
|
85
87
|
* `billing_permission` (boolean): Allow this user to perform operations on the account, payments, and invoices?
|
86
88
|
* `bypass_site_allowed_ips` (boolean): Allow this user to skip site-wide IP blacklists?
|
87
89
|
* `bypass_inactive_disable` (boolean): Exempt this user from being disabled based on inactivity?
|
@@ -446,6 +448,7 @@ await user.update({
|
|
446
448
|
"authenticate_until": "2000-01-01T01:00:00Z",
|
447
449
|
"authentication_method": "password",
|
448
450
|
"avatar_url": "example",
|
451
|
+
"billable": true,
|
449
452
|
"billing_permission": true,
|
450
453
|
"bypass_site_allowed_ips": true,
|
451
454
|
"bypass_inactive_disable": true,
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.145';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -78,7 +78,7 @@ _SettingsChange = SettingsChange;
|
|
78
78
|
// Parameters:
|
79
79
|
// 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.
|
80
80
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
81
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
81
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `api_key_id` or `user_id`.
|
82
82
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
83
83
|
(0, _defineProperty2.default)(SettingsChange, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
84
84
|
var _response$data;
|
package/lib/models/User.js
CHANGED
@@ -96,6 +96,13 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
96
96
|
(0, _defineProperty2.default)(this, "setAvatarUrl", function (value) {
|
97
97
|
_this.attributes.avatar_url = value;
|
98
98
|
});
|
99
|
+
// boolean # Is this a billable user record?
|
100
|
+
(0, _defineProperty2.default)(this, "getBillable", function () {
|
101
|
+
return _this.attributes.billable;
|
102
|
+
});
|
103
|
+
(0, _defineProperty2.default)(this, "setBillable", function (value) {
|
104
|
+
_this.attributes.billable = value;
|
105
|
+
});
|
99
106
|
// boolean # Allow this user to perform operations on the account, payments, and invoices?
|
100
107
|
(0, _defineProperty2.default)(this, "getBillingPermission", function () {
|
101
108
|
return _this.attributes.billing_permission;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
@@ -52,7 +52,7 @@ class SettingsChange {
|
|
52
52
|
// Parameters:
|
53
53
|
// 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.
|
54
54
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
55
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
55
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`, `api_key_id` or `user_id`.
|
56
56
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `api_key_id` and `user_id`.
|
57
57
|
static list = async (params = {}, options = {}) => {
|
58
58
|
if (params.cursor && !isString(params.cursor)) {
|
package/src/models/User.js
CHANGED
@@ -91,6 +91,13 @@ class User {
|
|
91
91
|
this.attributes.avatar_url = value
|
92
92
|
}
|
93
93
|
|
94
|
+
// boolean # Is this a billable user record?
|
95
|
+
getBillable = () => this.attributes.billable
|
96
|
+
|
97
|
+
setBillable = value => {
|
98
|
+
this.attributes.billable = value
|
99
|
+
}
|
100
|
+
|
94
101
|
// boolean # Allow this user to perform operations on the account, payments, and invoices?
|
95
102
|
getBillingPermission = () => this.attributes.billing_permission
|
96
103
|
|