mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 15:57:47 +08:00
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
export const integrationKeys = {
|
|
integrationsListWithOrg: (orgSlug: string | undefined) =>
|
|
['organizations', orgSlug, 'integrations'] as const,
|
|
integrationsList: () => ['organizations', 'integrations'] as const,
|
|
vercelProjectList: (organization_integration_id: string | undefined) =>
|
|
['organizations', organization_integration_id, 'vercel-projects'] as const,
|
|
vercelConnectionsList: (organization_integration_id: string | undefined) =>
|
|
['organizations', organization_integration_id, 'vercel-connections'] as const,
|
|
githubBranch: (
|
|
organization_integration_id: string | undefined,
|
|
repo_owner: string,
|
|
repo_name: string,
|
|
branch_name: string
|
|
) => [
|
|
'organizations',
|
|
organization_integration_id,
|
|
'branches',
|
|
repo_owner,
|
|
repo_name,
|
|
branch_name,
|
|
],
|
|
githubAuthorization: () => ['github-authorization'] as const,
|
|
githubRepositoriesList: () => ['github-repositories'] as const,
|
|
githubConnectionsList: (organizationId: number | undefined) =>
|
|
['organizations', organizationId, 'github-connections'] as const,
|
|
vercelRedirect: (installationId?: string) => ['vercel-redirect', installationId] as const,
|
|
awsRedirect: (organizationSlug?: string) => ['aws-redirect', organizationSlug] as const,
|
|
}
|