Skip to content

Commit

Permalink
chore: bump @backstage/repo-tools version to 0.10.0 and regenerate al…
Browse files Browse the repository at this point in the history
…l api reports

Signed-off-by: Kashish Mittal <[email protected]>
  • Loading branch information
04kash authored and christoph-jerolimov committed Nov 17, 2024
1 parent f50db2a commit 9e4f57a
Show file tree
Hide file tree
Showing 28 changed files with 1,011 additions and 2,849 deletions.
7 changes: 3 additions & 4 deletions workspaces/bulk-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "yarn workspaces foreach -A --include backend --include app --parallel -v -i run start",
"build:all": "backstage-cli repo build --all",
"build:api-reports": "yarn build:api-reports:only",
"build:api-reports:only": "backstage-repo-tools api-reports --allow-all-warnings -o ae-wrong-input-file-type --validate-release-tags",
"build:api-reports:only": "backstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags",
"clean": "backstage-cli repo clean",
"test": "backstage-cli repo test",
"test:all": "backstage-cli repo test --coverage",
Expand All @@ -36,7 +36,7 @@
"devDependencies": {
"@backstage/cli": "^0.28.0",
"@backstage/e2e-test-utils": "^0.1.1",
"@backstage/repo-tools": "^0.8.0",
"@backstage/repo-tools": "^0.10.0",
"@changesets/cli": "^2.27.1",
"@spotify/prettier-config": "^12.0.0",
"node-gyp": "^9.0.0",
Expand All @@ -49,8 +49,7 @@
},
"resolutions": {
"@types/react": "^18",
"@types/react-dom": "^18",
"@microsoft/api-extractor": "7.36.4"
"@types/react-dom": "^18"
},
"prettier": "@spotify/prettier-config",
"lint-staged": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

import type { AuthService } from '@backstage/backend-plugin-api';
import { BackendFeature } from '@backstage/backend-plugin-api';
import type { CacheService } from '@backstage/backend-plugin-api';
Expand All @@ -14,36 +15,31 @@ import type { HttpAuthService } from '@backstage/backend-plugin-api';
import type { LoggerService } from '@backstage/backend-plugin-api';
import type { PermissionEvaluator } from '@backstage/plugin-permission-common';

// Warning: (ae-missing-release-tag) "bulkImportPlugin" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
const bulkImportPlugin: BackendFeature;
export default bulkImportPlugin;

// Warning: (ae-missing-release-tag) "createRouter" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export function createRouter(options: RouterOptions): Promise<express.Router>;

// Warning: (ae-missing-release-tag) "RouterOptions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export interface RouterOptions {
// (undocumented)
auth: AuthService;
// (undocumented)
cache: CacheService;
// (undocumented)
catalogApi: CatalogApi;
// (undocumented)
config: Config;
// (undocumented)
discovery: DiscoveryService;
// (undocumented)
httpAuth: HttpAuthService;
// (undocumented)
logger: LoggerService;
// (undocumented)
permissions: PermissionEvaluator;
// (undocumented)
auth: AuthService;
// (undocumented)
cache: CacheService;
// (undocumented)
catalogApi: CatalogApi;
// (undocumented)
config: Config;
// (undocumented)
discovery: DiscoveryService;
// (undocumented)
httpAuth: HttpAuthService;
// (undocumented)
logger: LoggerService;
// (undocumented)
permissions: PermissionEvaluator;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { createRouter } from './service/router';

/**
* The bulk-import backend plugin.
* @public
*/
export const bulkImportPlugin = createBackendPlugin({
pluginId: 'bulk-import',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ import {
findRepositoriesByOrganization,
} from './handlers/repository';

/**
* Router Options
* @public
*/
export interface RouterOptions {
logger: LoggerService;
permissions: PermissionEvaluator;
Expand All @@ -75,6 +79,10 @@ export interface RouterOptions {
catalogApi: CatalogApi;
}

/**
* Router
* @public
*/
export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,19 @@ import { default as React_2 } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
import { SubRouteRef } from '@backstage/core-plugin-api';

// Warning: (ae-missing-release-tag) "BulkImportIcon" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export const BulkImportIcon: () => React_2.JSX.Element;

// Warning: (ae-missing-release-tag) "BulkImportPage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export const BulkImportPage: () => JSX_2.Element;

// Warning: (ae-missing-release-tag) "bulkImportPlugin" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export const bulkImportPlugin: BackstagePlugin< {
root: RouteRef<undefined>;
addRepositories: SubRouteRef<undefined>;
}, {}, {}>;

// Warning: (ae-missing-release-tag) "BulkImportSidebarItem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
// @public
export const BulkImportSidebarItem: () => JSX_2.Element | null;

// (No @packageDocumentation comment for this package)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ import React from 'react';
*/
import React from 'react';

import { SidebarItem } from '@backstage/core-components';
import { configApiRef, useApi } from '@backstage/core-plugin-api';
Expand All @@ -22,6 +23,10 @@ import { bulkImportPermission } from '@red-hat-developer-hub/backstage-plugin-bu

import { getImageForIconClass } from '../utils/icons';

/**
* @public
* Bulk Import Icon
*/
export const BulkImportIcon = () => {
return (
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ export { BulkImportPage } from './BulkImportPage';
*/
export { BulkImportPage } from './BulkImportPage';
export { BulkImportSidebarItem } from './BulkImportSidebarItem';
export { Router } from './Router';
15 changes: 14 additions & 1 deletion workspaces/bulk-import/plugins/bulk-import/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ import {
*/
import {
configApiRef,
createApiFactory,
createComponentExtension,
Expand All @@ -27,6 +28,10 @@ import {
} from './api/BulkImportBackendClient';
import { addRepositoriesRouteRef, rootRouteRef } from './routes';

/**
* @public
* Bulk Import Plugin
*/
export const bulkImportPlugin = createPlugin({
id: 'bulk-import',
routes: {
Expand All @@ -46,6 +51,10 @@ export const bulkImportPlugin = createPlugin({
],
});

/**
* @public
* Bulk Import Page
*/
export const BulkImportPage = bulkImportPlugin.provide(
createRoutableExtension({
name: 'BulkImportPage',
Expand All @@ -54,6 +63,10 @@ export const BulkImportPage = bulkImportPlugin.provide(
}),
);

/**
* @public
* Bulk Import SidebarItem
*/
export const BulkImportSidebarItem = bulkImportPlugin.provide(
createComponentExtension({
name: 'BulkImportSidebarItem',
Expand Down
Loading

0 comments on commit 9e4f57a

Please sign in to comment.