From ef58b03e4cca9de231272f24ba6e3a8000496cef Mon Sep 17 00:00:00 2001 From: JhontSouth Date: Thu, 14 Nov 2024 11:36:22 -0500 Subject: [PATCH] fix eslint issues in botframework-schema --- .../botframework-schema/eslint.config.cjs | 10 -- libraries/botframework-schema/package.json | 5 +- .../botframework-schema/src/activityEx.ts | 8 +- .../src/activityInterfaces.ts | 10 +- libraries/botframework-schema/src/index.ts | 54 +++++------ .../cardView/cardSearchBoxComponent.ts | 3 +- .../sharepoint/cardView/cardViewParameters.ts | 12 +-- .../sharepoint/propertyPaneFieldProperties.ts | 3 +- .../propertyPaneGroupOrConditionalGroup.ts | 3 +- .../src/teams/extension/index.ts | 3 - .../botframework-schema/src/teams/index.ts | 94 +++++-------------- .../tests/speechConstants.test.js | 2 +- 12 files changed, 72 insertions(+), 135 deletions(-) delete mode 100644 libraries/botframework-schema/eslint.config.cjs diff --git a/libraries/botframework-schema/eslint.config.cjs b/libraries/botframework-schema/eslint.config.cjs deleted file mode 100644 index 63647b52cc..0000000000 --- a/libraries/botframework-schema/eslint.config.cjs +++ /dev/null @@ -1,10 +0,0 @@ -const onlyWarn = require("eslint-plugin-only-warn"); -const sharedConfig = require("../../eslint.config.cjs") - -module.exports = [ - ...sharedConfig, - { - plugins: { - "only-warn": onlyWarn, - }, - }]; diff --git a/libraries/botframework-schema/package.json b/libraries/botframework-schema/package.json index a97a0f9c48..38a847802c 100644 --- a/libraries/botframework-schema/package.json +++ b/libraries/botframework-schema/package.json @@ -29,8 +29,7 @@ "dependencies": { "uuid": "^10.0.0", "zod": "^3.23.8", - "adaptivecards": "1.2.3", - "eslint-plugin-only-warn": "^1.1.0" + "adaptivecards": "1.2.3" }, "scripts": { "build": "tsc -b", @@ -38,7 +37,7 @@ "build:rollup": "yarn clean && yarn build && api-extractor run --verbose --local", "clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo", "depcheck": "depcheck --config ../../.depcheckrc", - "lint": "eslint .", + "lint": "eslint . --config ../../eslint.config.cjs", "test": "yarn build && nyc mocha tests/", "test:compat": "api-extractor run --verbose" }, diff --git a/libraries/botframework-schema/src/activityEx.ts b/libraries/botframework-schema/src/activityEx.ts index 6ba4cd87b9..75012142cb 100644 --- a/libraries/botframework-schema/src/activityEx.ts +++ b/libraries/botframework-schema/src/activityEx.ts @@ -122,7 +122,7 @@ export namespace ActivityEx { name: string, valueType?: string, value?: unknown, - label?: string + label?: string, ): Partial { return { type: ActivityTypes.Trace, @@ -188,7 +188,7 @@ export namespace ActivityEx { name: string, value?: unknown, valueType?: string, - label?: string + label?: string, ): ITraceActivity { return { type: ActivityTypes.Trace, @@ -229,7 +229,7 @@ export namespace ActivityEx { * @returns This activity as a contact relation update activity; or null. */ export function asContactRelationUpdateActivity( - source: Partial + source: Partial, ): Partial { return isActivity(source, ActivityTypes.ContactRelationUpdate) ? source : null; } @@ -371,7 +371,7 @@ export namespace ActivityEx { * @returns This activity as a command result activity; or null. */ export function asCommandResultActivity( - source: Partial + source: Partial, ): Partial> { return isActivity(source, ActivityTypes.CommandResult) ? source : null; } diff --git a/libraries/botframework-schema/src/activityInterfaces.ts b/libraries/botframework-schema/src/activityInterfaces.ts index afa6ee70a5..2677b0010a 100644 --- a/libraries/botframework-schema/src/activityInterfaces.ts +++ b/libraries/botframework-schema/src/activityInterfaces.ts @@ -82,7 +82,7 @@ export interface IActivity { /** * Contains channel-specific content. */ - channelData?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + channelData?: any; } export interface IConversationUpdateActivity extends IActivity { @@ -196,7 +196,7 @@ export interface IMessageActivity extends IActivity { /** * A value that is associated with the activity. */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; } export interface IMessageUpdateActivity extends IMessageActivity, IActivity {} @@ -247,7 +247,7 @@ export interface IEventActivity extends IActivity { /** * A value that is associated with the activity. */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; /** * A reference to another conversation or activity. @@ -264,7 +264,7 @@ export interface IInvokeActivity extends IActivity { /** * A value that is associated with the activity. */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; /** * A reference to another conversation or activity. @@ -291,7 +291,7 @@ export interface ITraceActivity extends IActivity { /** * A value that is associated with the activity. */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; /** * A reference to another conversation or activity. diff --git a/libraries/botframework-schema/src/index.ts b/libraries/botframework-schema/src/index.ts index 9198b6e170..e7b0486810 100644 --- a/libraries/botframework-schema/src/index.ts +++ b/libraries/botframework-schema/src/index.ts @@ -102,7 +102,7 @@ export interface InnerHttpError { /** * Body from failed request */ - body: any; // eslint-disable-line @typescript-eslint/no-explicit-any + body: any; } /** @@ -159,7 +159,7 @@ export interface ChannelAccount { /** * Custom properties object (optional) */ - properties?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + properties?: any; } const channelAccount = z.object({ @@ -221,7 +221,7 @@ export interface ConversationAccount { /** * Custom properties object (optional) */ - properties?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + properties?: any; } const conversationAccount = z.object({ @@ -306,11 +306,11 @@ export interface CardAction { /** * Supplementary parameter for action. Content of this property depends on the ActionType */ - value: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value: any; /** * Channel-specific data associated with this action */ - channelData?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + channelData?: any; /** * Alternate image text to be used in place of the `image` field */ @@ -391,7 +391,7 @@ export interface Attachment { /** * Embedded content */ - content?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + content?: any; /** * (OPTIONAL) The name of the attachment */ @@ -435,7 +435,7 @@ export interface Entity { /** * Additional properties. */ - [key: string]: any; // eslint-disable-line @typescript-eslint/no-explicit-any + [key: string]: any; } const entity = z.record(z.unknown()).refine((val) => typeof val.type === 'string'); @@ -702,7 +702,7 @@ export interface Activity { /** * Contains channel-specific content. */ - channelData?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + channelData?: any; /** * Indicates whether the recipient of a contactRelationUpdate was added or removed from the * sender's contact list. @@ -723,7 +723,7 @@ export interface Activity { /** * A value that is associated with the activity. */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; /** * The name of the operation associated with an invoke or event activity. */ @@ -877,7 +877,7 @@ export interface ConversationParameters { /** * Channel specific payload for creating the conversation */ - channelData: any; // eslint-disable-line @typescript-eslint/no-explicit-any + channelData: any; } /** @@ -1121,7 +1121,7 @@ export interface AnimationCard { /** * Supplementary parameter for this card */ - value: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value: any; } /** @@ -1177,7 +1177,7 @@ export interface AudioCard { /** * Supplementary parameter for this card */ - value: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value: any; } /** @@ -1263,7 +1263,7 @@ export interface MediaCard { /** * Supplementary parameter for this card */ - value: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value: any; } /** @@ -1477,7 +1477,7 @@ export interface VideoCard { /** * Supplementary parameter for this card */ - value: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value: any; } /** @@ -1531,15 +1531,15 @@ export interface Place { /** * Address of the place (may be `string` or complex object of type `PostalAddress`) */ - address: any; // eslint-disable-line @typescript-eslint/no-explicit-any + address: any; /** * Geo coordinates of the place (may be complex object of type `GeoCoordinates` or `GeoShape`) */ - geo: any; // eslint-disable-line @typescript-eslint/no-explicit-any + geo: any; /** * Map to the place (may be `string` (URL) or complex object of type `Map`) */ - hasMap: any; // eslint-disable-line @typescript-eslint/no-explicit-any + hasMap: any; /** * The type of the thing */ @@ -1571,7 +1571,7 @@ export interface MediaEventValue { /** * Callback parameter specified in the Value field of the MediaCard that originated this event */ - cardValue: any; // eslint-disable-line @typescript-eslint/no-explicit-any + cardValue: any; } /** @@ -1585,7 +1585,7 @@ export interface TokenRequest { /** * A collection of settings for the specific provider for this request */ - settings: { [propertyName: string]: any }; // eslint-disable-line @typescript-eslint/no-explicit-any + settings: { [propertyName: string]: any }; } /** @@ -1611,7 +1611,7 @@ export interface TokenResponse { /** * A collection of properties about this response, such as token polling parameters */ - properties?: { [propertyName: string]: any }; // eslint-disable-line @typescript-eslint/no-explicit-any + properties?: { [propertyName: string]: any }; } /** @@ -1779,7 +1779,7 @@ export interface PaymentDetailsModifier { * A JSON-serializable object that provides optional information that might be needed by the * supported payment methods */ - data: any; // eslint-disable-line @typescript-eslint/no-explicit-any + data: any; } /** @@ -1826,7 +1826,7 @@ export interface PaymentMethodData { * A JSON-serializable object that provides optional information that might be needed by the * supported payment methods */ - data: any; // eslint-disable-line @typescript-eslint/no-explicit-any + data: any; } /** @@ -1906,7 +1906,7 @@ export interface PaymentResponse { * A JSON-serializable object that provides a payment method specific message used by the * merchant to process the transaction and determine successful fund transfer */ - details: any; // eslint-disable-line @typescript-eslint/no-explicit-any + details: any; /** * If the requestShipping flag was set to true in the PaymentOptions passed to the PaymentRequest * constructor, then shippingAddress will be the full and final shipping address chosen by the @@ -2347,7 +2347,7 @@ export interface IStatusCodeError { * Defines the structure that arrives in the Activity.Value.Authentication for Invoke * activity with Name of 'adaptiveCard/action'. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface +// eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface AdaptiveCardAuthentication extends TokenExchangeInvokeRequest { // No-op. This interface was accidentally created as a duplicate of TokenExchangeInvokeRequest but must remain for backwards-compatibility. } @@ -2439,7 +2439,7 @@ export interface SearchInvokeValue { * The type of the context field is object and is dependent on the kind field. * For search and searchAnswers, there is no defined context value. */ - context: any; // eslint-disable-line @typescript-eslint/no-explicit-any + context: any; /** * The dataset to be queried to get the choices. */ @@ -2464,7 +2464,7 @@ export interface SearchInvokeOptions { * Defines the structure that is returned as the result of an Invoke activity with * Name of 'application/search'. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface +// eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse {} /** @@ -2472,7 +2472,7 @@ export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse {} * * This interface supports the framework and is not intended to be called directly for your code. */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any + export interface InvokeResponse { /** * The HTTP status code of the response. diff --git a/libraries/botframework-schema/src/sharepoint/cardView/cardSearchBoxComponent.ts b/libraries/botframework-schema/src/sharepoint/cardView/cardSearchBoxComponent.ts index e1894ed17e..fc84def720 100644 --- a/libraries/botframework-schema/src/sharepoint/cardView/cardSearchBoxComponent.ts +++ b/libraries/botframework-schema/src/sharepoint/cardView/cardSearchBoxComponent.ts @@ -7,7 +7,8 @@ import type { CardButtonBase } from './cardButtonBase'; /** * Search box button properties. */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface + +// eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface ICardSearchBoxButton extends CardButtonBase { // reserved for future. Not additional properties. } diff --git a/libraries/botframework-schema/src/sharepoint/cardView/cardViewParameters.ts b/libraries/botframework-schema/src/sharepoint/cardView/cardViewParameters.ts index 8de587613b..1e2cf25175 100644 --- a/libraries/botframework-schema/src/sharepoint/cardView/cardViewParameters.ts +++ b/libraries/botframework-schema/src/sharepoint/cardView/cardViewParameters.ts @@ -153,7 +153,7 @@ export type CardViewParameters = export function BasicCardView( cardBar: CardBarComponent, header: CardTextComponent, - footer?: CardViewFooterParameters + footer?: CardViewFooterParameters, ): TextCardViewParameters { return { cardViewType: 'text', @@ -182,7 +182,7 @@ export function PrimaryTextCardView( cardBar: CardBarComponent, header: CardTextComponent, body: CardTextComponent, - footer?: CardViewFooterParameters + footer?: CardViewFooterParameters, ): TextCardViewParameters { return { cardViewType: 'text', @@ -211,7 +211,7 @@ export function ImageCardView( cardBar: CardBarComponent, header: CardTextComponent, image: CardImage, - footer?: CardViewFooterParameters + footer?: CardViewFooterParameters, ): TextCardViewParameters { return { cardViewType: 'text', @@ -242,7 +242,7 @@ export function TextInputCardView( cardBar: CardBarComponent, header: CardTextComponent, body: CardTextInputComponent, - footer?: CardViewActionsFooterParameters + footer?: CardViewActionsFooterParameters, ): TextInputCardViewParameters { return { cardViewType: 'textInput', @@ -271,7 +271,7 @@ export function SearchCardView( cardBar: CardBarComponent, header: CardTextComponent, body: CardSearchBoxComponent, - footer: CardSearchFooterComponent + footer: CardSearchFooterComponent, ): SearchCardViewParameters { return { cardViewType: 'search', @@ -301,7 +301,7 @@ export function SignInCardView( cardBar: CardBarComponent, header: CardTextComponent, body: CardTextComponent, - footer: CardButtonComponent + footer: CardButtonComponent, ): SignInCardViewParameters { return { cardViewType: 'signIn', diff --git a/libraries/botframework-schema/src/sharepoint/propertyPaneFieldProperties.ts b/libraries/botframework-schema/src/sharepoint/propertyPaneFieldProperties.ts index 62b8be7c0f..799fff8880 100644 --- a/libraries/botframework-schema/src/sharepoint/propertyPaneFieldProperties.ts +++ b/libraries/botframework-schema/src/sharepoint/propertyPaneFieldProperties.ts @@ -4,7 +4,8 @@ /** * SharePoint base property pane field properties */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface + +// eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface PropertyPaneFieldProperties { // keep this empty - used as base type in property group definition } diff --git a/libraries/botframework-schema/src/sharepoint/propertyPaneGroupOrConditionalGroup.ts b/libraries/botframework-schema/src/sharepoint/propertyPaneGroupOrConditionalGroup.ts index 723c891508..f7c5317ef2 100644 --- a/libraries/botframework-schema/src/sharepoint/propertyPaneGroupOrConditionalGroup.ts +++ b/libraries/botframework-schema/src/sharepoint/propertyPaneGroupOrConditionalGroup.ts @@ -1,7 +1,8 @@ /** * SharePoint property pane group or conditional group */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface + +// eslint-disable-next-line @typescript-eslint/no-empty-object-type export interface PropertyPaneGroupOrConditionalGroup { // keep this empty - used as base type in property page definition } diff --git a/libraries/botframework-schema/src/teams/extension/index.ts b/libraries/botframework-schema/src/teams/extension/index.ts index 635e0bebce..b284b2a020 100644 --- a/libraries/botframework-schema/src/teams/extension/index.ts +++ b/libraries/botframework-schema/src/teams/extension/index.ts @@ -37,7 +37,6 @@ export type O365ConnectorCardActionType = 'ViewAction' | 'OpenUri' | 'HttpPOST' * @interface * An interface representing O365ConnectorCardActionBase. * O365 connector card action base - * */ export interface O365ConnectorCardActionBase { /** @@ -69,7 +68,6 @@ export type O365ConnectorCardInputType = 'textInput' | 'dateInput' | 'multichoic * @interface * An interface representing O365ConnectorCardInputBase. * O365 connector card input for ActionCard action - * */ export interface O365ConnectorCardInputBase { /** @@ -107,7 +105,6 @@ export type FileDownloadInfoAttachment = TeamsAttachment; * @interface * An interface representing MessageActionsPayloadBody. * Plaintext/HTML representation of the content of the message. - * */ export interface MessageActionsPayloadBody { /** diff --git a/libraries/botframework-schema/src/teams/index.ts b/libraries/botframework-schema/src/teams/index.ts index b1dc15c1c0..8c70cb6a6f 100644 --- a/libraries/botframework-schema/src/teams/index.ts +++ b/libraries/botframework-schema/src/teams/index.ts @@ -30,7 +30,6 @@ export type ConfigResponseConfig = BotConfigAuth | TaskModuleResponse; * @interface * An interface representing ChannelInfo. * A channel info object which decribes the channel. - * */ export interface ChannelInfo { /** @@ -69,7 +68,6 @@ export interface ConfigResponse { * @interface * An interface representing ConversationList. * List of channels under a team - * */ export interface ConversationList { /** @@ -82,7 +80,6 @@ export interface ConversationList { * @interface * An interface representing TeamDetails. * Details related to a team - * */ export interface TeamDetails { /** @@ -117,7 +114,6 @@ export interface TeamDetails { * @interface * An interface representing TeamInfo. * Describes a team - * */ export interface TeamInfo { /** @@ -138,7 +134,6 @@ export interface TeamInfo { * @interface * An interface representing NotificationInfo. * Specifies if a notification is to be sent for the mentions. - * */ export interface NotificationInfo { /** @@ -161,7 +156,6 @@ export interface NotificationInfo { * @interface * An interface representing TenantInfo. * Describes a tenant - * */ export interface TenantInfo { /** @@ -174,7 +168,6 @@ export interface TenantInfo { * @interface * An interface representing TeamsMeetingInfo. * Describes a meeting - * */ export interface TeamsMeetingInfo { /** @@ -187,7 +180,6 @@ export interface TeamsMeetingInfo { * @interface * An interface representing TeamsChannelData. * Channel data specific to messages received in Microsoft Teams - * */ export interface TeamsChannelData { /** @@ -234,7 +226,7 @@ export interface TeamsChannelData { * An interface representing TeamsChannelAccount. * Teams channel account detailing user Azure Active Directory details. * - * @extends ChannelAccount + * @augments ChannelAccount */ export interface TeamsChannelAccount extends ChannelAccount { /** @@ -302,7 +294,6 @@ export interface Meeting { * @interface * An interface representing TeamsMeetingParticipant. * Teams meeting participant detailing user Azure Active Directory details. - * */ export interface TeamsMeetingParticipant { /** @@ -334,7 +325,6 @@ export interface TeamsPagedMembersResult { * @interface * An interface representing O365ConnectorCardFact. * O365 connector card fact - * */ export interface O365ConnectorCardFact { /** @@ -351,7 +341,6 @@ export interface O365ConnectorCardFact { * @interface * An interface representing O365ConnectorCardImage. * O365 connector card image - * */ export interface O365ConnectorCardImage { /** @@ -368,7 +357,6 @@ export interface O365ConnectorCardImage { * @interface * An interface representing O365ConnectorCardSection. * O365 connector card section - * */ export interface O365ConnectorCardSection { /** @@ -426,7 +414,6 @@ export interface O365ConnectorCardSection { * @interface * An interface representing O365ConnectorCard. * O365 connector card - * */ export interface O365ConnectorCard { /** @@ -462,7 +449,7 @@ export interface O365ConnectorCard { * An interface representing O365ConnectorCardViewAction. * O365 connector card ViewAction action * - * @extends O365ConnectorCardActionBase + * @augments O365ConnectorCardActionBase */ export interface O365ConnectorCardViewAction extends O365ConnectorCardActionBase { /** @@ -476,7 +463,6 @@ export interface O365ConnectorCardViewAction extends O365ConnectorCardActionBase * @interface * An interface representing O365ConnectorCardOpenUriTarget. * O365 connector card OpenUri target - * */ export interface O365ConnectorCardOpenUriTarget { /** @@ -495,7 +481,7 @@ export interface O365ConnectorCardOpenUriTarget { * An interface representing O365ConnectorCardOpenUri. * O365 connector card OpenUri action * - * @extends O365ConnectorCardActionBase + * @augments O365ConnectorCardActionBase */ export interface O365ConnectorCardOpenUri extends O365ConnectorCardActionBase { /** @@ -509,7 +495,7 @@ export interface O365ConnectorCardOpenUri extends O365ConnectorCardActionBase { * An interface representing O365ConnectorCardHttpPOST. * O365 connector card HttpPOST action * - * @extends O365ConnectorCardActionBase + * @augments O365ConnectorCardActionBase */ export interface O365ConnectorCardHttpPOST extends O365ConnectorCardActionBase { /** @@ -523,7 +509,7 @@ export interface O365ConnectorCardHttpPOST extends O365ConnectorCardActionBase { * An interface representing O365ConnectorCardActionCard. * O365 connector card ActionCard action * - * @extends O365ConnectorCardActionBase + * @augments O365ConnectorCardActionBase */ export interface O365ConnectorCardActionCard extends O365ConnectorCardActionBase { /** @@ -546,7 +532,7 @@ export interface O365ConnectorCardActionCard extends O365ConnectorCardActionBase * An interface representing O365ConnectorCardTextInput. * O365 connector card text input * - * @extends O365ConnectorCardInputBase + * @augments O365ConnectorCardInputBase */ export interface O365ConnectorCardTextInput extends O365ConnectorCardInputBase { /** @@ -566,7 +552,7 @@ export interface O365ConnectorCardTextInput extends O365ConnectorCardInputBase { * An interface representing O365ConnectorCardDateInput. * O365 connector card date input * - * @extends O365ConnectorCardInputBase + * @augments O365ConnectorCardInputBase */ export interface O365ConnectorCardDateInput extends O365ConnectorCardInputBase { /** @@ -580,7 +566,6 @@ export interface O365ConnectorCardDateInput extends O365ConnectorCardInputBase { * @interface * An interface representing O365ConnectorCardMultichoiceInputChoice. * O365O365 connector card multiple choice input item - * */ export interface O365ConnectorCardMultichoiceInputChoice { /** @@ -598,7 +583,7 @@ export interface O365ConnectorCardMultichoiceInputChoice { * An interface representing O365ConnectorCardMultichoiceInput. * O365 connector card multiple choice input * - * @extends O365ConnectorCardInputBase + * @augments O365ConnectorCardInputBase */ export interface O365ConnectorCardMultichoiceInput extends O365ConnectorCardInputBase { /** @@ -623,7 +608,6 @@ export interface O365ConnectorCardMultichoiceInput extends O365ConnectorCardInpu * @interface * An interface representing O365ConnectorCardActionQuery. * O365 connector card HttpPOST invoke query - * */ export interface O365ConnectorCardActionQuery { /** @@ -642,7 +626,6 @@ export interface O365ConnectorCardActionQuery { * @interface * An interface representing SigninStateVerificationQuery. * Signin state (part of signin action auth flow) verification invoke query - * */ export interface SigninStateVerificationQuery { /** @@ -657,7 +640,6 @@ export interface SigninStateVerificationQuery { * @interface * An interface representing MessagingExtensionQueryOptions. * Messaging extension query options - * */ export interface MessagingExtensionQueryOptions { /** @@ -674,7 +656,6 @@ export interface MessagingExtensionQueryOptions { * @interface * An interface representing MessagingExtensionParameter. * Messaging extension query parameters - * */ export interface MessagingExtensionParameter { /** @@ -684,14 +665,13 @@ export interface MessagingExtensionParameter { /** * @member {any} [value] Value of the parameter */ - value?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + value?: any; } /** * @interface * An interface representing MessagingExtensionQuery. * Messaging extension query - * */ export interface MessagingExtensionQuery { /** @@ -718,7 +698,6 @@ export interface MessagingExtensionQuery { * @interface * An interface representing MessageActionsPayloadUser. * Represents a user entity. - * */ export interface MessageActionsPayloadUser { /** @@ -741,7 +720,6 @@ export interface MessageActionsPayloadUser { * @interface * An interface representing MessageActionsPayloadApp. * Represents an application entity. - * */ export interface MessageActionsPayloadApp { /** @@ -765,7 +743,6 @@ export interface MessageActionsPayloadApp { * @interface * An interface representing MessageActionsPayloadConversation. * Represents a team or channel entity. - * */ export interface MessageActionsPayloadConversation { /** @@ -790,7 +767,6 @@ export interface MessageActionsPayloadConversation { * An interface representing MessageActionsPayloadFrom. * Represents a user, application, or conversation type that either sent or was * referenced in a message. - * */ export interface MessageActionsPayloadFrom { /** @@ -813,7 +789,6 @@ export interface MessageActionsPayloadFrom { * @interface * An interface representing MessageActionsPayloadAttachment. * Represents the attachment in a message. - * */ export interface MessageActionsPayloadAttachment { /** @@ -833,7 +808,7 @@ export interface MessageActionsPayloadAttachment { * @member {any} [content] The content of the attachment, in case of a code * snippet, email, or file. */ - content?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + content?: any; /** * @member {string} [name] The plaintext display name of the attachment. */ @@ -849,7 +824,6 @@ export interface MessageActionsPayloadAttachment { * @interface * An interface representing MessageActionsPayloadMention. * Represents the entity that was mentioned in the message. - * */ export interface MessageActionsPayloadMention { /** @@ -872,7 +846,6 @@ export interface MessageActionsPayloadMention { * @interface * An interface representing MessageActionsPayloadReaction. * Represents the reaction of a user to a message. - * */ export interface MessageActionsPayloadReaction { /** @@ -898,7 +871,6 @@ export interface MessageActionsPayloadReaction { * An interface representing MessageActionsPayload. * Represents the individual message within a chat or channel where a message * actions is taken. - * */ export interface MessageActionsPayload { /** @@ -986,13 +958,12 @@ export interface MessageActionsPayload { * @interface * An interface representing TaskModuleRequest. * Task module invoke request value payload - * */ export interface TaskModuleRequest { /** * @member {any} [data] User input data. Free payload with key-value pairs. */ - data?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + data?: any; /** * @member {TaskModuleRequestContext} [context] Current user context, i.e., * the current theme @@ -1009,7 +980,7 @@ export interface TaskModuleRequest { * An interface representing MessagingExtensionAction. * Messaging extension action * - * @extends TaskModuleRequest + * @augments TaskModuleRequest */ export interface MessagingExtensionAction extends TaskModuleRequest { /** @@ -1042,7 +1013,6 @@ export interface MessagingExtensionAction extends TaskModuleRequest { * @interface * An interface representing TaskModuleResponseBase. * Base class for Task Module responses - * */ export interface TaskModuleResponseBase { /** @@ -1057,7 +1027,7 @@ export interface TaskModuleResponseBase { * An interface representing MessagingExtensionAttachment. * Messaging extension attachment. * - * @extends Attachment + * @augments Attachment */ export interface MessagingExtensionAttachment extends Attachment { /** @@ -1070,7 +1040,6 @@ export interface MessagingExtensionAttachment extends Attachment { * @interface * An interface representing MessagingExtensionSuggestedAction. * Messaging extension Actions (Only when type is auth or config) - * */ export interface MessagingExtensionSuggestedAction { /** @@ -1083,7 +1052,6 @@ export interface MessagingExtensionSuggestedAction { * @interface * An interface representing MessagingExtensionResult. * Messaging extension result - * */ export interface MessagingExtensionResult { /** @@ -1135,7 +1103,6 @@ export interface CacheInfo { * @interface * An interface representing MessagingExtensionActionResponse. * Response of messaging extension action - * */ export interface MessagingExtensionActionResponse { /** @@ -1157,7 +1124,6 @@ export interface MessagingExtensionActionResponse { * @interface * An interface representing MessagingExtensionResponse. * Messaging extension response - * */ export interface MessagingExtensionResponse { /** @@ -1174,7 +1140,6 @@ export interface MessagingExtensionResponse { * @interface * An interface representing FileConsentCard. * File consent card attachment. - * */ export interface FileConsentCard { /** @@ -1190,20 +1155,19 @@ export interface FileConsentCard { * consented to upload. This is free flow schema and is sent back in Value * field of Activity. */ - acceptContext?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + acceptContext?: any; /** * @member {any} [declineContext] Context sent back to the Bot if user * declined. This is free flow schema and is sent back in Value field of * Activity. */ - declineContext?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + declineContext?: any; } /** * @interface * An interface representing FileDownloadInfo. * File download info attachment. - * */ export interface FileDownloadInfo { /** @@ -1221,14 +1185,13 @@ export interface FileDownloadInfo { /** * @member {any} [etag] ETag for the file. */ - etag?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + etag?: any; } /** * @interface * An interface representing FileInfoCard. * File info card. - * */ export interface FileInfoCard { /** @@ -1242,14 +1205,13 @@ export interface FileInfoCard { /** * @member {any} [etag] ETag for the file. */ - etag?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + etag?: any; } /** * @interface * An interface representing FileUploadInfo. * Information about the file to be uploaded. - * */ export interface FileUploadInfo { /** @@ -1280,7 +1242,6 @@ export interface FileUploadInfo { * An interface representing FileConsentCardResponse. * Represents the value of the invoke activity sent when the user acts on a * file consent card - * */ export interface FileConsentCardResponse { /** @@ -1291,7 +1252,7 @@ export interface FileConsentCardResponse { /** * @member {any} [context] The context associated with the action. */ - context?: any; // eslint-disable-line @typescript-eslint/no-explicit-any + context?: any; /** * @member {FileUploadInfo} [uploadInfo] If the user accepted the file, * contains information about the file to be uploaded. @@ -1313,7 +1274,6 @@ export interface TabContext { /** * @interface * Current TabRequest entity context, or 'tabEntityId'. - * */ export interface TabEntityContext { /** @@ -1325,7 +1285,6 @@ export interface TabEntityContext { /** * @interface * Invoke ('tab/fetch') request value payload. - * */ export interface TabRequest { /** @@ -1345,7 +1304,6 @@ export interface TabRequest { /** * @interface * Envelope for Card Tab Response Payload. - * */ export interface TabResponse { /** @@ -1357,7 +1315,6 @@ export interface TabResponse { /** * @interface * Envelope for cards for a Tab request. - * */ export interface TabResponseCard { /** @@ -1369,7 +1326,6 @@ export interface TabResponseCard { /** * @interface * Envelope for cards for a TabResponse. - * */ export interface TabResponseCards { /** @@ -1381,7 +1337,6 @@ export interface TabResponseCards { /** * @interface * Payload for Tab Response. - * */ export interface TabResponsePayload { /** @@ -1402,7 +1357,6 @@ export interface TabResponsePayload { /** * @interface * Invoke ('tab/submit') request value payload. - * */ export interface TabSubmit { /** @@ -1422,7 +1376,6 @@ export interface TabSubmit { /** * @interface * Invoke ('tab/submit') request value payload data. - * */ export interface TabSubmitData { /** @@ -1438,7 +1391,6 @@ export interface TabSubmitData { /** * @interface * Tab SuggestedActions (Only when type is 'auth' or 'silentAuth'). - * */ export interface TabSuggestedActions { /** @@ -1451,7 +1403,7 @@ export interface TabSuggestedActions { * @interface * Tab response to 'task/submit'. * - * @extends TaskModuleResponseBase + * @augments TaskModuleResponseBase */ export interface TaskModuleCardResponse extends TaskModuleResponseBase { /** @@ -1464,7 +1416,6 @@ export interface TaskModuleCardResponse extends TaskModuleResponseBase { * @interface * An interface representing TaskModuleTaskInfo. * Metadata for a Task Module. - * */ export interface TaskModuleTaskInfo { /** @@ -1509,7 +1460,7 @@ export interface TaskModuleTaskInfo { * An interface representing TaskModuleContinueResponse. * Task Module Response with continue action. * - * @extends TaskModuleResponseBase + * @augments TaskModuleResponseBase */ export interface TaskModuleContinueResponse extends TaskModuleResponseBase { /** @@ -1524,7 +1475,7 @@ export interface TaskModuleContinueResponse extends TaskModuleResponseBase { * An interface representing TaskModuleMessageResponse. * Task Module response with message action. * - * @extends TaskModuleResponseBase + * @augments TaskModuleResponseBase */ export interface TaskModuleMessageResponse extends TaskModuleResponseBase { /** @@ -1538,7 +1489,6 @@ export interface TaskModuleMessageResponse extends TaskModuleResponseBase { * @interface * An interface representing TaskModuleResponse. * Envelope for Task Module Response. - * */ export interface TaskModuleResponse { /** @@ -1556,7 +1506,6 @@ export interface TaskModuleResponse { * @interface * An interface representing TaskModuleRequestContext. * Current user context, i.e., the current theme - * */ export interface TaskModuleRequestContext { /** @@ -1569,7 +1518,6 @@ export interface TaskModuleRequestContext { * @interface * An interface representing AppBasedLinkQuery. * Invoke request body type for app-based link query. - * */ export interface AppBasedLinkQuery { /** diff --git a/libraries/botframework-schema/tests/speechConstants.test.js b/libraries/botframework-schema/tests/speechConstants.test.js index 385405b95b..86a45bbb2f 100644 --- a/libraries/botframework-schema/tests/speechConstants.test.js +++ b/libraries/botframework-schema/tests/speechConstants.test.js @@ -9,7 +9,7 @@ describe('SpeechConstants', function () { // Expected value derived from https://github.com/microsoft/botframework-obi/blame/5c2542115b110a1dae8e597473271abc8e67c30d/protocols/botframework-activity/botframework-activity.md#L353 strictEqual( SpeechConstants.EmptySpeakTag, - '' + '', ); }); });