feat: look up local row ids by sync id for the sync plugin (Plugin-Sync#4)

This commit is contained in:
LukeGus committed 2026-10-29 12:49:47 -05:00
1 parent 691896db2d
commit 8d26c716b4
6 files changed
+54 -3

No files matched your search

+6
View File
@@ -470,6 +470,12 @@ export interface PluginSyncHost {
ensureCore: () => Promise<void>;
onChanged: (listener: () => void) => () => void;
onLocalWrite: (listener: () => void) => () => void;
/** Local ids of the user's own rows of a type, by sync id. Termix 26.10.6+. */
idsOf?: (
type: string,
userId: string,
syncIds: string[],
) => Promise<Record<string, number>>;
};
/** Rows and bookkeeping of one local user's replica. */