: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
feat(warehouse-sources): add hubspot forecasts and conversation threads tables (#126948)
Tom Owers55299af97b5e
diff --git a/posthog/models/integration/oauth.py b/posthog/models/integration/oauth.pyindex 1c377df51252..e611f25b05f7 100644--- a/posthog/models/integration/oauth.py+++ b/posthog/models/integration/oauth.py@@ -719,14 +719,15 @@ class OauthIntegration:# NOTE: these scopes are only available on certain hubspot plans and as such are optional.# crm.objects.leads.read is Sales Hub Pro+/Enterprise only — requesting it as a# mandatory scope would fail the whole authorization for portals that lack it.- # The owners/commerce/product scopes are the same story: the data warehouse- # source offers those tables, but the objects only exist on portals with the- # matching hub, so they stay optional and their tables start deselected.+ # The owners/commerce/product/forecast/conversation scopes are the same story: the+ # data warehouse source offers those tables, but the objects only exist on portals+ # with the matching hub, so they stay optional and their tables start deselected."optional_scope": ("analytics.behavioral_events.send behavioral_events.event_definitions.read_write ""crm.objects.leads.read crm.objects.owners.read crm.objects.line_items.read ""crm.objects.products.read crm.objects.invoices.read crm.objects.orders.read "- "crm.objects.subscriptions.read crm.objects.commercepayments.read"+ "crm.objects.subscriptions.read crm.objects.commercepayments.read "+ "crm.objects.forecasts.read conversations.read")},id_path="hub_id",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.mdindex c707c7ea22d0..c8871b8f9561 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md@@ -6110,6 +6110,17 @@ Diffed against: <https://github.com/hubplanner/API/tree/master/Sections>Note: Diffed the Sections/\*.md files in the official hubplanner/API repo against products/warehouse_sources/.../hubplanner/settings.py. The missing items are almost all lookup tables for IDs already present on bookings, projects and resources.+## HubSpot — gaps++Today (25): `calls`, `commerce_payments`, `communications`, `companies`, `contacts`, `conversation_threads`, `deals`, `emails`, `feedback_submissions`, `forecasts`, `invoices`, `leads`, `line_items`, `meetings`, `notes`, `orders`, `owners`, `pipeline_stages`, `pipelines`, `products`, `properties`, `quotes`, `subscriptions`, `tasks`, `tickets`++Diffed against: <https://api.hubspot.com/public/api/spec/v1/specs>++- [x] `/crm/objects/2026-09/forecasts` — forecast submissions per pipeline, team, and period, the pipeline-commit numbers sales leaders report on (medium). Added as `forecasts`, behind the optional `crm.objects.forecasts.read` scope.+- [x] `/conversations/conversations/2026-09/threads` (v3: `/conversations/v3/conversations/threads`) — inbox conversation threads with status, assignee, and contact (medium). Added as `conversation_threads`, behind the optional `conversations.read` scope.++Note: The wider HubSpot sweep lives in [COVERAGE_GAPS.md](COVERAGE_GAPS.md). These two came from the fall 2026 changelog and were checked against the 2026-09 Forecasts and Conversations specs in the catalog.+## HuggingFace — **thin**Today (8): `collections`, `dataset_tags`, `datasets`, `discussions`, `likes`, `model_tags`, `models`, `spaces`diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/generated_configs/hubspot.py b/products/warehouse_sources/backend/temporal/data_imports/sources/generated_configs/hubspot.pyindex a206682e08f0..9e40137c45de 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/generated_configs/hubspot.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/generated_configs/hubspot.py@@ -26,6 +26,7 @@ class HubspotCustomPropertiesConfig(config.Config):orders_properties: str | None = Nonesubscriptions_properties: str | None = Nonecommerce_payments_properties: str | None = None+ forecasts_properties: str | None = None@config.configdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/canonical_descriptions.pyindex 09b305e4743f..436233850bbf 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/canonical_descriptions.py@@ -238,6 +238,14 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"hs_lastmodifieddate": "Date any property on the payment was last modified.",},},+ "forecasts": {+ "description": "A forecast submission: the amount a user or team commits to closing for a pipeline and period.",+ "docs_url": "https://developers.hubspot.com/docs/api-reference/latest/crm/objects/forecasts/guide",+ "columns": {+ "hs_object_id": "HubSpot's unique internal identifier for the forecast submission.",+ "hs_lastmodifieddate": "Date any property on the forecast submission was last modified.",+ },+ },"pipelines": {"description": "A pipeline that deals or tickets move through. Decodes the `pipeline` and `hs_pipeline` IDs carried on those records.","docs_url": "https://developers.hubspot.com/docs/api-reference/crm-pipelines-v3",@@ -323,4 +331,25 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"teams": "JSON string listing the teams the owner belongs to.",},},+ "conversation_threads": {+ "description": "A conversation thread in a HubSpot inbox, such as a chat, email, or form conversation with a contact.",+ "docs_url": "https://developers.hubspot.com/docs/api-reference/latest/conversations/conversations/guide",+ "columns": {+ "id": "The unique identifier for the conversation thread.",+ "inboxId": "The identifier of the inbox where the thread is located.",+ "status": "The status of the thread, OPEN or CLOSED.",+ "archived": "Whether the thread is archived.",+ "spam": "Whether the thread is marked as spam.",+ "assignedTo": "The identifier of the actor the thread is assigned to.",+ "associatedContactId": "The identifier of the contact associated with the thread.",+ "originalChannelId": "The identifier of the channel the thread started on.",+ "originalChannelAccountId": "The identifier of the channel account the thread started on.",+ "threadAssociations": "JSON string of the records associated with the thread, such as a ticket.",+ "createdAt": "Time the thread was created.",+ "closedAt": "Time the thread was closed, if it was.",+ "latestMessageTimestamp": "Time of the latest message in the thread.",+ "latestMessageReceivedTimestamp": "Time the latest message was received.",+ "latestMessageSentTimestamp": "Time the latest message was sent.",+ },+ },}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/helpers.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/helpers.pyindex 1badf1a7aed4..6f4bd78237ef 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/helpers.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/helpers.py@@ -138,6 +138,7 @@ def fetch_data(refresh_token: str,params: Optional[dict[str, Any]] = None,source_id: str | None = None,+ follow_after_cursor: bool = False,) -> Iterator[list[dict[str, Any]]]:"""Fetch data from HUBSPOT endpoint using a specified API key and yield the properties of each result.@@ -147,6 +148,8 @@ def fetch_data(endpoint (str): The endpoint to fetch data from, as a string.api_key (str): The API key to use for authentication, as a string.params: Optional dict of query params to include in the request+ follow_after_cursor: Page by re-sending `params` with `paging.next.after` instead of+ following `paging.next.link`, for APIs that document `link` as optional.Yields:A List of CRM object dicts@@ -223,7 +226,10 @@ def fetch_data(# Follow pagination links if they exist_next = _data.get("paging", {}).get("next", None)- if _next:+ if follow_after_cursor:+ after = (_next or {}).get("after")+ _data = _get(url, {**(params or {}), "after": after}) if after else None+ elif _next:_data = _get(_next["link"], None)else:_data = Nonediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/metadata.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/metadata.pyindex 97ec33832254..0dab9cc30066 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/metadata.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/metadata.py@@ -1,4 +1,5 @@-"""Fetchers for HubSpot's lookup tables: pipelines, pipeline stages, property definitions and owners.+"""Fetchers for HubSpot's tables that are not CRM objects: pipelines, pipeline stages, property+definitions, owners and conversation threads.These are not CRM objects — they have no `properties` envelope, no `/search` endpoint and noserver-side timestamp filter — so they are always a full refresh and reuse `helpers.fetch_data`@@ -24,6 +25,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.seHUBSPOT_METADATA_ENDPOINTS,PIPELINE_OBJECT_TYPES,apply_crm_api_version,+ conversation_threads_path,)# A portal that hasn't enabled an object answers 404 for that object type only. An object the@@ -46,9 +48,18 @@ def _iter_pages(logger: FilteringBoundLogger,*,skip_forbidden: bool = False,+ params: dict[str, Any] | None = None,+ follow_after_cursor: bool = False,) -> Iterator[list[dict[str, Any]]]:try:- yield from fetch_data(path, api_key, refresh_token, source_id=source_id)+ yield from fetch_data(+ path,+ api_key,+ refresh_token,+ params=params,+ source_id=source_id,+ follow_after_cursor=follow_after_cursor,+ )except HubspotForbiddenError:# A fan-out reads one path per object type, so an object the portal cannot read must not# fail the whole table. A single-endpoint table keeps the 403: nothing is left to sync,@@ -129,9 +140,31 @@ def get_owners_rows(yield [_normalize_row(owner, columns) for owner in page]+def get_conversation_threads_rows(+ api_key: str,+ refresh_token: str,+ logger: FilteringBoundLogger,+ source_id: str | None,+ api_version: str,+) -> Iterator[list[dict[str, Any]]]:+ columns = HUBSPOT_METADATA_ENDPOINTS["conversation_threads"].columns+ for page in _iter_pages(+ conversation_threads_path(api_version),+ api_key,+ refresh_token,+ source_id,+ logger,+ # Without it HubSpot leaves out `threadAssociations`; it does not filter the threads.+ params={"limit": 100, "association": "TICKET"},+ follow_after_cursor=True,+ ):+ yield [_normalize_row(thread, columns) for thread in page]++METADATA_FETCHERS = {"pipelines": get_pipelines_rows,"pipeline_stages": get_pipeline_stages_rows,"properties": get_properties_rows,"owners": get_owners_rows,+ "conversation_threads": get_conversation_threads_rows,}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/scopes.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/scopes.pyindex 004fad07795d..c16c7802c245 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/scopes.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/scopes.py@@ -15,11 +15,19 @@ from urllib.parse import urlsplitfrom posthog.dataclasses import frozenfrom posthog.temporal.common.errors import NonReportableError-from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.settings import HUBSPOT_ENDPOINTS+from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.settings import (+ HUBSPOT_ENDPOINTS,+ HUBSPOT_METADATA_ENDPOINTS,+)# Objects whose read scope is optional, mapped to the scope they need.SCOPE_GATED_OBJECTS: dict[str, str] = {- name: endpoint.required_scope for name, endpoint in HUBSPOT_ENDPOINTS.items() if endpoint.required_scope+ **{name: endpoint.required_scope for name, endpoint in HUBSPOT_ENDPOINTS.items() if endpoint.required_scope},+ **{+ name: endpoint.required_scope+ for name, endpoint in HUBSPOT_METADATA_ENDPOINTS.items()+ if endpoint.required_scope+ },}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/settings.pyindex 65c5a765114c..765bbff56033 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/settings.py@@ -1,7 +1,7 @@"""Hubspot source settings and constants"""import re-from dataclasses import dataclass, field+from dataclasses import fieldfrom datetime import datetimefrom typing import Optional@@ -40,6 +40,9 @@ def apply_crm_api_version(path: str, api_version: str) -> str:# Reading leads requires Sales Hub Professional or above, so `OauthIntegration.oauth_config_for_kind`# asks HubSpot for this scope as an optional one and a connection can be authorized without it.LEADS_SCOPE = "crm.objects.leads.read"+# Forecasts need Sales or Service Hub Professional+, and existing connections lack both scopes.+FORECASTS_SCOPE = "crm.objects.forecasts.read"+CONVERSATIONS_SCOPE = "conversations.read"CONTACT = "contact"COMPANY = "company"@@ -105,11 +108,13 @@ ENDPOINTS = ("orders","subscriptions","commerce_payments",- # Lookup tables (see HUBSPOT_METADATA_ENDPOINTS) — not CRM objects.+ "forecasts",+ # Tables that are not CRM objects (see HUBSPOT_METADATA_ENDPOINTS)."pipelines","pipeline_stages","properties","owners",+ "conversation_threads",)# CRM search API constants — shared between windowing and pagination logic@@ -243,6 +248,7 @@ DEFAULT_PROPS = {"orders": BASE_OBJECT_PROPS,"subscriptions": BASE_OBJECT_PROPS,"commerce_payments": BASE_OBJECT_PROPS,+ "forecasts": BASE_OBJECT_PROPS,}@@ -455,13 +461,23 @@ HUBSPOT_ENDPOINTS: dict[str, HubspotEndpointConfig] = {should_sync_default=False,discover_all_properties=True,),+ "forecasts": HubspotEndpointConfig(+ name="forecasts",+ path="/crm/v3/objects/forecasts",+ associations=[],+ cursor_filter_property_field="hs_lastmodifieddate",+ incremental_fields=[_incremental_field("hs_lastmodifieddate")],+ should_sync_default=False,+ required_scope=FORECASTS_SCOPE,+ discover_all_properties=True,+ ),}-@dataclass+@frozenclass HubspotMetadataEndpointConfig:- """A HubSpot lookup table that is not a CRM object: no properties, no search endpoint, and no- server-side timestamp filter, so it is always a full refresh."""+ """A HubSpot table that is not a CRM object: no properties, no search endpoint, and no+ server-side timestamp filter on the last change, so it is always a full refresh."""name: strprimary_keys: list[str]@@ -469,6 +485,7 @@ class HubspotMetadataEndpointConfig:# this set so a portal that omits an optional field doesn't shift the table's schema.columns: list[str]should_sync_default: bool = True+ required_scope: Optional[str] = None# Object types whose pipelines HubSpot documents. Both read with scopes existing connections hold@@ -558,4 +575,37 @@ HUBSPOT_METADATA_ENDPOINTS: dict[str, HubspotMetadataEndpointConfig] = {],should_sync_default=False,),+ # The only server-side filter is the latest message time, so an incremental sync would miss a+ # thread that is closed or reassigned without a new message.+ "conversation_threads": HubspotMetadataEndpointConfig(+ name="conversation_threads",+ primary_keys=["id"],+ columns=[+ "id",+ "inboxId",+ "status",+ "archived",+ "spam",+ "assignedTo",+ "associatedContactId",+ "originalChannelId",+ "originalChannelAccountId",+ "threadAssociations",+ "createdAt",+ "closedAt",+ "latestMessageTimestamp",+ "latestMessageReceivedTimestamp",+ "latestMessageSentTimestamp",+ ],+ should_sync_default=False,+ required_scope=CONVERSATIONS_SCOPE,+ ),}+++def conversation_threads_path(api_version: str) -> str:+ """HubSpot publishes the Conversations API only as v3 and 2026-09, so an older date pin stays+ on v3."""+ if api_version == HUBSPOT_API_VERSION_2026_09:+ return f"/conversations/conversations/{api_version}/threads"+ return "/conversations/v3/conversations/threads"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_metadata.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_metadata.pyindex b25ddca9119f..dd4dc57f3ee5 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_metadata.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_metadata.py@@ -8,6 +8,7 @@ from unittest.mock import MagicMock, patchfrom requests.exceptions import HTTPErrorfrom products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.metadata import (+ get_conversation_threads_rows,get_owners_rows,get_pipeline_stages_rows,get_pipelines_rows,@@ -16,6 +17,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.mefrom products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.scopes import HubspotForbiddenErrorfrom products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.settings import (HUBSPOT_API_VERSION_2026_03,+ HUBSPOT_API_VERSION_2026_09,HUBSPOT_METADATA_ENDPOINTS,)@@ -67,14 +69,14 @@ def _patch_session(forbidden: set[str], rows_by_path: dict[str, list[dict[str, Areturn patch(_SESSION, new=lambda *_a, **_k: session)-def _call(fetcher: Any) -> list[dict[str, Any]]:+def _call(fetcher: Any, api_version: str = HUBSPOT_API_VERSION_2026_03) -> list[dict[str, Any]]:rows: list[dict[str, Any]] = []for page in fetcher(api_key="key",refresh_token="refresh",logger=MagicMock(),source_id="source-1",- api_version=HUBSPOT_API_VERSION_2026_03,+ api_version=api_version,):rows.extend(page)return rows@@ -121,6 +123,39 @@ class TestMetadataFetchers:assert {r["object_type"] for r in rows} == {readable_type}+ @pytest.mark.parametrize(+ "api_version,path",+ [+ (HUBSPOT_API_VERSION_2026_09, "/conversations/conversations/2026-09/threads"),+ # The Conversations API has no 2026-03 release, so that pin reads the v3 path.+ (HUBSPOT_API_VERSION_2026_03, "/conversations/v3/conversations/threads"),+ ],+ )+ def test_conversation_threads_pages_by_after_cursor(self, api_version: str, path: str) -> None:+ # The threads API documents `paging.next.link` as optional, so paging must not depend on it.+ pages = {+ None: {"results": [{"id": "1", "status": "OPEN"}], "paging": {"next": {"after": "c1"}}},+ "c1": {"results": [{"id": "2", "status": "CLOSED", "threadAssociations": {"associatedTicketId": "9"}}]},+ }+ requests: list[tuple[str, dict[str, Any] | None]] = []++ def _get(url: str, headers: Any = None, params: Any = None, timeout: Any = None) -> MagicMock: # noqa: ARG001+ requests.append((urlsplit(url).path, params))+ response = MagicMock()+ response.status_code = 200+ response.json.return_value = pages[(params or {}).get("after")]+ return response++ session = type("_S", (), {"get": staticmethod(_get)})()+ with patch(_SESSION, new=lambda *_a, **_k: session):+ rows = _call(get_conversation_threads_rows, api_version)++ params = {"limit": 100, "association": "TICKET"}+ assert requests == [(path, params), (path, {**params, "after": "c1"})]+ assert [r["id"] for r in rows] == ["1", "2"]+ assert rows[1]["threadAssociations"] == '{"associatedTicketId": "9"}'+ assert set(rows[0]) >= set(HUBSPOT_METADATA_ENDPOINTS["conversation_threads"].columns)+def test_owners_fails_the_table_when_the_grant_cannot_read_it(self) -> None:with _patch_session({"/crm/owners/2026-03"}, {}), pytest.raises(HubspotForbiddenError):_call(get_owners_rows)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_scopes.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_scopes.pyindex 6d8c7da37075..d8bf1f822bc0 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_scopes.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_hubspot_scopes.py@@ -20,7 +20,10 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.scmissing_scope_message,scope_gated_object_for_url,)-from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.settings import LEADS_SCOPE+from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.settings import (+ CONVERSATIONS_SCOPE,+ LEADS_SCOPE,+)from products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.source import HubspotSourcefrom products.warehouse_sources.backend.temporal.data_imports.sources.hubspot.test.test_source_routing import (_make_inputs,@@ -138,9 +141,17 @@ class TestScopeGatingInSource:else:assert expected_scope in (permissions["leads"] or "")- def test_sync_fails_with_an_actionable_error_when_the_scope_is_missing(self) -> None:+ @parameterized.expand(+ [+ ("crm_object", "leads", LEADS_SCOPE),+ ("non_crm_table", "conversation_threads", CONVERSATIONS_SCOPE),+ ]+ )+ def test_sync_fails_with_an_actionable_error_when_the_scope_is_missing(+ self, _name: str, schema_name: str, scope: str+ ) -> None:source = HubspotSource()- inputs = _make_inputs(schema_name="leads")+ inputs = _make_inputs(schema_name=schema_name)with (patch.object(source, "get_oauth_integration", return_value=_integration({"scopes": ["tickets"]})),@@ -154,4 +165,4 @@ class TestScopeGatingInSource:hubspot_source_mock.assert_not_called()friendly = HubspotSource().get_non_retryable_errors()[str(exc.value)]assert friendly is not None- assert LEADS_SCOPE in friendly+ assert scope in friendlydiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_source_routing.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_source_routing.pyindex 625f1d0234be..dc1b21df65cd 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_source_routing.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hubspot/test/test_source_routing.py@@ -38,7 +38,9 @@ def _make_inputs(should_use_incremental_field=should_use_incremental_field,db_incremental_field_last_value=db_incremental_field_last_value,db_incremental_field_earliest_value=None,- incremental_field=HUBSPOT_ENDPOINTS[schema_name].cursor_filter_property_field,+ incremental_field=(+ HUBSPOT_ENDPOINTS[schema_name].cursor_filter_property_field if schema_name in HUBSPOT_ENDPOINTS else None+ ),incremental_field_type=IncrementalFieldType.DateTime,job_id="job-1",logger=MagicMock(),