files.com 1.2.122 → 1.2.123

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.122
1
+ 1.2.123
@@ -4,6 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
+ "id": 1,
7
8
  "name": "My Site",
8
9
  "additional_text_file_types": [
9
10
  "example"
@@ -285,6 +286,7 @@
285
286
  }
286
287
  ```
287
288
 
289
+ * `id` (int64): Site Id
288
290
  * `name` (string): Site name
289
291
  * `additional_text_file_types` (array(string)): Additional extensions that are considered text files
290
292
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
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.122';
14
+ var version = '1.2.123';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -33,6 +33,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
33
33
  (0, _defineProperty2.default)(this, "isLoaded", function () {
34
34
  return !!_this.attributes.id;
35
35
  });
36
+ // int64 # Site Id
37
+ (0, _defineProperty2.default)(this, "getId", function () {
38
+ return _this.attributes.id;
39
+ });
36
40
  // string # Site name
37
41
  (0, _defineProperty2.default)(this, "getName", function () {
38
42
  return _this.attributes.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.122",
3
+ "version": "1.2.123",
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.122'
8
+ const version = '1.2.123'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -28,6 +28,9 @@ class Site {
28
28
 
29
29
  isLoaded = () => !!this.attributes.id
30
30
 
31
+ // int64 # Site Id
32
+ getId = () => this.attributes.id
33
+
31
34
  // string # Site name
32
35
  getName = () => this.attributes.name
33
36