files.com 1.2.166 → 1.2.168
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/README.md +0 -1
- package/_VERSION +1 -1
- package/docs/Errors.md +0 -1
- package/docs/models/Action.md +2 -4
- package/docs/models/History.md +2 -4
- package/docs/models/Site.md +0 -4
- package/lib/Errors.js +305 -317
- package/lib/Files.js +1 -1
- package/lib/models/Action.js +1 -1
- package/lib/models/History.js +1 -1
- package/lib/models/Site.js +0 -5
- package/package.json +1 -1
- package/src/Errors.js +0 -1
- package/src/Files.js +1 -1
- package/src/models/Action.js +1 -1
- package/src/models/History.js +1 -1
- package/src/models/Site.js +0 -4
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.168';
|
|
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/Action.js
CHANGED
|
@@ -57,7 +57,7 @@ var Action = /*#__PURE__*/(0, _createClass2.default)(function Action() {
|
|
|
57
57
|
(0, _defineProperty2.default)(this, "getSource", function () {
|
|
58
58
|
return _this.attributes.source;
|
|
59
59
|
});
|
|
60
|
-
//
|
|
60
|
+
// object # Targets
|
|
61
61
|
(0, _defineProperty2.default)(this, "getTargets", function () {
|
|
62
62
|
return _this.attributes.targets;
|
|
63
63
|
});
|
package/lib/models/History.js
CHANGED
|
@@ -61,7 +61,7 @@ var History = /*#__PURE__*/(0, _createClass2.default)(function History() {
|
|
|
61
61
|
(0, _defineProperty2.default)(this, "getSource", function () {
|
|
62
62
|
return _this.attributes.source;
|
|
63
63
|
});
|
|
64
|
-
//
|
|
64
|
+
// object # Targets
|
|
65
65
|
(0, _defineProperty2.default)(this, "getTargets", function () {
|
|
66
66
|
return _this.attributes.targets;
|
|
67
67
|
});
|
package/lib/models/Site.js
CHANGED
|
@@ -533,10 +533,6 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
|
533
533
|
(0, _defineProperty2.default)(this, "getSession", function () {
|
|
534
534
|
return _this.attributes.session;
|
|
535
535
|
});
|
|
536
|
-
// boolean # Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
|
537
|
-
(0, _defineProperty2.default)(this, "getSessionPinnedByIp", function () {
|
|
538
|
-
return _this.attributes.session_pinned_by_ip;
|
|
539
|
-
});
|
|
540
536
|
// boolean # Is SFTP enabled?
|
|
541
537
|
(0, _defineProperty2.default)(this, "getSftpEnabled", function () {
|
|
542
538
|
return _this.attributes.sftp_enabled;
|
|
@@ -834,7 +830,6 @@ _Site = Site;
|
|
|
834
830
|
// sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
|
|
835
831
|
// disable_password_reset - boolean - Is password reset disabled?
|
|
836
832
|
// immutable_files - boolean - Are files protected from modification?
|
|
837
|
-
// session_pinned_by_ip - boolean - Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
|
838
833
|
// bundle_not_found_message - string - Custom error message to show when bundle is not found.
|
|
839
834
|
// bundle_password_required - boolean - Do Bundles require password protection?
|
|
840
835
|
// bundle_require_registration - boolean - Do Bundles require registration?
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
|
@@ -190,7 +190,6 @@ export class NotAuthorized_TwoFactorAuthenticationRequiredError extends NotAutho
|
|
|
190
190
|
export class NotAuthorized_UserIdWithoutSiteAdminError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_UserIdWithoutSiteAdminError' } } errorClasses.NotAuthorized_UserIdWithoutSiteAdminError = NotAuthorized_UserIdWithoutSiteAdminError
|
|
191
191
|
export class NotAuthorized_WriteAndBundlePermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_WriteAndBundlePermissionRequiredError' } } errorClasses.NotAuthorized_WriteAndBundlePermissionRequiredError = NotAuthorized_WriteAndBundlePermissionRequiredError
|
|
192
192
|
export class NotAuthorized_WritePermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_WritePermissionRequiredError' } } errorClasses.NotAuthorized_WritePermissionRequiredError = NotAuthorized_WritePermissionRequiredError
|
|
193
|
-
export class NotAuthorized_ZipDownloadIpMismatchError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_ZipDownloadIpMismatchError' } } errorClasses.NotAuthorized_ZipDownloadIpMismatchError = NotAuthorized_ZipDownloadIpMismatchError
|
|
194
193
|
export class NotFound_ApiKeyNotFoundError extends NotFoundError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotFound_ApiKeyNotFoundError' } } errorClasses.NotFound_ApiKeyNotFoundError = NotFound_ApiKeyNotFoundError
|
|
195
194
|
export class NotFound_BundlePathNotFoundError extends NotFoundError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotFound_BundlePathNotFoundError' } } errorClasses.NotFound_BundlePathNotFoundError = NotFound_BundlePathNotFoundError
|
|
196
195
|
export class NotFound_BundleRegistrationNotFoundError extends NotFoundError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotFound_BundleRegistrationNotFoundError' } } errorClasses.NotFound_BundleRegistrationNotFoundError = NotFound_BundleRegistrationNotFoundError
|
package/src/Files.js
CHANGED
package/src/models/Action.js
CHANGED
package/src/models/History.js
CHANGED
package/src/models/Site.js
CHANGED
|
@@ -403,9 +403,6 @@ class Site {
|
|
|
403
403
|
// Session # Current session
|
|
404
404
|
getSession = () => this.attributes.session
|
|
405
405
|
|
|
406
|
-
// boolean # Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
|
407
|
-
getSessionPinnedByIp = () => this.attributes.session_pinned_by_ip
|
|
408
|
-
|
|
409
406
|
// boolean # Is SFTP enabled?
|
|
410
407
|
getSftpEnabled = () => this.attributes.sftp_enabled
|
|
411
408
|
|
|
@@ -619,7 +616,6 @@ class Site {
|
|
|
619
616
|
// sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
|
|
620
617
|
// disable_password_reset - boolean - Is password reset disabled?
|
|
621
618
|
// immutable_files - boolean - Are files protected from modification?
|
|
622
|
-
// session_pinned_by_ip - boolean - Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
|
|
623
619
|
// bundle_not_found_message - string - Custom error message to show when bundle is not found.
|
|
624
620
|
// bundle_password_required - boolean - Do Bundles require password protection?
|
|
625
621
|
// bundle_require_registration - boolean - Do Bundles require registration?
|