feat(companies): service + validators + unit tests
This commit is contained in:
@@ -86,6 +86,11 @@ export interface ServerToClientEvents {
|
||||
newOwner: { type: 'client' | 'company'; id: string };
|
||||
}) => void;
|
||||
|
||||
// Company events
|
||||
'company:created': (payload: { companyId: string }) => void;
|
||||
'company:updated': (payload: { companyId: string; changedFields: string[] }) => void;
|
||||
'company:archived': (payload: { companyId: string }) => void;
|
||||
|
||||
// Document events
|
||||
'document:created': (payload: { documentId: string; type?: string; interestId?: string }) => void;
|
||||
'document:updated': (payload: { documentId: string; changedFields?: string[] }) => void;
|
||||
|
||||
Reference in New Issue
Block a user