NotificationEventType interface
封裝事件類型的屬性。 它定義了可用於該事件類型的篩選的欄位。
屬性
| category | |
| color | 取得或設定代表此事件類型的色彩。 範例:rgb(128,245,211) 或 #fafafa |
| custom |
|
| event |
|
| fields | |
| has |
|
| icon | 取得或設定代表此事件類型的圖示。 可以是 URL 或 CSS 類別。 範例:css://some-css-class |
| id | 取得或設定此事件定義的唯一識別碼。 |
| name | 取得或設定此事件定義的名稱。 |
| roles | |
| supported |
取得或設定此事件類型支援的範圍 |
| url | 取得或設定其餘端點以取得此事件類型詳細資料 (欄位、欄位類型) |
屬性詳細資料
category
color
取得或設定代表此事件類型的色彩。 範例:rgb(128,245,211) 或 #fafafa
color: string
屬性值
string
customSubscriptionsAllowed
customSubscriptionsAllowed: boolean
屬性值
boolean
eventPublisher
fields
hasInitiator
hasInitiator: boolean
屬性值
boolean
icon
取得或設定代表此事件類型的圖示。 可以是 URL 或 CSS 類別。 範例:css://some-css-class
icon: string
屬性值
string
id
取得或設定此事件定義的唯一識別碼。
id: string
屬性值
string
name
取得或設定此事件定義的名稱。
name: string
屬性值
string
roles
supportedScopes
取得或設定此事件類型支援的範圍
supportedScopes: string[]
屬性值
string[]
url
取得或設定其餘端點以取得此事件類型詳細資料 (欄位、欄位類型)
url: string
屬性值
string