Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 17 additions & 1 deletion common/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,20 @@ Based on:
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.17.0] https://pypi.org/project/codat-common/0.17.0 - common
- [PyPI v0.17.0] https://pypi.org/project/codat-common/0.17.0 - common

## 2023-05-19 00:16:44
### Changes
Based on:
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.18.0] https://pypi.org/project/codat-common/0.18.0 - common

## 2023-05-20 00:15:45
### Changes
Based on:
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
- Speakeasy CLI 1.36.1 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.18.1] https://pypi.org/project/codat-common/0.18.1 - common
4 changes: 2 additions & 2 deletions common/docs/pushdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Codat tries not to limit users to pushing to a very limited number of standard c

> **Supported Integrations**
>
> Check out our [Knowledge UI](https://knowledge.codat.io/) for integrations that support push (POST/PUT methods).
> Check out our [coverage explorer](https://knowledge.codat.io/) for integrations that support push (POST/PUT methods).

### Example Usage

Expand All @@ -38,7 +38,7 @@ s = codatcommon.CodatCommon(
req = operations.GetCreateUpdateModelOptionsByDataTypeRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
data_type=shared.DataTypeEnum.INVOICES,
data_type=shared.DataType.INVOICES,
)

res = s.push_data.get_model_options(req)
Expand Down
2 changes: 1 addition & 1 deletion common/docs/refreshdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ s = codatcommon.CodatCommon(
req = operations.CreatePullOperationRequest(
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
connection_id='8ca1ba92-8fc8-4167-82cb-739205929396',
data_type=shared.DataTypeEnum.INVOICES,
data_type=shared.DataType.INVOICES,
)

res = s.refresh_data.by_data_type(req)
Expand Down
8 changes: 4 additions & 4 deletions common/docs/settings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ req = operations.UpdateSyncSettingsRequestBody(
overrides_defaults=False,
settings=[
shared.SyncSetting(
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
data_type=shared.SyncSettingDataType.INVOICES,
fetch_on_first_link=False,
is_locked=False,
months_to_sync=24,
Expand All @@ -66,7 +66,7 @@ req = operations.UpdateSyncSettingsRequestBody(
sync_schedule=24,
),
shared.SyncSetting(
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
data_type=shared.SyncSettingDataType.INVOICES,
fetch_on_first_link=False,
is_locked=False,
months_to_sync=24,
Expand All @@ -76,7 +76,7 @@ req = operations.UpdateSyncSettingsRequestBody(
sync_schedule=24,
),
shared.SyncSetting(
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
data_type=shared.SyncSettingDataType.INVOICES,
fetch_on_first_link=False,
is_locked=False,
months_to_sync=24,
Expand All @@ -86,7 +86,7 @@ req = operations.UpdateSyncSettingsRequestBody(
sync_schedule=24,
),
shared.SyncSetting(
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
data_type=shared.SyncSettingDataType.INVOICES,
fetch_on_first_link=False,
is_locked=False,
months_to_sync=24,
Expand Down
18 changes: 9 additions & 9 deletions common/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ src/codatcommon/models/operations/__init__.py
src/codatcommon/models/shared/errormessage.py
src/codatcommon/models/shared/company.py
src/codatcommon/models/shared/connection.py
src/codatcommon/models/shared/dataconnectionstatus_enum.py
src/codatcommon/models/shared/sourcetype_enum.py
src/codatcommon/models/shared/dataconnectionstatus.py
src/codatcommon/models/shared/sourcetype.py
src/codatcommon/models/shared/dataconnectionerror.py
src/codatcommon/models/shared/companyrequestbody.py
src/codatcommon/models/shared/companies.py
Expand All @@ -60,9 +60,9 @@ src/codatcommon/models/shared/dataconnectionhistory.py
src/codatcommon/models/shared/integration.py
src/codatcommon/models/shared/datatypefeature.py
src/codatcommon/models/shared/supportedfeature.py
src/codatcommon/models/shared/featuretype_enum.py
src/codatcommon/models/shared/featurestate_enum.py
src/codatcommon/models/shared/datatype_enum.py
src/codatcommon/models/shared/featuretype.py
src/codatcommon/models/shared/featurestate.py
src/codatcommon/models/shared/datatype.py
src/codatcommon/models/shared/branding.py
src/codatcommon/models/shared/brandinglogo.py
src/codatcommon/models/shared/brandingimage.py
Expand All @@ -72,15 +72,15 @@ src/codatcommon/models/shared/integrations.py
src/codatcommon/models/shared/pushoption.py
src/codatcommon/models/shared/pushvalidationinfo.py
src/codatcommon/models/shared/pushfieldvalidation.py
src/codatcommon/models/shared/pushoptiontype_enum.py
src/codatcommon/models/shared/pushoptiontype.py
src/codatcommon/models/shared/pushoptionproperty.py
src/codatcommon/models/shared/pushoptionchoice.py
src/codatcommon/models/shared/pushoperation.py
src/codatcommon/models/shared/validation.py
src/codatcommon/models/shared/validationitem.py
src/codatcommon/models/shared/pushoperationstatus_enum.py
src/codatcommon/models/shared/pushoperationstatus.py
src/codatcommon/models/shared/pushoperationchange.py
src/codatcommon/models/shared/pushchangetype_enum.py
src/codatcommon/models/shared/pushchangetype.py
src/codatcommon/models/shared/pushoperationref.py
src/codatcommon/models/shared/pushhistoryresponse.py
src/codatcommon/models/shared/pushoperationsummary.py
Expand All @@ -90,7 +90,7 @@ src/codatcommon/models/shared/rule.py
src/codatcommon/models/shared/rules.py
src/codatcommon/models/shared/security.py
src/codatcommon/models/shared/companydataconnectionstatuschangedwebhook.py
src/codatcommon/models/shared/connectionstatus_enum.py
src/codatcommon/models/shared/connectionstatus.py
src/codatcommon/models/shared/datasynccompletedwebhook.py
src/codatcommon/models/shared/datasetdatachangedwebhook.py
src/codatcommon/models/shared/datasetstatuschangederrorwebhook.py
Expand Down
8 changes: 4 additions & 4 deletions common/gen.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
configVersion: 1.0.0
management:
docChecksum: 2d583c2582024747bb63521ccfa3160b
docChecksum: 57175a10c1f027b24b5699f013c125a6
docVersion: 2.1.0
speakeasyVersion: 1.34.0
generationVersion: 2.30.0
speakeasyVersion: 1.36.1
generationVersion: 2.31.0
generation:
sdkClassName: CodatCommon
singleTagPerOp: false
telemetryEnabled: true
python:
version: 0.17.0
version: 0.18.1
author: Speakeasy
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="codat-common",
version="0.17.0",
version="0.18.1",
author="Speakeasy",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
5 changes: 5 additions & 0 deletions common/src/codatcommon/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def create(self, request: shared.CompanyRequestBody, retries: Optional[utils.Ret
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -77,6 +78,7 @@ def delete(self, request: operations.DeleteCompanyRequest, retries: Optional[uti

url = utils.generate_url(operations.DeleteCompanyRequest, base_url, '/companies/{companyId}', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -117,6 +119,7 @@ def get(self, request: operations.GetCompanyRequest, retries: Optional[utils.Ret

url = utils.generate_url(operations.GetCompanyRequest, base_url, '/companies/{companyId}', request)
headers = {}
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -160,6 +163,7 @@ def list(self, request: operations.ListCompaniesRequest, retries: Optional[utils
url = base_url.removesuffix('/') + '/companies'
headers = {}
query_params = utils.get_query_params(operations.ListCompaniesRequest, request)
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -205,6 +209,7 @@ def update(self, request: operations.UpdateCompanyRequest, retries: Optional[uti
req_content_type, data, form = utils.serialize_request_body(request, "company_request_body", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
6 changes: 6 additions & 0 deletions common/src/codatcommon/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def create(self, request: operations.CreateDataConnectionRequest, retries: Optio
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -77,6 +78,7 @@ def delete(self, request: operations.DeleteCompanyConnectionRequest, retries: Op

url = utils.generate_url(operations.DeleteCompanyConnectionRequest, base_url, '/companies/{companyId}/connections/{connectionId}', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -117,6 +119,7 @@ def get(self, request: operations.GetCompanyConnectionRequest, retries: Optional

url = utils.generate_url(operations.GetCompanyConnectionRequest, base_url, '/companies/{companyId}/connections/{connectionId}', request)
headers = {}
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -160,6 +163,7 @@ def list(self, request: operations.ListCompanyConnectionsRequest, retries: Optio
url = utils.generate_url(operations.ListCompanyConnectionsRequest, base_url, '/companies/{companyId}/connections', request)
headers = {}
query_params = utils.get_query_params(operations.ListCompanyConnectionsRequest, request)
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -205,6 +209,7 @@ def unlink_connection(self, request: operations.UnlinkConnectionRequest, retries
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -250,6 +255,7 @@ def update_authorization(self, request: operations.UpdateConnectionAuthorization
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
3 changes: 3 additions & 0 deletions common/src/codatcommon/data_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def get(self, request: operations.GetCompanyDataStatusRequest, retries: Optional

url = utils.generate_url(operations.GetCompanyDataStatusRequest, base_url, '/companies/{companyId}/dataStatus', request)
headers = {}
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -73,6 +74,7 @@ def get_pull_operation(self, request: operations.GetPullOperationRequest, retrie

url = utils.generate_url(operations.GetPullOperationRequest, base_url, '/companies/{companyId}/data/history/{datasetId}', request)
headers = {}
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -116,6 +118,7 @@ def list_pull_operations(self, request: operations.ListPullOperationsRequest, re
url = utils.generate_url(operations.ListPullOperationsRequest, base_url, '/companies/{companyId}/data/history', request)
headers = {}
query_params = utils.get_query_params(operations.ListPullOperationsRequest, request)
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
3 changes: 3 additions & 0 deletions common/src/codatcommon/integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def get(self, request: operations.GetIntegrationRequest, retries: Optional[utils

url = utils.generate_url(operations.GetIntegrationRequest, base_url, '/integrations/{platformKey}', request)
headers = {}
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -73,6 +74,7 @@ def get_branding(self, request: operations.GetIntegrationsBrandingRequest, retri

url = utils.generate_url(operations.GetIntegrationsBrandingRequest, base_url, '/integrations/{platformKey}/branding', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -112,6 +114,7 @@ def list(self, request: operations.ListIntegrationsRequest, retries: Optional[ut
url = base_url.removesuffix('/') + '/integrations'
headers = {}
query_params = utils.get_query_params(operations.ListIntegrationsRequest, request)
headers['Accept'] = 'application/json;q=1, application/json;q=0'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import datatype_enum as shared_datatype_enum
from ..shared import datatype as shared_datatype
from ..shared import errormessage as shared_errormessage
from ..shared import pulloperation as shared_pulloperation
from typing import Optional
Expand All @@ -13,7 +13,7 @@
class CreatePullOperationRequest:

company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
data_type: shared_datatype_enum.DataTypeEnum = dataclasses.field(metadata={'path_param': { 'field_name': 'dataType', 'style': 'simple', 'explode': False }})
data_type: shared_datatype.DataType = dataclasses.field(metadata={'path_param': { 'field_name': 'dataType', 'style': 'simple', 'explode': False }})
r"""The key of a Codat data type"""
connection_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'connectionId', 'style': 'form', 'explode': True }})
r"""Optionally, provide a data connection id to only queue pull operations on that connection."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
class GetCompanyPushHistoryRequest:

company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
page: int = dataclasses.field(metadata={'query_param': { 'field_name': 'page', 'style': 'form', 'explode': True }})
r"""Page number. [Read more](https://docs.codat.io/using-the-api/paging)."""
order_by: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'orderBy', 'style': 'form', 'explode': True }})
r"""Field to order results by. [Read more](https://docs.codat.io/using-the-api/ordering-results)."""
page: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'page', 'style': 'form', 'explode': True }})
r"""Page number. [Read more](https://docs.codat.io/using-the-api/paging)."""
page_size: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': True }})
r"""Number of records to return in a page. [Read more](https://docs.codat.io/using-the-api/paging)."""
query: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'query', 'style': 'form', 'explode': True }})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import datatype_enum as shared_datatype_enum
from ..shared import datatype as shared_datatype
from ..shared import pushoption as shared_pushoption
from typing import Optional

Expand All @@ -13,7 +13,7 @@ class GetCreateUpdateModelOptionsByDataTypeRequest:

company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
connection_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'connectionId', 'style': 'simple', 'explode': False }})
data_type: shared_datatype_enum.DataTypeEnum = dataclasses.field(metadata={'path_param': { 'field_name': 'dataType', 'style': 'simple', 'explode': False }})
data_type: shared_datatype.DataType = dataclasses.field(metadata={'path_param': { 'field_name': 'dataType', 'style': 'simple', 'explode': False }})
r"""The key of a Codat data type"""


Expand Down
Loading