Member Junction
    Preparing search index...

    Refresh Query Extraction Re-establish saved queries' parameters, fields, entities and dependencies from their SQL and the database server, without changing the SQL: one query, or a selection by ID, name, category, entity read, or all. Optionally a dry run that reports the changes without writing. Requires Update on MJ: Queries and Create/Update/Delete on its child entities, and read access to every entity a query reads. Long-running, with per-query progress. Implemented by QueryRefreshExtractionServerOperation in @memberjunction/core-entities-server. GenerationType=Manual — the server body is supplied by a hand-authored subclass registered under 'Query.RefreshExtraction'. This generated base provides the typed contract only (client-safe).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ContractFingerprint: "ro_fp_3db4b7e8e79d83f6"

    Optional structural contract fingerprint emitted by CodeGen (or set by a hand-authored operation). Automatically forwarded on Execute when the caller didn't override options.contractFingerprint, allowing the server resolver to detect stale client bundles.

    ExecutionMode: "LongRunning" = ...

    Whether this operation is a plain Sync request/response or a LongRunning run.

    ExposeAsAgentTool?: boolean

    When true, exposes this operation for automatic discovery by MJ AI Agent tool adapters.

    ExposeAsMCPTool?: boolean

    When true, exposes this operation for automatic discovery by MJ MCP server tool adapters.

    OperationKey: "Query.RefreshExtraction"

    Stable registry key and wire token for this operation (e.g. RecordProcess.RunNow).

    RequiredScope: "query:refresh"

    Optional API-key scope string (e.g. recordprocess:execute) enforced for API-key / MCP callers by the server resolver. undefined means no scope gate; interactive users remain bounded by their entity permissions. Informational here — the server applies it.

    RequiresSystemUser: false

    When true, the server only permits the system user to invoke this operation.

    ToolDescription?: string

    Human/LLM-readable description when exposed as an Agent or MCP tool.

    ToolInputSchema?: Record<string, RemoteOpToolSchemaValue>

    Optional JSON-Schema object describing TInput when exposed as an Agent or MCP tool.

    Methods

    • Per-operation authorization hook, composed with (and applied after) the framework gates that the server resolver runs. Returns true by default. Override to enforce operation-specific rules against the input, acting user, and server transport context (e.g. context.requestOrigin).

      Parameters

      Returns Promise<boolean>

      True if the operation may proceed.