MemoryTranscriptStore class

The memory transcript store stores transcripts in volatile memory in a Map.

Remarks

Because this uses an unbounded volatile dictionary this should only be used for unit tests or non-production environments.

Methods

deleteTranscript(string, string)

Delete a specific conversation and all of it's activities.

getTranscriptActivities(string, string, string, Date)

Get activities from the memory transcript store.

listTranscripts(string, string)

List conversations in the channelId.

logActivity(Activity)

Log an activity to the transcript.

Method Details

deleteTranscript(string, string)

Delete a specific conversation and all of it's activities.

function deleteTranscript(channelId: string, conversationId: string): Promise<void>

Parameters

channelId

string

Channel Id where conversation took place.

conversationId

string

Id of the conversation to delete.

Returns

Promise<void>

A promise representing the async operation.

getTranscriptActivities(string, string, string, Date)

Get activities from the memory transcript store.

function getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>

Parameters

channelId

string

Channel Id.

conversationId

string

Conversation Id.

continuationToken

string

Continuation token to page through results.

startDate

Date

Earliest time to include.

Returns

Promise<PagedResult<Activity>>

A page of matching activities.

listTranscripts(string, string)

List conversations in the channelId.

function listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>

Parameters

channelId

string

Channel Id.

continuationToken

string

Continuation token to page through results.

Returns

A page of conversations for a channel from the store.

logActivity(Activity)

Log an activity to the transcript.

function logActivity(activity: Activity): void | Promise<void>

Parameters

activity

Activity

Activity to log.

Returns

void | Promise<void>

A promise representing the async operation.