(connection)
| 17 | } |
| 18 | |
| 19 | function getConnectionExportInfo(connection) { |
| 20 | return { |
| 21 | id: connection.id, |
| 22 | originalId: connection.originalId || null, |
| 23 | savedId: connection.savedId || null, |
| 24 | url: connection.url, |
| 25 | frameUrl: connection.frameUrl || null, |
| 26 | isIframe: Boolean(connection.isIframe), |
| 27 | source: connection.source || 'unknown', |
| 28 | requestType: getRequestType(connection.source), |
| 29 | status: connection.status, |
| 30 | createdAt: formatTimestampForExport(connection.createdAt), |
| 31 | importedAt: connection.importedAt ? formatTimestampForExport(connection.importedAt) : null, |
| 32 | messageCount: connection.messages?.length || 0 |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | function escapeCSV(value) { |
| 37 | if (value === null || value === undefined) { |
no test coverage detected