files.com 1.2.32 → 1.2.33

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 CHANGED
@@ -1 +1 @@
1
- 1.2.32
1
+ 1.2.33
@@ -12,7 +12,8 @@
12
12
  "description": "example",
13
13
  "value": {
14
14
  "key": "example value"
15
- }
15
+ },
16
+ "disable_parent_folder_behavior": true
16
17
  }
17
18
  ```
18
19
 
@@ -23,6 +24,7 @@
23
24
  * `name` (string): Name for this behavior.
24
25
  * `description` (string): Description for this behavior.
25
26
  * `value` (object): Settings for this behavior. See the section above for an example value to provide here. Formatting is different for each Behavior type. May be sent as nested JSON or a single JSON-encoded string. If using XML encoding for the API call, this data must be sent as a JSON-encoded string.
27
+ * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
26
28
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
27
29
  * `attachment_delete` (boolean): If true, will delete the file stored in attachment
28
30
 
@@ -170,7 +172,8 @@ await behavior.update({
170
172
  "description": "example",
171
173
  "value": {
172
174
  "key": "example value"
173
- }
175
+ },
176
+ "disable_parent_folder_behavior": true
174
177
  }
175
178
  ```
176
179
 
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.32';
14
+ var version = '1.2.33';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -82,6 +82,13 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
82
82
  (0, _defineProperty2.default)(this, "setValue", function (value) {
83
83
  _this.attributes.value = value;
84
84
  });
85
+ // boolean # If true, the parent folder's behavior will be disabled for this folder.
86
+ (0, _defineProperty2.default)(this, "getDisableParentFolderBehavior", function () {
87
+ return _this.attributes.disable_parent_folder_behavior;
88
+ });
89
+ (0, _defineProperty2.default)(this, "setDisableParentFolderBehavior", function (value) {
90
+ _this.attributes.disable_parent_folder_behavior = value;
91
+ });
85
92
  // file # Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
86
93
  (0, _defineProperty2.default)(this, "getAttachmentFile", function () {
87
94
  return _this.attributes.attachment_file;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.32",
3
+ "version": "1.2.33",
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.32'
8
+ const version = '1.2.33'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -77,6 +77,13 @@ class Behavior {
77
77
  this.attributes.value = value
78
78
  }
79
79
 
80
+ // boolean # If true, the parent folder's behavior will be disabled for this folder.
81
+ getDisableParentFolderBehavior = () => this.attributes.disable_parent_folder_behavior
82
+
83
+ setDisableParentFolderBehavior = value => {
84
+ this.attributes.disable_parent_folder_behavior = value
85
+ }
86
+
80
87
  // file # Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
81
88
  getAttachmentFile = () => this.attributes.attachment_file
82
89