-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(channels): read the conversation.started event (#282)
* chore(repo): stream layer * streamer * post service -> streamer * fix * fix(channels): readd the conversation.started event * fix
- Loading branch information
1 parent
49419ce
commit 145d4f4
Showing
10 changed files
with
159 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import { Conversation, Emitter } from '@botpress/messaging-base' | ||
import { Conversation, Emitter, uuid } from '@botpress/messaging-base' | ||
|
||
export enum ConversationEvents { | ||
Created | ||
Created, | ||
Started | ||
} | ||
|
||
export interface ConversationCreatedEvent { | ||
conversation: Conversation | ||
} | ||
|
||
export interface ConversationStartedEvent { | ||
conversationId: uuid | ||
} | ||
|
||
export class ConversationEmitter extends Emitter<{ | ||
[ConversationEvents.Created]: ConversationCreatedEvent | ||
[ConversationEvents.Started]: ConversationStartedEvent | ||
}> {} | ||
|
||
export type ConversationWatcher = Omit<ConversationEmitter, 'emit'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters