Member Junction
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    • Batch Apply All: schema + entity maps + field maps + sync via IntegrationApplyAllBatch

      Parameters

      • companyIntegrationID: string
      • sourceObjects: SourceObjectSelectionInput[]

      Returns Promise<ApplyAllResult>

    • Batch apply schema for multiple connectors — one RSU pipeline run

      Parameters

      • items: { CompanyIntegrationID: string; Objects: SchemaPreviewObjectInput[] }[]

      Returns Promise<
          {
              APIRestarted?: boolean;
              GitCommitSuccess?: boolean;
              Items?: {
                  CompanyIntegrationID: string;
                  Message: string;
                  Success: boolean;
                  Warnings?: string[];
              }[];
              Message: string;
              Steps?: {
                  DurationMs: number;
                  Message: string;
                  Name: string;
                  Status: string;
              }[];
              Success: boolean;
          },
      >

    • Execute the RSU pipeline for new entity maps — introspects, generates DDL, runs full pipeline

      Parameters

      • companyIntegrationID: string
      • objects: SchemaPreviewObjectInput[]

      Returns Promise<{ Message: string; Success: boolean }>

    • Auto-map all entities in a given schema to a company integration. For each entity in the schema that doesn't already have an entity map, creates an entity map (ExternalObjectName = BaseTable) and 1:1 field maps for every non-system column. Returns the count of maps created.

      Parameters

      • companyIntegrationID: string
      • schemaName: string
      • direction: "Bidirectional" | "Pull" | "Push" = 'Pull'

      Returns Promise<
          {
              EntityMapsCreated: number;
              Errors: string[];
              FieldMapsCreated: number;
          },
      >

    • Parameters

      • params: {
            CompanyIntegrationID: string;
            ConflictResolution?: "Manual" | "DestWins" | "MostRecent" | "SourceWins";
            DeleteBehavior?: "DoNothing" | "HardDelete" | "SoftDelete";
            EntityID: string;
            ExternalObjectLabel?: string;
            ExternalObjectName: string;
            Priority?: number;
            SyncDirection?: "Bidirectional" | "Pull" | "Push";
        }

      Returns Promise<MJCompanyIntegrationEntityMapEntity | null>

    • Parameters

      • params: {
            DestinationFieldLabel?: string;
            DestinationFieldName: string;
            Direction?: "Both" | "DestToSource" | "SourceToDest";
            EntityMapID: string;
            IsKeyField?: boolean;
            IsRequired?: boolean;
            Priority?: number;
            SourceFieldLabel?: string;
            SourceFieldName: string;
            TransformPipeline?: string | null;
        }

      Returns Promise<MJCompanyIntegrationFieldMapEntity | null>

    • Get the most recent run that touched a given entity

      Parameters

      • companyIntegrationID: string
      • entityID: string
      • Optionalprovider: IRunViewProvider | null

      Returns Promise<
          | {
              EndedAt: string
              | null;
              StartedAt: string | null;
              Status: string;
              TotalRecords: number;
          }
          | null,
      >

    • Lists every source object the external system exposes — thin catalog for the picker. No per-object describe; that runs later in ApplyAllBatch.

      Parameters

      • companyIntegrationID: string

      Returns Promise<DiscoveryResult<SourceObjectListItem[]>>

    • Preview source data from the external system via connector's FetchChanges

      Parameters

      • companyIntegrationID: string
      • objectName: string
      • limit: number = 5

      Returns Promise<Record<string, string | number | boolean | null>[]>

    • Generate DDL preview for creating tables from discovered objects

      Parameters

      • companyIntegrationID: string
      • objects: SchemaPreviewObjectInput[]
      • platform: string = 'sqlserver'

      Returns Promise<SchemaPreviewResult>

    • Run a directional sync directly via the GraphQL StartSync mutation.

      Parameters

      • companyIntegrationID: string
      • fullSync: boolean
      • syncDirection: "Bidirectional" | "Pull" | "Push"

      Returns Promise<{ Message: string; Success: boolean }>

    • Parameters

      • fieldMapID: string
      • updates: {
            DestinationFieldName?: string;
            Direction?: "Both" | "DestToSource" | "SourceToDest";
            IsKeyField?: boolean;
            IsRequired?: boolean;
            SourceFieldName?: string;
            Status?: "Active" | "Inactive";
            TransformPipeline?: string | null;
        }

      Returns Promise<boolean>