@ckeditor/ckeditor-cloud-services-collaboration 52.1.0 → 52.1.4
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/package.json +2 -1
- package/src/ckeditorcloudserviceserror.js +1 -1
- package/src/ckeditorcloudservicesservererror.js +1 -1
- package/src/collaborativeeditingservice/collaborativeeditingservice.js +1 -1
- package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
- package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
- package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
- package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
- package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
- package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
- package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
- package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
- package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
- package/src/comments-v2/commentsservice.js +1 -1
- package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
- package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
- package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
- package/src/comments-v2/messages/addcommentmessage.js +1 -1
- package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/connectmessage.js +1 -1
- package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
- package/src/comments-v2/messages/removecommentmessage.js +1 -1
- package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
- package/src/comments-v2/messages/updatecommentmessage.js +1 -1
- package/src/comments-v2/responses/addcommentresponse.js +1 -1
- package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
- package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
- package/src/comments-v2/responses/connectresponse.js +1 -1
- package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
- package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
- package/src/compiledmessages.d.ts +8313 -9
- package/src/compiledmessages.js +1 -1
- package/src/descriptor.js +1 -1
- package/src/descriptors/keyvaluedescriptor.js +1 -1
- package/src/editor/editorservice.js +1 -1
- package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
- package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
- package/src/errors/ServiceNotConnectedError.js +1 -1
- package/src/index.js +1 -1
- package/src/message.js +1 -1
- package/src/messagescompressor.js +1 -1
- package/src/messagesmapper.js +1 -1
- package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
- package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
- package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
- package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
- package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
- package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
- package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
- package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
- package/src/revision-history/revision.js +1 -1
- package/src/revision-history/revisionhistoryservice.js +1 -1
- package/src/services.js +1 -1
- package/src/sessions/descriptors/sessiondescriptor.js +1 -1
- package/src/sessions/messages/sessionsconnectmessage.js +1 -1
- package/src/sessions/messages/socketconnectmessage.js +1 -1
- package/src/sessions/messages/socketdisconnectmessage.js +1 -1
- package/src/sessions/responses/sessionsconnectresponse.js +1 -1
- package/src/sessions/sessioncollection.js +1 -1
- package/src/sessions/sessions.js +1 -1
- package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
- package/src/track-changes/messages/addsuggestionmessage.js +1 -1
- package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
- package/src/track-changes/messages/connectmessage.js +1 -1
- package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
- package/src/track-changes/messages/getsuggestionmessage.js +1 -1
- package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
- package/src/track-changes/responses/addsuggestionresponse.js +1 -1
- package/src/track-changes/responses/connectresponse.js +1 -1
- package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
- package/src/track-changes/responses/getsuggestionresponse.js +1 -1
- package/src/track-changes/trackchangesservice.js +1 -1
- package/src/types.js +1 -1
- package/src/users/descriptors/userdescriptor.js +1 -1
- package/src/users/messages/getmanyusersmessage.js +1 -1
- package/src/users/messages/getusermessage.js +1 -1
- package/src/users/responses/getmanyusersresponse.js +1 -1
- package/src/users/responses/getuserresponse.js +1 -1
- package/src/users/user.js +1 -1
- package/src/version.js +1 -1
- package/src/websocketgateway/channel.js +1 -1
- package/src/websocketgateway/messages/channelmessage.js +1 -1
- package/src/websocketgateway/parser/packetparser.js +1 -1
- package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +1 -1
- package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +1 -1
- package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/packetmessage.js +1 -1
- package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
- package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +1 -1
- package/src/websocketgateway/parser/parser.js +1 -1
- package/src/websocketgateway/parser/parserutils.js +1 -1
- package/src/websocketgateway/requestsmanager.js +1 -1
- package/src/websocketgateway/websocketgateway.js +1 -1
- package/src/ckeditorcloudserviceserror.d.ts +0 -8
- package/src/ckeditorcloudservicesservererror.d.ts +0 -15
- package/src/collaborativeeditingservice/collaborativeeditingservice.d.ts +0 -127
- package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.d.ts +0 -18
- package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.d.ts +0 -11
- package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.d.ts +0 -24
- package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.d.ts +0 -19
- package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.d.ts +0 -38
- package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.d.ts +0 -16
- package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.d.ts +0 -68
- package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.d.ts +0 -51
- package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.d.ts +0 -28
- package/src/comments-v2/commentsservice.d.ts +0 -72
- package/src/comments-v2/descriptors/commentdescriptor.d.ts +0 -23
- package/src/comments-v2/descriptors/commentsthreaddescriptor.d.ts +0 -31
- package/src/comments-v2/descriptors/commentthreadaddedcomment.d.ts +0 -15
- package/src/comments-v2/messages/addcommentmessage.d.ts +0 -30
- package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.d.ts +0 -32
- package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.d.ts +0 -17
- package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.d.ts +0 -21
- package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.d.ts +0 -23
- package/src/comments-v2/messages/connectmessage.d.ts +0 -15
- package/src/comments-v2/messages/getcommentthreadmessage.d.ts +0 -17
- package/src/comments-v2/messages/getdocumentthreadsmessage.d.ts +0 -15
- package/src/comments-v2/messages/removecommentmessage.d.ts +0 -19
- package/src/comments-v2/messages/removecommentthreadmessage.d.ts +0 -17
- package/src/comments-v2/messages/updatecommentmessage.d.ts +0 -28
- package/src/comments-v2/responses/addcommentresponse.d.ts +0 -17
- package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.d.ts +0 -22
- package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.d.ts +0 -19
- package/src/comments-v2/responses/connectresponse.d.ts +0 -19
- package/src/comments-v2/responses/getcommentthreadresponse.d.ts +0 -33
- package/src/comments-v2/responses/getdocumentthreadsresponse.d.ts +0 -17
- package/src/descriptor.d.ts +0 -13
- package/src/descriptors/keyvaluedescriptor.d.ts +0 -5
- package/src/editor/editorservice.d.ts +0 -11
- package/src/editor/messages/iseditorbundleuploadedmessage.d.ts +0 -15
- package/src/editor/responses/iseditorbundleuploadedresponse.d.ts +0 -13
- package/src/errors/ServiceNotConnectedError.d.ts +0 -4
- package/src/index.d.ts +0 -66
- package/src/message.d.ts +0 -17
- package/src/messagescompressor.d.ts +0 -15
- package/src/messagesmapper.d.ts +0 -9
- package/src/revision-history/descriptors/revisiondescriptor.d.ts +0 -42
- package/src/revision-history/messages/revisionhistoryconnectmessage.d.ts +0 -15
- package/src/revision-history/messages/revisionhistorygetrevisionmessage.d.ts +0 -17
- package/src/revision-history/messages/revisionhistoryreconnectmessage.d.ts +0 -17
- package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.d.ts +0 -41
- package/src/revision-history/responses/revisionhistoryconnectresponse.d.ts +0 -30
- package/src/revision-history/responses/revisionhistorygetrevisionresponse.d.ts +0 -30
- package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.d.ts +0 -13
- package/src/revision-history/revision.d.ts +0 -15
- package/src/revision-history/revisionhistoryservice.d.ts +0 -75
- package/src/services.d.ts +0 -8
- package/src/sessions/descriptors/sessiondescriptor.d.ts +0 -5
- package/src/sessions/messages/sessionsconnectmessage.d.ts +0 -17
- package/src/sessions/messages/socketconnectmessage.d.ts +0 -21
- package/src/sessions/messages/socketdisconnectmessage.d.ts +0 -15
- package/src/sessions/responses/sessionsconnectresponse.d.ts +0 -21
- package/src/sessions/sessioncollection.d.ts +0 -40
- package/src/sessions/sessions.d.ts +0 -13
- package/src/track-changes/descriptors/suggestiondescriptor.d.ts +0 -25
- package/src/track-changes/messages/addsuggestionmessage.d.ts +0 -25
- package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.d.ts +0 -19
- package/src/track-changes/messages/connectmessage.d.ts +0 -15
- package/src/track-changes/messages/getallsuggestionsmessage.d.ts +0 -15
- package/src/track-changes/messages/getsuggestionmessage.d.ts +0 -17
- package/src/track-changes/messages/updatesuggestionmessage.d.ts +0 -25
- package/src/track-changes/responses/addsuggestionresponse.d.ts +0 -27
- package/src/track-changes/responses/connectresponse.d.ts +0 -19
- package/src/track-changes/responses/getallsuggestionsresponse.d.ts +0 -17
- package/src/track-changes/responses/getsuggestionresponse.d.ts +0 -27
- package/src/track-changes/trackchangesservice.d.ts +0 -62
- package/src/types.d.ts +0 -7
- package/src/users/descriptors/userdescriptor.d.ts +0 -5
- package/src/users/messages/getmanyusersmessage.d.ts +0 -15
- package/src/users/messages/getusermessage.d.ts +0 -15
- package/src/users/responses/getmanyusersresponse.d.ts +0 -13
- package/src/users/responses/getuserresponse.d.ts +0 -13
- package/src/users/user.d.ts +0 -41
- package/src/version.d.ts +0 -2
- package/src/websocketgateway/channel.d.ts +0 -31
- package/src/websocketgateway/messages/channelmessage.d.ts +0 -21
- package/src/websocketgateway/parser/packetparser.d.ts +0 -15
- package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.d.ts +0 -18
- package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.d.ts +0 -18
- package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.d.ts +0 -17
- package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.d.ts +0 -17
- package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.d.ts +0 -17
- package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.d.ts +0 -18
- package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.d.ts +0 -17
- package/src/websocketgateway/parser/packets/packagedatamessage.d.ts +0 -16
- package/src/websocketgateway/parser/packets/packetmessage.d.ts +0 -31
- package/src/websocketgateway/parser/packets/packetoptionsmessage.d.ts +0 -18
- package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.d.ts +0 -18
- package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.d.ts +0 -17
- package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.d.ts +0 -17
- package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.d.ts +0 -17
- package/src/websocketgateway/parser/parser.d.ts +0 -14
- package/src/websocketgateway/parser/parserutils.d.ts +0 -27
- package/src/websocketgateway/requestsmanager.d.ts +0 -20
- package/src/websocketgateway/websocketgateway.d.ts +0 -164
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IRevisionHistoryConnectMessage extends IMessage {
|
|
4
|
-
documentId: string;
|
|
5
|
-
}
|
|
6
|
-
export default class RevisionHistoryConnectMessage extends Message {
|
|
7
|
-
readonly documentId: string;
|
|
8
|
-
static readonly TYPE: string;
|
|
9
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
10
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
11
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
12
|
-
constructor(documentId: string);
|
|
13
|
-
toJSON(): IRevisionHistoryConnectMessage;
|
|
14
|
-
static fromJSON(object: IRevisionHistoryConnectMessage): RevisionHistoryConnectMessage;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IRevisionHistoryGetRevisionMessage extends IMessage {
|
|
4
|
-
documentId: string;
|
|
5
|
-
revisionId: string;
|
|
6
|
-
}
|
|
7
|
-
export default class RevisionHistoryGetRevisionMessage extends Message {
|
|
8
|
-
readonly documentId: string;
|
|
9
|
-
readonly revisionId: string;
|
|
10
|
-
static readonly TYPE: string;
|
|
11
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
12
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
13
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
14
|
-
constructor(documentId: string, revisionId: string);
|
|
15
|
-
toJSON(): IRevisionHistoryGetRevisionMessage;
|
|
16
|
-
static fromJSON(object: IRevisionHistoryGetRevisionMessage): RevisionHistoryGetRevisionMessage;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IRevisionHistoryReconnectMessage extends IMessage {
|
|
4
|
-
documentId: string;
|
|
5
|
-
requestId: number;
|
|
6
|
-
}
|
|
7
|
-
export default class RevisionHistoryReconnectMessage extends Message {
|
|
8
|
-
readonly documentId: string;
|
|
9
|
-
readonly requestId: number;
|
|
10
|
-
static readonly TYPE: string;
|
|
11
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
12
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
13
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
14
|
-
constructor(documentId: string, requestId: number);
|
|
15
|
-
toJSON(): IRevisionHistoryReconnectMessage;
|
|
16
|
-
static fromJSON(object: IRevisionHistoryReconnectMessage): RevisionHistoryReconnectMessage;
|
|
17
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { IRevisionObject } from '../revision';
|
|
4
|
-
import { IRevisionJSON, IRevision } from '../descriptors/revisiondescriptor';
|
|
5
|
-
export interface IRevisionHistoryUpdateRevisions {
|
|
6
|
-
documentId: string;
|
|
7
|
-
requestId: number;
|
|
8
|
-
revisions: IRevisionObject[];
|
|
9
|
-
}
|
|
10
|
-
export interface IRevisionHistoryUpdateRevisionsMessageJSON extends IMessage {
|
|
11
|
-
documentId: string;
|
|
12
|
-
requestId: number;
|
|
13
|
-
revisions: IRevisionJSON[];
|
|
14
|
-
}
|
|
15
|
-
export default class RevisionHistoryUpdateRevisionsMessage extends Message {
|
|
16
|
-
readonly documentId: string;
|
|
17
|
-
readonly requestId: number;
|
|
18
|
-
readonly revisions: IRevision[];
|
|
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(documentId: string, requestId: number, revisions: IRevision[]);
|
|
24
|
-
toJSON(): IRevisionHistoryUpdateRevisionsMessageJSON;
|
|
25
|
-
/**
|
|
26
|
-
* Creates frontend revision history model array from message sent from the backend.
|
|
27
|
-
*
|
|
28
|
-
* This method is intended to be used on the frontend side after receiving the broadcast message from the backend.
|
|
29
|
-
*/
|
|
30
|
-
toObject(): IRevisionHistoryUpdateRevisions;
|
|
31
|
-
/**
|
|
32
|
-
* Creates RevisionHistoryUpdateRevisionsMessage from frontend revision model array.
|
|
33
|
-
*
|
|
34
|
-
* This method is intended to be used on the frontend to create RevisionHistoryUpdateRevisionsMessage.
|
|
35
|
-
*
|
|
36
|
-
* This is optimization to prevent recreating the same revision models on the backend side
|
|
37
|
-
* as we just save these data in the database without need to parse them.
|
|
38
|
-
*/
|
|
39
|
-
static create(params: IRevisionHistoryUpdateRevisions): RevisionHistoryUpdateRevisionsMessage;
|
|
40
|
-
static fromJSON(json: IRevisionHistoryUpdateRevisionsMessageJSON): RevisionHistoryUpdateRevisionsMessage;
|
|
41
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { IRevision, IRevisionJSON } from '../descriptors/revisiondescriptor';
|
|
4
|
-
import { IRevisionObject } from '../revision';
|
|
5
|
-
export interface IRevisionHistoryConnectResponseJSON extends IMessage {
|
|
6
|
-
channel: string;
|
|
7
|
-
requestId: number;
|
|
8
|
-
revisions: IRevisionJSON[];
|
|
9
|
-
}
|
|
10
|
-
export interface IRevisionHistoryConnectResponseObject {
|
|
11
|
-
channel: string;
|
|
12
|
-
requestId: number;
|
|
13
|
-
revisions: IRevisionObject[];
|
|
14
|
-
}
|
|
15
|
-
export default class RevisionHistoryConnectResponse extends Message {
|
|
16
|
-
readonly channel: string;
|
|
17
|
-
readonly requestId: number;
|
|
18
|
-
readonly revisions: IRevision[];
|
|
19
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
20
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
21
|
-
constructor(channel: string, requestId: number, revisions: IRevision[]);
|
|
22
|
-
toJSON(): IRevisionHistoryConnectResponseJSON;
|
|
23
|
-
/**
|
|
24
|
-
* Creates frontend revision history model from message sent from the backend.
|
|
25
|
-
*
|
|
26
|
-
* This method is intended to be used on the frontend side after receiving the response from the backend.
|
|
27
|
-
*/
|
|
28
|
-
toObject(): IRevisionHistoryConnectResponseObject;
|
|
29
|
-
static fromJSON(json: IRevisionHistoryConnectResponseJSON): RevisionHistoryConnectResponse;
|
|
30
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { IRevisionObject } from '../revision';
|
|
4
|
-
import { IRevisionJSON, IRevision } from '../descriptors/revisiondescriptor';
|
|
5
|
-
export interface IRevisionHistoryGetRevisionResponseJSON extends IRevisionJSON, IMessage {
|
|
6
|
-
}
|
|
7
|
-
export default class RevisionHistoryGetRevisionResponse extends Message implements IRevision {
|
|
8
|
-
readonly revisionId: string;
|
|
9
|
-
readonly name?: string | undefined;
|
|
10
|
-
readonly creatorId?: string | undefined;
|
|
11
|
-
readonly authorsIds?: string[] | undefined;
|
|
12
|
-
readonly createdAt?: Date | undefined;
|
|
13
|
-
readonly diffData?: string | undefined;
|
|
14
|
-
readonly attributes?: Record<string, unknown> | undefined;
|
|
15
|
-
readonly fromVersion?: number | undefined;
|
|
16
|
-
readonly toVersion?: number | undefined;
|
|
17
|
-
readonly isEmptyCurrent?: boolean | undefined;
|
|
18
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
19
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
20
|
-
constructor(revisionId: string, name?: string | undefined, creatorId?: string | undefined, authorsIds?: string[] | undefined, createdAt?: Date | undefined, diffData?: string | undefined, attributes?: Record<string, unknown> | undefined, fromVersion?: number | undefined, toVersion?: number | undefined, isEmptyCurrent?: boolean | undefined);
|
|
21
|
-
toJSON(): IRevisionHistoryGetRevisionResponseJSON;
|
|
22
|
-
/**
|
|
23
|
-
* Creates frontend revision model from message sent from the backend.
|
|
24
|
-
*
|
|
25
|
-
* This method is intended to be used on the frontend side after receiving the response from the backend.
|
|
26
|
-
*/
|
|
27
|
-
toObject(): IRevisionObject;
|
|
28
|
-
static create(params: IRevision): RevisionHistoryGetRevisionResponse;
|
|
29
|
-
static fromJSON(json: IRevisionHistoryGetRevisionResponseJSON): RevisionHistoryGetRevisionResponse;
|
|
30
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IRevisionHistoryUpdateRevisionsResponse extends IMessage {
|
|
4
|
-
requestId: number;
|
|
5
|
-
}
|
|
6
|
-
export default class RevisionHistoryUpdateRevisionsResponse extends Message {
|
|
7
|
-
readonly requestId: number;
|
|
8
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
9
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
10
|
-
constructor(requestId: number);
|
|
11
|
-
toJSON(): IRevisionHistoryUpdateRevisionsResponse;
|
|
12
|
-
static fromJSON(json: IRevisionHistoryUpdateRevisionsResponse): RevisionHistoryUpdateRevisionsResponse;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Revision History model used on the frontend side.
|
|
3
|
-
*/
|
|
4
|
-
export interface IRevisionObject {
|
|
5
|
-
id: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
creatorId?: string;
|
|
8
|
-
authorsIds?: string[];
|
|
9
|
-
fromVersion?: number;
|
|
10
|
-
toVersion?: number;
|
|
11
|
-
createdAt?: Date;
|
|
12
|
-
isEmptyCurrent?: boolean;
|
|
13
|
-
diffData?: Record<string, unknown>;
|
|
14
|
-
attributes?: Record<string, unknown>;
|
|
15
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { IWebSocketGateway } from '../websocketgateway/websocketgateway';
|
|
2
|
-
import { IRevisionObject } from './revision';
|
|
3
|
-
export declare const _SERVICE: number;
|
|
4
|
-
interface IRevisionHistoryConnectResponse {
|
|
5
|
-
revisions: IRevisionObject[];
|
|
6
|
-
requestId: number;
|
|
7
|
-
}
|
|
8
|
-
declare const RevisionHistoryService_base: {
|
|
9
|
-
new (): import("ckeditor5/src/utils").Emitter;
|
|
10
|
-
prototype: import("ckeditor5/src/utils").Emitter;
|
|
11
|
-
};
|
|
12
|
-
declare class RevisionHistoryService extends RevisionHistoryService_base {
|
|
13
|
-
private readonly _documentId;
|
|
14
|
-
private _isConnected;
|
|
15
|
-
private _wsGateway?;
|
|
16
|
-
private _channel?;
|
|
17
|
-
private static readonly _SERVICE;
|
|
18
|
-
constructor(_documentId: string);
|
|
19
|
-
get isConnected(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Connects RevisionHistoryService to CKEditor Cloud Services.
|
|
22
|
-
*
|
|
23
|
-
* @throws {@link CKEditorCloudServicesError} error
|
|
24
|
-
* Thrown in the case of errors on the backend side.
|
|
25
|
-
*/
|
|
26
|
-
connect(wsGateway: IWebSocketGateway): Promise<IRevisionHistoryConnectResponse | void>;
|
|
27
|
-
/**
|
|
28
|
-
* Disconnects RevisionHistoryService from CKEditor Cloud Services.
|
|
29
|
-
*
|
|
30
|
-
* @throws {@link CKEditorCloudServicesError}
|
|
31
|
-
* Thrown in the case of errors on the backend side.
|
|
32
|
-
*/
|
|
33
|
-
disconnect(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Reconnects RevisionHistoryService to CKEditor Cloud Services.
|
|
36
|
-
*
|
|
37
|
-
* @throws {@link CKEditorCloudServicesError}
|
|
38
|
-
* Thrown when connection already exists or in the case of errors on the backend side.
|
|
39
|
-
*/
|
|
40
|
-
reconnect(wsGateway: IWebSocketGateway, lastRequestId: number): Promise<IRevisionHistoryConnectResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Updates revisions.
|
|
43
|
-
*
|
|
44
|
-
* @throws {@link CKEditorCloudServicesError}
|
|
45
|
-
* Thrown in the case of errors on the backend side.
|
|
46
|
-
*/
|
|
47
|
-
updateRevisions(revisions: IRevisionObject[], lastRequestId: number): Promise<number>;
|
|
48
|
-
/**
|
|
49
|
-
* Returns revision with given id.
|
|
50
|
-
*
|
|
51
|
-
* @throws {@link CKEditorCloudServicesError}
|
|
52
|
-
* Thrown in the case of errors on the backend side.
|
|
53
|
-
*/
|
|
54
|
-
getRevision(revisionId: string): Promise<IRevisionObject>;
|
|
55
|
-
/**
|
|
56
|
-
* Connects or reconnects to WebSocketGateway and starts listening on channel.
|
|
57
|
-
*/
|
|
58
|
-
private _connect;
|
|
59
|
-
/**
|
|
60
|
-
* Starts to listen on a given channel.
|
|
61
|
-
*/
|
|
62
|
-
private _connectToChannel;
|
|
63
|
-
/**
|
|
64
|
-
* Processes websocket gateway state changes.
|
|
65
|
-
*/
|
|
66
|
-
private _onWsGatewayStateChange;
|
|
67
|
-
/**
|
|
68
|
-
* Sends request to RevisionHistory service.
|
|
69
|
-
*
|
|
70
|
-
* @throws {@link ServiceNotConnectedError}
|
|
71
|
-
* Thrown in the case of missing service connection.
|
|
72
|
-
*/
|
|
73
|
-
private _sendRequest;
|
|
74
|
-
}
|
|
75
|
-
export default RevisionHistoryService;
|
package/src/services.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import WebSocketGateway, { WEB_SOCKET_GATEWAY_STATES } from './websocketgateway/websocketgateway';
|
|
2
|
-
import EditorService from './editor/editorservice';
|
|
3
|
-
import RevisionHistoryService from './revision-history/revisionhistoryservice';
|
|
4
|
-
import TrackChangesService from './track-changes/trackchangesservice';
|
|
5
|
-
import SessionCollection, { ISocket } from './sessions/sessioncollection';
|
|
6
|
-
import CollaborativeEditingService from './collaborativeeditingservice/collaborativeeditingservice';
|
|
7
|
-
import CommentsService from './comments-v2/commentsservice';
|
|
8
|
-
export { CollaborativeEditingService, RevisionHistoryService, EditorService, WebSocketGateway, TrackChangesService, SessionCollection, ISocket, CommentsService, WEB_SOCKET_GATEWAY_STATES };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface ISessionsConnectMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
sessionType: number | string;
|
|
6
|
-
}
|
|
7
|
-
export default class SessionsConnectMessage extends Message {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly sessionType: string | number;
|
|
10
|
-
static readonly TYPE: string;
|
|
11
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
12
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
13
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
14
|
-
constructor(id: string, sessionType: string | number);
|
|
15
|
-
toJSON(): ISessionsConnectMessage;
|
|
16
|
-
static fromJSON(data: ISessionsConnectMessage): SessionsConnectMessage;
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface ISocketConnectMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
userId?: string;
|
|
6
|
-
role?: string;
|
|
7
|
-
permissions?: string[];
|
|
8
|
-
}
|
|
9
|
-
export default class SocketConnectMessage extends Message {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly userId?: string | undefined;
|
|
12
|
-
readonly role?: string | undefined;
|
|
13
|
-
readonly permissions?: string[] | undefined;
|
|
14
|
-
static readonly TYPE: string;
|
|
15
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
16
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
17
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
18
|
-
constructor(id: string, userId?: string | undefined, role?: string | undefined, permissions?: string[] | undefined);
|
|
19
|
-
toJSON(): ISocketConnectMessage;
|
|
20
|
-
static fromJSON(data: ISocketConnectMessage): SocketConnectMessage;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface ISocketDisconnectMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export default class SocketDisconnectMessage extends Message {
|
|
7
|
-
readonly id: string;
|
|
8
|
-
static readonly TYPE: string;
|
|
9
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
10
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
11
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
12
|
-
constructor(id: string);
|
|
13
|
-
toJSON(): ISocketDisconnectMessage;
|
|
14
|
-
static fromJSON(data: ISocketDisconnectMessage): SocketDisconnectMessage;
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { ISocket } from '../sessioncollection';
|
|
4
|
-
export interface ISessionsConnectResponse extends IMessage {
|
|
5
|
-
channel: string;
|
|
6
|
-
sockets: {
|
|
7
|
-
user?: string;
|
|
8
|
-
session: string;
|
|
9
|
-
role?: string;
|
|
10
|
-
permissions?: string[];
|
|
11
|
-
}[];
|
|
12
|
-
}
|
|
13
|
-
export default class SessionsConnectResponse extends Message {
|
|
14
|
-
readonly channel: string;
|
|
15
|
-
readonly sockets: ISocket[];
|
|
16
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
17
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
18
|
-
constructor(channel: string, sockets?: ISocket[]);
|
|
19
|
-
toJSON(): ISessionsConnectResponse;
|
|
20
|
-
static fromJSON(data: ISessionsConnectResponse): SessionsConnectResponse;
|
|
21
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Collection } from 'ckeditor5/src/utils.js';
|
|
2
|
-
import User from './../users/user';
|
|
3
|
-
import { IWebSocketGateway } from './../websocketgateway/websocketgateway';
|
|
4
|
-
export declare const _SERVICE: number;
|
|
5
|
-
export interface ISocket {
|
|
6
|
-
id: string;
|
|
7
|
-
user?: User;
|
|
8
|
-
userId?: string;
|
|
9
|
-
role?: string;
|
|
10
|
-
permissions?: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Collection of connected socket to given service.
|
|
14
|
-
*/
|
|
15
|
-
declare class SessionCollection extends Collection<ISocket> {
|
|
16
|
-
private readonly _id;
|
|
17
|
-
private readonly _sessionType;
|
|
18
|
-
private readonly _handlers;
|
|
19
|
-
private _channel?;
|
|
20
|
-
private _wsGateway?;
|
|
21
|
-
private _connected;
|
|
22
|
-
private _eventsQueue;
|
|
23
|
-
private _isRunning;
|
|
24
|
-
constructor(_id: string, _sessionType: number);
|
|
25
|
-
/**
|
|
26
|
-
* Connects SessionCollection to CKEditor Cloud Services..
|
|
27
|
-
*/
|
|
28
|
-
connect(wsGateway: IWebSocketGateway): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Disconnects SessionCollection from CKEditor Cloud Services.
|
|
31
|
-
*/
|
|
32
|
-
disconnect(force?: boolean): void;
|
|
33
|
-
add(_1: ISocket, _2?: number): this;
|
|
34
|
-
remove(_: number): ISocket;
|
|
35
|
-
private _connectToChannel;
|
|
36
|
-
private _onWsGatewayStateChange;
|
|
37
|
-
private _runQueue;
|
|
38
|
-
private _addHandler;
|
|
39
|
-
}
|
|
40
|
-
export default SessionCollection;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import SessionCollection from './sessioncollection';
|
|
2
|
-
import { IWebSocketGateway } from '../websocketgateway/websocketgateway';
|
|
3
|
-
/**
|
|
4
|
-
* Abstracts requesting connected Sessions for services. Should not be used directly
|
|
5
|
-
*/
|
|
6
|
-
export default class Sessions {
|
|
7
|
-
/**
|
|
8
|
-
* Returns a Promise that resolves with read-only observable collection with EndUsers Sessions for given service instance.
|
|
9
|
-
*
|
|
10
|
-
* const sessions = await wsGateway.getConnectedSessions( wsGateway, 'some-uuid', 'session-type' );
|
|
11
|
-
*/
|
|
12
|
-
static getConnectedSessions(wsGateway: IWebSocketGateway, id: string, sessionType: number): Promise<SessionCollection>;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Descriptor, { IDescriptorBody } from './../../descriptor';
|
|
2
|
-
interface ICommonSuggestion {
|
|
3
|
-
id: string;
|
|
4
|
-
authorId: string;
|
|
5
|
-
type: string;
|
|
6
|
-
hasComments?: boolean;
|
|
7
|
-
state?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ISuggestion extends ICommonSuggestion {
|
|
10
|
-
createdAt?: Date;
|
|
11
|
-
data?: Record<string, unknown> | null;
|
|
12
|
-
attributes?: Record<string, unknown> | null;
|
|
13
|
-
}
|
|
14
|
-
export interface ISuggestionJSON extends ICommonSuggestion {
|
|
15
|
-
createdAt?: string;
|
|
16
|
-
data?: string | null;
|
|
17
|
-
attributes?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export default class SuggestionDescriptor extends Descriptor {
|
|
20
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
21
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
22
|
-
static toJSON(suggestion: ISuggestion): ISuggestionJSON;
|
|
23
|
-
static fromJSON(suggestion: ISuggestionJSON): ISuggestion;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IAddSuggestionMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
type: string;
|
|
7
|
-
data: string;
|
|
8
|
-
originalSuggestionId: string | null;
|
|
9
|
-
attributes: string | null;
|
|
10
|
-
}
|
|
11
|
-
export default class AddSuggestionMessage extends Message {
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly documentId: string;
|
|
14
|
-
readonly type: string;
|
|
15
|
-
readonly data: Record<string, unknown>;
|
|
16
|
-
readonly originalSuggestionId: string | null;
|
|
17
|
-
readonly attributes: Record<string, unknown> | null;
|
|
18
|
-
static readonly TYPE: string;
|
|
19
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
20
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
21
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
22
|
-
constructor(id: string, documentId: string, type: string, data?: Record<string, unknown>, originalSuggestionId?: string | null, attributes?: Record<string, unknown> | null);
|
|
23
|
-
toJSON(): IAddSuggestionMessage;
|
|
24
|
-
static fromJSON(object: IAddSuggestionMessage): AddSuggestionMessage;
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Message from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IBatchUpdateSuggestionsStateMessage {
|
|
4
|
-
ids: string[];
|
|
5
|
-
documentId: string;
|
|
6
|
-
state: string;
|
|
7
|
-
}
|
|
8
|
-
export default class BatchUpdateSuggestionsStateMessage extends Message {
|
|
9
|
-
ids: string[];
|
|
10
|
-
documentId: string;
|
|
11
|
-
state: string;
|
|
12
|
-
static readonly TYPE: string;
|
|
13
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
14
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
15
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
16
|
-
constructor(ids: string[], documentId: string, state: string);
|
|
17
|
-
toJSON(): IBatchUpdateSuggestionsStateMessage;
|
|
18
|
-
static fromJSON(object: IBatchUpdateSuggestionsStateMessage): BatchUpdateSuggestionsStateMessage;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IConnectMessage extends IMessage {
|
|
4
|
-
documentId: string;
|
|
5
|
-
}
|
|
6
|
-
export default class ConnectMessage extends Message {
|
|
7
|
-
readonly documentId: string;
|
|
8
|
-
static readonly TYPE: string;
|
|
9
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
10
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
11
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
12
|
-
constructor(documentId: string);
|
|
13
|
-
toJSON(): IConnectMessage;
|
|
14
|
-
static fromJSON(object: IConnectMessage): ConnectMessage;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IGetAllSuggestionsMessage extends IMessage {
|
|
4
|
-
documentId: string;
|
|
5
|
-
}
|
|
6
|
-
export default class GetAllSuggestionsMessage extends Message {
|
|
7
|
-
readonly documentId: string;
|
|
8
|
-
static readonly TYPE: string;
|
|
9
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
10
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
11
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
12
|
-
constructor(documentId: string);
|
|
13
|
-
toJSON(): IGetAllSuggestionsMessage;
|
|
14
|
-
static fromJSON(object: IGetAllSuggestionsMessage): GetAllSuggestionsMessage;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IGetSuggestionMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
}
|
|
7
|
-
export default class GetSuggestionMessage extends Message {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly documentId: string;
|
|
10
|
-
static readonly TYPE: string;
|
|
11
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
12
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
13
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
14
|
-
constructor(id: string, documentId: string);
|
|
15
|
-
toJSON(): IGetSuggestionMessage;
|
|
16
|
-
static fromJSON(object: IGetSuggestionMessage): GetSuggestionMessage;
|
|
17
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IUpdateSuggestionMessage extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
hasComments?: boolean;
|
|
7
|
-
isHasCommentsModified: boolean;
|
|
8
|
-
state?: string;
|
|
9
|
-
attributes: string;
|
|
10
|
-
}
|
|
11
|
-
export default class UpdateSuggestionMessage extends Message {
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly documentId: string;
|
|
14
|
-
readonly hasComments: boolean | undefined;
|
|
15
|
-
readonly isHasCommentsModified: boolean;
|
|
16
|
-
readonly state?: string | undefined;
|
|
17
|
-
readonly attributes: Record<string, unknown> | null;
|
|
18
|
-
static readonly TYPE: string;
|
|
19
|
-
static readonly READABLE_TYPE_NAME: string;
|
|
20
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
21
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
22
|
-
constructor(id: string, documentId: string, hasComments: boolean | undefined, isHasCommentsModified: boolean, state?: string | undefined, attributes?: Record<string, unknown> | null);
|
|
23
|
-
toJSON(): IUpdateSuggestionMessage;
|
|
24
|
-
static fromJSON(object: IUpdateSuggestionMessage): UpdateSuggestionMessage;
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
export interface IAddSuggestionResponse extends IMessage {
|
|
4
|
-
id: string;
|
|
5
|
-
authorId: string;
|
|
6
|
-
type: string;
|
|
7
|
-
createdAt?: string;
|
|
8
|
-
data: string;
|
|
9
|
-
hasComments?: boolean;
|
|
10
|
-
state?: string;
|
|
11
|
-
attributes: string | null;
|
|
12
|
-
}
|
|
13
|
-
export default class AddSuggestionResponse extends Message {
|
|
14
|
-
readonly id: string;
|
|
15
|
-
readonly authorId: string;
|
|
16
|
-
readonly type: string;
|
|
17
|
-
readonly hasComments?: boolean | undefined;
|
|
18
|
-
readonly state?: string | undefined;
|
|
19
|
-
readonly data: Record<string, unknown> | null;
|
|
20
|
-
readonly attributes: Record<string, unknown> | null;
|
|
21
|
-
readonly createdAt?: Date;
|
|
22
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
23
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
24
|
-
constructor(id: string, authorId: string, type: string, createdAt?: string, hasComments?: boolean | undefined, state?: string | undefined, data?: Record<string, unknown> | null, attributes?: Record<string, unknown> | null);
|
|
25
|
-
toJSON(): IAddSuggestionResponse;
|
|
26
|
-
static fromJSON(data: IAddSuggestionResponse): AddSuggestionResponse;
|
|
27
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { ISuggestion, ISuggestionJSON } from '../descriptors/suggestiondescriptor';
|
|
4
|
-
export interface IConnectResponse extends IMessage {
|
|
5
|
-
channel: string;
|
|
6
|
-
suggestions?: string[];
|
|
7
|
-
suggestionsV2?: ISuggestionJSON[];
|
|
8
|
-
}
|
|
9
|
-
export default class ConnectResponse extends Message {
|
|
10
|
-
readonly channel: string;
|
|
11
|
-
private readonly _suggestions?;
|
|
12
|
-
private readonly _suggestionsV2?;
|
|
13
|
-
readonly suggestions: ISuggestion[];
|
|
14
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
15
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
16
|
-
constructor(channel: string, _suggestions?: ISuggestion[] | undefined, _suggestionsV2?: ISuggestion[] | undefined);
|
|
17
|
-
toJSON(): IConnectResponse;
|
|
18
|
-
static fromJSON(object: IConnectResponse): ConnectResponse;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Message, { IMessage } from './../../message';
|
|
2
|
-
import { IDescriptorBody } from '../../descriptor';
|
|
3
|
-
import { ISuggestion, ISuggestionJSON } from '../descriptors/suggestiondescriptor';
|
|
4
|
-
export interface IGetAllSuggestionResponse extends IMessage {
|
|
5
|
-
suggestions?: string[];
|
|
6
|
-
suggestionsV2?: ISuggestionJSON[];
|
|
7
|
-
}
|
|
8
|
-
export default class GetAllSuggestionResponse extends Message {
|
|
9
|
-
private readonly _suggestions?;
|
|
10
|
-
private readonly _suggestionsV2?;
|
|
11
|
-
readonly suggestions: ISuggestion[];
|
|
12
|
-
static readonly DESCRIPTOR_NAME: string;
|
|
13
|
-
static readonly DESCRIPTOR: IDescriptorBody;
|
|
14
|
-
constructor(_suggestions?: ISuggestion[] | undefined, _suggestionsV2?: ISuggestion[] | undefined);
|
|
15
|
-
toJSON(): IGetAllSuggestionResponse;
|
|
16
|
-
static fromJSON(data: IGetAllSuggestionResponse): GetAllSuggestionResponse;
|
|
17
|
-
}
|