files.com 1.2.131 → 1.2.132
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Automation.md +4 -1
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +8 -1
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Automation.js +8 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.132
|
@@ -15,6 +15,7 @@
|
|
15
15
|
"destination"
|
16
16
|
],
|
17
17
|
"disabled": true,
|
18
|
+
"exclude_pattern": "example",
|
18
19
|
"flatten_destination_structure": true,
|
19
20
|
"group_ids": [
|
20
21
|
1,
|
@@ -71,6 +72,7 @@
|
|
71
72
|
* `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
|
72
73
|
* `destinations` (array(string)): Destination Paths
|
73
74
|
* `disabled` (boolean): If true, this automation will not run.
|
75
|
+
* `exclude_pattern` (string): If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
74
76
|
* `flatten_destination_structure` (boolean): Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
75
77
|
* `group_ids` (array(int64)): IDs of Groups for the Automation (i.e. who to Request File from)
|
76
78
|
* `ignore_locked_folders` (boolean): If true, the Lock Folders behavior will be disregarded for automated actions.
|
@@ -87,7 +89,7 @@
|
|
87
89
|
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
|
88
90
|
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
|
89
91
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
90
|
-
* `source` (string): Source
|
92
|
+
* `source` (string): Source path. Supports globs, except on remote mounts.
|
91
93
|
* `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
92
94
|
* `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
93
95
|
* `trigger` (string): How this automation is triggered to run.
|
@@ -294,6 +296,7 @@ await automation.update({
|
|
294
296
|
"destination"
|
295
297
|
],
|
296
298
|
"disabled": true,
|
299
|
+
"exclude_pattern": "example",
|
297
300
|
"flatten_destination_structure": true,
|
298
301
|
"group_ids": [
|
299
302
|
1,
|
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.132';
|
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/Automation.js
CHANGED
@@ -96,6 +96,13 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
96
96
|
(0, _defineProperty2.default)(this, "setDisabled", function (value) {
|
97
97
|
_this.attributes.disabled = value;
|
98
98
|
});
|
99
|
+
// string # If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
100
|
+
(0, _defineProperty2.default)(this, "getExcludePattern", function () {
|
101
|
+
return _this.attributes.exclude_pattern;
|
102
|
+
});
|
103
|
+
(0, _defineProperty2.default)(this, "setExcludePattern", function (value) {
|
104
|
+
_this.attributes.exclude_pattern = value;
|
105
|
+
});
|
99
106
|
// boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
100
107
|
(0, _defineProperty2.default)(this, "getFlattenDestinationStructure", function () {
|
101
108
|
return _this.attributes.flatten_destination_structure;
|
@@ -208,7 +215,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
208
215
|
(0, _defineProperty2.default)(this, "setScheduleTimeZone", function (value) {
|
209
216
|
_this.attributes.schedule_time_zone = value;
|
210
217
|
});
|
211
|
-
// string # Source
|
218
|
+
// string # Source path. Supports globs, except on remote mounts.
|
212
219
|
(0, _defineProperty2.default)(this, "getSource", function () {
|
213
220
|
return _this.attributes.source;
|
214
221
|
});
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Automation.js
CHANGED
@@ -91,6 +91,13 @@ class Automation {
|
|
91
91
|
this.attributes.disabled = value
|
92
92
|
}
|
93
93
|
|
94
|
+
// string # If set, this glob pattern will exclude files from the automation. Supports globs, except on remote mounts.
|
95
|
+
getExcludePattern = () => this.attributes.exclude_pattern
|
96
|
+
|
97
|
+
setExcludePattern = value => {
|
98
|
+
this.attributes.exclude_pattern = value
|
99
|
+
}
|
100
|
+
|
94
101
|
// boolean # Normally copy and move automations that use globs will implicitly preserve the source folder structure in the destination. If this flag is `true`, the source folder structure will be flattened in the destination. This is useful for copying or moving files from multiple folders into a single destination folder.
|
95
102
|
getFlattenDestinationStructure = () => this.attributes.flatten_destination_structure
|
96
103
|
|
@@ -203,7 +210,7 @@ class Automation {
|
|
203
210
|
this.attributes.schedule_time_zone = value
|
204
211
|
}
|
205
212
|
|
206
|
-
// string # Source
|
213
|
+
// string # Source path. Supports globs, except on remote mounts.
|
207
214
|
getSource = () => this.attributes.source
|
208
215
|
|
209
216
|
setSource = value => {
|