Skip to content

Commit

Permalink
feat(new-backend-integration-jira): remove unnecessary deprecated/pub…
Browse files Browse the repository at this point in the history
…lic exports
  • Loading branch information
ionSurf committed Sep 26, 2024
1 parent 2f9c546 commit 3f8ae36
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 48 deletions.
35 changes: 0 additions & 35 deletions plugins/jira-dashboard-backend/api-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,19 @@
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { AuthService } from '@backstage/backend-plugin-api';
import { BackendFeatureCompat } from '@backstage/backend-plugin-api';
import { DiscoveryService } from '@backstage/backend-plugin-api';
import express from 'express';
import { HttpAuthService } from '@backstage/backend-plugin-api';
import { Issue } from '@axis-backstage/plugin-jira-dashboard-common';
import { LoggerService } from '@backstage/backend-plugin-api';
import { RootConfigService } from '@backstage/backend-plugin-api';
import { UserInfoService } from '@backstage/backend-plugin-api';

// @public
export function createRouter(options: RouterOptions): Promise<express.Router>;

// @public
const jiraDashboardPlugin: BackendFeatureCompat;
export default jiraDashboardPlugin;

// @public
export const jqlQueryBuilder: ({
project,
components,
query,
}: JqlQueryBuilderArgs) => string;

// @public
export type JqlQueryBuilderArgs = {
project: string;
components?: string[];
query?: string;
};

// @public
export interface RouterOptions {
auth: AuthService;
config: RootConfigService;
discovery: DiscoveryService;
httpAuth: HttpAuthService;
logger: LoggerService;
userInfo: UserInfoService;
}

// @public
export const searchJira: (
config: RootConfigService,
jqlQuery: string,
options: SearchOptions,
) => Promise<Issue[]>;

// @public
export type SearchOptions = {
expand?: string[];
Expand Down
2 changes: 0 additions & 2 deletions plugins/jira-dashboard-backend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export type SearchOptions = {
* @param config - A Backstage config
* @param jqlQuery - A string containing the jql query.
* @param options - Query options that will be passed on to the POST request.
*
* @public
*/
export const searchJira = async (
config: RootConfigService,
Expand Down
1 change: 0 additions & 1 deletion plugins/jira-dashboard-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* @packageDocumentation
*/

export * from './service/router';
export { jiraDashboardPlugin as default } from './plugin';
export { searchJira } from './api';
export type { SearchOptions } from './api';
Expand Down
2 changes: 0 additions & 2 deletions plugins/jira-dashboard-backend/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export type JqlQueryBuilderArgs = {

/**
* Creates a jql query string.
*
* @public
*/
export const jqlQueryBuilder = ({
project,
Expand Down
8 changes: 0 additions & 8 deletions plugins/jira-dashboard-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ import {
import { getProjectAvatar } from '../api';
import stream from 'stream';

/**
* Constructs a jira dashboard router.
* @public
*/
export interface RouterOptions {
/**
* Implementation of Authentication Service
Expand Down Expand Up @@ -61,10 +57,6 @@ export interface RouterOptions {
userInfo: UserInfoService;
}

/**
* Constructs a jira dashboard router.
* @public
*/
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {
Expand Down

0 comments on commit 3f8ae36

Please sign in to comment.