files.com 1.1.297 → 1.1.299

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: 51224a994607bb43fa3d6a137cb30245cb6d3c87b15ec8593635f036416b3105
4
+ data.tar.gz: 64d56d01d33a9b2d1030aeaeeccc17b5b4578eef7b8e2d9f20004c58fe5ee900
5
5
  SHA512:
6
- metadata.gz: 8c58e866ca0cbeeff6d645dd1ae486fa8e7144ae8073e447e2127d0e0c50b5018989f82a4c4d8815687089671ee566a8812a38492c5fa9a2044fc72c9abadfd4
7
- data.tar.gz: 567902ae2c5ae506cde2d2173021b2fa21386f26fdf59cf1755888c9707407e934e872a877e44b248365e294280fef5e0b850858aa36f6080460e0d462cadc1e
6
+ metadata.gz: 91a83d258eb6fd5ea5e2b3302be2b0e1da4ad0488587c243a5bc82574602385af6bc2f6750589d8632e0935faccf6e7d11e069bb43021339725efcff32428251
7
+ data.tar.gz: 142120c2463c906a94d6d3a79e4c068cecb35476edc5a88287306f9fcfd39933d25fc0e9a03cedc415717392d5f199c91e1bffa529aa3d25fa3cc949df5c79f2
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.297
1
+ 1.1.299
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
  ---
data/docs/sync.md CHANGED
@@ -150,15 +150,6 @@ Files::Sync.create(
150
150
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
151
151
 
152
152
 
153
- ---
154
-
155
- ## Migrate Legacy Syncs to Syncs
156
-
157
- ```
158
- Files::Sync.create_migrate_to
159
- ```
160
-
161
-
162
153
  ---
163
154
 
164
155
  ## Manually Run Sync
@@ -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
@@ -390,11 +390,6 @@ module Files
390
390
  Sync.new(response.data, options)
391
391
  end
392
392
 
393
- def self.create_migrate_to(params = {}, options = {})
394
- Api.send_request("/syncs/migrate_to_syncs", :post, params, options)
395
- nil
396
- end
397
-
398
393
  # Manually Run Sync
399
394
  def self.manual_run(id, params = {}, options = {})
400
395
  params ||= {}
@@ -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.299"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.299
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-16 00:00:00.000000000 Z
11
+ date: 2025-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable