(row: ConnectionRow)
| 1183 | * Tolerates the historically-single shape by returning `{}` for anything that |
| 1184 | * isn't an object. */ |
| 1185 | const connectionItemIds = (row: ConnectionRow): Record<string, string> => { |
| 1186 | const decoded = decodeJsonColumn(row.item_ids); |
| 1187 | if (decoded == null || typeof decoded !== "object") return {}; |
| 1188 | return decoded as Record<string, string>; |
| 1189 | }; |
| 1190 | |
| 1191 | /** Read the storage surrogate retained on adapter results but hidden by FumaRow. */ |
| 1192 | const storageRowId = (row: unknown): string | null => { |
no test coverage detected