diff --git a/package.json b/package.json index bfc3072..1e09159 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/IGBInstance.ts b/src/IGBInstance.ts index b0ee019..c62b09e 100644 --- a/src/IGBInstance.ts +++ b/src/IGBInstance.ts @@ -89,4 +89,5 @@ export interface IGBInstance { adminPass: string; translatorKey: string; translatorEndpoint: string; + params: string; } diff --git a/src/IGBPackage.ts b/src/IGBPackage.ts index b45a4d4..b5b2365 100644 --- a/src/IGBPackage.ts +++ b/src/IGBPackage.ts @@ -74,4 +74,12 @@ export interface IGBPackage{ * Called in each new session. */ onNewSession(min: GBMinInstance, step: GBDialogStep): Promise + + /** + * Exchange data between BotServer and .gbapp/.gblib + * @param kind 'newMessage', 'getBroadcast', 'getKeywords' + * @param data + */ + onExchangeData (min: GBMinInstance, kind: string, data: any); + } \ No newline at end of file