95 lines
No EOL
2.8 KiB
TypeScript
95 lines
No EOL
2.8 KiB
TypeScript
import { Attachment } from '../../';
|
|
import { FileDownloadInfo, ContentType } from '../';
|
|
/**
|
|
* Defines values for Type.
|
|
* Possible values include: 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard'
|
|
*
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
export declare type O365ConnectorCardActionType = 'ViewAction' | 'OpenUri' | 'HttpPOST' | 'ActionCard';
|
|
/**
|
|
* @interface
|
|
* An interface representing O365ConnectorCardActionBase.
|
|
* O365 connector card action base
|
|
*/
|
|
export interface O365ConnectorCardActionBase {
|
|
/**
|
|
* @member {O365ConnectorCardActionType} [type] Type of the action. Possible values include:
|
|
* 'ViewAction', 'OpenUri', 'HttpPOST', 'ActionCard'
|
|
*/
|
|
'@type'?: O365ConnectorCardActionType;
|
|
/**
|
|
* @member {string} [name] Name of the action that will be used as button
|
|
* title
|
|
*/
|
|
name?: string;
|
|
/**
|
|
* @member {string} [id] Action Id
|
|
*/
|
|
'@id'?: string;
|
|
}
|
|
/**
|
|
* Defines values for O365ConnectorCardInputType.
|
|
* Possible values include: 'textInput', 'dateInput', 'multichoiceInput'
|
|
*
|
|
* @readonly
|
|
* @enum {string}
|
|
*/
|
|
export declare type O365ConnectorCardInputType = 'textInput' | 'dateInput' | 'multichoiceInput';
|
|
/**
|
|
* @interface
|
|
* An interface representing O365ConnectorCardInputBase.
|
|
* O365 connector card input for ActionCard action
|
|
*/
|
|
export interface O365ConnectorCardInputBase {
|
|
/**
|
|
* @member {O365ConnectorCardInputType} [type] Input type name. Possible values include:
|
|
* 'textInput', 'dateInput', 'multichoiceInput'
|
|
*/
|
|
'@type'?: O365ConnectorCardInputType;
|
|
/**
|
|
* @member {string} [id] Input Id. It must be unique per entire O365
|
|
* connector card.
|
|
*/
|
|
id?: string;
|
|
/**
|
|
* @member {boolean} [isRequired] Define if this input is a required field.
|
|
* Default value is false.
|
|
*/
|
|
isRequired?: boolean;
|
|
/**
|
|
* @member {string} [title] Input title that will be shown as the placeholder
|
|
*/
|
|
title?: string;
|
|
/**
|
|
* @member {string} [value] Default value for this input field
|
|
*/
|
|
value?: string;
|
|
}
|
|
export interface TeamsAttachment<ContentType> extends Attachment {
|
|
content: ContentType;
|
|
}
|
|
export declare type FileDownloadInfoAttachment = TeamsAttachment<FileDownloadInfo>;
|
|
/**
|
|
* @interface
|
|
* An interface representing MessageActionsPayloadBody.
|
|
* Plaintext/HTML representation of the content of the message.
|
|
*/
|
|
export interface MessageActionsPayloadBody {
|
|
/**
|
|
* @member {ContentType} [contentType] Type of the content. Possible values
|
|
* include: 'html', 'text'
|
|
*/
|
|
contentType?: ContentType;
|
|
/**
|
|
* @member {string} [content] The content of the body.
|
|
*/
|
|
content?: string;
|
|
/**
|
|
* @member {string} [textContent] The text content of the body after
|
|
* stripping HTML tags.
|
|
*/
|
|
textContent?: string;
|
|
}
|
|
//# sourceMappingURL=index.d.ts.map
|