import { ObjectQuery, ObjectValue } from "$sb/types.ts"; import { invokeFunction } from "$sb/silverbullet-syscall/system.ts"; export function indexObjects( page: string, objects: ObjectValue[], ): Promise { return invokeFunction("index.indexObjects", page, objects); } export function queryObjects( tag: string, query: ObjectQuery, ): Promise[]> { return invokeFunction("index.queryObjects", tag, query); } export function getObjectByRef( page: string, tag: string, ref: string, ): Promise[]> { return invokeFunction("index.getObjectByRef", page, tag, ref); }