do not export catalog-import

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2023-06-30 00:05:00 +05:30
parent 71c1c639d6
commit 63e880700e
2 changed files with 8 additions and 2 deletions
@@ -19,7 +19,7 @@ import LocationOnIcon from '@material-ui/icons/LocationOn';
import React from 'react';
import { BackButton, ViewComponentButton } from '../Buttons';
import { EntityListComponent } from '../EntityListComponent';
import { PrepareResult, NewLocations } from '../useImportState';
import { PrepareResult } from '../useImportState';
import { Link } from '@backstage/core-components';
import partition from 'lodash/partition';
import { CompoundEntityRef } from '@backstage/catalog-model';
@@ -31,6 +31,12 @@ type Props = {
onReset: () => void;
};
type NewLocations = Array<{
exists?: boolean;
target: string;
entities: CompoundEntityRef[];
}>;
// Among the newly registered entities, return a software entity (e.g. Component, API, Resource)
const filterComponentEntity = (
newLocations: NewLocations,
@@ -32,7 +32,7 @@ export type ImportFlows =
// the available states of the stepper
type ImportStateTypes = 'analyze' | 'prepare' | 'review' | 'finish';
export type NewLocations = Array<{
type NewLocations = Array<{
exists?: boolean;
target: string;
entities: CompoundEntityRef[];