feat(event) interface event
continuous-integration/drone/tag Build is passing Details

pull/2/head devel_2.2
ashar 2024-06-05 13:58:09 +07:00
parent f9ec18ff28
commit ca45d78e1d
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { OPERATION } from './base.constants';
export interface EventTopics { export interface EventTopics {
topic: any; topic: any;
data?: IEvent; data?: any;
} }
export interface IEvent<Entity = any> { export interface IEvent<Entity = any> {
@ -15,3 +15,9 @@ export interface IEvent<Entity = any> {
module: string; module: string;
op: OPERATION; op: OPERATION;
} }
export interface IEventAuth {
id: string;
type: string;
timestamp: number;
}