:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from dataclasses import field
from products.warehouse_sources.sources.sdk import IncrementalField, frozen
BASE_URL = "https://my.sevdesk.de/api"
PAGE_SIZE = 100
REQUEST_TIMEOUT_SECONDS = (10.0, 60.0)
AUTH_ERROR = "Your sevDesk API token is invalid or expired. Generate a new token in sevDesk and reconnect."
PERMISSION_ERROR = "Your sevDesk user cannot access this table. Check the user's permissions in sevDesk."
@frozen
class SevdeskEndpoint:
path: str
primary_keys: tuple[str, ...] = ("id",)
partition_key: str = "create"
params: dict[str, str] = field(default_factory=dict)
ENDPOINTS: dict[str, SevdeskEndpoint] = {
"Invoice": SevdeskEndpoint(path="Invoice", params={"showAll": "true"}),
"InvoicePos": SevdeskEndpoint(path="InvoicePos"),
"Voucher": SevdeskEndpoint(path="Voucher"),
"VoucherPos": SevdeskEndpoint(path="VoucherPos"),
"Order": SevdeskEndpoint(path="Order"),
"OrderPos": SevdeskEndpoint(path="OrderPos"),
"CreditNote": SevdeskEndpoint(path="CreditNote"),
"CreditNotePos": SevdeskEndpoint(path="CreditNotePos"),
"Contact": SevdeskEndpoint(path="Contact"),
"Part": SevdeskEndpoint(path="Part"),
"CheckAccount": SevdeskEndpoint(path="CheckAccount"),
"CheckAccountTransaction": SevdeskEndpoint(path="CheckAccountTransaction"),
}
# Document-date windows miss edits to older documents; update filters need account-level verification.
INCREMENTAL_FIELDS: dict[str, list[IncrementalField]] = {}