# `StakeholderCoverage`
[🔗](https://github.com/jaizendra-netizen/stakeholder-coverage/blob/main/lib/stakeholder_coverage.ex#L1)

Stakeholder coverage per account (see https://www.onegtmlab.dev/glossary/stakeholder-mapping).

Input rows are maps with "account" and "role". Each account is checked against the roles you
require (default: champion, economic_buyer, technical_evaluator). An account with only one
contact is flagged as single-threaded.

# `result`

```elixir
@type result() :: %{
  account: String.t(),
  contacts: non_neg_integer(),
  covered: [String.t()],
  missing: [String.t()],
  single_threaded: boolean()
}
```

# `check`

```elixir
@spec check([map()], [String.t()]) :: [result()]
```

Check rows (list of maps with "account" and "role") against the required roles.

# `default_roles`

Roles required by default.

# `parse_csv`

Parse CSV text (header row, optional double quotes) into maps.

# `render`

Render results as plain text.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
