files.com 1.2.261 → 1.2.262

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.261
1
+ 1.2.262
@@ -12,19 +12,23 @@
12
12
  "responseCode": 1,
13
13
  "success": true,
14
14
  "duration_ms": 1,
15
- "created_at": "2000-01-01T01:00:00Z"
15
+ "created_at": "2000-01-01T01:00:00Z",
16
+ "bytes_transferred": 1,
17
+ "http_method": "GET"
16
18
  }
17
19
  ```
18
20
 
19
21
  * `timestamp` (date-time): Start Time of Action. Deprecrated: Use created_at.
20
- * `remote_ip` (string): IP Address of Public Hosting Client
21
- * `server_ip` (string): IP Address of Public Hosting Server
22
- * `hostname` (string): HTTP Request Hostname
22
+ * `remote_ip` (string): IP Address of Public Hosting Client.
23
+ * `server_ip` (string): IP Address of Public Hosting Server.
24
+ * `hostname` (string): HTTP Request Hostname.
23
25
  * `path` (string): HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
24
- * `responseCode` (int64): HTTP Response Code
26
+ * `responseCode` (int64): HTTP Response Code.
25
27
  * `success` (boolean): Whether SFTP Action was successful.
26
- * `duration_ms` (int64): Duration (in milliseconds)
27
- * `created_at` (date-time): Start Time of Action
28
+ * `duration_ms` (int64): Duration (in milliseconds).
29
+ * `created_at` (date-time): Start Time of Action.
30
+ * `bytes_transferred` (int64): The number of bytes transferred for file downloads.
31
+ * `http_method` (string): Method of the HTTP call.
28
32
 
29
33
  ---
30
34
 
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.261';
15
+ var version = '1.2.262';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -36,15 +36,15 @@ var PublicHostingRequestLog = /*#__PURE__*/(0, _createClass2.default)(function P
36
36
  (0, _defineProperty2.default)(this, "getTimestamp", function () {
37
37
  return _this.attributes.timestamp;
38
38
  });
39
- // string # IP Address of Public Hosting Client
39
+ // string # IP Address of Public Hosting Client.
40
40
  (0, _defineProperty2.default)(this, "getRemoteIp", function () {
41
41
  return _this.attributes.remote_ip;
42
42
  });
43
- // string # IP Address of Public Hosting Server
43
+ // string # IP Address of Public Hosting Server.
44
44
  (0, _defineProperty2.default)(this, "getServerIp", function () {
45
45
  return _this.attributes.server_ip;
46
46
  });
47
- // string # HTTP Request Hostname
47
+ // string # HTTP Request Hostname.
48
48
  (0, _defineProperty2.default)(this, "getHostname", function () {
49
49
  return _this.attributes.hostname;
50
50
  });
@@ -52,7 +52,7 @@ var PublicHostingRequestLog = /*#__PURE__*/(0, _createClass2.default)(function P
52
52
  (0, _defineProperty2.default)(this, "getPath", function () {
53
53
  return _this.attributes.path;
54
54
  });
55
- // int64 # HTTP Response Code
55
+ // int64 # HTTP Response Code.
56
56
  (0, _defineProperty2.default)(this, "getResponseCode", function () {
57
57
  return _this.attributes.responseCode;
58
58
  });
@@ -60,14 +60,22 @@ var PublicHostingRequestLog = /*#__PURE__*/(0, _createClass2.default)(function P
60
60
  (0, _defineProperty2.default)(this, "getSuccess", function () {
61
61
  return _this.attributes.success;
62
62
  });
63
- // int64 # Duration (in milliseconds)
63
+ // int64 # Duration (in milliseconds).
64
64
  (0, _defineProperty2.default)(this, "getDurationMs", function () {
65
65
  return _this.attributes.duration_ms;
66
66
  });
67
- // date-time # Start Time of Action
67
+ // date-time # Start Time of Action.
68
68
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
69
69
  return _this.attributes.created_at;
70
70
  });
71
+ // int64 # The number of bytes transferred for file downloads.
72
+ (0, _defineProperty2.default)(this, "getBytesTransferred", function () {
73
+ return _this.attributes.bytes_transferred;
74
+ });
75
+ // string # Method of the HTTP call.
76
+ (0, _defineProperty2.default)(this, "getHttpMethod", function () {
77
+ return _this.attributes.http_method;
78
+ });
71
79
  Object.entries(attributes).forEach(function (_ref) {
72
80
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
73
81
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.261",
3
+ "version": "1.2.262",
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.261'
9
+ const version = '1.2.262'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -31,30 +31,36 @@ class PublicHostingRequestLog {
31
31
  // date-time # Start Time of Action. Deprecrated: Use created_at.
32
32
  getTimestamp = () => this.attributes.timestamp
33
33
 
34
- // string # IP Address of Public Hosting Client
34
+ // string # IP Address of Public Hosting Client.
35
35
  getRemoteIp = () => this.attributes.remote_ip
36
36
 
37
- // string # IP Address of Public Hosting Server
37
+ // string # IP Address of Public Hosting Server.
38
38
  getServerIp = () => this.attributes.server_ip
39
39
 
40
- // string # HTTP Request Hostname
40
+ // string # HTTP Request Hostname.
41
41
  getHostname = () => this.attributes.hostname
42
42
 
43
43
  // string # HTTP Request Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
44
44
  getPath = () => this.attributes.path
45
45
 
46
- // int64 # HTTP Response Code
46
+ // int64 # HTTP Response Code.
47
47
  getResponseCode = () => this.attributes.responseCode
48
48
 
49
49
  // boolean # Whether SFTP Action was successful.
50
50
  getSuccess = () => this.attributes.success
51
51
 
52
- // int64 # Duration (in milliseconds)
52
+ // int64 # Duration (in milliseconds).
53
53
  getDurationMs = () => this.attributes.duration_ms
54
54
 
55
- // date-time # Start Time of Action
55
+ // date-time # Start Time of Action.
56
56
  getCreatedAt = () => this.attributes.created_at
57
57
 
58
+ // int64 # The number of bytes transferred for file downloads.
59
+ getBytesTransferred = () => this.attributes.bytes_transferred
60
+
61
+ // string # Method of the HTTP call.
62
+ getHttpMethod = () => this.attributes.http_method
63
+
58
64
  // Parameters:
59
65
  // 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.
60
66
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).