Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
20 changes: 1 addition & 19 deletions src/root/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down Expand Up @@ -39,16 +34,3 @@ export function signal(channel: string, body: HashMap = {}): Promise<void> {
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<void> {
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<void> {
return post(`${apiEndpoint()}/backfill`, {}).then(() => undefined);
}
4 changes: 0 additions & 4 deletions src/root/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ export interface PlaceVersion {
export interface SignalOptions {
channel: string;
}

export interface ReindexOptions {
backfill?: boolean;
}
Loading