files.com 1.1.17 → 1.1.19

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/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.17';
14
+ var version = '1.1.19';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -51,13 +51,20 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
51
51
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
52
52
  return _this.attributes.created_at;
53
53
  });
54
- // string # Public key fingerprint
54
+ // string # Public key fingerprint (MD5)
55
55
  (0, _defineProperty2.default)(this, "getFingerprint", function () {
56
56
  return _this.attributes.fingerprint;
57
57
  });
58
58
  (0, _defineProperty2.default)(this, "setFingerprint", function (value) {
59
59
  _this.attributes.fingerprint = value;
60
60
  });
61
+ // string # Public key fingerprint (SHA256)
62
+ (0, _defineProperty2.default)(this, "getFingerprintSha256", function () {
63
+ return _this.attributes.fingerprint_sha256;
64
+ });
65
+ (0, _defineProperty2.default)(this, "setFingerprintSha256", function (value) {
66
+ _this.attributes.fingerprint_sha256 = value;
67
+ });
61
68
  // string # Username of the user this public key is associated with
62
69
  (0, _defineProperty2.default)(this, "getUsername", function () {
63
70
  return _this.attributes.username;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Errors.js CHANGED
@@ -102,6 +102,7 @@ export class BadRequest_InvalidFilterAliasCombinationError extends BadRequestErr
102
102
  export class BadRequest_InvalidFilterCombinationError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidFilterCombinationError' } } errorClasses.BadRequest_InvalidFilterCombinationError = BadRequest_InvalidFilterCombinationError
103
103
  export class BadRequest_InvalidFilterFieldError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidFilterFieldError' } } errorClasses.BadRequest_InvalidFilterFieldError = BadRequest_InvalidFilterFieldError
104
104
  export class BadRequest_InvalidFilterParamError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidFilterParamError' } } errorClasses.BadRequest_InvalidFilterParamError = BadRequest_InvalidFilterParamError
105
+ export class BadRequest_InvalidFilterParamValueError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidFilterParamValueError' } } errorClasses.BadRequest_InvalidFilterParamValueError = BadRequest_InvalidFilterParamValueError
105
106
  export class BadRequest_InvalidInputEncodingError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidInputEncodingError' } } errorClasses.BadRequest_InvalidInputEncodingError = BadRequest_InvalidInputEncodingError
106
107
  export class BadRequest_InvalidInterfaceError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidInterfaceError' } } errorClasses.BadRequest_InvalidInterfaceError = BadRequest_InvalidInterfaceError
107
108
  export class BadRequest_InvalidOauthProviderError extends BadRequestError { constructor(message, code) { super(message, code); this.name = 'BadRequest_InvalidOauthProviderError' } } errorClasses.BadRequest_InvalidOauthProviderError = BadRequest_InvalidOauthProviderError
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.17'
8
+ const version = '1.1.19'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -41,13 +41,20 @@ class PublicKey {
41
41
  // date-time # Public key created at date/time
42
42
  getCreatedAt = () => this.attributes.created_at
43
43
 
44
- // string # Public key fingerprint
44
+ // string # Public key fingerprint (MD5)
45
45
  getFingerprint = () => this.attributes.fingerprint
46
46
 
47
47
  setFingerprint = value => {
48
48
  this.attributes.fingerprint = value
49
49
  }
50
50
 
51
+ // string # Public key fingerprint (SHA256)
52
+ getFingerprintSha256 = () => this.attributes.fingerprint_sha256
53
+
54
+ setFingerprintSha256 = value => {
55
+ this.attributes.fingerprint_sha256 = value
56
+ }
57
+
51
58
  // string # Username of the user this public key is associated with
52
59
  getUsername = () => this.attributes.username
53
60