@microsoft/agents-a365-notifications package
Interfacce
| AgentNotificationActivity |
Rappresenta un'attività di notifica dell'agente analizzata con dati di notifica fortemente tipizzato. |
| EmailReference |
Rappresenta un'entità di notifica tramite posta elettronica. |
| EmailResponse |
Rappresenta un'entità di risposta di posta elettronica da inviare di nuovo. |
| WpxComment |
Rappresenta un'entità di notifica di commento WPX (WORD). |
Alias tipo
| AgentNotificationHandler |
Definizione del tipo per una funzione del gestore di notifica dell'agente. Gestisce le attività di notifica dell'agente con dati di notifica fortemente tipizzato. |
Enumerazioni
| NotificationType |
Enumerazione che rappresenta i tipi di notifiche che è possibile ricevere. |
Funzioni
| create |
Crea un wrapper per un'attività di notifica dell'agente. |
| create |
Funzione factory per creare un'entità EmailReference. |
| create |
Funzione factory per creare un'entità EmailResponse. |
| create |
Crea un'attività con un'entità EmailResponse |
| create |
Funzione factory per creare un'entità WpxComment. |
| is |
Digitare guard per verificare se un'entità è un Oggetto EmailReference. |
| is |
Protezione dei tipi per verificare se un'entità è wpxComment. |
Variabili
| AGENTS_CHANNEL | Costanti canale e canale secondario per le notifiche degli agenti. |
| AGENTS_EMAIL_SUBCHANNEL | |
| AGENTS_EXCEL_SUBCHANNEL | |
| AGENTS_POWERPOINT_SUBCHANNEL | |
| AGENTS_WORD_SUBCHANNEL | |
| AGENT_LIFECYCLE | Costanti del ciclo di vita per le notifiche degli agenti. |
| EMAIL_NOTIFICATION_TYPE | Nome del tipo di entità per le notifiche tramite posta elettronica. |
| EMAIL_RESPONSE_TYPE | Nome del tipo di entità per le risposte tramite posta elettronica. |
| USER_CREATED_LIFECYCLE_EVENT | |
| USER_DELETED_LIFECYCLE_EVENT | |
| USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT | |
| WPX_COMMENT_TYPE | Nome del tipo di entità per i commenti WPX. |
Dettagli funzione
createAgentNotificationActivity(Activity)
Crea un wrapper per un'attività di notifica dell'agente.
function createAgentNotificationActivity(activity: Activity): AgentNotificationActivity
Parametri
- activity
- Activity
Attività
Valori restituiti
Un'attività di notifica dell'agente
createEmailReference(string, string, string)
Funzione factory per creare un'entità EmailReference.
function createEmailReference(id?: string, conversationId?: string, htmlBody?: string): EmailReference
Parametri
- id
-
string
- conversationId
-
string
- htmlBody
-
string
Valori restituiti
createEmailResponse(string)
Funzione factory per creare un'entità EmailResponse.
function createEmailResponse(htmlBody?: string): EmailResponse
Parametri
- htmlBody
-
string
Valori restituiti
createEmailResponseActivity(string)
Crea un'attività con un'entità EmailResponse
function createEmailResponseActivity(emailResponseHtmlBody?: string): Activity
Parametri
- emailResponseHtmlBody
-
string
(Facoltativo) Contenuto del corpo HTML per la risposta tramite posta elettronica
Valori restituiti
Attività del messaggio contenente l'entità EmailResponse
createWpxComment(string, string, string, string)
Funzione factory per creare un'entità WpxComment.
function createWpxComment(odataId?: string, documentId?: string, initiatingCommentId?: string, subjectCommentId?: string): WpxComment
Parametri
- odataId
-
string
- documentId
-
string
- initiatingCommentId
-
string
- subjectCommentId
-
string
Valori restituiti
isEmailReference(Entity)
Digitare guard per verificare se un'entità è un Oggetto EmailReference.
function isEmailReference(entity: Entity): entity
Parametri
- entity
- Entity
Valori restituiti
entity
isWpxComment(Entity)
Protezione dei tipi per verificare se un'entità è wpxComment.
function isWpxComment(entity: Entity): entity
Parametri
- entity
- Entity
Valori restituiti
entity
Dettagli delle variabili
AGENTS_CHANNEL
Costanti canale e canale secondario per le notifiche degli agenti.
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
Costanti del ciclo di vita per le notifiche degli agenti.
AGENT_LIFECYCLE: "agentlifecycle"
Tipo
"agentlifecycle"
EMAIL_NOTIFICATION_TYPE
Nome del tipo di entità per le notifiche tramite posta elettronica.
EMAIL_NOTIFICATION_TYPE: "emailNotification"
Tipo
"emailNotification"
EMAIL_RESPONSE_TYPE
Nome del tipo di entità per le risposte tramite posta elettronica.
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
Nome del tipo di entità per i commenti WPX.
WPX_COMMENT_TYPE: "WpxComment"
Tipo
"WpxComment"