files.com 1.1.297 → 1.1.298
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/folder.md +4 -1
- data/lib/files.com/models/folder.rb +4 -0
- 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: c8b5b2ca70d49811cddcd70849c20c910ff122d4fa4514049e6d5f80819c9607
|
4
|
+
data.tar.gz: 287fc773cf52fbcb262086c9aca5f304bac9ef324b8f98b03635d0e899d487b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6aaa9a50579e2ffb7e0d113eaeb411f7c77d832c6c82c462738c629c5961de63d614f49674ffacd1c9a8d2681672e8522815e08d06eeb9463ae44308e53f3ab
|
7
|
+
data.tar.gz: 26d4db40df269e03df03e39f321d58e8e8eb8c835476cacb914a4edc4ef00ac9e0c8ce698da3229f30fb1612ddace19d302c57ec4892dbf6d453db71e3359cf2
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.298
|
data/docs/folder.md
CHANGED
@@ -103,7 +103,8 @@ Files::Folder.list_for(path,
|
|
103
103
|
search_custom_metadata_key: "some-metadata-key",
|
104
104
|
search_all: false,
|
105
105
|
with_previews: false,
|
106
|
-
with_priority_color: false
|
106
|
+
with_priority_color: false,
|
107
|
+
type: "file"
|
107
108
|
)
|
108
109
|
```
|
109
110
|
|
@@ -119,6 +120,8 @@ Files::Folder.list_for(path,
|
|
119
120
|
* `search_all` (boolean): Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the web UI when running 'Search All Files'. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
|
120
121
|
* `with_previews` (boolean): Include file previews?
|
121
122
|
* `with_priority_color` (boolean): Include file priority color information?
|
123
|
+
* `type` (string): Type of objects to return. Can be `folder` or `file`.
|
124
|
+
* `modified_at_datetime` (string): If provided, will only return files/folders modified after this time. Can be used only in combination with `type` filter.
|
122
125
|
|
123
126
|
|
124
127
|
---
|
@@ -487,6 +487,8 @@ module Files
|
|
487
487
|
# search_all - boolean - Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the web UI when running 'Search All Files'. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
|
488
488
|
# with_previews - boolean - Include file previews?
|
489
489
|
# with_priority_color - boolean - Include file priority color information?
|
490
|
+
# type - string - Type of objects to return. Can be `folder` or `file`.
|
491
|
+
# modified_at_datetime - string - If provided, will only return files/folders modified after this time. Can be used only in combination with `type` filter.
|
490
492
|
def self.list_for(path, params = {}, options = {})
|
491
493
|
params ||= {}
|
492
494
|
params[:path] = path
|
@@ -497,6 +499,8 @@ module Files
|
|
497
499
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
498
500
|
raise InvalidParameterError.new("Bad parameter: search must be an String") if params[:search] and !params[:search].is_a?(String)
|
499
501
|
raise InvalidParameterError.new("Bad parameter: search_custom_metadata_key must be an String") if params[:search_custom_metadata_key] and !params[:search_custom_metadata_key].is_a?(String)
|
502
|
+
raise InvalidParameterError.new("Bad parameter: type must be an String") if params[:type] and !params[:type].is_a?(String)
|
503
|
+
raise InvalidParameterError.new("Bad parameter: modified_at_datetime must be an String") if params[:modified_at_datetime] and !params[:modified_at_datetime].is_a?(String)
|
500
504
|
raise MissingParameterError.new("Parameter missing: path") unless params[:path]
|
501
505
|
|
502
506
|
List.new(File, params) do
|
data/lib/files.com/version.rb
CHANGED