files.com 1.0.152 → 1.0.157

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: 80890845ebda55975f177b54c85c82f1ed106086e750eded6907488daf879cce
4
- data.tar.gz: bf99ca9501f9813393e23dba23a54acdedaf70528f6d24bc3fa6a94adcda7757
3
+ metadata.gz: b0e2eda4242ae65c148cd2ee69e2871bdd647c63ee349d0866ec5726611021f7
4
+ data.tar.gz: 73ba063ec212d51ed014ce83e468027ec82aaa06c9a28e93a93c4cc1d8d9bf60
5
5
  SHA512:
6
- metadata.gz: 9cc02ddb3685c4ccb7c980ba891f171c354dfd0f122fd2779d02d7259bd7a96b661a84f01e06e617d8637475c4daa35b4513795a58b0f9a269f3f2f782fbd6a3
7
- data.tar.gz: 5c499037e94937095e8a52b0811398a341b81dd8f3cbd33ed7345b30028403060043faea5692be969388d1923a3c8ff1d34f1ff03c122684fcebe5cfb0b3e8cc
6
+ metadata.gz: 75692aadbde4b0b91b6530f1bd961219d9f450eb704c08fbd8317635fe7aaa7d1898863898c97664e8c79cb61fae29a5afbdeea260347fbcec4a025a2af6d5b7
7
+ data.tar.gz: 482a93a97bdb177af3597e3143d30b1d8fc0be92ab91245954ed5b307084daafaba0419d6ad35231762126fec66f15cfc3d1a7dc3b8264a138938ce235c8206c
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.152
1
+ 1.0.157
data/docs/api_key.md CHANGED
@@ -61,17 +61,9 @@ Files::ApiKey.list(
61
61
  ## Show information about current API key. (Requires current API connection to be using an API key.)
62
62
 
63
63
  ```
64
- Files::ApiKey.find_current(
65
- format: "",
66
- api_key: ""
67
- )
64
+ Files::ApiKey.find_current
68
65
  ```
69
66
 
70
- ### Parameters
71
-
72
- * `format` (string):
73
- * `api_key` (object):
74
-
75
67
 
76
68
  ---
77
69
 
@@ -153,17 +145,9 @@ Files::ApiKey.update(id,
153
145
  ## Delete current API key. (Requires current API connection to be using an API key.)
154
146
 
155
147
  ```
156
- Files::ApiKey.delete_current(
157
- format: "",
158
- api_key: ""
159
- )
148
+ Files::ApiKey.delete_current
160
149
  ```
161
150
 
162
- ### Parameters
163
-
164
- * `format` (string):
165
- * `api_key` (object):
166
-
167
151
 
168
152
  ---
169
153
 
data/docs/bundle.md CHANGED
@@ -171,9 +171,9 @@ Files::Bundle.share(id,
171
171
  ### Parameters
172
172
 
173
173
  * `id` (int64): Required - Bundle ID.
174
- * `to` (array(string)): Required - A list of email addresses to share this bundle with.
174
+ * `to` (array(string)): A list of email addresses to share this bundle with. Required unless `recipients` is used.
175
175
  * `note` (string): Note to include in email.
176
- * `recipients` (array(object)): A list of recipients to share this bundle with.
176
+ * `recipients` (array(object)): A list of recipients to share this bundle with. Required unless `to` is used.
177
177
 
178
178
 
179
179
  ---
@@ -244,9 +244,9 @@ bundle.share(
244
244
  ### Parameters
245
245
 
246
246
  * `id` (int64): Required - Bundle ID.
247
- * `to` (array(string)): Required - A list of email addresses to share this bundle with.
247
+ * `to` (array(string)): A list of email addresses to share this bundle with. Required unless `recipients` is used.
248
248
  * `note` (string): Note to include in email.
249
- * `recipients` (array(object)): A list of recipients to share this bundle with.
249
+ * `recipients` (array(object)): A list of recipients to share this bundle with. Required unless `to` is used.
250
250
 
251
251
 
252
252
  ---
@@ -33,5 +33,12 @@ Files::BundleDownload.list(
33
33
 
34
34
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
35
35
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
36
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at`.
37
+ * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
38
+ * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`.
39
+ * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`.
40
+ * `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
41
+ * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`.
42
+ * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`.
36
43
  * `bundle_id` (int64): Bundle ID
37
44
  * `bundle_registration_id` (int64): BundleRegistration ID
@@ -69,7 +69,7 @@ Files::InboxRecipient.create(
69
69
 
70
70
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
71
71
  * `inbox_id` (int64): Required - Inbox to share.
72
- * `recipient` (string): Required - Email addresses to share this inbox with.
72
+ * `recipient` (string): Required - Email address to share this inbox with.
73
73
  * `name` (string): Name of recipient.
74
74
  * `company` (string): Company of recipient.
75
75
  * `note` (string): Note to include in email.
data/docs/inbox_upload.md CHANGED
@@ -31,5 +31,12 @@ Files::InboxUpload.list(
31
31
 
32
32
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
33
33
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at`.
35
+ * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
36
+ * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`.
37
+ * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`.
38
+ * `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
39
+ * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`.
40
+ * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`.
34
41
  * `inbox_registration_id` (int64): InboxRegistration ID
35
42
  * `inbox_id` (int64): Inbox ID
data/docs/session.md CHANGED
@@ -74,13 +74,5 @@ Files::Session.create(
74
74
  ## Delete user session (log out)
75
75
 
76
76
  ```
77
- Files::Session.delete(
78
- format: "",
79
- session: ""
80
- )
77
+ Files::Session.delete
81
78
  ```
82
-
83
- ### Parameters
84
-
85
- * `format` (string):
86
- * `session` (object):
data/docs/site.md CHANGED
@@ -324,34 +324,18 @@
324
324
  ## Show site settings
325
325
 
326
326
  ```
327
- Files::Site.get(
328
- format: "",
329
- site: ""
330
- )
327
+ Files::Site.get
331
328
  ```
332
329
 
333
- ### Parameters
334
-
335
- * `format` (string):
336
- * `site` (object):
337
-
338
330
 
339
331
  ---
340
332
 
341
333
  ## Get the most recent usage snapshot (usage data for billing purposes) for a Site
342
334
 
343
335
  ```
344
- Files::Site.get_usage(
345
- format: "",
346
- site: ""
347
- )
336
+ Files::Site.get_usage
348
337
  ```
349
338
 
350
- ### Parameters
351
-
352
- * `format` (string):
353
- * `site` (object):
354
-
355
339
 
356
340
  ---
357
341
 
@@ -175,6 +175,7 @@ module Files
175
175
  class ModelSaveErrorError < ProcessingFailureError; end
176
176
  class MultipartUploadsRequiredForRemotesError < ProcessingFailureError; end
177
177
  class MultipleProcessingErrorsError < ProcessingFailureError; end
178
+ class RecipientAlreadySharedError < ProcessingFailureError; end
178
179
  class RemoteServerErrorError < ProcessingFailureError; end
179
180
  class ResourceLockedError < ProcessingFailureError; end
180
181
  class SubfolderLockedError < ProcessingFailureError; end
@@ -176,13 +176,7 @@ module Files
176
176
  list(params, options)
177
177
  end
178
178
 
179
- # Parameters:
180
- # format - string
181
- # api_key - object
182
179
  def self.find_current(params = {}, options = {})
183
- raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
184
- raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
185
-
186
180
  response, options = Api.send_request("/api_key", :get, params, options)
187
181
  ApiKey.new(response.data, options)
188
182
  end
@@ -250,13 +244,7 @@ module Files
250
244
  ApiKey.new(response.data, options)
251
245
  end
252
246
 
253
- # Parameters:
254
- # format - string
255
- # api_key - object
256
247
  def self.delete_current(params = {}, options = {})
257
- raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
258
- raise InvalidParameterError.new("Bad parameter: api_key must be an Hash") if params.dig(:api_key) and !params.dig(:api_key).is_a?(Hash)
259
-
260
248
  response, _options = Api.send_request("/api_key", :delete, params, options)
261
249
  response.data
262
250
  end
@@ -197,9 +197,9 @@ module Files
197
197
  # Send email(s) with a link to bundle
198
198
  #
199
199
  # Parameters:
200
- # to (required) - array(string) - A list of email addresses to share this bundle with.
200
+ # to - array(string) - A list of email addresses to share this bundle with. Required unless `recipients` is used.
201
201
  # note - string - Note to include in email.
202
- # recipients - array(object) - A list of recipients to share this bundle with.
202
+ # recipients - array(object) - A list of recipients to share this bundle with. Required unless `to` is used.
203
203
  def share(params = {})
204
204
  params ||= {}
205
205
  params[:id] = @attributes[:id]
@@ -209,7 +209,6 @@ module Files
209
209
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
210
210
  raise InvalidParameterError.new("Bad parameter: recipients must be an Array") if params.dig(:recipients) and !params.dig(:recipients).is_a?(Array)
211
211
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
212
- raise MissingParameterError.new("Parameter missing: to") unless params.dig(:to)
213
212
 
214
213
  Api.send_request("/bundles/#{@attributes[:id]}/share", :post, params, @options)
215
214
  end
@@ -353,9 +352,9 @@ module Files
353
352
  # Send email(s) with a link to bundle
354
353
  #
355
354
  # Parameters:
356
- # to (required) - array(string) - A list of email addresses to share this bundle with.
355
+ # to - array(string) - A list of email addresses to share this bundle with. Required unless `recipients` is used.
357
356
  # note - string - Note to include in email.
358
- # recipients - array(object) - A list of recipients to share this bundle with.
357
+ # recipients - array(object) - A list of recipients to share this bundle with. Required unless `to` is used.
359
358
  def self.share(id, params = {}, options = {})
360
359
  params ||= {}
361
360
  params[:id] = id
@@ -364,7 +363,6 @@ module Files
364
363
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params.dig(:note) and !params.dig(:note).is_a?(String)
365
364
  raise InvalidParameterError.new("Bad parameter: recipients must be an Array") if params.dig(:recipients) and !params.dig(:recipients).is_a?(Array)
366
365
  raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
367
- raise MissingParameterError.new("Parameter missing: to") unless params.dig(:to)
368
366
 
369
367
  response, _options = Api.send_request("/bundles/#{params[:id]}/share", :post, params, options)
370
368
  response.data
@@ -31,11 +31,25 @@ module Files
31
31
  # Parameters:
32
32
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
33
33
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
34
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at`.
35
+ # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
36
+ # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`.
37
+ # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`.
38
+ # filter_like - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
39
+ # filter_lt - object - If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`.
40
+ # filter_lteq - object - If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`.
34
41
  # bundle_id - int64 - Bundle ID
35
42
  # bundle_registration_id - int64 - BundleRegistration ID
36
43
  def self.list(params = {}, options = {})
37
44
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
38
45
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
46
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
47
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
48
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
49
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
50
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
51
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
52
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
39
53
  raise InvalidParameterError.new("Bad parameter: bundle_id must be an Integer") if params.dig(:bundle_id) and !params.dig(:bundle_id).is_a?(Integer)
40
54
  raise InvalidParameterError.new("Bad parameter: bundle_registration_id must be an Integer") if params.dig(:bundle_registration_id) and !params.dig(:bundle_registration_id).is_a?(Integer)
41
55
 
@@ -128,7 +128,7 @@ module Files
128
128
  # Parameters:
129
129
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
130
130
  # inbox_id (required) - int64 - Inbox to share.
131
- # recipient (required) - string - Email addresses to share this inbox with.
131
+ # recipient (required) - string - Email address to share this inbox with.
132
132
  # name - string - Name of recipient.
133
133
  # company - string - Company of recipient.
134
134
  # note - string - Note to include in email.
@@ -26,11 +26,25 @@ module Files
26
26
  # Parameters:
27
27
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
28
28
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
29
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at`.
30
+ # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
31
+ # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`.
32
+ # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`.
33
+ # filter_like - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`.
34
+ # filter_lt - object - If set, return records where the specifiied field is less than the supplied value. Valid fields are `created_at`.
35
+ # filter_lteq - object - If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `created_at`.
29
36
  # inbox_registration_id - int64 - InboxRegistration ID
30
37
  # inbox_id - int64 - Inbox ID
31
38
  def self.list(params = {}, options = {})
32
39
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
33
40
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
41
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
42
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
43
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
44
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
45
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
46
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
47
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
34
48
  raise InvalidParameterError.new("Bad parameter: inbox_registration_id must be an Integer") if params.dig(:inbox_registration_id) and !params.dig(:inbox_registration_id).is_a?(Integer)
35
49
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params.dig(:inbox_id) and !params.dig(:inbox_id).is_a?(Integer)
36
50
 
@@ -235,13 +235,7 @@ module Files
235
235
  Session.new(response.data, options)
236
236
  end
237
237
 
238
- # Parameters:
239
- # format - string
240
- # session - object
241
238
  def self.delete(params = {}, options = {})
242
- raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
243
- raise InvalidParameterError.new("Bad parameter: session must be an Hash") if params.dig(:session) and !params.dig(:session).is_a?(Hash)
244
-
245
239
  response, _options = Api.send_request("/sessions", :delete, params, options)
246
240
  response.data
247
241
  end
@@ -574,24 +574,12 @@ module Files
574
574
  @attributes[:disable_users_from_inactivity_period_days]
575
575
  end
576
576
 
577
- # Parameters:
578
- # format - string
579
- # site - object
580
577
  def self.get(params = {}, options = {})
581
- raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
582
- raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
583
-
584
578
  response, options = Api.send_request("/site", :get, params, options)
585
579
  Site.new(response.data, options)
586
580
  end
587
581
 
588
- # Parameters:
589
- # format - string
590
- # site - object
591
582
  def self.get_usage(params = {}, options = {})
592
- raise InvalidParameterError.new("Bad parameter: format must be an String") if params.dig(:format) and !params.dig(:format).is_a?(String)
593
- raise InvalidParameterError.new("Bad parameter: site must be an Hash") if params.dig(:site) and !params.dig(:site).is_a?(Hash)
594
-
595
583
  response, options = Api.send_request("/site/usage", :get, params, options)
596
584
  UsageSnapshot.new(response.data, options)
597
585
  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.0.152
4
+ version: 1.0.157
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable