@idpass/data-collect-core / resolveEffectiveScope
Function: resolveEffectiveScope()
resolveEffectiveScope(
tenant,override):EffectiveScope
Defined in: services/ScopeResolver.ts:48
Combine tenant policy and per-user override into an effective scope. Each
dimension is intersected — the override can only narrow, never widen, the
tenant default. A null (or missing) dimension means unbounded.
Parameters
tenant
{ areaIds?: string[] | null; entityTypes?: ("individual" | "group")[] | null; timeWindow?: { type: "rolling"; days: number; } | { type: "fixed"; floor: string; } | null; } | undefined
override
{ areaIds?: string[] | null; entityTypes?: ("individual" | "group")[] | null; timeWindow?: { type: "rolling"; days: number; } | { type: "fixed"; floor: string; } | null; } | undefined