diff --git a/src/api.ts b/src/api.ts index 7e5ca5ac2..9ad82d7d9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -344,18 +344,15 @@ export { PlaceRepository } from './repositories/repository'; export { apiScopes, - backfill, coreVersions, healthCheck, platformInfo, - reindex, serviceVersion, signal, } from './root/functions'; export type { PlacePlatformInfo, PlaceVersion, - ReindexOptions, SignalOptions, } from './root/interfaces'; diff --git a/src/root/functions.ts b/src/root/functions.ts index fb9668c31..d8da4f994 100644 --- a/src/root/functions.ts +++ b/src/root/functions.ts @@ -2,12 +2,7 @@ import { apiEndpoint } from '../auth/functions'; import { get, post } from '../http/functions'; import { toQueryString } from '../utilities/api'; import { HashMap } from '../utilities/types'; -import { - PlacePlatformInfo, - PlaceVersion, - ReindexOptions, - SignalOptions, -} from './interfaces'; +import { PlacePlatformInfo, PlaceVersion, SignalOptions } from './interfaces'; /** Check API health */ export function healthCheck(): Promise { @@ -39,16 +34,3 @@ export function signal(channel: string, body: HashMap = {}): Promise { const q = toQueryString({ channel } as SignalOptions); return post(`${apiEndpoint()}/signal?${q}`, body).then(() => undefined); } - -/** @deprecated No-op since PlaceOS moved search to PostgreSQL (PPT-2644); will be removed */ -export function reindex(query_params: ReindexOptions = {}): Promise { - const q = toQueryString(query_params); - return post(`${apiEndpoint()}/reindex${q ? '?' + q : ''}`, {}).then( - () => undefined, - ); -} - -/** @deprecated No-op since PlaceOS moved search to PostgreSQL (PPT-2644); will be removed */ -export function backfill(): Promise { - return post(`${apiEndpoint()}/backfill`, {}).then(() => undefined); -} diff --git a/src/root/interfaces.ts b/src/root/interfaces.ts index 14425dc5e..be455e33f 100644 --- a/src/root/interfaces.ts +++ b/src/root/interfaces.ts @@ -14,7 +14,3 @@ export interface PlaceVersion { export interface SignalOptions { channel: string; } - -export interface ReindexOptions { - backfill?: boolean; -}