files.com 1.2.32 → 1.2.34

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.32
1
+ 1.2.34
@@ -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
 
@@ -88,6 +90,7 @@ await Behavior.listFor(path, {
88
90
  ```
89
91
  await Behavior.create({
90
92
  'value': "{\"method\": \"GET\"}",
93
+ 'disable_parent_folder_behavior': true,
91
94
  'name': "example",
92
95
  'description': "example",
93
96
  'path': "path",
@@ -100,6 +103,7 @@ await Behavior.create({
100
103
 
101
104
  * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
102
105
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
106
+ * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
103
107
  * `name` (string): Name for this behavior.
104
108
  * `description` (string): Description for this behavior.
105
109
  * `path` (string): Required - Folder behaviors path.
@@ -139,6 +143,7 @@ const [behavior] = await Behavior.list()
139
143
 
140
144
  await behavior.update({
141
145
  'value': "{\"method\": \"GET\"}",
146
+ 'disable_parent_folder_behavior': true,
142
147
  'name': "example",
143
148
  'description': "example",
144
149
  'behavior': "webhook",
@@ -152,6 +157,7 @@ await behavior.update({
152
157
  * `id` (int64): Required - Behavior ID.
153
158
  * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
154
159
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
160
+ * `disable_parent_folder_behavior` (boolean): If true, the parent folder's behavior will be disabled for this folder.
155
161
  * `name` (string): Name for this behavior.
156
162
  * `description` (string): Description for this behavior.
157
163
  * `behavior` (string): Behavior type.
@@ -170,7 +176,8 @@ await behavior.update({
170
176
  "description": "example",
171
177
  "value": {
172
178
  "key": "example value"
173
- }
179
+ },
180
+ "disable_parent_folder_behavior": true
174
181
  }
175
182
  ```
176
183
 
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.34';
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;
@@ -99,6 +106,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
99
106
  // Parameters:
100
107
  // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
101
108
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
109
+ // disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
102
110
  // name - string - Name for this behavior.
103
111
  // description - string - Description for this behavior.
104
112
  // behavior - string - Behavior type.
@@ -463,6 +471,7 @@ _Behavior = Behavior;
463
471
  // Parameters:
464
472
  // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
465
473
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
474
+ // disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
466
475
  // name - string - Name for this behavior.
467
476
  // description - string - Description for this behavior.
468
477
  // path (required) - string - Folder behaviors path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
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.34'
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
 
@@ -94,6 +101,7 @@ class Behavior {
94
101
  // Parameters:
95
102
  // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
96
103
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
104
+ // disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
97
105
  // name - string - Name for this behavior.
98
106
  // description - string - Description for this behavior.
99
107
  // behavior - string - Behavior type.
@@ -282,6 +290,7 @@ class Behavior {
282
290
  // Parameters:
283
291
  // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
284
292
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
293
+ // disable_parent_folder_behavior - boolean - If true, the parent folder's behavior will be disabled for this folder.
285
294
  // name - string - Name for this behavior.
286
295
  // description - string - Description for this behavior.
287
296
  // path (required) - string - Folder behaviors path.