Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
bd1f835
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.357.3
speakeasybot Aug 8, 2024
cfb438f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.358.0
speakeasybot Aug 9, 2024
9997758
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.368.0
speakeasybot Aug 15, 2024
a558dec
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.376.0
speakeasybot Aug 20, 2024
23e77fe
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.383.2
speakeasybot Aug 30, 2024
82afb99
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.390.7
speakeasybot Sep 6, 2024
cc505f8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.392.1
speakeasybot Sep 7, 2024
10cf9ed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.394.0
speakeasybot Sep 10, 2024
e05c8b8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.6
speakeasybot Sep 13, 2024
827de95
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.9
speakeasybot Sep 14, 2024
d81543f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.401.2
speakeasybot Sep 21, 2024
a4ba6d4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.405.6
speakeasybot Oct 1, 2024
1913ddd
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
speakeasybot Oct 3, 2024
fefcde1
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.411.1
speakeasybot Oct 8, 2024
eee2ba9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.413.0
speakeasybot Oct 9, 2024
75abf11
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.421.1
speakeasybot Oct 24, 2024
31c7ae3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.423.5
speakeasybot Oct 31, 2024
043c047
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.426.0
speakeasybot Nov 5, 2024
eed2d8e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
speakeasybot Nov 9, 2024
091edf9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.443.0
speakeasybot Nov 22, 2024
849bb2f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
speakeasybot Nov 26, 2024
9f09e12
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.0
speakeasybot Nov 27, 2024
6a492c2
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.2
speakeasybot Nov 28, 2024
ae91509
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.451.5
speakeasybot Dec 5, 2024
7a89d96
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.1
speakeasybot Dec 7, 2024
76cac58
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.8
speakeasybot Dec 10, 2024
d4f0886
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
speakeasybot Dec 14, 2024
9f92070
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.7
speakeasybot Dec 17, 2024
d52780f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.459.2
speakeasybot Dec 21, 2024
ee2b859
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.460.2
speakeasybot Dec 24, 2024
493b426
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.462.2
speakeasybot Jan 4, 2025
b157659
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.465.1
speakeasybot Jan 9, 2025
754dcfb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.467.0
speakeasybot Jan 10, 2025
a30160e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.6
speakeasybot Jan 15, 2025
54bdf33
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.8
speakeasybot Jan 16, 2025
08eea7e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.2
speakeasybot Jan 20, 2025
e80be87
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.11
speakeasybot Jan 21, 2025
07b580f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.474.0
speakeasybot Jan 24, 2025
4b76c49
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.476.0
speakeasybot Jan 25, 2025
e8800ac
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.477.2
speakeasybot Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
  • Loading branch information
speakeasybot committed Nov 26, 2024
commit 849bb2fc8cc794fdb208d02976a5892b739038d8
12 changes: 6 additions & 6 deletions template_variables/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 5c509d65-b892-4e49-8160-6842e685ee9c
management:
docChecksum: 085375dfed9f0d113806b92ef0f5bc15
docVersion: 1.0.0
speakeasyVersion: 1.443.0
generationVersion: 2.461.4
releaseVersion: 1.10.3
configChecksum: 7d080a3de2e23e7c9a07c52cc8feab2b
speakeasyVersion: 1.446.0
generationVersion: 2.462.0
releaseVersion: 1.11.0
configChecksum: e13b0f118a653b6c122625b79cc57332
repoURL: https://github.com/epilot-dev/sdk-python.git
repoSubDirectory: template_variables
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=template_variables
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.6.6
core: 5.6.8
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
Expand All @@ -27,7 +27,6 @@ features:
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.0.0
tests: 1.6.0
generatedFiles:
- .gitattributes
- .python-version
Expand Down Expand Up @@ -189,3 +188,4 @@ examples:
responses:
"200":
application/json: [{"description": "Company name", "group": "Personal Details", "insert": "{{account.name}}", "type": "simple"}, {"description": "Tax ID", "group": "Personal Details", "insert": "{{account.tax_id}}", "type": "simple"}, {"description": "Address Details", "group": "Address details", "qrdata": "{{account.address_details}}", "type": "partial"}, {"description": "Address - Street name", "group": "Address Details", "insert": "{{account.address.street}}", "type": "simple"}, {"description": "Address - Street number", "group": "Address Details", "insert": "{{account.address.street_number}}", "type": "simple"}, {"description": "Address - Postal code", "group": "Address Details", "insert": "{{account.address.postal_code}}", "type": "simple"}, {"description": "Address - City", "group": "Address Details", "insert": "{{account.address.city}}", "type": "simple"}]
generatedTests: {}
1,380 changes: 684 additions & 696 deletions template_variables/README.md

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion template_variables/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,12 @@ Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.443.0 (2.461.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.10.3] template_variables
- [python v1.10.3] template_variables

