botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
56 lines • 2.21 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { BoolProperty, StringProperty } from '../properties';
import { BoolExpression, StringExpression } from 'adaptive-expressions';
import { Converter, ConverterFactory, Dialog, DialogConfiguration, DialogContext, DialogTurnResult } from 'botbuilder-dialogs';
export interface GetActivityMembersConfiguration extends DialogConfiguration {
activityId?: StringProperty;
property?: StringProperty;
disabled?: BoolProperty;
}
/**
* Calls `BotFrameworkAdapter.getActivityMembers()` and sets the result to a memory property.
*/
export declare class GetActivityMembers<O extends object = {}> extends Dialog implements GetActivityMembersConfiguration {
static $kind: string;
constructor();
/**
* The expression to get the value to put into property path.
*/
activityId: StringExpression;
/**
* Property path to put the value in.
*/
property: StringExpression;
/**
* An optional expression which if is true will disable this action.
*/
disabled?: BoolExpression;
/**
* @param property The key of the conditional selector configuration.
* @returns The converter for the selector configuration.
*/
getConverter(property: keyof GetActivityMembersConfiguration): Converter | ConverterFactory;
/**
* Starts a new [Dialog](xref:botbuilder-dialogs.Dialog) and pushes it onto the dialog stack.
*
* @param dc The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation.
* @param _options Optional. Initial information to pass to the dialog.
* @returns A `Promise` representing the asynchronous operation.
*/
beginDialog(dc: DialogContext, _options?: O): Promise<DialogTurnResult>;
private getActivityMembers;
private getConnectorClient;
/**
* @protected
* Builds the compute Id for the [Dialog](xref:botbuilder-dialogs.Dialog).
* @returns A `string` representing the compute Id.
*/
protected onComputeId(): string;
}
//# sourceMappingURL=getActivityMembers.d.ts.map