files.com 1.2.42 → 1.2.44
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/Bundle.md +13 -3
- package/docs/models/Snapshot.md +15 -0
- package/lib/Errors.js +311 -299
- package/lib/Files.js +1 -1
- package/lib/models/Bundle.js +1 -1
- package/lib/models/Snapshot.js +138 -89
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/Files.js +1 -1
- package/src/models/Bundle.js +1 -1
- package/src/models/Snapshot.js +26 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.44
|
package/docs/Errors.md
CHANGED
@@ -149,6 +149,7 @@ These errors are derived from the error groups listed above.
|
|
149
149
|
### NotFound_PlanNotFoundError
|
150
150
|
### NotFound_SiteNotFoundError
|
151
151
|
### NotFound_UserNotFoundError
|
152
|
+
### ProcessingFailure_AlreadyCompletedError
|
152
153
|
### ProcessingFailure_AutomationCannotBeRunManuallyError
|
153
154
|
### ProcessingFailure_BundleOnlyAllowsPreviewsError
|
154
155
|
### ProcessingFailure_BundleOperationRequiresSubfolderError
|
package/docs/models/Bundle.md
CHANGED
@@ -77,7 +77,12 @@
|
|
77
77
|
"paths": [
|
78
78
|
"file.txt"
|
79
79
|
],
|
80
|
-
"bundlepaths":
|
80
|
+
"bundlepaths": [
|
81
|
+
{
|
82
|
+
"recursive": true,
|
83
|
+
"path": "example"
|
84
|
+
}
|
85
|
+
]
|
81
86
|
}
|
82
87
|
```
|
83
88
|
|
@@ -119,7 +124,7 @@
|
|
119
124
|
* `watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
|
120
125
|
* `has_inbox` (boolean): Does this bundle have an associated inbox?
|
121
126
|
* `paths` (array): A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
|
122
|
-
* `bundlepaths` (
|
127
|
+
* `bundlepaths` (array): A list of bundlepaths in this bundle. For performance reasons, this is not provided when listing bundles.
|
123
128
|
* `password` (string): Password for this bundle.
|
124
129
|
* `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
|
125
130
|
* `create_snapshot` (boolean): If true, create a snapshot of this bundle's contents.
|
@@ -395,7 +400,12 @@ await bundle.update({
|
|
395
400
|
"paths": [
|
396
401
|
"file.txt"
|
397
402
|
],
|
398
|
-
"bundlepaths":
|
403
|
+
"bundlepaths": [
|
404
|
+
{
|
405
|
+
"recursive": true,
|
406
|
+
"path": "example"
|
407
|
+
}
|
408
|
+
]
|
399
409
|
}
|
400
410
|
```
|
401
411
|
|
package/docs/models/Snapshot.md
CHANGED
@@ -68,6 +68,21 @@ await Snapshot.create({
|
|
68
68
|
* `name` (string): A name for the snapshot.
|
69
69
|
* `paths` (array(string)): An array of paths to add to the snapshot.
|
70
70
|
|
71
|
+
---
|
72
|
+
|
73
|
+
## Finalize Snapshot
|
74
|
+
|
75
|
+
```
|
76
|
+
const [snapshot] = await Snapshot.list()
|
77
|
+
|
78
|
+
await snapshot.finalize()
|
79
|
+
```
|
80
|
+
|
81
|
+
### Parameters
|
82
|
+
|
83
|
+
* `id` (int64): Required - Snapshot ID.
|
84
|
+
|
85
|
+
|
71
86
|
---
|
72
87
|
|
73
88
|
## Update Snapshot
|