new(all): Added flexible interfaces.

This commit is contained in:
Rodrigo Rodriguez 2020-05-23 18:41:20 -03:00
parent 3c4fd1f755
commit 8d15190289
3 changed files with 10 additions and 1 deletions

View file

@ -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",

View file

@ -89,4 +89,5 @@ export interface IGBInstance {
adminPass: string;
translatorKey: string;
translatorEndpoint: string;
params: string;
}

View file

@ -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);
}