Skip to content

Commit

Permalink
chore: speakeasy SDK regeneration (#2)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.21.0

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.21.0

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.21.1

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.21.2

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.22.0

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.22.0

* ci: regenerated with OpenAPI Doc v1, Speakeay CLI 0.22.1

---------

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Feb 21, 2023
1 parent 5bebc14 commit 2cf32c6
Show file tree
Hide file tree
Showing 48 changed files with 392 additions and 54 deletions.
72 changes: 71 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,74 @@ Based on:
### Releases
- [NPM v1.1.0] https://www.npmjs.com/package/@codatio/codat-ts/v/1.1.0 - typescript-client-sdk
- [PyPI v1.1.0] https://pypi.org/project/codatapi/1.1.0 - python-client-sdk
- [Go v1.1.0] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.0 - go-client-sdk
- [Go v1.1.0] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.0 - go-client-sdk

## Version 1.1.1
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.21.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.1.1] https://www.npmjs.com/package/@codatio/codat-ts/v/1.1.1 - typescript-client-sdk
- [PyPI v1.1.1] https://pypi.org/project/codatapi/1.1.1 - python-client-sdk
- [Go v1.1.1] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.1 - go-client-sdk

## Version 1.1.2
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.21.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.1.2] https://www.npmjs.com/package/@codatio/codat-ts/v/1.1.2 - typescript-client-sdk
- [PyPI v1.1.2] https://pypi.org/project/codatapi/1.1.2 - python-client-sdk
- [Go v1.1.2] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.2 - go-client-sdk

## Version 1.1.3
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.21.1 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.1.3] https://www.npmjs.com/package/@codatio/codat-ts/v/1.1.3 - typescript-client-sdk
- [PyPI v1.1.3] https://pypi.org/project/codatapi/1.1.3 - python-client-sdk
- [Go v1.1.3] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.3 - go-client-sdk

## Version 1.1.4
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.21.2 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.1.4] https://www.npmjs.com/package/@codatio/codat-ts/v/1.1.4 - typescript-client-sdk
- [PyPI v1.1.4] https://pypi.org/project/codatapi/1.1.4 - python-client-sdk
- [Go v1.1.4] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.1.4 - go-client-sdk

## Version 1.2.0
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.22.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.2.0] https://www.npmjs.com/package/@codatio/codat-ts/v/1.2.0 - typescript-client-sdk
- [PyPI v1.2.0] https://pypi.org/project/codatapi/1.2.0 - python-client-sdk
- [Go v1.2.0] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.2.0 - go-client-sdk

## Version 1.2.1
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.22.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.2.1] https://www.npmjs.com/package/@codatio/codat-ts/v/1.2.1 - typescript-client-sdk
- [PyPI v1.2.1] https://pypi.org/project/codatapi/1.2.1 - python-client-sdk
- [Go v1.2.1] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.2.1 - go-client-sdk

