botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
38 lines • 1.49 kB
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.LanguageGenerationBotComponent = void 0;
const templates_1 = require("./templates");
const botbuilder_1 = require("botbuilder");
/**
* ComponentRegistration class for language generation resources.
*/
class LanguageGenerationBotComponent extends botbuilder_1.BotComponent {
/**
* @param services Services Collection to register.
* @param _configuration Configuration for the bot component.
*/
configureServices(services, _configuration) {
services.composeFactory('declarativeTypes', (declarativeTypes) => declarativeTypes.concat({
getDeclarativeTypes() {
return [
{
kind: templates_1.TextTemplate.$kind,
type: templates_1.TextTemplate,
},
{
kind: templates_1.ActivityTemplate.$kind,
type: templates_1.ActivityTemplate,
},
{
kind: templates_1.StaticActivityTemplate.$kind,
type: templates_1.StaticActivityTemplate,
},
];
},
}));
}
}
exports.LanguageGenerationBotComponent = LanguageGenerationBotComponent;
//# sourceMappingURL=languageGenerationBotComponent.js.map