@microsoft/agents-a365-notifications package

Interfaces

AgentNotificationActivity

Représente une activité de notification d’agent analysée avec des données de notification fortement typées.

EmailReference

Représente une entité de notification par e-mail.

EmailResponse

Représente une entité de réponse par e-mail à renvoyer.

WpxComment

Représente une entité de notification de commentaire Word (WPX).

Alias de type

AgentNotificationHandler

Définition de type pour une fonction de gestionnaire de notification d’agent. Gère les activités de notification de l’agent avec des données de notification fortement typées.

Énumérations

NotificationType

Énumération représentant les types de notifications qui peuvent être reçues.

Functions

createAgentNotificationActivity(Activity)

Crée un wrapper pour une activité de notification d’agent.

createEmailReference(string, string, string)

Fonction Factory pour créer une entité EmailReference.

createEmailResponse(string)

Fonction Factory pour créer une entité EmailResponse.

createEmailResponseActivity(string)

Crée une activité avec une entité EmailResponse

createWpxComment(string, string, string, string)

Fonction Factory pour créer une entité WpxComment.

isEmailReference(Entity)

Tapez guard pour vérifier si une entité est une EmailReference.

isWpxComment(Entity)

Type guard pour vérifier si une entité est un WpxComment.

Variables

AGENTS_CHANNEL

Constantes de canal et de sous-canal pour les notifications d’agent.

AGENTS_EMAIL_SUBCHANNEL
AGENTS_EXCEL_SUBCHANNEL
AGENTS_POWERPOINT_SUBCHANNEL
AGENTS_WORD_SUBCHANNEL
AGENT_LIFECYCLE

Constantes de cycle de vie pour les notifications d’agent.

EMAIL_NOTIFICATION_TYPE

Nom du type d’entité pour les notifications par e-mail.

EMAIL_RESPONSE_TYPE

Nom du type d’entité pour les réponses par e-mail.

USER_CREATED_LIFECYCLE_EVENT
USER_DELETED_LIFECYCLE_EVENT
USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT
WPX_COMMENT_TYPE

Nom du type d’entité pour les commentaires WPX.

Informations relatives à la fonction

createAgentNotificationActivity(Activity)

Crée un wrapper pour une activité de notification d’agent.

function createAgentNotificationActivity(activity: Activity): AgentNotificationActivity

Paramètres

activity
Activity

Activité

Retours

Activité de notification d’agent

createEmailReference(string, string, string)

Fonction Factory pour créer une entité EmailReference.

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

Paramètres

id

string

conversationId

string

htmlBody

string

Retours

createEmailResponse(string)

Fonction Factory pour créer une entité EmailResponse.

function createEmailResponse(htmlBody?: string): EmailResponse

Paramètres

htmlBody

string

Retours

createEmailResponseActivity(string)

Crée une activité avec une entité EmailResponse

function createEmailResponseActivity(emailResponseHtmlBody?: string): Activity

Paramètres

emailResponseHtmlBody

string

(Facultatif) Contenu du corps HTML de la réponse par e-mail

Retours

Activité de message contenant l’entité EmailResponse

createWpxComment(string, string, string, string)

Fonction Factory pour créer une entité WpxComment.

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

Paramètres

odataId

string

documentId

string

initiatingCommentId

string

subjectCommentId

string

Retours

isEmailReference(Entity)

Tapez guard pour vérifier si une entité est une EmailReference.

function isEmailReference(entity: Entity): entity

Paramètres

entity
Entity

Retours

entity

isWpxComment(Entity)

Type guard pour vérifier si une entité est un WpxComment.

function isWpxComment(entity: Entity): entity

Paramètres

entity
Entity

Retours

entity

Détails de variable

AGENTS_CHANNEL

Constantes de canal et de sous-canal pour les notifications d’agent.

AGENTS_CHANNEL: "agents"

Type

"agents"

AGENTS_EMAIL_SUBCHANNEL

AGENTS_EMAIL_SUBCHANNEL: "agents:email"

Type

"agents:email"

AGENTS_EXCEL_SUBCHANNEL

AGENTS_EXCEL_SUBCHANNEL: "agents:excel"

Type

"agents:excel"

AGENTS_POWERPOINT_SUBCHANNEL

AGENTS_POWERPOINT_SUBCHANNEL: "agents:powerpoint"

Type

"agents:powerpoint"

AGENTS_WORD_SUBCHANNEL

AGENTS_WORD_SUBCHANNEL: "agents:word"

Type

"agents:word"

AGENT_LIFECYCLE

Constantes de cycle de vie pour les notifications d’agent.

AGENT_LIFECYCLE: "agentlifecycle"

Type

"agentlifecycle"

EMAIL_NOTIFICATION_TYPE

Nom du type d’entité pour les notifications par e-mail.

EMAIL_NOTIFICATION_TYPE: "emailNotification"

Type

"emailNotification"

EMAIL_RESPONSE_TYPE

Nom du type d’entité pour les réponses par e-mail.

EMAIL_RESPONSE_TYPE: "emailResponse"

Type

"emailResponse"

USER_CREATED_LIFECYCLE_EVENT

USER_CREATED_LIFECYCLE_EVENT: "agenticuseridentitycreated"

Type

"agenticuseridentitycreated"

USER_DELETED_LIFECYCLE_EVENT

USER_DELETED_LIFECYCLE_EVENT: "agenticuserdeleted"

Type

"agenticuserdeleted"

USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT

USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT: "agenticuserworkloadonboardingupdated"

Type

"agenticuserworkloadonboardingupdated"

WPX_COMMENT_TYPE

Nom du type d’entité pour les commentaires WPX.

WPX_COMMENT_TYPE: "WpxComment"

Type

"WpxComment"