files.com 1.0.371 → 1.0.373

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: '0811bbd05ab1828ae8a62a6439f3133e269c36996ef927ca24602c81333ff4a1'
4
- data.tar.gz: fcd74ccaab330bc3d53cdf2d8e76a34667f84e6041c0a8a8e4e860f7a10e5209
3
+ metadata.gz: f192c836733abf6ec6a9e3c9fbb1243f0fd16ed0b43dc021e92a12b08c765fce
4
+ data.tar.gz: 8c7f2b3bbbd7950fb61d796da4aa01029f3feb48b8d9e239cabad1ae21750992
5
5
  SHA512:
6
- metadata.gz: 8cd726b632441a2899cde0be800fdc86f11559420a59d455a1bdf985ea2fa0010e761e2ede3a24578bdd8292d9f114da34915e0f88d555da951ee52bd9aa0aba
7
- data.tar.gz: 23e0abdef92a20a351d2ff3f42986acabe310e13b7c8dc1f8ddd063dcaa126c9ec11c256e533e14a112635269547abf058223022de30b2c01c2f742a9775515e
6
+ metadata.gz: 4abb33af8e647a6d7be2660787a078e663706e3b5d8fde4199b01217762bd5b1192c3eff8b39888d7fd132e96445d2d5ebe69e03090a20b34a9eeba75b9fac29
7
+ data.tar.gz: 31e2cf0f8fb5b4cc3b0f28ea58badef7d358f1873b50010618f2de35a024871005c86c08c795c0b4bf353fc33b7805f485de50729ed871ef0ff31b98478ac287
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.371
1
+ 1.0.373
data/docs/bundle.md CHANGED
@@ -38,6 +38,7 @@
38
38
  },
39
39
  "skip_name": true,
40
40
  "skip_email": true,
41
+ "start_access_on_date": "2000-01-01T01:00:00Z",
41
42
  "skip_company": true,
42
43
  "id": 1,
43
44
  "created_at": "2000-01-01T01:00:00Z",
@@ -81,6 +82,7 @@
81
82
  * `form_field_set` (FormFieldSet): Custom Form to use
82
83
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
83
84
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
85
+ * `start_access_on_date` (date-time): Date when share will start to be accessible. If `nil` access granted right after create.
84
86
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
85
87
  * `id` (int64): Bundle ID
86
88
  * `created_at` (date-time): Bundle created at date/time
@@ -172,6 +174,7 @@ Files::Bundle.create(
172
174
  skip_email: true,
173
175
  skip_name: true,
174
176
  skip_company: true,
177
+ start_access_on_date: "2000-01-01T01:00:00Z",
175
178
  snapshot_id: 1
176
179
  )
177
180
  ```
@@ -201,6 +204,7 @@ Files::Bundle.create(
201
204
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
202
205
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
203
206
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
207
+ * `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
204
208
  * `snapshot_id` (int64): ID of the snapshot containing this bundle's contents.
205
209
  * `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
206
210
 
@@ -251,6 +255,7 @@ Files::Bundle.update(id,
251
255
  require_share_recipient: true,
252
256
  send_email_receipt_to_uploader: true,
253
257
  skip_company: true,
258
+ start_access_on_date: "2000-01-01T01:00:00Z",
254
259
  skip_email: true,
255
260
  skip_name: true,
256
261
  watermark_attachment_delete: true
@@ -280,6 +285,7 @@ Files::Bundle.update(id,
280
285
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
281
286
  * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
282
287
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
288
+ * `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
283
289
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
284
290
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
285
291
  * `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
@@ -349,6 +355,7 @@ bundle.update(
349
355
  require_share_recipient: true,
350
356
  send_email_receipt_to_uploader: true,
351
357
  skip_company: true,
358
+ start_access_on_date: "2000-01-01T01:00:00Z",
352
359
  skip_email: true,
353
360
  skip_name: true,
354
361
  watermark_attachment_delete: true
@@ -378,6 +385,7 @@ bundle.update(
378
385
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
379
386
  * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
380
387
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
388
+ * `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
381
389
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
382
390
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
383
391
  * `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
data/docs/site.md CHANGED
@@ -20,6 +20,7 @@
20
20
  "bundle_expiration": 1,
21
21
  "bundle_password_required": true,
22
22
  "bundle_registration_notifications": "never",
23
+ "bundle_require_registration": true,
23
24
  "bundle_require_share_recipient": true,
24
25
  "bundle_upload_receipt_notifications": "never",
25
26
  "bundle_watermark_attachment": null,
@@ -237,6 +238,7 @@
237
238
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
238
239
  * `bundle_password_required` (boolean): Do Bundles require password protection?
239
240
  * `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
