From 6a65db7b04b04d9e93b34bb40ab19cc87621e261 Mon Sep 17 00:00:00 2001 From: Oliver Sand Date: Mon, 2 Aug 2021 11:55:00 +0200 Subject: [PATCH] Add api report Signed-off-by: Oliver Sand --- .../search-backend-module-pg/api-report.md | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 plugins/search-backend-module-pg/api-report.md diff --git a/plugins/search-backend-module-pg/api-report.md b/plugins/search-backend-module-pg/api-report.md new file mode 100644 index 0000000000..23a1f3ecbb --- /dev/null +++ b/plugins/search-backend-module-pg/api-report.md @@ -0,0 +1,114 @@ +## API Report File for "@backstage/plugin-search-backend-module-pg" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import { IndexableDocument } from '@backstage/search-common'; +import { Knex } from 'knex'; +import { PluginDatabaseManager } from '@backstage/backend-common'; +import { SearchEngine } from '@backstage/plugin-search-backend-node'; +import { SearchQuery } from '@backstage/search-common'; +import { SearchResultSet } from '@backstage/search-common'; + +// Warning: (ae-missing-release-tag) "DatabaseDocumentStore" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export class DatabaseDocumentStore implements DatabaseStore { + constructor(db: Knex); + // (undocumented) + completeInsert(tx: Knex.Transaction, type: string): Promise; + // (undocumented) + static create(knex: Knex): Promise; + // (undocumented) + insertDocuments( + tx: Knex.Transaction, + type: string, + documents: IndexableDocument[], + ): Promise; + // (undocumented) + prepareInsert(tx: Knex.Transaction): Promise; + // Warning: (ae-forgotten-export) The symbol "DocumentResultRow" needs to be exported by the entry point index.d.ts + // + // (undocumented) + query( + tx: Knex.Transaction, + { types, pgTerm, fields }: PgSearchQuery, + ): Promise; + // (undocumented) + static supported(knex: Knex): Promise; + // (undocumented) + transaction(fn: (tx: Knex.Transaction) => Promise): Promise; +} + +// Warning: (ae-missing-release-tag) "DatabaseStore" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface DatabaseStore { + // (undocumented) + completeInsert(tx: Knex.Transaction, type: string): Promise; + // (undocumented) + insertDocuments( + tx: Knex.Transaction, + type: string, + documents: IndexableDocument[], + ): Promise; + // (undocumented) + prepareInsert(tx: Knex.Transaction): Promise; + // (undocumented) + query( + tx: Knex.Transaction, + pgQuery: PgSearchQuery, + ): Promise; + // (undocumented) + transaction(fn: (tx: Knex.Transaction) => Promise): Promise; +} + +// Warning: (ae-missing-release-tag) "PgSearchEngine" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export class PgSearchEngine implements SearchEngine { + constructor(databaseStore: DatabaseStore); + // (undocumented) + static from({ + database, + }: { + database: PluginDatabaseManager; + }): Promise; + // (undocumented) + index(type: string, documents: IndexableDocument[]): Promise; + // (undocumented) + query(query: SearchQuery): Promise; + // (undocumented) + setTranslator(translator: (query: SearchQuery) => PgSearchQuery): void; + // (undocumented) + static supported(database: PluginDatabaseManager): Promise; + // (undocumented) + translator(query: SearchQuery): PgSearchQuery; +} + +// Warning: (ae-missing-release-tag) "PgSearchQuery" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface PgSearchQuery { + // (undocumented) + fields?: Record; + // (undocumented) + pgTerm?: string; + // (undocumented) + types?: string[]; +} + +// Warning: (ae-missing-release-tag) "RawDocumentRow" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export interface RawDocumentRow { + // (undocumented) + document: IndexableDocument; + // (undocumented) + hash: unknown; + // (undocumented) + type: string; +} + +// (No @packageDocumentation comment for this package) +```