Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[TypeScript][Samples] Generate samples with the latest version of the generator #2231

Merged
merged 2 commits into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async function getTestAdapterDefault(settings) {
};
const botServices = new BotServices(botSettings);
const onboardingStateAccessor = userState.createProperty('OnboardingState');
const skillContextAccessor = userState.createProperty('skillContext');
const onboardingDialog = new OnboardingDialog(botServices, onboardingStateAccessor, telemetryClient)
const escalateDialog = new EscalateDialog(botServices, telemetryClient);
const cancelDialog = new CancelDialog();
Expand All @@ -91,6 +92,7 @@ async function getTestAdapterDefault(settings) {
escalateDialog,
cancelDialog,
skillDialogs,
skillContextAccessor,
onboardingStateAccessor,
telemetryClient
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,6 @@
"https://hosting.onecloud.azure-test.net/"
]
}
],
"cors": {
"allowedOrigins": [
"https://botservice.hosting.portal.azure.net",
"https://botservice-ms.hosting.portal.azure.net",
"https://hosting.onecloud.azure-test.net/"
]
}
},
"dependsOn": [
Expand All @@ -212,26 +205,16 @@
"developerAppInsightsApplicationId": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).ApplicationId]"
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]"
]
},
{
"comments": "bot service",
"type": "Microsoft.BotService/botServices",
"kind": "sdk",
"apiVersion": "2018-07-12",
"name": "[parameters('botServiceName')]",
"location": "global",
"sku": {
"name": "[parameters('botServiceSku')]"
},
"properties": {
"displayName": "[parameters('botServiceName')]",
"endpoint": "[variables('botEndpoint')]",
"msaAppId": "[parameters('microsoftAppId')]",
"developerAppInsightKey": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).InstrumentationKey]",
"developerAppInsightsApplicationId": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).ApplicationId]"
{
"comments": "Cognitive service key for all LUIS apps.",
"type": "Microsoft.CognitiveServices/accounts",
"kind": "LUIS",
"apiVersion": "2017-04-18",
"name": "[parameters('luisServiceName')]",
"location": "[parameters('luisServiceLocation')]",
"sku": {
"name": "[parameters('luisServiceSku')]"
}
}
],
"outputs": {
Expand Down Expand Up @@ -270,4 +253,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ foreach ($language in $languageArr)
if ($useQna) {
if (Test-Path $(Join-Path $PSScriptRoot .. 'resources' 'QnA' $langCode)) {
# Deploy QnA Maker KBs
$qnaFiles = Get-ChildItem "$(Join-Path $PSScriptRoot .. 'resources' 'qnA' $langCode)" -Recurse | Where {$_.extension -eq ".lu"}
$qnaFiles = Get-ChildItem "$(Join-Path $PSScriptRoot .. 'resources' 'QnA' $langCode)" -Recurse | Where {$_.extension -eq ".lu"}

if ($qnaFiles) {
$config | Add-Member -MemberType NoteProperty -Name knowledgeBases -Value @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class MainDialog extends RouterDialog {
protected async populateStateFromSemanticAction(context: TurnContext): Promise<void> {
// Example of populating local state with data passed through semanticAction out of Activity
// const activity: Activity = context.activity;
// const semanticAction: SemanticAction | undefined = activity.semanticAction;
// const semanticAction: SemanticAction | undefined = activity.semanticAction;

// if (semanticAction != null && semanticAction.Entities.ContainsKey("location"))
// {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
*/

import { BotTelemetryClient } from 'botbuilder';
import { LuisApplication, LuisPredictionOptions, LuisRecognizer, QnAMaker, QnAMakerEndpoint } from 'botbuilder-ai';
import {ICognitiveModelConfiguration, ICognitiveModelSet } from 'botbuilder-solutions';
import { ICognitiveModelConfiguration, ICognitiveModelSet } from 'botbuilder-solutions';
import { DispatchService, LuisService, QnaMakerService } from 'botframework-config';
import { IBotSettings } from './botSettings';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"endpoint": "[variables('botEndpoint')]",
"isStreamingSupported": true,
"msaAppId": "[parameters('microsoftAppId')]",
"developerAppInsightKey": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).InstrumentationKey]",
"developerAppInsightKey": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).instrumentationKey]",
"developerAppInsightsApplicationId": "[reference(resourceId('Microsoft.Insights/components', parameters('appInsightsName'))).ApplicationId]"
}
},
Expand Down
Loading