Skip to content

Commit

Permalink
Merge branch 'main' into southworks/update/esm-only-d3-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ceciliaavila committed Nov 22, 2024
2 parents 7c19b70 + c92f998 commit 3c4531e
Show file tree
Hide file tree
Showing 62 changed files with 527 additions and 466 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ jobs:
- name: yarn
run: yarn --frozen-lockfile

- name: yarn build
run: yarn build

- name: yarn lint
run: yarn lint
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -17,10 +17,10 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.22.1",
"botbuilder-ai": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder-testing": "~4.22.1",
"botbuilder": "4.1.6",
"botbuilder-ai": "4.1.6",
"botbuilder-dialogs": "4.1.6",
"botbuilder-testing": "4.1.6",
"dotenv": "^8.2.0",
"restify": "^11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand Down Expand Up @@ -38,22 +38,23 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.22.1",
"botbuilder-ai": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder-testing": "~4.22.1",
"botbuilder": "4.1.6",
"botbuilder-ai": "4.1.6",
"botbuilder-dialogs": "4.1.6",
"botbuilder-testing": "4.1.6",
"dotenv": "^8.2.0",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^18.19.47",
"@types/restify": "8.4.2",
"mocha": "^7.1.2",
"nodemon": "^2.0.4",
"nyc": "^15.0.1",
"ts-node": "^8.10.1",
"tslint": "^6.1.2",
"typescript": "^4.0.7"
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -17,9 +17,9 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.22.1,
"botbuilder-ai": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder": "4.1.6",
"botbuilder-ai": "4.1.6",
"botbuilder-dialogs": "4.1.6",
"dotenv": "~8.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -19,21 +19,22 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.22.1",
"botbuilder-ai": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder": "4.1.6",
"botbuilder-ai": "4.1.6",
"botbuilder-dialogs": "4.1.6",
"dotenv": "~8.2.0",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^18.19.47",
"@types/restify": "8.4.2",
"mocha": "^7.1.2",
"nodemon": "^2.0.4",
"nyc": "^15.0.1",
"ts-node": "^8.10.1",
"tslint": "^6.1.2",
"typescript": "^4.0.7"
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"composite": true,
"declaration": true,
"target": "es2017",
"module": "commonjs",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./lib",
"rootDir": "./src",
"resolveJsonModule": true,
"rootDirs": ["./src", "./resources"],
"sourceMap": true,
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo"
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"esModuleInterop": true
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -16,7 +16,7 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "4.1.6",
"dotenv": "~8.2.0",
"restify": "~11.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -18,15 +18,16 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "4.1.6",
"dotenv": "~8.2.0",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
"devDependencies": {
"@types/node": "^18.19.47",
"@types/restify": "8.4.2",
"nodemon": "^2.0.4",
"tslint": "^6.1.2",
"typescript": "^4.0.7"
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"compilerOptions": {
"declaration": true,
"target": "es2017",
"module": "commonjs",
"moduleResolution": "NodeNext",
"module": "NodeNext",
"outDir": "./lib",
"rootDir": "./src",
"sourceMap": true,
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo"
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"esModuleInterop": true
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -16,7 +16,7 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "4.1.6",
"restify": "~11.1.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "<%= botname %>",
"version": "1.0.0",
"version": "4.1.6",
"description": "<%= botDescription %>",
"author": "Generated using Microsoft Bot Builder Yeoman generator v<%= version %>",
"license": "MIT",
Expand All @@ -18,14 +18,15 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "4.1.6",
"replace": "~1.2.0",
"restify": "~11.1.0"
},
"devDependencies": {
"@types/node": "^18.19.47",
"@types/restify": "8.4.2",
"nodemon": "^2.0.4",
"tslint": "^6.1.2",
"typescript": "^4.0.7"
"typescript": "^5.6.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"compilerOptions": {
"declaration": true,
"target": "es2017",
"module": "commonjs",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./lib",
"rootDir": "./src",
"sourceMap": true,
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo"
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"esModuleInterop": true
}
}
11 changes: 0 additions & 11 deletions libraries/botbuilder-ai/eslint.config.cjs

This file was deleted.

