|
|
|
@ -17,7 +17,7 @@ |
|
|
|
import { NotificationId } from '@shared/models/id/notification-id'; |
|
|
|
import { NotificationRequestId } from '@shared/models/id/notification-request-id'; |
|
|
|
import { UserId } from '@shared/models/id/user-id'; |
|
|
|
import { BaseData } from '@shared/models/base-data'; |
|
|
|
import { BaseData, ExportableEntity } from '@shared/models/base-data'; |
|
|
|
import { TenantId } from '@shared/models/id/tenant-id'; |
|
|
|
import { NotificationTargetId } from '@shared/models/id/notification-target-id'; |
|
|
|
import { NotificationTemplateId } from '@shared/models/id/notification-template-id'; |
|
|
|
@ -25,7 +25,6 @@ import { EntityId } from '@shared/models/id/entity-id'; |
|
|
|
import { NotificationRuleId } from '@shared/models/id/notification-rule-id'; |
|
|
|
import { AlarmSearchStatus, AlarmSeverity, AlarmStatus } from '@shared/models/alarm.models'; |
|
|
|
import { EntityType } from '@shared/models/entity-type.models'; |
|
|
|
import { User } from '@shared/models/user.model'; |
|
|
|
import { ApiFeature, ApiUsageStateValue } from '@shared/models/api-usage.models'; |
|
|
|
|
|
|
|
export interface Notification { |
|
|
|
@ -107,7 +106,7 @@ export interface SlackConversation { |
|
|
|
type: string; |
|
|
|
} |
|
|
|
|
|
|
|
export interface NotificationRule extends Omit<BaseData<NotificationRuleId>, 'label'>{ |
|
|
|
export interface NotificationRule extends Omit<BaseData<NotificationRuleId>, 'label'>, ExportableEntity<NotificationRuleId> { |
|
|
|
tenantId: TenantId; |
|
|
|
templateId: NotificationTemplateId; |
|
|
|
triggerType: TriggerType; |
|
|
|
@ -234,7 +233,7 @@ export interface NonConfirmedNotificationEscalation { |
|
|
|
targets: Array<string>; |
|
|
|
} |
|
|
|
|
|
|
|
export interface NotificationTarget extends Omit<BaseData<NotificationTargetId>, 'label'>{ |
|
|
|
export interface NotificationTarget extends Omit<BaseData<NotificationTargetId>, 'label'>, ExportableEntity<NotificationTargetId> { |
|
|
|
tenantId: TenantId; |
|
|
|
configuration: NotificationTargetConfig; |
|
|
|
} |
|
|
|
@ -279,7 +278,7 @@ export const NotificationTargetTypeTranslationMap = new Map<NotificationTargetTy |
|
|
|
[NotificationTargetType.SLACK, 'notification.delivery-method.slack'] |
|
|
|
]); |
|
|
|
|
|
|
|
export interface NotificationTemplate extends Omit<BaseData<NotificationTemplateId>, 'label'>{ |
|
|
|
export interface NotificationTemplate extends Omit<BaseData<NotificationTemplateId>, 'label'>, ExportableEntity<NotificationTemplateId> { |
|
|
|
tenantId: TenantId; |
|
|
|
notificationType: NotificationType; |
|
|
|
configuration: NotificationTemplateConfig; |
|
|
|
|