export type Operation = "CREATE" | "UPDATE" | "DELETE" | "VOID"; export interface Metadata { agent: string; origin?: { endpoint: string; method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | (string & {}); requestId?: string; }; createdAt: number; } export interface Scope { schemaId: number; firmId?: number | null; firmSIRET?: number | null; accountingFolderId?: number | null; accountingFolderSIRET?: number | null; accountingFolderRef?: string | null; persPhysiqueId?: number | null; } export interface Connector { name: "connector"; scope: Scope; operation: "CREATE" | "UPDATE" | "DELETE"; data: { id: string; code: string; userId?: string | null; }; } export interface AccountingFolder { name: "accountingFolder"; scope: Scope & Required>; operation: "CREATE" | "UPDATE"; data: { id: string; previousState?: Record; currentState?: Record; }; } export declare const DOCUMENT_KIND: Readonly<{ DossierAnnuel: "AF"; DossierPermanent: "PF"; BaseDocumentaire: "DB"; ExternalDocument: "ED"; MiscellaneousFlow: "MF"; }>; export type DocumentKind = typeof DOCUMENT_KIND[keyof typeof DOCUMENT_KIND]; export interface Document { name: "document"; scope: Scope; operation: "CREATE"; data: { id: string; kind: DocumentKind; name: string; }; } export interface Portfolio { name: "portfolio"; scope: Scope; operation: "CREATE" | "DELETE"; data: { id: string; }; } export interface AccountingLineEntry { name: "accountingLineEntry"; scope: Scope; operation: "CREATE"; data: { id: string; }; } export interface AdminMessage { name: "adminMessage"; scope: Scope; operation: "VOID"; data: { event: "admin_message"; socketMessage: { id: number; title: string; message: string; }; receivers: string[]; }; } export interface ThirdParty { name: "thirdParty"; scope: Scope; operation: "CREATE" | "UPDATE" | "DELETE"; data: { code: string; }; } export interface AccountingEntryLettering { name: "accountingEntryLettering"; scope: Scope; operation: "CREATE" | "DELETE"; data: { id: string; paymentType: string; piece1?: string; }; } export interface CloudDocument { name: "cloudDocument"; scope: Scope; operation: "CREATE" | "UPDATE"; data: { id: string; status: "rejected" | "completed"; reason?: string; }; } export interface Exercice { name: "exercice"; scope: Scope; operation: "CREATE" | "UPDATE" | "DELETE"; data: { id: string; previousState?: Record; currentState?: Record; }; } export interface VisitedPage { name: "visitedPage"; scope: Scope & Required>; operation: "VOID"; data: { path: string; }; } export interface YousignSignature { name: "yousignSignature"; scope: Scope; operation: "VOID"; data: { id: string; }; } export interface TaxReturnSent { name: "taxReturnSent"; scope: Scope; operation: "VOID"; data: { idDepot: string; }; } export interface Events { accountingFolder: AccountingFolder; connector: Connector; document: Document; portfolio: Portfolio; accountingLineEntry: AccountingLineEntry; adminMessage: AdminMessage; thirdParty: ThirdParty; accountingEntryLettering: AccountingEntryLettering; cloudDocument: CloudDocument; exercice: Exercice; visitedPage: VisitedPage; yousignSignature: YousignSignature; taxReturnSent: TaxReturnSent; } //# sourceMappingURL=events.d.ts.map