files.com 1.2.66 → 1.2.68

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.66
1
+ 1.2.68
@@ -6,6 +6,7 @@
6
6
  {
7
7
  "timestamp": "2000-01-01T01:00:00Z",
8
8
  "api_key_id": "example",
9
+ "api_key_prefix": "example",
9
10
  "user_id": 1,
10
11
  "username": "example",
11
12
  "interface": "example",
@@ -25,6 +26,7 @@
25
26
 
26
27
  * `timestamp` (date-time): Start Time of Action
27
28
  * `api_key_id` (string): API Key ID, if applicable
29
+ * `api_key_prefix` (string): API Key Prefix, if applicable
28
30
  * `user_id` (int64): User ID
29
31
  * `username` (string): Username
30
32
  * `interface` (string): API Interface
@@ -16,16 +16,10 @@
16
16
  "path": "example",
17
17
  "true_path": "example",
18
18
  "name": "example",
19
- "message": "example",
20
- "failure_reason_type": "example",
21
- "failure_reason_message": "example",
19
+ "sftp_response_code": "example",
20
+ "sftp_response_message": "example",
22
21
  "md5": "example",
23
- "flags": "example",
24
- "handle": "example",
25
- "attrs": "example",
26
22
  "size": "example",
27
- "offset": "example",
28
- "length": "example",
29
23
  "data_length": "example",
30
24
  "entries_returned": 1,
31
25
  "success": "example",
@@ -42,19 +36,13 @@
42
36
  * `auth_method` (string): Authentication Method
43
37
  * `auth_ciphers` (string): Authentication Ciphers
44
38
  * `action_type` (string): Action Type
45
- * `path` (string): Path as sent by the Client (may not match Files.com path due to user root folders for SFTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
39
+ * `path` (string): Path as sent by the Client (may not match Files.com path due to user root folders for SFTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
46
40
  * `true_path` (string): Path on Files.com
47
41
  * `name` (string): Name of File
48
- * `message` (string): Log Message
49
- * `failure_reason_type` (string): Failure Reason Type
50
- * `failure_reason_message` (string): Failure Reason Message
42
+ * `sftp_response_code` (string): SFTP Response Code Returned to the Client.
43
+ * `sftp_response_message` (string): SFTP Response Message Returned to the Client.
51
44
  * `md5` (string): MD5 Hash of the file. Not always available.
52
- * `flags` (string): SFTP Command Flags. Present for actions which involve flags.
53
- * `handle` (string): SFTP Command Handle. Present for actions which involve handles.
54
- * `attrs` (string): SFTP Command Attrs. Present for action which involve attrs.
55
- * `size` (string): Size. Present for action which involve size.
56
- * `offset` (string): Offset. Present for actions which involve offset.
57
- * `length` (string): Length. Present for actions which involve length.
45
+ * `size` (string): Size of File That was Uploaded or Downloaded.
58
46
  * `data_length` (string): Data Length in Bytes. Present for actions that transfer data.
59
47
  * `entries_returned` (int64): Number of entries returned when listing files and folders
60
48
  * `success` (string): Whether SFTP Action was successful.
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.66';
14
+ var version = '1.2.68';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -41,6 +41,10 @@ var ApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function ApiRequestL
41
41
  (0, _defineProperty2.default)(this, "getApiKeyId", function () {
42
42
  return _this.attributes.api_key_id;
43
43
  });
44
+ // string # API Key Prefix, if applicable
45
+ (0, _defineProperty2.default)(this, "getApiKeyPrefix", function () {
46
+ return _this.attributes.api_key_prefix;
47
+ });
44
48
  // int64 # User ID
45
49
  (0, _defineProperty2.default)(this, "getUserId", function () {
46
50
  return _this.attributes.user_id;
@@ -69,7 +69,7 @@ var SftpActionLog = /*#__PURE__*/(0, _createClass2.default)(function SftpActionL
69
69
  (0, _defineProperty2.default)(this, "getActionType", function () {
70
70
  return _this.attributes.action_type;
71
71
  });
72
- // string # Path as sent by the Client (may not match Files.com path due to user root folders for SFTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
72
+ // string # Path as sent by the Client (may not match Files.com path due to user root folders for SFTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
73
73
  (0, _defineProperty2.default)(this, "getPath", function () {
74
74
  return _this.attributes.path;
75
75
  });
@@ -81,46 +81,22 @@ var SftpActionLog = /*#__PURE__*/(0, _createClass2.default)(function SftpActionL
81
81
  (0, _defineProperty2.default)(this, "getName", function () {
82
82
  return _this.attributes.name;
83
83
  });
84
- // string # Log Message
85
- (0, _defineProperty2.default)(this, "getMessage", function () {
86
- return _this.attributes.message;
84
+ // string # SFTP Response Code Returned to the Client.
85
+ (0, _defineProperty2.default)(this, "getSftpResponseCode", function () {
86
+ return _this.attributes.sftp_response_code;
87
87
  });
88
- // string # Failure Reason Type
89
- (0, _defineProperty2.default)(this, "getFailureReasonType", function () {
90
- return _this.attributes.failure_reason_type;
91
- });
92
- // string # Failure Reason Message
93
- (0, _defineProperty2.default)(this, "getFailureReasonMessage", function () {
94
- return _this.attributes.failure_reason_message;
88
+ // string # SFTP Response Message Returned to the Client.
89
+ (0, _defineProperty2.default)(this, "getSftpResponseMessage", function () {
90
+ return _this.attributes.sftp_response_message;
95
91
  });
96
92
  // string # MD5 Hash of the file. Not always available.
97
93
  (0, _defineProperty2.default)(this, "getMd5", function () {
98
94
  return _this.attributes.md5;
99
95
  });
100
- // string # SFTP Command Flags. Present for actions which involve flags.
101
- (0, _defineProperty2.default)(this, "getFlags", function () {
102
- return _this.attributes.flags;
103
- });
104
- // string # SFTP Command Handle. Present for actions which involve handles.
105
- (0, _defineProperty2.default)(this, "getHandle", function () {
106
- return _this.attributes.handle;
107
- });
108
- // string # SFTP Command Attrs. Present for action which involve attrs.
109
- (0, _defineProperty2.default)(this, "getAttrs", function () {
110
- return _this.attributes.attrs;
111
- });
112
- // string # Size. Present for action which involve size.
96
+ // string # Size of File That was Uploaded or Downloaded.
113
97
  (0, _defineProperty2.default)(this, "getSize", function () {
114
98
  return _this.attributes.size;
115
99
  });
116
- // string # Offset. Present for actions which involve offset.
117
- (0, _defineProperty2.default)(this, "getOffset", function () {
118
- return _this.attributes.offset;
119
- });
120
- // string # Length. Present for actions which involve length.
121
- (0, _defineProperty2.default)(this, "getLength", function () {
122
- return _this.attributes.length;
123
- });
124
100
  // string # Data Length in Bytes. Present for actions that transfer data.
125
101
  (0, _defineProperty2.default)(this, "getDataLength", function () {
126
102
  return _this.attributes.data_length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.66",
3
+ "version": "1.2.68",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.66'
8
+ const version = '1.2.68'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -34,6 +34,9 @@ class ApiRequestLog {
34
34
  // string # API Key ID, if applicable
35
35
  getApiKeyId = () => this.attributes.api_key_id
36
36
 
37
+ // string # API Key Prefix, if applicable
38
+ getApiKeyPrefix = () => this.attributes.api_key_prefix
39
+
37
40
  // int64 # User ID
38
41
  getUserId = () => this.attributes.user_id
39
42
 
@@ -55,7 +55,7 @@ class SftpActionLog {
55
55
  // string # Action Type
56
56
  getActionType = () => this.attributes.action_type
57
57
 
58
- // string # Path as sent by the Client (may not match Files.com path due to user root folders for SFTP) This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
58
+ // string # Path as sent by the Client (may not match Files.com path due to user root folders for SFTP). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
59
59
  getPath = () => this.attributes.path
60
60
 
61
61
  // string # Path on Files.com
@@ -64,36 +64,18 @@ class SftpActionLog {
64
64
  // string # Name of File
65
65
  getName = () => this.attributes.name
66
66
 
67
- // string # Log Message
68
- getMessage = () => this.attributes.message
67
+ // string # SFTP Response Code Returned to the Client.
68
+ getSftpResponseCode = () => this.attributes.sftp_response_code
69
69
 
70
- // string # Failure Reason Type
71
- getFailureReasonType = () => this.attributes.failure_reason_type
72
-
73
- // string # Failure Reason Message
74
- getFailureReasonMessage = () => this.attributes.failure_reason_message
70
+ // string # SFTP Response Message Returned to the Client.
71
+ getSftpResponseMessage = () => this.attributes.sftp_response_message
75
72
 
76
73
  // string # MD5 Hash of the file. Not always available.
77
74
  getMd5 = () => this.attributes.md5
78
75
 
79
- // string # SFTP Command Flags. Present for actions which involve flags.
80
- getFlags = () => this.attributes.flags
81
-
82
- // string # SFTP Command Handle. Present for actions which involve handles.
83
- getHandle = () => this.attributes.handle
84
-
85
- // string # SFTP Command Attrs. Present for action which involve attrs.
86
- getAttrs = () => this.attributes.attrs
87
-
88
- // string # Size. Present for action which involve size.
76
+ // string # Size of File That was Uploaded or Downloaded.
89
77
  getSize = () => this.attributes.size
90
78
 
91
- // string # Offset. Present for actions which involve offset.
92
- getOffset = () => this.attributes.offset
93
-
94
- // string # Length. Present for actions which involve length.
95
- getLength = () => this.attributes.length
96
-
97
79
  // string # Data Length in Bytes. Present for actions that transfer data.
98
80
  getDataLength = () => this.attributes.data_length
99
81