## Version 1.2.2
### Changes
Based on:
- OpenAPI Doc v1 https://api.codat.io/swagger/v1/swagger.json
- Speakeasy CLI 0.22.1 https://github.com/speakeasy-api/speakeasy
### Releases
- [NPM v1.2.2] https://www.npmjs.com/package/@codatio/codat-ts/v/1.2.2 - typescript-client-sdk
- [PyPI v1.2.2] https://pypi.org/project/codatapi/1.2.2 - python-client-sdk
- [Go v1.2.2] https://github.com/speakeasy-sdks/codat-sdks/releases/tag/v1.2.2 - go-client-sdk
7 changes: 4 additions & 3 deletions go-client-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func main() {
* `GetDataCompaniesCompanyIDAssessDataTypesDataTypeDataIntegrityStatus` - Gets match status for a given company and datatype.
* `GetDataCompaniesCompanyIDAssessDataTypesDataTypeDataIntegritySummaries` - Gets match summary for a given company and datatype, optionally restricted by a Codat query string.
* `GetDataCompaniesCompanyIDAssessExcel` - Returns the status of the latest report requested.
* `GetDataCompaniesCompanyIDAssessExcelDownload` - Download the Excel report to a local drive.
* `GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketing` - Gets the marketing metrics from an accounting source for a given company, over one or more periods of time.
* `GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountsCategories` - Get account categories (suggested and confirmed) for a company connection.
* `GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountsAccountIDCategories` - Gets the suggested and/or confirmed category for a specific account.
Expand Down Expand Up @@ -121,13 +122,13 @@ func main() {
### BankingAccounts
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingAccounts` - Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holding
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingAccounts` - Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holding
the accounts.
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingAccountsAccountID` - Gets a specified bank account for a given company
### BankingTransactionCategories
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingTransactionCategories` - Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingTransactionCategories` - Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction
activity.
* `GetCompaniesCompanyIDConnectionsConnectionIDDataBankingTransactionCategoriesTransactionCategoryID` - Gets a specified bank transaction category for a given company
Expand Down Expand Up @@ -219,7 +220,7 @@ activity.
* `GetCompaniesCompanyIDSyncSettings`
* `PostCompanies` - Initiate the process of onboarding a new company on the Codat platform
* `PostCompaniesCompanyIDSyncSettings`
* `PutCompaniesCompanyID` - Update a company with a new name
* `PutCompaniesCompanyID` - Update a company with a new name and optional description
* `PutCompaniesCompanyIDSettings` - Update settings on a single company.
### Connection
Expand Down
42 changes: 42 additions & 0 deletions go-client-sdk/assess.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,48 @@ func (s *Assess) GetDataCompaniesCompanyIDAssessExcel(ctx context.Context, reque
return res, nil
}

// GetDataCompaniesCompanyIDAssessExcelDownload - Download the Excel report to a local drive.
func (s *Assess) GetDataCompaniesCompanyIDAssessExcelDownload(ctx context.Context, request operations.GetDataCompaniesCompanyIDAssessExcelDownloadRequest) (*operations.GetDataCompaniesCompanyIDAssessExcelDownloadResponse, error) {
baseURL := s._serverURL
url := utils.GenerateURL(ctx, baseURL, "/data/companies/{companyId}/assess/excel/download", request.PathParams)

req, err := http.NewRequestWithContext(ctx, "GET", url, nil)
if err != nil {
return nil, fmt.Errorf("error creating request: %w", err)
}

utils.PopulateQueryParams(ctx, req, request.QueryParams)

client := utils.ConfigureSecurityClient(s._defaultClient, request.Security)

httpRes, err := client.Do(req)
if err != nil {
return nil, fmt.Errorf("error sending request: %w", err)
}
defer httpRes.Body.Close()

contentType := httpRes.Header.Get("Content-Type")

res := &operations.GetDataCompaniesCompanyIDAssessExcelDownloadResponse{
StatusCode: int64(httpRes.StatusCode),
ContentType: contentType,
}
switch {
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out []byte
if err := utils.UnmarshalJsonFromResponseBody(httpRes.Body, &out); err != nil {
return nil, err
}

res.GetDataCompaniesCompanyIDAssessExcelDownload200ApplicationJSONBinaryString = out
}
}

return res, nil
}

// GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketing - Gets the marketing metrics from an accounting source for a given company, over one or more periods of time.
func (s *Assess) GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketing(ctx context.Context, request operations.GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketingRequest) (*operations.GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketingResponse, error) {
baseURL := s._serverURL
Expand Down
2 changes: 1 addition & 1 deletion go-client-sdk/companies.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (s *Companies) PostCompaniesCompanyIDSyncSettings(ctx context.Context, requ
return res, nil
}

// PutCompaniesCompanyID - Update a company with a new name
// PutCompaniesCompanyID - Update a company with a new name and optional description
func (s *Companies) PutCompaniesCompanyID(ctx context.Context, request operations.PutCompaniesCompanyIDRequest) (*operations.PutCompaniesCompanyIDResponse, error) {
baseURL := s._serverURL
url := utils.GenerateURL(ctx, baseURL, "/companies/{companyId}", request.PathParams)
Expand Down
6 changes: 3 additions & 3 deletions go-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
management:
openapi-checksum: 255ceb6a6ce7baeaa2fdefcaab818be9
openapi-checksum: 1c15f63acec2d49a75c006658dc0e96f
openapi-version: v1
speakeasy-version: 0.21.0
speakeasy-version: 0.22.1
go:
version: 1.1.0
version: 1.2.2
packagename: github.com/speakeasy-sdks/codat-sdks/go-client-sdk
baseserverurl: https://api.codat.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package operations

import (
"github.com/speakeasy-sdks/codat-sdks/go-client-sdk/pkg/models/shared"
)

type GetDataCompaniesCompanyIDAssessExcelDownloadPathParams struct {
CompanyID string `pathParam:"style=simple,explode=false,name=companyId"`
}

type GetDataCompaniesCompanyIDAssessExcelDownloadQueryParams struct {
ReportType *string `queryParam:"style=form,explode=true,name=reportType"`
}

type GetDataCompaniesCompanyIDAssessExcelDownloadSecurity struct {
CodatLogin *shared.SchemeCodatLogin `security:"scheme,type=oauth2"`
APIKeyAuth *shared.SchemeAPIKeyAuth `security:"scheme,type=apiKey,subtype=header"`
}

type GetDataCompaniesCompanyIDAssessExcelDownloadRequest struct {
PathParams GetDataCompaniesCompanyIDAssessExcelDownloadPathParams
QueryParams GetDataCompaniesCompanyIDAssessExcelDownloadQueryParams
Security GetDataCompaniesCompanyIDAssessExcelDownloadSecurity
}

type GetDataCompaniesCompanyIDAssessExcelDownloadResponse struct {
ContentType string
StatusCode int64
GetDataCompaniesCompanyIDAssessExcelDownload200ApplicationJSONBinaryString []byte
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type PutCompaniesCompanyIDSecurity struct {

type PutCompaniesCompanyIDRequest struct {
PathParams PutCompaniesCompanyIDPathParams
Request *shared.CodatPublicAPIModelsCompanyRenameCompanyModel `request:"mediaType=application/json"`
Request *shared.CodatPublicAPIModelsCompanyUpdateCompanyModel `request:"mediaType=application/json"`
Security PutCompaniesCompanyIDSecurity
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package shared
type CodatDataContractsPushPushChangeTypeEnum string

const (
CodatDataContractsPushPushChangeTypeEnumUnknown CodatDataContractsPushPushChangeTypeEnum = "Unknown"
CodatDataContractsPushPushChangeTypeEnumCreated CodatDataContractsPushPushChangeTypeEnum = "Created"
CodatDataContractsPushPushChangeTypeEnumModified CodatDataContractsPushPushChangeTypeEnum = "Modified"
CodatDataContractsPushPushChangeTypeEnumDeleted CodatDataContractsPushPushChangeTypeEnum = "Deleted"
CodatDataContractsPushPushChangeTypeEnumUnknown CodatDataContractsPushPushChangeTypeEnum = "Unknown"
CodatDataContractsPushPushChangeTypeEnumCreated CodatDataContractsPushPushChangeTypeEnum = "Created"
CodatDataContractsPushPushChangeTypeEnumModified CodatDataContractsPushPushChangeTypeEnum = "Modified"
CodatDataContractsPushPushChangeTypeEnumDeleted CodatDataContractsPushPushChangeTypeEnum = "Deleted"
CodatDataContractsPushPushChangeTypeEnumAttachmentUploaded CodatDataContractsPushPushChangeTypeEnum = "AttachmentUploaded"
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package shared

type CodatDataContractsPushPushOperationChange struct {
RecordRef *CodatDataContractsPushPushOperationRecordRef `json:"recordRef,omitempty"`
Type *CodatDataContractsPushPushChangeTypeEnum `json:"type,omitempty"`
AttachmentID *string `json:"attachmentId,omitempty"`
RecordRef *CodatDataContractsPushPushOperationRecordRef `json:"recordRef,omitempty"`
Type *CodatDataContractsPushPushChangeTypeEnum `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package shared

type CodatPublicAPIModelsCompanyAddCompanyModel struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
PlatformType *string `json:"platformType,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type CodatPublicAPIModelsCompanyCompany struct {
Created *time.Time `json:"created,omitempty"`
CreatedByUserName *string `json:"createdByUserName,omitempty"`
DataConnections []CodatPublicAPIModelsCompanyDataConnection `json:"dataConnections"`
Description *string `json:"description,omitempty"`
ID string `json:"id"`
LastSync *time.Time `json:"lastSync,omitempty"`
Name string `json:"name"`
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package shared

type CodatPublicAPIModelsCompanyUpdateCompanyModel struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type CodatPublicAPIModelsDataDataSet struct {
Completed *time.Time `json:"completed,omitempty"`
ConnectionID string `json:"connectionId"`
DataType *string `json:"dataType,omitempty"`
DatasetLogsURL *string `json:"datasetLogsUrl,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
ID string `json:"id"`
IsCompleted bool `json:"isCompleted"`
Expand Down
4 changes: 2 additions & 2 deletions go-client-sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func WithSecurity(security shared.Security) SDKOption {
func New(opts ...SDKOption) *SDK {
sdk := &SDK{
_language: "go",
_sdkVersion: "1.1.0",
_genVersion: "0.21.0",
_sdkVersion: "1.2.2",
_genVersion: "0.22.1",
}
for _, opt := range opts {
opt(sdk)
Expand Down
7 changes: 4 additions & 3 deletions python-client-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ if res.codat_data_contracts_datasets_account_transaction_paged_response is not N
* `get_data_companies_company_id_assess_data_types_data_type_data_integrity_status` - Gets match status for a given company and datatype.
* `get_data_companies_company_id_assess_data_types_data_type_data_integrity_summaries` - Gets match summary for a given company and datatype, optionally restricted by a Codat query string.
* `get_data_companies_company_id_assess_excel` - Returns the status of the latest report requested.
* `get_data_companies_company_id_assess_excel_download` - Download the Excel report to a local drive.
* `get_data_companies_company_id_connections_connection_id_assess_accounting_metrics_marketing` - Gets the marketing metrics from an accounting source for a given company, over one or more periods of time.
* `get_data_companies_company_id_connections_connection_id_assess_accounts_categories` - Get account categories (suggested and confirmed) for a company connection.
* `get_data_companies_company_id_connections_connection_id_assess_accounts_account_id_categories` - Gets the suggested and/or confirmed category for a specific account.
Expand Down Expand Up @@ -108,13 +109,13 @@ if res.codat_data_contracts_datasets_account_transaction_paged_response is not N

### BankingAccounts

* `get_companies_company_id_connections_connection_id_data_banking_accounts` - Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holding
* `get_companies_company_id_connections_connection_id_data_banking_accounts` - Gets a list of all bank accounts of the SMB, with rich data like balances, account numbers and institutions holding
the accounts.
* `get_companies_company_id_connections_connection_id_data_banking_accounts_account_id_` - Gets a specified bank account for a given company

### BankingTransactionCategories

* `get_companies_company_id_connections_connection_id_data_banking_transaction_categories` - Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction
* `get_companies_company_id_connections_connection_id_data_banking_transaction_categories` - Gets a list of hierarchical categories associated with a transaction for greater contextual meaning to transaction
activity.
* `get_companies_company_id_connections_connection_id_data_banking_transaction_categories_transaction_category_id_` - Gets a specified bank transaction category for a given company

Expand Down Expand Up @@ -206,7 +207,7 @@ activity.
* `get_companies_company_id_sync_settings`
* `post_companies` - Initiate the process of onboarding a new company on the Codat platform
* `post_companies_company_id_sync_settings`
* `put_companies_company_id_` - Update a company with a new name
* `put_companies_company_id_` - Update a company with a new name and optional description
* `put_companies_company_id_settings` - Update settings on a single company.

### Connection
Expand Down
6 changes: 3 additions & 3 deletions python-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
management:
openapi-checksum: 255ceb6a6ce7baeaa2fdefcaab818be9
openapi-checksum: 1c15f63acec2d49a75c006658dc0e96f
openapi-version: v1
speakeasy-version: 0.21.0
speakeasy-version: 0.22.1
python:
version: 1.1.0
version: 1.2.2
packagename: codatapi
author: codatio
baseserverurl: https://api.codat.io
2 changes: 1 addition & 1 deletion python-client-sdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="codatapi",
version="1.1.0",
version="1.2.2",
author="codatio",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
25 changes: 25 additions & 0 deletions python-client-sdk/src/sdk/assess.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,31 @@ def get_data_companies_company_id_assess_excel(self, request: operations.GetData
return res


def get_data_companies_company_id_assess_excel_download(self, request: operations.GetDataCompaniesCompanyIDAssessExcelDownloadRequest) -> operations.GetDataCompaniesCompanyIDAssessExcelDownloadResponse:
r"""Download the Excel report to a local drive.
"""

base_url = self._server_url

url = utils.generate_url(base_url, "/data/companies/{companyId}/assess/excel/download", request.path_params)

query_params = utils.get_query_params(request.query_params)

client = utils.configure_security_client(self._client, request.security)

r = client.request("GET", url, params=query_params)
content_type = r.headers.get("Content-Type")

res = operations.GetDataCompaniesCompanyIDAssessExcelDownloadResponse(status_code=r.status_code, content_type=content_type)

if r.status_code == 200:
if utils.match_content_type(content_type, "application/json"):
out = utils.unmarshal_json(r.text, Optional[bytes])
res.get_data_companies_company_id_assess_excel_download_200_application_json_binary_string = out

return res


def get_data_companies_company_id_connections_connection_id_assess_accounting_metrics_marketing(self, request: operations.GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketingRequest) -> operations.GetDataCompaniesCompanyIDConnectionsConnectionIDAssessAccountingMetricsMarketingResponse:
r"""Gets the marketing metrics from an accounting source for a given company, over one or more periods of time.
"""
Expand Down
Loading

0 comments on commit 2cf32c6

Please sign in to comment.