Skip to content

Commit

Permalink
new(all): Added flexible interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 23, 2020
1 parent 3c4fd1f commit 8d15190
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/IGBInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ export interface IGBInstance {
adminPass: string;
translatorKey: string;
translatorEndpoint: string;
params: string;
}
8 changes: 8 additions & 0 deletions src/IGBPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

0 comments on commit 8d15190

Please sign in to comment.