@univerjs-pro/collaboration-client 0.2.14 → 0.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/config/config.d.ts +5 -1
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +2 -2
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +24 -0
- package/lib/types/index.d.ts +17 -5
- package/lib/types/plugin.d.ts +3 -13
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +2 -1
- package/lib/types/services/auth-server/domain-request.service.d.ts +6 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -2
- package/lib/types/services/image-remote/image-io.service.d.ts +4 -1
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +4 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +3 -3
- package/lib/umd/index.js +1 -1
- package/package.json +36 -39
@@ -2,6 +2,7 @@
|
|
2
2
|
* The config key to determined the URL provided by the snapshot server
|
3
3
|
* to load snapshot. The URL should not ends with a slash.
|
4
4
|
*/
|
5
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
5
6
|
export declare const SNAPSHOT_SERVER_URL_KEY = "SNAPSHOT_SERVER_URL_KEY";
|
6
7
|
/**
|
7
8
|
* Default value for `SNAPSHOT_SERVER_URL_KEY`.
|
@@ -16,8 +17,10 @@ export declare const SNAPSHOT_URL_KEY = "SNAPSHOT_URL_KEY";
|
|
16
17
|
/**
|
17
18
|
* Determines how often should we send changesets.
|
18
19
|
*/
|
20
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
19
21
|
export declare const SEND_CHANGESET_TIMEOUT_KEY = "SEND_CHANGESET_TIMEOUT";
|
20
22
|
export declare const DEFAULT_SEND_CHANGESET_TIMEOUT = 2000;
|
23
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
21
24
|
export declare const COLLAB_WEB_SOCKET_URL_KEY = "COLLAB_WEB_SOCKET_URL";
|
22
25
|
export declare const DEFAULT_COLLAB_WEB_SOCKET_URL = "ws://127.0.0.1:8000/universer-api/comb/connect";
|
23
26
|
/** The heartbeat interval in milliseconds. */
|
@@ -25,7 +28,6 @@ export declare const HEARTBEAT_INTERVAL_KEY = "HEARTBEAT_INTERVAL";
|
|
25
28
|
export declare const DEFAULT_HEARTBEAT_INTERVAL = 30000;
|
26
29
|
export declare const HEARTBEAT_TIMEOUT_KEY = "HEARTBEAT_TIMEOUT";
|
27
30
|
export declare const DEFAULT_HEARTBEAT_TIMEOUT = 20000;
|
28
|
-
export declare const RETRY_CONNECTING_INTERVAL_KEY = "RETRY_CONNECTING_INTERVAL";
|
29
31
|
export declare const DEFAULT_RETRY_CONNECTING_INTERVAL = 20000;
|
30
32
|
export declare const RETRY_CONNECTING_MAX_COUNT_KEY = "RETRY_CONNECTING_MAX_COUNT";
|
31
33
|
export declare const DEFAULT_RETRY_CONNECTING_MAX_COUNT = 3;
|
@@ -34,11 +36,13 @@ export declare const DEFAULT_RETRY_CONNECTING_MAX_COUNT = 3;
|
|
34
36
|
*/
|
35
37
|
export declare const LOCAL_CACHE_INTERVAL_KEY = "LOCAL_CACHE_INTERVAL";
|
36
38
|
export declare const LOCAL_CACHE_INTERVAL = 1000;
|
39
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
37
40
|
export declare const COLLAB_SUBMIT_CHANGESET_URL_KEY = "COLLAB_SUBMIT_CHANGESET_URL";
|
38
41
|
/** The url prefix is determined by protocol in submodules/protocol/universer/v1/comb.proto */
|
39
42
|
export declare const DEFAULT_COLLAB_SUBMIT_CHANGESET_URL = "/universer-api/comb";
|
40
43
|
/**
|
41
44
|
* The config key to determined the URL provided by the auth server
|
42
45
|
*/
|
46
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
43
47
|
export declare const LOGIN_URL_KEY = "LOGIN_URL_KEY";
|
44
48
|
export declare const DEFAULT_LOGIN_URL = "/universer-api/oidc/authpage";
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
1
|
import { ICollaborationUser, ITransformService } from '@univerjs-pro/collaboration';
|
3
2
|
import { IDocCollabCursor } from '../../models/cursor';
|
3
|
+
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
4
|
+
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
4
5
|
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
5
6
|
import { MemberService } from '../../services/member/member.service';
|
6
7
|
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
7
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
8
8
|
/**
|
9
9
|
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
10
10
|
*/
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
|
-
import { RefRangeService } from '@univerjs/sheets';
|
3
1
|
import { ICollaborationUser } from '@univerjs-pro/collaboration';
|
4
2
|
import { ISheetCollabCursor } from '../../models/cursor';
|
3
|
+
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
4
|
+
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
5
|
+
import { RefRangeService } from '@univerjs/sheets';
|
5
6
|
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
6
7
|
import { MemberService } from '../../services/member/member.service';
|
7
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
8
8
|
/**
|
9
9
|
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
10
10
|
*/
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { CompressMutationService, RevisionService } from '@univerjs-pro/collaboration';
|
2
1
|
import { IDisposable, IMutationInfo, ICommandService, ILogService, Injector, IPermissionService, LocaleService, RxDisposable } from '@univerjs/core';
|
3
2
|
import { UniverType } from '@univerjs/protocol';
|
4
|
-
import { IMessageService } from '@univerjs/ui';
|
5
3
|
import { Observable, BehaviorSubject } from 'rxjs';
|
6
4
|
import { Nullable } from 'vitest';
|
5
|
+
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
6
|
+
import { CollaborationState, ICollaborationStateHandler, CollaborationStatus } from './collaboration-state';
|
7
7
|
import { DocStateChangeManagerService } from '@univerjs/docs-ui';
|
8
|
+
import { IMessageService } from '@univerjs/ui';
|
9
|
+
import { CompressMutationService, RevisionService } from '@univerjs-pro/collaboration';
|
8
10
|
import { DocTransformIMECacheService } from '../../services/ime-cache-transform/doc-transform-ime-cache.service';
|
9
11
|
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
10
12
|
import { SheetTransformSelectionsService } from '../../services/range-selection/sheet-transform-selections.service';
|
11
13
|
import { ISingleActiveUnitService } from '../../services/single-active-unit/single-active-unit.service';
|
12
14
|
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
13
15
|
import { DocTransformSelectionsService } from '../../services/text-selection/doc-transform-selections.service';
|
14
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
15
|
-
import { CollaborationState, ICollaborationStateHandler, CollaborationStatus } from './collaboration-state';
|
16
16
|
/**
|
17
17
|
* Each univer document instance would map to an `CollaborationEntity` to handle collaborated editing events.
|
18
18
|
*/
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { IMutationInfo, Nullable, ICommandService, IConfigService, ILogService, Injector, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
2
|
-
import { INotificationService } from '@univerjs/ui';
|
3
2
|
import { IAcknowledgedChangeset, IChangeset, ITransformService, RevisionService } from '@univerjs-pro/collaboration';
|
3
|
+
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
4
|
+
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
4
5
|
import { UniverType } from '@univerjs/protocol';
|
6
|
+
import { INotificationService } from '@univerjs/ui';
|
5
7
|
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
6
8
|
import { MemberService } from '../../services/member/member.service';
|
7
|
-
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
8
|
-
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
9
9
|
/** Provide both states when and after changing, so the parent could examine if state transition is correct. */
|
10
10
|
export type StateChangeHandler = (before: CollaborationState, after: CollaborationState) => void;
|
11
11
|
/** A network interface to send changeset and */
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Nullable, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
4
3
|
import { CollaborationEntity } from './collaboration-entity';
|
4
|
+
import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
5
5
|
export declare class CollaborationController extends RxDisposable {
|
6
6
|
private readonly _injector;
|
7
7
|
private readonly _collabSessionService;
|
@@ -1,5 +1,29 @@
|
|
1
|
+
import { Ctor, DependencyOverride } from '@univerjs/core';
|
2
|
+
import { ICollaborationSocketService } from '../services/socket/collaboration-socket.service';
|
1
3
|
export declare const PLUGIN_CONFIG_KEY = "collaboration-client.config";
|
2
4
|
export declare const configSymbol: unique symbol;
|
3
5
|
export interface IUniverCollaborationClientConfig {
|
6
|
+
socketService?: Ctor<ICollaborationSocketService>;
|
7
|
+
enableOfflineEditing?: boolean;
|
8
|
+
enableSingleActiveInstanceLock?: boolean;
|
9
|
+
enableAuthServer?: boolean;
|
10
|
+
/**
|
11
|
+
* Override internal modules with custom implementations.
|
12
|
+
*/
|
13
|
+
override?: DependencyOverride;
|
14
|
+
sendChangesetTimeout?: number;
|
15
|
+
snapshotServerUrl?: string;
|
16
|
+
collabSubmitChangesetUrl?: string;
|
17
|
+
collabWebSocketUrl?: string;
|
18
|
+
loginUrlKey?: string;
|
19
|
+
retryConnectingInterval?: number;
|
20
|
+
authzUrl?: string;
|
21
|
+
/**
|
22
|
+
* The URL of the endpoint for downloading files.
|
23
|
+
* @default 'location.origin'
|
24
|
+
*/
|
25
|
+
downloadEndpointUrl?: string;
|
26
|
+
uploadFileServerUrl?: string;
|
27
|
+
signUrlServerUrl?: string;
|
4
28
|
}
|
5
29
|
export declare const defaultPluginConfig: IUniverCollaborationClientConfig;
|
package/lib/types/index.d.ts
CHANGED
@@ -1,8 +1,18 @@
|
|
1
|
-
export {
|
1
|
+
export {
|
2
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
3
|
+
COLLAB_SUBMIT_CHANGESET_URL_KEY,
|
4
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
5
|
+
COLLAB_WEB_SOCKET_URL_KEY, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, LOCAL_CACHE_INTERVAL_KEY, LOGIN_URL_KEY, RETRY_CONNECTING_MAX_COUNT_KEY,
|
6
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
7
|
+
SEND_CHANGESET_TIMEOUT_KEY,
|
8
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
9
|
+
SNAPSHOT_SERVER_URL_KEY,
|
10
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
11
|
+
SNAPSHOT_URL_KEY, } from './config/config';
|
2
12
|
export { CollaborationController } from './controllers/collaboration/collaboration.controller';
|
3
|
-
export { CollaborationEntity,
|
13
|
+
export { CollaborationEntity, DocCollaborationEntity, SheetCollaborationEntity } from './controllers/collaboration/collaboration-entity';
|
4
14
|
export { CollaborationStatus } from './controllers/collaboration/collaboration-state';
|
5
|
-
export { UniverCollaborationClientPlugin
|
15
|
+
export { UniverCollaborationClientPlugin } from './plugin';
|
6
16
|
export { CollaborationSessionService } from './services/collaboration-session/collaboration-session.service';
|
7
17
|
export { CollaborationSession, SessionStatus } from './services/collaboration-session/collaboration-session';
|
8
18
|
export type { ICollaborationSocket } from './services/socket/collaboration-socket.service';
|
@@ -12,10 +22,12 @@ export { IURLService } from './services/url/url.service';
|
|
12
22
|
export { WebURLService } from './services/url/web-url.service';
|
13
23
|
export { DataLoaderController } from './controllers/data-loader/data-loader.controller';
|
14
24
|
export { DesktopCollaborationStatusDisplayController } from './controllers/collab-status/collab-status.controller';
|
15
|
-
export {
|
25
|
+
export { AuthzIoHttpService } from './services/auth-server/authz-io-http.service';
|
26
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
27
|
+
export { AUTHZ_URL_KEY } from './services/auth-server/authz-io-http.service';
|
16
28
|
export { deserializeToCombResponse, serializeCombRequest } from './services/socket/serialize';
|
17
29
|
export { CollaborationStatusDisplay } from './views/components/CollabStatus';
|
18
30
|
export { SnapshotServerOverHTTPService } from './services/snapshot-server/snapshot-server.service';
|
19
31
|
export { CommentService } from './services/comment/comment.service';
|
20
|
-
export {
|
32
|
+
export { type ISheetCollabCursorShapeProps, SheetCollabCursorShape } from './views/shapes/sheet-collab-cursor.shape';
|
21
33
|
export { ImageIoService } from './services/image-remote/image-io.service';
|
package/lib/types/plugin.d.ts
CHANGED
@@ -1,16 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { IUniverCollaborationClientConfig } from './controllers/config.schema';
|
2
|
+
import { IConfigService, ILogService, Injector, Plugin } from '@univerjs/core';
|
2
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
3
|
-
import { ICollaborationSocketService } from './services/socket/collaboration-socket.service';
|
4
|
-
export interface ICollaborationClientPluginConfig {
|
5
|
-
socketService?: Ctor<ICollaborationSocketService>;
|
6
|
-
enableOfflineEditing?: boolean;
|
7
|
-
enableSingleActiveInstanceLock?: boolean;
|
8
|
-
enableAuthServer?: boolean;
|
9
|
-
/**
|
10
|
-
* Override internal modules with custom implementations.
|
11
|
-
*/
|
12
|
-
override?: DependencyOverride;
|
13
|
-
}
|
14
4
|
export declare class UniverCollaborationClientPlugin extends Plugin {
|
15
5
|
private readonly _config;
|
16
6
|
private readonly _logService;
|
@@ -18,7 +8,7 @@ export declare class UniverCollaborationClientPlugin extends Plugin {
|
|
18
8
|
protected _injector: Injector;
|
19
9
|
private readonly _configService;
|
20
10
|
static pluginName: string;
|
21
|
-
constructor(_config:
|
11
|
+
constructor(_config: Partial<IUniverCollaborationClientConfig> | undefined, _logService: ILogService, _renderManagerService: IRenderManagerService, _injector: Injector, _configService: IConfigService);
|
22
12
|
onStarting(): void;
|
23
13
|
onRendered(): void;
|
24
14
|
private _registerDependencies;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { IAuthzIoService, Disposable, IConfigService } from '@univerjs/core';
|
2
|
-
import { HTTPService } from '@univerjs/network';
|
3
2
|
import { IActionInfo, IAllowedRequest, IBatchAllowedResponse, ICollaborator, ICreateCollaboratorRequest, ICreateRequest, IDeleteCollaboratorRequest, IListCollaboratorRequest, IListPermPointRequest, IListPermPointResponse, IListRolesRequest, IPutCollaboratorsRequest, IUnitRoleKV, IUpdateCollaboratorRequest, IUpdatePermPointRequest, UnitAction } from '@univerjs/protocol';
|
3
|
+
import { HTTPService } from '@univerjs/network';
|
4
4
|
/**
|
5
5
|
* The config key to determined the URL provided by the author server.
|
6
6
|
* The URL should not ends with a slash.
|
7
7
|
*/
|
8
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
8
9
|
export declare const AUTHZ_URL_KEY = "AUTHZ_URL_KEY";
|
9
10
|
export declare class AuthzIoHttpService extends Disposable implements IAuthzIoService {
|
10
11
|
private _HTTPService;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Disposable, IConfigService, ILogService, Injector, LocaleService
|
1
|
+
import { Nullable, Disposable, IConfigService, ILogService, Injector, LocaleService } from '@univerjs/core';
|
2
|
+
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
2
3
|
import { IMessageService } from '@univerjs/ui';
|
3
|
-
import { ICollaborationSocketService, ICollaborationSocket } from '../socket/collaboration-socket.service';
|
4
4
|
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
5
5
|
/**
|
6
6
|
* This service provide collaboration sessions to univer instances. A collaboration session
|
@@ -27,6 +27,7 @@ export declare class CollaborationSessionService extends Disposable {
|
|
27
27
|
private _retryConnectingTimer;
|
28
28
|
private _retryCount;
|
29
29
|
constructor(_injector: Injector, _localeService: LocaleService, _messageService: IMessageService, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService);
|
30
|
+
private _initEventListeners;
|
30
31
|
dispose(): void;
|
31
32
|
/**
|
32
33
|
* Require a collaboration session.
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { Nullable, IConfigService, IUniverInstanceService } from '@univerjs/core';
|
2
2
|
import { IImageIoService, IImageIoServiceParam, ImageSourceType } from '@univerjs/drawing';
|
3
|
-
import { HTTPService } from '@univerjs/network';
|
4
3
|
import { IError } from '@univerjs/protocol';
|
5
4
|
import { Observable } from 'rxjs';
|
5
|
+
import { HTTPService } from '@univerjs/network';
|
6
6
|
export declare const ALLOW_IMAGE_LIST: string[];
|
7
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
7
8
|
export declare const EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY = "EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY";
|
9
|
+
/** @deprecated Will be removed in the 0.2.19 release */
|
8
10
|
export declare const EXCHANGE_SIGN_URL_SERVER_URL_KEY = "EXCHANGE_SIGN_URL_SERVER_URL_KEY";
|
9
11
|
export interface ISignUrlResponse {
|
10
12
|
error: IError | undefined;
|
@@ -26,6 +28,7 @@ export declare class ImageIoService implements IImageIoService {
|
|
26
28
|
saveImage(imageFile: File): Promise<Nullable<IImageIoServiceParam>>;
|
27
29
|
private _getUploadFileURL;
|
28
30
|
private _getSignURL;
|
31
|
+
private _getDownloadEndpointURL;
|
29
32
|
private _replaceFileID;
|
30
33
|
private _decreaseWaiting;
|
31
34
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { IChangeset, ITransformService } from '@univerjs-pro/collaboration';
|
2
1
|
import { Injector, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { IChangeset, ITransformService } from '@univerjs-pro/collaboration';
|
3
3
|
export declare function extractTargetFromFirstChangeset(changeset: IChangeset): {
|
4
4
|
unitId: string;
|
5
5
|
subUnitId: string;
|
@@ -1,13 +1,14 @@
|
|
1
|
+
import { ICopyFileMetaResponse, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
2
|
+
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
1
3
|
import { IConfigService } from '@univerjs/core';
|
2
4
|
import { HTTPService } from '@univerjs/network';
|
3
|
-
import { IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
4
|
-
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
5
5
|
export declare class SnapshotServerOverHTTPService implements ISnapshotServerService {
|
6
6
|
private readonly _configService;
|
7
7
|
private readonly _httpService;
|
8
8
|
constructor(_configService: IConfigService, _httpService: HTTPService);
|
9
9
|
getUnitOnRev(_context: ILogContext, params: IGetUnitOnRevRequest): Promise<IGetUnitOnRevResponse>;
|
10
10
|
getSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetSheetBlockResponse>;
|
11
|
+
getDeserializedSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetDeserializedSheetBlockResponse>;
|
11
12
|
fetchMissingChangesets(_context: ILogContext, params: IFetchMissingChangesetsRequest): Promise<IFetchMissingChangesetsResponse>;
|
12
13
|
private _getSnapshotAPIPrefix;
|
13
14
|
private _getAPIPrefix;
|
@@ -15,4 +16,5 @@ export declare class SnapshotServerOverHTTPService implements ISnapshotServerSer
|
|
15
16
|
saveSnapshot(): Promise<ISaveSnapshotResponse>;
|
16
17
|
saveSheetBlock(): Promise<ISaveSheetBlockResponse>;
|
17
18
|
saveChangeset(): Promise<ISaveChangesetResponse>;
|
19
|
+
copyFileMeta(): Promise<ICopyFileMetaResponse>;
|
18
20
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Disposable, IConfigService, ILogService
|
2
|
-
import { HTTPService, WebSocketService
|
3
|
-
import { ISnapshotServerService, ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
|
1
|
+
import { Nullable, Disposable, IConfigService, ILogService } from '@univerjs/core';
|
2
|
+
import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
|
4
3
|
import { IChangeset } from '@univerjs/protocol';
|
4
|
+
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
5
5
|
import { Observable } from 'rxjs';
|
6
6
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
7
7
|
memberID: string;
|