23 lines
636 B
TypeScript
23 lines
636 B
TypeScript
|
|
/** 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;
|
||
|
|
}
|