files.com 1.0.443 → 1.0.445

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.443
1
+ 1.0.445
@@ -11,7 +11,8 @@
11
11
  "status": "success",
12
12
  "body": "example",
13
13
  "message": "example",
14
- "created_at": "2000-01-01T01:00:00Z"
14
+ "created_at": "2000-01-01T01:00:00Z",
15
+ "inbox_title": "Inbox Title"
15
16
  }
16
17
  ```
17
18
 
@@ -23,6 +24,7 @@
23
24
  * `body` (string): Body of the email
24
25
  * `message` (string): Message describing the failure
25
26
  * `created_at` (date-time): Message creation date/time
27
+ * `inbox_title` (string): Title of the Inbox associated with this message
26
28
 
27
29
  ---
28
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.0.443';
14
+ var version = '1.0.445';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -65,6 +65,10 @@ var EmailIncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function Emai
65
65
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
66
66
  return _this.attributes.created_at;
67
67
  });
68
+ // string # Title of the Inbox associated with this message
69
+ (0, _defineProperty2.default)(this, "getInboxTitle", function () {
70
+ return _this.attributes.inbox_title;
71
+ });
68
72
  Object.entries(attributes).forEach(function (_ref) {
69
73
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
70
74
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.443",
3
+ "version": "1.0.445",
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.0.443'
8
+ const version = '1.0.445'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -48,6 +48,9 @@ class EmailIncomingMessage {
48
48
  // date-time # Message creation date/time
49
49
  getCreatedAt = () => this.attributes.created_at
50
50
 
51
+ // string # Title of the Inbox associated with this message
52
+ getInboxTitle = () => this.attributes.inbox_title
53
+
51
54
 
52
55
  // Parameters:
53
56
  // 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.