2025-04-22 15:09:57 +00:00
|
|
|
import { UniqueID } from "core/common/domain";
|
|
|
|
|
import { Result } from "core/common/helpers";
|
2025-02-15 21:30:12 +00:00
|
|
|
import { TabContext } from "../entities";
|
|
|
|
|
|
|
|
|
|
export interface ITabContextService {
|
2025-02-16 19:30:20 +00:00
|
|
|
getContextByTabId(tabId: UniqueID, transaction?: any): Promise<Result<TabContext, Error>>;
|
2025-02-15 21:30:12 +00:00
|
|
|
createContext(
|
|
|
|
|
params: { tabId: UniqueID; userId: UniqueID },
|
|
|
|
|
transaction?: any
|
|
|
|
|
): Promise<Result<TabContext, Error>>;
|
|
|
|
|
removeContext(
|
|
|
|
|
params: { tabId: UniqueID; userId: UniqueID },
|
|
|
|
|
transaction?: any
|
|
|
|
|
): Promise<Result<void, Error>>;
|
|
|
|
|
}
|