files.com 1.0.371 → 1.0.372

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: 348826686f4e73d70963833b1e3028a242e17e18690d57304f5b7f8b2ee0099a
4
+ data.tar.gz: 8594fcade4dc973eafc86b3fad2a2dd0d5b592fc86f46ab83b4bf033719362d2
5
5
  SHA512:
6
- metadata.gz: 8cd726b632441a2899cde0be800fdc86f11559420a59d455a1bdf985ea2fa0010e761e2ede3a24578bdd8292d9f114da34915e0f88d555da951ee52bd9aa0aba
7
- data.tar.gz: 23e0abdef92a20a351d2ff3f42986acabe310e13b7c8dc1f8ddd063dcaa126c9ec11c256e533e14a112635269547abf058223022de30b2c01c2f742a9775515e
6
+ metadata.gz: 03ba9d1da03c5700234edc01ad53cf77a07b4028822686a9da8747156dd325fbf14f5be7fb57b42be74ea94550ceef083e83472f555d7aafdb9bedc7d2089f3a
7
+ data.tar.gz: 50f8633cb517ed43121d2921fc5d2adc4ff7fff6b9e064f7d95638a6aaf431507c5d09271af524a885ad8e087827bcc5fa07def2b4a162e40b2ba0b14a41ab58
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.371
1
+ 1.0.372
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
 
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]
@@ -542,6 +551,7 @@ module Files
542
551
  # skip_email - boolean - BundleRegistrations can be saved without providing email?
543
552
  # skip_name - boolean - BundleRegistrations can be saved without providing name?
544
553
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
554
+ # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
545
555
  # snapshot_id - int64 - ID of the snapshot containing this bundle's contents.
546
556
  # watermark_attachment_file - file - Preview watermark image applied to all bundle items.
547
557
  def self.create(params = {}, options = {})
@@ -558,6 +568,7 @@ module Files
558
568
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
559
569
  raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
560
570
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
571
+ 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
572
  raise InvalidParameterError.new("Bad parameter: snapshot_id must be an Integer") if params[:snapshot_id] and !params[:snapshot_id].is_a?(Integer)
562
573
  raise MissingParameterError.new("Parameter missing: paths") unless params[:paths]
563
574
 
@@ -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.372
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-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable