Skip to main content

@idpass/data-collect-core / EntityScopeRef

Interface: EntityScopeRef

Defined in: services/ScopeResolver.ts:140

Reference shape returned by the caller-supplied entity lookup. Mirrors the minimum surface the validator needs: kind of entity + its current area_id.

type widens beyond ScopeEntityType to include "record" so callers can surface generic projections that were never intended to be scope-filtered; v1 rejects any such entity when the scope constrains entity types.

Properties

type

type: "individual" | "group" | "record"

Defined in: services/ScopeResolver.ts:141


areaId

areaId: string | null

Defined in: services/ScopeResolver.ts:142