files.com 1.2.20 → 1.2.22
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/User.md +3 -3
- package/lib/Errors.js +330 -318
- package/lib/Files.js +1 -1
- package/lib/models/User.js +3 -3
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/Files.js +1 -1
- package/src/models/User.js +3 -3
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.
|
14
|
+
var version = '1.2.22';
|
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/User.js
CHANGED
@@ -352,7 +352,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
352
352
|
(0, _defineProperty2.default)(this, "setPasswordExpired", function (value) {
|
353
353
|
_this.attributes.password_expired = value;
|
354
354
|
});
|
355
|
-
// boolean # Can this user access the REST API?
|
355
|
+
// boolean # Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
356
356
|
(0, _defineProperty2.default)(this, "getRestapiPermission", function () {
|
357
357
|
return _this.attributes.restapi_permission;
|
358
358
|
});
|
@@ -701,7 +701,7 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
|
|
701
701
|
// receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
702
702
|
// require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
703
703
|
// require_password_change - boolean - Is a password change required upon next user login?
|
704
|
-
// restapi_permission - boolean - Can this user access the REST API?
|
704
|
+
// restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
705
705
|
// self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
706
706
|
// sftp_permission - boolean - Can the user access with SFTP?
|
707
707
|
// site_admin - boolean - Is the user an administrator for this site?
|
@@ -1166,7 +1166,7 @@ _User = User;
|
|
1166
1166
|
// receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
1167
1167
|
// require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
1168
1168
|
// require_password_change - boolean - Is a password change required upon next user login?
|
1169
|
-
// restapi_permission - boolean - Can this user access the REST API?
|
1169
|
+
// restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
1170
1170
|
// self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
1171
1171
|
// sftp_permission - boolean - Can the user access with SFTP?
|
1172
1172
|
// site_admin - boolean - Is the user an administrator for this site?
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
@@ -178,6 +178,7 @@ export class NotAuthorized_ReadPermissionRequiredError extends NotAuthorizedErro
|
|
178
178
|
export class NotAuthorized_ReauthenticationFailedError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_ReauthenticationFailedError' } } errorClasses.NotAuthorized_ReauthenticationFailedError = NotAuthorized_ReauthenticationFailedError
|
179
179
|
export class NotAuthorized_ReauthenticationFailedFinalError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_ReauthenticationFailedFinalError' } } errorClasses.NotAuthorized_ReauthenticationFailedFinalError = NotAuthorized_ReauthenticationFailedFinalError
|
180
180
|
export class NotAuthorized_ReauthenticationNeededActionError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_ReauthenticationNeededActionError' } } errorClasses.NotAuthorized_ReauthenticationNeededActionError = NotAuthorized_ReauthenticationNeededActionError
|
181
|
+
export class NotAuthorized_RecaptchaFailedError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_RecaptchaFailedError' } } errorClasses.NotAuthorized_RecaptchaFailedError = NotAuthorized_RecaptchaFailedError
|
181
182
|
export class NotAuthorized_SelfManagedRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_SelfManagedRequiredError' } } errorClasses.NotAuthorized_SelfManagedRequiredError = NotAuthorized_SelfManagedRequiredError
|
182
183
|
export class NotAuthorized_SiteAdminRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_SiteAdminRequiredError' } } errorClasses.NotAuthorized_SiteAdminRequiredError = NotAuthorized_SiteAdminRequiredError
|
183
184
|
export class NotAuthorized_SiteFilesAreImmutableError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_SiteFilesAreImmutableError' } } errorClasses.NotAuthorized_SiteFilesAreImmutableError = NotAuthorized_SiteFilesAreImmutableError
|
package/src/Files.js
CHANGED
package/src/models/User.js
CHANGED
@@ -346,7 +346,7 @@ class User {
|
|
346
346
|
this.attributes.password_expired = value
|
347
347
|
}
|
348
348
|
|
349
|
-
// boolean # Can this user access the REST API?
|
349
|
+
// boolean # Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
350
350
|
getRestapiPermission = () => this.attributes.restapi_permission
|
351
351
|
|
352
352
|
setRestapiPermission = value => {
|
@@ -626,7 +626,7 @@ class User {
|
|
626
626
|
// receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
627
627
|
// require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
628
628
|
// require_password_change - boolean - Is a password change required upon next user login?
|
629
|
-
// restapi_permission - boolean - Can this user access the REST API?
|
629
|
+
// restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
630
630
|
// self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
631
631
|
// sftp_permission - boolean - Can the user access with SFTP?
|
632
632
|
// site_admin - boolean - Is the user an administrator for this site?
|
@@ -905,7 +905,7 @@ class User {
|
|
905
905
|
// receive_admin_alerts - boolean - Should the user receive admin alerts such a certificate expiration notifications and overages?
|
906
906
|
// require_login_by - string - Require user to login by specified date otherwise it will be disabled.
|
907
907
|
// require_password_change - boolean - Is a password change required upon next user login?
|
908
|
-
// restapi_permission - boolean - Can this user access the REST API?
|
908
|
+
// restapi_permission - boolean - Can this user access the Web app, Desktop app, SDKs, or REST API? (All of these tools use the API internally, so this is one unified permission set.)
|
909
909
|
// self_managed - boolean - Does this user manage it's own credentials or is it a shared/bot user?
|
910
910
|
// sftp_permission - boolean - Can the user access with SFTP?
|
911
911
|
// site_admin - boolean - Is the user an administrator for this site?
|