Source code for pyfivetran.shed

from __future__ import annotations # for | union syntax

from typing import TypedDict, Dict, Any, Optional

BASE_API_URL = 'https://api.fivetran.com'
API_VERSION = "v1"

[docs]class GeneralApiResponse(TypedDict): code: str | int message: Optional[str] data: Optional[Dict[str, Any]]
[docs]class ApiError(Exception):
[docs] def __inti__(self, msg: str): self.msg = msg
[docs] def __str__(self): return self.msg
[docs]class PaginatedApiResponse(GeneralApiResponse): next_cursor: Optional[str]