files.com 1.1.17 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/PublicKey.md +4 -1
- package/lib/Errors.js +752 -739
- package/lib/Files.js +1 -1
- package/lib/models/PublicKey.js +8 -1
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/Files.js +1 -1
- package/src/models/PublicKey.js +8 -1
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.
|
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;
|
package/lib/models/PublicKey.js
CHANGED
@@ -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
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
package/src/models/PublicKey.js
CHANGED
@@ -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
|
|