Home / Function/ getAvailableSectionIds() — supabase Function Reference

getAvailableSectionIds() — supabase Function Reference

Architecture documentation for the getAvailableSectionIds() function in helpers.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  c3d996f0_61b0_53bd_3af4_926c4758f82e["getAvailableSectionIds()"]
  c746434f_93d1_b546_1ccf_f7913960723c["flattenSections()"]
  c3d996f0_61b0_53bd_3af4_926c4758f82e -->|calls| c746434f_93d1_b546_1ccf_f7913960723c
  style c3d996f0_61b0_53bd_3af4_926c4758f82e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/refGenerator/helpers.ts lines 313–329

export function getAvailableSectionIds(sections: ICommonItem[], spec: any) {
  // Filter parent sections first

  const specIds = spec.functions.map(({ id }) => id)

  const newShape = flattenSections(sections).filter((section) => {
    if (specIds.includes(section.id)) {
      return section
    }
  })

  const final = newShape.map((func) => {
    return func.id
  })

  return final
}

Subdomains

Frequently Asked Questions

What does getAvailableSectionIds() do?
getAvailableSectionIds() is a function in the supabase codebase.
What does getAvailableSectionIds() call?
getAvailableSectionIds() calls 1 function(s): flattenSections.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free