twenty / packages /twenty-shared /src /database-events /object-record.base.event.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
377 Bytes
import { type ObjectRecordDiff } from '@/database-events/object-record-diff';
type Properties<T> = {
updatedFields?: string[];
before?: T;
after?: T;
diff?: Partial<ObjectRecordDiff<T>>;
};
export class ObjectRecordBaseEvent<T = object> {
recordId: string;
userId?: string;
userWorkspaceId?: string;
workspaceMemberId?: string;
properties: Properties<T>;
}