2025-05-02 21:43:51 +00:00
|
|
|
import { UniqueID } from "@/core/common/domain";
|
2025-05-09 10:45:32 +00:00
|
|
|
import { Result } from "@repo/rdx-utils";
|
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>>;
|
|
|
|
|
}
|