3 changes: 1 addition & 2 deletions libraries/botbuilder-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"botbuilder-dialogs-adaptive-runtime-core": "4.1.6",
"botbuilder-dialogs-declarative": "4.1.6",
"botframework-connector": "4.1.6",
"eslint-plugin-only-warn": "^1.1.0",
"lodash": "^4.17.21",
"node-fetch": "^2.7.0",
"url-parse": "^1.5.10",
Expand All @@ -51,7 +50,7 @@
"build:rollup": "yarn clean && yarn build && api-extractor run --verbose --local",
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
"depcheck": "depcheck --config ../../.depcheckrc",
"lint": "eslint .",
"lint": "eslint . --config ../../eslint.config.cjs",
"postbuild": "downlevel-dts lib _ts3.4/lib --checksum",
"test": "npm-run-all build test:mocha",
"test:mocha": "nyc mocha tests",
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-ai/src/custom.window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

declare global {
interface Window {} // eslint-disable-line @typescript-eslint/no-empty-interface
interface Window {} // eslint-disable-line @typescript-eslint/no-empty-object-type
}

export type window = Window;
20 changes: 10 additions & 10 deletions libraries/botbuilder-ai/src/customQuestionAnswering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface QnAMakerClient {
turnContext: TurnContext,
options?: QnAMakerOptions,
telemetryProperties?: Record<string, string>,
telemetryMetrics?: Record<string, number>
telemetryMetrics?: Record<string, number>,
): Promise<QnAMakerResult[]>;

/**
Expand All @@ -59,7 +59,7 @@ export interface QnAMakerClient {
turnContext: TurnContext,
options?: QnAMakerOptions,
telemetryProperties?: Record<string, string>,
telemetryMetrics?: Record<string, number>
telemetryMetrics?: Record<string, number>,
): Promise<QnAMakerResults>;

/**
Expand Down Expand Up @@ -111,7 +111,7 @@ export interface QnAMakerTelemetryClient {
context: TurnContext,
options?: QnAMakerOptions,
telemetryProperties?: { [key: string]: string },
telemetryMetrics?: { [key: string]: number }
telemetryMetrics?: { [key: string]: number },
): Promise<QnAMakerResult[]>;
}

Expand Down Expand Up @@ -142,7 +142,7 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
private readonly endpoint: QnAMakerEndpoint,
options: QnAMakerOptions = {},
telemetryClient?: BotTelemetryClient,
logPersonalInformation?: boolean
logPersonalInformation?: boolean,
) {
if (!endpoint) {
throw new TypeError('QnAMaker requires valid QnAMakerEndpoint.');
Expand Down Expand Up @@ -215,7 +215,7 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
context: TurnContext,
options?: QnAMakerOptions,
telemetryProperties?: { [key: string]: string },
telemetryMetrics?: { [key: string]: number }
telemetryMetrics?: { [key: string]: number },
): Promise<QnAMakerResult[]> {
if (!context) {
throw new TypeError('QnAMaker.getAnswers() requires a TurnContext.');
Expand Down Expand Up @@ -243,7 +243,7 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
context: TurnContext,
options: QnAMakerOptions,
telemetryProperties: { [key: string]: string },
telemetryMetrics: { [key: string]: number }
telemetryMetrics: { [key: string]: number },
): Promise<QnAMakerResults> {
if (!context) {
throw new TypeError('CustomQuestionAnswering.getAnswersRaw() requires a TurnContext.');
Expand All @@ -266,7 +266,7 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
context: TurnContext,
options: QnAMakerOptions,
telemetryProperties: { [key: string]: string },
telemetryMetrics: { [key: string]: number }
telemetryMetrics: { [key: string]: number },
): Promise<QnAMakerResults> {
const question: string = this.getTrimmedMessageText(context);
const userId = context?.activity?.from?.id;
Expand Down Expand Up @@ -327,13 +327,13 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
qnaResults: QnAMakerResult[],
turnContext: TurnContext,
telemetryProperties?: { [key: string]: string },
telemetryMetrics?: { [key: string]: number }
telemetryMetrics?: { [key: string]: number },
): Promise<void> {
const [properties, metrics] = await this.fillQnAEvent(
qnaResults,
turnContext,
telemetryProperties,
telemetryMetrics
telemetryMetrics,
);

this.telemetryClient.trackEvent({
Expand All @@ -357,7 +357,7 @@ export class CustomQuestionAnswering implements QnAMakerClient, QnAMakerTelemetr
qnaResults: QnAMakerResult[],
turnContext: TurnContext,
telemetryProperties?: Record<string, string>,
telemetryMetrics?: Record<string, number>
telemetryMetrics?: Record<string, number>,
): Promise<[Record<string, string>, Record<string, number>]> {
const properties: Record<string, string> = {
[QnATelemetryConstants.knowledgeBaseIdProperty]: this.endpoint.knowledgeBaseId,
Expand Down
Loading

0 comments on commit 3c4531e

Please sign in to comment.