docspring 4.4.0 → 4.5.0

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +6 -0
  3. data/AGENTS.md +2 -0
  4. data/CHANGELOG.md +15 -0
  5. data/Gemfile.lock +10 -10
  6. data/LICENSE +1 -1
  7. data/README.md +4 -1
  8. data/docs/Client.md +98 -96
  9. data/docs/CreateSubmissionRequest.md +3 -3
  10. data/docs/CreateTemplateRequest.md +11 -3
  11. data/docs/ErrorInfo.md +7 -3
  12. data/docs/HtmlEngineOptions.md +4 -4
  13. data/docs/HtmlEngineOptionsInput.md +4 -4
  14. data/docs/SubmissionInput.md +1 -1
  15. data/docs/Template.md +10 -2
  16. data/docs/TemplateFormSection.md +24 -0
  17. data/docs/TemplateFormSectionInput.md +24 -0
  18. data/docs/UpdateTemplateRequest.md +10 -2
  19. data/docs/ValidateSubmissionRequest.md +3 -3
  20. data/lib/docspring/api/client.rb +99 -96
  21. data/lib/docspring/api_client.rb +1 -1
  22. data/lib/docspring/models/create_submission_request.rb +3 -3
  23. data/lib/docspring/models/create_template_request.rb +48 -6
  24. data/lib/docspring/models/error_info.rb +26 -6
  25. data/lib/docspring/models/html_engine_options.rb +4 -4
  26. data/lib/docspring/models/html_engine_options_input.rb +4 -4
  27. data/lib/docspring/models/submission_input.rb +1 -1
  28. data/lib/docspring/models/template.rb +85 -3
  29. data/lib/docspring/models/template_form_section.rb +254 -0
  30. data/lib/docspring/models/template_form_section_input.rb +252 -0
  31. data/lib/docspring/models/update_template_request.rb +47 -3
  32. data/lib/docspring/models/validate_submission_request.rb +3 -3
  33. data/lib/docspring/request_schemas.json +84 -10
  34. data/lib/docspring/version.rb +1 -1
  35. data/lib/docspring.rb +2 -0
  36. data/spec/api/client_spec.rb +49 -48
  37. data/spec/models/create_template_request_spec.rb +24 -0
  38. data/spec/models/error_info_spec.rb +12 -0
  39. data/spec/models/template_form_section_input_spec.rb +54 -0
  40. data/spec/models/template_form_section_spec.rb +54 -0
  41. data/spec/models/template_spec.rb +24 -0
  42. data/spec/models/update_template_request_spec.rb +24 -0
  43. metadata +9 -1
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::TemplateFormSectionInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe DocSpring::TemplateFormSectionInput do
21
+ #let(:instance) { DocSpring::TemplateFormSectionInput.new }
22
+
23
+ describe 'test an instance of TemplateFormSectionInput' do
24
+ it 'should create an instance of TemplateFormSectionInput' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(DocSpring::TemplateFormSectionInput)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "title"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "description"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "field_ids"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::TemplateFormSection
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe DocSpring::TemplateFormSection do
21
+ #let(:instance) { DocSpring::TemplateFormSection.new }
22
+
23
+ describe 'test an instance of TemplateFormSection' do
24
+ it 'should create an instance of TemplateFormSection' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(DocSpring::TemplateFormSection)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "title"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "description"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "field_ids"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -285,6 +285,24 @@ describe DocSpring::Template do
285
285
  end
286
286
  end
287
287
 
288
+ describe 'test attribute "success_title"' do
289
+ it 'should work' do
290
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
291
+ end
292
+ end
293
+
294
+ describe 'test attribute "success_message"' do
295
+ it 'should work' do
296
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
297
+ end
298
+ end
299
+
300
+ describe 'test attribute "show_fill_again_button"' do
301
+ it 'should work' do
302
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
303
+ end
304
+ end
305
+
288
306
  describe 'test attribute "has_slack_webhook_url"' do
289
307
  it 'should work' do
290
308
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -315,6 +333,12 @@ describe DocSpring::Template do
315
333
  end
316
334
  end
317
335
 
336
+ describe 'test attribute "form_sections"' do
337
+ it 'should work' do
338
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
339
+ end
340
+ end
341
+
318
342
  describe 'test attribute "predefined_fields"' do
319
343
  it 'should work' do
320
344
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -219,6 +219,24 @@ describe DocSpring::UpdateTemplateRequest do
219
219
  end
220
220
  end
221
221
 
222
+ describe 'test attribute "success_title"' do
223
+ it 'should work' do
224
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
225
+ end
226
+ end
227
+
228
+ describe 'test attribute "success_message"' do
229
+ it 'should work' do
230
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
231
+ end
232
+ end
233
+
234
+ describe 'test attribute "show_fill_again_button"' do
235
+ it 'should work' do
236
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
237
+ end
238
+ end
239
+
222
240
  describe 'test attribute "slack_webhook_url"' do
223
241
  it 'should work' do
224
242
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -243,6 +261,12 @@ describe DocSpring::UpdateTemplateRequest do
243
261
  end
244
262
  end
245
263
 
264
+ describe 'test attribute "form_sections"' do
265
+ it 'should work' do
266
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
267
+ end
268
+ end
269
+
246
270
  describe 'test attribute "predefined_fields"' do
247
271
  it 'should work' do
248
272
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocSpring
@@ -240,6 +240,8 @@ files:
240
240
  - docs/TemplateFieldMove.md
241
241
  - docs/TemplateFields.md
242
242
  - docs/TemplateFormMode.md
243
+ - docs/TemplateFormSection.md
244
+ - docs/TemplateFormSectionInput.md
243
245
  - docs/TemplateModelCode.md
244
246
  - docs/TemplatePageAiError.md
245
247
  - docs/TemplatePageAiNamingStatus.md
@@ -438,6 +440,8 @@ files:
438
440
  - lib/docspring/models/template_field_move.rb
439
441
  - lib/docspring/models/template_fields.rb
440
442
  - lib/docspring/models/template_form_mode.rb
443
+ - lib/docspring/models/template_form_section.rb
444
+ - lib/docspring/models/template_form_section_input.rb
441
445
  - lib/docspring/models/template_model_code.rb
442
446
  - lib/docspring/models/template_page_ai_error.rb
443
447
  - lib/docspring/models/template_page_ai_naming_status.rb
@@ -631,6 +635,8 @@ files:
631
635
  - spec/models/template_field_move_spec.rb
632
636
  - spec/models/template_fields_spec.rb
633
637
  - spec/models/template_form_mode_spec.rb
638
+ - spec/models/template_form_section_input_spec.rb
639
+ - spec/models/template_form_section_spec.rb
634
640
  - spec/models/template_model_code_spec.rb
635
641
  - spec/models/template_page_ai_error_spec.rb
636
642
  - spec/models/template_page_ai_naming_status_spec.rb
@@ -844,6 +850,8 @@ test_files:
844
850
  - spec/models/template_field_move_spec.rb
845
851
  - spec/models/template_fields_spec.rb
846
852
  - spec/models/template_form_mode_spec.rb
853
+ - spec/models/template_form_section_input_spec.rb
854
+ - spec/models/template_form_section_spec.rb
847
855
  - spec/models/template_model_code_spec.rb
848
856
  - spec/models/template_page_ai_error_spec.rb
849
857
  - spec/models/template_page_ai_naming_status_spec.rb