dt-common-device
Version:
A secure and robust device management library for IoT applications
58 lines (57 loc) • 1.36 kB
TypeScript
import { EntityType } from "./issue.types";
export declare enum AlertCategory {
READINESS = "READINESS",
OPERATIONS = "OPERATIONS",
SECURITY = "SECURITY",
ENERGY = "ENERGY",
OTHER = "OTHER"
}
export declare enum AlertSeverity {
INFO = "INFO",
LOW = "LOW",
MEDIUM = "MEDIUM",
HIGH = "HIGH",
CRITICAL = "CRITICAL"
}
export interface AlertDocument {
_id: string;
category: AlertCategory;
propertyId: string;
title: string;
description: string;
entityId?: string;
entityType: EntityType;
severity: AlertSeverity;
isRead: boolean;
isActive: boolean;
isDeleted: boolean;
snoozeUntil?: Date;
createdBy?: string;
updatedBy?: string;
createdAt: Date;
updatedAt: Date;
}
export interface CreateAlertData {
category: AlertCategory;
propertyId: string;
title: string;
description: string;
entityId?: string;
entityType: EntityType;
severity?: AlertSeverity;
createdBy?: string;
snoozeUntil?: Date;
}
export interface UpdateAlertData {
category?: AlertCategory;
title?: string;
description?: string;
entityId?: string;
entityType?: EntityType;
severity?: AlertSeverity;
isRead?: boolean;
isActive?: boolean;
snoozeUntil?: Date;
updatedBy?: string;
}
export { EntityType } from "./issue.types";