From 8d15190289f37cad83186cb8ae9f893149ee0a49 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 23 May 2020 18:41:20 -0300 Subject: [PATCH] new(all): Added flexible interfaces. --- package.json | 2 +- src/IGBInstance.ts | 1 + src/IGBPackage.ts | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) 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