The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
add team_slug type
Alaister Youngb2a9ce0e22e5
diff --git a/studio/data/integrations/integrations.types.ts b/studio/data/integrations/integrations.types.tsindex 7d286b776ab..13dbf066ea1 100644--- a/studio/data/integrations/integrations.types.ts+++ b/studio/data/integrations/integrations.types.ts@@ -160,6 +160,23 @@ export type IntegrationName = 'Vercel' | 'Netlify' | 'GitHub'export type VercelAccountType = 'Team' | 'Personal'export type VercelSource = 'marketplace' | 'deploy button'+type BaseVercelAccount = {+ name: string+ avatar: string+ source: VercelSource+ owner_id: string+}++export type VercelAccount = BaseVercelAccount & {+ type: 'Personal'+}++export type VercelTeamAccount = BaseVercelAccount & {+ type: 'Team'+ team_id: string+ team_slug: string+}+export type Integration = {id: stringintegration: {@@ -175,13 +192,7 @@ export type Integration = {metadata?: {vercelTeam?: stringgitHubConnectionOwner?: string- account: {- name: string- type: VercelAccountType- avatar: string- source: VercelSource- owner_id: string- }+ account: VercelAccount | VercelTeamAccountconfiguration_id: string}}diff --git a/studio/lib/integration-utils.ts b/studio/lib/integration-utils.tsindex 3edbd9be5c5..b49cb49cd88 100644--- a/studio/lib/integration-utils.ts+++ b/studio/lib/integration-utils.ts@@ -117,6 +117,8 @@ export async function getInitialMigrationSQLFromGitHubRepo(export function getVercelConfigurationUrl(integration: Integration) {return `https://vercel.com/dashboard/${- integration.metadata?.account.type === 'Team' ? `${integration.metadata?.account.slug}/` : ''+ integration.metadata?.account.type === 'Team'+ ? `${integration.metadata?.account.team_slug}/`+ : ''}integrations/${integration.metadata?.configuration_id}`}