Files
marketplaces/src/app/features/admin/notifications/models/admin-notification.model.ts

23 lines
636 B
TypeScript
Raw Normal View History

/** Per docs/backend/PHASE-2-ORDERS-NOTIFICATIONS-CONTRACT.md §6. */
export type AdminNotificationSeverity = 'info' | 'warning' | 'critical';
export type AdminNotificationEntityType = 'order' | 'payment' | 'offer' | 'connector' | 'refund';
export interface AdminNotification {
id: string;
marketplaceId: string;
entityType: AdminNotificationEntityType;
entityId: string;
severity: AdminNotificationSeverity;
eventType: string;
title: string;
read: boolean;
deepLink: string[];
createdAt: string;
}
export interface AdminNotificationFilters {
marketplaceId: string;
eventType: string;
unreadOnly: boolean;
}