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
@@ -1843,8 +1843,7 @@
1843
1843
  "type": [
1844
1844
  "string",
1845
1845
  "null"
1846
- ],
1847
- "format": "uri"
1846
+ ]
1848
1847
  },
1849
1848
  "signature_request_email_attachments": {
1850
1849
  "type": [
@@ -1894,6 +1893,23 @@
1894
1893
  ],
1895
1894
  "maxLength": 2048
1896
1895
  },
1896
+ "success_title": {
1897
+ "type": [
1898
+ "string",
1899
+ "null"
1900
+ ],
1901
+ "maxLength": 512
1902
+ },
1903
+ "success_message": {
1904
+ "type": [
1905
+ "string",
1906
+ "null"
1907
+ ],
1908
+ "maxLength": 5000
1909
+ },
1910
+ "show_fill_again_button": {
1911
+ "type": "boolean"
1912
+ },
1897
1913
  "slack_webhook_url": {
1898
1914
  "type": [
1899
1915
  "string",
@@ -2347,10 +2363,9 @@
2347
2363
  },
2348
2364
  "filename": {
2349
2365
  "type": "string",
2350
- "minLength": 1,
2351
2366
  "maxLength": 255,
2352
- "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
2353
- "x-pattern-message": "can't contain a slash (/ or \\)"
2367
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
2368
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
2354
2369
  },
2355
2370
  "detect_fields": {
2356
2371
  "type": "boolean"
@@ -2376,6 +2391,9 @@
2376
2391
  "ai",
2377
2392
  "none"
2378
2393
  ]
2394
+ },
2395
+ "include_office_use_fields": {
2396
+ "type": "boolean"
2379
2397
  }
2380
2398
  },
2381
2399
  "required": [
@@ -4133,8 +4151,7 @@
4133
4151
  "type": [
4134
4152
  "string",
4135
4153
  "null"
4136
- ],
4137
- "format": "uri"
4154
+ ]
4138
4155
  },
4139
4156
  "signature_request_email_attachments": {
4140
4157
  "type": [
@@ -4184,6 +4201,23 @@
4184
4201
  ],
4185
4202
  "maxLength": 2048
4186
4203
  },
4204
+ "success_title": {
4205
+ "type": [
4206
+ "string",
4207
+ "null"
4208
+ ],
4209
+ "maxLength": 512
4210
+ },
4211
+ "success_message": {
4212
+ "type": [
4213
+ "string",
4214
+ "null"
4215
+ ],
4216
+ "maxLength": 5000
4217
+ },
4218
+ "show_fill_again_button": {
4219
+ "type": "boolean"
4220
+ },
4187
4221
  "slack_webhook_url": {
4188
4222
  "type": [
4189
4223
  "string",
@@ -4465,6 +4499,7 @@
4465
4499
  },
4466
4500
  "field_groups": {
4467
4501
  "type": "array",
4502
+ "minItems": 1,
4468
4503
  "items": {
4469
4504
  "type": "object",
4470
4505
  "properties": {
@@ -4505,6 +4540,43 @@
4505
4540
  "additionalProperties": false
4506
4541
  }
4507
4542
  },
4543
+ "form_sections": {
4544
+ "type": "array",
4545
+ "items": {
4546
+ "type": "object",
4547
+ "properties": {
4548
+ "id": {
4549
+ "type": "string",
4550
+ "maxLength": 255,
4551
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4552
+ "x-pattern-message": "can't be blank"
4553
+ },
4554
+ "title": {
4555
+ "type": "string",
4556
+ "maxLength": 512
4557
+ },
4558
+ "description": {
4559
+ "type": [
4560
+ "string",
4561
+ "null"
4562
+ ],
4563
+ "maxLength": 5000
4564
+ },
4565
+ "field_ids": {
4566
+ "type": "array",
4567
+ "items": {
4568
+ "type": "integer"
4569
+ }
4570
+ }
4571
+ },
4572
+ "required": [
4573
+ "id",
4574
+ "title",
4575
+ "field_ids"
4576
+ ],
4577
+ "additionalProperties": false
4578
+ }
4579
+ },
4508
4580
  "predefined_fields": {
4509
4581
  "type": "array",
4510
4582
  "items": {
@@ -4700,10 +4772,9 @@
4700
4772
  },
4701
4773
  "filename": {
4702
4774
  "type": "string",
4703
- "minLength": 1,
4704
4775
  "maxLength": 255,
4705
- "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
4706
- "x-pattern-message": "can't contain a slash (/ or \\)"
4776
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
4777
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
4707
4778
  },
4708
4779
  "reimport_fields": {
4709
4780
  "type": "boolean"
@@ -5538,6 +5609,9 @@
5538
5609
  "docx",
5539
5610
  "odt"
5540
5611
  ]
5612
+ },
5613
+ "include_office_use_fields": {
5614
+ "type": "boolean"
5541
5615
  }
5542
5616
  },
5543
5617
  "additionalProperties": false
@@ -11,5 +11,5 @@ Generator version: 7.26.0-DOCSPRING
11
11
  =end
12
12
 
13
13
  module DocSpring
14
- VERSION = '4.4.0'
14
+ VERSION = '4.5.0'
15
15
  end
data/lib/docspring.rb CHANGED
@@ -174,6 +174,8 @@ require 'docspring/models/template_field_logic_status'
174
174
  require 'docspring/models/template_field_move'
175
175
  require 'docspring/models/template_fields'
176
176
  require 'docspring/models/template_form_mode'
177
+ require 'docspring/models/template_form_section'
178
+ require 'docspring/models/template_form_section_input'
177
179
  require 'docspring/models/template_model_code'
178
180
  require 'docspring/models/template_page_ai_error'
179
181
  require 'docspring/models/template_page_ai_naming_status'