diff --git a/src/IGBAdminService.ts b/src/IGBAdminService.ts index e344503..0137776 100644 --- a/src/IGBAdminService.ts +++ b/src/IGBAdminService.ts @@ -33,6 +33,7 @@ "use strict"; import { IGBInstance } from "./IGBinstance"; +import { GBMinInstance } from "./GBMinInstance"; export interface IGBAdminService { acquireElevatedToken(instanceId): Promise; @@ -42,8 +43,9 @@ export interface IGBAdminService { authenticatorAuthorityHostUrl: string, authenticatorClientId: string, authenticatorClientSecret: string - ): Promise; - + ): Promise; + getValue(instanceId: number, key: string): Promise; setValue(instanceId: number, key: string, value: string): void; + publish(min: GBMinInstance, packageName: string, republish: boolean): Promise; } diff --git a/src/IGBConversationalService.ts b/src/IGBConversationalService.ts index 132b5c7..656e353 100644 --- a/src/IGBConversationalService.ts +++ b/src/IGBConversationalService.ts @@ -38,7 +38,7 @@ import { GBDialogStep } from "./GBDialogStep"; export interface IGBConversationalService { 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); sendSms(min: GBMinInstance, mobile: string, text: string); routeNLP(step: GBDialogStep, min: GBMinInstance, text: string): Promise; diff --git a/src/IGBDeployer.ts b/src/IGBDeployer.ts index db790b3..d25831a 100644 --- a/src/IGBDeployer.ts +++ b/src/IGBDeployer.ts @@ -33,8 +33,11 @@ "use strict"; import { IGBInstance } from "./IGBinstance"; +import { GBMinInstance } from "./GBMinInstance"; export interface IGBDeployer { - - deployBlankBot(botId: string); + undeployPackageFromLocalPath(instance: IGBInstance, localPath: string): Promise; + deployPackage(min: GBMinInstance, localPath: string): Promise; + deployBlankBot(botId: string): Promise; + rebuildIndex(instance: IGBInstance, searchSchema: any): Promise; } diff --git a/src/index.ts b/src/index.ts index 6976a83..c99c818 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,5 +44,6 @@ export { GBService } from "./GBService"; export { GBMinInstance } from "./GBMinInstance"; export { IGBAdminService } from "./IGBAdminService"; export { IGBInstallationDeployer } from "./IGBInstallationDeployer"; +export { IGBDeployer } from "./IGBDeployer"; export { GBDialogStep } from "./GBDialogStep"; export { GBLog } from "./GBLog";