Member Junction
    Preparing search index...

    Options for the creation/refresh pipeline run.

    interface ConnectorCreationPipelineOptions {
        ArtifactRootDir?: string;
        CompanyIntegration: MJCompanyIntegrationEntity;
        Connector: BaseIntegrationConnector;
        ConsoleMirror?: boolean;
        ContextUser: UserInfo;
        DeactivateAbsent?: boolean;
        IntrospectOptions?: IntrospectSchemaOptions;
        LLMInference?: LLMOneShotCallback;
        Provider?: IMetadataProvider;
        RunID?: string;
        SampleRowsByObject?: Record<string, Record<string, unknown>[]>;
        TriggerType?: "Scheduled" | "Manual" | "Webhook" | "Pipeline" | "Restart";
        UniversalPKConvention?: string;
    }
    Index

    Properties

    ArtifactRootDir?: string

    Directory for structured progress artifacts. Defaults to <cwd>/logs/integration-runs. Each run gets its own <runID>/ subdir containing manifest.json, progress.jsonl, result.json.

    CompanyIntegration: MJCompanyIntegrationEntity

    CompanyIntegration row to authenticate with.

    The connector instance to drive (already constructed by caller).

    ConsoleMirror?: boolean

    Mirror progress to console (default false).

    ContextUser: UserInfo

    User context for all entity operations.

    DeactivateAbsent?: boolean

    §7 — when true, this is a COMPREHENSIVE re-discovery: declared/discovered objects (and their fields) ABSENT from this run are deactivated (Status='Disabled', never deleted; reversible on a later rediscovery). Only set on a full-surface refresh — a scoped/partial discovery must leave it false so it never disables what it didn't look at. Threaded to PersistDiscoveredSchema.

    IntrospectOptions?: IntrospectSchemaOptions

    Optional subset filter — limits introspection to a named set of objects.

    LLMInference?: LLMOneShotCallback

    Optional one-shot LLM callback for the PK classifier's last-resort step.

    Optional metadata provider override (multi-provider scenarios).

    RunID?: string

    Optional explicit runID. When omitted, generated as connector-<ts>-<rand>. Supply your own when resuming a previously-killed run.

    SampleRowsByObject?: Record<string, Record<string, unknown>[]>

    Optional pre-fetched sample rows per object for statistical PK detection.

    TriggerType?: "Scheduled" | "Manual" | "Webhook" | "Pipeline" | "Restart"

    Trigger reason recorded in the manifest.

    UniversalPKConvention?: string

    Optional vendor-wide PK convention hint (e.g. "id" for HubSpot).