files.com 1.0.488 → 1.0.490
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/automation_run.md +0 -2
- data/docs/bundle_notification.md +3 -5
- data/docs/bundle_recipient.md +0 -5
- data/docs/bundle_registration.md +0 -2
- data/lib/files.com/errors.rb +2 -0
- data/lib/files.com/models/automation_run.rb +0 -2
- data/lib/files.com/models/bundle_notification.rb +2 -4
- data/lib/files.com/models/bundle_recipient.rb +0 -13
- data/lib/files.com/models/bundle_registration.rb +0 -2
- 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: 85c7193c6d700ef8409ee26d176164a5451c2417de15d7efbcda689a23c77c29
|
|
4
|
+
data.tar.gz: f43e0ce7e749b62a201fe65b5fff415f45b75dc74d807c15826f8be810f3977c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 796a350d469c137a9cdf3adcd5c07dbd0a20f406867f76ac3a1e725ccafeedbb93693a3d19d1fdc9fa546c73192995896b69437c2beb967c76812bd83bfdf415
|
|
7
|
+
data.tar.gz: 28e01c4d02c6749e376bf78c8efcb078d8029e0cef25c9246fa26f6288a2b585925425cc6966bfe3b8ce077c0f8c09b71c4bd348f8a994281f826171826ed7db
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.490
|
data/docs/automation_run.md
CHANGED
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
|
|
28
28
|
```
|
|
29
29
|
Files::AutomationRun.list(
|
|
30
|
-
user_id: 1,
|
|
31
30
|
per_page: 1,
|
|
32
31
|
automation_id: 1
|
|
33
32
|
)
|
|
@@ -35,7 +34,6 @@ Files::AutomationRun.list(
|
|
|
35
34
|
|
|
36
35
|
### Parameters
|
|
37
36
|
|
|
38
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
39
37
|
* `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.
|
|
40
38
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
41
39
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
data/docs/bundle_notification.md
CHANGED
|
@@ -25,14 +25,12 @@
|
|
|
25
25
|
|
|
26
26
|
```
|
|
27
27
|
Files::BundleNotification.list(
|
|
28
|
-
user_id: 1,
|
|
29
28
|
per_page: 1
|
|
30
29
|
)
|
|
31
30
|
```
|
|
32
31
|
|
|
33
32
|
### Parameters
|
|
34
33
|
|
|
35
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
36
34
|
* `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.
|
|
37
35
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
38
36
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
|
@@ -58,19 +56,19 @@ Files::BundleNotification.find(id)
|
|
|
58
56
|
|
|
59
57
|
```
|
|
60
58
|
Files::BundleNotification.create(
|
|
61
|
-
user_id: 1,
|
|
62
59
|
notify_on_registration: true,
|
|
63
60
|
notify_on_upload: true,
|
|
64
|
-
bundle_id: 1
|
|
61
|
+
bundle_id: 1,
|
|
62
|
+
user_id: 1
|
|
65
63
|
)
|
|
66
64
|
```
|
|
67
65
|
|
|
68
66
|
### Parameters
|
|
69
67
|
|
|
70
|
-
* `user_id` (int64): The id of the user to notify.
|
|
71
68
|
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
|
72
69
|
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
|
73
70
|
* `bundle_id` (int64): Required - Bundle ID to notify on
|
|
71
|
+
* `user_id` (int64): The id of the user to notify.
|
|
74
72
|
|
|
75
73
|
|
|
76
74
|
---
|
data/docs/bundle_recipient.md
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* `note` (string): A note sent to the recipient with the bundle.
|
|
18
18
|
* `recipient` (string): The recipient's email address.
|
|
19
19
|
* `sent_at` (date-time): When the Bundle was shared with this recipient.
|
|
20
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
21
20
|
* `bundle_id` (int64): Bundle to share.
|
|
22
21
|
* `share_after_create` (boolean): Set to true to share the link with the recipient upon creation.
|
|
23
22
|
|
|
@@ -28,7 +27,6 @@
|
|
|
28
27
|
|
|
29
28
|
```
|
|
30
29
|
Files::BundleRecipient.list(
|
|
31
|
-
user_id: 1,
|
|
32
30
|
per_page: 1,
|
|
33
31
|
bundle_id: 1
|
|
34
32
|
)
|
|
@@ -36,7 +34,6 @@ Files::BundleRecipient.list(
|
|
|
36
34
|
|
|
37
35
|
### Parameters
|
|
38
36
|
|
|
39
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
40
37
|
* `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.
|
|
41
38
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
42
39
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
|
@@ -50,7 +47,6 @@ Files::BundleRecipient.list(
|
|
|
50
47
|
|
|
51
48
|
```
|
|
52
49
|
Files::BundleRecipient.create(
|
|
53
|
-
user_id: 1,
|
|
54
50
|
bundle_id: 1,
|
|
55
51
|
recipient: "johndoe@gmail.com",
|
|
56
52
|
name: "John Smith",
|
|
@@ -62,7 +58,6 @@ Files::BundleRecipient.create(
|
|
|
62
58
|
|
|
63
59
|
### Parameters
|
|
64
60
|
|
|
65
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
66
61
|
* `bundle_id` (int64): Required - Bundle to share.
|
|
67
62
|
* `recipient` (string): Required - Email addresses to share this bundle with.
|
|
68
63
|
* `name` (string): Name of recipient.
|
data/docs/bundle_registration.md
CHANGED
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
Files::BundleRegistration.list(
|
|
46
|
-
user_id: 1,
|
|
47
46
|
per_page: 1,
|
|
48
47
|
bundle_id: 1
|
|
49
48
|
)
|
|
@@ -51,7 +50,6 @@ Files::BundleRegistration.list(
|
|
|
51
50
|
|
|
52
51
|
### Parameters
|
|
53
52
|
|
|
54
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
55
53
|
* `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.
|
|
56
54
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
57
55
|
* `bundle_id` (int64): ID of the associated Bundle
|
data/lib/files.com/errors.rb
CHANGED
|
@@ -186,6 +186,8 @@ module Files
|
|
|
186
186
|
class ResourceLockedError < ProcessingFailureError; end
|
|
187
187
|
class SubfolderLockedError < ProcessingFailureError; end
|
|
188
188
|
class TwoFactorAuthenticationCodeAlreadySentError < ProcessingFailureError; end
|
|
189
|
+
class TwoFactorAuthenticationCountryBlacklistedError < ProcessingFailureError; end
|
|
190
|
+
class TwoFactorAuthenticationGeneralErrorError < ProcessingFailureError; end
|
|
189
191
|
class UpdatesNotAllowedForRemotesError < ProcessingFailureError; end
|
|
190
192
|
|
|
191
193
|
class RateLimitedError < APIError; end
|
|
@@ -40,14 +40,12 @@ module Files
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Parameters:
|
|
43
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
44
43
|
# 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.
|
|
45
44
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
46
45
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
|
47
46
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
|
|
48
47
|
# automation_id (required) - int64 - ID of the associated Automation.
|
|
49
48
|
def self.list(params = {}, options = {})
|
|
50
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
51
49
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
52
50
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
53
51
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
@@ -91,13 +91,11 @@ module Files
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Parameters:
|
|
94
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
95
94
|
# 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.
|
|
96
95
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
97
96
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
|
98
97
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
|
99
98
|
def self.list(params = {}, options = {})
|
|
100
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
101
99
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
102
100
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
103
101
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
@@ -129,13 +127,13 @@ module Files
|
|
|
129
127
|
end
|
|
130
128
|
|
|
131
129
|
# Parameters:
|
|
132
|
-
# user_id - int64 - The id of the user to notify.
|
|
133
130
|
# notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
|
134
131
|
# notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
|
135
132
|
# bundle_id (required) - int64 - Bundle ID to notify on
|
|
133
|
+
# user_id - int64 - The id of the user to notify.
|
|
136
134
|
def self.create(params = {}, options = {})
|
|
137
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
138
135
|
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
|
136
|
+
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
139
137
|
raise MissingParameterError.new("Parameter missing: bundle_id") unless params[:bundle_id]
|
|
140
138
|
|
|
141
139
|
response, options = Api.send_request("/bundle_notifications", :post, params, options)
|
|
@@ -54,15 +54,6 @@ module Files
|
|
|
54
54
|
@attributes[:sent_at] = value
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
58
|
-
def user_id
|
|
59
|
-
@attributes[:user_id]
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def user_id=(value)
|
|
63
|
-
@attributes[:user_id] = value
|
|
64
|
-
end
|
|
65
|
-
|
|
66
57
|
# int64 - Bundle to share.
|
|
67
58
|
def bundle_id
|
|
68
59
|
@attributes[:bundle_id]
|
|
@@ -91,14 +82,12 @@ module Files
|
|
|
91
82
|
end
|
|
92
83
|
|
|
93
84
|
# Parameters:
|
|
94
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
95
85
|
# 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.
|
|
96
86
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
97
87
|
# sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
|
98
88
|
# filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
99
89
|
# bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
|
100
90
|
def self.list(params = {}, options = {})
|
|
101
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
102
91
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
103
92
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
104
93
|
raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
|
|
@@ -116,7 +105,6 @@ module Files
|
|
|
116
105
|
end
|
|
117
106
|
|
|
118
107
|
# Parameters:
|
|
119
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
120
108
|
# bundle_id (required) - int64 - Bundle to share.
|
|
121
109
|
# recipient (required) - string - Email addresses to share this bundle with.
|
|
122
110
|
# name - string - Name of recipient.
|
|
@@ -124,7 +112,6 @@ module Files
|
|
|
124
112
|
# note - string - Note to include in email.
|
|
125
113
|
# share_after_create - boolean - Set to true to share the link with the recipient upon creation.
|
|
126
114
|
def self.create(params = {}, options = {})
|
|
127
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
128
115
|
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
|
129
116
|
raise InvalidParameterError.new("Bad parameter: recipient must be an String") if params[:recipient] and !params[:recipient].is_a?(String)
|
|
130
117
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
|
@@ -75,12 +75,10 @@ module Files
|
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# Parameters:
|
|
78
|
-
# user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
79
78
|
# 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.
|
|
80
79
|
# per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
81
80
|
# bundle_id - int64 - ID of the associated Bundle
|
|
82
81
|
def self.list(params = {}, options = {})
|
|
83
|
-
raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
|
|
84
82
|
raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String)
|
|
85
83
|
raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer)
|
|
86
84
|
raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params[:bundle_id] and !params[:bundle_id].is_a?(Integer)
|
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.0.
|
|
4
|
+
version: 1.0.490
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-11-
|
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|