files.com 1.0.284 → 1.0.286
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/Automation.md +15 -0
- package/docs/models/RemoteServer.md +26 -2
- package/lib/Errors.js +317 -303
- package/lib/models/Automation.js +161 -108
- package/lib/models/RemoteServer.js +95 -11
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/models/Automation.js +28 -0
- package/src/models/RemoteServer.js +64 -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
|
@@ -55,7 +55,10 @@
|
|
55
55
|
"cloudflare_bucket": "my-bucket",
|
56
56
|
"cloudflare_access_key": "example",
|
57
57
|
"cloudflare_endpoint": "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
58
|
-
"dropbox_teams": true
|
58
|
+
"dropbox_teams": true,
|
59
|
+
"linode_bucket": "my-bucket",
|
60
|
+
"linode_access_key": "example",
|
61
|
+
"linode_region": "us-east-1"
|
59
62
|
}
|
60
63
|
```
|
61
64
|
|
@@ -111,6 +114,9 @@
|
|
111
114
|
* `cloudflare_access_key` (string): Cloudflare Access Key.
|
112
115
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
113
116
|
* `dropbox_teams` (boolean): List Team folders in root
|
117
|
+
* `linode_bucket` (string): Linode Bucket name
|
118
|
+
* `linode_access_key` (string): Linode Access Key.
|
119
|
+
* `linode_region` (string): Linode region
|
114
120
|
* `aws_secret_key` (string): AWS secret key.
|
115
121
|
* `password` (string): Password if needed.
|
116
122
|
* `private_key` (string): Private key if needed.
|
@@ -127,6 +133,7 @@
|
|
127
133
|
* `s3_compatible_secret_key` (string): S3-compatible secret key
|
128
134
|
* `filebase_secret_key` (string): Filebase secret key
|
129
135
|
* `cloudflare_secret_key` (string): Cloudflare secret key
|
136
|
+
* `linode_secret_key` (string): Linode secret key
|
130
137
|
|
131
138
|
---
|
132
139
|
|
@@ -220,6 +227,9 @@ await RemoteServer.create({
|
|
220
227
|
'cloudflare_bucket': "my-bucket",
|
221
228
|
'cloudflare_endpoint': "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
222
229
|
'dropbox_teams': true,
|
230
|
+
'linode_access_key': "example",
|
231
|
+
'linode_bucket': "my-bucket",
|
232
|
+
'linode_region': "us-east-1",
|
223
233
|
})
|
224
234
|
```
|
225
235
|
|
@@ -285,6 +295,10 @@ await RemoteServer.create({
|
|
285
295
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
286
296
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
287
297
|
* `dropbox_teams` (boolean): List Team folders in root
|
298
|
+
* `linode_access_key` (string): Linode Access Key.
|
299
|
+
* `linode_secret_key` (string): Linode secret key
|
300
|
+
* `linode_bucket` (string): Linode Bucket name
|
301
|
+
* `linode_region` (string): Linode region
|
288
302
|
|
289
303
|
---
|
290
304
|
|
@@ -394,6 +408,9 @@ await remote_server.update({
|
|
394
408
|
'cloudflare_bucket': "my-bucket",
|
395
409
|
'cloudflare_endpoint': "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
396
410
|
'dropbox_teams': true,
|
411
|
+
'linode_access_key': "example",
|
412
|
+
'linode_bucket': "my-bucket",
|
413
|
+
'linode_region': "us-east-1",
|
397
414
|
})
|
398
415
|
```
|
399
416
|
|
@@ -459,6 +476,10 @@ await remote_server.update({
|
|
459
476
|
* `cloudflare_bucket` (string): Cloudflare Bucket name
|
460
477
|
* `cloudflare_endpoint` (string): Cloudflare endpoint
|
461
478
|
* `dropbox_teams` (boolean): List Team folders in root
|
479
|
+
* `linode_access_key` (string): Linode Access Key.
|
480
|
+
* `linode_secret_key` (string): Linode secret key
|
481
|
+
* `linode_bucket` (string): Linode Bucket name
|
482
|
+
* `linode_region` (string): Linode region
|
462
483
|
|
463
484
|
### Example Response
|
464
485
|
|
@@ -515,7 +536,10 @@ await remote_server.update({
|
|
515
536
|
"cloudflare_bucket": "my-bucket",
|
516
537
|
"cloudflare_access_key": "example",
|
517
538
|
"cloudflare_endpoint": "https://<ACCOUNT_ID>.r2.cloudflarestorage.com",
|
518
|
-
"dropbox_teams": true
|
539
|
+
"dropbox_teams": true,
|
540
|
+
"linode_bucket": "my-bucket",
|
541
|
+
"linode_access_key": "example",
|
542
|
+
"linode_region": "us-east-1"
|
519
543
|
}
|
520
544
|
```
|
521
545
|
|