| 24 | export type BitbucketRepository = CloudRepository | ServerRepository; |
| 25 | |
| 26 | interface BitbucketClient { |
| 27 | deploymentType: string; |
| 28 | token: string | undefined; |
| 29 | apiClient: any; |
| 30 | baseUrl: string; |
| 31 | gitUrl: string; |
| 32 | getReposForWorkspace: (client: BitbucketClient, workspaces: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>; |
| 33 | getReposForProjects: (client: BitbucketClient, projects: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>; |
| 34 | getRepos: (client: BitbucketClient, repos: string[]) => Promise<{repos: BitbucketRepository[], warnings: string[]}>; |
| 35 | shouldExcludeRepo: (repo: BitbucketRepository, config: BitbucketConnectionConfig) => boolean; |
| 36 | } |
| 37 | |
| 38 | type CloudAPI = ReturnType<typeof createBitbucketCloudClientBase>; |
| 39 | type CloudGetRequestPath = ClientPathsWithMethod<CloudAPI, "get">; |
nothing calls this directly
no outgoing calls
no test coverage detected