checkAssertion

Function

Check a specific EntityAssertion Exported purely for testing. Not exported from the package.

Parameters

Parameter Type Default Notes
assertion Required IPolicyAssertion
entity Required Record<stringany>
context Required IArcGISContext

Returns

Property Type Notes
code string

Policy Response code, for i18n

name string

Description of the policy being checked e.g. License Required: "hub-premium"

response PolicyResponse

Policy Response string

value string

Value determined for the current user e.g. "hub-basic"


Function defined in common/src/permissions/_internal/checkAssertion.ts:16