files.com 1.2.251 → 1.2.253
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/ApiRequestLog.md +3 -1
- package/docs/models/PublicKey.md +5 -0
- package/docs/models/Site.md +2 -1
- package/lib/Files.js +1 -1
- package/lib/models/ApiRequestLog.js +4 -0
- package/lib/models/PublicKey.js +5 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ApiRequestLog.js +3 -0
- package/src/models/PublicKey.js +5 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.253
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"error_message": "example",
|
|
23
23
|
"response_code": 1,
|
|
24
24
|
"success": true,
|
|
25
|
-
"duration_ms": 1
|
|
25
|
+
"duration_ms": 1,
|
|
26
|
+
"impersonator_user_id": 1
|
|
26
27
|
}
|
|
27
28
|
```
|
|
28
29
|
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
* `response_code` (int64): HTTP Response Code
|
|
46
47
|
* `success` (boolean): `false` if HTTP Response Code is 4xx or 5xx
|
|
47
48
|
* `duration_ms` (int64): Duration (in milliseconds)
|
|
49
|
+
* `impersonator_user_id` (int64): User ID of Site Admin user impersonating this user via a Read-Only session.
|
|
48
50
|
|
|
49
51
|
---
|
|
50
52
|
|
package/docs/models/PublicKey.md
CHANGED
|
@@ -39,6 +39,11 @@ await PublicKey.list({
|
|
|
39
39
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
40
40
|
* `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.
|
|
41
41
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
42
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
43
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
44
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
45
|
+
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
46
|
+
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
42
47
|
|
|
43
48
|
---
|
|
44
49
|
|
package/docs/models/Site.md
CHANGED
|
@@ -184,7 +184,8 @@
|
|
|
184
184
|
"legacy_checksums_mode": true,
|
|
185
185
|
"use_provided_modified_at": true,
|
|
186
186
|
"windows_mode_ftp": false,
|
|
187
|
-
"user_belongs_to_parent_site": false
|
|
187
|
+
"user_belongs_to_parent_site": false,
|
|
188
|
+
"impersonator_user_id": 1
|
|
188
189
|
},
|
|
189
190
|
"sftp_enabled": true,
|
|
190
191
|
"sftp_host_key_type": "default",
|
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.253';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
|
@@ -108,6 +108,10 @@ var ApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ApiRequestL
|
|
|
108
108
|
(0, _defineProperty2.default)(this, "getDurationMs", function () {
|
|
109
109
|
return _this.attributes.duration_ms;
|
|
110
110
|
});
|
|
111
|
+
// int64 # User ID of Site Admin user impersonating this user via a Read-Only session.
|
|
112
|
+
(0, _defineProperty2.default)(this, "getImpersonatorUserId", function () {
|
|
113
|
+
return _this.attributes.impersonator_user_id;
|
|
114
|
+
});
|
|
111
115
|
Object.entries(attributes).forEach(function (_ref) {
|
|
112
116
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
113
117
|
key = _ref2[0],
|
package/lib/models/PublicKey.js
CHANGED
|
@@ -257,6 +257,11 @@ _PublicKey = PublicKey;
|
|
|
257
257
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
258
258
|
// 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.
|
|
259
259
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
260
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
261
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
262
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
263
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
264
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
260
265
|
(0, _defineProperty2.default)(PublicKey, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
261
266
|
var _response$data;
|
|
262
267
|
var params,
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -85,6 +85,9 @@ class ApiRequestLog {
|
|
|
85
85
|
// int64 # Duration (in milliseconds)
|
|
86
86
|
getDurationMs = () => this.attributes.duration_ms
|
|
87
87
|
|
|
88
|
+
// int64 # User ID of Site Admin user impersonating this user via a Read-Only session.
|
|
89
|
+
getImpersonatorUserId = () => this.attributes.impersonator_user_id
|
|
90
|
+
|
|
88
91
|
// Parameters:
|
|
89
92
|
// 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.
|
|
90
93
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
package/src/models/PublicKey.js
CHANGED
|
@@ -165,6 +165,11 @@ class PublicKey {
|
|
|
165
165
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
166
166
|
// 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.
|
|
167
167
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
168
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
169
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
170
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
171
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
172
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
168
173
|
static list = async (params = {}, options = {}) => {
|
|
169
174
|
if (params.user_id && !isInt(params.user_id)) {
|
|
170
175
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
|