@microsoft/agents-a365-notifications package
接口
| AgentNotificationActivity |
表示具有强类型通知数据的已分析代理通知活动。 |
| EmailReference |
表示电子邮件通知实体。 |
| EmailResponse |
表示要发送回的电子邮件响应实体。 |
| WpxComment |
表示Word(WPX)注释通知实体。 |
类型别名
| AgentNotificationHandler |
代理通知处理程序函数的类型定义。 处理具有强类型通知数据的代理通知活动。 |
枚举
| NotificationType |
表示可以接收的通知类型的枚举。 |
函数
| create |
为代理通知活动创建包装器。 |
| create |
用于创建 EmailReference 实体的工厂函数。 |
| create |
用于创建 EmailResponse 实体的工厂函数。 |
| create |
使用 EmailResponse 实体创建活动 |
| create |
用于创建 WpxComment 实体的工厂函数。 |
| is |
类型防护,用于检查实体是否为 EmailReference。 |
| is |
类型防护,检查实体是否为 WpxComment。 |
变量
| AGENTS_CHANNEL | 代理通知的通道和子通道常量。 |
| AGENTS_EMAIL_SUBCHANNEL | |
| AGENTS_EXCEL_SUBCHANNEL | |
| AGENTS_POWERPOINT_SUBCHANNEL | |
| AGENTS_WORD_SUBCHANNEL | |
| AGENT_LIFECYCLE | 代理通知的生命周期常量。 |
| EMAIL_NOTIFICATION_TYPE | 电子邮件通知的实体类型名称。 |
| EMAIL_RESPONSE_TYPE | 电子邮件响应的实体类型名称。 |
| USER_CREATED_LIFECYCLE_EVENT | |
| USER_DELETED_LIFECYCLE_EVENT | |
| USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT | |
| WPX_COMMENT_TYPE | WPX 注释的实体类型名称。 |
函数详细信息
createAgentNotificationActivity(Activity)
为代理通知活动创建包装器。
function createAgentNotificationActivity(activity: Activity): AgentNotificationActivity
参数
- activity
- Activity
活动
返回
代理通知活动
createEmailReference(string, string, string)
用于创建 EmailReference 实体的工厂函数。
function createEmailReference(id?: string, conversationId?: string, htmlBody?: string): EmailReference
参数
- id
-
string
- conversationId
-
string
- htmlBody
-
string
返回
createEmailResponse(string)
用于创建 EmailResponse 实体的工厂函数。
function createEmailResponse(htmlBody?: string): EmailResponse
参数
- htmlBody
-
string
返回
createEmailResponseActivity(string)
使用 EmailResponse 实体创建活动
function createEmailResponseActivity(emailResponseHtmlBody?: string): Activity
参数
- emailResponseHtmlBody
-
string
(可选)电子邮件响应的 HTML 正文内容
返回
包含 EmailResponse 实体的邮件活动
createWpxComment(string, string, string, string)
用于创建 WpxComment 实体的工厂函数。
function createWpxComment(odataId?: string, documentId?: string, initiatingCommentId?: string, subjectCommentId?: string): WpxComment
参数
- odataId
-
string
- documentId
-
string
- initiatingCommentId
-
string
- subjectCommentId
-
string
返回
isEmailReference(Entity)
类型防护,用于检查实体是否为 EmailReference。
function isEmailReference(entity: Entity): entity
参数
- entity
- Entity
返回
entity
isWpxComment(Entity)
变量详细信息
AGENTS_CHANNEL
代理通知的通道和子通道常量。
AGENTS_CHANNEL: "agents"
类型
"agents"
AGENTS_EMAIL_SUBCHANNEL
AGENTS_EMAIL_SUBCHANNEL: "agents:email"
类型
"agents:email"
AGENTS_EXCEL_SUBCHANNEL
AGENTS_EXCEL_SUBCHANNEL: "agents:excel"
类型
"agents:excel"
AGENTS_POWERPOINT_SUBCHANNEL
AGENTS_POWERPOINT_SUBCHANNEL: "agents:powerpoint"
类型
"agents:powerpoint"
AGENTS_WORD_SUBCHANNEL
AGENTS_WORD_SUBCHANNEL: "agents:word"
类型
"agents:word"
AGENT_LIFECYCLE
代理通知的生命周期常量。
AGENT_LIFECYCLE: "agentlifecycle"
类型
"agentlifecycle"
EMAIL_NOTIFICATION_TYPE
电子邮件通知的实体类型名称。
EMAIL_NOTIFICATION_TYPE: "emailNotification"
类型
"emailNotification"
EMAIL_RESPONSE_TYPE
电子邮件响应的实体类型名称。
EMAIL_RESPONSE_TYPE: "emailResponse"
类型
"emailResponse"
USER_CREATED_LIFECYCLE_EVENT
USER_CREATED_LIFECYCLE_EVENT: "agenticuseridentitycreated"
类型
"agenticuseridentitycreated"
USER_DELETED_LIFECYCLE_EVENT
USER_DELETED_LIFECYCLE_EVENT: "agenticuserdeleted"
类型
"agenticuserdeleted"
USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT
USER_WORKLOAD_ONBOARDING_LIFECYCLE_EVENT: "agenticuserworkloadonboardingupdated"
类型
"agenticuserworkloadonboardingupdated"
WPX_COMMENT_TYPE
WPX 注释的实体类型名称。
WPX_COMMENT_TYPE: "WpxComment"
类型
"WpxComment"