15 lines
464 B
TypeScript
15 lines
464 B
TypeScript
|
|
import { Result, UniqueID } from "@common/domain";
|
||
|
|
import { TabContext } from "../entities";
|
||
|
|
|
||
|
|
export interface ITabContextService {
|
||
|
|
getContextByTabId(tabId: UniqueID): Promise<Result<TabContext, Error>>;
|
||
|
|
createContext(
|
||
|
|
params: { tabId: UniqueID; userId: UniqueID },
|
||
|
|
transaction?: any
|
||
|
|
): Promise<Result<TabContext, Error>>;
|
||
|
|
removeContext(
|
||
|
|
params: { tabId: UniqueID; userId: UniqueID },
|
||
|
|
transaction?: any
|
||
|
|
): Promise<Result<void, Error>>;
|
||
|
|
}
|