templatefox 1.0.0 → 1.6.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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/templatefox/api/account_api.rb +6 -6
  3. data/lib/templatefox/api/integrations_api.rb +10 -10
  4. data/lib/templatefox/api/pdf_api.rb +4 -4
  5. data/lib/templatefox/api/pdf_async_api.rb +219 -0
  6. data/lib/templatefox/api/templates_api.rb +6 -6
  7. data/lib/templatefox/api_client.rb +2 -2
  8. data/lib/templatefox/api_error.rb +2 -2
  9. data/lib/templatefox/api_model_base.rb +2 -2
  10. data/lib/templatefox/configuration.rb +2 -2
  11. data/lib/templatefox/models/account_info_response.rb +2 -2
  12. data/lib/templatefox/models/app_routers_v1_pdf_async_export_type.rb +39 -0
  13. data/lib/templatefox/models/{export_type.rb → app_routers_v1_pdf_export_type.rb} +5 -5
  14. data/lib/templatefox/models/create_async_pdf_request.rb +482 -0
  15. data/lib/templatefox/models/create_async_pdf_response.rb +242 -0
  16. data/lib/templatefox/models/create_pdf_request.rb +3 -3
  17. data/lib/templatefox/models/create_pdf_response.rb +2 -2
  18. data/lib/templatefox/models/http_validation_error.rb +2 -2
  19. data/lib/templatefox/models/job_list_response.rb +249 -0
  20. data/lib/templatefox/models/job_status.rb +42 -0
  21. data/lib/templatefox/models/job_status_response.rb +440 -0
  22. data/lib/templatefox/models/location_inner.rb +2 -2
  23. data/lib/templatefox/models/s3_config_request.rb +2 -2
  24. data/lib/templatefox/models/s3_config_response.rb +2 -2
  25. data/lib/templatefox/models/s3_success_response.rb +2 -2
  26. data/lib/templatefox/models/s3_test_response.rb +2 -2
  27. data/lib/templatefox/models/template_field.rb +21 -9
  28. data/lib/templatefox/models/template_field_spec.rb +205 -0
  29. data/lib/templatefox/models/template_list_item.rb +2 -2
  30. data/lib/templatefox/models/templates_list_response.rb +2 -2
  31. data/lib/templatefox/models/transaction.rb +2 -2
  32. data/lib/templatefox/models/transactions_response.rb +2 -2
  33. data/lib/templatefox/models/validation_error.rb +2 -2
  34. data/lib/templatefox/version.rb +3 -3
  35. data/lib/templatefox.rb +11 -3
  36. data/spec/api/account_api_spec.rb +4 -4
  37. data/spec/api/integrations_api_spec.rb +6 -6
  38. data/spec/api/pdf_api_spec.rb +3 -3
  39. data/spec/api/pdf_async_api_spec.rb +73 -0
  40. data/spec/api/templates_api_spec.rb +4 -4
  41. data/spec/models/account_info_response_spec.rb +2 -2
  42. data/spec/models/app_routers_v1_pdf_async_export_type_spec.rb +30 -0
  43. data/spec/models/app_routers_v1_pdf_export_type_spec.rb +30 -0
  44. data/spec/models/create_async_pdf_request_spec.rb +90 -0
  45. data/spec/models/create_async_pdf_response_spec.rb +48 -0
  46. data/spec/models/create_pdf_request_spec.rb +2 -2
  47. data/spec/models/create_pdf_response_spec.rb +2 -2
  48. data/spec/models/http_validation_error_spec.rb +2 -2
  49. data/spec/models/job_list_response_spec.rb +54 -0
  50. data/spec/models/job_status_response_spec.rb +126 -0
  51. data/spec/models/job_status_spec.rb +30 -0
  52. data/spec/models/location_inner_spec.rb +2 -2
  53. data/spec/models/s3_config_request_spec.rb +2 -2
  54. data/spec/models/s3_config_response_spec.rb +2 -2
  55. data/spec/models/s3_success_response_spec.rb +2 -2
  56. data/spec/models/s3_test_response_spec.rb +2 -2
  57. data/spec/models/template_field_spec.rb +8 -2
  58. data/spec/models/template_field_spec_spec.rb +48 -0
  59. data/spec/models/template_list_item_spec.rb +2 -2
  60. data/spec/models/templates_list_response_spec.rb +2 -2
  61. data/spec/models/transaction_spec.rb +2 -2
  62. data/spec/models/transactions_response_spec.rb +2 -2
  63. data/spec/models/validation_error_spec.rb +2 -2
  64. data/spec/spec_helper.rb +2 -2
  65. data/templatefox.gemspec +9 -4
  66. metadata +57 -50
  67. data/docs/AccountApi.md +0 -152
  68. data/docs/AccountInfoResponse.md +0 -20
  69. data/docs/CreatePdfRequest.md +0 -32
  70. data/docs/CreatePdfResponse.md +0 -24
  71. data/docs/ExportType.md +0 -15
  72. data/docs/HTTPValidationError.md +0 -18
  73. data/docs/IntegrationsApi.md +0 -286
  74. data/docs/LocationInner.md +0 -15
  75. data/docs/PDFApi.md +0 -79
  76. data/docs/S3ConfigRequest.md +0 -26
  77. data/docs/S3ConfigResponse.md +0 -28
  78. data/docs/S3SuccessResponse.md +0 -18
  79. data/docs/S3TestResponse.md +0 -20
  80. data/docs/TemplateField.md +0 -26
  81. data/docs/TemplateListItem.md +0 -24
  82. data/docs/TemplatesApi.md +0 -148
  83. data/docs/TemplatesListResponse.md +0 -18
  84. data/docs/Transaction.md +0 -28
  85. data/docs/TransactionsResponse.md +0 -24
  86. data/docs/ValidationError.md +0 -22
  87. data/git_push.sh +0 -57
  88. data/spec/models/export_type_spec.rb +0 -30
