()
| 2525 | } |
| 2526 | |
| 2527 | function getCurrentConnectionExportData() { |
| 2528 | const connection = state.connections[state.selectedConnectionId]; |
| 2529 | if (!connection) { |
| 2530 | return null; |
| 2531 | } |
| 2532 | |
| 2533 | const messages = getVisibleMessages(connection.messages); |
| 2534 | |
| 2535 | return { |
| 2536 | connection: getConnectionExportInfo(connection), |
| 2537 | messages: messages.map(msg => ({ |
| 2538 | id: msg.id, |
| 2539 | eventType: msg.eventType, |
| 2540 | data: msg.data, |
| 2541 | lastEventId: msg.lastEventId, |
| 2542 | timestamp: formatTimestampForExport(msg.timestamp) |
| 2543 | })), |
| 2544 | exportedAt: new Date().toISOString(), |
| 2545 | totalMessages: messages.length, |
| 2546 | appliedFilters: getAppliedFiltersMetadata() |
| 2547 | }; |
| 2548 | } |
| 2549 | |
| 2550 | function getAllConnectionsExportData() { |
| 2551 | const connections = Object.values(state.connections); |
no test coverage detected