1 | import { Activity, PagedResult, TranscriptInfo, TranscriptStore } from 'botbuilder-core';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class FileTranscriptStore implements TranscriptStore {
|
18 | private static readonly PageSize;
|
19 | private readonly rootFolder;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | constructor(folder: string);
|
25 | /**
|
26 | * Log an activity to the transcript.
|
27 | * @param activity Activity being logged.
|
28 | */
|
29 | logActivity(activity: Activity): Promise<void>;
|
30 | /**
|
31 | * Get all activities associated with a conversation id (aka get the transcript).
|
32 | * @param channelId Channel Id.
|
33 | * @param conversationId Conversation Id.
|
34 | * @param continuationToken (Optional) Continuation token to page through results.
|
35 | * @param startDate (Optional) Earliest time to include.
|
36 | */
|
37 | getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>;
|
38 | /**
|
39 | * List all the logged conversations for a given channelId.
|
40 | * @param channelId Channel Id.
|
41 | * @param continuationToken (Optional) Continuation token to page through results.
|
42 | */
|
43 | listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>;
|
44 | /**
|
45 | * Delete a conversation and all of it's activities.
|
46 | * @param channelId Channel Id where conversation took place.
|
47 | * @param conversationId Id of the conversation to delete.
|
48 | */
|
49 | deleteTranscript(channelId: string, conversationId: string): Promise<void>;
|
50 | private saveActivity;
|
51 | private getActivityFilename;
|
52 | private getChannelFolder;
|
53 | private getTranscriptFolder;
|
54 | private sanitizeKey;
|
55 | }
|
56 | //# sourceMappingURL=fileTranscriptStore.d.ts.map |
\ | No newline at end of file |