UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

29 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnInvokeActivity = void 0; /** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ const botbuilder_1 = require("botbuilder"); const onActivity_1 = require("./onActivity"); /** * Actions triggered when an InvokeActivity is received. */ class OnInvokeActivity extends onActivity_1.OnActivity { /** * Initializes a new instance of the [OnInvokeActivity](xref:botbuilder-dialogs-adaptive.OnInvokeActivity) class. * * @param actions Optional. A [Dialog](xref:botbuilder-dialogs.Dialog) list containing the actions to add to the plan when the rule constraints are met. * @param condition Optional. Condition which needs to be met for the actions to be executed. */ constructor(actions = [], condition) { super(botbuilder_1.ActivityTypes.Invoke, actions, condition); } } exports.OnInvokeActivity = OnInvokeActivity; OnInvokeActivity.$kind = 'Microsoft.OnInvokeActivity'; //# sourceMappingURL=onInvokeActivity.js.map