pos-be/src/core/strings/constants/interface.constants.ts

34 lines
583 B
TypeScript

import { UsersSession } from 'src/core/sessions';
import { OPERATION } from './base.constants';
export interface EventTopics {
topic: any;
data?: any;
}
export interface validateRelations {
relation: string;
message?: string;
}
export interface columnUniques {
column: string;
query?: Object;
}
export interface IEvent<Entity = any> {
id: string;
old: null | Entity;
data: null | Entity;
user: UsersSession;
description: null | string;
module: string;
op: OPERATION;
}
export interface IEventAuth {
id: string;
type: string;
timestamp: number;
}