@zerospacegg/vynthra
Version:
Discord bot for ZeroSpace.gg data
44 lines • 1.61 kB
TypeScript
/**
* Generated Search Index - DO NOT EDIT MANUALLY
* Generated by scripts/generate-search-index.mjs
* Contains lightweight entity metadata for search and discovery
*/
export interface Summary {
readonly src: string;
readonly id: string;
readonly slug: string;
readonly uuid: string;
readonly type: string;
readonly subtype: string;
readonly name: string;
readonly shortName: string;
readonly faction: string;
readonly tier: string;
readonly hotkey: string;
readonly inGame: boolean;
readonly tags: string[];
readonly children: string[];
readonly isChildOf: string;
readonly childCollection: string;
readonly childName: string;
}
export interface SearchIndexData {
all: Record<string, Summary>;
ids: Record<string, string>;
}
declare const searchIndexData: SearchIndexData;
export default searchIndexData;
export declare function getSearchIndex(): SearchIndexData;
export declare function getIndexedEntities(): Summary[];
export declare function getIndexMetadata(): {
entityCount: number;
idCount: number;
allIds: string[];
};
export declare function findEntityInIndex(id: string): Summary | undefined;
export declare function getEntityBySlug(slug: string): Summary | undefined;
export declare function getEntitiesByType(type: string): Summary[];
export declare function getEntitiesByFaction(faction: string): Summary[];
export declare function getEntityChildren(entityId: string): Summary[];
export declare function getEntityParent(entityId: string): Summary | undefined;
//# sourceMappingURL=search-index.d.ts.map