files.com 1.1.635 → 1.1.637
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +7 -1
- data/docs/preview.md +1 -1
- data/lib/files.com/models/bundle.rb +19 -0
- data/lib/files.com/models/preview.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab7e15bd7e2cb1cbecafe43e01c0671b51460590d3ab267a5573c60090076cd3
|
|
4
|
+
data.tar.gz: 1f8e2f122d0588da5e096a06fd65df71a6c4367ff346a05bc6fecf6a5e1a66c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1bb6c3a3bd178e8811e86b0f9a2c63aa7846c6790b5323ab8d323f030f1589afc618e77d467b1f112ba3adbd475154fb6374d4f804a906c6e8c55835d177b52
|
|
7
|
+
data.tar.gz: c18ba21cddaad6c682805f53486123831d844450cd08b609cbf44c309d304991e455c87d57926699c4f87921c178c3d907254939a75673992915519549a8e563
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.637
|
data/docs/bundle.md
CHANGED
|
@@ -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,7 +154,8 @@
|
|
|
150
154
|
|
|
151
155
|
```
|
|
152
156
|
Files::Bundle.list(
|
|
153
|
-
user_id: 1
|
|
157
|
+
user_id: 1,
|
|
158
|
+
deleted: false
|
|
154
159
|
)
|
|
155
160
|
```
|
|
156
161
|
|
|
@@ -166,6 +171,7 @@ Files::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.
|
|
169
175
|
|
|
170
176
|
|
|
171
177
|
---
|
data/docs/preview.md
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* `id` (int64): Preview ID
|
|
16
16
|
* `status` (string): Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
|
|
17
17
|
* `download_uri` (string): Link to download preview
|
|
18
|
-
* `type` (string): Preview type. Can be image, pdf, pdf_native, video, or
|
|
18
|
+
* `type` (string): Preview type. Can be image, pdf, pdf_native, video, audio, or text
|
|
19
19
|
* `size` (string): Preview size
|
|
@@ -221,6 +221,24 @@ module Files
|
|
|
221
221
|
@attributes[:created_at]
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
+
# boolean - Indicates if the bundle has been deleted.
|
|
225
|
+
def deleted
|
|
226
|
+
@attributes[:deleted]
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
def deleted=(value)
|
|
230
|
+
@attributes[:deleted] = value
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# date-time - Bundle deleted at date/time
|
|
234
|
+
def deleted_at
|
|
235
|
+
@attributes[:deleted_at]
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
def deleted_at=(value)
|
|
239
|
+
@attributes[:deleted_at] = value
|
|
240
|
+
end
|
|
241
|
+
|
|
224
242
|
# 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.
|
|
225
243
|
def dont_separate_submissions_by_folder
|
|
226
244
|
@attributes[:dont_separate_submissions_by_folder]
|
|
@@ -569,6 +587,7 @@ module Files
|
|
|
569
587
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
570
588
|
# 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`.
|
|
571
589
|
# 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`.
|
|
590
|
+
# deleted - boolean - If true, only list deleted Share Links.
|
|
572
591
|
def self.list(params = {}, options = {})
|
|
573
592
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
574
593
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED