@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
82 lines • 2.86 kB
TypeScript
/**
* AUTO-GENERATED - DO NOT EDIT
* Magical Search Index System
* Generated by scripts/generate-meta-search-index.mjs
*
* This file contains lightweight entity metadata for search and discovery,
* including parent-child relationships and comprehensive entity coverage.
*/
/**
* Summary interface for search index entries
*/
export interface Summary {
readonly id: string;
readonly slug: string;
readonly name: string;
readonly shortName: string;
readonly type: string;
readonly subtype: string;
readonly faction: string | null;
readonly tier: string | null;
readonly hotkey: string | null;
readonly inGame: boolean;
readonly uuid: string | null;
readonly hasLore: boolean;
readonly src: string | null;
readonly tags: string[];
readonly children: string[];
readonly isChildOf: string | null;
readonly childCollection: string | null;
readonly childName: string | null;
}
/**
* Search index data structure
*/
export interface SearchIndexData {
all: Record<string, Summary>;
bySlug: Record<string, string>;
byUUID: Record<string, string>;
byChildSlugs: Record<string, string[]>;
ids: Record<string, string>;
}
/**
* Utility functions for search index access
*/
export declare function getSearchIndex(): SearchIndexData;
export declare function getIndexedEntities(): Summary[];
declare const _default: {
getSearchIndex(): SearchIndexData;
getIndexedEntities(): Summary[];
getIndexMetadata(): {
entityCount: number;
slugCount: number;
uuidCount: number;
childSlugCount: number;
};
data: SearchIndexData;
};
export default _default;
export declare function getIndexMetadata(): {
entityCount: number;
slugCount: number;
uuidCount: number;
childSlugCount: number;
idCount: number;
childCount: number;
parentCount: number;
allIds: string[];
};
export declare function findEntityInIndex(id: string): Summary | undefined;
export declare function getEntityBySlug(slug: string): Summary | undefined;
export declare function getEntityByUUID(uuid: string): Summary | undefined;
export declare function getChildEntitiesBySlug(slug: string): Summary[];
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;
export declare function getChildEntities(): Summary[];
export declare function getParentEntities(): Summary[];
export declare function getEntitiesByTag(tag: string): Summary[];
export declare function getAllTags(): string[];
export declare function getTaggedMapping(): Record<string, string[]>;
//# sourceMappingURL=search-index.d.ts.map