Files
supabase/studio/data/integrations/keys.ts
T
Joshen Lim 237fdb8db0 Chore/update branch selection UI (#18402)
* Set up branch selection UI in EnableBranchingModal to be text input

* Scaffold new CreateBranchModal

* Refactor Enable Branching Modal to use RHF and implement async validation

* midway updating create branch modal

* Update create branch modal with branch checking through text input

* Deprecate create branch side panel

* Remove unused import

* Small improvement to validation

* Remove console log
2023-10-24 18:29:42 +08:00

45 lines
1.6 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,
githubRepoList: (organization_integration_id: string | undefined) =>
['organizations', organization_integration_id, 'github-repos'] 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,
],
githubBranchesList: (
organization_integration_id: string | undefined,
repo_owner: string,
repo_name: string
) => ['organizations', organization_integration_id, 'branches', repo_owner, repo_name],
githubPullRequestsList: (
organization_integration_id: string | undefined,
repo_owner: string,
repo_name: string,
target: string | undefined
) => [
'organizations',
organization_integration_id,
'pull-requests',
repo_owner,
repo_name,
target,
],
githubConnectionsList: (organization_integration_id: string | undefined) =>
['organizations', organization_integration_id, 'github-connections'] as const,
}