docuseal 1.0.3 → 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 +4 -4
- data/README.md +151 -56
- data/lib/docuseal/api.rb +12 -0
- data/lib/docuseal/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: 1e9b3d7380fa34b2bbebaf763768a46e635974bf71b0adc3bf102babbb64d933
|
|
4
|
+
data.tar.gz: 8867b5d70c02f5e40c717b96e70777d85fb4ada5c30280a4883b091b9e31c09e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a942675afa8810069723c27148d6802de47cac8c3a9bc31f8aaa76c2c427311447ddc1b3e3664898537fba6e21367bda29a69fd548d073ff56958e7e755231e
|
|
7
|
+
data.tar.gz: 4cfafca31fdcfc4d0b51b8f8eb5141b9c0fb44e7cb5302a82450771e1b5e0d8040302275db3726c636beb2edd91bd9c3ccbfbbd13bf7237a3556def14c5588be
|
data/README.md
CHANGED
|
@@ -119,17 +119,112 @@ Docuseal.create_submission({
|
|
|
119
119
|
})
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
###
|
|
122
|
+
### create_submission_from_pdf(data)
|
|
123
123
|
|
|
124
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-
|
|
124
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-pdf)
|
|
125
125
|
|
|
126
|
-
|
|
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
|
+
|
|
128
|
+
**Related Guides:**<br>
|
|
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)
|
|
127
130
|
|
|
128
131
|
|
|
129
132
|
```ruby
|
|
130
|
-
Docuseal.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
Docuseal.create_submission_from_pdf({
|
|
134
|
+
name: "Test Submission Document",
|
|
135
|
+
documents: [
|
|
136
|
+
{
|
|
137
|
+
name: "string",
|
|
138
|
+
file: "base64",
|
|
139
|
+
fields: [
|
|
140
|
+
{
|
|
141
|
+
name: "string",
|
|
142
|
+
areas: [
|
|
143
|
+
{
|
|
144
|
+
x: 0,
|
|
145
|
+
y: 0,
|
|
146
|
+
w: 0,
|
|
147
|
+
h: 0,
|
|
148
|
+
page: 1
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
submitters: [
|
|
156
|
+
{
|
|
157
|
+
role: "First Party",
|
|
158
|
+
email: "john.doe@example.com"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
})
|
|
162
|
+
```
|
|
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
|
+
|
|
195
|
+
### create_submission_from_html(data)
|
|
196
|
+
|
|
197
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-html)
|
|
198
|
+
|
|
199
|
+
This API endpoint allows you to create a one-off submission request document using the provided HTML content, with special field tags rendered as a fillable and signable form.
|
|
200
|
+
|
|
201
|
+
**Related Guides:**<br>
|
|
202
|
+
[Create PDF document fillable form with HTML](https://www.docuseal.com/guides/create-pdf-document-fillable-form-with-html-api)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
Docuseal.create_submission_from_html({
|
|
207
|
+
name: "Test Submission Document",
|
|
208
|
+
documents: [
|
|
209
|
+
{
|
|
210
|
+
name: "Test Document",
|
|
211
|
+
html: "<p>Lorem Ipsum is simply dummy text of the
|
|
212
|
+
<text-field
|
|
213
|
+
name=\"Industry\"
|
|
214
|
+
role=\"First Party\"
|
|
215
|
+
required=\"false\"
|
|
216
|
+
style=\"width: 80px; height: 16px; display: inline-block; margin-bottom: -4px\">
|
|
217
|
+
</text-field>
|
|
218
|
+
and typesetting industry</p>
|
|
219
|
+
"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
submitters: [
|
|
223
|
+
{
|
|
224
|
+
role: "First Party",
|
|
225
|
+
email: "john.doe@example.com"
|
|
226
|
+
}
|
|
227
|
+
]
|
|
133
228
|
})
|
|
134
229
|
```
|
|
135
230
|
|
|
@@ -159,7 +254,7 @@ Docuseal.list_submitters(limit: 10)
|
|
|
159
254
|
|
|
160
255
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#get-a-submitter)
|
|
161
256
|
|
|
162
|
-
Provides
|
|
257
|
+
Provides functionality to retrieve information about a submitter, along with the submitter documents and field values.
|
|
163
258
|
|
|
164
259
|
|
|
165
260
|
```ruby
|
|
@@ -210,6 +305,42 @@ Provides the functionality to retrieve information about a document template.
|
|
|
210
305
|
Docuseal.get_template(1000001)
|
|
211
306
|
```
|
|
212
307
|
|
|
308
|
+
### create_template_from_pdf(data)
|
|
309
|
+
|
|
310
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-pdf)
|
|
311
|
+
|
|
312
|
+
Provides the functionality to create a fillable document template for 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.
|
|
313
|
+
|
|
314
|
+
**Related Guides:**<br>
|
|
315
|
+
[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)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
```ruby
|
|
319
|
+
Docuseal.create_template_from_pdf({
|
|
320
|
+
name: "Test PDF",
|
|
321
|
+
documents: [
|
|
322
|
+
{
|
|
323
|
+
name: "string",
|
|
324
|
+
file: "base64",
|
|
325
|
+
fields: [
|
|
326
|
+
{
|
|
327
|
+
name: "string",
|
|
328
|
+
areas: [
|
|
329
|
+
{
|
|
330
|
+
x: 0,
|
|
331
|
+
y: 0,
|
|
332
|
+
w: 0,
|
|
333
|
+
h: 0,
|
|
334
|
+
page: 1
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
})
|
|
342
|
+
```
|
|
343
|
+
|
|
213
344
|
### create_template_from_docx(data)
|
|
214
345
|
|
|
215
346
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-word-docx)
|
|
@@ -257,6 +388,19 @@ and typesetting industry</p>
|
|
|
257
388
|
})
|
|
258
389
|
```
|
|
259
390
|
|
|
391
|
+
### clone_template(id, data)
|
|
392
|
+
|
|
393
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#clone-a-template)
|
|
394
|
+
|
|
395
|
+
Allows you to clone existing template into a new template.
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
```ruby
|
|
399
|
+
Docuseal.clone_template(1000001, {
|
|
400
|
+
name: "Cloned Template"
|
|
401
|
+
})
|
|
402
|
+
```
|
|
403
|
+
|
|
260
404
|
### merge_templates(data)
|
|
261
405
|
|
|
262
406
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#merge-templates)
|
|
@@ -274,55 +418,6 @@ Docuseal.merge_templates({
|
|
|
274
418
|
})
|
|
275
419
|
```
|
|
276
420
|
|
|
277
|
-
### create_template_from_pdf(data)
|
|
278
|
-
|
|
279
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-existing-pdf)
|
|
280
|
-
|
|
281
|
-
Provides the functionality to create a fillable document template for existing 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.
|
|
282
|
-
|
|
283
|
-
**Related Guides:**<br>
|
|
284
|
-
[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)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
```ruby
|
|
288
|
-
Docuseal.create_template_from_pdf({
|
|
289
|
-
name: "Test PDF",
|
|
290
|
-
documents: [
|
|
291
|
-
{
|
|
292
|
-
name: "string",
|
|
293
|
-
file: "base64",
|
|
294
|
-
fields: [
|
|
295
|
-
{
|
|
296
|
-
name: "string",
|
|
297
|
-
areas: [
|
|
298
|
-
{
|
|
299
|
-
x: 0,
|
|
300
|
-
y: 0,
|
|
301
|
-
w: 0,
|
|
302
|
-
h: 0,
|
|
303
|
-
page: 1
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
})
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### clone_template(id, data)
|
|
314
|
-
|
|
315
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#clone-a-template)
|
|
316
|
-
|
|
317
|
-
Allows you to clone existing template into a new template.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
```ruby
|
|
321
|
-
Docuseal.clone_template(1000001, {
|
|
322
|
-
name: "Cloned Template"
|
|
323
|
-
})
|
|
324
|
-
```
|
|
325
|
-
|
|
326
421
|
### update_template(id, data)
|
|
327
422
|
|
|
328
423
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#update-a-template)
|
data/lib/docuseal/api.rb
CHANGED
|
@@ -74,6 +74,18 @@ module Docuseal
|
|
|
74
74
|
http.post('/submissions/emails', data)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
def create_submission_from_pdf(data)
|
|
78
|
+
http.post('/submissions/pdf', data)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def create_submission_from_html(data)
|
|
82
|
+
http.post('/submissions/html', data)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def create_submission_from_docx(data)
|
|
86
|
+
http.post('/submissions/docx', data)
|
|
87
|
+
end
|
|
88
|
+
|
|
77
89
|
def archive_submission(id)
|
|
78
90
|
http.delete("/submissions/#{id}")
|
|
79
91
|
end
|
data/lib/docuseal/version.rb
CHANGED
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
|
+
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-
|
|
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.
|