feat(client): sync digital employee outbox
This commit is contained in:
@@ -13,6 +13,10 @@ import {
|
||||
type DigitalEmployeeServiceStatus,
|
||||
type DigitalEmployeeSnapshot,
|
||||
} from "../services/digitalEmployee/stateService";
|
||||
import {
|
||||
flushDigitalEmployeeSyncOutbox,
|
||||
getDigitalEmployeeSyncStatus,
|
||||
} from "../services/digitalEmployee/syncService";
|
||||
|
||||
export function registerDigitalEmployeeHandlers(ctx: HandlerContext): void {
|
||||
ipcMain.handle("digitalEmployee:getSnapshot", async () => {
|
||||
@@ -30,6 +34,14 @@ export function registerDigitalEmployeeHandlers(ctx: HandlerContext): void {
|
||||
ipcMain.handle("digitalEmployee:getState", async () => {
|
||||
return readDigitalEmployeeState();
|
||||
});
|
||||
|
||||
ipcMain.handle("digitalEmployee:getSyncStatus", async () => {
|
||||
return getDigitalEmployeeSyncStatus();
|
||||
});
|
||||
|
||||
ipcMain.handle("digitalEmployee:flushSync", async () => {
|
||||
return flushDigitalEmployeeSyncOutbox();
|
||||
});
|
||||
}
|
||||
|
||||
function buildSnapshot(ctx: HandlerContext): DigitalEmployeeSnapshot {
|
||||
|
||||
Reference in New Issue
Block a user