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 CHANGED
@@ -1 +1 @@
1
- 1.2.93
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.93';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.93",
3
+ "version": "1.2.94",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
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.2.93'
8
+ const version = '1.2.94'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -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