-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full stack/refactor internal session vars - adapt backend code to bot…
…State data model (#1966) * chore(dev-template): remove warnings in Actions and sort imports * chore(dev-template): project changes regarding botState data model * chore(core): split data models into User, Session and BotState * chore(api): changes regarding botState in botonic/api * chore(core): core-bot and router logic to work with botState * chore(core): adapt tests to work with botState model, disabling handoff tests for 1.0 * Full stack/refactor internal session vars - adapt frontend code to botState data model (#1967) * chore(react): changes in webchat regarding move to botState model * refactor(core/api/dev-template): remove initial locale and minor fixes * refactor(react): remove locale from initial session and make use of merge func
- Loading branch information
1 parent
3b5fb3b
commit cce00af
Showing
48 changed files
with
752 additions
and
517 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { RoutePath } from './legacy-types' | ||
|
||
export interface BotState { | ||
botId: string | ||
isFirstInteraction: boolean | ||
isHandoff: boolean | ||
isShadowing: boolean | ||
lastRoutePath: RoutePath | ||
locale?: string | ||
retries: number | ||
botonicAction?: any | ||
} |
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,3 +1,5 @@ | ||
export * from './bot-state' | ||
export * from './events' | ||
export * from './legacy-types' | ||
export * from './session' | ||
export * from './user' |
Oops, something went wrong.