From 41d0092dac81ade346cdd0f84dfb5d429d89ed69 Mon Sep 17 00:00:00 2001 From: Alex Terentiev Date: Thu, 26 Oct 2023 15:04:45 -0700 Subject: [PATCH] more lint errors --- .../sharepoint/sharePointActivityHandler.ts | 83 ++++++++++++------- 1 file changed, 52 insertions(+), 31 deletions(-) diff --git a/libraries/botbuilder/src/sharepoint/sharePointActivityHandler.ts b/libraries/botbuilder/src/sharepoint/sharePointActivityHandler.ts index 54618744df..e0227276be 100644 --- a/libraries/botbuilder/src/sharepoint/sharePointActivityHandler.ts +++ b/libraries/botbuilder/src/sharepoint/sharePointActivityHandler.ts @@ -15,7 +15,7 @@ import { QuickViewResponse, GetPropertyPaneConfigurationResponse, SetPropertyPaneConfigurationResponse, - HandleActionResponse + HandleActionResponse, } from 'botbuilder-core'; /** @@ -26,10 +26,10 @@ export class SharePointActivityHandler extends ActivityHandler { /** * Invoked when an invoke activity is received from the connector. * Invoke activities can be used to communicate many different things. + * * Invoke activities communicate programmatic commands from a client or channel to a bot. + * * @param context A strongly-typed context object for this turn * @returns A task that represents the work queued to execute - * - * Invoke activities communicate programmatic commands from a client or channel to a bot. */ protected async onInvokeActivity(context: TurnContext): Promise { try { @@ -39,26 +39,32 @@ export class SharePointActivityHandler extends ActivityHandler { switch (context.activity.name) { case 'cardExtension/getCardView': return ActivityHandler.createInvokeResponse( - await this.OnSharePointTaskGetCardViewAsync(context, (context.activity.value as AceRequest)) + await this.OnSharePointTaskGetCardViewAsync(context, context.activity.value as AceRequest) ); case 'cardExtension/getQuickView': return ActivityHandler.createInvokeResponse( - await this.OnSharePointTaskGetQuickViewAsync(context, (context.activity.value as AceRequest)) + await this.OnSharePointTaskGetQuickViewAsync(context, context.activity.value as AceRequest) ); case 'cardExtension/getPropertyPaneConfiguration': return ActivityHandler.createInvokeResponse( - await this.OnSharePointTaskGetPropertyPaneConfigurationAsync(context, (context.activity.value as AceRequest)) + await this.OnSharePointTaskGetPropertyPaneConfigurationAsync( + context, + context.activity.value as AceRequest + ) ); case 'cardExtension/setPropertyPaneConfiguration': return ActivityHandler.createInvokeResponse( - await this.OnSharePointTaskSetPropertyPaneConfigurationAsync(context, (context.activity.value as AceRequest)) + await this.OnSharePointTaskSetPropertyPaneConfigurationAsync( + context, + context.activity.value as AceRequest + ) ); case 'cardExtension/handleAction': return ActivityHandler.createInvokeResponse( - await this.OnSharePointTaskHandleActionAsync(context, (context.activity.value as AceRequest)) + await this.OnSharePointTaskHandleActionAsync(context, context.activity.value as AceRequest) ); default: return super.onInvokeActivity(context); @@ -76,56 +82,71 @@ export class SharePointActivityHandler extends ActivityHandler { /** * Override this in a derived class to provide logic for when a card view is fetched - * - * @param context - A strongly-typed context object for this turn - * @param taskModuleRequest - The task module invoke request value payload + * + * @param _context - A strongly-typed context object for this turn + * @param _aceRequest - The Ace invoke request value payload * @returns A task module response for the request */ - protected async OnSharePointTaskGetCardViewAsync(context: TurnContext, aceRequest: AceRequest): Promise{ + protected async OnSharePointTaskGetCardViewAsync( + _context: TurnContext, + _aceRequest: AceRequest + ): Promise { throw new Error('NotImplemented'); } /** * Override this in a derived class to provide logic for when a quick view is fetched - * - * @param context - A strongly-typed context object for this turn - * @param taskModuleRequest - The task module invoke request value payload + * + * @param _context - A strongly-typed context object for this turn + * @param _aceRequest - The Ace invoke request value payload * @returns A task module response for the request */ - protected async OnSharePointTaskGetQuickViewAsync(context: TurnContext, aceRequest: AceRequest): Promise{ + protected async OnSharePointTaskGetQuickViewAsync( + _context: TurnContext, + _aceRequest: AceRequest + ): Promise { throw new Error('NotImplemented'); } /** * Override this in a derived class to provide logic for getting configuration pane properties. - * - * @param context - A strongly-typed context object for this turn - * @param taskModuleRequest - The task module invoke request value payload + * + * @param _context - A strongly-typed context object for this turn + * @param _aceRequest - The Ace invoke request value payload * @returns A task module response for the request */ - protected async OnSharePointTaskGetPropertyPaneConfigurationAsync(context: TurnContext, aceRequest: AceRequest): Promise{ + protected async OnSharePointTaskGetPropertyPaneConfigurationAsync( + _context: TurnContext, + _aceRequest: AceRequest + ): Promise { throw new Error('NotImplemented'); } /** * Override this in a derived class to provide logic for setting configuration pane properties. - * - * @param context - A strongly-typed context object for this turn - * @param taskModuleRequest - The task module invoke request value payload + * + * @param _context - A strongly-typed context object for this turn + * @param _aceRequest - The Ace invoke request value payload * @returns A task module response for the request */ - protected async OnSharePointTaskSetPropertyPaneConfigurationAsync(context: TurnContext, aceRequest: AceRequest): Promise{ + protected async OnSharePointTaskSetPropertyPaneConfigurationAsync( + _context: TurnContext, + _aceRequest: AceRequest + ): Promise { throw new Error('NotImplemented'); - } + } /** * Override this in a derived class to provide logic for setting configuration pane properties. - * - * @param context - A strongly-typed context object for this turn - * @param taskModuleRequest - The task module invoke request value payload + * + * @param _context - A strongly-typed context object for this turn + * @param _aceRequest - The Ace invoke request value payload * @returns A task module response for the request */ - protected async OnSharePointTaskHandleActionAsync(context: TurnContext, aceRequest: AceRequest): Promise{ + protected async OnSharePointTaskHandleActionAsync( + _context: TurnContext, + _aceRequest: AceRequest + ): Promise { throw new Error('NotImplemented'); - } -} \ No newline at end of file + } +}