StakeholderCoverage (stakeholder_coverage v1.0.0)

Copy Markdown View Source

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.

Summary

Functions

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

Roles required by default.

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

Render results as plain text.

Types

result()

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

Functions

check(rows, required \\ ["champion", "economic_buyer", "technical_evaluator"])

@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(text)

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

render(results)

Render results as plain text.