(record: UsageRecordSummary)
| 114 | } |
| 115 | |
| 116 | function formatAccess(record: UsageRecordSummary): string { |
| 117 | if (record.allowed === false) { |
| 118 | return record.limitReached ? "blocked, limit reached" : "blocked" |
| 119 | } |
| 120 | if (record.limitReached) return "allowed, limit reached" |
| 121 | if (record.allowed === true) return "allowed" |
| 122 | return "unknown" |
| 123 | } |
| 124 | |
| 125 | function formatLimits(limits: UsageRecordSummary["limits"], now: number): string[] | undefined { |
| 126 | if (!limits) return undefined |
no outgoing calls
no test coverage detected