MCPcopy Index your code
hub / github.com/apitable/apitable / IResourceService

Interface IResourceService

packages/widget-sdk/src/resource/interface.ts:25–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23import { databus } from '@apitable/core';
24
25export 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
49export type IServiceError = (error: IError, type: 'modal' | 'message' | 'subscribeUsage') => void;

Callers 40

constructorMethod · 0.65
constructorMethod · 0.65
fusion.e2e-spec.tsFile · 0.65
ot.service.spec.tsFile · 0.65
subscribeDatasheetMapFunction · 0.65
subscribeWidgetMapFunction · 0.65
form_map.tsFile · 0.65
mirror_map.tsFile · 0.65

Implementers 1

ResourceServicepackages/widget-sdk/src/resource/servi

Calls

no outgoing calls

Tested by

no test coverage detected