@univerjs/protocol 0.1.39-alpha.22 → 0.1.39-alpha.24
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/types/index.d.ts
CHANGED
|
@@ -9,15 +9,16 @@ export { ObjectScope, UnitAction, UnitObject, UnitRole, UnitShareScope, } from '
|
|
|
9
9
|
export type { Resource as IResource } from './ts/univer/resource';
|
|
10
10
|
export type { Snapshot as ISnapshot } from './ts/univer/snapshot';
|
|
11
11
|
export { type CellData as ICellData, type CellValue as ICellValue, CellValueType, type RowData as IRowData, type RowData_ItemsEntry as IRowDataItemsEntry, type SheetBlock as ISheetBlock, type SheetBlockMeta as ISheetBlockMeta, type WorkbookMeta as IWorkbookMeta, type WorkbookMeta_BlockMetaEntry as IWorkbookMeta_BlockMetaEntry, type WorkbookMeta_SheetsEntry as IWorkbookMeta_SheetsEntry, type WorksheetMeta as IWorksheetMeta, } from './ts/univer/workbook';
|
|
12
|
-
export { type ApplyRequest as IApplyRequest, type ApplyResponse as IApplyResponse, type CreateUnitRequest as ICreateUnitRequest, type CreateUnitResponse as ICreateUnitResponse, type DirectWriteBody as IDirectWriteBody, type DirectWriteRequest as IDirectWriteRequest, type DirectWriteResponse as IDirectWriteResponse, type DisposeRequest as IDisposeRequest, type DisposeResponse as IDisposeResponse, type EnsureSnapshotRequest as IEnsureSnapshotRequest, type EnsureSnapshotResponse as IEnsureSnapshotResponse, type GetUnitRawContentRequest as IGetUnitRawContentRequest, type GetUnitRawContentResponse as IGetUnitRawContentResponse, type WorkbookCreateMeta as IWorkbookCreateMeta, } from './ts/v1/apply';
|
|
12
|
+
export { type ApplyRequest as IApplyRequest, type ApplyResponse as IApplyResponse, type CreateUnitRequest as ICreateUnitRequest, type CreateUnitResponse as ICreateUnitResponse, type DirectWriteBody as IDirectWriteBody, type DirectWriteRequest as IDirectWriteRequest, type DirectWriteResponse as IDirectWriteResponse, type DisposeRequest as IDisposeRequest, type DisposeResponse as IDisposeResponse, type EnsureSnapshotRequest as IEnsureSnapshotRequest, type EnsureSnapshotResponse as IEnsureSnapshotResponse, type ForkUnitRequest as IForkUnitRequest, type ForkUnitResponse as IForkUnitResponse, type GetUnitRawContentRequest as IGetUnitRawContentRequest, type GetUnitRawContentResponse as IGetUnitRawContentResponse, type WorkbookCreateMeta as IWorkbookCreateMeta, } from './ts/v1/apply';
|
|
13
13
|
export type { ActionInfo as IActionInfo, AllowedRequest as IAllowedRequest, AllowedResponse as IAllowedResponse, AuthzService as IAuthzService, BatchAllowedResponse as IBatchAllowedResponse, Collaborator as ICollaborator, CreateCollaboratorRequest as ICreateCollaboratorRequest, CreateCollaboratorResponse as ICreateCollaboratorResponse, CreateRequest as ICreateRequest, CreateRequest_SelectRangeObject as ICreateRequest_SelectRangeObject, CreateRequest_WorksheetObject as ICreateRequest_WorksheetObject, CreateResponse as ICreateResponse, DeleteCollaboratorRequest as IDeleteCollaboratorRequest, DeleteCollaboratorResponse as IDeleteCollaboratorResponse, ListCollaboratorRequest as IListCollaboratorRequest, ListCollaboratorResponse as IListCollaboratorResponse, ListPermPointRequest as IListPermPointRequest, ListPermPointResponse as IListPermPointResponse, ListRolesRequest as IListRolesRequest, ListRolesResponse as IListRolesResponse, PermissionPoint as IPermissionPoint, PutCollaboratorsRequest as IPutCollaboratorsRequest, PutCollaboratorsResponse as IPutCollaboratorsResponse, UpdateCollaboratorRequest as IUpdateCollaboratorRequest, UpdateCollaboratorResponse as IUpdateCollaboratorResponse, UpdatePermPointRequest as IUpdatePermPointRequest, UpdatePermPointResponse as IUpdatePermPointResponse, } from './ts/v1/authz';
|
|
14
14
|
export { CmdRspCode, CombCmd, type CombInfoResponse as ICombInfoResponse, type CombJoinInfo as ICombJoinInfo, type CombJoinRequest as ICombJoinRequest, type CombJoinResponse as ICombJoinResponse, type CombJoinResponse_RoomInfo as ICombJoinResponseRoomInfo, type CombJoinResponse_RoomInfosEntry as ICombJoinResponseRoomInfosEntry, type CombLeaveRequest as ICombLeaveRequest, type CombService as ICombService, type ConnectResponse as IConnectResponse, type Member as IMember, type NewChangesRequest as INewChangesRequest, type NewChangesResponse as INewChangesResponse, } from './ts/v1/comb';
|
|
15
15
|
export type { AddCommentRequest, AddCommentResponse, DeleteCommentRequest, DeleteCommentResponse, EditCommentRequest, EditCommentResponse, ListCommentsRequest, ListCommentsResponse, Reply, ReplyCommentRequest, ReplyCommentResponse, SolvedCommentRequest, SolvedCommentResponse, Thread, } from './ts/v1/comment';
|
|
16
16
|
export { type FileService as IFileService, FileSource, type FileUploadMeta as IuploadFileRequestMeta, type FileUploadRequest as IFileUploadRequest, type UploadResponse as IUploadResponse, } from './ts/v1/file';
|
|
17
17
|
export type { CreateHistoryRequest as ICreateHistoryRequest, CreateHistoryResponse as ICreateHistoryResponse, History as IHistory, HistoryEntities as IHistoryEntities, HistoryListRequest as IHistoryListRequest, HistoryService as IHistoryService, } from './ts/v1/history';
|
|
18
|
-
export { type FetchMissingChangesetsRequest as IFetchMissingChangesetsRequest, type FetchMissingChangesetsResponse as IFetchMissingChangesetsResponse, type GetResourcesRequest as IGetResourcesRequest, type GetResourcesResponse as IGetResourcesResponse, type GetSheetBlockRequest as IGetSheetBlockRequest, type GetSheetBlockResponse as IGetSheetBlockResponse, type GetSnapshotRequest as IGetSnapshotRequest, type GetSnapshotResponse as IGetSnapshotResponse, type GetUnitOnRevRequest as IGetUnitOnRevRequest, type GetUnitOnRevResponse as IGetUnitOnRevResponse, type SaveChangesetRequest as ISaveChangesetRequest, type SaveChangesetResponse as ISaveChangesetResponse, type SaveSheetBlockRequest as ISaveSheetBlockRequest, type SaveSheetBlockResponse as ISaveSheetBlockResponse, type SaveSnapshotRequest as ISaveSnapshotRequest, type SaveSnapshotResponse as ISaveSnapshotResponse, type SnapshotService as ISnapshotService, type UpdateUnitRequest as IUpdateUnitRequest, type UpdateUnitResponse as IUpdateUnitResponse, } from './ts/v1/snapshot';
|
|
18
|
+
export { type CopyFileMetaRequest as ICopyFileMetaRequest, type CopyFileMetaResponse as ICopyFileMetaResponse, type FetchMissingChangesetsRequest as IFetchMissingChangesetsRequest, type FetchMissingChangesetsResponse as IFetchMissingChangesetsResponse, type GetResourcesRequest as IGetResourcesRequest, type GetResourcesResponse as IGetResourcesResponse, type GetSheetBlockRequest as IGetSheetBlockRequest, type GetSheetBlockResponse as IGetSheetBlockResponse, type GetSnapshotRequest as IGetSnapshotRequest, type GetSnapshotResponse as IGetSnapshotResponse, type GetUnitOnRevRequest as IGetUnitOnRevRequest, type GetUnitOnRevResponse as IGetUnitOnRevResponse, type SaveChangesetRequest as ISaveChangesetRequest, type SaveChangesetResponse as ISaveChangesetResponse, type SaveSheetBlockRequest as ISaveSheetBlockRequest, type SaveSheetBlockResponse as ISaveSheetBlockResponse, type SaveSnapshotRequest as ISaveSnapshotRequest, type SaveSnapshotResponse as ISaveSnapshotResponse, type SnapshotService as ISnapshotService, type UpdateUnitRequest as IUpdateUnitRequest, type UpdateUnitResponse as IUpdateUnitResponse, } from './ts/v1/snapshot';
|
|
19
19
|
export type { GetSSRRequest as IGetSSRRequest, GetSSRResponse as IGetSSRResponse, SSRService as ISSRService, } from './ts/v1/ssr';
|
|
20
20
|
export type { GetUserRequest as IGetUserRequest, GetUserResponse as IGetUserResponse, ListUsersResponse as IListUsersResponse, User as IUser } from './ts/v1/user';
|
|
21
21
|
export { type DeleteUnitRequest as IDeleteUnitRequest, type DeleteUnitResponse as IDeleteUnitResponse, type RecentListRequest as IRecentListRequest, type RecentListResponse as IRecentListResponse, type RemoveNodeRequest as IRemoveNodeRequest, type RemoveNodeResponse as IRemoveNodeResponse, type RestoreNodeRequest as IRestoreNodeRequest, type RestoreNodeResponse as IRestoreNodeResponse, type WorkspaceService as IWorkspaceService, } from './ts/v1/workspace';
|
|
22
22
|
export type { RangeCompletionRequest as IRangeCompletionRequest, RangeCompletionResponse as IRangeCompletionResponse, UrlContext as IUrlContext, UrlRowContext as IUrlRowContext, YuumiService as IYuumiService, } from './ts/yuumi/v1/yuumi';
|
|
23
|
+
export type { GetDeserializedSheetBlockResponse as IGetDeserializedSheetBlockResponse, DeserializedSheetBlock as IDeserializedSheetBlock } from './other/sheet_block';
|
|
23
24
|
export { isError } from './utils';
|
|
@@ -7,6 +7,15 @@ import { InitialSheet } from '../univer/initial_sheet';
|
|
|
7
7
|
import { Snapshot } from '../univer/snapshot';
|
|
8
8
|
import { CustomCellTemplate } from '../univer/unit_template';
|
|
9
9
|
export declare const protobufPackage = "univerpro.v1";
|
|
10
|
+
export interface ForkUnitRequest {
|
|
11
|
+
sourceUnitId: string;
|
|
12
|
+
targetUnitId: string;
|
|
13
|
+
type: UniverType;
|
|
14
|
+
}
|
|
15
|
+
export interface ForkUnitResponse {
|
|
16
|
+
error: Error | undefined;
|
|
17
|
+
snapshot: Snapshot | undefined;
|
|
18
|
+
}
|
|
10
19
|
export interface GetUnitRawContentRequest {
|
|
11
20
|
unitID: string;
|
|
12
21
|
type: UniverType;
|
|
@@ -124,4 +133,5 @@ export interface ApplyService {
|
|
|
124
133
|
EnsureSnapshot(request: EnsureSnapshotRequest, metadata?: Metadata): Observable<EnsureSnapshotResponse>;
|
|
125
134
|
/** Used to obtain unit raw data and provide it to yuumi server */
|
|
126
135
|
GetUnitRawContent(request: GetUnitRawContentRequest, metadata?: Metadata): Observable<GetUnitRawContentResponse>;
|
|
136
|
+
ForkUnit(request: ForkUnitRequest, metadata?: Metadata): Observable<ForkUnitResponse>;
|
|
127
137
|
}
|
|
@@ -10,6 +10,21 @@ import { CustomCellTemplate } from '../univer/unit_template';
|
|
|
10
10
|
import { Unit } from '../univer/univer_file';
|
|
11
11
|
import { SheetBlock } from '../univer/workbook';
|
|
12
12
|
export declare const protobufPackage = "universer.v1";
|
|
13
|
+
export interface ForkUnitRequest {
|
|
14
|
+
unitId: string;
|
|
15
|
+
type: UniverType;
|
|
16
|
+
}
|
|
17
|
+
export interface ForkUnitResponse {
|
|
18
|
+
error: Error | undefined;
|
|
19
|
+
unitId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CopyFileMetaRequest {
|
|
22
|
+
fileMetaId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CopyFileMetaResponse {
|
|
25
|
+
error: Error | undefined;
|
|
26
|
+
fileMetaId: string;
|
|
27
|
+
}
|
|
13
28
|
export interface DirectWriteRequest {
|
|
14
29
|
unitID: string;
|
|
15
30
|
type: UniverType;
|
|
@@ -174,4 +189,6 @@ export interface SnapshotService {
|
|
|
174
189
|
EnsureSnapshot(request: EnsureSnapshotRequest, metadata?: Metadata): Observable<EnsureSnapshotResponse>;
|
|
175
190
|
/** Directly write a changeset with a user's identification to the document. */
|
|
176
191
|
DirectWrite(request: DirectWriteRequest, metadata?: Metadata): Observable<DirectWriteResponse>;
|
|
192
|
+
CopyFileMeta(request: CopyFileMetaRequest, metadata?: Metadata): Observable<CopyFileMetaResponse>;
|
|
193
|
+
ForkUnit(request: ForkUnitRequest, metadata?: Metadata): Observable<ForkUnitResponse>;
|
|
177
194
|
}
|