@ckeditor/ckeditor-cloud-services-collaboration 0.0.0-internal-20251222.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/LICENSE.md +30 -0
- package/README.md +21 -0
- package/dist/ckeditorcloudserviceserror.d.ts +11 -0
- package/dist/ckeditorcloudservicesservererror.d.ts +18 -0
- package/dist/collaborativeeditingservice/collaborativeeditingservice.d.ts +131 -0
- package/dist/collaborativeeditingservice/descriptors/operationmetadatadescriptor.d.ts +21 -0
- package/dist/collaborativeeditingservice/helpers/operationmetadatahelpers.d.ts +14 -0
- package/dist/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.d.ts +28 -0
- package/dist/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.d.ts +22 -0
- package/dist/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.d.ts +42 -0
- package/dist/collaborativeeditingservice/messages/getdocumentdetailsmessage.d.ts +19 -0
- package/dist/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.d.ts +72 -0
- package/dist/collaborativeeditingservice/responses/collaborativeeditingresponse.d.ts +55 -0
- package/dist/collaborativeeditingservice/responses/getdocumentdetailsresponse.d.ts +31 -0
- package/dist/comments-v2/commentsservice.d.ts +75 -0
- package/dist/comments-v2/descriptors/commentdescriptor.d.ts +26 -0
- package/dist/comments-v2/descriptors/commentsthreaddescriptor.d.ts +34 -0
- package/dist/comments-v2/descriptors/commentthreadaddedcomment.d.ts +18 -0
- package/dist/comments-v2/messages/addcommentmessage.d.ts +33 -0
- package/dist/comments-v2/messages/comment-threads/addcommentthreadmessage.d.ts +35 -0
- package/dist/comments-v2/messages/comment-threads/reopencommentthreadmessage.d.ts +20 -0
- package/dist/comments-v2/messages/comment-threads/resolvecommentthreadmessage.d.ts +24 -0
- package/dist/comments-v2/messages/comment-threads/updatecommentthreadmessage.d.ts +26 -0
- package/dist/comments-v2/messages/connectmessage.d.ts +18 -0
- package/dist/comments-v2/messages/getcommentthreadmessage.d.ts +20 -0
- package/dist/comments-v2/messages/getdocumentthreadsmessage.d.ts +18 -0
- package/dist/comments-v2/messages/removecommentmessage.d.ts +22 -0
- package/dist/comments-v2/messages/removecommentthreadmessage.d.ts +20 -0
- package/dist/comments-v2/messages/updatecommentmessage.d.ts +31 -0
- package/dist/comments-v2/responses/addcommentresponse.d.ts +20 -0
- package/dist/comments-v2/responses/comment-threads/addcommentthreadresponse.d.ts +25 -0
- package/dist/comments-v2/responses/comment-threads/resolvecommentthreadresponse.d.ts +22 -0
- package/dist/comments-v2/responses/connectresponse.d.ts +22 -0
- package/dist/comments-v2/responses/getcommentthreadresponse.d.ts +36 -0
- package/dist/comments-v2/responses/getdocumentthreadsresponse.d.ts +20 -0
- package/dist/compiledmessages.d.ts +6 -0
- package/dist/descriptor.d.ts +16 -0
- package/dist/descriptors/keyvaluedescriptor.d.ts +8 -0
- package/dist/editor/editorservice.d.ts +14 -0
- package/dist/editor/messages/iseditorbundleuploadedmessage.d.ts +18 -0
- package/dist/editor/responses/iseditorbundleuploadedresponse.d.ts +16 -0
- package/dist/errors/ServiceNotConnectedError.d.ts +7 -0
- package/dist/index.d.ts +68 -0
- package/dist/message.d.ts +20 -0
- package/dist/messagescompressor.d.ts +19 -0
- package/dist/messagesmapper.d.ts +12 -0
- package/dist/revision-history/descriptors/revisiondescriptor.d.ts +45 -0
- package/dist/revision-history/messages/revisionhistoryconnectmessage.d.ts +18 -0
- package/dist/revision-history/messages/revisionhistorygetrevisionmessage.d.ts +20 -0
- package/dist/revision-history/messages/revisionhistoryreconnectmessage.d.ts +20 -0
- package/dist/revision-history/messages/revisionhistoryupdaterevisionsmessage.d.ts +44 -0
- package/dist/revision-history/responses/revisionhistoryconnectresponse.d.ts +33 -0
- package/dist/revision-history/responses/revisionhistorygetrevisionresponse.d.ts +33 -0
- package/dist/revision-history/responses/revisionhistoryupdaterevisionsresponse.d.ts +16 -0
- package/dist/revision-history/revision.d.ts +18 -0
- package/dist/revision-history/revisionhistoryservice.d.ts +78 -0
- package/dist/services-content.css +3 -0
- package/dist/services-editor.css +3 -0
- package/dist/services.css +3 -0
- package/dist/services.d.ts +19 -0
- package/dist/services.js +67 -0
- package/dist/services.js.map +1 -0
- package/dist/sessions/descriptors/sessiondescriptor.d.ts +8 -0
- package/dist/sessions/messages/sessionsconnectmessage.d.ts +20 -0
- package/dist/sessions/messages/socketconnectmessage.d.ts +24 -0
- package/dist/sessions/messages/socketdisconnectmessage.d.ts +18 -0
- package/dist/sessions/responses/sessionsconnectresponse.d.ts +24 -0
- package/dist/sessions/sessioncollection.d.ts +43 -0
- package/dist/sessions/sessions.d.ts +16 -0
- package/dist/track-changes/descriptors/suggestiondescriptor.d.ts +28 -0
- package/dist/track-changes/messages/addsuggestionmessage.d.ts +28 -0
- package/dist/track-changes/messages/batchUpdateSuggestionsStateMessage.d.ts +22 -0
- package/dist/track-changes/messages/connectmessage.d.ts +18 -0
- package/dist/track-changes/messages/getallsuggestionsmessage.d.ts +18 -0
- package/dist/track-changes/messages/getsuggestionmessage.d.ts +20 -0
- package/dist/track-changes/messages/updatesuggestionmessage.d.ts +28 -0
- package/dist/track-changes/responses/addsuggestionresponse.d.ts +30 -0
- package/dist/track-changes/responses/connectresponse.d.ts +22 -0
- package/dist/track-changes/responses/getallsuggestionsresponse.d.ts +20 -0
- package/dist/track-changes/responses/getsuggestionresponse.d.ts +30 -0
- package/dist/track-changes/trackchangesservice.d.ts +65 -0
- package/dist/types.d.ts +10 -0
- package/dist/users/descriptors/userdescriptor.d.ts +8 -0
- package/dist/users/messages/getmanyusersmessage.d.ts +18 -0
- package/dist/users/messages/getusermessage.d.ts +18 -0
- package/dist/users/responses/getmanyusersresponse.d.ts +16 -0
- package/dist/users/responses/getuserresponse.d.ts +16 -0
- package/dist/users/user.d.ts +44 -0
- package/dist/version.d.ts +5 -0
- package/dist/websocketgateway/channel.d.ts +34 -0
- package/dist/websocketgateway/messages/channelmessage.d.ts +25 -0
- package/dist/websocketgateway/parser/packetparser.d.ts +19 -0
- package/dist/websocketgateway/parser/packets/bytesbytespacketdatamessage.d.ts +22 -0
- package/dist/websocketgateway/parser/packets/numberbytespacketdatamessage.d.ts +22 -0
- package/dist/websocketgateway/parser/packets/numbernumberpacketdatamessag.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/numberobjectpacketdatamessage.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/numberstringpacketdatamessag.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/objectbufferpacketdatamessage.d.ts +22 -0
- package/dist/websocketgateway/parser/packets/objectobjectpacketdatamessage.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/packagedatamessage.d.ts +19 -0
- package/dist/websocketgateway/parser/packets/packetmessage.d.ts +35 -0
- package/dist/websocketgateway/parser/packets/packetoptionsmessage.d.ts +21 -0
- package/dist/websocketgateway/parser/packets/stringbytespacketdatamessage.d.ts +22 -0
- package/dist/websocketgateway/parser/packets/stringnumberpacketdatamessage.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/stringobjectpacketdatamessage.d.ts +20 -0
- package/dist/websocketgateway/parser/packets/stringstringpacketdatamessage.d.ts +20 -0
- package/dist/websocketgateway/parser/parser.d.ts +18 -0
- package/dist/websocketgateway/parser/parserutils.d.ts +33 -0
- package/dist/websocketgateway/requestsmanager.d.ts +23 -0
- package/dist/websocketgateway/websocketgateway.d.ts +169 -0
- package/package.json +42 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Descriptor, { IDescriptorBody } from '../../descriptor';
|
|
5
|
+
export interface ICommentThreadAddedCommentJSON {
|
|
6
|
+
commentId: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ICommentThreadAddedComment {
|
|
10
|
+
commentId: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export default class CommentThreadAddedCommentDescriptor extends Descriptor {
|
|
14
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
15
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
16
|
+
static toJSON(comment: ICommentThreadAddedComment): ICommentThreadAddedCommentJSON;
|
|
17
|
+
static fromJSON(comment: ICommentThreadAddedCommentJSON): ICommentThreadAddedComment;
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
import { IThread, IThreadJSON } from '../descriptors/commentsthreaddescriptor';
|
|
7
|
+
export interface IAddCommentMessage extends IMessage {
|
|
8
|
+
commentThreadId: string;
|
|
9
|
+
content: string;
|
|
10
|
+
documentId: string;
|
|
11
|
+
commentId: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
userId: string;
|
|
14
|
+
attributes: string;
|
|
15
|
+
commentThread?: IThreadJSON;
|
|
16
|
+
}
|
|
17
|
+
export default class AddCommentMessage extends Message {
|
|
18
|
+
readonly documentId: string;
|
|
19
|
+
readonly commentThreadId: string;
|
|
20
|
+
readonly content: string;
|
|
21
|
+
readonly commentId: string;
|
|
22
|
+
readonly userId: string;
|
|
23
|
+
readonly attributes: Record<string, unknown> | null;
|
|
24
|
+
readonly commentThread?: IThread | undefined;
|
|
25
|
+
readonly createdAt: Date | string;
|
|
26
|
+
static readonly TYPE: string;
|
|
27
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
28
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
29
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
30
|
+
constructor(documentId: string, commentThreadId: string, content: string, commentId?: string, createdAt?: string | Date, userId?: string, attributes?: Record<string, unknown> | null, commentThread?: IThread | undefined);
|
|
31
|
+
toJSON(): IAddCommentMessage;
|
|
32
|
+
static fromJSON(object: IAddCommentMessage): AddCommentMessage;
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from '../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
import { IComment, ICommentJSON } from '../../descriptors/commentdescriptor';
|
|
7
|
+
export interface IAddCommentThreadMessage extends IMessage {
|
|
8
|
+
commentThreadId: string;
|
|
9
|
+
documentId: string;
|
|
10
|
+
context: string | null | undefined;
|
|
11
|
+
resolvedAt: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
resolvedBy: string | null;
|
|
14
|
+
deletedAt: string;
|
|
15
|
+
attributes: string | null;
|
|
16
|
+
comments: ICommentJSON[];
|
|
17
|
+
}
|
|
18
|
+
export default class AddCommentThreadMessage extends Message {
|
|
19
|
+
readonly documentId: string;
|
|
20
|
+
readonly commentThreadId: string;
|
|
21
|
+
readonly comments: IComment[];
|
|
22
|
+
readonly context?: Record<string, unknown> | null | undefined;
|
|
23
|
+
readonly resolvedBy: string | null;
|
|
24
|
+
readonly attributes: Record<string, unknown> | null;
|
|
25
|
+
readonly createdAt: Date | string;
|
|
26
|
+
readonly resolvedAt: Date | string;
|
|
27
|
+
readonly deletedAt: Date | string;
|
|
28
|
+
static readonly TYPE: string;
|
|
29
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
30
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
31
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
32
|
+
constructor(documentId: string, commentThreadId: string, comments?: IComment[], context?: Record<string, unknown> | null | undefined, resolvedBy?: string | null, createdAt?: string | Date | null, resolvedAt?: string | Date | null, deletedAt?: string | Date | null, attributes?: Record<string, unknown> | null);
|
|
33
|
+
toJSON(): IAddCommentThreadMessage;
|
|
34
|
+
static fromJSON(object: IAddCommentThreadMessage): AddCommentThreadMessage;
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from '../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
export interface IReopenCommentThreadMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
}
|
|
10
|
+
export default class ReopenCommentThreadMessage extends Message {
|
|
11
|
+
readonly commentThreadId: string;
|
|
12
|
+
readonly documentId: string;
|
|
13
|
+
static readonly TYPE: string;
|
|
14
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
15
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
16
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
17
|
+
constructor(commentThreadId: string, documentId: string);
|
|
18
|
+
toJSON(): IReopenCommentThreadMessage;
|
|
19
|
+
static fromJSON(object: IReopenCommentThreadMessage): ReopenCommentThreadMessage;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from '../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
export interface IResolveCommentThreadMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
resolvedBy?: string;
|
|
10
|
+
resolvedAt?: string;
|
|
11
|
+
}
|
|
12
|
+
export default class ResolveCommentThreadMessage extends Message {
|
|
13
|
+
readonly commentThreadId: string;
|
|
14
|
+
readonly documentId: string;
|
|
15
|
+
readonly resolvedBy?: string | undefined;
|
|
16
|
+
readonly resolvedAt?: Date;
|
|
17
|
+
static readonly TYPE: string;
|
|
18
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
19
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
20
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
21
|
+
constructor(commentThreadId: string, documentId: string, resolvedBy?: string | undefined, resolvedAt?: string);
|
|
22
|
+
toJSON(): IResolveCommentThreadMessage;
|
|
23
|
+
static fromJSON(object: IResolveCommentThreadMessage): ResolveCommentThreadMessage;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from '../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
export interface IUpdateCommentThreadMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
context: string | null | undefined;
|
|
10
|
+
attributes: string | null;
|
|
11
|
+
unlinkedAt: string | null;
|
|
12
|
+
}
|
|
13
|
+
export default class UpdateCommentThreadMessage extends Message {
|
|
14
|
+
readonly commentThreadId: string;
|
|
15
|
+
readonly documentId: string;
|
|
16
|
+
readonly context?: Record<string, unknown> | null | undefined;
|
|
17
|
+
readonly attributes: Record<string, unknown> | null;
|
|
18
|
+
readonly unlinkedAt: Date | string;
|
|
19
|
+
static readonly TYPE: string;
|
|
20
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
21
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
22
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
23
|
+
constructor(commentThreadId: string, documentId: string, context?: Record<string, unknown> | null | undefined, attributes?: Record<string, unknown> | null, unlinkedAt?: string | Date | null);
|
|
24
|
+
toJSON(): IUpdateCommentThreadMessage;
|
|
25
|
+
static fromJSON(object: IUpdateCommentThreadMessage): UpdateCommentThreadMessage;
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IConnectMessage extends IMessage {
|
|
7
|
+
documentId: string;
|
|
8
|
+
}
|
|
9
|
+
export default class ConnectMessage extends Message {
|
|
10
|
+
readonly documentId: string;
|
|
11
|
+
static readonly TYPE: string;
|
|
12
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
13
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
14
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
15
|
+
constructor(documentId: string);
|
|
16
|
+
toJSON(): IConnectMessage;
|
|
17
|
+
static fromJSON(object: IConnectMessage): ConnectMessage;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IGetCommentThreadMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
}
|
|
10
|
+
export default class GetCommentThreadMessage extends Message {
|
|
11
|
+
readonly commentThreadId: string;
|
|
12
|
+
readonly documentId: string;
|
|
13
|
+
static readonly TYPE: string;
|
|
14
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
15
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
16
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
17
|
+
constructor(commentThreadId: string, documentId: string);
|
|
18
|
+
toJSON(): IGetCommentThreadMessage;
|
|
19
|
+
static fromJSON(object: IGetCommentThreadMessage): GetCommentThreadMessage;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IGetDocumentThreadsMessage extends IMessage {
|
|
7
|
+
documentId: string;
|
|
8
|
+
}
|
|
9
|
+
export default class GetDocumentThreadsMessage extends Message {
|
|
10
|
+
readonly documentId: string;
|
|
11
|
+
static readonly TYPE: string;
|
|
12
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
13
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
14
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
15
|
+
constructor(documentId: string);
|
|
16
|
+
toJSON(): IGetDocumentThreadsMessage;
|
|
17
|
+
static fromJSON(object: IGetDocumentThreadsMessage): GetDocumentThreadsMessage;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IRemoveCommentMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
commentId: string;
|
|
9
|
+
documentId: string;
|
|
10
|
+
}
|
|
11
|
+
export default class RemoveCommentMessage extends Message {
|
|
12
|
+
readonly documentId: string;
|
|
13
|
+
readonly commentThreadId: string;
|
|
14
|
+
readonly commentId: string;
|
|
15
|
+
static readonly TYPE: string;
|
|
16
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
17
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
18
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
19
|
+
constructor(documentId: string, commentThreadId: string, commentId: string);
|
|
20
|
+
toJSON(): IRemoveCommentMessage;
|
|
21
|
+
static fromJSON(object: IRemoveCommentMessage): RemoveCommentMessage;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IRemoveCommentThreadMessage extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
}
|
|
10
|
+
export default class RemoveCommentThreadMessage extends Message {
|
|
11
|
+
readonly documentId: string;
|
|
12
|
+
readonly commentThreadId: string;
|
|
13
|
+
static readonly TYPE: string;
|
|
14
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
15
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
16
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
17
|
+
constructor(documentId: string, commentThreadId: string);
|
|
18
|
+
toJSON(): IRemoveCommentThreadMessage;
|
|
19
|
+
static fromJSON(object: IRemoveCommentThreadMessage): RemoveCommentThreadMessage;
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
import { IThread, IThreadJSON } from '../descriptors/commentsthreaddescriptor';
|
|
7
|
+
export interface IUpdateCommentMessage extends IMessage {
|
|
8
|
+
commentThreadId: string;
|
|
9
|
+
content: string | undefined;
|
|
10
|
+
documentId: string;
|
|
11
|
+
commentId: string;
|
|
12
|
+
attributes: string | null;
|
|
13
|
+
isAttributesUpdated: boolean;
|
|
14
|
+
commentThread?: IThreadJSON;
|
|
15
|
+
}
|
|
16
|
+
export default class UpdateCommentMessage extends Message {
|
|
17
|
+
readonly documentId: string;
|
|
18
|
+
readonly commentThreadId: string;
|
|
19
|
+
readonly commentId: string;
|
|
20
|
+
readonly content?: string | undefined;
|
|
21
|
+
readonly attributes: Record<string, unknown> | null;
|
|
22
|
+
readonly isAttributesUpdated: boolean;
|
|
23
|
+
readonly commentThread?: IThread | undefined;
|
|
24
|
+
static readonly TYPE: string;
|
|
25
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
26
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
27
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
28
|
+
constructor(documentId: string, commentThreadId: string, commentId: string, content?: string | undefined, attributes?: Record<string, unknown> | null, isAttributesUpdated?: boolean, commentThread?: IThread | undefined);
|
|
29
|
+
toJSON(): IUpdateCommentMessage;
|
|
30
|
+
static fromJSON(object: IUpdateCommentMessage): UpdateCommentMessage;
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IAddCommentResponse extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
commentId: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
}
|
|
11
|
+
export default class AddCommentResponse extends Message {
|
|
12
|
+
readonly commentThreadId: string;
|
|
13
|
+
readonly commentId: string;
|
|
14
|
+
readonly createdAt: Date;
|
|
15
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
16
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
17
|
+
constructor(commentThreadId: string, commentId: string, createdAt: string);
|
|
18
|
+
toJSON(): IAddCommentResponse;
|
|
19
|
+
static fromJSON(data: IAddCommentResponse): AddCommentResponse;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
import { ICommentThreadAddedComment } from '../../descriptors/commentthreadaddedcomment';
|
|
7
|
+
export interface IAddedComment {
|
|
8
|
+
commentId: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IAddCommentThreadResponse extends IMessage {
|
|
12
|
+
commentThreadId: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
comments: IAddedComment[];
|
|
15
|
+
}
|
|
16
|
+
export default class AddCommentThreadResponse extends Message {
|
|
17
|
+
readonly commentThreadId: string;
|
|
18
|
+
comments: ICommentThreadAddedComment[];
|
|
19
|
+
readonly createdAt: Date;
|
|
20
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
21
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
22
|
+
constructor(commentThreadId: string, createdAt: string, comments?: ICommentThreadAddedComment[]);
|
|
23
|
+
toJSON(): IAddCommentThreadResponse;
|
|
24
|
+
static fromJSON(data: IAddCommentThreadResponse): AddCommentThreadResponse;
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../../descriptor';
|
|
6
|
+
export interface IResolveCommentThreadResponse extends IMessage {
|
|
7
|
+
commentThreadId: string;
|
|
8
|
+
documentId: string;
|
|
9
|
+
resolvedBy: string;
|
|
10
|
+
resolvedAt: string;
|
|
11
|
+
}
|
|
12
|
+
export default class ResolveCommentThreadResponse extends Message {
|
|
13
|
+
readonly commentThreadId: string;
|
|
14
|
+
readonly documentId: string;
|
|
15
|
+
readonly resolvedBy: string;
|
|
16
|
+
readonly resolvedAt: Date;
|
|
17
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
18
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
19
|
+
constructor(commentThreadId: string, documentId: string, resolvedBy: string, resolvedAt: string);
|
|
20
|
+
toJSON(): IResolveCommentThreadResponse;
|
|
21
|
+
static fromJSON(data: IResolveCommentThreadResponse): ResolveCommentThreadResponse;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
import { IThread, IThreadJSON } from '../descriptors/commentsthreaddescriptor';
|
|
7
|
+
export interface IConnectResponse extends IMessage {
|
|
8
|
+
channel: string;
|
|
9
|
+
threads?: string[];
|
|
10
|
+
threadsV2?: IThreadJSON[];
|
|
11
|
+
}
|
|
12
|
+
export default class ConnectResponse extends Message {
|
|
13
|
+
readonly channel: string;
|
|
14
|
+
private readonly _threads?;
|
|
15
|
+
private readonly _threadsV2?;
|
|
16
|
+
readonly threads: IThread[];
|
|
17
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
18
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
19
|
+
constructor(channel: string, _threads?: IThread[] | undefined, _threadsV2?: IThread[] | undefined);
|
|
20
|
+
toJSON(): IConnectResponse;
|
|
21
|
+
static fromJSON(object: IConnectResponse): ConnectResponse;
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
import { ICommentJSON, IComment } from '../descriptors/commentdescriptor';
|
|
7
|
+
export interface IGetCommentThreadResponse extends IMessage {
|
|
8
|
+
commentThreadId: string;
|
|
9
|
+
comments?: string[];
|
|
10
|
+
commentsV2?: ICommentJSON[];
|
|
11
|
+
attributes?: string | null;
|
|
12
|
+
resolvedBy?: string | null;
|
|
13
|
+
context?: string | null;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
deletedAt?: string | null;
|
|
16
|
+
resolvedAt?: string | null;
|
|
17
|
+
unlinkedAt?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export default class GetCommentThreadResponse extends Message {
|
|
20
|
+
readonly commentThreadId: string;
|
|
21
|
+
private readonly _comments?;
|
|
22
|
+
private readonly _commentsV2?;
|
|
23
|
+
readonly resolvedBy?: string | null | undefined;
|
|
24
|
+
readonly comments: IComment[];
|
|
25
|
+
readonly createdAt?: Date;
|
|
26
|
+
readonly deletedAt?: Date | null;
|
|
27
|
+
readonly resolvedAt?: Date | null;
|
|
28
|
+
readonly attributes?: Record<string, unknown> | null;
|
|
29
|
+
readonly context?: Record<string, unknown> | null;
|
|
30
|
+
readonly unlinkedAt?: Date | null;
|
|
31
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
32
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
33
|
+
constructor(commentThreadId: string, _comments?: IComment[] | undefined, _commentsV2?: IComment[] | undefined, attributes?: string | null, resolvedBy?: string | null | undefined, context?: string | null, createdAt?: string, deletedAt?: string | null, resolvedAt?: string | null, unlinkedAt?: string | null);
|
|
34
|
+
toJSON(): IGetCommentThreadResponse;
|
|
35
|
+
static fromJSON(object: IGetCommentThreadResponse): GetCommentThreadResponse;
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
import { IThread, IThreadJSON } from '../descriptors/commentsthreaddescriptor';
|
|
7
|
+
export interface IGetDocumentThreadsResponse extends IMessage {
|
|
8
|
+
threads?: string[];
|
|
9
|
+
threadsV2?: IThreadJSON[];
|
|
10
|
+
}
|
|
11
|
+
export default class GetDocumentThreadsResponse extends Message {
|
|
12
|
+
private readonly _threads?;
|
|
13
|
+
private readonly _threadsV2?;
|
|
14
|
+
readonly threads: IThread[];
|
|
15
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
16
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
17
|
+
constructor(_threads?: IThread[] | undefined, _threadsV2?: IThread[] | undefined);
|
|
18
|
+
toJSON(): IGetDocumentThreadsResponse;
|
|
19
|
+
static fromJSON(object: IGetDocumentThreadsResponse): GetDocumentThreadsResponse;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import type { IType as ProtobufIType } from 'protobufjs';
|
|
5
|
+
export type IDescriptorBody = ProtobufIType;
|
|
6
|
+
export interface IDescriptorConstructor {
|
|
7
|
+
new (...args: unknown[]): Descriptor;
|
|
8
|
+
readonly DESCRIPTOR_NAME: string;
|
|
9
|
+
readonly DESCRIPTOR: IDescriptorBody;
|
|
10
|
+
}
|
|
11
|
+
export default abstract class Descriptor {
|
|
12
|
+
['constructor']: IDescriptorConstructor;
|
|
13
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
14
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
15
|
+
constructor(...args: unknown[]);
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Descriptor, { IDescriptorBody } from './../descriptor';
|
|
5
|
+
export default class KeyValueDescriptor extends Descriptor {
|
|
6
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
7
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { IWebSocketGateway } from '../websocketgateway/websocketgateway';
|
|
5
|
+
export declare const _SERVICE: number;
|
|
6
|
+
declare const EditorService_base: {
|
|
7
|
+
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
|
8
|
+
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
|
9
|
+
};
|
|
10
|
+
declare class EditorService extends /* #__PURE__ -- @preserve */ EditorService_base {
|
|
11
|
+
private static readonly _SERVICE;
|
|
12
|
+
static isBundleUploaded(wsGateway: IWebSocketGateway, bundleVersion: string): Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
export default EditorService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IIsEditorBundleUploadedMessage extends IMessage {
|
|
7
|
+
bundleVersion: string;
|
|
8
|
+
}
|
|
9
|
+
export default class IsEditorBundleUploadedMessage extends Message {
|
|
10
|
+
readonly bundleVersion: string;
|
|
11
|
+
static readonly TYPE: string;
|
|
12
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
13
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
14
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
15
|
+
constructor(bundleVersion: string);
|
|
16
|
+
toJSON(): IIsEditorBundleUploadedMessage;
|
|
17
|
+
static fromJSON(object: IIsEditorBundleUploadedMessage): IsEditorBundleUploadedMessage;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Message, { IMessage } from './../../message';
|
|
5
|
+
import { IDescriptorBody } from '../../descriptor';
|
|
6
|
+
export interface IIsEditorBundleUploadedResponse extends IMessage {
|
|
7
|
+
isUploaded: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default class IsEditorBundleUploadedResponse extends Message {
|
|
10
|
+
readonly isUploaded: boolean;
|
|
11
|
+
static readonly DESCRIPTOR_NAME: string;
|
|
12
|
+
static readonly DESCRIPTOR: IDescriptorBody;
|
|
13
|
+
constructor(isUploaded: boolean);
|
|
14
|
+
toJSON(): IIsEditorBundleUploadedResponse;
|
|
15
|
+
static fromJSON(json: IIsEditorBundleUploadedResponse): IsEditorBundleUploadedResponse;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import CKEditorCloudServicesError from '../ckeditorcloudserviceserror';
|
|
5
|
+
export default class ServiceNotConnectedError extends CKEditorCloudServicesError {
|
|
6
|
+
constructor(serviceName: string, context?: unknown);
|
|
7
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
export { default as MessagesCompressor } from './messagescompressor';
|
|
5
|
+
export { default as MessagesMapper } from './messagesmapper';
|
|
6
|
+
export type { IPublicError } from './ckeditorcloudservicesservererror';
|
|
7
|
+
export { default as CollaborativeEditingConnectMessage } from './collaborativeeditingservice/messages/collaborativeeditingconnectmessage';
|
|
8
|
+
export { default as CollaborativeEditingReconnectMessage } from './collaborativeeditingservice/messages/collaborativeeditingreconnectmessage';
|
|
9
|
+
export { default as CollaborativeEditingUpdateMessage } from './collaborativeeditingservice/messages/collaborativeeditingupdatemessage';
|
|
10
|
+
export { default as CollaborativeEditingConnectResponse, type ICollaborativeEditingConnectResponse } from './collaborativeeditingservice/responses/collaborativeeditingconnectresponse';
|
|
11
|
+
export { default as CollaborativeEditingResponse } from './collaborativeeditingservice/responses/collaborativeeditingresponse';
|
|
12
|
+
export type { IOperationMetadataJSON, IOperationMetadata } from './collaborativeeditingservice/descriptors/operationmetadatadescriptor';
|
|
13
|
+
export { default as GetDocumentDetailsMessage, type IGetDocumentDetailsMessage } from './collaborativeeditingservice/messages/getdocumentdetailsmessage';
|
|
14
|
+
export { default as GetDocumentDetailsResponse, type IGetDocumentDetailsResponse, type ICurrentDocumentSession, type ILastDocumentSession } from './collaborativeeditingservice/responses/getdocumentdetailsresponse';
|
|
15
|
+
export { default as GetManyUsersMessage } from './users/messages/getmanyusersmessage';
|
|
16
|
+
export { default as GetManyUsersResponse } from './users/responses/getmanyusersresponse';
|
|
17
|
+
export { default as GetUserMessage } from './users/messages/getusermessage';
|
|
18
|
+
export { default as GetUserResponse } from './users/responses/getuserresponse';
|
|
19
|
+
export { default as User } from './users/user';
|
|
20
|
+
export { default as AddCommentMessage } from './comments-v2/messages/addcommentmessage';
|
|
21
|
+
export { default as AddCommentResponse } from './comments-v2/responses/addcommentresponse';
|
|
22
|
+
export { default as ConnectCommentsMessage } from './comments-v2/messages/connectmessage';
|
|
23
|
+
export { default as GetCommentThreadMessage } from './comments-v2/messages/getcommentthreadmessage';
|
|
24
|
+
export { default as GetDocumentThreadsMessage } from './comments-v2/messages/getdocumentthreadsmessage';
|
|
25
|
+
export { default as GetDocumentThreadsResponse } from './comments-v2/responses/getdocumentthreadsresponse';
|
|
26
|
+
export { default as RemoveCommentMessage } from './comments-v2/messages/removecommentmessage';
|
|
27
|
+
export { default as RemoveCommentThreadMessage } from './comments-v2/messages/removecommentthreadmessage';
|
|
28
|
+
export { default as UpdateCommentMessage } from './comments-v2/messages/updatecommentmessage';
|
|
29
|
+
export { default as ConnectCommentsResponse } from './comments-v2/responses/connectresponse';
|
|
30
|
+
export { default as GetCommentThreadResponse } from './comments-v2/responses/getcommentthreadresponse';
|
|
31
|
+
export { default as UpdateCommentThreadMessage } from './comments-v2/messages/comment-threads/updatecommentthreadmessage';
|
|
32
|
+
export { default as ResolveCommentThreadMessage } from './comments-v2/messages/comment-threads/resolvecommentthreadmessage';
|
|
33
|
+
export { default as ReopenCommentThreadMessage } from './comments-v2/messages/comment-threads/reopencommentthreadmessage';
|
|
34
|
+
export { default as AddCommentThreadMessage } from './comments-v2/messages/comment-threads/addcommentthreadmessage';
|
|
35
|
+
export { default as AddCommentThreadResponse } from './comments-v2/responses/comment-threads/addcommentthreadresponse';
|
|
36
|
+
export { default as ResolveCommentThreadResponse } from './comments-v2/responses/comment-threads/resolvecommentthreadresponse';
|
|
37
|
+
export type { IThread } from './comments-v2/descriptors/commentsthreaddescriptor';
|
|
38
|
+
export type { IComment } from './comments-v2/descriptors/commentdescriptor';
|
|
39
|
+
export { default as SessionsConnectMessage } from './sessions/messages/sessionsconnectmessage';
|
|
40
|
+
export { default as SessionsConnectResponse } from './sessions/responses/sessionsconnectresponse';
|
|
41
|
+
export { default as SocketConnectMessage } from './sessions/messages/socketconnectmessage';
|
|
42
|
+
export { default as SocketDisconnectMessage } from './sessions/messages/socketdisconnectmessage';
|
|
43
|
+
export { default as AddSuggestionMessage } from './track-changes/messages/addsuggestionmessage';
|
|
44
|
+
export { default as AddSuggestionResponse } from './track-changes/responses/addsuggestionresponse';
|
|
45
|
+
export { default as GetAllSuggestionsResponse } from './track-changes/responses/getallsuggestionsresponse';
|
|
46
|
+
export { default as GetSuggestionResponse } from './track-changes/responses/getsuggestionresponse';
|
|
47
|
+
export { default as GetSuggestionMessage } from './track-changes/messages/getsuggestionmessage';
|
|
48
|
+
export { default as GetAllSuggestionsMessage } from './track-changes/messages/getallsuggestionsmessage';
|
|
49
|
+
export { default as UpdateSuggestionMessage } from './track-changes/messages/updatesuggestionmessage';
|
|
50
|
+
export { default as ConnectTrackChangesMessage } from './track-changes/messages/connectmessage';
|
|
51
|
+
export { default as ConnectTrackChangesResponse } from './track-changes/responses/connectresponse';
|
|
52
|
+
export { default as BatchUpdateSuggestionsStateMessage } from './track-changes/messages/batchUpdateSuggestionsStateMessage';
|
|
53
|
+
export type { ISuggestion } from './track-changes/descriptors/suggestiondescriptor';
|
|
54
|
+
export { default as RevisionHistoryConnectMessage } from './revision-history/messages/revisionhistoryconnectmessage';
|
|
55
|
+
export { default as RevisionHistoryReconnectMessage } from './revision-history/messages/revisionhistoryreconnectmessage';
|
|
56
|
+
export { default as RevisionHistoryGetRevisionMessage } from './revision-history/messages/revisionhistorygetrevisionmessage';
|
|
57
|
+
export { default as RevisionHistoryUpdateRevisionsMessage } from './revision-history/messages/revisionhistoryupdaterevisionsmessage';
|
|
58
|
+
export { default as RevisionHistoryConnectResponse } from './revision-history/responses/revisionhistoryconnectresponse';
|
|
59
|
+
export { default as RevisionHistoryGetRevisionResponse } from './revision-history/responses/revisionhistorygetrevisionresponse';
|
|
60
|
+
export { default as RevisionHistoryUpdateRevisionsResponse } from './revision-history/responses/revisionhistoryupdaterevisionsresponse';
|
|
61
|
+
export type { IRevision } from './revision-history/descriptors/revisiondescriptor';
|
|
62
|
+
export type { IRevisionObject } from './revision-history/revision';
|
|
63
|
+
export { default as IsEditorBundleUploadedResponse, type IIsEditorBundleUploadedResponse } from './editor/responses/iseditorbundleuploadedresponse';
|
|
64
|
+
export { default as IsEditorBundleUploadedMessage, type IIsEditorBundleUploadedMessage } from './editor/messages/iseditorbundleuploadedmessage';
|
|
65
|
+
export * as Parser from './websocketgateway/parser/parser';
|
|
66
|
+
export { Encoder, Decoder } from './websocketgateway/parser/parser';
|
|
67
|
+
export { default as PacketParser, type IPacketParserOptions, type Packet } from './websocketgateway/parser/packetparser';
|
|
68
|
+
export { default as ChannelMessage } from './websocketgateway/messages/channelmessage';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c), CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import Descriptor, { IDescriptorConstructor } from './descriptor';
|
|
5
|
+
export interface IMessageConstructor extends IDescriptorConstructor {
|
|
6
|
+
new (...args: unknown[]): Message;
|
|
7
|
+
readonly TYPE: string | number;
|
|
8
|
+
readonly READABLE_TYPE_NAME: string;
|
|
9
|
+
fromJSON(object: IMessage): Message;
|
|
10
|
+
}
|
|
11
|
+
export interface IMessage {
|
|
12
|
+
}
|
|
13
|
+
export default abstract class Message extends Descriptor {
|
|
14
|
+
['constructor']: IMessageConstructor;
|
|
15
|
+
static readonly TYPE: string | number;
|
|
16
|
+
static readonly READABLE_TYPE_NAME: string;
|
|
17
|
+
constructor(...args: unknown[]);
|
|
18
|
+
abstract toJSON(): IMessage;
|
|
19
|
+
static fromJSON(object: IMessage): Message;
|
|
20
|
+
}
|