diff --git a/.changeset/smooth-sheep-hide.md b/.changeset/smooth-sheep-hide.md
new file mode 100644
index 0000000000..8a65602ca9
--- /dev/null
+++ b/.changeset/smooth-sheep-hide.md
@@ -0,0 +1,5 @@
+---
+'@backstage/plugin-azure-devops': patch
+---
+
+Exporting azureDevOpsApiRef, AzureGitTagsIcon, and all hooks for the benefit of other plugins.
diff --git a/plugins/azure-devops/api-report.md b/plugins/azure-devops/api-report.md
index 9760340771..b366166d95 100644
--- a/plugins/azure-devops/api-report.md
+++ b/plugins/azure-devops/api-report.md
@@ -5,10 +5,21 @@
```ts
///
+import { ApiRef } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
+import { BuildRun } from '@backstage/plugin-azure-devops-common';
+import { BuildRunOptions } from '@backstage/plugin-azure-devops-common';
import { DashboardPullRequest } from '@backstage/plugin-azure-devops-common';
+import { DiscoveryApi } from '@backstage/core-plugin-api';
import { Entity } from '@backstage/catalog-model';
+import { GitTag } from '@backstage/plugin-azure-devops-common';
+import { IdentityApi } from '@backstage/core-plugin-api';
+import { PullRequest } from '@backstage/plugin-azure-devops-common';
+import { PullRequestOptions } from '@backstage/plugin-azure-devops-common';
+import { RepoBuild } from '@backstage/plugin-azure-devops-common';
+import { RepoBuildOptions } from '@backstage/plugin-azure-devops-common';
import { SvgIconProps } from '@material-ui/core';
+import { Team } from '@backstage/plugin-azure-devops-common';
// Warning: (ae-missing-release-tag) "AllFilter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -55,6 +66,107 @@ export type AssignedToUserFilter = BaseFilter &
}
);
+// Warning: (ae-missing-release-tag) "AzureDevOpsApi" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
+//
+// @public (undocumented)
+export interface AzureDevOpsApi {
+ // (undocumented)
+ getAllTeams(): Promise;
+ // (undocumented)
+ getBuildRuns(
+ projectName: string,
+ repoName?: string,
+ definitionName?: string,
+ options?: BuildRunOptions,
+ ): Promise<{
+ items: BuildRun[];
+ }>;
+ // (undocumented)
+ getDashboardPullRequests(
+ projectName: string,
+ ): Promise;
+ // (undocumented)
+ getGitTags(
+ projectName: string,
+ repoName: string,
+ ): Promise<{
+ items: GitTag[];
+ }>;
+ // (undocumented)
+ getPullRequests(
+ projectName: string,
+ repoName: string,
+ options?: PullRequestOptions,
+ ): Promise<{
+ items: PullRequest[];
+ }>;
+ // (undocumented)
+ getRepoBuilds(
+ projectName: string,
+ repoName: string,
+ options?: RepoBuildOptions,
+ ): Promise<{
+ items: RepoBuild[];
+ }>;
+ // (undocumented)
+ getUserTeamIds(userId: string): Promise;
+}
+
+// Warning: (ae-missing-release-tag) "azureDevOpsApiRef" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
+//
+// @public (undocumented)
+export const azureDevOpsApiRef: ApiRef;
+
+// Warning: (ae-missing-release-tag) "AzureDevOpsClient" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
+//
+// @public (undocumented)
+export class AzureDevOpsClient implements AzureDevOpsApi {
+ constructor(options: {
+ discoveryApi: DiscoveryApi;
+ identityApi: IdentityApi;
+ });
+ // (undocumented)
+ getAllTeams(): Promise;
+ // (undocumented)
+ getBuildRuns(
+ projectName: string,
+ repoName?: string,
+ definitionName?: string,
+ options?: BuildRunOptions,
+ ): Promise<{
+ items: BuildRun[];
+ }>;
+ // (undocumented)
+ getDashboardPullRequests(
+ projectName: string,
+ ): Promise;
+ // (undocumented)
+ getGitTags(
+ projectName: string,
+ repoName: string,
+ ): Promise<{
+ items: GitTag[];
+ }>;
+ // (undocumented)
+ getPullRequests(
+ projectName: string,
+ repoName: string,
+ options?: PullRequestOptions,
+ ): Promise<{
+ items: PullRequest[];
+ }>;
+ // (undocumented)
+ getRepoBuilds(
+ projectName: string,
+ repoName: string,
+ options?: RepoBuildOptions,
+ ): Promise<{
+ items: RepoBuild[];
+ }>;
+ // (undocumented)
+ getUserTeamIds(userId: string): Promise;
+}
+
// Warning: (ae-missing-release-tag) "azureDevOpsPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
diff --git a/plugins/azure-devops/src/index.ts b/plugins/azure-devops/src/index.ts
index 48177ee830..e65c1d02a3 100644
--- a/plugins/azure-devops/src/index.ts
+++ b/plugins/azure-devops/src/index.ts
@@ -26,6 +26,8 @@ export {
export { AzurePullRequestsIcon } from './components/AzurePullRequestsIcon';
+export * from './api';
+
export { FilterType } from './components/PullRequestsPage';
export type {
PullRequestColumnConfig,