new(all): Added flexible interfaces.
This commit is contained in:
parent
3c4fd1f755
commit
8d15190289
3 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "1.5.3",
|
||||
"version": "1.5.4",
|
||||
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index",
|
||||
|
|
|
@ -89,4 +89,5 @@ export interface IGBInstance {
|
|||
adminPass: string;
|
||||
translatorKey: string;
|
||||
translatorEndpoint: string;
|
||||
params: string;
|
||||
}
|
||||
|
|
|
@ -74,4 +74,12 @@ export interface IGBPackage{
|
|||
* Called in each new session.
|
||||
*/
|
||||
onNewSession(min: GBMinInstance, step: GBDialogStep): Promise<void>
|
||||
|
||||
/**
|
||||
* Exchange data between BotServer and .gbapp/.gblib
|
||||
* @param kind 'newMessage', 'getBroadcast', 'getKeywords'
|
||||
* @param data
|
||||
*/
|
||||
onExchangeData (min: GBMinInstance, kind: string, data: any);
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue