feat: define housekeeping foundation contracts
This commit is contained in:
1 parent
3b3d7780c9
commit
7d62a04f0e
10 files changed
+338
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import type { HousekeepingDomainId } from "../../migration/types";
|
||||
import type { HousekeepingCapabilityContext } from "./capability";
|
||||
import type { HousekeepingResult } from "./result";
|
||||
|
||||
export interface HousekeepingSearchInput {
|
||||
term: string;
|
||||
limit: number;
|
||||
}
|
||||
|
||||
export interface HousekeepingSearchResult {
|
||||
id: string;
|
||||
domain: HousekeepingDomainId;
|
||||
title: string;
|
||||
href: string;
|
||||
}
|
||||
|
||||
export interface HousekeepingSearchProvider {
|
||||
search(
|
||||
context: HousekeepingCapabilityContext,
|
||||
input: HousekeepingSearchInput,
|
||||
): Promise<HousekeepingResult<readonly HousekeepingSearchResult[]>>;
|
||||
}
|
||||
Reference in new issue
Block a user