fix
This commit is contained in:
@@ -18,6 +18,10 @@ export interface MessageRecord {
|
||||
incidentId?: number
|
||||
alertRecordId?: number
|
||||
nextRetryAt?: string
|
||||
occurrenceCount?: number
|
||||
firstOccurredAt?: string
|
||||
lastOccurredAt?: string
|
||||
lastDeliveryId?: number
|
||||
}
|
||||
export type MessageListType = MessageRecord[]
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export const createNoticeChannel = (data: {
|
||||
email_to?: string[]
|
||||
email_cc?: string[]
|
||||
email_bcc?: string[]
|
||||
email_use_tls?: boolean
|
||||
email_security_mode?: 'none' | 'starttls' | 'tls'
|
||||
sms_provider?: string
|
||||
sms_access_key_id?: string
|
||||
sms_access_key_secret?: string
|
||||
@@ -40,6 +40,7 @@ export const createNoticeChannel = (data: {
|
||||
sms_template_code?: string
|
||||
sms_phones?: string[]
|
||||
in_app_targets?: string[]
|
||||
in_app_aggregation_window?: number
|
||||
}) => {
|
||||
return request.post('/Alert/v1/channel/create', data)
|
||||
}
|
||||
@@ -67,7 +68,7 @@ export const updateNoticeChannel = (data: {
|
||||
email_to?: string[]
|
||||
email_cc?: string[]
|
||||
email_bcc?: string[]
|
||||
email_use_tls?: boolean
|
||||
email_security_mode?: 'none' | 'starttls' | 'tls'
|
||||
sms_provider?: string
|
||||
sms_access_key_id?: string
|
||||
sms_access_key_secret?: string
|
||||
@@ -75,6 +76,7 @@ export const updateNoticeChannel = (data: {
|
||||
sms_template_code?: string
|
||||
sms_phones?: string[]
|
||||
in_app_targets?: string[]
|
||||
in_app_aggregation_window?: number
|
||||
}) => {
|
||||
return request.post('/Alert/v1/channel/update', data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user