UNPKG

connect-transfer-react-native-sdk

Version:

Connect Transfer React Native SDK for Mastercard Open Banking Connect

20 lines 790 B
/** * Maps event names to structured payloads compatible with the Audit Service events API. * Includes utility functions to transform event data and extract metadata from Redux state. * * Usage: * const mapAuditEvent = useAuditEventsMapper(); * const payload = mapAuditEvent("SomeEventName", eventData); */ /** * Custom React hook to map Redux state and event input to a complete audit event payload. * * @returns A function that accepts eventName and eventData, and returns a structured event object. */ export declare const useAuditEventsMapper: () => (eventName: string, eventData?: any) => { eventType: any; eventName: string; eventData: Record<string, any>; metadata: Record<string, string | undefined>; }; //# sourceMappingURL=auditEventsMapper.d.ts.map