files.com 1.1.646 → 1.1.647
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 -7
- data/docs/bundle_notification.md +2 -0
- data/lib/files.com/models/bundle.rb +5 -5
- data/lib/files.com/models/bundle_notification.rb +9 -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: 7a9039a7054a6c0d9d48c3079e135a0172e430eb301878cdfebde9dce183c5fc
|
|
4
|
+
data.tar.gz: 4b316018052171a078451a0eaa3c9e5608829c8f700269e76ddb40c51d9f48d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f769a4ae46c896209ff33c9303b47639d28b33145e7d36e863a898f9dcd4d554dad058854d54df357af3c585e3ebaabe531c188f04d637a62326f020c7d4d09
|
|
7
|
+
data.tar.gz: 1d33bd48df21b62ae715d54ed611d69ec5bda31534b7a22adc8c178b50a6a62c6b81ed6ef2f6c94d6b2a7f6bb20872037869e09ed3965a84d29de8162a833b96
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.647
|
data/docs/bundle.md
CHANGED
|
@@ -165,7 +165,7 @@ Files::Bundle.list(
|
|
|
165
165
|
* `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.
|
|
166
166
|
* `per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
167
167
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
168
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
168
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `group_id`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ group_id, expires_at ]` and `[ user_id, expires_at ]`.
|
|
169
169
|
* `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`.
|
|
170
170
|
* `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`.
|
|
171
171
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -314,9 +314,9 @@ Files::Bundle.update(id,
|
|
|
314
314
|
start_access_on_date: "2000-01-01T01:00:00Z",
|
|
315
315
|
skip_email: true,
|
|
316
316
|
skip_name: true,
|
|
317
|
-
workspace_id: 1,
|
|
318
317
|
user_id: 1,
|
|
319
|
-
watermark_attachment_delete: false
|
|
318
|
+
watermark_attachment_delete: false,
|
|
319
|
+
workspace_id: 1
|
|
320
320
|
)
|
|
321
321
|
```
|
|
322
322
|
|
|
@@ -349,10 +349,10 @@ Files::Bundle.update(id,
|
|
|
349
349
|
* `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
|
|
350
350
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
|
351
351
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
|
352
|
-
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
353
352
|
* `user_id` (int64): The owning user id. Only site admins can set this.
|
|
354
353
|
* `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
|
|
355
354
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
|
355
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
---
|
|
@@ -424,9 +424,9 @@ bundle.update(
|
|
|
424
424
|
start_access_on_date: "2000-01-01T01:00:00Z",
|
|
425
425
|
skip_email: true,
|
|
426
426
|
skip_name: true,
|
|
427
|
-
workspace_id: 1,
|
|
428
427
|
user_id: 1,
|
|
429
|
-
watermark_attachment_delete: false
|
|
428
|
+
watermark_attachment_delete: false,
|
|
429
|
+
workspace_id: 1
|
|
430
430
|
)
|
|
431
431
|
```
|
|
432
432
|
|
|
@@ -459,10 +459,10 @@ bundle.update(
|
|
|
459
459
|
* `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
|
|
460
460
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
|
461
461
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
|
462
|
-
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
463
462
|
* `user_id` (int64): The owning user id. Only site admins can set this.
|
|
464
463
|
* `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
|
|
465
464
|
* `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
|
|
465
|
+
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
466
466
|
|
|
467
467
|
|
|
468
468
|
---
|
data/docs/bundle_notification.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"id": 1,
|
|
9
9
|
"notify_on_registration": true,
|
|
10
10
|
"notify_on_upload": true,
|
|
11
|
+
"notify_current_user": true,
|
|
11
12
|
"notify_user_id": 1,
|
|
12
13
|
"workspace_id": 1
|
|
13
14
|
}
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
* `id` (int64): Bundle Notification ID
|
|
18
19
|
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
|
19
20
|
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
|
21
|
+
* `notify_current_user` (boolean): Is the current user the user to notify?
|
|
20
22
|
* `notify_user_id` (int64): The id of the user to notify.
|
|
21
23
|
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
|
|
22
24
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
@@ -519,10 +519,10 @@ module Files
|
|
|
519
519
|
# start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
|
520
520
|
# skip_email - boolean - BundleRegistrations can be saved without providing email?
|
|
521
521
|
# skip_name - boolean - BundleRegistrations can be saved without providing name?
|
|
522
|
-
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
523
522
|
# user_id - int64 - The owning user id. Only site admins can set this.
|
|
524
523
|
# watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
|
525
524
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
|
525
|
+
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
526
526
|
def update(params = {})
|
|
527
527
|
params ||= {}
|
|
528
528
|
params[:id] = @attributes[:id]
|
|
@@ -543,8 +543,8 @@ module Files
|
|
|
543
543
|
raise InvalidParameterError.new("Bad parameter: path_template_time_zone must be an String") if params[:path_template_time_zone] and !params[:path_template_time_zone].is_a?(String)
|
|
544
544
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
|
545
545
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
|
546
|
-
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
547
546
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
547
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
548
548
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
549
549
|
|
|
550
550
|
Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
|
|
@@ -581,7 +581,7 @@ module Files
|
|
|
581
581
|
# 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.
|
|
582
582
|
# per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
|
|
583
583
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
|
|
584
|
-
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`.
|
|
584
|
+
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `group_id`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ group_id, expires_at ]` and `[ user_id, expires_at ]`.
|
|
585
585
|
# 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`.
|
|
586
586
|
# 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`.
|
|
587
587
|
# filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
|
|
@@ -728,10 +728,10 @@ module Files
|
|
|
728
728
|
# start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
|
729
729
|
# skip_email - boolean - BundleRegistrations can be saved without providing email?
|
|
730
730
|
# skip_name - boolean - BundleRegistrations can be saved without providing name?
|
|
731
|
-
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
732
731
|
# user_id - int64 - The owning user id. Only site admins can set this.
|
|
733
732
|
# watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
|
734
733
|
# watermark_attachment_file - file - Preview watermark image applied to all bundle items.
|
|
734
|
+
# workspace_id - int64 - Workspace ID. `0` means the default workspace.
|
|
735
735
|
def self.update(id, params = {}, options = {})
|
|
736
736
|
params ||= {}
|
|
737
737
|
params[:id] = id
|
|
@@ -751,8 +751,8 @@ module Files
|
|
|
751
751
|
raise InvalidParameterError.new("Bad parameter: path_template_time_zone must be an String") if params[:path_template_time_zone] and !params[:path_template_time_zone].is_a?(String)
|
|
752
752
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
|
753
753
|
raise InvalidParameterError.new("Bad parameter: start_access_on_date must be an String") if params[:start_access_on_date] and !params[:start_access_on_date].is_a?(String)
|
|
754
|
-
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
755
754
|
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
755
|
+
raise InvalidParameterError.new("Bad parameter: workspace_id must be an Integer") if params[:workspace_id] and !params[:workspace_id].is_a?(Integer)
|
|
756
756
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
|
757
757
|
|
|
758
758
|
response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
|
|
@@ -45,6 +45,15 @@ module Files
|
|
|
45
45
|
@attributes[:notify_on_upload] = value
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# boolean - Is the current user the user to notify?
|
|
49
|
+
def notify_current_user
|
|
50
|
+
@attributes[:notify_current_user]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def notify_current_user=(value)
|
|
54
|
+
@attributes[:notify_current_user] = value
|
|
55
|
+
end
|
|
56
|
+
|
|
48
57
|
# int64 - The id of the user to notify.
|
|
49
58
|
def notify_user_id
|
|
50
59
|
@attributes[:notify_user_id]
|
data/lib/files.com/version.rb
CHANGED