241
+ * `bundle_require_registration` (boolean): Do Bundles require registration?
240
242
  * `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
241
243
  * `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
242
244
  * `bundle_watermark_attachment` (Image): Preview watermark image applied to all bundle items.
@@ -451,6 +453,7 @@ Files::Site.update(
451
453
  immutable_files: true,
452
454
  session_pinned_by_ip: true,
453
455
  bundle_password_required: true,
456
+ bundle_require_registration: true,
454
457
  bundle_require_share_recipient: true,
455
458
  bundle_registration_notifications: "never",
456
459
  bundle_activity_notifications: "never",
@@ -583,6 +586,7 @@ Files::Site.update(
583
586
  * `immutable_files` (boolean): Are files protected from modification?
584
587
  * `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
585
588
  * `bundle_password_required` (boolean): Do Bundles require password protection?
589
+ * `bundle_require_registration` (boolean): Do Bundles require registration?
586
590
  * `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
587
591
  * `bundle_registration_notifications` (string): Do Bundle owners receive registration notification?
588
592
  * `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
@@ -180,6 +180,15 @@ module Files
180
180
  @attributes[:skip_email] = value
181
181
  end
182
182
 
183
+ # date-time - Date when share will start to be accessible. If `nil` access granted right after create.
184
+ def start_access_on_date
185
+ @attributes[:start_access_on_date]
186
+ end
187
+
188
+ def start_access_on_date=(value)
189
+ @attributes[:start_access_on_date] = value
190
+ end
191
+
183
192
  # boolean - BundleRegistrations can be saved without providing company?
184
193
  def skip_company
185
194
  @attributes[:skip_company]
@@ -423,6 +432,7 @@ module Files
423
432
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
424
433
  # send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
425
434
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
435
+ # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
426
436
  # skip_email - boolean - BundleRegistrations can be saved without providing email?
427
437
  # skip_name - boolean - BundleRegistrations can be saved without providing name?
428
438
  # watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
@@ -444,6 +454,7 @@ module Files
444
454
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
445
455
  raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
446
456
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
457
+ 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)
447
458
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
448
459
 
449
460
  Api.send_request("/bundles/#{@attributes[:id]}", :patch, params, @options)
@@ -542,6 +553,7 @@ module Files
542
553
  # skip_email - boolean - BundleRegistrations can be saved without providing email?
543
554
  # skip_name - boolean - BundleRegistrations can be saved without providing name?
544
555
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
556
+ # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
545
557
  # snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
546
558
  # watermark_attachment_file - file - Preview watermark image applied to all bundle items.
547
559
  def self.create(params = {}, options = {})
@@ -558,6 +570,7 @@ module Files
558
570
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
559
571
  raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
560
572
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
573
+ 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)
561
574
  raise InvalidParameterError.new("Bad parameter: snapshot_id must be an Integer") if params[:snapshot_id] and !params[:snapshot_id].is_a?(Integer)
562
575
  raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
563
576
 
@@ -605,6 +618,7 @@ module Files
605
618
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
606
619
  # send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
607
620
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
621
+ # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
608
622
  # skip_email - boolean - BundleRegistrations can be saved without providing email?
609
623
  # skip_name - boolean - BundleRegistrations can be saved without providing name?
610
624
  # watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
@@ -625,6 +639,7 @@ module Files
625
639
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
626
640
  raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
627
641
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
642
+ 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)
628
643
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
629
644
 
630
645
  response, options = Api.send_request("/bundles/#{params[:id]}", :patch, params, options)
@@ -89,6 +89,11 @@ module Files
89
89
  @attributes[:bundle_registration_notifications]
90
90
  end
91
91
 
92
+ # boolean - Do Bundles require registration?
93
+ def bundle_require_registration
94
+ @attributes[:bundle_require_registration]
95
+ end
96
+
92
97
  # boolean - Do Bundles require recipients for sharing?
93
98
  def bundle_require_share_recipient
94
99
  @attributes[:bundle_require_share_recipient]
@@ -800,6 +805,7 @@ module Files
800
805
  # immutable_files - boolean - Are files protected from modification?
801
806
  # session_pinned_by_ip - boolean - Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
802
807
  # bundle_password_required - boolean - Do Bundles require password protection?
808
+ # bundle_require_registration - boolean - Do Bundles require registration?
803
809
  # bundle_require_share_recipient - boolean - Do Bundles require recipients for sharing?
804
810
  # bundle_registration_notifications - string - Do Bundle owners receive registration notification?
805
811
  # bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
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.371
4
+ version: 1.0.373
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-07-19 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable