files.com 1.2.286 → 1.2.288
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/README.md +0 -1
- package/_VERSION +1 -1
- package/docs/Errors.md +0 -1
- package/docs/models/Automation.md +14 -1
- package/lib/Errors.js +301 -313
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +104 -83
- package/package.json +1 -1
- package/src/Errors.js +0 -1
- package/src/Files.js +1 -1
- package/src/models/Automation.js +17 -0
- package/test/Api.test.js +8 -8
package/README.md
CHANGED
|
@@ -624,7 +624,6 @@ Error
|
|
|
624
624
|
| `NotFound_CodeNotFoundError`| `NotFoundError` |
|
|
625
625
|
| `NotFound_FileNotFoundError`| `NotFoundError` |
|
|
626
626
|
| `NotFound_FileUploadNotFoundError`| `NotFoundError` |
|
|
627
|
-
| `NotFound_FolderNotFoundError`| `NotFoundError` |
|
|
628
627
|
| `NotFound_GroupNotFoundError`| `NotFoundError` |
|
|
629
628
|
| `NotFound_InboxNotFoundError`| `NotFoundError` |
|
|
630
629
|
| `NotFound_NestedNotFoundError`| `NotFoundError` |
|
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.288
|
package/docs/Errors.md
CHANGED
|
@@ -152,7 +152,6 @@ These errors are derived from the error groups listed above.
|
|
|
152
152
|
### NotFound_CodeNotFoundError
|
|
153
153
|
### NotFound_FileNotFoundError
|
|
154
154
|
### NotFound_FileUploadNotFoundError
|
|
155
|
-
### NotFound_FolderNotFoundError
|
|
156
155
|
### NotFound_GroupNotFoundError
|
|
157
156
|
### NotFound_InboxNotFoundError
|
|
158
157
|
### NotFound_NestedNotFoundError
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
],
|
|
71
71
|
"schedule_time_zone": "Eastern Time (US & Canada)",
|
|
72
72
|
"source": "example",
|
|
73
|
+
"legacy_sync_ids": [
|
|
74
|
+
1,
|
|
75
|
+
2
|
|
76
|
+
],
|
|
73
77
|
"sync_ids": [
|
|
74
78
|
1,
|
|
75
79
|
2
|
|
@@ -122,7 +126,8 @@
|
|
|
122
126
|
* `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.
|
|
123
127
|
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
|
|
124
128
|
* `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.
|
|
125
|
-
* `
|
|
129
|
+
* `legacy_sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
|
|
130
|
+
* `sync_ids` (array(int64)): IDs of syncs to run by this Automation. This is the new way to specify syncs, and it is recommended to use this instead of `legacy_sync_ids`.
|
|
126
131
|
* `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
|
|
127
132
|
* `trigger` (string): How this automation is triggered to run.
|
|
128
133
|
* `user_id` (int64): User ID of the Automation's creator.
|
|
@@ -176,6 +181,7 @@ await Automation.create({
|
|
|
176
181
|
'destination_replace_to': "example",
|
|
177
182
|
'interval': "year",
|
|
178
183
|
'path': "example",
|
|
184
|
+
'legacy_sync_ids': [1,2],
|
|
179
185
|
'sync_ids': [1,2],
|
|
180
186
|
'user_ids': [1,2],
|
|
181
187
|
'group_ids': [1,2],
|
|
@@ -214,6 +220,7 @@ await Automation.create({
|
|
|
214
220
|
* `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.
|
|
215
221
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
216
222
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
223
|
+
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
217
224
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
218
225
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
219
226
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -270,6 +277,7 @@ await automation.update({
|
|
|
270
277
|
'destination_replace_to': "example",
|
|
271
278
|
'interval': "year",
|
|
272
279
|
'path': "example",
|
|
280
|
+
'legacy_sync_ids': [1,2],
|
|
273
281
|
'sync_ids': [1,2],
|
|
274
282
|
'user_ids': [1,2],
|
|
275
283
|
'group_ids': [1,2],
|
|
@@ -308,6 +316,7 @@ await automation.update({
|
|
|
308
316
|
* `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.
|
|
309
317
|
* `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
|
|
310
318
|
* `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
|
|
319
|
+
* `legacy_sync_ids` (string): A list of legacy sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
311
320
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
312
321
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
313
322
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
|
@@ -405,6 +414,10 @@ await automation.update({
|
|
|
405
414
|
],
|
|
406
415
|
"schedule_time_zone": "Eastern Time (US & Canada)",
|
|
407
416
|
"source": "example",
|
|
417
|
+
"legacy_sync_ids": [
|
|
418
|
+
1,
|
|
419
|
+
2
|
|
420
|
+
],
|
|
408
421
|
"sync_ids": [
|
|
409
422
|
1,
|
|
410
423
|
2
|