SurfSense/surfsense_web/lib/connectors-marketing/index.ts
CREDO23 ca317c4686 Merge remote-tracking branch 'upstream/dev' into feature-walmart-scraper
# Conflicts:
#	docker/.env.example
#	surfsense_backend/app/capabilities/core/billing.py
#	surfsense_backend/app/capabilities/core/types.py
#	surfsense_backend/app/config/__init__.py
#	surfsense_mcp/mcp_server/features/scrapers/__init__.py
#	surfsense_web/content/docs/connectors/index.mdx
#	surfsense_web/content/docs/connectors/native/index.mdx
#	surfsense_web/content/docs/how-to/mcp-server.mdx
2026-07-21 02:42:41 +02:00

43 lines
1.1 KiB
TypeScript

import { amazon } from "./amazon";
import { googleMaps } from "./google-maps";
import { googleSearch } from "./google-search";
import { indeed } from "./indeed";
import { instagram } from "./instagram";
import { reddit } from "./reddit";
import { tiktok } from "./tiktok";
import type { ConnectorPageContent } from "./types";
import { walmart } from "./walmart";
import { webCrawl } from "./web-crawl";
import { youtube } from "./youtube";
export type { ConnectorPageContent } from "./types";
/** Registry order controls sitemap and cross-link ordering. */
const CONNECTOR_LIST: ConnectorPageContent[] = [
reddit,
youtube,
instagram,
tiktok,
googleMaps,
googleSearch,
indeed,
amazon,
walmart,
webCrawl,
];
const CONNECTORS_BY_SLUG: Record<string, ConnectorPageContent> = Object.fromEntries(
CONNECTOR_LIST.map((c) => [c.slug, c])
);
export function getConnector(slug: string): ConnectorPageContent | undefined {
return CONNECTORS_BY_SLUG[slug];
}
export function getAllConnectors(): ConnectorPageContent[] {
return CONNECTOR_LIST;
}
export function getAllConnectorSlugs(): string[] {
return CONNECTOR_LIST.map((c) => c.slug);
}