Freigeben über


@microsoft/agents-a365-notifications package

Schnittstellen

AgentNotificationActivity

Stellt eine analysierte Agent-Benachrichtigungsaktivität mit stark typierten Benachrichtigungsdaten dar.

EmailReference

Stellt eine E-Mail-Benachrichtigungsentität dar.

EmailResponse

Stellt eine E-Mail-Antwortentität dar, die zurückgesendet werden soll.

WpxComment

Represents a Word (WPX) comment notification entity.

Typaliase

AgentNotificationHandler

Typdefinition für eine Agentbenachrichtigungshandlerfunktion. Behandelt Agent-Benachrichtigungsaktivitäten mit stark typierten Benachrichtigungsdaten.

Enumerationen

NotificationType

Enumeration, die die Arten von Benachrichtigungen darstellt, die empfangen werden können.

Functions

createAgentNotificationActivity(Activity)

Erstellt einen Wrapper für eine Agent-Benachrichtigungsaktivität.

createEmailReference(string, string, string)

Factory-Funktion zum Erstellen einer EmailReference-Entität.

createEmailResponse(string)

Factory-Funktion zum Erstellen einer EmailResponse-Entität.

createEmailResponseActivity(string)

Erstellt eine Aktivität mit einer EmailResponse-Entität

createWpxComment(string, string, string, string)

Factory-Funktion zum Erstellen einer WpxComment-Entität.

isEmailReference(Entity)

Geben Sie den Schutz ein, um zu überprüfen, ob es sich bei einer Entität um eine EmailReference handelt.

isWpxComment(Entity)

Geben Sie den Schutz ein, um zu überprüfen, ob es sich bei einer Entität um eine WpxComment handelt.

Details zur Funktion

createAgentNotificationActivity(Activity)

Erstellt einen Wrapper für eine Agent-Benachrichtigungsaktivität.

function createAgentNotificationActivity(activity: Activity): AgentNotificationActivity

Parameter

activity
Activity

Die Aktivität

Gibt zurück

Eine Agent-Benachrichtigungsaktivität

createEmailReference(string, string, string)

Factory-Funktion zum Erstellen einer EmailReference-Entität.

function createEmailReference(id?: string, conversationId?: string, htmlBody?: string): EmailReference

Parameter

id

string

conversationId

string

htmlBody

string

Gibt zurück

createEmailResponse(string)

Factory-Funktion zum Erstellen einer EmailResponse-Entität.

function createEmailResponse(htmlBody?: string): EmailResponse

Parameter

htmlBody

string

Gibt zurück

createEmailResponseActivity(string)

Erstellt eine Aktivität mit einer EmailResponse-Entität

function createEmailResponseActivity(emailResponseHtmlBody?: string): Activity

Parameter

emailResponseHtmlBody

string

(Optional) Der HTML-Textkörperinhalt für die E-Mail-Antwort

Gibt zurück

Eine Nachrichtenaktivität, die die EmailResponse-Entität enthält

createWpxComment(string, string, string, string)

Factory-Funktion zum Erstellen einer WpxComment-Entität.

function createWpxComment(odataId?: string, documentId?: string, initiatingCommentId?: string, subjectCommentId?: string): WpxComment

Parameter

odataId

string

documentId

string

initiatingCommentId

string

subjectCommentId

string

Gibt zurück

isEmailReference(Entity)

Geben Sie den Schutz ein, um zu überprüfen, ob es sich bei einer Entität um eine EmailReference handelt.

function isEmailReference(entity: Entity): entity

Parameter

entity
Entity

Gibt zurück

entity

isWpxComment(Entity)

Geben Sie den Schutz ein, um zu überprüfen, ob es sich bei einer Entität um eine WpxComment handelt.

function isWpxComment(entity: Entity): entity

Parameter

entity
Entity

Gibt zurück

entity