@anoki/fse-common
Version:
Common types for FSE
17 lines (16 loc) • 458 B
TypeScript
import { User } from './user';
import { WithMongooseProps } from './with-mongoose-props';
export type ChangesFields<TValue = any> = WithMongooseProps<{
path: string;
originalValue: TValue;
value: TValue;
}>;
export type Changes<TEntity = any> = WithMongooseProps<{
updateById: string;
updatedBy: User;
sourceId: string;
tenantId: string;
sourceModelName: string;
entitySnapshot: TEntity;
changes: ChangesFields[];
}>;