Neemias — API Reference
    Preparing search index...

    Function resolveScope

    • Resolve scope for multi-role user. Combines scopes via union:

      • If any role has "all" scope → result is "all"
      • If all roles resolve to same type → return that single scope
      • Otherwise → compound { type: "multi", filters: [...] }

      Parameters

      • roles: (
            | "ADMIN"
            | "CHAMADOR"
            | "RELATORIOS"
            | "CADASTRO"
            | "RESPONSAVEL"
            | "VOLUNTARIO"
            | "COORDENACAO_KIDS"
            | "ADMINISTRATIVO_KIDS"
        )[]
      • userId: string

      Returns ScopeFilter