docuseal 1.0.4 → 1.0.5

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: ca5c0906e609ef75ff0f131f22da63bb906bb46fc66081f221913fa4bef43d4d
4
- data.tar.gz: 7c7bc5a38feb904100cbdd1178ddf96c20256d7f62fa181d53b9372cbceef6cb
3
+ metadata.gz: 1e9b3d7380fa34b2bbebaf763768a46e635974bf71b0adc3bf102babbb64d933
4
+ data.tar.gz: 8867b5d70c02f5e40c717b96e70777d85fb4ada5c30280a4883b091b9e31c09e
5
5
  SHA512:
6
- metadata.gz: 0c5e32bccefb205560e84c33670fad28eb03cc7fe3683158dd292ca4516bdbadd0b55ded527d9edb40af204ebcf32a076aacfc5a0f97464b56ebb2a1d26d765d
7
- data.tar.gz: 7c7d65d7f00d11c4b9e8950d744296b98763699b060cada99e45bef76f2f485cd91473f0f5c473934e7bf979c53bb5ae6dfb6b836f6ef09156b4f495fc20fbf8
6
+ metadata.gz: 7a942675afa8810069723c27148d6802de47cac8c3a9bc31f8aaa76c2c427311447ddc1b3e3664898537fba6e21367bda29a69fd548d073ff56958e7e755231e
7
+ data.tar.gz: 4cfafca31fdcfc4d0b51b8f8eb5141b9c0fb44e7cb5302a82450771e1b5e0d8040302275db3726c636beb2edd91bd9c3ccbfbbd13bf7237a3556def14c5588be
data/README.md CHANGED
@@ -123,7 +123,7 @@ Docuseal.create_submission({
123
123
 
124
124
  [Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-pdf)
125
125
 
126
- Provides the functionality to create one-off submission request from a PDF file. Use `{{Field Name;role=Signer1;type=date}}` text tags to define fillable fields in the document. See [https://www.docuseal.com/examples/fieldtags.pdf](https://www.docuseal.com/examples/fieldtags.pdf) for more text tag formats. Or specify the exact pixel coordinates of the document fields using `fields` param.
126
+ Provides the functionality to create one-off submission request from a PDF. Use `{{Field Name;role=Signer1;type=date}}` text tags to define fillable fields in the document. See [https://www.docuseal.com/examples/fieldtags.pdf](https://www.docuseal.com/examples/fieldtags.pdf) for more text tag formats. Or specify the exact pixel coordinates of the document fields using `fields` param.
127
127
 
128
128
  **Related Guides:**<br>
129
129
  [Use embedded text field tags to create a fillable form](https://www.docuseal.com/guides/use-embedded-text-field-tags-in-the-pdf-to-create-a-fillable-form)
@@ -131,7 +131,7 @@ Provides the functionality to create one-off submission request from a PDF file.
131
131
 
132
132
  ```ruby
133
133
  Docuseal.create_submission_from_pdf({
134
- name: "Test PDF",
134
+ name: "Test Submission Document",
135
135
  documents: [
136
136
  {
137
137
  name: "string",
@@ -161,6 +161,37 @@ Docuseal.create_submission_from_pdf({
161
161
  })
162
162
  ```
163
163
 
164
+ ### create_submission_from_docx(data)
165
+
166
+ [Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-docx)
167
+
168
+ Provides functionality to create a one-off submission request from a DOCX file with dynamic content variables. Use `[[variable_name]]` text tags to define dynamic content variables in the document. See [https://www.docuseal.com/examples/demo\_template.docx](https://www.docuseal.com/examples/demo_template.docx) for the specific text variable syntax, including dynamic content tables and list. You can also use the `{{signature}}` fillable field syntax to define fillable fields, as in a PDF.
169
+
170
+ **Related Guides:**<br>
171
+ [Use embedded text field tags to create a fillable form](https://www.docuseal.com/guides/use-embedded-text-field-tags-in-the-pdf-to-create-a-fillable-form)
172
+
173
+
174
+ ```ruby
175
+ Docuseal.create_submission_from_docx({
176
+ name: "Test Submission Document",
177
+ variables: {
178
+ variable_name: "value"
179
+ },
180
+ documents: [
181
+ {
182
+ name: "string",
183
+ file: "base64"
184
+ }
185
+ ],
186
+ submitters: [
187
+ {
188
+ role: "First Party",
189
+ email: "john.doe@example.com"
190
+ }
191
+ ]
192
+ })
193
+ ```
194
+
164
195
  ### create_submission_from_html(data)
165
196
 
166
197
  [Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-html)
@@ -173,7 +204,7 @@ This API endpoint allows you to create a one-off submission request document usi
173
204
 
174
205
  ```ruby
175
206
  Docuseal.create_submission_from_html({
176
- name: "Test PDF",
207
+ name: "Test Submission Document",
177
208
  documents: [
178
209
  {
179
210
  name: "Test Document",
data/lib/docuseal/api.rb CHANGED
@@ -82,6 +82,10 @@ module Docuseal
82
82
  http.post('/submissions/html', data)
83
83
  end
84
84
 
85
+ def create_submission_from_docx(data)
86
+ http.post('/submissions/docx', data)
87
+ end
88
+
85
89
  def archive_submission(id)
86
90
  http.delete("/submissions/#{id}")
87
91
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Docuseal
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docuseal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocuSeal
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-07 00:00:00.000000000 Z
10
+ date: 2025-09-15 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: DocuSeal is a document signing platform. This gem provides a Ruby interface
13
13
  to the DocuSeal API.