Skip to content

Commit ee38336

Browse files
feat: update API client methods
API changes: - Update API client - Update API client - Update API client - Update API client - Update API client - ... and 8 more API files Model changes: - Add create_version_request model - Add set_default_version_request model - Add update_version_request model - Add version_item model - Add versions_list_response model - ... and 54 more model files Generated from OpenAPI spec v1.8.0
1 parent c37ffcc commit ee38336

77 files changed

Lines changed: 1849 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TemplateFox Ruby SDK
22

3-
Official Ruby SDK for [TemplateFox](https://pdftemplateapi.com) - Generate PDFs from HTML templates via API.
3+
Official Ruby SDK for [TemplateFox](https://templatefox.com) - Generate PDFs from HTML templates via API.
44

55
[![Gem Version](https://badge.fury.io/rb/templatefox.svg)](https://rubygems.org/gems/templatefox)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -139,7 +139,7 @@ puts "Connection: #{test.success ? 'OK' : 'Failed'}"
139139

140140
```ruby
141141
TemplateFox.configure do |config|
142-
config.host = 'https://api.pdftemplateapi.com' # Default API URL
142+
config.host = 'https://api.templatefox.com' # Default API URL
143143
config.api_key['ApiKeyAuth'] = ENV['TEMPLATEFOX_API_KEY']
144144

145145
# Optional: Enable debugging
@@ -192,13 +192,13 @@ end
192192

193193
## Documentation
194194

195-
- [API Documentation](https://pdftemplateapi.com/docs)
196-
- [Swagger UI](https://api.pdftemplateapi.com/docs)
197-
- [Dashboard](https://pdftemplateapi.com/dashboard)
195+
- [API Documentation](https://templatefox.com/docs)
196+
- [Swagger UI](https://api.templatefox.com/docs)
197+
- [Dashboard](https://templatefox.com/dashboard)
198198

199199
## Support
200200

201-
- Email: support@pdftemplateapi.com
201+
- Email: support@templatefox.com
202202
- Issues: [GitHub Issues](https://github.com/TemplateFoxPDF/rubysdk/issues)
203203

204204
## License

lib/templatefox.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
6+
The version of the OpenAPI document: 1.8.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0
@@ -25,6 +25,7 @@
2525
require 'templatefox/models/create_async_pdf_response'
2626
require 'templatefox/models/create_pdf_request'
2727
require 'templatefox/models/create_pdf_response'
28+
require 'templatefox/models/create_version_request'
2829
require 'templatefox/models/http_validation_error'
2930
require 'templatefox/models/job_list_response'
3031
require 'templatefox/models/job_status'
@@ -35,13 +36,17 @@
3536
require 'templatefox/models/s3_config_response'
3637
require 'templatefox/models/s3_success_response'
3738
require 'templatefox/models/s3_test_response'
39+
require 'templatefox/models/set_default_version_request'
3840
require 'templatefox/models/template_field'
3941
require 'templatefox/models/template_field_spec'
4042
require 'templatefox/models/template_list_item'
4143
require 'templatefox/models/templates_list_response'
4244
require 'templatefox/models/transaction'
4345
require 'templatefox/models/transactions_response'
46+
require 'templatefox/models/update_version_request'
4447
require 'templatefox/models/validation_error'
48+
require 'templatefox/models/version_item'
49+
require 'templatefox/models/versions_list_response'
4550

4651
# APIs
4752
require 'templatefox/api/account_api'

lib/templatefox/api/account_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
6+
The version of the OpenAPI document: 1.8.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0

lib/templatefox/api/integrations_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
6+
The version of the OpenAPI document: 1.8.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0

lib/templatefox/api/pdf_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
6+
The version of the OpenAPI document: 1.8.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0

lib/templatefox/api/pdf_async_api.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
6+
The version of the OpenAPI document: 1.8.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0
@@ -89,7 +89,7 @@ def create_pdf_async_with_http_info(create_async_pdf_request, opts = {})
8989

9090
# Get PDF job status
9191
# Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
92-
# @param job_id [String]
92+
# @param job_id [String] Async job ID (UUID returned by the create-async endpoint)
9393
# @param [Hash] opts the optional parameters
9494
# @return [JobStatusResponse]
9595
def get_pdf_job(job_id, opts = {})
@@ -99,7 +99,7 @@ def get_pdf_job(job_id, opts = {})
9999

100100
# Get PDF job status
101101
# Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
102-
# @param job_id [String]
102+
# @param job_id [String] Async job ID (UUID returned by the create-async endpoint)
103103
# @param [Hash] opts the optional parameters
104104
# @return [Array<(JobStatusResponse, Integer, Hash)>] JobStatusResponse data, response status code and response headers
105105
def get_pdf_job_with_http_info(job_id, opts = {})
@@ -153,9 +153,9 @@ def get_pdf_job_with_http_info(job_id, opts = {})
153153
# List PDF jobs
154154
# List async PDF generation jobs for your team. **Authentication:** API Key required (`x-api-key` header) Supports pagination and filtering by status.
155155
# @param [Hash] opts the optional parameters
156-
# @option opts [Integer] :limit (default to 20)
157-
# @option opts [Integer] :offset (default to 0)
158-
# @option opts [JobStatus] :status
156+
# @option opts [Integer] :limit Maximum number of results to return (default to 20)
157+
# @option opts [Integer] :offset Number of results to skip (for pagination) (default to 0)
158+
# @option opts [JobStatus] :status Filter jobs by status
159159
# @return [JobListResponse]
160160
def list_pdf_jobs(opts = {})
161161
data, _status_code, _headers = list_pdf_jobs_with_http_info(opts)
@@ -165,9 +165,9 @@ def list_pdf_jobs(opts = {})
165165
# List PDF jobs
166166
# List async PDF generation jobs for your team. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) Supports pagination and filtering by status.
167167
# @param [Hash] opts the optional parameters
168-
# @option opts [Integer] :limit (default to 20)
169-
# @option opts [Integer] :offset (default to 0)
170-
# @option opts [JobStatus] :status
168+
# @option opts [Integer] :limit Maximum number of results to return (default to 20)
169+
# @option opts [Integer] :offset Number of results to skip (for pagination) (default to 0)
170+
# @option opts [JobStatus] :status Filter jobs by status
171171
# @return [Array<(JobListResponse, Integer, Hash)>] JobListResponse data, response status code and response headers
172172
def list_pdf_jobs_with_http_info(opts = {})
173173
if @api_client.config.debugging

0 commit comments

Comments
 (0)