| 23 | import { databus } from '@apitable/core'; |
| 24 | |
| 25 | export interface IResourceService { |
| 26 | init (): void; |
| 27 | createCollaEngine (resourceId: string, resourceType: ResourceType): boolean; |
| 28 | readonly socket: SocketIOClient.Socket; |
| 29 | /** |
| 30 | * @deprecated This is a temporary member. All dependencies of CommandManager in the front-end will be removed in the future. |
| 31 | */ |
| 32 | readonly commandManager: CollaCommandManager; |
| 33 | readonly currentResource: databus.Datasheet | undefined; |
| 34 | readonly opEventManager: OPEventManager; |
| 35 | readonly computeRefManager: ComputeRefManager; |
| 36 | getCollaEngine(resourceId: string): Engine | undefined; |
| 37 | destroy(): void; |
| 38 | reset(resourceId: string, resourceType: ResourceType): void |
| 39 | getCollaEngineKeys(): IterableIterator<string> |
| 40 | checkRoomExist(): boolean; |
| 41 | switchResource(params: { from?: string, to: string, resourceType: ResourceType }): void; |
| 42 | onNewChanges(resourceType: ResourceType, resourceId: string, actions: IJOTAction[]): any |
| 43 | applyOperations( |
| 44 | store: Store<IReduxState>, |
| 45 | resourceOpsCollects: IResourceOpsCollect[] |
| 46 | ): void; |
| 47 | } |
| 48 | |
| 49 | export type IServiceError = (error: IError, type: 'modal' | 'message' | 'subscribeUsage') => void; |
no outgoing calls
no test coverage detected