search: move DocumentTypeInfo to search-common

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2022-01-24 14:46:11 +00:00
parent 1887a857c4
commit 634abc1a41
11 changed files with 29 additions and 28 deletions
@@ -14,10 +14,10 @@
* limitations under the License.
*/
import { Permission } from '@backstage/plugin-permission-common';
import {
DocumentCollator,
DocumentDecorator,
DocumentTypeInfo,
IndexableDocument,
SearchEngine,
} from '@backstage/search-common';
@@ -38,14 +38,6 @@ type IndexBuilderOptions = {
logger: Logger;
};
export type DocumentTypeInfo = {
/**
* The {@link @backstage/plugin-permission-common#Permission} that controls
* visibility of resources associated with this collator's documents.
*/
visibilityPermission?: Permission;
};
export class IndexBuilder {
private collators: Record<string, CollatorEnvelope>;
private decorators: Record<string, DocumentDecorator[]>;
-1
View File
@@ -21,7 +21,6 @@
*/
export { IndexBuilder } from './IndexBuilder';
export type { DocumentTypeInfo } from './IndexBuilder';
export { Scheduler } from './Scheduler';
export { LunrSearchEngine } from './engines';