1
0
mirror of synced 2025-12-25 20:04:10 -05:00

Source Freshdesk: support incremental sync and add conversations and satisfaction ratings streams (#2052)

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
This commit is contained in:
Eugene K
2021-02-16 15:55:03 -03:00
committed by GitHub
parent 6a78cc327d
commit a45dbd3097
19 changed files with 1084 additions and 308 deletions

View File

@@ -30,7 +30,7 @@ from abc import ABC, abstractmethod
from typing import Any, Callable, Dict, Generator, List, Mapping, Tuple
import pkg_resources
from airbyte_protocol import AirbyteStream, SyncMode
from airbyte_protocol import AirbyteStream, ConfiguredAirbyteCatalog, ConfiguredAirbyteStream, SyncMode
from jsonschema import RefResolver
@@ -186,3 +186,10 @@ class BaseClient(StreamStateMixin, ABC):
@abstractmethod
def health_check(self) -> Tuple[bool, str]:
"""Check if service is up and running"""
def configured_catalog_from_client(client: BaseClient) -> ConfiguredAirbyteCatalog:
"""Helper to generate configured catalog for testing"""
catalog = ConfiguredAirbyteCatalog(streams=[ConfiguredAirbyteStream(stream=stream) for stream in client.streams])
return catalog