## 2024-11-26 00:30:09
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.446.0 (2.462.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.11.0] template_variables
296 changes: 147 additions & 149 deletions template_variables/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,158 +4,12 @@
import epilot_template_variables
from epilot_template_variables import Epilot

s = Epilot(
with Epilot(
security=epilot_template_variables.Security(
epilot_auth="<YOUR_BEARER_TOKEN_HERE>",
),
)

res = s.custom_variables.create_custom_variable(request={
"config": {},
"created_at": "2022-04-19T12:41:43.662Z",
"created_by": "100042",
"helper_logic": "return param1 * param2;",
"helper_params": [
"param1",
"param2",
],
"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250",
"key": "my_custom_table",
"name": "My Custom table",
"template": "<table style=\"table-layout: fixed;width: 100%;max-width: 1000px;border-collapse: collapse;\">\n" +
" <thead>\n" +
" <tr style=\"height: 48px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{#each table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" <th style=\"{{makeStyle @root.table_config.header.style}};{{makeStyle column.style}};\">{{column._label}}</th>\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" </thead>\n" +
" <tbody style=\"vertical-align: baseline !important;font-weight: 400;font-size: 12px;position: relative;\">\n" +
" <!-- Start rendering products -->\n" +
" {{#each order.products as |product|}}\n" +
" {{#if @last}}\n" +
" <tr style=\"height: 48px;;font-size:14px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{else}}\n" +
" <tr style=\"height: 48px;;font-size:14px;\">\n" +
" {{/if}}\n" +
" {{#each @root.table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" {{#if (eq column.id 'item')}}\n" +
" <!-- Item -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.product_name.style}}\">\n" +
" {{#if @root.table_config.body.product_name.enable}}\n" +
" {{product.name}}\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.price_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.price_description.style}}\">{{product.price.description}}</span>\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.product_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.product_description.style}}\">{{product.description}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'quantity')}}\n" +
" <!-- Quantity -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.quantity.style}}\">{{product.price.quantity}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'tax')}}\n" +
" <!-- Tax -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.tax.style}}\">\n" +
" {{product.price.tax_rate}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'unit_amount')}}\n" +
" <!-- Unit amount -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.unit_amount.style}}\">\n" +
" {{product.price.unit_amount_net}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'net_total')}}\n" +
" <!-- Amount Subtotal -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.net_total.style}}\">\n" +
" {{product.price.amount_subtotal}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'amount_tax')}}\n" +
" <!-- Tax amount-->\n" +
" <td style=\"{{makeStyle @root.table_config.body.amount_tax.style}}\">\n" +
" {{product.price.amount_tax}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'gross_total')}}\n" +
" <!-- Gross total -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.gross_total.style}}\">\n" +
" {{product.price.amount_total}}\n" +
" {{#if @root.table_config.body.payment_type.enable}}\n" +
" {{#if (eq product.price.type 'recurring')}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.payment_type.style}}\">{{product.price.billing_period}}</span>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" {{/each}}\n" +
" <!-- Finish rendering products -->\n" +
" {{#if table_config.footer.gross_total.enable}}\n" +
" {{#each order.total_details.recurrences as |item|}}\n" +
" <tr style=\"height: 48px;font-size: 14px;\">\n" +
" <td style=\"padding-top: 16px; padding-bottom: 8px; border: none !important; vertical-align: top;\" colspan=\"{{calculate_colspan @root.table_config}}\"></td>\n" +
" {{#if @root.table_config.footer.payment_type.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.payment_type.style}}\" colspan=\"2\">{{item.billing_period}}</td>\n" +
" {{/if}}\n" +
" {{#if (isColumnEnabled @root.table_config 'net_total')}}\n" +
" {{#if @root.table_config.footer.net_total.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.net_total.style}}\">{{item.amount_subtotal}}</td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.gross_total.style}}\">{{item.amount_total}}\n" +
" {{#if @root.table_config.footer.amount_tax.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.footer.amount_tax.style}}\">{{item.full_amount_tax}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" </tr>\n" +
" {{/each}}\n" +
" {{/if}}\n" +
" <tr style=\"height:16px !important;\"></tr>\n" +
" </tbody>\n" +
"</table>\n" +
"",
"type": epilot_template_variables.Type.CUSTOM,
"updated_at": "2022-04-20T12:41:43.662Z",
"updated_by": "100042",
})

if res is not None:
# handle response
pass
```

</br>

The same SDK client can also be used to make asychronous requests by importing asyncio.
```python
# Asynchronous Example
import asyncio
import epilot_template_variables
from epilot_template_variables import Epilot

async def main():
s = Epilot(
security=epilot_template_variables.Security(
epilot_auth="<YOUR_BEARER_TOKEN_HERE>",
),
)
res = await s.custom_variables.create_custom_variable_async(request={
"config": {},
) as s:
res = s.custom_variables.create_custom_variable(request={
"created_at": "2022-04-19T12:41:43.662Z",
"created_by": "100042",
"helper_logic": "return param1 * param2;",
Expand Down Expand Up @@ -277,9 +131,153 @@ async def main():
"updated_at": "2022-04-20T12:41:43.662Z",
"updated_by": "100042",
})

if res is not None:
# handle response
pass
```

</br>

The same SDK client can also be used to make asychronous requests by importing asyncio.
```python
# Asynchronous Example
import asyncio
import epilot_template_variables
from epilot_template_variables import Epilot

async def main():
async with Epilot(
security=epilot_template_variables.Security(
epilot_auth="<YOUR_BEARER_TOKEN_HERE>",
),
) as s:
res = await s.custom_variables.create_custom_variable_async(request={
"created_at": "2022-04-19T12:41:43.662Z",
"created_by": "100042",
"helper_logic": "return param1 * param2;",
"helper_params": [
"param1",
"param2",
],
"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250",
"key": "my_custom_table",
"name": "My Custom table",
"template": "<table style=\"table-layout: fixed;width: 100%;max-width: 1000px;border-collapse: collapse;\">\n" +
" <thead>\n" +
" <tr style=\"height: 48px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{#each table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" <th style=\"{{makeStyle @root.table_config.header.style}};{{makeStyle column.style}};\">{{column._label}}</th>\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" </thead>\n" +
" <tbody style=\"vertical-align: baseline !important;font-weight: 400;font-size: 12px;position: relative;\">\n" +
" <!-- Start rendering products -->\n" +
" {{#each order.products as |product|}}\n" +
" {{#if @last}}\n" +
" <tr style=\"height: 48px;;font-size:14px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{else}}\n" +
" <tr style=\"height: 48px;;font-size:14px;\">\n" +
" {{/if}}\n" +
" {{#each @root.table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" {{#if (eq column.id 'item')}}\n" +
" <!-- Item -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.product_name.style}}\">\n" +
" {{#if @root.table_config.body.product_name.enable}}\n" +
" {{product.name}}\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.price_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.price_description.style}}\">{{product.price.description}}</span>\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.product_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.product_description.style}}\">{{product.description}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'quantity')}}\n" +
" <!-- Quantity -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.quantity.style}}\">{{product.price.quantity}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'tax')}}\n" +
" <!-- Tax -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.tax.style}}\">\n" +
" {{product.price.tax_rate}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'unit_amount')}}\n" +
" <!-- Unit amount -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.unit_amount.style}}\">\n" +
" {{product.price.unit_amount_net}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'net_total')}}\n" +
" <!-- Amount Subtotal -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.net_total.style}}\">\n" +
" {{product.price.amount_subtotal}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'amount_tax')}}\n" +
" <!-- Tax amount-->\n" +
" <td style=\"{{makeStyle @root.table_config.body.amount_tax.style}}\">\n" +
" {{product.price.amount_tax}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'gross_total')}}\n" +
" <!-- Gross total -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.gross_total.style}}\">\n" +
" {{product.price.amount_total}}\n" +
" {{#if @root.table_config.body.payment_type.enable}}\n" +
" {{#if (eq product.price.type 'recurring')}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.payment_type.style}}\">{{product.price.billing_period}}</span>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" {{/each}}\n" +
" <!-- Finish rendering products -->\n" +
" {{#if table_config.footer.gross_total.enable}}\n" +
" {{#each order.total_details.recurrences as |item|}}\n" +
" <tr style=\"height: 48px;font-size: 14px;\">\n" +
" <td style=\"padding-top: 16px; padding-bottom: 8px; border: none !important; vertical-align: top;\" colspan=\"{{calculate_colspan @root.table_config}}\"></td>\n" +
" {{#if @root.table_config.footer.payment_type.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.payment_type.style}}\" colspan=\"2\">{{item.billing_period}}</td>\n" +
" {{/if}}\n" +
" {{#if (isColumnEnabled @root.table_config 'net_total')}}\n" +
" {{#if @root.table_config.footer.net_total.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.net_total.style}}\">{{item.amount_subtotal}}</td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.gross_total.style}}\">{{item.amount_total}}\n" +
" {{#if @root.table_config.footer.amount_tax.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.footer.amount_tax.style}}\">{{item.full_amount_tax}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" </tr>\n" +
" {{/each}}\n" +
" {{/if}}\n" +
" <tr style=\"height:16px !important;\"></tr>\n" +
" </tbody>\n" +
"</table>\n" +
"",
"type": epilot_template_variables.Type.CUSTOM,
"updated_at": "2022-04-20T12:41:43.662Z",
"updated_by": "100042",
})

if res is not None:
# handle response
pass

asyncio.run(main())
```
Expand Down
Loading