StoreInboxMessage: (<T>(aggregateId, messagingSettings, payload, client, optionalData?) => Promise<void>)

Type declaration

    • <T>(aggregateId, messagingSettings, payload, client, optionalData?): Promise<void>
    • Function to store the transactional inbox message

      Type Parameters

      • T

      Parameters

      • aggregateId: string

        The (database) ID of the aggregate type or use the const UNKNOWN_AGGREGATE_ID or MULTIPLE_AGGREGATE_IDS values.

      • messagingSettings: Pick<MessagingSettings, "messageType" | "aggregateType">

        The messaging related settings object

      • payload: T

        The payload of the message

      • client: DatabaseClient

        The database client to use to store the message

      • Optional optionalData: OptionalInboxData

        Add additional data to the message that is going to be stored

      Returns Promise<void>

Generated using TypeDoc