files.com 1.2.38 → 1.2.39

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.38
1
+ 1.2.39
@@ -9,7 +9,10 @@
9
9
  "status": "example",
10
10
  "subject": "example",
11
11
  "to": "example",
12
- "cc": "example"
12
+ "cc": "example",
13
+ "delivery_method": "example",
14
+ "smtp_hostname": "example",
15
+ "smtp_ip": "example"
13
16
  }
14
17
  ```
15
18
 
@@ -19,6 +22,9 @@
19
22
  * `subject` (string): Subject line of E-Mail
20
23
  * `to` (string): To field of E-Mail
21
24
  * `cc` (string): CC field of E-Mail
25
+ * `delivery_method` (string): How was email deliered? `customer_smtp` or `files.com`
26
+ * `smtp_hostname` (string): Customer SMTP Hostname used.
27
+ * `smtp_ip` (string): Customer SMTP IP address as resolved for use (useful for troubleshooting DNS issues with customer SMTP).
22
28
 
23
29
  ---
24
30
 
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.38';
14
+ var version = '1.2.39';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -57,6 +57,18 @@ var EmailLog = /*#__PURE__*/(0, _createClass2.default)(function EmailLog() {
57
57
  (0, _defineProperty2.default)(this, "getCc", function () {
58
58
  return _this.attributes.cc;
59
59
  });
60
+ // string # How was email deliered? `customer_smtp` or `files.com`
61
+ (0, _defineProperty2.default)(this, "getDeliveryMethod", function () {
62
+ return _this.attributes.delivery_method;
63
+ });
64
+ // string # Customer SMTP Hostname used.
65
+ (0, _defineProperty2.default)(this, "getSmtpHostname", function () {
66
+ return _this.attributes.smtp_hostname;
67
+ });
68
+ // string # Customer SMTP IP address as resolved for use (useful for troubleshooting DNS issues with customer SMTP).
69
+ (0, _defineProperty2.default)(this, "getSmtpIp", function () {
70
+ return _this.attributes.smtp_ip;
71
+ });
60
72
  Object.entries(attributes).forEach(function (_ref) {
61
73
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
62
74
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
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.38'
8
+ const version = '1.2.39'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -46,6 +46,15 @@ class EmailLog {
46
46
  // string # CC field of E-Mail
47
47
  getCc = () => this.attributes.cc
48
48
 
49
+ // string # How was email deliered? `customer_smtp` or `files.com`
50
+ getDeliveryMethod = () => this.attributes.delivery_method
51
+
52
+ // string # Customer SMTP Hostname used.
53
+ getSmtpHostname = () => this.attributes.smtp_hostname
54
+
55
+ // string # Customer SMTP IP address as resolved for use (useful for troubleshooting DNS issues with customer SMTP).
56
+ getSmtpIp = () => this.attributes.smtp_ip
57
+
49
58
  // Parameters:
50
59
  // 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.
51
60
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).