Skip to content

Commit 5e839de

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 6 more API files Model changes: - Add spec model - Add template_field_spec model - Add spec_spec model - Add template_field_spec_spec model - Update API client - ... and 32 more model files Generated from OpenAPI spec v1.2.0
1 parent 399fcd3 commit 5e839de

52 files changed

Lines changed: 454 additions & 58 deletions

Some content is hidden

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

lib/templatefox.rb

Lines changed: 3 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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0
@@ -28,7 +28,9 @@
2828
require 'templatefox/models/s3_config_response'
2929
require 'templatefox/models/s3_success_response'
3030
require 'templatefox/models/s3_test_response'
31+
require 'templatefox/models/spec'
3132
require 'templatefox/models/template_field'
33+
require 'templatefox/models/template_field_spec'
3234
require 'templatefox/models/template_list_item'
3335
require 'templatefox/models/templates_list_response'
3436
require 'templatefox/models/transaction'

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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

lib/templatefox/api/templates_api.rb

Lines changed: 3 additions & 3 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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0
@@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default)
2020
@api_client = api_client
2121
end
2222
# Get template fields
23-
# Get the dynamic fields for a template. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for Zapier Dynamic Fields integration. It returns an array of field definitions that Zapier uses to dynamically generate input forms. **Response format:** Array of objects compatible with Zapier InputFieldsSchema. Each field has: `key`, `label`, `type`, `required`, and optional `helpText`. **Field types:** - `string`: Text input (also used for JSON arrays/objects) - `integer`: Integer number - `number`: Decimal number - `boolean`: True/False checkbox **Arrays and objects:** Complex types are returned as `string` type with a `helpText` showing the expected JSON format. **No credits consumed:** This is a read-only endpoint.
23+
# Get the dynamic fields for a template. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for no-code tool integrations (Zapier, Make.com). It returns an array of field definitions used to dynamically generate input forms. **Response format:** Array of field objects with: `key`, `label`, `type`, `required`, optional `helpText`, and optional `spec` (for array fields). **Field types:** - `string`: Text input - `integer`: Integer number - `number`: Decimal number - `boolean`: True/False checkbox - `array`: Array of items with nested `spec` defining item structure **Array fields:** When a field is an array of objects, the response includes a `spec` array defining the structure of each item (name, label, type for each nested field). **No credits consumed:** This is a read-only endpoint.
2424
# @param template_id [String]
2525
# @param [Hash] opts the optional parameters
2626
# @return [Array<TemplateField>]
@@ -30,7 +30,7 @@ def get_template_fields(template_id, opts = {})
3030
end
3131

3232
# Get template fields
33-
# Get the dynamic fields for a template. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for Zapier Dynamic Fields integration. It returns an array of field definitions that Zapier uses to dynamically generate input forms. **Response format:** Array of objects compatible with Zapier InputFieldsSchema. Each field has: &#x60;key&#x60;, &#x60;label&#x60;, &#x60;type&#x60;, &#x60;required&#x60;, and optional &#x60;helpText&#x60;. **Field types:** - &#x60;string&#x60;: Text input (also used for JSON arrays/objects) - &#x60;integer&#x60;: Integer number - &#x60;number&#x60;: Decimal number - &#x60;boolean&#x60;: True/False checkbox **Arrays and objects:** Complex types are returned as &#x60;string&#x60; type with a &#x60;helpText&#x60; showing the expected JSON format. **No credits consumed:** This is a read-only endpoint.
33+
# Get the dynamic fields for a template. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for no-code tool integrations (Zapier, Make.com). It returns an array of field definitions used to dynamically generate input forms. **Response format:** Array of field objects with: &#x60;key&#x60;, &#x60;label&#x60;, &#x60;type&#x60;, &#x60;required&#x60;, optional &#x60;helpText&#x60;, and optional &#x60;spec&#x60; (for array fields). **Field types:** - &#x60;string&#x60;: Text input - &#x60;integer&#x60;: Integer number - &#x60;number&#x60;: Decimal number - &#x60;boolean&#x60;: True/False checkbox - &#x60;array&#x60;: Array of items with nested &#x60;spec&#x60; defining item structure **Array fields:** When a field is an array of objects, the response includes a &#x60;spec&#x60; array defining the structure of each item (name, label, type for each nested field). **No credits consumed:** This is a read-only endpoint.
3434
# @param template_id [String]
3535
# @param [Hash] opts the optional parameters
3636
# @return [Array<(Array<TemplateField>, Integer, Hash)>] Array<TemplateField> data, response status code and response headers

lib/templatefox/api_client.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

lib/templatefox/api_error.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

lib/templatefox/api_model_base.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

lib/templatefox/configuration.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

lib/templatefox/models/account_info_response.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.1.3
6+
The version of the OpenAPI document: 1.2.0
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.19.0

0 commit comments

Comments
 (0)