This commit is contained in:
Zef Hemel
2026-01-20 13:48:15 +01:00
parent 55bb0f0a0a
commit c25a073e81
22 changed files with 461 additions and 409 deletions
+13 -2
View File
@@ -31,9 +31,8 @@ export function queryLuaObjects<T>(
tag: string,
query: LuaCollectionQuery,
scopedVariables?: Record<string, any>,
ttlSecs?: number,
): Promise<ObjectValue<T>[]> {
return syscall("index.queryLuaObjects", tag, query, scopedVariables, ttlSecs);
return syscall("index.queryLuaObjects", tag, query, scopedVariables);
}
/**
@@ -57,3 +56,15 @@ export function getObjectByRef<T>(
export function ensureFullIndex(): Promise<void> {
return syscall("index.ensureFullIndex");
}
export function reindexSpace(): Promise<void> {
return syscall("index.reindexSpace");
}
export function deleteObject(
page: string,
tag: string,
ref: string,
): Promise<void> {
return syscall("index.deleteObject", page, tag, ref);
}