files.com 1.1.251 → 1.1.253
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 +6 -0
- data/docs/bundle_notification.md +4 -4
- data/lib/files.com/models/bundle.rb +12 -0
- data/lib/files.com/models/bundle_notification.rb +6 -6
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599685d24a0efdef000171470a72cb7a97ba73c5ecec5888be4af169a45ebaf4
|
4
|
+
data.tar.gz: 67d7bc89ca063b74f42d7184d11ede38adf0a5dd5e6c06a6bbef1e7847e50c35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e633d0eb115bf2dfa48571bc7eca2377112ccc54dd2d0ec3d5184a7bdf091ad1e86501eedf9f15ed293e7f486e0434904de6ecd2dbcfaac517d542610fa62ee
|
7
|
+
data.tar.gz: 38a0f5bd7b2e1791c5b93fac9b7d3abda19c4021498c9014e06eab0c59c86e30ba6e0c2968a1b68e1d765fb4fb1867c1a70145d67d0f1a11c27b7786d32a234f
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.253
|
data/docs/bundle.md
CHANGED
@@ -151,6 +151,12 @@ Files::Bundle.list(
|
|
151
151
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
152
152
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
153
153
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
154
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
155
|
+
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
156
|
+
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
157
|
+
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
158
|
+
* `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`.
|
159
|
+
* `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`.
|
154
160
|
|
155
161
|
|
156
162
|
---
|
data/docs/bundle_notification.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"id": 1,
|
9
9
|
"notify_on_registration": true,
|
10
10
|
"notify_on_upload": true,
|
11
|
-
"
|
11
|
+
"notify_user_id": 1
|
12
12
|
}
|
13
13
|
```
|
14
14
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
* `id` (int64): Bundle Notification ID
|
17
17
|
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
18
18
|
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
19
|
-
* `
|
19
|
+
* `notify_user_id` (int64): The id of the user to notify.
|
20
20
|
|
21
21
|
|
22
22
|
---
|
@@ -55,7 +55,7 @@ Files::BundleNotification.find(id)
|
|
55
55
|
```
|
56
56
|
Files::BundleNotification.create(
|
57
57
|
bundle_id: 1,
|
58
|
-
|
58
|
+
notify_user_id: 1,
|
59
59
|
notify_on_registration: true,
|
60
60
|
notify_on_upload: true
|
61
61
|
)
|
@@ -64,7 +64,7 @@ Files::BundleNotification.create(
|
|
64
64
|
### Parameters
|
65
65
|
|
66
66
|
* `bundle_id` (int64): Required - Bundle ID to notify on
|
67
|
-
* `
|
67
|
+
* `notify_user_id` (int64): The id of the user to notify.
|
68
68
|
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
69
69
|
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
70
70
|
|
@@ -519,11 +519,23 @@ module Files
|
|
519
519
|
# cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
520
520
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
521
521
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
522
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
|
523
|
+
# filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
|
524
|
+
# filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
|
525
|
+
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
526
|
+
# 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`.
|
527
|
+
# 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`.
|
522
528
|
def self.list(params = {}, options = {})
|
523
529
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
524
530
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
525
531
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
526
532
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
533
|
+
raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params[:filter] and !params[:filter].is_a?(Hash)
|
534
|
+
raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params[:filter_gt] and !params[:filter_gt].is_a?(Hash)
|
535
|
+
raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params[:filter_gteq] and !params[:filter_gteq].is_a?(Hash)
|
536
|
+
raise InvalidParameterError.new("Bad parameter: filter_prefix must be an Hash") if params[:filter_prefix] and !params[:filter_prefix].is_a?(Hash)
|
537
|
+
raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params[:filter_lt] and !params[:filter_lt].is_a?(Hash)
|
538
|
+
raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params[:filter_lteq] and !params[:filter_lteq].is_a?(Hash)
|
527
539
|
|
528
540
|
List.new(Bundle, params) do
|
529
541
|
Api.send_request("/bundles", :get, params, options)
|
@@ -46,12 +46,12 @@ module Files
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# int64 - The id of the user to notify.
|
49
|
-
def
|
50
|
-
@attributes[:
|
49
|
+
def notify_user_id
|
50
|
+
@attributes[:notify_user_id]
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
54
|
-
@attributes[:
|
53
|
+
def notify_user_id=(value)
|
54
|
+
@attributes[:notify_user_id] = value
|
55
55
|
end
|
56
56
|
|
57
57
|
# Parameters:
|
@@ -131,12 +131,12 @@ module Files
|
|
131
131
|
|
132
132
|
# Parameters:
|
133
133
|
# bundle_id (required) - int64 - Bundle ID to notify on
|
134
|
-
#
|
134
|
+
# notify_user_id - int64 - The id of the user to notify.
|
135
135
|
# notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
136
136
|
# notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
137
137
|
def self.create(params = {}, options = {})
|
138
138
|
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
139
|
-
raise InvalidParameterError.new("Bad parameter:
|
139
|
+
raise InvalidParameterError.new("Bad parameter: notify_user_id must be an Integer") if params[:notify_user_id] and !params[:notify_user_id].is_a?(Integer)
|
140
140
|
raise MissingParameterError.new("Parameter missing: bundle_id") unless params[:bundle_id]
|
141
141
|
|
142
142
|
response, options = Api.send_request("/bundle_notifications", :post, params, options)
|
data/lib/files.com/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.253
|
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-05-
|
11
|
+
date: 2025-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|