Files
supabase/apps/studio/data/integrations/keys.ts
T
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00

37 lines
1.5 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
) => ['organizations', organization_integration_id, 'pull-requests', repo_owner, repo_name],
githubConnectionsList: (organization_integration_id: string | undefined) =>
['organizations', organization_integration_id, 'github-connections'] as const,
}