From 9167359c6e2bdb91429c66ab92538c853a216e9c Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Fri, 17 Apr 2026 11:09:31 +0800 Subject: [PATCH] feat(cleaner-history): expose search API in preload Co-Authored-By: Claude Opus 4.6 --- src/preload/api/cleaner.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/preload/api/cleaner.ts b/src/preload/api/cleaner.ts index 8fb8186..760bcaf 100644 --- a/src/preload/api/cleaner.ts +++ b/src/preload/api/cleaner.ts @@ -8,7 +8,9 @@ import type { CleanerExecutionRecord, CleanerOrderRecord, CleanerMaterialRecord, - GetCleanerBatchesOptions + GetCleanerBatchesOptions, + SearchCleanerHistoryOptions, + CleanerHistorySearchResult } from '../../main/types/cleaner-history.types' import type { IpcResult } from '../../main/types/ipc.types' import { IPC_CHANNELS } from '../../shared/ipc-channels' @@ -53,5 +55,10 @@ export const cleanerApi = { ), deleteHistoryBatch: (batchId: string): Promise> => - invokeIpc(IPC_CHANNELS.CLEANER_HISTORY_DELETE_BATCH, batchId) + invokeIpc(IPC_CHANNELS.CLEANER_HISTORY_DELETE_BATCH, batchId), + + searchHistoryRecords: ( + options: SearchCleanerHistoryOptions + ): Promise> => + invokeIpc(IPC_CHANNELS.CLEANER_HISTORY_SEARCH, options) } as const