(packet: FactPacket, rank: number)
| 501 | } |
| 502 | |
| 503 | function observedDrafts(packet: FactPacket, rank: number): Draft[] { |
| 504 | return packet.observed.map((entry) => ({ |
| 505 | kind: 'observed' as const, |
| 506 | lines: [ |
| 507 | `An imported recording saw ${entry.from} call ${entry.to} ${entry.count} time(s)` |
| 508 | + `${entry.lastSeen === undefined ? '' : `, last on ${entry.lastSeen}`}.`, |
| 509 | 'This is an observation, not a reading of the index.', |
| 510 | ], |
| 511 | rank, |
| 512 | })); |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * The order the cards go in, per class. |