ui/client/features/requirement/domain/Suggestion
Pure (DOMAIN-001): what the decision provider suggested for a closed question, as the words the screen shows.
Cockpit client (features), next. Source: ui/client/features/requirement/domain/Suggestion.ts.
Functions#
suggestedByLabel()#
suggestedByLabel(
provider,fellBackFrom?):string
Defined in: ui/client/features/requirement/domain/Suggestion.ts:8
"suggested by rules", or "suggested by rules (jev did not answer)" when the rules answered in place of a plugin that failed.
Parameters#
provider
string
fellBackFrom?
string
Returns#
string
suggestionView()#
suggestionView(
result,id,legacy?):SuggestionView|null
Defined in: ui/client/features/requirement/domain/Suggestion.ts:17
The suggestion for one question, or null when the provider gave none (off, or it abstained). legacy is what an older
server put on the offer itself (rules only): used only when the response has no suggestions field at all, so a project
that switched the provider off never shows a suggestion.
Parameters#
result
id
string
legacy?
option
string
provider
string
reason
string
Returns#
SuggestionView | null