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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8906a59fcea66c3048889d280c049b9e7d8335409790b91e9a5ce0831692953a
4
- data.tar.gz: 2916fd294a6bb6974866eeb6c97d6f5ca265634720d0da5268eff1c08b12e833
3
+ metadata.gz: c8b5b2ca70d49811cddcd70849c20c910ff122d4fa4514049e6d5f80819c9607
4
+ data.tar.gz: 287fc773cf52fbcb262086c9aca5f304bac9ef324b8f98b03635d0e899d487b8
5
5
  SHA512:
6
- metadata.gz: 8c58e866ca0cbeeff6d645dd1ae486fa8e7144ae8073e447e2127d0e0c50b5018989f82a4c4d8815687089671ee566a8812a38492c5fa9a2044fc72c9abadfd4
7
- data.tar.gz: 567902ae2c5ae506cde2d2173021b2fa21386f26fdf59cf1755888c9707407e934e872a877e44b248365e294280fef5e0b850858aa36f6080460e0d462cadc1e
6
+ metadata.gz: f6aaa9a50579e2ffb7e0d113eaeb411f7c77d832c6c82c462738c629c5961de63d614f49674ffacd1c9a8d2681672e8522815e08d06eeb9463ae44308e53f3ab
7
+ data.tar.gz: 26d4db40df269e03df03e39f321d58e8e8eb8c835476cacb914a4edc4ef00ac9e0c8ce698da3229f30fb1612ddace19d302c57ec4892dbf6d453db71e3359cf2
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.297
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.297"
4
+ VERSION = "1.1.298"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.297
4
+ version: 1.1.298
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com