parsePageGateMetaobject
parsePageGateMetaobject(
node):PageGateEntry|null
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/gates/gates.d.ts:118
Parse one $app:page_gate metaobject node. Tolerant by design: an
unparseable match/access json, an unknown v (absent = pre-versioned,
treated as 1), an unknown rules[].type, a non-/-rooted or non-string
rule path, an unknown require, or a groups access with a
missing/empty/non-string tags array all skip the WHOLE gate (null) -
never half-enforce. See the module doc for the denied fallback split.
Rule paths and redirect targets are normalized here, once.
Parameters
Section titled “Parameters”__typename
Section titled “__typename”"Metaobject"
access
Section titled “access”{ value: string | null; } | null
denied
Section titled “denied”{ value: string | null; } | null
handle
Section titled “handle”string
string
{ value: string | null; } | null
status
Section titled “status”{ value: string | null; } | null
{ value: string | null; } | null
Returns
Section titled “Returns”PageGateEntry | null