files.com 1.1.9 → 1.1.10

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.1.9
1
+ 1.1.10
@@ -9,6 +9,7 @@
9
9
  "label": "My Corporate SSO Provider",
10
10
  "logo_url": "https://mysite.files.com/.../logo.png",
11
11
  "id": 1,
12
+ "user_count": 1,
12
13
  "saml_provider_cert_fingerprint": "example",
13
14
  "saml_provider_issuer_url": "example",
14
15
  "saml_provider_metadata_content": "example",
@@ -56,6 +57,7 @@
56
57
  * `label` (string): Custom label for the SSO provider on the login page.
57
58
  * `logo_url` (string): URL holding a custom logo for the SSO provider on the login page.
58
59
  * `id` (int64): ID
60
+ * `user_count` (int64): Count of users with this SSO Strategy
59
61
  * `saml_provider_cert_fingerprint` (string): Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
60
62
  * `saml_provider_issuer_url` (string): Identity provider issuer url
61
63
  * `saml_provider_metadata_content` (string): Custom identity provider metadata
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.1.9';
14
+ var version = '1.1.10';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -53,6 +53,10 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
53
53
  (0, _defineProperty2.default)(this, "getId", function () {
54
54
  return _this.attributes.id;
55
55
  });
56
+ // int64 # Count of users with this SSO Strategy
57
+ (0, _defineProperty2.default)(this, "getUserCount", function () {
58
+ return _this.attributes.user_count;
59
+ });
56
60
  // string # Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
57
61
  (0, _defineProperty2.default)(this, "getSamlProviderCertFingerprint", function () {
58
62
  return _this.attributes.saml_provider_cert_fingerprint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
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.1.9'
8
+ const version = '1.1.10'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -39,6 +39,9 @@ class SsoStrategy {
39
39
  // int64 # ID
40
40
  getId = () => this.attributes.id
41
41
 
42
+ // int64 # Count of users with this SSO Strategy
43
+ getUserCount = () => this.attributes.user_count
44
+
42
45
  // string # Identity provider sha256 cert fingerprint if saml_provider_metadata_url is not available.
43
46
  getSamlProviderCertFingerprint = () => this.attributes.saml_provider_cert_fingerprint
44
47