files.com 1.2.93 → 1.2.94
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/RemoteServer.md +5 -2
- package/lib/Files.js +1 -1
- package/lib/models/RemoteServer.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/RemoteServer.js +7 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.94
|
@@ -58,7 +58,8 @@
|
|
58
58
|
"dropbox_teams": true,
|
59
59
|
"linode_bucket": "my-bucket",
|
60
60
|
"linode_access_key": "example",
|
61
|
-
"linode_region": "us-east-1"
|
61
|
+
"linode_region": "us-east-1",
|
62
|
+
"supports_versioning": true
|
62
63
|
}
|
63
64
|
```
|
64
65
|
|
@@ -117,6 +118,7 @@
|
|
117
118
|
* `linode_bucket` (string): Linode Bucket name
|
118
119
|
* `linode_access_key` (string): Linode Access Key.
|
119
120
|
* `linode_region` (string): Linode region
|
121
|
+
* `supports_versioning` (boolean): If true, this remote server supports file versioning. This value is determined automatically by Files.com.
|
120
122
|
* `aws_secret_key` (string): AWS secret key.
|
121
123
|
* `password` (string): Password if needed.
|
122
124
|
* `private_key` (string): Private key if needed.
|
@@ -560,7 +562,8 @@ await remote_server.update({
|
|
560
562
|
"dropbox_teams": true,
|
561
563
|
"linode_bucket": "my-bucket",
|
562
564
|
"linode_access_key": "example",
|
563
|
-
"linode_region": "us-east-1"
|
565
|
+
"linode_region": "us-east-1",
|
566
|
+
"supports_versioning": true
|
564
567
|
}
|
565
568
|
```
|
566
569
|
|
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.94';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -418,6 +418,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
|
|
418
418
|
(0, _defineProperty2.default)(this, "setLinodeRegion", function (value) {
|
419
419
|
_this.attributes.linode_region = value;
|
420
420
|
});
|
421
|
+
// boolean # If true, this remote server supports file versioning. This value is determined automatically by Files.com.
|
422
|
+
(0, _defineProperty2.default)(this, "getSupportsVersioning", function () {
|
423
|
+
return _this.attributes.supports_versioning;
|
424
|
+
});
|
425
|
+
(0, _defineProperty2.default)(this, "setSupportsVersioning", function (value) {
|
426
|
+
_this.attributes.supports_versioning = value;
|
427
|
+
});
|
421
428
|
// string # AWS secret key.
|
422
429
|
(0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
|
423
430
|
return _this.attributes.aws_secret_key;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
@@ -413,6 +413,13 @@ class RemoteServer {
|
|
413
413
|
this.attributes.linode_region = value
|
414
414
|
}
|
415
415
|
|
416
|
+
// boolean # If true, this remote server supports file versioning. This value is determined automatically by Files.com.
|
417
|
+
getSupportsVersioning = () => this.attributes.supports_versioning
|
418
|
+
|
419
|
+
setSupportsVersioning = value => {
|
420
|
+
this.attributes.supports_versioning = value
|
421
|
+
}
|
422
|
+
|
416
423
|
// string # AWS secret key.
|
417
424
|
getAwsSecretKey = () => this.attributes.aws_secret_key
|
418
425
|
|