Revert "Allow to change default document type of indexed files by catalog col…"

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-03-07 18:02:30 +01:00
parent 091ff3255b
commit f4fbbf7db6
4 changed files with 2 additions and 54 deletions
+1 -2
View File
@@ -288,7 +288,7 @@ export class DefaultCatalogCollatorFactory implements DocumentCollatorFactory {
// (undocumented)
getCollator(): Promise<Readable>;
// (undocumented)
readonly type: string;
readonly type = 'software-catalog';
// (undocumented)
readonly visibilityPermission: Permission;
}
@@ -302,7 +302,6 @@ export type DefaultCatalogCollatorFactoryOptions = {
batchSize?: number;
catalogClient?: CatalogApi;
entityTransformer?: CatalogCollatorEntityTransformer;
documentType?: string;
};
export { DeferredEntity };
@@ -42,12 +42,11 @@ export type DefaultCatalogCollatorFactoryOptions = {
batchSize?: number;
catalogClient?: CatalogApi;
entityTransformer?: CatalogCollatorEntityTransformer;
documentType?: string;
};
/** @public */
export class DefaultCatalogCollatorFactory implements DocumentCollatorFactory {
public readonly type: string;
public readonly type = 'software-catalog';
public readonly visibilityPermission: Permission =
catalogEntityReadPermission;
@@ -74,7 +73,6 @@ export class DefaultCatalogCollatorFactory implements DocumentCollatorFactory {
catalogClient,
tokenManager,
entityTransformer,
documentType,
} = options;
this.locationTemplate =
@@ -86,7 +84,6 @@ export class DefaultCatalogCollatorFactory implements DocumentCollatorFactory {
this.tokenManager = tokenManager;
this.entityTransformer =
entityTransformer ?? defaultCatalogCollatorEntityTransformer;
this.type = documentType ?? 'software-catalog';
}
async getCollator(): Promise<Readable> {