You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models/Bundle.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@
57
57
"id": 1,
58
58
"bypasses_site_expiration_rules": true,
59
59
"created_at": "2000-01-01T01:00:00Z",
60
+
"deleted": true,
61
+
"deleted_at": "2000-01-01T01:00:00Z",
60
62
"dont_separate_submissions_by_folder": true,
61
63
"max_uses": 1,
62
64
"note": "The internal note on the bundle.",
@@ -116,6 +118,8 @@
116
118
*`id` (int64): Bundle ID
117
119
*`bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
118
120
*`created_at` (date-time): Bundle created at date/time
121
+
*`deleted` (boolean): Indicates if the bundle has been deleted.
122
+
*`deleted_at` (date-time): Bundle deleted at date/time
119
123
*`dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
120
124
*`max_uses` (int64): Maximum number of times bundle can be accessed
121
125
*`note` (string): Bundle internal note
@@ -150,6 +154,7 @@
150
154
```
151
155
await Bundle.list({
152
156
'user_id': 1,
157
+
'deleted': false,
153
158
})
154
159
```
155
160
@@ -166,6 +171,7 @@ await Bundle.list({
166
171
*`filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
167
172
*`filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
168
173
*`filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
174
+
*`deleted` (boolean): If true, only list deleted Share Links.
// boolean # Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
742
756
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
743
757
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
758
+
// deleted - boolean - If true, only list deleted Share Links.
Copy file name to clipboardExpand all lines: src/models/Bundle.js
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,20 @@ class Bundle {
192
192
// date-time # Bundle created at date/time
193
193
getCreatedAt=()=>this.attributes.created_at
194
194
195
+
// boolean # Indicates if the bundle has been deleted.
196
+
getDeleted=()=>this.attributes.deleted
197
+
198
+
setDeleted=value=>{
199
+
this.attributes.deleted=value
200
+
}
201
+
202
+
// date-time # Bundle deleted at date/time
203
+
getDeletedAt=()=>this.attributes.deleted_at
204
+
205
+
setDeletedAt=value=>{
206
+
this.attributes.deleted_at=value
207
+
}
208
+
195
209
// boolean # Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
595
609
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
596
610
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
611
+
// deleted - boolean - If true, only list deleted Share Links.
597
612
staticlist=async(params={},options={})=>{
598
613
if(params.user_id&&!isInt(params.user_id)){
599
614
thrownewerrors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)
0 commit comments