40 lines
895 B
TypeScript
40 lines
895 B
TypeScript
import * as plugins from '../plugins.js';
|
|
|
|
import type { AlertManager } from './classes.alertmanager.js';
|
|
|
|
@plugins.smartdata.Manager()
|
|
export class Alert extends plugins.smartdata.SmartDataDbDoc<
|
|
Alert,
|
|
plugins.idpInterfaces.data.IAlert,
|
|
AlertManager
|
|
> {
|
|
@plugins.smartdata.unI()
|
|
public id: string;
|
|
|
|
@plugins.smartdata.svDb()
|
|
public data: plugins.idpInterfaces.data.IAlert['data'] = {
|
|
recipientUserId: '',
|
|
organizationId: undefined,
|
|
category: 'security',
|
|
eventType: '',
|
|
severity: 'medium',
|
|
title: '',
|
|
body: '',
|
|
actorUserId: undefined,
|
|
relatedEntityId: undefined,
|
|
relatedEntityType: undefined,
|
|
notification: {
|
|
hintId: '',
|
|
status: 'pending',
|
|
attemptCount: 0,
|
|
createdAt: 0,
|
|
deliveredAt: null,
|
|
seenAt: null,
|
|
lastError: null,
|
|
},
|
|
createdAt: 0,
|
|
seenAt: null,
|
|
dismissedAt: null,
|
|
};
|
|
}
|