files.com 1.0.285 → 1.0.286
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/Errors.md +1 -0
- package/docs/models/Automation.md +15 -0
- package/lib/Errors.js +317 -303
- package/lib/models/Automation.js +161 -108
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/models/Automation.js +28 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.286
|
package/docs/Errors.md
CHANGED
@@ -146,6 +146,7 @@ These errors are derived from the error groups listed above.
|
|
146
146
|
### NotFound_PlanNotFoundError
|
147
147
|
### NotFound_SiteNotFoundError
|
148
148
|
### NotFound_UserNotFoundError
|
149
|
+
### ProcessingFailure_AutomationCannotBeRunManuallyError
|
149
150
|
### ProcessingFailure_BundleOnlyAllowsPreviewsError
|
150
151
|
### ProcessingFailure_BundleOperationRequiresSubfolderError
|
151
152
|
### ProcessingFailure_CouldNotCreateParentError
|
@@ -157,6 +157,21 @@ await Automation.create({
|
|
157
157
|
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
|
158
158
|
* `automation` (string): Required - Automation type
|
159
159
|
|
160
|
+
---
|
161
|
+
|
162
|
+
## Manually run automation
|
163
|
+
|
164
|
+
```
|
165
|
+
const [automation] = await Automation.list()
|
166
|
+
|
167
|
+
await automation.manual_run()
|
168
|
+
```
|
169
|
+
|
170
|
+
### Parameters
|
171
|
+
|
172
|
+
* `id` (int64): Required - Automation ID.
|
173
|
+
|
174
|
+
|
160
175
|
---
|
161
176
|
|
162
177
|
## Update Automation
|