Skip to content

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.

"Metaobject"

{ value: string | null; } | null

{ value: string | null; } | null

string

string

{ value: string | null; } | null

{ value: string | null; } | null

{ value: string | null; } | null

PageGateEntry | null