AniLink - v3.1.0
    Preparing search index...

    Interface OperationEntry<TOperation, TName>

    One declarative wiring entry.

    The bound method name is always present on the entry: op copies the facade key (the common case where the method shares the key's name) and opAs carries an explicit override. Wiring therefore never falls back to a stringly-typed name default; it reads the resolved OperationEntry.methodName constant directly.

    interface OperationEntry<
        TOperation extends OperationConstructor,
        TName extends string = string,
    > {
        alwaysKeys: readonly string[];
        fieldsEnabled: boolean;
        methodName: string;
        name: TName;
        operationClass: TOperation;
    }

    Type Parameters

    • TOperation extends OperationConstructor

      The operation class implementing this entry; must satisfy the shared OperationConstructor contract.

    • TName extends string = string

      The literal facade key this entry is exposed under.

    Index
    alwaysKeys: readonly string[]

    Keys selected by the operation even when callers request a field subset.

    fieldsEnabled: boolean

    Whether the operation accepts a fields selection option and therefore gets the three-overload treatment in the generated facade groups.

    Declared here instead of inferred from the operation class's imports so the fields-enabled set is discoverable from the registry itself; the facade generator cross-checks the flag against the class's schemas/selection/ imports and fails generation on disagreement.

    methodName: string

    The async method on OperationEntry.operationClass that is bound and exposed on the facade. Always set: op defaults it to the facade key, opAs carries an explicit override.

    name: TName

    The facade key the bound method is exposed under (e.g. "media"). Carried as a literal so the registry can derive exhaustive key unions for compile-time parity checks against the facade group types.

    operationClass: TOperation

    The operation class. Constructed once per AniLink instance with the shared auth token and transport options.