Home / Function/ getPartnerManagedResourceCta() — supabase Function Reference

getPartnerManagedResourceCta() — supabase Function Reference

Architecture documentation for the getPartnerManagedResourceCta() function in InvoicesSettings.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  82054de4_d586_58e7_d6a8_d5b94a9a724a["getPartnerManagedResourceCta()"]
  e27f6414_0bbc_c8c9_ab6e_281257f845ed["InvoicesSettings()"]
  e27f6414_0bbc_c8c9_ab6e_281257f845ed -->|calls| 82054de4_d586_58e7_d6a8_d5b94a9a724a
  style 82054de4_d586_58e7_d6a8_d5b94a9a724a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx lines 36–49

const getPartnerManagedResourceCta = (selectedOrganization: Organization) => {
  if (selectedOrganization.managed_by === MANAGED_BY.VERCEL_MARKETPLACE) {
    return {
      installationId: selectedOrganization?.partner_id,
      path: '/invoices',
    }
  }
  if (selectedOrganization.managed_by === MANAGED_BY.AWS_MARKETPLACE) {
    return {
      organizationSlug: selectedOrganization?.slug,
      overrideUrl: 'https://console.aws.amazon.com/billing/home#/bills',
    }
  }
}

Subdomains

Called By

Frequently Asked Questions

What does getPartnerManagedResourceCta() do?
getPartnerManagedResourceCta() is a function in the supabase codebase.
What calls getPartnerManagedResourceCta()?
getPartnerManagedResourceCta() is called by 1 function(s): InvoicesSettings.

Analyze Your Own Codebase

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

Try Supermodel Free