diff --git a/libraries/botbuilder-dialogs-adaptive/src/actionContext.ts b/libraries/botbuilder-dialogs-adaptive/src/actionContext.ts index e7c4056087..a3c5385057 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/actionContext.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/actionContext.ts @@ -27,7 +27,7 @@ export class ActionContext extends DialogContext { * @param actions Current list of remaining actions to execute. * @param changeKey TurnState key for where to persist any changes. */ - public constructor( + constructor( dialogs: DialogSet, parentDialogContext: DialogContext, state: DialogState, @@ -42,14 +42,14 @@ export class ActionContext extends DialogContext { /** * List of actions being executed. */ - public actions: ActionState[]; + actions: ActionState[]; /** * Gets list of changes that are queued to be applied. * * @returns The list of changes queued. */ - public get changes(): ActionChangeList[] { + get changes(): ActionChangeList[] { return this.context.turnState.get(this._changeKey) || []; } @@ -58,7 +58,7 @@ export class ActionContext extends DialogContext { * * @param changes Plan changes to queue up. */ - public queueChanges(changes: ActionChangeList): void { + queueChanges(changes: ActionChangeList): void { const queue = this.changes; queue.push(changes); this.context.turnState.set(this._changeKey, queue); @@ -69,7 +69,7 @@ export class ActionContext extends DialogContext { * * @returns True if there were any changes to apply. */ - public async applyChanges(): Promise { + async applyChanges(): Promise { // Retrieve queued change list const changes = this.changes; if (changes.length > 0) { diff --git a/libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts b/libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts index 6efd58491d..2eedf06023 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts @@ -78,8 +78,8 @@ export interface AdaptiveDialogConfiguration extends DialogConfiguration { * The Adaptive Dialog models conversation using events and events to adapt dynamically to changing conversation flow. */ export class AdaptiveDialog extends DialogContainer implements AdaptiveDialogConfiguration { - public static $kind = 'Microsoft.AdaptiveDialog'; - public static conditionTracker = 'dialog._tracker.conditions'; + static $kind = 'Microsoft.AdaptiveDialog'; + static conditionTracker = 'dialog._tracker.conditions'; private readonly adaptiveKey = '_adaptive'; private readonly defaultOperationKey = '$defaultOperation'; @@ -106,24 +106,24 @@ export class AdaptiveDialog extends DialogContainer im * * @param dialogId (Optional) unique ID of the component within its parents dialog set. */ - public constructor(dialogId?: string) { + constructor(dialogId?: string) { super(dialogId); } /** * Optional. Recognizer used to analyze any message utterances. */ - public recognizer?: Recognizer; + recognizer?: Recognizer; /** * Optional. Language Generator override. */ - public generator?: LanguageGenerator; + generator?: LanguageGenerator; /** * Trigger handlers to respond to conditions which modify the executing plan. */ - public triggers: OnCondition[] = []; + triggers: OnCondition[] = []; /** * Whether to end the dialog when there are no actions to execute. @@ -133,12 +133,12 @@ export class AdaptiveDialog extends DialogContainer im * If false, when there are no actions to execute, the current dialog will simply end the turn and still be active. * Defaults to a value of true. */ - public autoEndDialog: BoolExpression = new BoolExpression(true); + autoEndDialog: BoolExpression = new BoolExpression(true); /** * Optional. The selector for picking the possible events to execute. */ - public selector: TriggerSelector; + selector: TriggerSelector; /** * The property to return as the result when the dialog ends when there are no more Actions and `AutoEndDialog = true`. @@ -146,12 +146,12 @@ export class AdaptiveDialog extends DialogContainer im * @remarks * Defaults to a value of `dialog.result`. */ - public defaultResultProperty = 'dialog.result'; + defaultResultProperty = 'dialog.result'; /** * Sets the JSON Schema for the dialog. */ - public set schema(value: object) { + set schema(value: object) { this.dialogSchema = new SchemaHelper(value); } @@ -160,7 +160,7 @@ export class AdaptiveDialog extends DialogContainer im * * @returns The dialog schema. */ - public get schema(): object { + get schema(): object { return this.dialogSchema ? this.dialogSchema.schema : undefined; } @@ -168,7 +168,7 @@ export class AdaptiveDialog extends DialogContainer im * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof AdaptiveDialogConfiguration): Converter | ConverterFactory { + getConverter(property: keyof AdaptiveDialogConfiguration): Converter | ConverterFactory { switch (property) { case 'recognizer': return RecognizerConverter; @@ -267,7 +267,7 @@ export class AdaptiveDialog extends DialogContainer im * @param options Optional, initial information to pass to the dialog. * @returns A Promise representing the asynchronous operation. */ - public async beginDialog(dc: DialogContext, options?: O): Promise { + async beginDialog(dc: DialogContext, options?: O): Promise { await this.checkForVersionChange(dc); // Install dependencies on first access @@ -332,7 +332,7 @@ export class AdaptiveDialog extends DialogContainer im * @param dc The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation. * @returns A Promise representing the asynchronous operation. */ - public async continueDialog(dc: DialogContext): Promise { + async continueDialog(dc: DialogContext): Promise { await this.checkForVersionChange(dc); this.ensureDependenciesInstalled(); @@ -349,7 +349,7 @@ export class AdaptiveDialog extends DialogContainer im * @param reason Reason why the dialog ended. * @returns A Promise representing the asynchronous operation. */ - public async endDialog(turnContext: TurnContext, instance: DialogInstance, reason: DialogReason): Promise { + async endDialog(turnContext: TurnContext, instance: DialogInstance, reason: DialogReason): Promise { const properties: { [key: string]: string } = { DialogId: this.id, Kind: 'Microsoft.AdaptiveDialog', @@ -405,7 +405,7 @@ export class AdaptiveDialog extends DialogContainer im * The type of the value returned is dependent on the child dialog. * @returns A Promise representing the asynchronous operation. */ - public async resumeDialog(dc: DialogContext, _reason?: DialogReason, _result?: any): Promise { + async resumeDialog(dc: DialogContext, _reason?: DialogReason, _result?: any): Promise { await this.checkForVersionChange(dc); // Containers are typically leaf nodes on the stack but the dev is free to push other dialogs @@ -425,7 +425,7 @@ export class AdaptiveDialog extends DialogContainer im * @param instance Current state information for this dialog. * @returns A Promise representing the asynchronous operation. */ - public async repromptDialog(context: DialogContext | TurnContext, instance: DialogInstance): Promise { + async repromptDialog(context: DialogContext | TurnContext, instance: DialogInstance): Promise { if (context instanceof DialogContext) { // Forward to current sequence action const state: AdaptiveDialogState = instance.state[this.adaptiveKey]; @@ -446,7 +446,7 @@ export class AdaptiveDialog extends DialogContainer im * @param dc The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation. * @returns The child [DialogContext](xref:botbuilder-dialogs.DialogContext) or null if no [AdaptiveDialogState.actions](xref:botbuilder-dialogs-adaptive.AdaptiveDialogState.actions) are found for the given context. */ - public createChildContext(dc: DialogContext): DialogContext { + createChildContext(dc: DialogContext): DialogContext { const activeDialogState = dc.activeDialog.state; const state: AdaptiveDialogState = activeDialogState[this.adaptiveKey]; if (!state) { @@ -465,7 +465,7 @@ export class AdaptiveDialog extends DialogContainer im * * @returns [Dialog](xref:botbuilder-dialogs.Dialog)'s enumerated dependencies. */ - public getDependencies(): Dialog[] { + getDependencies(): Dialog[] { this.ensureDependenciesInstalled(); return []; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/adaptiveEvents.ts b/libraries/botbuilder-dialogs-adaptive/src/adaptiveEvents.ts index 338bf25f3c..07b485c894 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/adaptiveEvents.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/adaptiveEvents.ts @@ -15,35 +15,35 @@ export class AdaptiveEvents extends DialogEvents { /** * Raised when utterance is received. */ - public static readonly recognizeUtterance = 'recognizeUtterance'; + static readonly recognizeUtterance = 'recognizeUtterance'; /** * Raised when intent is recognized from utterance. */ - public static readonly recognizedIntent = 'recognizedIntent'; + static readonly recognizedIntent = 'recognizedIntent'; /** * Raised when no intent can be recognized from utterance. */ - public static readonly unknownIntent = 'unknownIntent'; + static readonly unknownIntent = 'unknownIntent'; /** * Raised when all actions and ambiguity events have been finished. */ - public static readonly endOfActions = 'endOfActions'; + static readonly endOfActions = 'endOfActions'; /** * aised when there are multiple possible entity to property mappings. */ - public static readonly chooseProperty = 'chooseProperty'; + static readonly chooseProperty = 'chooseProperty'; /** * Raised when there are multiple possible resolutions of an entity. */ - public static readonly chooseEntity = 'chooseEntity'; + static readonly chooseEntity = 'chooseEntity'; /** * Raised when an entity should be assigned to a property. */ - public static readonly assignEntity = 'assignEntity'; + static readonly assignEntity = 'assignEntity'; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/dynamicBeginDialogDeserializer.ts b/libraries/botbuilder-dialogs-adaptive/src/dynamicBeginDialogDeserializer.ts index 6f88b12987..186acaeff1 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/dynamicBeginDialogDeserializer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/dynamicBeginDialogDeserializer.ts @@ -21,7 +21,7 @@ export class DynamicBeginDialogDeserializer * @param _resourceExplorer The `ResourceExplorer` used by the deserializer. * @param _resourceId The resource id of the dynamic dialog. */ - public constructor(private readonly _resourceExplorer: ResourceExplorer, private readonly _resourceId: string) {} + constructor(private readonly _resourceExplorer: ResourceExplorer, private readonly _resourceId: string) {} /** * The method that loads the configuration object to a `DynamicBeginDialog` object. @@ -30,7 +30,7 @@ export class DynamicBeginDialogDeserializer * @param type The object type that the configuration will be deserialized to. * @returns A `DynamicBeginDialog` object created from the configuration. */ - public load( + load( config: BeginDialogConfiguration, type: { new (...args: unknown[]): DynamicBeginDialog } ): DynamicBeginDialog { diff --git a/libraries/botbuilder-dialogs-adaptive/src/entityAssignment.ts b/libraries/botbuilder-dialogs-adaptive/src/entityAssignment.ts index fd12d748f7..980b93e410 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/entityAssignment.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/entityAssignment.ts @@ -57,42 +57,42 @@ export class EntityAssignment implements EntityAssignmentConfiguration { /** * Event name to surface */ - public event: string; + event: string; /** * Name of property being assigned. */ - public property: string; + property: string; /** * Operation to assign entity to property. */ - public operation: string; + operation: string; /** * Recognized entity value. */ - public value: Partial; + value: Partial; /** * Alternative assignment. */ - public alternative: EntityAssignment; + alternative: EntityAssignment; /** * Value indicating whether this entity was in `DialogPath.ExpectedProperties`. */ - public isExpected: boolean; + isExpected: boolean; /** * The number of times event has been raised. */ - public raisedCount: number; + raisedCount: number; /** * The expected properties when assignment was made. */ - public expectedProperties: string[]; + expectedProperties: string[]; /** * Initializes a new instance of the [EntityAssignment](xref:botbuilder-dialogs-adaptive.EntityAssignment) class. @@ -121,7 +121,7 @@ export class EntityAssignment implements EntityAssignmentConfiguration { * * @returns The alternative entity assigment. */ - public get alternatives(): EntityAssignment[] { + get alternatives(): EntityAssignment[] { const alternatives = []; // eslint-disable-next-line @typescript-eslint/no-this-alias let current: EntityAssignment = this; @@ -138,7 +138,7 @@ export class EntityAssignment implements EntityAssignmentConfiguration { * * @param alternatives Alternatives to add. */ - public addAlternatives(alternatives: EntityAssignment[]): void { + addAlternatives(alternatives: EntityAssignment[]): void { // eslint-disable-next-line @typescript-eslint/no-this-alias let current: EntityAssignment = this; this.alternative = undefined; @@ -155,7 +155,7 @@ export class EntityAssignment implements EntityAssignmentConfiguration { * * @returns A string that represents the current object. */ - public toString(): string { + toString(): string { return `${this.isExpected ? '+' : ''}${this.event}: ${this.property} = ${this.operation}(${EntityInfo.toString( this.value )})`; diff --git a/libraries/botbuilder-dialogs-adaptive/src/entityAssignmentComparer.ts b/libraries/botbuilder-dialogs-adaptive/src/entityAssignmentComparer.ts index 62e50c6a92..95839fa3a9 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/entityAssignmentComparer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/entityAssignmentComparer.ts @@ -39,7 +39,7 @@ export class EntityAssignmentComparer { * @param y Second entity assigment to compare. * @returns Numerical value representing x's relative priority. */ - public compare(x: Partial, y: Partial): number { + compare(x: Partial, y: Partial): number { // Order by event. let comparison: number = EntityAssignmentComparer.eventPreference.indexOf(x.event) - diff --git a/libraries/botbuilder-dialogs-adaptive/src/entityAssignments.ts b/libraries/botbuilder-dialogs-adaptive/src/entityAssignments.ts index 2055268005..1d5b339eac 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/entityAssignments.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/entityAssignments.ts @@ -35,7 +35,7 @@ export class EntityAssignments implements EntityAssignmentsConfiguration { * @param actionContext Memory context. * @returns Entity event queue. */ - public static read(actionContext: ActionContext): EntityAssignments { + static read(actionContext: ActionContext): EntityAssignments { const queuesObject = actionContext.state.getValue(events, new EntityAssignments()); const assignments = queuesObject.assignments?.map((assignment) => new EntityAssignment(assignment)); @@ -48,7 +48,7 @@ export class EntityAssignments implements EntityAssignmentsConfiguration { * * @param actionContext Memory context. */ - public write(actionContext: ActionContext): void { + write(actionContext: ActionContext): void { actionContext.state.setValue(events, this); } @@ -57,7 +57,7 @@ export class EntityAssignments implements EntityAssignmentsConfiguration { * * @returns The next entity event to surface. */ - public get nextAssignment(): EntityAssignment { + get nextAssignment(): EntityAssignment { if (this.assignments.length > 0) { return this.assignments[0]; } @@ -71,7 +71,7 @@ export class EntityAssignments implements EntityAssignmentsConfiguration { * @param actionContext Memory context. * @returns Removed event. */ - public dequeue(actionContext: ActionContext): EntityAssignment { + dequeue(actionContext: ActionContext): EntityAssignment { const assignment = this.assignments.shift(); this.write(actionContext); diff --git a/libraries/botbuilder-dialogs-adaptive/src/entityInfo.ts b/libraries/botbuilder-dialogs-adaptive/src/entityInfo.ts index 8d6edf6c2b..ef60e8b110 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/entityInfo.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/entityInfo.ts @@ -93,7 +93,7 @@ export class EntityInfo { * @param source Source entity. * @returns A string that represents the current object. */ - public static toString(source: Partial): string { + static toString(source: Partial): string { return `${source.name}:${source.value} P${source.priority} ${source.score} ${source.coverage}`; } @@ -104,7 +104,7 @@ export class EntityInfo { * @param entity Entity to compare. * @returns True if entities share text in utterance, otherwise false. */ - public static overlaps(source: Partial, entity: Partial): boolean { + static overlaps(source: Partial, entity: Partial): boolean { return source.start <= entity.end && source.end >= entity.start; } @@ -115,7 +115,7 @@ export class EntityInfo { * @param entity Entity to compare. * @returns True if entities come from the exactly same text in utterance, otherwise false. */ - public static alternative(source: Partial, entity: Partial): boolean { + static alternative(source: Partial, entity: Partial): boolean { return source.start == entity.start && source.end == entity.end; } @@ -126,7 +126,7 @@ export class EntityInfo { * @param entity Entity to compare. * @returns True if the entity text completely includes another entity text, otherwise false. */ - public static covers(source: Partial, entity: Partial): boolean { + static covers(source: Partial, entity: Partial): boolean { return ( source.start <= entity.start && source.end >= entity.end && @@ -141,7 +141,7 @@ export class EntityInfo { * @param entity Entity to compare. * @returns True if entities share the same root, otherwise false. */ - public static sharesRoot(source: Partial, entity: Partial): boolean { + static sharesRoot(source: Partial, entity: Partial): boolean { return source.rootEntity === entity.rootEntity; } @@ -152,7 +152,7 @@ export class EntityInfo { * @param entity Entity to compare. * @returns True if entities are the same, otherwise false. */ - public static isSameEntity(source: Partial, entity: Partial): boolean { + static isSameEntity(source: Partial, entity: Partial): boolean { return EntityInfo.sharesRoot(source, entity) && EntityInfo.alternative(source, entity); } @@ -162,7 +162,7 @@ export class EntityInfo { * @param source Source entity. * @param entities Normalized set of entities to modify. */ - public static removeOverlappingEntities(source: EntityInfo, entities: NormalizedEntityInfos): void { + static removeOverlappingEntities(source: EntityInfo, entities: NormalizedEntityInfos): void { for (const name in entities) { const infos = entities[name]; if (Array.isArray(infos)) { diff --git a/libraries/botbuilder-dialogs-adaptive/src/languageGeneratorExtensions.ts b/libraries/botbuilder-dialogs-adaptive/src/languageGeneratorExtensions.ts index 24dd2d7c00..d82a554a99 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/languageGeneratorExtensions.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/languageGeneratorExtensions.ts @@ -45,7 +45,7 @@ export class LanguageGeneratorExtensions { * @param lg LG resource id (default: main.lg) or language generator to be added. * @returns dialog manager with language generator. */ - public static useLanguageGeneration(dialogManager: DialogManager, lg?: string | LanguageGenerator): DialogManager { + static useLanguageGeneration(dialogManager: DialogManager, lg?: string | LanguageGenerator): DialogManager { const resourceExplorer: ResourceExplorer = dialogManager.initialTurnState.get(resourceExplorerKey) || new ResourceExplorer(); @@ -78,7 +78,7 @@ export class LanguageGeneratorExtensions { * @param policy Policy to use. * @returns dialog manager with language policy. */ - public static useLanguagePolicy(dialogManager: DialogManager, policy: LanguagePolicy): DialogManager { + static useLanguagePolicy(dialogManager: DialogManager, policy: LanguagePolicy): DialogManager { dialogManager.initialTurnState.set(languagePolicyKey, policy); return dialogManager; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/languagePolicy.ts b/libraries/botbuilder-dialogs-adaptive/src/languagePolicy.ts index 991251901d..185f850ee8 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/languagePolicy.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/languagePolicy.ts @@ -17,11 +17,11 @@ export class LanguagePolicy extends Map { * * @param defaultLanguages Default languages to use. */ - public constructor(...defaultLanguages: string[]) { + constructor(...defaultLanguages: string[]) { super(LanguagePolicy.defaultPolicy(defaultLanguages)); } - public static readonly locales = [ + static readonly locales = [ '', 'aa', 'aa-dj', @@ -883,7 +883,7 @@ export class LanguagePolicy extends Map { * So that when we get a locale such as en-gb, we can try to resolve to "en-gb" then "en" then "" * See commented section for full sample of output of this function. */ - public static defaultPolicy(defaultLanguages: string[] = []): Map { + static defaultPolicy(defaultLanguages: string[] = []): Map { const result = new Map(); for (const locale of LanguagePolicy.locales) { @@ -924,7 +924,7 @@ export class LanguagePolicyConverter implements Converter | LanguagePolicy): LanguagePolicy { + convert(value: Record | LanguagePolicy): LanguagePolicy { if (value instanceof LanguagePolicy) { return value; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/languageResourceLoader.ts b/libraries/botbuilder-dialogs-adaptive/src/languageResourceLoader.ts index 60af833442..cd067dfeda 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/languageResourceLoader.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/languageResourceLoader.ts @@ -25,7 +25,7 @@ export class LanguageResourceLoader { * @param resourceExplorer The resource explorer to use. * @returns The dictionary of grouped locale. */ - public static groupByLocale(resourceExplorer: ResourceExplorer): Map { + static groupByLocale(resourceExplorer: ResourceExplorer): Map { const resourceMapping: Map = new Map(); const allResouces: Resource[] = resourceExplorer.getResources(this.lgSuffix); const languagePolicy = new LanguagePolicy(); @@ -79,7 +79,7 @@ export class LanguageResourceLoader { * @param lgFileName LG input file name. * @returns The name and language. */ - public static parseLGFileName(lgFileName: string): { prefix: string; language: string } { + static parseLGFileName(lgFileName: string): { prefix: string; language: string } { if (lgFileName === undefined || !lgFileName.endsWith('.' + this.lgSuffix)) { return { prefix: lgFileName, language: '' }; } @@ -100,7 +100,7 @@ export class LanguageResourceLoader { * @param optionalLocales Optional locales. * @returns The final locale. */ - public static fallbackLocale(locale: string, optionalLocales: string[]): string { + static fallbackLocale(locale: string, optionalLocales: string[]): string { if (optionalLocales === undefined) { throw new TypeError('Invalid Arguments'); } diff --git a/libraries/botbuilder-dialogs-adaptive/src/propertySchema.ts b/libraries/botbuilder-dialogs-adaptive/src/propertySchema.ts index 2ae214d76f..284e677ed9 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/propertySchema.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/propertySchema.ts @@ -37,19 +37,19 @@ export class PropertySchema { * @remarks * Contains `[]` for arrays and `.` for path segments. */ - public readonly path: string; + readonly path: string; /** * JSON Schema object for this property. */ - public readonly schema: object; + readonly schema: object; /** * Parent property schema if any. * * @returns The parent property schema if any. */ - public get parent(): PropertySchema | undefined { + get parent(): PropertySchema | undefined { return this._parent; } @@ -58,7 +58,7 @@ export class PropertySchema { * * @returns The child properties if there are any. */ - public get children(): PropertySchema[] { + get children(): PropertySchema[] { return this._children; } @@ -67,7 +67,7 @@ export class PropertySchema { * * @returns A list of entity names. */ - public get entities(): string[] { + get entities(): string[] { return this._entities; } @@ -76,7 +76,7 @@ export class PropertySchema { * * @returns A List of expected only entity names. */ - public get expectedOnly(): string[] { + get expectedOnly(): string[] { return this._expectedOnly; } @@ -87,7 +87,7 @@ export class PropertySchema { * Array brackets `[]` will have been removed. * @returns The name for this property. */ - public get name(): string { + get name(): string { const segments = this.path.split('.'); return segments[segments.length - 1].replace('[]', ''); } @@ -97,21 +97,21 @@ export class PropertySchema { * * @returns The JSON Schema type. */ - public get type(): string { + get type(): string { return this.schema['type']; } /** * @returns `true` if the property is an array. */ - public isArray(): boolean { + isArray(): boolean { return this.path.endsWith('[]'); } /** * @returns `true` if the property is an enum. */ - public isEnum(): boolean { + isEnum(): boolean { return !!this.schema['enum']; } } diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/adaptiveRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/adaptiveRecognizer.ts index abe7634607..0ea6d56b13 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/adaptiveRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/adaptiveRecognizer.ts @@ -21,7 +21,7 @@ export abstract class AdaptiveRecognizer extends Recognizer implements AdaptiveR /** * (Optional) Flag that designates whether personally identifiable information (PII) should log to telemetry. */ - public logPersonalInformation: BoolExpression = new BoolExpression( + logPersonalInformation: BoolExpression = new BoolExpression( '=settings.runtimeSettings.telemetry.logPersonalInformation' ); diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/crossTrainedRecognizerSet.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/crossTrainedRecognizerSet.ts index dd6dc23892..474155beb9 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/crossTrainedRecognizerSet.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/crossTrainedRecognizerSet.ts @@ -27,18 +27,18 @@ export interface CrossTrainedRecognizerSetConfiguration extends RecognizerConfig * Recognizer for selecting between cross trained recognizers. */ export class CrossTrainedRecognizerSet extends AdaptiveRecognizer implements CrossTrainedRecognizerSetConfiguration { - public static $kind = 'Microsoft.CrossTrainedRecognizerSet'; + static $kind = 'Microsoft.CrossTrainedRecognizerSet'; /** * Gets or sets the input recognizers. */ - public recognizers: Recognizer[] = []; + recognizers: Recognizer[] = []; /** * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof CrossTrainedRecognizerSetConfiguration): Converter | ConverterFactory { + getConverter(property: keyof CrossTrainedRecognizerSetConfiguration): Converter | ConverterFactory { switch (property) { case 'recognizers': return RecognizerListConverter; @@ -56,7 +56,7 @@ export class CrossTrainedRecognizerSet extends AdaptiveRecognizer implements Cro * @param {object} telemetryMetrics Optional. Additional metrics to be logged to telemetry with the recognizer result event. * @returns {Promise} Promise of the intent recognized by the recognizer in the form of a RecognizerResult. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Activity, telemetryProperties?: Record, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ageEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ageEntityRecognizer.ts index f0b45774a8..5fd962d36f 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ageEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ageEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes age input. */ export class AgeEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.AgeEntityRecognizer'; + static $kind = 'Microsoft.AgeEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/channelMentionEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/channelMentionEntityRecognizer.ts index 4c5bccb2a4..116d111294 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/channelMentionEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/channelMentionEntityRecognizer.ts @@ -14,7 +14,7 @@ import { AdaptiveRecognizer } from '../adaptiveRecognizer'; * Recognizer which maps channel activity.entities of type mention into [RecognizerResult](xref:botbuilder-core.RecognizerResult) format. */ export class ChannelMentionEntityRecognizer extends AdaptiveRecognizer { - public static $kind = 'Microsoft.ChannelMentionEntityRecognizer'; + static $kind = 'Microsoft.ChannelMentionEntityRecognizer'; /** * To recognize intents and entities in a users utterance. @@ -25,7 +25,7 @@ export class ChannelMentionEntityRecognizer extends AdaptiveRecognizer { * @param {object} _telemetryMetrics Additional metrics to be logged to telemetry with event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( _dialogContext: DialogContext, activity: Partial, _telemetryProperties?: Record, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/confirmationEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/confirmationEntityRecognizer.ts index f31b515588..735600778b 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/confirmationEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/confirmationEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes yes/no confirmation style input. */ export class ConfirmationEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.ConfirmationEntityRecognizer'; + static $kind = 'Microsoft.ConfirmationEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/currencyEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/currencyEntityRecognizer.ts index a25446ddbe..e92ae94bae 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/currencyEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/currencyEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes currency input. */ export class CurrencyEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.CurrencyEntityRecognizer'; + static $kind = 'Microsoft.CurrencyEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dateTimeEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dateTimeEntityRecognizer.ts index a629851244..2c290b037b 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dateTimeEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dateTimeEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes DateTime input. */ export class DateTimeEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.DateTimeEntityRecognizer'; + static $kind = 'Microsoft.DateTimeEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dimensionEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dimensionEntityRecognizer.ts index bbebafc3ea..e8fe005f7b 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dimensionEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/dimensionEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes dimension input. */ export class DimensionEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.DimensionEntityRecognizer'; + static $kind = 'Microsoft.DimensionEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/emailEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/emailEntityRecognizer.ts index b7b7d8a0a7..cb7f519cbc 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/emailEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/emailEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes email input. */ export class EmailEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.EmailEntityRecognizer'; + static $kind = 'Microsoft.EmailEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizer.ts index 1dcf93577d..194e0e0c72 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizer.ts @@ -24,7 +24,7 @@ export class EntityRecognizer extends AdaptiveRecognizer { * @param {object} _telemetryMetrics Additional metrics to be logged to telemetry with event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Partial, _telemetryProperties?: Record, @@ -105,7 +105,7 @@ export class EntityRecognizer extends AdaptiveRecognizer { * @param {Entity[]} _entities The [Entity](xref:botbuilder-core.Entity) list to be recognized. * @returns {Promise} Recognized [Entity](xref:botbuilder-core.Entity) list. */ - public async recognizeEntities( + async recognizeEntities( _dialogContext: DialogContext, _text: string, _locale: string, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizerSet.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizerSet.ts index cddd8c98a7..d04846d0ab 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizerSet.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/entityRecognizerSet.ts @@ -15,7 +15,7 @@ import { TextEntity } from './textEntity'; * EntityRecognizerSet - Implements a workflow against a pool of [EntityRecognizer](xref:botbuilder-dialogs-adaptive.EntityRecognizer) instances, iterating until nobody has anything new to add. */ export class EntityRecognizerSet extends Array { - public static $kind = 'Microsoft.EntityRecognizerSet'; + static $kind = 'Microsoft.EntityRecognizerSet'; /** * Implement [EntityRecognizer.recognizeEntities](xref:botbuilder-dialogs-adaptive.EntityRecognizer.recognizeEntities) by iterating against the Recognizer pool. @@ -26,7 +26,7 @@ export class EntityRecognizerSet extends Array { * @param entities The [Entity](xref:botframework-schema.Entity) array to be recognized. If no entities are passed in, it will generate a [TextEntity](xref:botbuilder-dialogs-adaptive.TextEntity). * @returns Recognized [Entity](xref:botframework-schema.Entity) list Promise. */ - public async recognizeEntities( + async recognizeEntities( dialogContext: DialogContext, text: string, locale: string, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/guidEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/guidEntityRecognizer.ts index af7b68befd..2f64c16a20 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/guidEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/guidEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes GUID input. */ export class GuidEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.GuidEntityRecognizer'; + static $kind = 'Microsoft.GuidEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/hashtagEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/hashtagEntityRecognizer.ts index 8ee13ca1d4..8fa6df88ba 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/hashtagEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/hashtagEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes hashtag input. */ export class HashtagEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.HashtagEntityRecognizer'; + static $kind = 'Microsoft.HashtagEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ipEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ipEntityRecognizer.ts index 71e4e7df28..4f86e4f15c 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ipEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ipEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes IP input. */ export class IpEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.IpEntityRecognizer'; + static $kind = 'Microsoft.IpEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/mentionEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/mentionEntityRecognizer.ts index 3c73f05241..3050348216 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/mentionEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/mentionEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes mention input. */ export class MentionEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.MentionEntityRecognizer'; + static $kind = 'Microsoft.MentionEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/numberEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/numberEntityRecognizer.ts index a4630d86dd..b74d66e198 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/numberEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/numberEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes number input. */ export class NumberEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.NumberEntityRecognizer'; + static $kind = 'Microsoft.NumberEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ordinalEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ordinalEntityRecognizer.ts index 452e12d806..243de26e6c 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ordinalEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/ordinalEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes ordinal input. */ export class OrdinalEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.OrdinalEntityRecognizer'; + static $kind = 'Microsoft.OrdinalEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/percentageEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/percentageEntityRecognizer.ts index 8fc8a817eb..ddc84785d2 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/percentageEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/percentageEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes percentage input. */ export class PercentageEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.PercentageEntityRecognizer'; + static $kind = 'Microsoft.PercentageEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/phoneNumberEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/phoneNumberEntityRecognizer.ts index e1c701b303..72a1b2b878 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/phoneNumberEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/phoneNumberEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes phone number input. */ export class PhoneNumberEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.PhoneNumberEntityRecognizer'; + static $kind = 'Microsoft.PhoneNumberEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/regexEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/regexEntityRecognizer.ts index 46fee7e059..7329d23e86 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/regexEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/regexEntityRecognizer.ts @@ -18,16 +18,16 @@ export interface RegexEntityRecognizerConfiguration { * Matches input against a regular expression. */ export class RegexEntityRecognizer extends TextEntityRecognizer implements RegexEntityRecognizerConfiguration { - public static $kind = 'Microsoft.RegexEntityRecognizer'; + static $kind = 'Microsoft.RegexEntityRecognizer'; - public constructor(); + constructor(); /** * Initializes a new instance of the [RegexEntityRecognizer](xref:botbuilder-dialogs-adaptive.RegexEntityRecognizer) class. * * @param name The name match result `typeName` value. * @param pattern The regular expression pattern value. */ - public constructor(name?: string, pattern?: string) { + constructor(name?: string, pattern?: string) { super(); if (name) { this.name = name; @@ -37,21 +37,21 @@ export class RegexEntityRecognizer extends TextEntityRecognizer implements Regex } } - public name: string; + name: string; /** * Gets the regular expression pattern value. * * @returns The pattern. */ - public get pattern(): string { + get pattern(): string { return this._pattern; } /** * Sets the pattern. */ - public set pattern(value: string) { + set pattern(value: string) { if (value.startsWith('(?i)')) { value = value.substr(4); } diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/temperatureEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/temperatureEntityRecognizer.ts index 9cb5861b1d..cab8b320f7 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/temperatureEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/temperatureEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes temperature input. */ export class TemperatureEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.TemperatureEntityRecognizer'; + static $kind = 'Microsoft.TemperatureEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntity.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntity.ts index ad07f4e15f..d35e080d63 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntity.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntity.ts @@ -12,16 +12,16 @@ import { Entity } from 'botbuilder'; * Text entity base class. */ export class TextEntity implements Entity { - public type = 'text'; + type = 'text'; - public text: string; + text: string; /** * Initializes a new instance of the [TextEntity](xref:botbuilder-dialogs-adaptive.TextEntity) class. * * @param text The text value. */ - public constructor(text?: string) { + constructor(text?: string) { this.text = text; } } diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntityRecognizer.ts index f5847f667d..a4276033ab 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/textEntityRecognizer.ts @@ -25,7 +25,7 @@ export abstract class TextEntityRecognizer extends EntityRecognizer { * @param {Entity[]} entities The [Entity](xref:botframework-schema.Entity) array to be recognized. * @returns {Promise} Recognized [Entity](xref:botframework-schema.Entity) list Promise. */ - public async recognizeEntities( + async recognizeEntities( dialogContext: DialogContext, text: string, locale: string, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/urlEntityRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/urlEntityRecognizer.ts index 720d284c9d..45b2205eed 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/urlEntityRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/entityRecognizers/urlEntityRecognizer.ts @@ -14,7 +14,7 @@ import { TextEntityRecognizer } from './textEntityRecognizer'; * Recognizes URL input. */ export class UrlEntityRecognizer extends TextEntityRecognizer { - public static $kind = 'Microsoft.UrlEntityRecognizer'; + static $kind = 'Microsoft.UrlEntityRecognizer'; /** * @protected diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/intentPattern.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/intentPattern.ts index b7a986d870..37746ca42c 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/intentPattern.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/intentPattern.ts @@ -15,7 +15,7 @@ export class IntentPattern { * @param intent The intent. * @param pattern The regex pattern to match.. */ - public constructor(intent?: string, pattern?: string) { + constructor(intent?: string, pattern?: string) { if (intent && pattern) { this.intent = intent; this.pattern = pattern; @@ -25,7 +25,7 @@ export class IntentPattern { /** * @returns An instance of RegExp with the given pattern. */ - public get regex(): RegExp { + get regex(): RegExp { // eslint-disable-next-line security/detect-non-literal-regexp return new RegExp(this._pattern, 'ig'); } @@ -35,14 +35,14 @@ export class IntentPattern { * * @returns The intent. */ - public get intent(): string { + get intent(): string { return this._intent; } /** * Sets the intent. */ - public set intent(value: string) { + set intent(value: string) { this._intent = value[0] == '#' ? value.substr(1) : value; } @@ -51,14 +51,14 @@ export class IntentPattern { * * @returns The pattern. */ - public get pattern(): string { + get pattern(): string { return this._pattern; } /** * Sets the pattern */ - public set pattern(value: string) { + set pattern(value: string) { this._pattern = value.startsWith('(?i)') ? value.substr(4) : value; } } diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/multiLanguageRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/multiLanguageRecognizer.ts index fcd05e1a23..3c7c746239 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/multiLanguageRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/multiLanguageRecognizer.ts @@ -23,17 +23,17 @@ export interface MultiLanguageRecognizerConfiguration extends RecognizerConfigur * Defines map of languages -> recognizer. */ export class MultiLanguageRecognizer extends AdaptiveRecognizer implements MultiLanguageRecognizerConfiguration { - public static $kind = 'Microsoft.MultiLanguageRecognizer'; + static $kind = 'Microsoft.MultiLanguageRecognizer'; - public languagePolicy: LanguagePolicy; + languagePolicy: LanguagePolicy; - public recognizers: { [locale: string]: Recognizer }; + recognizers: { [locale: string]: Recognizer }; /** * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof MultiLanguageRecognizerConfiguration): Converter | ConverterFactory { + getConverter(property: keyof MultiLanguageRecognizerConfiguration): Converter | ConverterFactory { switch (property) { case 'languagePolicy': return new LanguagePolicyConverter(); @@ -53,7 +53,7 @@ export class MultiLanguageRecognizer extends AdaptiveRecognizer implements Multi * @param telemetryMetrics Optional, additional metrics to be logged to telemetry with the LuisResult event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Activity, telemetryProperties?: { [key: string]: string }, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/recognizerSet.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/recognizerSet.ts index 9c26fe09dc..37f46e4791 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/recognizerSet.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/recognizerSet.ts @@ -20,15 +20,15 @@ export interface RecognizerSetConfiguration extends RecognizerConfiguration { * A recognizer class whose result is the union of results from multiple recognizers into one RecognizerResult. */ export class RecognizerSet extends AdaptiveRecognizer implements RecognizerSetConfiguration { - public static $kind = 'Microsoft.RecognizerSet'; + static $kind = 'Microsoft.RecognizerSet'; - public recognizers: Recognizer[] = []; + recognizers: Recognizer[] = []; /** * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof RecognizerSetConfiguration): Converter | ConverterFactory { + getConverter(property: keyof RecognizerSetConfiguration): Converter | ConverterFactory { switch (property) { case 'recognizers': return RecognizerListConverter; @@ -46,7 +46,7 @@ export class RecognizerSet extends AdaptiveRecognizer implements RecognizerSetCo * @param telemetryMetrics Optional, additional metrics to be logged to telemetry with the LuisResult event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Activity, telemetryProperties?: { [key: string]: string }, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/regexRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/regexRecognizer.ts index 23e103be6d..3fd2750fa7 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/regexRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/regexRecognizer.ts @@ -20,7 +20,7 @@ type IntentPatternInput = { }; class IntentPatternsConverter implements Converter { - public convert(items: IntentPatternInput[] | IntentPattern[]): IntentPattern[] { + convert(items: IntentPatternInput[] | IntentPattern[]): IntentPattern[] { const results: IntentPattern[] = []; items.forEach((item) => { results.push(item instanceof IntentPattern ? item : new IntentPattern(item.intent, item.pattern)); @@ -37,23 +37,23 @@ export interface RegexRecognizerConfiguration extends RecognizerSetConfiguration * Recognizer implementation which uses regex expressions to identify intents. */ export class RegexRecognizer extends AdaptiveRecognizer implements RegexRecognizerConfiguration { - public static $kind = 'Microsoft.RegexRecognizer'; + static $kind = 'Microsoft.RegexRecognizer'; /** * Array of patterns -> intent names. */ - public intents: IntentPattern[] = []; + intents: IntentPattern[] = []; /** * The entity recognizers. */ - public entities: EntityRecognizer[] = []; + entities: EntityRecognizer[] = []; /** * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof RegexRecognizerConfiguration): Converter | ConverterFactory { + getConverter(property: keyof RegexRecognizerConfiguration): Converter | ConverterFactory { switch (property) { case 'intents': return new IntentPatternsConverter(); @@ -71,7 +71,7 @@ export class RegexRecognizer extends AdaptiveRecognizer implements RegexRecogniz * @param telemetryMetrics Optional, additional metrics to be logged to telemetry with the LuisResult event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Activity, telemetryProperties?: { [key: string]: string }, diff --git a/libraries/botbuilder-dialogs-adaptive/src/recognizers/valueRecognizer.ts b/libraries/botbuilder-dialogs-adaptive/src/recognizers/valueRecognizer.ts index 89f09dc04c..63cdff515a 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/recognizers/valueRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/recognizers/valueRecognizer.ts @@ -13,7 +13,7 @@ import { TelemetryLoggerConstants } from '../telemetryLoggerConstants'; /** * ValueRecognizer - Recognizer for mapping message activity. Value payload into intent/entities. - * + * * @remarks * This recognizer will map MessageActivity Value payloads into intents and entities. * activity.Value.intent => RecognizerResult.Intents. @@ -29,7 +29,7 @@ export class ValueRecognizer extends AdaptiveRecognizer { * @param telemetryMetrics Optional, additional metrics to be logged to telemetry with the LuisResult event. * @returns {Promise} Analysis of utterance. */ - public async recognize( + async recognize( dialogContext: DialogContext, activity: Activity, telemetryProperties?: { [key: string]: string }, diff --git a/libraries/botbuilder-dialogs-adaptive/src/resourceExtensions.ts b/libraries/botbuilder-dialogs-adaptive/src/resourceExtensions.ts index 652fb73b3a..a0648a3968 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/resourceExtensions.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/resourceExtensions.ts @@ -25,7 +25,7 @@ export class ResourceExtensions { * @param resourceExplorer The resource explorer to be added. * @returns dialog manager with resource explorer. */ - public static useResourceExplorer(dialogManager: DialogManager, resourceExplorer: ResourceExplorer): DialogManager { + static useResourceExplorer(dialogManager: DialogManager, resourceExplorer: ResourceExplorer): DialogManager { dialogManager.initialTurnState.set(resourceExplorerKey, resourceExplorer); return dialogManager; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/schemaHelper.ts b/libraries/botbuilder-dialogs-adaptive/src/schemaHelper.ts index 1fc33ead09..365a3c1ddb 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/schemaHelper.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/schemaHelper.ts @@ -16,7 +16,7 @@ export class SchemaHelper { * * @param schema JSON schema to parse. */ - public constructor(schema: object) { + constructor(schema: object) { this.schema = schema; this.property = this.createProperty(schema); } @@ -24,19 +24,19 @@ export class SchemaHelper { /** * JSON schema object. */ - public readonly schema: object; + readonly schema: object; /** * Root object property for the schema. */ - public readonly property: PropertySchema; + readonly property: PropertySchema; /** * List of required property names. * * @returns The list of required property names. */ - public get required(): string[] { + get required(): string[] { return this.schema['required'] || []; } @@ -46,7 +46,7 @@ export class SchemaHelper { * @param path Path of the properties schema to return. * @returns the schema object for a given property path. */ - public pathToSchema(path: string): PropertySchema | undefined { + pathToSchema(path: string): PropertySchema | undefined { let property: PropertySchema = undefined; const segments = path.replace('[]', '').split('.'); if (segments.length > 0) { diff --git a/libraries/botbuilder-dialogs-adaptive/src/selectors/conditionalSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/selectors/conditionalSelector.ts index 52324237ae..a7b19f7281 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/selectors/conditionalSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/selectors/conditionalSelector.ts @@ -28,7 +28,7 @@ export interface ConditionalSelectorConfiguration { * Select between two rule selectors based on a condition. */ export class ConditionalSelector extends TriggerSelector implements ConditionalSelectorConfiguration { - public static $kind = 'Microsoft.ConditionalSelector'; + static $kind = 'Microsoft.ConditionalSelector'; private _conditionals: OnCondition[]; private _evaluate: boolean; @@ -36,22 +36,22 @@ export class ConditionalSelector extends TriggerSelector implements ConditionalS /** * Expression that determines which selector to use. */ - public condition: BoolExpression; + condition: BoolExpression; /** * Gets or sets selector if condition is true. */ - public ifTrue: TriggerSelector; + ifTrue: TriggerSelector; /** * Gets or sets selector if condition is false. */ - public ifFalse: TriggerSelector; + ifFalse: TriggerSelector; /** * Gets or sets the expression parser to use. */ - public parser: ExpressionParserInterface = new ExpressionParser(); + parser: ExpressionParserInterface = new ExpressionParser(); /** * Gets the converter for the selector configuration. @@ -59,7 +59,7 @@ export class ConditionalSelector extends TriggerSelector implements ConditionalS * @param property The key of the conditional selector configuration. * @returns The converter for the selector configuration. */ - public getConverter(property: keyof ConditionalSelectorConfiguration): Converter | ConverterFactory { + getConverter(property: keyof ConditionalSelectorConfiguration): Converter | ConverterFactory { switch (property) { case 'condition': return new BoolExpressionConverter(); @@ -74,7 +74,7 @@ export class ConditionalSelector extends TriggerSelector implements ConditionalS * @param conditionals Possible rules to match. * @param evaluate True if rules should be evaluated on select. */ - public initialize(conditionals: OnCondition[], evaluate: boolean): void { + initialize(conditionals: OnCondition[], evaluate: boolean): void { this._conditionals = conditionals; this._evaluate = evaluate; } @@ -85,7 +85,7 @@ export class ConditionalSelector extends TriggerSelector implements ConditionalS * @param actionContext Dialog context for evaluation. * @returns A Promise with a number array. */ - public select(actionContext: ActionContext): Promise { + select(actionContext: ActionContext): Promise { let selector: TriggerSelector; if (this.condition && this.condition.getValue(actionContext.state)) { selector = this.ifTrue; diff --git a/libraries/botbuilder-dialogs-adaptive/src/selectors/firstSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/selectors/firstSelector.ts index 68d776f6f5..0060b1870b 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/selectors/firstSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/selectors/firstSelector.ts @@ -13,7 +13,7 @@ import { ActionContext } from '../actionContext'; * Select the first true rule implementation of TriggerSelector */ export class FirstSelector extends TriggerSelector { - public static $kind = 'Microsoft.FirstSelector'; + static $kind = 'Microsoft.FirstSelector'; private _conditionals: OnCondition[]; private _evaluate: boolean; @@ -24,7 +24,7 @@ export class FirstSelector extends TriggerSelector { * @param conditionals Possible rules to match. * @param evaluate A boolean representing if rules should be evaluated on select. */ - public initialize(conditionals: OnCondition[], evaluate: boolean): void { + initialize(conditionals: OnCondition[], evaluate: boolean): void { this._conditionals = conditionals; this._evaluate = evaluate; } @@ -35,7 +35,7 @@ export class FirstSelector extends TriggerSelector { * @param actionContext Dialog context for evaluation. * @returns A Promise with a number array. */ - public select(actionContext: ActionContext): Promise { + select(actionContext: ActionContext): Promise { let selection: OnCondition; let lowestPriority = Number.MAX_SAFE_INTEGER; diff --git a/libraries/botbuilder-dialogs-adaptive/src/selectors/mostSpecificSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/selectors/mostSpecificSelector.ts index 1445293180..a92ddb9a0d 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/selectors/mostSpecificSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/selectors/mostSpecificSelector.ts @@ -18,11 +18,11 @@ export interface MostSpecificSelectorConfiguration { * Select the most specific true rule implementation of [TriggerSelector](xref:botbuilder-dialogs-adaptive.TriggerSelector). */ export class MostSpecificSelector extends TriggerSelector implements MostSpecificSelectorConfiguration { - public static $kind = 'Microsoft.MostSpecificSelector'; + static $kind = 'Microsoft.MostSpecificSelector'; private readonly _tree = new TriggerTree(); - public selector: TriggerSelector; + selector: TriggerSelector; /** * Initializes the selector with the set of rules. @@ -30,7 +30,7 @@ export class MostSpecificSelector extends TriggerSelector implements MostSpecifi * @param conditionals Possible rules to match. * @param _evaluate True by default if rules should be evaluated on select. */ - public initialize(conditionals: OnCondition[], _evaluate: boolean): void { + initialize(conditionals: OnCondition[], _evaluate: boolean): void { for (const conditional of conditionals) { this._tree.addTrigger(conditional.getExpression(), conditional); } @@ -42,7 +42,7 @@ export class MostSpecificSelector extends TriggerSelector implements MostSpecifi * @param context The context for the current turn of conversation. * @returns The best rule in original list to execute. */ - public async select(context: ActionContext): Promise { + async select(context: ActionContext): Promise { const triggers = this._tree.matches(context.state); const matches: OnCondition[] = triggers.map((trigger: Trigger) => trigger.action); diff --git a/libraries/botbuilder-dialogs-adaptive/src/selectors/randomSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/selectors/randomSelector.ts index 603c475bcb..6ffa07e095 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/selectors/randomSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/selectors/randomSelector.ts @@ -14,7 +14,7 @@ import { ActionContext } from '../actionContext'; * Select a random true rule implementation of TriggerSelector. */ export class RandomSelector extends TriggerSelector { - public static $kind = 'Microsoft.RandomSelector'; + static $kind = 'Microsoft.RandomSelector'; private _conditionals: OnCondition[]; private _evaluate: boolean; @@ -25,7 +25,7 @@ export class RandomSelector extends TriggerSelector { * @param conditionals Possible rules to match. * @param evaluate A boolean representing if rules should be evaluated on select. */ - public initialize(conditionals: OnCondition[], evaluate: boolean): void { + initialize(conditionals: OnCondition[], evaluate: boolean): void { this._conditionals = conditionals; this._evaluate = evaluate; } @@ -36,7 +36,7 @@ export class RandomSelector extends TriggerSelector { * @param actionContext Dialog context for evaluation. * @returns A Promise with a number array. */ - public select(actionContext: ActionContext): Promise { + select(actionContext: ActionContext): Promise { const candidates: OnCondition[] = []; for (let i = 0; i < this._conditionals.length; i++) { diff --git a/libraries/botbuilder-dialogs-adaptive/src/selectors/trueSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/selectors/trueSelector.ts index c5ac90050a..b12b4e2161 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/selectors/trueSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/selectors/trueSelector.ts @@ -13,7 +13,7 @@ import { ActionContext } from '../actionContext'; * Select all rules which evaluate to true. */ export class TrueSelector extends TriggerSelector { - public static $kind = 'Microsoft.TrueSelector'; + static $kind = 'Microsoft.TrueSelector'; private _conditionals: OnCondition[]; private _evaluate: boolean; @@ -24,7 +24,7 @@ export class TrueSelector extends TriggerSelector { * @param conditionals Possible rules to match. * @param evaluate True if rules should be evaluated on select. */ - public initialize(conditionals: OnCondition[], evaluate: boolean): void { + initialize(conditionals: OnCondition[], evaluate: boolean): void { this._conditionals = conditionals; this._evaluate = evaluate; } @@ -35,7 +35,7 @@ export class TrueSelector extends TriggerSelector { * @param actionContext Dialog context for evaluation. * @returns A Promise with a number array. */ - public select(actionContext: ActionContext): Promise { + select(actionContext: ActionContext): Promise { const candidates: OnCondition[] = []; for (let i = 0; i < this._conditionals.length; i++) { diff --git a/libraries/botbuilder-dialogs-adaptive/src/skillExtensions.ts b/libraries/botbuilder-dialogs-adaptive/src/skillExtensions.ts index fc3d17b7ec..043f6c893d 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/skillExtensions.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/skillExtensions.ts @@ -30,7 +30,7 @@ export class SkillExtensions { * @param skillClient The skill client to be added. * @returns The existing dialog manager object with the new skill client state. */ - public static useSkillClient(dialogManager: DialogManager, skillClient: BotFrameworkClient): DialogManager { + static useSkillClient(dialogManager: DialogManager, skillClient: BotFrameworkClient): DialogManager { dialogManager.initialTurnState.set(skillClientKey, skillClient); return dialogManager; } @@ -42,7 +42,7 @@ export class SkillExtensions { * @param skillConversationIdFactory The skill conversation id factory to be added. * @returns The existing dialog manager object with the new skill conversation factory state. */ - public static useSkillConversationIdFactory( + static useSkillConversationIdFactory( dialogManager: DialogManager, skillConversationIdFactory: SkillConversationIdFactoryBase ): DialogManager { diff --git a/libraries/botbuilder-dialogs-adaptive/src/telemetryLoggerConstants.ts b/libraries/botbuilder-dialogs-adaptive/src/telemetryLoggerConstants.ts index c93906f461..ceb9d1aa77 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/telemetryLoggerConstants.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/telemetryLoggerConstants.ts @@ -13,80 +13,80 @@ export class TelemetryLoggerConstants { /** * The generic name of the event when a binding completes. When this event is logged, the context property will contain a more descriptive constant. */ - public static readonly GeneratorResultEvent: string = 'GeneratorResult'; + static readonly GeneratorResultEvent: string = 'GeneratorResult'; /** * The name of the event when an adaptive dialog trigger occurs. */ - public static readonly TriggerEvent: string = 'AdaptiveDialogTrigger'; + static readonly TriggerEvent: string = 'AdaptiveDialogTrigger'; /** * The name of the event when an adaptive dialog complete occurs. */ - public static readonly CompleteEvent: string = 'AdaptiveDialogComplete'; + static readonly CompleteEvent: string = 'AdaptiveDialogComplete'; /** * The name of the event when an adaptive dialog cancel occurs. */ - public static readonly DialogCancelEvent: string = 'AdaptiveDialogCancel'; + static readonly DialogCancelEvent: string = 'AdaptiveDialogCancel'; /** * The name of the event when an adaptive dialog start occurs. */ - public static readonly DialogStartEvent: string = 'AdaptiveDialogStart'; + static readonly DialogStartEvent: string = 'AdaptiveDialogStart'; /** * The name of the event when an adaptive dialog action occurs. */ - public static readonly DialogActionEvent: string = 'AdaptiveDialogAction'; + static readonly DialogActionEvent: string = 'AdaptiveDialogAction'; /** * The name of the event when a Log Action result occurs. */ - public static readonly LogActionResultEvent: string = 'LogActionResult'; + static readonly LogActionResultEvent: string = 'LogActionResult'; /** * The name of the event when a Sent Activity result occurs. */ - public static readonly SendActivityResultEvent: string = 'SendActivityResult'; + static readonly SendActivityResultEvent: string = 'SendActivityResult'; /** * The name of the event when an Update Activity result occurs. */ - public static readonly UpdateActivityResultEvent: string = 'UpdateActivityResult'; + static readonly UpdateActivityResultEvent: string = 'UpdateActivityResult'; /** * The name of the event when an Input result occurs. */ - public static readonly InputDialogResultEvent: string = 'InputDialogResult'; + static readonly InputDialogResultEvent: string = 'InputDialogResult'; /** * The name of the event when an OAuth Input result occurs. */ - public static readonly OAuthInputResultEvent: string = 'OAuthInputResult'; + static readonly OAuthInputResultEvent: string = 'OAuthInputResult'; /** * The name of the event when a cross trained recognizer set result occurs. */ - public static readonly CrossTrainedRecognizerSetResultEvent: string = 'CrossTrainedRecognizerSetResult'; + static readonly CrossTrainedRecognizerSetResultEvent: string = 'CrossTrainedRecognizerSetResult'; /** * The name of the event when a multi language recognizer result occurs. */ - public static readonly MultiLanguageRecognizerResultEvent: string = 'MultiLanguageRecognizerResult'; + static readonly MultiLanguageRecognizerResultEvent: string = 'MultiLanguageRecognizerResult'; /** * The name of the event when a recognizer set result occurs. */ - public static readonly RecognizerSetResultEvent: string = 'RecognizerSetResult'; + static readonly RecognizerSetResultEvent: string = 'RecognizerSetResult'; /** * The name of the event when a regex recognizer result occurs. */ - public static readonly RegexRecognizerResultEvent: string = 'RegexRecognizerResult'; + static readonly RegexRecognizerResultEvent: string = 'RegexRecognizerResult'; /** * The name of the event when a value recognizer result occurs. */ - public static readonly ValueRecognizerResultEvent: string = 'ValueRecognizerResult'; + static readonly ValueRecognizerResultEvent: string = 'ValueRecognizerResult'; } diff --git a/libraries/botbuilder-dialogs-adaptive/src/triggerSelector.ts b/libraries/botbuilder-dialogs-adaptive/src/triggerSelector.ts index 53450231ed..abbc7e4bd5 100644 --- a/libraries/botbuilder-dialogs-adaptive/src/triggerSelector.ts +++ b/libraries/botbuilder-dialogs-adaptive/src/triggerSelector.ts @@ -19,12 +19,12 @@ export abstract class TriggerSelector extends Configurable { * @param conditionHandlers Possible rules to match. * @param evaluate True if rules should be evaluated on select. */ - public abstract initialize(conditionHandlers: OnCondition[], evaluate: boolean): void; + abstract initialize(conditionHandlers: OnCondition[], evaluate: boolean): void; /** * Select the best rule to execute. * * @param actionContext Dialog context for evaluation. */ - public abstract select(actionContext: ActionContext): Promise; + abstract select(actionContext: ActionContext): Promise; }