@microsoft/agents-a365-notifications package
Interfaces
| AgentNotificationActivity |
Representa una actividad de notificación del agente analizado con datos de notificación fuertemente tipados. |
| EmailReference |
Representa una entidad de notificación por correo electrónico. |
| EmailResponse |
Representa una entidad de respuesta de correo electrónico que se va a devolver. |
| WpxComment |
Representa una entidad de notificación de comentarios de Word (WPX). |
Alias de tipos
| AgentNotificationHandler |
Definición de tipo para una función del controlador de notificaciones del agente. Controla las actividades de notificación del agente con datos de notificación fuertemente tipados. |
Enumeraciones
| NotificationType |
Enumeración que representa los tipos de notificaciones que se pueden recibir. |
Funciones
| create |
Crea un contenedor para una actividad de notificación del agente. |
| create |
Función factory para crear una entidad EmailReference. |
| create |
Función factory para crear una entidad EmailResponse. |
| create |
Crea una actividad con una entidad EmailResponse. |
| create |
Función factory para crear una entidad WpxComment. |
| is |
Escriba guard para comprobar si una entidad es emailReference. |
| is |
Escriba guard para comprobar si una entidad es wpxComment. |
Variables
| AGENTS_CHANNEL | Constantes de canal y subcanal para las notificaciones del agente. |
| AGENTS_EMAIL_SUBCHANNEL | |
| AGENTS_EXCEL_SUBCHANNEL | |
| AGENTS_POWERPOINT_SUBCHANNEL | |
| AGENTS_WORD_SUBCHANNEL | |
| AGENT_LIFECYCLE | Constantes del ciclo de vida de las notificaciones del agente. |
| EMAIL_NOTIFICATION_TYPE | Nombre del tipo de entidad para las notificaciones por correo electrónico. |
| EMAIL_RESPONSE_TYPE | Nombre del tipo de entidad para las respuestas de correo electrónico. |
| USER_CREATED_LIFECYCLE_EVENT | |
| USER_DELETED_LIFECYCLE_EVENT | |
| USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT | |
| WPX_COMMENT_TYPE | Nombre del tipo de entidad para los comentarios de WPX. |
Detalles de la función
createAgentNotificationActivity(Activity)
Crea un contenedor para una actividad de notificación del agente.
function createAgentNotificationActivity(activity: Activity): AgentNotificationActivity
Parámetros
- activity
- Activity
La actividad
Devoluciones
Una actividad de notificación del agente
createEmailReference(string, string, string)
Función factory para crear una entidad EmailReference.
function createEmailReference(id?: string, conversationId?: string, htmlBody?: string): EmailReference
Parámetros
- id
-
string
- conversationId
-
string
- htmlBody
-
string
Devoluciones
createEmailResponse(string)
Función factory para crear una entidad EmailResponse.
function createEmailResponse(htmlBody?: string): EmailResponse
Parámetros
- htmlBody
-
string
Devoluciones
createEmailResponseActivity(string)
Crea una actividad con una entidad EmailResponse.
function createEmailResponseActivity(emailResponseHtmlBody?: string): Activity
Parámetros
- emailResponseHtmlBody
-
string
(Opcional) El contenido del cuerpo HTML para la respuesta de correo electrónico
Devoluciones
Actividad de mensaje que contiene la entidad EmailResponse
createWpxComment(string, string, string, string)
Función factory para crear una entidad WpxComment.
function createWpxComment(odataId?: string, documentId?: string, initiatingCommentId?: string, subjectCommentId?: string): WpxComment
Parámetros
- odataId
-
string
- documentId
-
string
- initiatingCommentId
-
string
- subjectCommentId
-
string
Devoluciones
isEmailReference(Entity)
Escriba guard para comprobar si una entidad es emailReference.
function isEmailReference(entity: Entity): entity
Parámetros
- entity
- Entity
Devoluciones
entity
isWpxComment(Entity)
Escriba guard para comprobar si una entidad es wpxComment.
function isWpxComment(entity: Entity): entity
Parámetros
- entity
- Entity
Devoluciones
entity
Detalles de variables
AGENTS_CHANNEL
Constantes de canal y subcanal para las notificaciones del agente.
AGENTS_CHANNEL: "agents"
Tipo
"agents"
AGENTS_EMAIL_SUBCHANNEL
AGENTS_EMAIL_SUBCHANNEL: "agents:email"
Tipo
"agents:email"
AGENTS_EXCEL_SUBCHANNEL
AGENTS_EXCEL_SUBCHANNEL: "agents:excel"
Tipo
"agents:excel"
AGENTS_POWERPOINT_SUBCHANNEL
AGENTS_POWERPOINT_SUBCHANNEL: "agents:powerpoint"
Tipo
"agents:powerpoint"
AGENTS_WORD_SUBCHANNEL
AGENTS_WORD_SUBCHANNEL: "agents:word"
Tipo
"agents:word"
AGENT_LIFECYCLE
Constantes del ciclo de vida de las notificaciones del agente.
AGENT_LIFECYCLE: "agentlifecycle"
Tipo
"agentlifecycle"
EMAIL_NOTIFICATION_TYPE
Nombre del tipo de entidad para las notificaciones por correo electrónico.
EMAIL_NOTIFICATION_TYPE: "emailNotification"
Tipo
"emailNotification"
EMAIL_RESPONSE_TYPE
Nombre del tipo de entidad para las respuestas de correo electrónico.
EMAIL_RESPONSE_TYPE: "emailResponse"
Tipo
"emailResponse"
USER_CREATED_LIFECYCLE_EVENT
USER_CREATED_LIFECYCLE_EVENT: "agenticuseridentitycreated"
Tipo
"agenticuseridentitycreated"
USER_DELETED_LIFECYCLE_EVENT
USER_DELETED_LIFECYCLE_EVENT: "agenticuserdeleted"
Tipo
"agenticuserdeleted"
USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT
USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT: "agenticuserworkloadonboardingupdated"
Tipo
"agenticuserworkloadonboardingupdated"
WPX_COMMENT_TYPE
Nombre del tipo de entidad para los comentarios de WPX.
WPX_COMMENT_TYPE: "WpxComment"
Tipo
"WpxComment"