Skip to content
Open
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
4 changes: 3 additions & 1 deletion packages/api-client/src/posthog-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ export interface SignalSourceConfig {
| "retently"
| "appfigures"
| "appfollow"
| "judgeme_reviews";
| "judgeme_reviews"
| "intercom"
| "hubspot";
source_type:
| "session_analysis_cluster"
| "evaluation"
Expand Down
4 changes: 3 additions & 1 deletion packages/shared/src/analytics-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,9 @@ export interface SignalSourceConnectedProperties {
| "retently"
| "appfigures"
| "appfollow"
| "judgeme_reviews";
| "judgeme_reviews"
| "intercom"
| "hubspot";
/** True when this is a brand-new createSignalSourceConfig, false for re-enable of an existing config. */
is_first_connection: boolean;
/** True when the connection went through the DataSourceSetup wizard (warehouse OAuth path). */
Expand Down
28 changes: 26 additions & 2 deletions packages/shared/src/inbox-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export type SourceProduct =
| "retently"
| "appfigures"
| "appfollow"
| "judgeme_reviews";
| "judgeme_reviews"
| "intercom"
| "hubspot";

/**
* Products that render as a toggle in the Self-driving sources modal: the three PostHog-data
Expand Down Expand Up @@ -91,7 +93,9 @@ export type ToggleableSourceProduct =
| "retently"
| "appfigures"
| "appfollow"
| "judgeme_reviews";
| "judgeme_reviews"
| "intercom"
| "hubspot";

/** Signal record kind (backend `source_type`) for a warehouse-backed inbox source. */
export type SignalRecordKind =
Expand Down Expand Up @@ -457,6 +461,26 @@ export const EXTERNAL_INBOX_SOURCES: ExternalInboxSource[] = [
recordKind: "review",
setup: "dynamic",
},
// OAuth-connected support sources (the connect form's oauth field is rendered generically by
// DynamicSourceSetup — see the generic integration flow starter).
{
product: "intercom",
label: "Intercom",
description: CONVERSATION,
dwSourceType: "Intercom",
requiredTables: ["conversations"],
recordKind: "ticket",
setup: "dynamic",
},
{
product: "hubspot",
label: "HubSpot",
description: TICKET,
dwSourceType: "Hubspot",
requiredTables: ["tickets"],
recordKind: "ticket",
setup: "dynamic",
},
];

/** Issue-like records mutate (status/votes change), so their table needs full-refresh sync. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,6 @@ export const SOURCE_PRODUCT_META: Partial<
color: "var(--amber-9)",
label: "Judge.me",
},
intercom: { Icon: ChatsIcon, color: "var(--blue-9)", label: "Intercom" },
hubspot: { Icon: LifebuoyIcon, color: "var(--orange-9)", label: "HubSpot" },
};
Loading