UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

33 lines (32 loc) 997 B
import type { HandlerResponse } from '../../types'; export declare type NotificationCenter = { clearNotification: (option: { creator: string; entityName: string; id: string; commitId: string; }) => Promise<HandlerResponse<string[]>>; clearNotifications: (option: { creator: string; entityName?: string; id?: string; }) => Promise<HandlerResponse<string[]>>; notify: (option: { creator: string; entityName: string; id: string; commitId: string; expiryBySec?: number; }) => Promise<HandlerResponse<string>>; getNotification: (option: { creator: string; entityName: string; id: string; commitId?: string; }) => Promise<HandlerResponse<Record<string, string>>>; getNotificationsByFields: (option: { creator: string; entityName?: string; id?: string; }) => Promise<HandlerResponse<Record<string, string>>>; };