files.com 1.2.156 → 1.2.157
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/Automation.md +7 -7
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +5 -5
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Automation.js +5 -5
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.157
|
|
@@ -89,7 +89,7 @@
|
|
|
89
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.
|
|
90
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.
|
|
91
91
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
|
92
|
-
* `source` (string): Source path. Supports globs, except on remote mounts.
|
|
92
|
+
* `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
93
93
|
* `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
|
94
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
|
|
95
95
|
* `trigger` (string): How this automation is triggered to run.
|
|
@@ -137,7 +137,7 @@ await Automation.find(id)
|
|
|
137
137
|
|
|
138
138
|
```
|
|
139
139
|
await Automation.create({
|
|
140
|
-
'source': "
|
|
140
|
+
'source': "example",
|
|
141
141
|
'destinations': ["folder_a/file_a.txt",{"folder_path":"folder_b","file_path":"file_b.txt"},{"folder_path":"folder_c"}],
|
|
142
142
|
'destination_replace_from': "example",
|
|
143
143
|
'destination_replace_to': "example",
|
|
@@ -170,12 +170,12 @@ await Automation.create({
|
|
|
170
170
|
|
|
171
171
|
### Parameters
|
|
172
172
|
|
|
173
|
-
* `source` (string): Source
|
|
173
|
+
* `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
174
174
|
* `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
|
|
175
175
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
176
176
|
* `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.
|
|
177
177
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
178
|
-
* `path` (string): Path on which this Automation runs. Supports globs.
|
|
178
|
+
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
179
179
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
180
180
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
181
181
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -221,7 +221,7 @@ await automation.manual_run()
|
|
|
221
221
|
const automation = await Automation.find(id)
|
|
222
222
|
|
|
223
223
|
await automation.update({
|
|
224
|
-
'source': "
|
|
224
|
+
'source': "example",
|
|
225
225
|
'destinations': ["folder_a/file_a.txt",{"folder_path":"folder_b","file_path":"file_b.txt"},{"folder_path":"folder_c"}],
|
|
226
226
|
'destination_replace_from': "example",
|
|
227
227
|
'destination_replace_to': "example",
|
|
@@ -254,12 +254,12 @@ await automation.update({
|
|
|
254
254
|
### Parameters
|
|
255
255
|
|
|
256
256
|
* `id` (int64): Required - Automation ID.
|
|
257
|
-
* `source` (string): Source
|
|
257
|
+
* `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
258
258
|
* `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
|
|
259
259
|
* `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
260
260
|
* `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.
|
|
261
261
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
262
|
-
* `path` (string): Path on which this Automation runs. Supports globs.
|
|
262
|
+
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
263
263
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
264
264
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
265
265
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
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.157';
|
|
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
|
@@ -215,7 +215,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
215
215
|
(0, _defineProperty2.default)(this, "setScheduleTimeZone", function (value) {
|
|
216
216
|
_this.attributes.schedule_time_zone = value;
|
|
217
217
|
});
|
|
218
|
-
// string # Source path. Supports globs, except on remote mounts.
|
|
218
|
+
// string # Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
219
219
|
(0, _defineProperty2.default)(this, "getSource", function () {
|
|
220
220
|
return _this.attributes.source;
|
|
221
221
|
});
|
|
@@ -321,12 +321,12 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
321
321
|
}, _callee);
|
|
322
322
|
})));
|
|
323
323
|
// Parameters:
|
|
324
|
-
// source - string - Source
|
|
324
|
+
// source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
325
325
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
326
326
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
327
327
|
// 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.
|
|
328
328
|
// interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
329
|
-
// path - string - Path on which this Automation runs. Supports globs.
|
|
329
|
+
// path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
330
330
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
331
331
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
332
332
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -717,12 +717,12 @@ _Automation = Automation;
|
|
|
717
717
|
return _Automation.find(id, params, options);
|
|
718
718
|
});
|
|
719
719
|
// Parameters:
|
|
720
|
-
// source - string - Source
|
|
720
|
+
// source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
721
721
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
722
722
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
723
723
|
// 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.
|
|
724
724
|
// interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
725
|
-
// path - string - Path on which this Automation runs. Supports globs.
|
|
725
|
+
// path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
726
726
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
727
727
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
728
728
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Automation.js
CHANGED
|
@@ -210,7 +210,7 @@ class Automation {
|
|
|
210
210
|
this.attributes.schedule_time_zone = value
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// string # Source path. Supports globs, except on remote mounts.
|
|
213
|
+
// string # Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
214
214
|
getSource = () => this.attributes.source
|
|
215
215
|
|
|
216
216
|
setSource = value => {
|
|
@@ -293,12 +293,12 @@ class Automation {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// Parameters:
|
|
296
|
-
// source - string - Source
|
|
296
|
+
// source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
297
297
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
298
298
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
299
299
|
// 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.
|
|
300
300
|
// interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
301
|
-
// path - string - Path on which this Automation runs. Supports globs.
|
|
301
|
+
// path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
302
302
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
303
303
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
304
304
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -519,12 +519,12 @@ class Automation {
|
|
|
519
519
|
Automation.find(id, params, options)
|
|
520
520
|
|
|
521
521
|
// Parameters:
|
|
522
|
-
// source - string - Source
|
|
522
|
+
// source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
|
|
523
523
|
// destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
|
|
524
524
|
// destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
|
|
525
525
|
// 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.
|
|
526
526
|
// interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
527
|
-
// path - string - Path on which this Automation runs. Supports globs.
|
|
527
|
+
// path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
528
528
|
// sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
529
529
|
// user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
530
530
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|