@microsoft/agents-a365-notifications package

介面

AgentNotificationActivity

代表一個解析過的代理通知活動,並以強型別通知資料呈現。

EmailReference

代表電子郵件通知實體。

EmailResponse

代表一個需要回傳的電子郵件回應實體。

WpxComment

代表一個 Word(WPX)留言通知實體。

類型別名

AgentNotificationHandler

為代理通知處理程式函式的型別定義。 處理具有強型別通知資料的代理通知活動。

列舉

NotificationType

Enum 代表可接收的通知類型。

函式

createAgentNotificationActivity(Activity)

為代理通知活動建立包裝器。

createEmailReference(string, string, string)

工廠函式用來建立 EmailReference 實體。

createEmailResponse(string)

工廠函式用來建立 EmailResponse 實體。

createEmailResponseActivity(string)

建立一個包含 EmailResponse 實體的活動

createWpxComment(string, string, string, string)

用 Factory 函式來建立 WpxComment 實體。

isEmailReference(Entity)

輸入 guard 以檢查某實體是否為 EmailReference。

isWpxComment(Entity)

輸入 guard 以檢查一個實體是否為 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)

用 Factory 函式來建立 WpxComment 實體。

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

參數

odataId

string

documentId

string

initiatingCommentId

string

subjectCommentId

string

傳回

isEmailReference(Entity)

輸入 guard 以檢查某實體是否為 EmailReference。

function isEmailReference(entity: Entity): entity

參數

entity
Entity

傳回

entity

isWpxComment(Entity)

輸入 guard 以檢查一個實體是否為 WpxComment。

function isWpxComment(entity: Entity): entity

參數

entity
Entity

傳回

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"