files.com 1.2.147 → 1.2.149
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Bundle.md +3 -0
- package/lib/Files.js +2 -2
- package/lib/models/Bundle.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +2 -2
- package/src/models/Bundle.js +7 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.149
|
package/docs/models/Bundle.md
CHANGED
@@ -74,6 +74,7 @@
|
|
74
74
|
"key": "example value"
|
75
75
|
},
|
76
76
|
"has_inbox": true,
|
77
|
+
"dont_allow_folders_in_uploads": true,
|
77
78
|
"paths": [
|
78
79
|
"file.txt"
|
79
80
|
],
|
@@ -123,6 +124,7 @@
|
|
123
124
|
* `watermark_attachment` (Image): Preview watermark image applied to all bundle items.
|
124
125
|
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
125
126
|
* `has_inbox` (boolean): Does this bundle have an associated inbox?
|
127
|
+
* `dont_allow_folders_in_uploads` (boolean): Should folder uploads be prevented?
|
126
128
|
* `paths` (array(string)): A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
|
127
129
|
* `bundlepaths` (array(object)): A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
|
128
130
|
* `password` (string): Password for this bundle.
|
@@ -392,6 +394,7 @@ await bundle.update({
|
|
392
394
|
"key": "example value"
|
393
395
|
},
|
394
396
|
"has_inbox": true,
|
397
|
+
"dont_allow_folders_in_uploads": true,
|
395
398
|
"paths": [
|
396
399
|
"file.txt"
|
397
400
|
],
|
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.149';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -19,7 +19,7 @@ var debugResponseHeaders = false;
|
|
19
19
|
var maxNetworkRetries = 3;
|
20
20
|
var minNetworkRetryDelay = 0.5;
|
21
21
|
var maxNetworkRetryDelay = 1.5;
|
22
|
-
var networkTimeout =
|
22
|
+
var networkTimeout = 60.0;
|
23
23
|
var autoPaginate = true;
|
24
24
|
var Files = /*#__PURE__*/(0, _createClass2.default)(function Files() {
|
25
25
|
(0, _classCallCheck2.default)(this, Files);
|
package/lib/models/Bundle.js
CHANGED
@@ -289,6 +289,13 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
289
289
|
(0, _defineProperty2.default)(this, "setHasInbox", function (value) {
|
290
290
|
_this.attributes.has_inbox = value;
|
291
291
|
});
|
292
|
+
// boolean # Should folder uploads be prevented?
|
293
|
+
(0, _defineProperty2.default)(this, "getDontAllowFoldersInUploads", function () {
|
294
|
+
return _this.attributes.dont_allow_folders_in_uploads;
|
295
|
+
});
|
296
|
+
(0, _defineProperty2.default)(this, "setDontAllowFoldersInUploads", function (value) {
|
297
|
+
_this.attributes.dont_allow_folders_in_uploads = value;
|
298
|
+
});
|
292
299
|
// array(string) # A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
|
293
300
|
(0, _defineProperty2.default)(this, "getPaths", function () {
|
294
301
|
return _this.attributes.paths;
|
package/package.json
CHANGED
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.
|
8
|
+
const version = '1.2.149'
|
9
9
|
let userAgent = `Files.com JavaScript SDK v${version}`
|
10
10
|
|
11
11
|
let logLevel = LogLevel.INFO
|
@@ -15,7 +15,7 @@ let debugResponseHeaders = false
|
|
15
15
|
let maxNetworkRetries = 3
|
16
16
|
let minNetworkRetryDelay = 0.5
|
17
17
|
let maxNetworkRetryDelay = 1.5
|
18
|
-
let networkTimeout =
|
18
|
+
let networkTimeout = 60.0
|
19
19
|
let autoPaginate = true
|
20
20
|
|
21
21
|
class Files {
|
package/src/models/Bundle.js
CHANGED
@@ -283,6 +283,13 @@ class Bundle {
|
|
283
283
|
this.attributes.has_inbox = value
|
284
284
|
}
|
285
285
|
|
286
|
+
// boolean # Should folder uploads be prevented?
|
287
|
+
getDontAllowFoldersInUploads = () => this.attributes.dont_allow_folders_in_uploads
|
288
|
+
|
289
|
+
setDontAllowFoldersInUploads = value => {
|
290
|
+
this.attributes.dont_allow_folders_in_uploads = value
|
291
|
+
}
|
292
|
+
|
286
293
|
// array(string) # A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
|
287
294
|
getPaths = () => this.attributes.paths
|
288
295
|
|