fix(all): GB Apps now can talk to the kb.gbapp and ask for data.

This commit is contained in:
Rodrigo Rodriguez 2020-04-01 15:43:14 -03:00
parent f8384742b2
commit 610b0d20c7
4 changed files with 11 additions and 5 deletions

View file

@ -33,6 +33,7 @@
"use strict"; "use strict";
import { IGBInstance } from "./IGBinstance"; import { IGBInstance } from "./IGBinstance";
import { GBMinInstance } from "./GBMinInstance";
export interface IGBAdminService { export interface IGBAdminService {
acquireElevatedToken(instanceId): Promise<string>; acquireElevatedToken(instanceId): Promise<string>;
@ -42,8 +43,9 @@ export interface IGBAdminService {
authenticatorAuthorityHostUrl: string, authenticatorAuthorityHostUrl: string,
authenticatorClientId: string, authenticatorClientId: string,
authenticatorClientSecret: string authenticatorClientSecret: string
): Promise<IGBInstance>; ): Promise<IGBInstance>;
getValue(instanceId: number, key: string): Promise<string>; getValue(instanceId: number, key: string): Promise<string>;
setValue(instanceId: number, key: string, value: string): void; setValue(instanceId: number, key: string, value: string): void;
publish(min: GBMinInstance, packageName: string, republish: boolean): Promise<void>;
} }

View file

@ -38,7 +38,7 @@ import { GBDialogStep } from "./GBDialogStep";
export interface IGBConversationalService { export interface IGBConversationalService {
sendEvent(step: GBDialogStep, name: string, value: Object); sendEvent(step: GBDialogStep, name: string, value: Object);
sendEvent(step: GBDialogStep, name: string, value: Object); sendEvent(step: GBDialogStep, name: string, value: Object);
sendFile(min: GBMinInstance, step: GBDialogStep, url: string, caption: string); sendFile(min: GBMinInstance, step: GBDialogStep, mobile: string, url: string, caption: string);
sendAudio(min: GBMinInstance, step: GBDialogStep, url: string); sendAudio(min: GBMinInstance, step: GBDialogStep, url: string);
sendSms(min: GBMinInstance, mobile: string, text: string); sendSms(min: GBMinInstance, mobile: string, text: string);
routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<boolean>; routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise<boolean>;

View file

@ -33,8 +33,11 @@
"use strict"; "use strict";
import { IGBInstance } from "./IGBinstance"; import { IGBInstance } from "./IGBinstance";
import { GBMinInstance } from "./GBMinInstance";
export interface IGBDeployer { export interface IGBDeployer {
undeployPackageFromLocalPath(instance: IGBInstance, localPath: string): Promise<void>;
deployBlankBot(botId: string); deployPackage(min: GBMinInstance, localPath: string): Promise<void>;
deployBlankBot(botId: string): Promise<IGBInstance>;
rebuildIndex(instance: IGBInstance, searchSchema: any): Promise<void>;
} }

View file

@ -44,5 +44,6 @@ export { GBService } from "./GBService";
export { GBMinInstance } from "./GBMinInstance"; export { GBMinInstance } from "./GBMinInstance";
export { IGBAdminService } from "./IGBAdminService"; export { IGBAdminService } from "./IGBAdminService";
export { IGBInstallationDeployer } from "./IGBInstallationDeployer"; export { IGBInstallationDeployer } from "./IGBInstallationDeployer";
export { IGBDeployer } from "./IGBDeployer";
export { GBDialogStep } from "./GBDialogStep"; export { GBDialogStep } from "./GBDialogStep";
export { GBLog } from "./GBLog"; export { GBLog } from "./GBLog";