Skip to content

Commit 12d21e5

Browse files
refactor: remove deprecated components
API changes: - Update API client - Update API client - Update API client - Update API client - Update API client - ... and 8 more API files Model changes: - Update API client - Update account_info_response model - Update app_routers_v1_pdf_async_export_type model - Update app_routers_v1_pdf_export_type model - Update create_async_pdf_request model - ... and 52 more model files Removed: - Remove set_default_version_request model - Remove set_default_version_request_spec model Generated from OpenAPI spec v1.9.1
1 parent 40f63f2 commit 12d21e5

76 files changed

Lines changed: 76 additions & 459 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.

lib/templatefox.rb

Lines changed: 1 addition & 2 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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0
@@ -36,7 +36,6 @@
3636
require 'templatefox/models/s3_config_response'
3737
require 'templatefox/models/s3_success_response'
3838
require 'templatefox/models/s3_test_response'
39-
require 'templatefox/models/set_default_version_request'
4039
require 'templatefox/models/template_field'
4140
require 'templatefox/models/template_field_spec'
4241
require 'templatefox/models/template_list_item'

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

lib/templatefox/api/pdf_async_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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0

lib/templatefox/api/templates_api.rb

Lines changed: 1 addition & 138 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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0
@@ -345,143 +345,6 @@ def list_templates_with_http_info(opts = {})
345345
return data, status_code, headers
346346
end
347347

348-
# Remove default version
349-
# Remove the default version setting. API will use the working draft.
350-
# @param template_id [String] Template short ID
351-
# @param [Hash] opts the optional parameters
352-
# @return [Object]
353-
def remove_default_version(template_id, opts = {})
354-
data, _status_code, _headers = remove_default_version_with_http_info(template_id, opts)
355-
data
356-
end
357-
358-
# Remove default version
359-
# Remove the default version setting. API will use the working draft.
360-
# @param template_id [String] Template short ID
361-
# @param [Hash] opts the optional parameters
362-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
363-
def remove_default_version_with_http_info(template_id, opts = {})
364-
if @api_client.config.debugging
365-
@api_client.config.logger.debug 'Calling API: TemplatesApi.remove_default_version ...'
366-
end
367-
# verify the required parameter 'template_id' is set
368-
if @api_client.config.client_side_validation && template_id.nil?
369-
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplatesApi.remove_default_version"
370-
end
371-
# resource path
372-
local_var_path = '/v1/templates/{template_id}/default-version'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
373-
374-
# query parameters
375-
query_params = opts[:query_params] || {}
376-
377-
# header parameters
378-
header_params = opts[:header_params] || {}
379-
# HTTP header 'Accept' (if needed)
380-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
381-
382-
# form parameters
383-
form_params = opts[:form_params] || {}
384-
385-
# http body (model)
386-
post_body = opts[:debug_body]
387-
388-
# return_type
389-
return_type = opts[:debug_return_type] || 'Object'
390-
391-
# auth_names
392-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
393-
394-
new_options = opts.merge(
395-
:operation => :"TemplatesApi.remove_default_version",
396-
:header_params => header_params,
397-
:query_params => query_params,
398-
:form_params => form_params,
399-
:body => post_body,
400-
:auth_names => auth_names,
401-
:return_type => return_type
402-
)
403-
404-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
405-
if @api_client.config.debugging
406-
@api_client.config.logger.debug "API called: TemplatesApi#remove_default_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
407-
end
408-
return data, status_code, headers
409-
end
410-
411-
# Set default version
412-
# Set which version the API uses by default when no version param is provided.
413-
# @param template_id [String] Template short ID
414-
# @param set_default_version_request [SetDefaultVersionRequest]
415-
# @param [Hash] opts the optional parameters
416-
# @return [Object]
417-
def set_default_version(template_id, set_default_version_request, opts = {})
418-
data, _status_code, _headers = set_default_version_with_http_info(template_id, set_default_version_request, opts)
419-
data
420-
end
421-
422-
# Set default version
423-
# Set which version the API uses by default when no version param is provided.
424-
# @param template_id [String] Template short ID
425-
# @param set_default_version_request [SetDefaultVersionRequest]
426-
# @param [Hash] opts the optional parameters
427-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
428-
def set_default_version_with_http_info(template_id, set_default_version_request, opts = {})
429-
if @api_client.config.debugging
430-
@api_client.config.logger.debug 'Calling API: TemplatesApi.set_default_version ...'
431-
end
432-
# verify the required parameter 'template_id' is set
433-
if @api_client.config.client_side_validation && template_id.nil?
434-
fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplatesApi.set_default_version"
435-
end
436-
# verify the required parameter 'set_default_version_request' is set
437-
if @api_client.config.client_side_validation && set_default_version_request.nil?
438-
fail ArgumentError, "Missing the required parameter 'set_default_version_request' when calling TemplatesApi.set_default_version"
439-
end
440-
# resource path
441-
local_var_path = '/v1/templates/{template_id}/default-version'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
442-
443-
# query parameters
444-
query_params = opts[:query_params] || {}
445-
446-
# header parameters
447-
header_params = opts[:header_params] || {}
448-
# HTTP header 'Accept' (if needed)
449-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
450-
# HTTP header 'Content-Type'
451-
content_type = @api_client.select_header_content_type(['application/json'])
452-
if !content_type.nil?
453-
header_params['Content-Type'] = content_type
454-
end
455-
456-
# form parameters
457-
form_params = opts[:form_params] || {}
458-
459-
# http body (model)
460-
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_default_version_request)
461-
462-
# return_type
463-
return_type = opts[:debug_return_type] || 'Object'
464-
465-
# auth_names
466-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
467-
468-
new_options = opts.merge(
469-
:operation => :"TemplatesApi.set_default_version",
470-
:header_params => header_params,
471-
:query_params => query_params,
472-
:form_params => form_params,
473-
:body => post_body,
474-
:auth_names => auth_names,
475-
:return_type => return_type
476-
)
477-
478-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
479-
if @api_client.config.debugging
480-
@api_client.config.logger.debug "API called: TemplatesApi#set_default_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
481-
end
482-
return data, status_code, headers
483-
end
484-
485348
# Update a version
486349
# Update a version's tag or description.
487350
# @param template_id [String] Template short ID

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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.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.9.0
6+
The version of the OpenAPI document: 1.9.1
77
88
Generated by: https://openapi-generator.tech
99
Generator version: 7.21.0

0 commit comments

Comments
 (0)