jmap-kit
    Preparing search index...

    Class Invocation<TArgs>Abstract

    Base class for invocations.

    This class is not meant to be constructed directly. Instead, use one of the capabilities subclasses, or extend it to build a new capability.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Accessors

    • get id(): symbol

      Get the internal identifier for the invocation

      The internal identifier is a unique symbol used to identify this invocation instance.

      Returns symbol

    Methods

    • Resolve the invocation into a JMAP request invocation tuple.

      Converts internal ResultReference arguments into their wire format (#property keys with resolved resultOf ids) and produces the [name, arguments, methodCallId] tuple expected by the JMAP protocol.

      Parameters

      • id: string

        The method call id to assign to this invocation in the request

      • lookupId: (id: symbol) => string | undefined

        A function that resolves an invocation's internal symbol id to the string method call id assigned in the request

      Returns JMAPRequestInvocation

      The resolved JMAP request invocation tuple

      If a result reference refers to an invocation whose id cannot be resolved