data/docs/Transaction.md DELETED
@@ -1,28 +0,0 @@
1
- # TemplateFox::Transaction
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **transaction_ref** | **String** | Unique transaction reference (UUID) | |
8
- | **transaction_type** | **String** | Transaction type: PDFGEN, PURCHASE, REFUND, BONUS | |
9
- | **template_id** | **String** | | [optional] |
10
- | **exec_tm** | **Integer** | | [optional] |
11
- | **credits** | **Integer** | Credits consumed (positive) or added (negative) | |
12
- | **created_at** | **String** | ISO 8601 timestamp | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'templatefox'
18
-
19
- instance = TemplateFox::Transaction.new(
20
- transaction_ref: null,
21
- transaction_type: null,
22
- template_id: null,
23
- exec_tm: null,
24
- credits: null,
25
- created_at: null
26
- )
27
- ```
28
-
@@ -1,24 +0,0 @@
1
- # TemplateFox::TransactionsResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **transactions** | [**Array<Transaction>**](Transaction.md) | | |
8
- | **total** | **Integer** | Total number of transactions | |
9
- | **limit** | **Integer** | Number of records returned | |
10
- | **offset** | **Integer** | Number of records skipped | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'templatefox'
16
-
17
- instance = TemplateFox::TransactionsResponse.new(
18
- transactions: null,
19
- total: null,
20
- limit: null,
21
- offset: null
22
- )
23
- ```
24
-
@@ -1,22 +0,0 @@
1
- # TemplateFox::ValidationError
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **loc** | [**Array<LocationInner>**](LocationInner.md) | | |
8
- | **msg** | **String** | | |
9
- | **type** | **String** | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'templatefox'
15
-
16
- instance = TemplateFox::ValidationError.new(
17
- loc: null,
18
- msg: null,
19
- type: null
20
- )
21
- ```
22
-
data/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="TemplateFoxPDF"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="rubysdk"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
@@ -1,30 +0,0 @@
1
- =begin
2
- #TemplateFox API
3
-
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.19.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for TemplateFox::ExportType
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe TemplateFox::ExportType do
21
- #let(:instance) { TemplateFox::ExportType.new }
22
-
23
- describe 'test an instance of ExportType' do
24
- it 'should create an instance of ExportType' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(TemplateFox::ExportType)
27
- end
28
- end
29
-
30
- end