Interface IActorDereferenceParseArgs<S, K, M>

interface IActorDereferenceParseArgs<
    S,
    K extends IParseMetadata = IParseMetadata,
    M extends IParseMetadata = IParseMetadata,
> {
    beforeActors?: Actor<
        IActionDereferenceParse<K>,
        IActorTest,
        IActorDereferenceParseOutput<S, M>,
        undefined,
    >[];
    bus: Bus<
        Actor<
            IActionDereferenceParse<K>,
            IActorTest,
            IActorDereferenceParseOutput<S, M>,
            undefined,
        >,
        IActionDereferenceParse<K>,
        IActorTest,
        IActorDereferenceParseOutput<S, M>,
        undefined,
    >;
    busFailMessage?: string;
    mediaMappings: Record<string, string>;
    mediatorDereference: MediatorDereference;
    mediatorParse: MediateMediaTyped<
        IActionParse<K>,
        IActorTest,
        IActorParseOutput<S, M>,
    >;
    mediatorParseMediatypes: MediateMediaTypes;
    name: string;
}

Type Parameters

Hierarchy (View Summary)

Properties

beforeActors?: Actor<
    IActionDereferenceParse<K>,
    IActorTest,
    IActorDereferenceParseOutput<S, M>,
    undefined,
>[]

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<
        IActionDereferenceParse<K>,
        IActorTest,
        IActorDereferenceParseOutput<S, M>,
        undefined,
    >,
    IActionDereferenceParse<K>,
    IActorTest,
    IActorDereferenceParseOutput<S, M>,
    undefined,
>

The bus this actor subscribes to.

busFailMessage?: string

The message that will be configured in the bus for reporting failures.

This message may be a template string that contains references to the executed action. For example, the following templated string is allowed: "RDF dereferencing failed: no actors could handle ${action.handle.mediaType}"

mediaMappings: Record<string, string>

A collection of mappings, mapping file extensions to their corresponding media type.

mediatorDereference: MediatorDereference
mediatorParse: MediateMediaTyped<
    IActionParse<K>,
    IActorTest,
    IActorParseOutput<S, M>,
>
mediatorParseMediatypes: MediateMediaTypes
name: string

The name for this actor.

{<rdf:subject>}