Skip to content

Commit 8d8852c

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0, Speakeay CLI 1.19.2
1 parent 637e104 commit 8d8852c

18 files changed

+158
-67
lines changed

assess/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ if res.categorised_account is not None:
5656

5757
* `get_accounting_marketing_metrics` - Get the marketing metrics from an accounting source for a given company.
5858
* `get_excel_report` - Download generated excel report
59-
* `make_request_to_download_excel_report` - Request an Excel report for download
60-
* `request_excel_report_for_download` - Request an Excel report for download
59+
* `get_excel_report_post` - Download generated excel report
60+
* `make_request_to_download_excel_report` - Get status of Excel report
61+
* `request_excel_report_for_download` - Generate an Excel report
6162

6263
### reports
6364

assess/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,12 @@ Based on:
166166
- OpenAPI Doc 1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml
167167
- Speakeasy CLI 1.18.9 (2.16.4) https://github.com/speakeasy-api/speakeasy
168168
### Releases
169-
- [PyPI v0.9.1] https://pypi.org/project/codat-assess/0.9.1 - assess
169+
- [PyPI v0.9.1] https://pypi.org/project/codat-assess/0.9.1 - assess
170+
171+
## 2023-03-29 00:14:36
172+
### Changes
173+
Based on:
174+
- OpenAPI Doc 1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml
175+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
176+
### Releases
177+
- [PyPI v0.9.2] https://pypi.org/project/codat-assess/0.9.2 - assess

assess/files.gen

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ src/codat/models/operations/get_data_integrity_status.py
2020
src/codat/models/operations/get_data_integrity_summaries.py
2121
src/codat/models/operations/get_accounting_marketing_metrics.py
2222
src/codat/models/operations/get_excel_report.py
23+
src/codat/models/operations/get_excel_report_post.py
2324
src/codat/models/operations/make_request_to_download_excel_report.py
2425
src/codat/models/operations/request_excel_report_for_download.py
2526
src/codat/models/operations/get_accounts_for_enhanced_balance_sheet.py

assess/gen.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: fd85e05d55eda2ad46b0f12427498e18
3+
docChecksum: 6005f74c5a021d3a7ba0c18e9664d738
44
docVersion: "1.0"
5-
speakeasyVersion: 1.18.9
6-
generationVersion: 2.16.4
5+
speakeasyVersion: 1.19.2
6+
generationVersion: 2.16.5
77
generation:
88
telemetryEnabled: false
99
sdkClassName: codat
1010
sdkFlattening: true
1111
singleTagPerOp: false
1212
python:
13-
version: 0.9.1
13+
version: 0.9.2
1414
author: Speakeasy
1515
description: Python Client SDK Generated by Speakeasy
1616
packageName: codat-assess

assess/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-assess",
13-
version="0.9.1",
13+
version="0.9.2",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

assess/src/codat/excel_reports.py

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_accounting_marketing_metrics(self, request: operations.GetAccountingMark
4848

4949
def get_excel_report(self, request: operations.GetExcelReportRequest) -> operations.GetExcelReportResponse:
5050
r"""Download generated excel report
51-
Download the Excel report to a local drive.
51+
Download the previously generated Excel report to a local drive.
5252
"""
5353
base_url = self._server_url
5454

@@ -58,7 +58,7 @@ def get_excel_report(self, request: operations.GetExcelReportRequest) -> operati
5858

5959
client = self._security_client
6060

61-
http_res = client.request('POST', url, params=query_params)
61+
http_res = client.request('GET', url, params=query_params)
6262
content_type = http_res.headers.get('Content-Type')
6363

6464
res = operations.GetExcelReportResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
@@ -69,8 +69,31 @@ def get_excel_report(self, request: operations.GetExcelReportRequest) -> operati
6969

7070
return res
7171

72+
def get_excel_report_post(self, request: operations.GetExcelReportPostRequest) -> operations.GetExcelReportPostResponse:
73+
r"""Download generated excel report
74+
Download the previously generated Excel report to a local drive.
75+
"""
76+
base_url = self._server_url
77+
78+
url = utils.generate_url(operations.GetExcelReportPostRequest, base_url, '/data/companies/{companyId}/assess/excel/download', request)
79+
80+
query_params = utils.get_query_params(operations.GetExcelReportPostRequest, request)
81+
82+
client = self._security_client
83+
84+
http_res = client.request('POST', url, params=query_params)
85+
content_type = http_res.headers.get('Content-Type')
86+
87+
res = operations.GetExcelReportPostResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)
88+
89+
if http_res.status_code == 200:
90+
if utils.match_content_type(content_type, 'application/octet-stream'):
91+
res.body = http_res.content
92+
93+
return res
94+
7295
def make_request_to_download_excel_report(self, request: operations.MakeRequestToDownloadExcelReportRequest) -> operations.MakeRequestToDownloadExcelReportResponse:
73-
r"""Request an Excel report for download
96+
r"""Get status of Excel report
7497
Returns the status of the latest report requested.
7598
"""
7699
base_url = self._server_url
@@ -94,8 +117,8 @@ def make_request_to_download_excel_report(self, request: operations.MakeRequestT
94117
return res
95118

96119
def request_excel_report_for_download(self, request: operations.RequestExcelReportForDownloadRequest) -> operations.RequestExcelReportForDownloadResponse:
97-
r"""Request an Excel report for download
98-
Request an Excel report for download.
120+
r"""Generate an Excel report
121+
Generate an Excel report which can subsequently be downloaded.
99122
"""
100123
base_url = self._server_url
101124

assess/src/codat/models/operations/__init__.py

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

assess/src/codat/models/operations/get_accounts_for_enhanced_balance_sheet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class GetAccountsForEnhancedBalanceSheetEnhancedReportReportInfo:
2525
company_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyName'), 'exclude': lambda f: f is None }})
2626
r"""Company name the report was generated for."""
2727
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
28-
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. e.g. _GBP_.
28+
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
2929
3030
## Unknown currencies
3131
@@ -80,7 +80,7 @@ class GetAccountsForEnhancedBalanceSheetEnhancedReportReportItems:
8080
- Unqualified local time: `2021-11-15T01:00:00`
8181
- UTC time offsets: `2021-11-15T01:00:00-05:00`
8282
83-
> 📘 Time zones
83+
> Time zones
8484
>
8585
> Not all dates from Codat will contain information about time zones.
8686
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.

assess/src/codat/models/operations/get_accounts_for_enhanced_profit_and_loss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class GetAccountsForEnhancedProfitAndLossEnhancedReportReportInfo:
2525
company_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyName'), 'exclude': lambda f: f is None }})
2626
r"""Company name the report was generated for."""
2727
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
28-
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. e.g. _GBP_.
28+
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
2929
3030
## Unknown currencies
3131
@@ -80,7 +80,7 @@ class GetAccountsForEnhancedProfitAndLossEnhancedReportReportItems:
8080
- Unqualified local time: `2021-11-15T01:00:00`
8181
- UTC time offsets: `2021-11-15T01:00:00-05:00`
8282
83-
> 📘 Time zones
83+
> Time zones
8484
>
8585
> Not all dates from Codat will contain information about time zones.
8686
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.

assess/src/codat/models/operations/get_data_integrity_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GetDataIntegrityStatus200ApplicationJSONDataIntegrityTypeAmounts:
3030
r"""Only returned for transactions. For accounts, there is nothing returned."""
3131

3232
currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currency'), 'exclude': lambda f: f is None }})
33-
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. e.g. _GBP_.
33+
r"""The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_.
3434
3535
## Unknown currencies
3636

0 commit comments

Comments
 (0)