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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/src/queries/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/src/queries/schema/schema-general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7826,6 +7826,7 @@ export const externalDataSources = [
'Campfire',
'Crisp',
'Kommo',
'GoogleMerchantCenter',
'Axiom',
'Plivo',
'DataForSEO',
Expand Down
1 change: 1 addition & 0 deletions posthog/schema_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,7 @@ class ExternalDataSourceType(StrEnum):
CAMPFIRE = "Campfire"
CRISP = "Crisp"
KOMMO = "Kommo"
GOOGLE_MERCHANT_CENTER = "GoogleMerchantCenter"
AXIOM = "Axiom"
PLIVO = "Plivo"
DATA_FOR_SEO = "DataForSEO"
Expand Down
2 changes: 2 additions & 0 deletions products/data_warehouse/frontend/generated/api.schemas.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ export interface sourceCatalogLogicMeta {
| 'GoogleDirectory'
| 'GoogleDrive'
| 'GoogleForms'
| 'GoogleMerchantCenter'
| 'GooglePageSpeedInsights'
| 'GooglePlayConsole'
| 'GoogleSearchConsole'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ export interface sourceWizardLogicActions {
| 'GoogleDirectory'
| 'GoogleDrive'
| 'GoogleForms'
| 'GoogleMerchantCenter'
| 'GooglePageSpeedInsights'
| 'GooglePlayConsole'
| 'GoogleSearchConsole'
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
0115_scaffold_four_requested_sources
0116_google_merchant_center_source
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ doesn't conflict with concurrent PRs.
- google_directory
- google_drive
- google_forms
- google_merchant_center
- google_play_console
- google_tasks
- google_workspace_admin_reports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
from .google_directory.source import GoogleDirectorySource
from .google_drive.source import GoogleDriveSource
from .google_forms.source import GoogleFormsSource
from .google_merchant_center.source import GoogleMerchantCenterSource
from .google_pagespeed_insights.source import GooglePageSpeedInsightsSource
from .google_play_console.source import GooglePlayConsoleSource
from .google_search_console.source import GoogleSearchConsoleSource
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file is automatically generated from `SourceRegistry.get_all_sources()`
# Do not edit manually - run `pnpm generate:source-configs` to regenerate.

from products.warehouse_sources.backend.temporal.data_imports.sources.common import config


@config.config
class GoogleMerchantCenterSourceConfig(config.Config):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from typing import cast

from posthog.schema import (
DataWarehouseSourceCategory,
ExternalDataSourceType as SchemaExternalDataSourceType,
SourceConfig,
)

from products.warehouse_sources.backend.temporal.data_imports.sources.common.base import FieldType, SimpleSource
from products.warehouse_sources.backend.temporal.data_imports.sources.common.registry import SourceRegistry
from products.warehouse_sources.backend.temporal.data_imports.sources.generated_configs.googlemerchantcenter import (
GoogleMerchantCenterSourceConfig,
)
from products.warehouse_sources.backend.types import ExternalDataSourceType


@SourceRegistry.register
class GoogleMerchantCenterSource(SimpleSource[GoogleMerchantCenterSourceConfig]):
@property
def source_type(self) -> ExternalDataSourceType:
return ExternalDataSourceType.GOOGLEMERCHANTCENTER

@property
def get_source_config(self) -> SourceConfig:
return SourceConfig(
name=SchemaExternalDataSourceType.GOOGLE_MERCHANT_CENTER,
category=DataWarehouseSourceCategory.E_COMMERCE,
label="Google Merchant Center",
iconPath="/static/services/google_merchant_center.png",
fields=cast(list[FieldType], []),
unreleasedSource=True,
)
1 change: 1 addition & 0 deletions products/warehouse_sources/backend/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,7 @@ class ExternalDataSourceType(models.TextChoices):
ODOO = "Odoo", "Odoo"
AIRBRIDGE = "Airbridge", "Airbridge"
SNOVIO = "Snovio", "Snovio"
GOOGLEMERCHANTCENTER = "GoogleMerchantCenter", "GoogleMerchantCenter"


# Maps a source type to the direct-SQL engine that can query it live. A source type is only
Expand Down
23 changes: 16 additions & 7 deletions products/warehouse_sources/frontend/generated/api.schemas.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 16 additions & 7 deletions services/mcp/src/api/generated.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions services/mcp/src/generated/warehouse_sources/api.ts

Large diffs are not rendered by default.

Loading