diff --git a/packages/basic.gblib/index.ts b/packages/basic.gblib/index.ts index 8dc34b22..077a6236 100644 --- a/packages/basic.gblib/index.ts +++ b/packages/basic.gblib/index.ts @@ -42,7 +42,7 @@ import { Sequelize } from 'sequelize-typescript'; import { createServerRouter } from 'typescript-rest-rpc/lib/server.js'; import { DialogKeywords } from './services/DialogKeywords.js'; import { SystemKeywords } from './services/SystemKeywords.js'; -import { WebAutomationKeywords } from './services/WebAutomationKeywords.js'; +import { WebAutomationServices } from './services/WebAutomationServices.js'; import { ImageProcessing } from './services/ImageProcessing.js'; import { DebuggerService } from './services/DebuggerService.js'; import * as koaBody from 'koa-body'; @@ -81,7 +81,7 @@ export class GBBasicPackage implements IGBPackage { } public async loadBot (min: GBMinInstance): Promise { const dk = new DialogKeywords(min, null, null); - const wa = new WebAutomationKeywords(min, null, dk); + const wa = new WebAutomationServices(min, null, dk); const sys = new SystemKeywords(min, null, dk, wa); const dbg = new DebuggerService(min, null, dk); const img = new ImageProcessing(min, null, dk); diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index a6e691b9..9eb8c008 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -57,7 +57,7 @@ import sgMail from '@sendgrid/mail'; import mammoth from 'mammoth'; import qrcode from 'qrcode'; import { json } from 'body-parser'; -import { WebAutomationKeywords } from './WebAutomationKeywords.js'; +import { WebAutomationServices } from './WebAutomationServices.js'; /** * Default check interval for user replay @@ -833,7 +833,7 @@ export class DialogKeywords { if (kind === 'file') { GBLog.info(`BASIC (${min.botId}): Upload done for ${answer.filename}.`); - const handle = WebAutomationKeywords.cyrb53(this.min.botId + answer.filename); + const handle = WebAutomationServices.cyrb53(this.min.botId + answer.filename); GBServer.globals.files[handle] = answer; result = handle; } else if (kind === 'boolean') { diff --git a/packages/basic.gblib/services/WebAutomationKeywords.ts b/packages/basic.gblib/services/WebAutomationServices.ts similarity index 99% rename from packages/basic.gblib/services/WebAutomationKeywords.ts rename to packages/basic.gblib/services/WebAutomationServices.ts index 09770218..d2e873fb 100644 --- a/packages/basic.gblib/services/WebAutomationKeywords.ts +++ b/packages/basic.gblib/services/WebAutomationServices.ts @@ -49,7 +49,7 @@ import { pid } from 'process'; /** * Web Automation services of conversation to be called by BASIC. */ -export class WebAutomationKeywords { +export class WebAutomationServices { /** * Reference to minimal bot instance. */ @@ -131,7 +131,7 @@ export class WebAutomationKeywords { } await page.goto(url); - const handle = WebAutomationKeywords.cyrb53(this.min.botId + url); + const handle = WebAutomationServices.cyrb53(this.min.botId + url); this.pageMap[handle] = page;