files.com 1.2.147 → 1.2.148
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/_VERSION +1 -1
- package/docs/models/Bundle.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/Bundle.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Bundle.js +7 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.148
|
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.148';
|
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/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
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
|
|